UNPKG

apollo-client-devtools

Version:

Developer tools for Apollo Client, with GraphiQL integration, cache inspection, and query watching.

1 lines • 1.05 MB
!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,{configurable:!1,enumerable:!0,get: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=204)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10);Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}});var i=n(77);Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var o=n(51);Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}});var a=n(78);Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return a.formatError}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(242);Object.defineProperty(t,"graphql",{enumerable:!0,get:function(){return r.graphql}});var i=n(243);Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return i.GraphQLSchema}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return i.GraphQLDirective}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return i.TypeKind}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return i.DirectiveLocation}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return i.GraphQLInt}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return i.GraphQLFloat}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return i.GraphQLString}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return i.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return i.GraphQLID}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return i.specifiedDirectives}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return i.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return i.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return i.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return i.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return i.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return i.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return i.TypeNameMetaFieldDef}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return i.__Schema}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return i.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return i.__DirectiveLocation}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return i.__Type}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return i.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return i.__InputValue}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return i.__EnumValue}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return i.__TypeKind}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}});var o=n(244);Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return o.Source}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return o.getLocation}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return o.parseValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return o.parseType}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return o.print}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return o.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return o.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return o.visitWithTypeInfo}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return o.getVisitFn}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return o.Kind}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return o.TokenKind}}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return o.BREAK}});var a=n(162);Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return a.execute}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return a.defaultFieldResolver}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return a.responsePathAsArray}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return a.getDirectiveValues}});var u=n(245);Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return u.subscribe}}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return u.createSourceEventStream}});var l=n(248);Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return l.validate}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return l.ValidationContext}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return l.specifiedRules}}),Object.defineProperty(t,"ArgumentsOfCorrectTypeRule",{enumerable:!0,get:function(){return l.ArgumentsOfCorrectTypeRule}}),Object.defineProperty(t,"DefaultValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return l.DefaultValuesOfCorrectTypeRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return l.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return l.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return l.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return l.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return l.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return l.KnownTypeNamesRule}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return l.LoneAnonymousOperationRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return l.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return l.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return l.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return l.NoUnusedVariablesRule}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return l.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return l.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"ProvidedNonNullArgumentsRule",{enumerable:!0,get:function(){return l.ProvidedNonNullArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return l.ScalarLeafsRule}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return l.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return l.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return l.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return l.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return l.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return l.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return l.UniqueVariableNamesRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return l.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return l.VariablesInAllowedPositionRule}});var s=n(0);Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return s.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return s.formatError}});var c=n(163);Object.defineProperty(t,"introspectionQuery",{enumerable:!0,get:function(){return c.introspectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return c.getOperationAST}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return c.buildClientSchema}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return c.buildASTSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return c.buildSchema}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return c.extendSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return c.printSchema}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return c.printIntrospectionSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return c.printType}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return c.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return c.valueFromAST}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return c.astFromValue}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return c.TypeInfo}}),Object.defineProperty(t,"isValidJSValue",{enumerable:!0,get:function(){return c.isValidJSValue}}),Object.defineProperty(t,"isValidLiteralValue",{enumerable:!0,get:function(){return c.isValidLiteralValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return c.concatAST}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return c.separateOperations}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return c.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return c.isTypeSubTypeOf}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return c.doTypesOverlap}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return c.assertValidName}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return c.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return c.findDangerousChanges}}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return c.BreakingChangeType}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return c.DangerousChangeType}}),Object.defineProperty(t,"findDeprecatedUsages",{enumerable:!0,get:function(){return c.findDeprecatedUsages}})},function(e,t,n){"use strict";e.exports=n(209)},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 u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(u.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),s=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(165);var f=/[&<>"]/,p=/[&<>"]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function h(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var v=n(90);t.lib={},t.lib.mdurl=n(166),t.lib.ucmicro=n(270),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(u,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,function(e,t,n){return t||function(e,t){var n=0;return i(c,t)?c[t]:35===t.charCodeAt(0)&&s.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 f.test(e)?e.replace(p,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 v.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){var r;r=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,u=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),s=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),p=/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),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),k=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var _=y&&(s||f&&(null==w||w<12.11)),T=n||a&&u>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var x,O=function(e,t){var n=e.className,r=E(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function S(e,t){return C(e).appendChild(t)}function N(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function L(e,t,n,r){var i=N(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(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 A(){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;E(t).test(n)||(e.className+=(n?" ":"")+t)}function F(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!E(n[r]).test(t)&&(t+=" "+n[r]);return t}x=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 M(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 u=e.indexOf("\t",o);if(u<0||u>=t)return a+(t-o);a+=u-o,a+=n-a%n,o=u+1}}m?j=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(j=function(e){try{e.select()}catch(e){}});var V=function(){this.id=null};function Q(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}V.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var G=30,q={toString:function(){return"CodeMirror.Pass"}},U={scroll:!1},B={origin:"*mouse"},z={origin:"+move"};function H(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 K=[""];function W(e){for(;K.length<=e;)K.push(Y(K)+" ");return K[e]}function Y(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function $(){}function Z(e,t){var n;return Object.create?n=Object.create(e):($.prototype=e,n=new $),t&&P(t,n),n}var X=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||X.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var re=/[\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 ie(e){return e.charCodeAt(0)>=768&&re.test(e)}function oe(e,t,n){for(;(n<0?t>0:t<e.length)&&ie(e.charAt(t));)t+=n;return t}function ae(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}}function ue(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 le(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 se(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function ce(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function fe(e){if(null==e.parent)return null;for(var t=e.parent,n=Q(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 pe(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 u=e.lines[a].height;if(t<u)break;t-=u}return n+a}function de(e,t){return t>=e.first&&t<e.first+e.size}function he(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function me(e,t,n){if(void 0===n&&(n=null),!(this instanceof me))return new me(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ve(e,t){return e.line-t.line||e.ch-t.ch}function ge(e,t){return e.sticky==t.sticky&&0==ve(e,t)}function ye(e){return me(e.line,e.ch)}function be(e,t){return ve(e,t)<0?t:e}function ke(e,t){return ve(e,t)<0?e:t}function we(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function _e(e,t){if(t.line<e.first)return me(e.first,0);var n=e.first+e.size-1;return t.line>n?me(n,ue(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?me(e.line,t):n<0?me(e.line,0):e}(t,ue(e,t.line).text.length)}function Te(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=_e(e,t[r]);return n}var Ee=!1,xe=!1;function Oe(e,t,n){this.marker=e,this.from=t,this.to=n}function Ce(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Se(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Ne(e,t){if(t.full)return null;var n=de(e,t.from.line)&&ue(e,t.from.line).markedSpans,r=de(e,t.to.line)&&ue(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ve(t.from,t.to),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.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var u=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Oe(a,o.from,u?null:o.to))}}return r}(n,i,a),l=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 u=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Oe(a,u?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),s=1==t.text.length,c=Y(t.text).length+(s?i:0);if(u)for(var f=0;f<u.length;++f){var p=u[f];if(null==p.to){var d=Ce(l,p.marker);d?s&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];if(null!=m.to&&(m.to+=c),null==m.from)Ce(u,m.marker)||(m.from=c,s&&(u||(u=[])).push(m));else m.from+=c,s&&(u||(u=[])).push(m)}u&&(u=Le(u)),l&&l!=u&&(l=Le(l));var v=[u];if(!s){var g,y=t.text.length-2;if(y>0&&u)for(var b=0;b<u.length;++b)null==u[b].to&&(g||(g=[])).push(new Oe(u[b].marker,null,null));for(var k=0;k<y;++k)v.push(g);v.push(l)}return v}function Le(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 De(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ae(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Ie(e){return e.inclusiveLeft?-1:0}function Fe(e){return e.inclusiveRight?1:0}function je(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ve(r.from,i.from)||Ie(e)-Ie(t);if(o)return-o;var a=ve(r.to,i.to)||Fe(e)-Fe(t);return a||t.id-e.id}function Me(e,t){var n,r=xe&&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||je(n,i.marker)<0)&&(n=i.marker);return n}function Pe(e){return Me(e,!0)}function Re(e){return Me(e,!1)}function Ve(e,t,n,r,i){var o=ue(e,t),a=xe&&o.markedSpans;if(a)for(var u=0;u<a.length;++u){var l=a[u];if(l.marker.collapsed){var s=l.marker.find(0),c=ve(s.from,n)||Ie(l.marker)-Ie(i),f=ve(s.to,r)||Fe(l.marker)-Fe(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ve(s.to,n)>=0:ve(s.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ve(s.from,r)<=0:ve(s.from,r)<0)))return!0}}}function Qe(e){for(var t;t=Pe(e);)e=t.find(-1,!0).line;return e}function Ge(e,t){var n=ue(e,t),r=Qe(n);return n==r?t:fe(r)}function qe(e,t){if(t>e.lastLine())return t;var n,r=ue(e,t);if(!Ue(e,r))return t;for(;n=Re(r);)r=n.find(1,!0).line;return fe(r)+1}function Ue(e,t){var n=xe&&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&&Be(e,t,r))return!0}}function Be(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Be(e,r.line,Ce(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)&&Be(e,t,i))return!0}function ze(e){for(var t=0,n=(e=Qe(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 u=o.children[a];if(u==n)break;t+=u.height}return t}function He(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Pe(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Re(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 Ke(e){var t=e.display,n=e.doc;t.maxLine=ue(n,n.first),t.maxLineLength=He(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=He(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var We=null;function Ye(e,t,n){var r;We=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:We=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:We=i)}return null!=r?r:We}var Je=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function u(e,t,n){this.level=e,this.from=t,this.to=n}return function(l,s){var c="ltr"==s?"L":"R";if(0==l.length||"ltr"==s&&!n.test(l))return!1;for(var f,p=l.length,d=[],h=0;h<p;++h)d.push((f=l.charCodeAt(h))<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":8204==f?"b":"L");for(var m=0,v=c;m<p;++m){var g=d[m];"m"==g?d[m]=v:v=g}for(var y=0,b=c;y<p;++y){var k=d[y];"1"==k&&"r"==b?d[y]="n":i.test(k)&&(b=k,"r"==k&&(d[y]="R"))}for(var w=1,_=d[0];w<p-1;++w){var T=d[w];"+"==T&&"1"==_&&"1"==d[w+1]?d[w]="1":","!=T||_!=d[w+1]||"1"!=_&&"n"!=_||(d[w]=_),_=T}for(var E=0;E<p;++E){var x=d[E];if(","==x)d[E]="N";else if("%"==x){var O=void 0;for(O=E+1;O<p&&"%"==d[O];++O);for(var C=E&&"!"==d[E-1]||O<p&&"1"==d[O]?"1":"N",S=E;S<O;++S)d[S]=C;E=O-1}}for(var N=0,L=c;N<p;++N){var D=d[N];"L"==L&&"1"==D?d[N]="L":i.test(D)&&(L=D)}for(var A=0;A<p;++A)if(r.test(d[A])){var I=void 0;for(I=A+1;I<p&&r.test(d[I]);++I);for(var F="L"==(A?d[A-1]:c),j=F==("L"==(I<p?d[I]:c))?F?"L":"R":c,M=A;M<I;++M)d[M]=j;A=I-1}for(var P,R=[],V=0;V<p;)if(o.test(d[V])){var Q=V;for(++V;V<p&&o.test(d[V]);++V);R.push(new u(0,Q,V))}else{var G=V,q=R.length;for(++V;V<p&&"L"!=d[V];++V);for(var U=G;U<V;)if(a.test(d[U])){G<U&&R.splice(q,0,new u(1,G,U));var B=U;for(++U;U<V&&a.test(d[U]);++U);R.splice(q,0,new u(2,B,U)),G=U}else++U;G<V&&R.splice(q,0,new u(1,G,V))}return"ltr"==s&&(1==R[0].level&&(P=l.match(/^\s+/))&&(R[0].from=P[0].length,R.unshift(new u(0,0,P[0].length))),1==Y(R).level&&(P=l.match(/\s+$/))&&(Y(R).to-=P[0].length,R.push(new u(0,p-P[0].length,p)))),"rtl"==s?R.reverse():R}}();function $e(e,t){var n=e.order;return null==n&&(n=e.order=Je(e.text,t)),n}var Ze=[],Xe=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]||Ze).concat(n)}};function et(e,t){return e._handlers&&e._handlers[t]||Ze}function tt(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=Q(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function nt(e,t){var n=et(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 rt(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),nt(e,n||t.type,e,t),st(t)||t.codemirrorIgnore}function it(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==Q(n,t[r])&&n.push(t[r])}function ot(e,t){return et(e,t).length>0}function at(e){e.prototype.on=function(e,t){Xe(this,e,t)},e.prototype.off=function(e,t){tt(this,e,t)}}function ut(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function lt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function st(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ct(e){ut(e),lt(e)}function ft(e){return e.target||e.srcElement}function pt(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var dt,ht,mt=function(){if(a&&u<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function vt(e){if(null==dt){var t=N("span","​");S(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(dt=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&u<8))}var n=dt?N("span","​"):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function gt(e){if(null!=ht)return ht;var t=S(e,document.createTextNode("AخA")),n=x(t,0,1).getBoundingClientRect(),r=x(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(ht=r.right-n.right<3)}var yt,bt=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/)},kt=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)},wt="oncopy"in(yt=N("div"))||(yt.setAttribute("oncopy","return;"),"function"==typeof yt.oncopy),_t=null;var Tt={},Et={};function xt(e){if("string"==typeof e&&Et.hasOwnProperty(e))e=Et[e];else if(e&&"string"==typeof e.name&&Et.hasOwnProperty(e.name)){var t=Et[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return xt("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return xt("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ot(e,t){t=xt(t);var n=Tt[t.name];if(!n)return Ot(e,"text/plain");var r=n(e,t);if(Ct.hasOwnProperty(t.name)){var i=Ct[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 Ct={};function St(e,t){P(t,Ct.hasOwnProperty(e)?Ct[e]:Ct[e]={})}function Nt(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 Lt(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 Dt(e,t,n){return!e.startState||e.startState(t,n)}var At=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};At.prototype.eol=function(){return this.pos>=this.string.length},At.prototype.sol=function(){return this.pos==this.lineStart},At.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},At.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},At.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},At.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},At.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},At.prototype.skipToEnd=function(){this.pos=this.string.length},At.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},At.prototype.backUp=function(e){this.pos-=e},At.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)},At.prototype.indentation=function(){return R(this.string,null,this.tabSize)-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},At.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},At.prototype.current=function(){return this.string.slice(this.start,this.pos)},At.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},At.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},At.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var It=function(e,t){this.state=e,this.lookAhead=t},Ft=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 jt(e,t,n,r){var i=[e.state.modeGen],o={};Bt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,u=function(r){n.baseTokens=i;var u=e.state.overlays[r],l=1,s=0;n.state=!0,Bt(e,t.text,u.mode,n,function(e,t){for(var n=l;s<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,s=Math.min(e,r)}if(t)if(u.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)u(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Mt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Pt(e,fe(t)),i=t.text.length>e.options.maxHighlightLength&&Nt(e.doc.mode,r.state),o=jt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Pt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Ft(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),u=t;u>a;--u){if(u<=o.first)return o.first;var l=ue(o,u-1),s=l.stateAfter;if(s&&(!n||u+(s instanceof It?s.lookAhead:0)<=o.modeFrontier))return u;var c=R(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=u-1,r=c)}return i}(e,t,n),a=o>r.first&&ue(r,o-1).stateAfter,u=a?Ft.fromSaved(r,a,o):new Ft(r,Dt(r.mode),o);return r.iter(o,t,function(n){Rt(e,n.text,u);var r=u.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?u.save():null,u.nextLine()}),n&&(r.modeFrontier=u.line),u}function Rt(e,t,n,r){var i=e.doc.mode,o=new At(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Vt(i,n.state);!o.eol();)Qt(i,o,n.state),o.start=o.pos}function Vt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Lt(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Qt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Lt(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.")}Ft.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ft.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}},Ft.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ft.fromSaved=function(e,t,n){return t instanceof It?new Ft(e,Nt(e.mode,t.state),n,t.lookAhead):new Ft(e,Nt(e.mode,t),n)},Ft.prototype.save=function(e){var t=!1!==e?Nt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new It(t,this.maxLookAhead):t};var Gt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function qt(e,t,n,r){var i,o,a=e.doc,u=a.mode,l=ue(a,(t=_e(a,t)).line),s=Pt(e,t.line,n),c=new At(l.text,e.options.tabSize,s);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=Qt(u,c,s.state),r&&o.push(new Gt(c,i,Nt(a.mode,s.state)));return r?o:new Gt(c,i,s.state)}function Ut(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 Bt(e,t,n,r,i,o,a){var u=n.flattenSpans;null==u&&(u=e.options.flattenSpans);var l,s=0,c=null,f=new At(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&Ut(Vt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(u=!1,a&&Rt(e,t,r,f.pos),f.pos=t.length,l=null):l=Ut(Qt(n,f,r.state,p),o),p){var d=p[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!u||c!=l){for(;s<f.start;)i(s=Math.min(f.start,s+5e3),c);c=l}f.start=f.pos}for(;s<f.pos;){var h=Math.min(f.pos,s+5e3);i(h,c),s=h}}var zt=function(e,t,n){this.text=e,Ae(this,t),this.height=n?n(this):1};function Ht(e){e.parent=null,De(e)}zt.prototype.lineNo=function(){return fe(this)},at(zt);var Kt={},Wt={};function Yt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Wt:Kt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Jt(e,t){var n=L("span",null,null,l?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(a||l)&&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,u=void 0;r.pos=0,r.addToken=Zt,gt(e.display.measure)&&(u=$e(o,e.doc.direction))&&(r.addToken=Xt(r.addToken,u)),r.map=[],tn(o,r,Mt(e,o,t!=e.display.externalMeasured&&fe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=F(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=F(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(vt(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return nt(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function $t(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,i,o,l){if(t){var s,c=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,f=e.cm.state.specialChars,p=!1;if(f.test(t)){s=document.createDocumentFragment();for(var d=0;;){f.lastIndex=d;var h=f.exec(t),m=h?h.index-d:t.length-d;if(m){var v=document.createTextNode(c.slice(d,d+m));a&&u<9?s.appendChild(N("span",[v])):s.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;d+=m+1;var g=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(g=s.appendChild(N("span",W(b),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((g=s.appendChild(N("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&u<9?s.appendChild(N("span",[g])):s.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,s=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,s),a&&u<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||p||l){var k=n||"";r&&(k+=r),i&&(k+=i);var w=N("span",[s],k,l);return o&&(w.title=o),e.content.appendChild(w)}e.content.appendChild(s)}}function Xt(e,t){return function(n,r,i,o,a,u,l){i=i?i+" cm-force-border":"cm-force-border";for(var s=n.pos,c=s+r.length;;){for(var f=void 0,p=0;p<t.length&&!((f=t[p]).to>s&&f.from<=s);p++);if(f.to>=c)return e(n,r,i,o,a,u,l);e(n,r.slice(0,f.to-s),i,o,null,u,l),o=null,r=r.slice(f.to-s),s=f.to}}}function en(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 tn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,u,l,s,c,f,p,d=i.length,h=0,m=1,v="",g=0;;){if(g==h){l=s=c=f=u="",p=null,g=1/0;for(var y=[],b=void 0,k=0;k<r.length;++k){var w=r[k],_=w.marker;"bookmark"==_.type&&w.from==h&&_.widgetNode?y.push(_):w.from<=h&&(null==w.to||w.to>h||_.collapsed&&w.to==h&&w.from==h)?(null!=w.to&&w.to!=h&&g>w.to&&(g=w.to,s=""),_.className&&(l+=" "+_.className),_.css&&(u=(u?u+";":"")+_.css),_.startStyle&&w.from==h&&(c+=" "+_.startStyle),_.endStyle&&w.to==g&&(b||(b=[])).push(_.endStyle,w.to),_.title&&!f&&(f=_.title),_.collapsed&&(!p||je(p.marker,_)<0)&&(p=w)):w.from>h&&g>w.from&&(g=w.from)}if(b)for(var T=0;T<b.length;T+=2)b[T+1]==g&&(s+=" "+b[T]);if(!p||p.from==h)for(var E=0;E<y.length;++E)en(t,0,y[E]);if(p&&(p.from||0)==h){if(en(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 x=Math.min(d,g);;){if(v){var O=h+v.length;if(!p){var C=O>x?v.slice(0,x-h):v;t.addToken(t,C,a?a+l:l,c,h+C.length==g?s:"",f,u)}if(O>=x){v=v.slice(x-h),h=x;break}h=O,c=""}v=i.slice(o,o=n[m++]),a=Yt(n[m++],t.cm.options)}}else for(var S=1;S<n.length;S+=2)t.addToken(t,i.slice(o,o=n[S]),Yt(n[S+1],t.cm.options))}function nn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Re(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?fe(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ue(e,t)}function rn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new nn(e.doc,ue(e.doc,o),o);r=o+a.size,i.push(a)}return i}var on=null;var an=null;function un(e,t){var n=et(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);on?r=on.delayedCallbacks:an?r=an:(r=an=[],setTimeout(ln,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function ln(){var e=an;an=null;for(var t=0;t<e.length;++t)e[t]()}function sn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?pn(e,t):"gutter"==o?hn(e,t,n,r):"class"==o?dn(e,t):"widget"==o&&mn(e,t,r)}t.changes=null}function cn(e){return e.node==e.text&&(e.node=N("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&u<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):Jt(e,t)}function pn(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,dn(e,t)):n&&(t.text.className=n)}function dn(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=cn(t);t.background=r.insertBefore(N("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?cn(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 hn(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=cn(t);t.gutterBackground=N("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=cn(t),u=t.gutter=N("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(u),a.insertBefore(u,t.text),t.line.gutterClass&&(u.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=u.appendChild(N("div",he(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.options.gutters.length;++l){var s=e.options.gutters[l],c=o.hasOwnProperty(s)&&o[s];c&&u.appendChild(N("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[s]+"px; width: "+r.gutterWidth[s]+"px"))}}}function mn(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);gn(e,t,n)}function vn(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),dn(e,t),hn(e,t,n,r),gn(e,t,r),t.node}function gn(e,t,n){if(yn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)yn(e,t.rest[r],t,n,!1)}function yn(e,t,n,r,i){if(t.widgets)for(var o=cn(n),a=0,u=t.widgets;a<u.length;++a){var l=u[a],s=N("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||s.setAttribute("cm-ignore-events","true"),bn(l,s,n,r),e.display.input.setUneditable(s),i&&l.above?o.insertBefore(s,n.gutter||n.text):o.appendChild(s),un(l,"redraw")}}function bn(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 kn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(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;"),S(t.display.measure,N("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function wn(e,t){for(var n=ft(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 _n(e){return e.lineSpace.offsetTop}function Tn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function En(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=S(e.measure,N("pre","x")),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 xn(e){return G-e.display.nativeBarWidth}function On(e){return e.display.scroller.clientWidth-xn(e)-e.display.barWidth}function Cn(e){return e.display.scroller.clientHeight-xn(e)-e.display.barHeight}function Sn(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(fe(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Nn(e,t,n,r){return An(e,Dn(e,t),n,r)}function Ln(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ur(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Dn(e,t){var n=fe(t),r=Ln(e,n);r&&!r.text?r=null:r&&r.changes&&(sn(e,r,n,nr(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=fe(t=Qe(t)),r=e.display.externalMeasured=new nn(e.doc,t,n);r.lineN=n;var i=r.built=Jt(e,r);return r.text=i.pre,S(e.display.lineMeasure,i.pre),r}(e,t));var i=Sn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function An(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,n){var r=e.options.lineWrapping,i=r&&On(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(),u=0;u<a.length-1;u++){var l=a[u],s=a[u+1];Math.abs(l.bottom-s.bottom)>2&&o.push((l.bottom+s.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=jn(t.map,n,r),l=o.node,s=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;s&&ie(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+c<o.coverEnd&&ie(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&u<9&&0==s&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():Mn(x(l,s,c).getClientRects(),r)).left||i.right||0==s)break;c=s,s-=1,f="right"}a&&u<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=_t)return _t;var t=S(e,N("span","x")),n=t.getBoundingClientRect(),r=x(t,0,1).getBoundingClientRect();return _t=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;s>0&&(f=r="right"),i=e.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==r?d.length-1:0]:l.getBoundingClientRect()}if(a&&u<9&&!s&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+tr(e.display),top:h.top,bottom:h.bottom}:Fn}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(g<y[b]);b++);var k=b?y[b-1]:0,w=y[b],_={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:k,bottom:w};i.left||i.right||(_.bogus=!0);e.options.singleCursorHeightPerLine||(_.rtop=m,_.rbottom=v);return _}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var In,Fn={left:0,right:0,top:0,bottom:0};function jn(e,t,n){for(var r,i,o,a,u,l,s=0;s<e.length;s+=3)if(u=e[s],l=e[s+1],t<u?(i=0,o=1,a="left"):t<l?o=(i=t-u)+1:(s==e.length-3||t==l&&e[s+3]>t)&&(i=(o=l-u)-1,t>=l&&(a="right")),null!=i){if(r=e[s+2],u==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)r=e[2+(s-=3)],a="left";if("right"==n&&i==l-u)for(;s<e.length-3&&e[s+3]==e[s+4]&&!e[s+5].insertLeft;)r=e[(s+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:u,coverEnd:l}}function Mn(e,t){var n=Fn;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 Pn(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 Rn(e){e.display.externalMeasure=null,C(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Pn(e.display.view[t])}function Vn(e){Rn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Qn(){return c&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Gn(){return c&&v?-(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+=kn(e.widgets[n]));return t}function Un(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=ze(t);if("local"==r?a+=_n(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var u=e.display.lineSpace.getBoundingClientRect();a+=u.top+("window"==r?0:Gn());var l=u.left+("window"==r?0:Qn());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Bn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Qn(),i-=Gn();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 zn(e,t,n,r,i){return r||(r=ue(e.doc,t.line)),Un(e,r,Nn(e,r,t.ch,i),n)}function Hn(e,t,n,r,i,o){function a(t,a){var u=An(e,i,t,a?"right":"left",o);return a?u.left=u.right:u.right=u.left,Un(e,r,u,n)}r=r||ue(e.doc,t.line),i||(i=Dn(e,r));var u=$e(r,e.doc.direction),l=t.ch,s=t.sticky;if(l>=r.text.length?(l=r.text.length,s="before"):l<=0&&(l=0,s="after"),!u)return a("before"==s?l-1:l,"before"==s);function c(e,t,n){var r=1==u[t].level;return a(n?e-1:e,r!=n)}var f=Ye(u,l,s),p=We,d=c(l,f,"before"==s);return null!=p&&(d.other=c(l,p,"before"!=s)),d}function Kn(e,t){var n=0;t=_e(e.doc,t),e.options.lineWrapping||(n=tr(e.display)*t.ch);var r=ue(e.doc,t.line),i=ze(r)+_n(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Wn(e,t,n,r,i){var o=me(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function Yn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Wn(r.first,0,null,!0,-1);var i=pe(r,n),o=r.first+r.size-1;if(i>o)return Wn(r.first+r.size-1,ue(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=ue(r,i);;){var u=Xn(e,a,i,t,n),l=Re(a),s=l&&l.find(0,!0);if(!l||!(u.ch>s.from.ch||u.ch==s.from.ch&&u.xRel>0))return u;i=fe(a=s.to.line)}}function Jn(e,t,n,r){r-=qn(t);var i=t.text.length,o=ae(function(t){return An(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=ae(function(t){return An(e,n,t).top>r},o,i)}}function $n(e,t,n,r){return n||(n=Dn(e,t)),Jn(e,t,n,Un(e,t,An(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 Xn(e,t,n,r,i){i-=ze(t);var o=Dn(e,t),a=qn(t),u=0,l=t.text.length,s=!0,c=$e(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?function(e,t,n,r,i,o,a){var u=Jn(e,t,r,a),l=u.begin,s=u.end;/\s/.test(t.text.charAt(s-1))&&s--;for(var c=null,f=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=s||d.to<=l)){var h=1!=d.level,m=An(e,r,h?Math.min(s,d.to)-1:Math.max(l,d.from)).right,v=m<o?o-m+1e9:m-o;(!c||f>v)&&(c=d,f=v)}}c||(c=i[i.length-1]);c.from<l&&(c={from:l,to:c.to,level:c.level});c.to>s&&(c={from:c.from,to:s,level:c.level});return c}:function(e,t,n,r,i,o,a){var u=ae(function(u){var l=i[u],s=1!=l.level;return Zn(Hn(e,me(n,s?l.to:l.from,s?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[u];if(u>0){var s=1!=l.level,c=Hn(e,me(n,s?l.from:l.to,s?"after":"before"),"line",t,r);Zn(c,o,a,!0)&&c.top>a&&(l=i[u-1])}return l})(e,t,n,o,c,r,i);u=(s=1!=f.level)?f.from:f.to-1,l=s?f.to:f.from-1}var p,d,h=null,m=null,v=ae(function(t){var n=An(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)},u,l),g=!1;if(m){var y=r-m.left<m.right-r,b=y==s;v=h+(b?0:1),d=b?"after":"before",p=y?m.left:m.right}else{s||v!=l&&v!=u||v++,d=0==v?"after":v==t.text.length?"before":An(e,o,v-(s?1:0)).bottom+a<=i==s?"after":"before";var k=Hn(e,me(n,v,d),"line",t,o);p=k.left,g=i<k.top||i>=k.bottom}return Wn(n,v=oe(t.text,v,1),d,g,r-p)}function er(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==In){In=N("pre");for(var t=0;t<49;++t)In.appendChild(document.createTextNode("x")),In.appendChild(N("br"));In.appendChild(document.createTextNode("x"))}S(e.measure,In);var n=In.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function tr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t]);S(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function nr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:rr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function rr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ir(e){var t=er(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/tr(e.display)-3);return function(i){if(Ue(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 or(e){var t=e.doc,n=ir(e);t.iter(function(e){var t=n(e);t!=e.height&&ce(e,t)})}function ar(e,t,n,r){var i=e.display;if(!n&&"true"==ft(t).getAttribute("cm-not-content"))return null;var o,a,u=i.lineSpace.getBoundingClientRect();try{o=t.clientX-u.left,a=t.clientY-u.top}catch(t){return null}var l,s=Yn(e,o,a);if(r&&1==s.xRel&&(l=ue(e.doc,s.line).text).length==s.ch){var c=R(l,l.length,e.options.tabSize)-l.length;s=me(s.line,Math.max(0,Math.round((o-En(e.display).left)/tr(e.display))-c))}return s}function ur(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function lr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function sr(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 u=n.sel.ranges[a];if(!(u.from().line>=e.display.viewTo||u.to().line<e.display.viewFrom)){var l=u.empty();(l||e.options.showCursorWhenSelecting)&&cr(e,u.head,i),l||pr(e,u,o)}}return r}function cr(e,t,n){var r=Hn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(N("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(N("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 fr(e,t){return e.top-t.top||e.left-t.left}function pr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=En(e.display),u=a.left,l=Math.max(r.sizerWidth,On(e)-r.sizer.offsetLeft)-a.right,s="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n                             height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=ue(i,t),p=f.text.length;function d(n,r){return zn(e,me(t,n),"div",f,r)}function h(t,n,r){var i=$n(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var m=$e(f,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?p:r,function(e,t,i,f){var v="ltr"==i,g=d(e,v?"left":"right"),y=d(t-1,v?"right":"left"),b=null==n&&0==e,k=null==r&&t==p,w=0==f,_=!m||f==m.length-1;if(y.top-g.top<=3){var T=(s?k:b)&&_,E=(s?b:k)&&w?u:(v?g:y).left,x=T?l:(v?y:g).right;c(E,g.top,x-E,g.bottom)}else{var O,C,S,N;v?(O=s&&b&&w?u:g.left,C=s?l:h(e,i,"before"),S=s?u:h(t,i,"after"),N=s&&k&&_?l:y.right):(O=s?h(e,i,"before"):u,C=!s&&b&&w?l:g.right,S=!s&&k&&_?u:y.left,N=s?h(t,i,"after"):l),c(O,g.top,C-O,g.bottom),g.bottom<y.top&&c(u,g.bottom,null,y.top),c(S,y.top,N-S,y.bottom)}(!o||fr(g,o)<0)&&(o=g),fr(y,o)<0&&(o=y),(!a||fr(g,a)<0)&&(a=g),fr(y,a)<0&&(a=y)}),{start:o,end:a}}var p=t.from(),d=t.to();if(p.line==d.line)f(p.line,p.ch,d.ch);else{var h=ue(i,p.line),m=ue(i,d.line),v=Qe(h)==Qe(m),g=f(p.line,p.ch,v?h.text.length+1:null).end,y=f(d.line,v?0:null,d.ch).start;v&&(g.top<y.top-2?(c(g.right,g.top,null,g.bottom),c(u,y.top,y.left,y.bottom)):c(g.right,g.top,y.left-g.right,g.bottom)),g.bottom<y.top&&c(u,g.bottom,null,y.top)}n.appendChild(o)}function dr(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(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function hr(e){e.state.focused||(e.display.input.focus(),vr(e))}function mr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,gr(e))},100)}function vr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(nt(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(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),dr(e))}function gr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(nt(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function yr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=void 0;if(!i.hidden){if(a&&u<8){var l=i.node.offsetTop+i.node.offsetHeight;o=l-n,n=l}else{var s=i.node.getBoundingClientRect();o=s.bottom-s.top}var c=i.line.height-o;if(o<2&&(o=er(t)),(c>.005||c<-.005)&&(ce(i.line,o),br(i.line),i.rest))for(var f=0;f<i.rest.length;f++)br(i.rest[f])}}}function br(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 kr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-_n(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=pe(t,r),a=pe(t,i);if(n&&n.ensure){var u=n.ensure.from.line,l=n.ensure.to.line;u<o?(o=u,a=pe(t,ze(ue(t,u))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=pe(t,ze(ue(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function wr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=rr(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 u=n[a].alignable;if(u)for(var l=0;l<u.length;l++)u[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function _r(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=he(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(N("div",[N("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",ui(e),!0}return!1}function Tr(e,t){var n=e.display,r=er(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Cn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var u=e.doc.height+Tn(n),l=t.top<r,s=t.bottom>u-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(s?u:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=On(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function Er(e,t){null!=t&&(Cr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function xr(e){Cr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Or(e,t,n){null==t&&null==n||Cr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Cr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Sr(e,Kn(e,t.from),Kn(e,t.to),t.margin))}function Sr(e,t,n,r){var i=Tr(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});Or(e,i.scrollLeft,i.scrollTop)}function Nr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ai(e,{top:t}),Lr(e,t,!0),n&&ai(e),ti(e,100))}function Lr(e,t,n){t=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 Dr(e,t,n,r){t=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,wr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ar(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Tn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+xn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ir=function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(i),Xe(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Xe(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ir.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}},Ir.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ir.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ir.prototype.zeroWidthHack=function(){var e=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Ir.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)})},Ir.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Fr=function(){};function jr(e,t){t||(t=Ar(e));var n=e.display.barWidth,r=e.display.barHeight;Mr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&yr(e),Mr(e,Ar(e)),n=e.display.barWidth,r=e.display.barHeight}function Mr(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=""}Fr.prototype.update=function(){return{bottom:0,right:0}},Fr.prototype.setScrollLeft=function(){},Fr.prototype.setScrollTop=function(){},Fr.prototype.clear=function(){};var Pr={native:Ir,null:Fr};function Rr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Pr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Xe(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?Dr(e,t):Nr(e,t)},e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Vr=0;function Qr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vr},t=e.curOp,on?on.ops.push(t):t.ownsGroup=on={ops:[t],delayedCallbacks:[]}}function Gr(e){!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{on=null,t(n)}}(e.curOp,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++)qr(t[n]);for(var r=0;r<t.length;r++)(i=t[r]).updatedDisplay=i.mustUpdate&&ii(i.cm,i.update);var i;for(var o=0;o<t.length;o++)Ur(t[o]);for(var a=0;a<t.length;a++)Br(t[a]);for(var u=0;u<t.length;u++)zr(t[u])}(e)})}function qr(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=xn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=xn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Ke(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 ri(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ur(e){var t=e.cm,n=t.display;e.updatedDisplay&&yr(t),e.barMeasure=Ar(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Nn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+xn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-On(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Br(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Dr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==A();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&jr(t,e.barMeasure),e.updatedDisplay&&li(t,e.barMeasure),e.selectionChanged&&dr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&hr(e.cm)}function zr(e){var t=e.cm,n=t.display,r=t.doc;(e.updatedDisplay&&oi(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&&Dr(t,e.scrollLeft,!0,!0),e.scrollToPos)&&function(e,t){if(!rt(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=N("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-_n(e.display))+"px;\n                         height: "+(t.bottom-t.top+xn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(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?me(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?me(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,u=Hn(e,t),l=n&&n!=t?Hn(e,n):u,s=Tr(e,i={left:Math.min(u.left,l.left),top:Math.min(u.top,l.top)-r,right:Math.max(u.left,l.left),bottom:Math.max(u.bottom,l.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=s.scrollTop&&(Nr(e,s.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=s.scrollLeft&&(Dr(e,s.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,_e(r,e.scrollToPos.from),_e(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||nt(i[a],"hide");if(o)for(var u=0;u<o.length;++u)o[u].lines.length&&nt(o[u],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&nt(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Hr(e,t){if(e.curOp)return t();Qr(e);try{return t()}finally{Gr(e)}}function Kr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Qr(e);try{return t.apply(e,arguments)}finally{Gr(e)}}}function Wr(e){return function(){if(this.curOp)return e.apply(this,arguments);Qr(this);try{return e.apply(this,arguments)}finally{Gr(this)}}}function Yr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Qr(t);try{return e.apply(this,arguments)}finally{Gr(t)}}}function Jr(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)xe&&Ge(e.doc,t)<i.viewTo&&Zr(e);else if(n<=i.viewFrom)xe&&qe(e.doc,n+r)>i.viewFrom?Zr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Zr(e);else if(t<=i.viewFrom){var o=Xr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Zr(e)}else if(n>=i.viewTo){var a=Xr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Zr(e)}else{var u=Xr(e,t,t,-1),l=Xr(e,n,n+r,1);u&&l?(i.view=i.view.slice(0,u.index).concat(rn(e,u.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Zr(e)}var s=i.externalMeasured;s&&(n<s.lineN?s.lineN+=r:t<s.lineN+s.size&&(i.externalMeasured=null))}function $r(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[ur(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==Q(a,n)&&a.push(n)}}}function Zr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Xr(e,t,n,r){var i,o=ur(e,t),a=e.display.view;if(!xe||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var u=e.display.viewFrom,l=0;l<o;l++)u+=a[l].size;if(u!=t){if(r>0){if(o==a.length-1)return null;i=u+a[o].size-t,o++}else i=u-t;t+=i,n+=i}for(;Ge(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 ei(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 ti(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,M(ni,e))}function ni(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Pt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,u=o.text.length>e.options.maxHighlightLength?Nt(t.mode,r.state):null,l=jt(e,o,r,!0);u&&(r.state=u),o.styles=l.styles;var s=o.styleClasses,c=l.classes;c?o.styleClasses=c:s&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||s!=c&&(!s||!c||s.bgClass!=c.bgClass||s.textClass!=c.textClass),p=0;!f&&p<a.length;++p)f=a[p]!=o.styles[p];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Rt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ti(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Hr(e,function(){for(var t=0;t<i.length;t++)$r(e,i[t],"text")})}}var ri=function(e,t,n){var r=e.display;this.viewport=t,this.visible=kr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=On(e),this.force=n,this.dims=nr(e),this.events=[]};function ii(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Zr(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==ei(e))return!1;_r(e)&&(Zr(e),t.dims=nr(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)),xe&&(o=Ge(e.doc,o),a=qe(e.doc,a));var u=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=rn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=rn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ur(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(rn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=ze(ue(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=ei(e);if(!u&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=A();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(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 s>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 u(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var s=r.view,c=r.viewFrom,f=0;f<s.length;f++){var p=s[f];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=u(a);var d=i&&null!=t&&t<=c&&p.lineNumber;p.changes&&(Q(p.changes,"gutter")>-1&&(d=!1),sn(e,p,c,n)),d&&(C(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(he(e.options,c)))),a=p.node.nextSibling}else{var h=vn(e,p,c,n);o.insertBefore(h,a)}c+=p.size}for(;a;)a=u(a)}(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=A()&&(e.activeElt.focus(),e.anchorNode&&D(document.body,e.anchorNode)&&D(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)}}(c),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,u&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ti(e,400)),n.updateLineNumbers=null,!0}function oi(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=On(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Tn(e.display)-Cn(e),n.top)}),t.visible=kr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ii(e,t);r=!1){yr(e);var i=Ar(e);lr(e),jr(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 ai(e,t){var n=new ri(e,t);if(ii(e,n)){yr(e),oi(e,n);var r=Ar(e);lr(e),jr(e,r),li(e,r),n.finish()}}function ui(e){var t=e.display.gutters.offsetWidth;e.display.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+xn(e)+"px"}function si(e){var t=e.display.gutters,n=e.options.gutters;C(t);for(var r=0;r<n.length;++r){var i=n[r],o=t.appendChild(N("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&(e.display.lineGutter=o,o.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=r?"":"none",ui(e)}function ci(e){var t=Q(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}ri.prototype.signal=function(e,t){ot(e,t)&&this.events.push(arguments)},ri.prototype.finish=function(){for(var e=0;e<this.events.length;e++)nt.apply(null,this.events[e])};var fi=0,pi=null;function di(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 hi(e){var t=di(e);return t.x*=pi,t.y*=pi,t}function mi(e,t){var r=di(t),i=r.x,o=r.y,a=e.display,u=a.scroller,s=u.scrollWidth>u.clientWidth,c=u.scrollHeight>u.clientHeight;if(i&&s||o&&c){if(o&&y&&l)e:for(var p=t.target,d=a.view;p!=u;p=p.parentNode)for(var h=0;h<d.length;h++)if(d[h].node==p){e.display.currentWheelTarget=p;break e}if(i&&!n&&!f&&null!=pi)return o&&c&&Nr(e,Math.max(0,u.scrollTop+o*pi)),Dr(e,Math.max(0,u.scrollLeft+i*pi)),(!o||o&&c)&&ut(t),void(a.wheelStartX=null);if(o&&null!=pi){var m=o*pi,v=e.doc.scrollTop,g=v+a.wrapper.clientHeight;m<0?v=Math.max(0,v+m-50):g=Math.min(e.doc.height,g+m+50),ai(e,{top:v,bottom:g})}fi<20&&(null==a.wheelStartX?(a.wheelStartX=u.scrollLeft,a.wheelStartY=u.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout(function(){if(null!=a.wheelStartX){var e=u.scrollLeft-a.wheelStartX,t=u.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(pi=(pi*fi+n)/(fi+1),++fi)}},200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?pi=-.53:n?pi=15:c?pi=-.7:p&&(pi=-1/3);var vi=function(e,t){this.ranges=e,this.primIndex=t};vi.prototype.primary=function(){return this.ranges[this.primIndex]},vi.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(!ge(n.anchor,r.anchor)||!ge(n.head,r.head))return!1}return!0},vi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new gi(ye(this.ranges[t].anchor),ye(this.ranges[t].head));return new vi(e,this.primIndex)},vi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},vi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ve(t,r.from())>=0&&ve(e,r.to())<=0)return n}return-1};var gi=function(e,t){this.anchor=e,this.head=t};function yi(e,t){var n=e[t];e.sort(function(e,t){return ve(e.from(),t.from())}),t=Q(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(ve(o.to(),i.from())>=0){var a=ke(o.from(),i.from()),u=be(o.to(),i.to()),l=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new gi(l?u:a,l?a:u))}}return new vi(e,t)}function bi(e,t){return new vi([new gi(e,t||e)],0)}function ki(e){return e.text?me(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function wi(e,t){if(ve(e,t.from)<0)return e;if(ve(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),me(n,r)}function _i(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new gi(wi(i.anchor,t),wi(i.head,t)))}return yi(n,e.sel.primIndex)}function Ti(e,t,n){return e.line==t.line?me(n.line,e.ch-t.ch+n.ch):me(n.line+(e.line-t.line),e.ch)}function Ei(e){e.doc.mode=Ot(e.options,e.doc.modeOption),xi(e)}function xi(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,ti(e,100),e.state.modeGen++,e.curOp&&Jr(e)}function Oi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Y(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ci(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),De(e),Ae(e,n);var i=r?r(e):1;i!=e.height&&ce(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 zt(s[o],i(o),r));return n}var u=t.from,l=t.to,s=t.text,c=ue(e,u.line),f=ue(e,l.line),p=Y(s),d=i(s.length-1),h=l.line-u.line;if(t.full)e.insert(0,a(0,s.length)),e.remove(s.length,e.size-s.length);else if(Oi(e,t)){var m=a(0,s.length-1);o(f,f.text,d),h&&e.remove(u.line,h),m.length&&e.insert(u.line,m)}else if(c==f)if(1==s.length)o(c,c.text.slice(0,u.ch)+p+c.text.slice(l.ch),d);else{var v=a(1,s.length-1);v.push(new zt(p+c.text.slice(l.ch),d,r)),o(c,c.text.slice(0,u.ch)+s[0],i(0)),e.insert(u.line+1,v)}else if(1==s.length)o(c,c.text.slice(0,u.ch)+s[0]+f.text.slice(l.ch),i(0)),e.remove(u.line+1,h);else{o(c,c.text.slice(0,u.ch)+s[0],i(0)),o(f,p+f.text.slice(l.ch),d);var g=a(1,s.length-1);h>1&&e.remove(u.line+1,h-1),e.insert(u.line+1,g)}un(e,"change",e,t)}function Si(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var u=r.linked[a];if(u.doc!=i){var l=o&&u.sharedHist;n&&!l||(t(u.doc,l),e(u.doc,r,l))}}}(e,null,!0)}function Ni(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,or(e),Ei(e),Li(e),e.options.lineWrapping||Ke(e),e.options.mode=t.modeOption,Jr(e)}function Li(e){("rtl"==e.doc.direction?I:O)(e.display.lineDiv,"CodeMirror-rtl")}function Di(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 Ai(e,t){var n={from:ye(t.from),to:ki(t),text:le(e,t.from,t.to)};return Pi(e,n,t.from.line,t.to.line+1),Si(e,function(e){return Pi(e,n,t.from.line,t.to.line+1)},!0),n}function Ii(e){for(;e.length;){if(!Y(e).ranges)break;e.pop()}}function Fi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,u=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>u-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ii(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}(i,i.lastOp==r)))a=Y(o.changes),0==ve(t.from,t.to)&&0==ve(t.from,a.to)?a.to=ki(t):o.changes.push(Ai(e,t));else{var l=Y(i.done);for(l&&l.ranges||Mi(e.sel,i.done),o={changes:[Ai(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=u,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||nt(e,"historyAdded")}function ji(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,Y(i.done),t))?i.done[i.done.length-1]=t:Mi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ii(i.undone)}function Mi(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Pi(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 Ri(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 Vi(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(Ri(n[i]));return r}(e,t),r=Ne(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 u=0;u<a.length;++u){for(var l=a[u],s=0;s<o.length;++s)if(o[s].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Qi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?vi.prototype.deepCopy.call(o):o);else{var a=o.changes,u=[];r.push({changes:u});for(var l=0;l<a.length;++l){var s=a[l],c=void 0;if(u.push({from:s.from,to:s.to,text:s.text}),t)for(var f in s)(c=f.match(/^spans_(\d+)$/))&&Q(t,Number(c[1]))>-1&&(Y(u)[f]=s[f],delete s[f])}}}return r}function Gi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ve(t,i)<0;o!=ve(n,i)<0?(i=t,t=n):o!=ve(t,n)<0&&(t=n)}return new gi(i,t)}return new gi(n||t,t)}function qi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ki(e,new vi([Gi(e.sel.primary(),t,n,i)],0),r)}function Ui(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]=Gi(e.sel.ranges[o],t[o],null,i);Ki(e,yi(r,e.sel.primIndex),n)}function Bi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Ki(e,yi(i,e.sel.primIndex),r)}function zi(e,t,n,r){Ki(e,bi(t,n),r)}function Hi(e,t,n){var r=e.history.done,i=Y(r);i&&i.ranges?(r[r.length-1]=t,Wi(e,t,n)):Ki(e,t,n)}function Ki(e,t,n){Wi(e,t,n),ji(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Wi(e,t,n){(ot(e,"beforeSelectionChange")||e.cm&&ot(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 gi(_e(e,t[n].anchor),_e(e,t[n].head))},origin:n&&n.origin};return nt(e,"beforeSelectionChange",e,r),e.cm&&nt(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?yi(r.ranges,r.ranges.length-1):t}(e,t,n)),Yi(e,$i(e,t,n&&n.bias||(ve(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||xr(e.cm)}function Yi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,it(e.cm)),un(e,"cursorActivity",e))}function Ji(e){Yi(e,$i(e,e.sel,null,!1))}function $i(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],u=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Xi(e,a.anchor,u&&u.anchor,n,r),s=Xi(e,a.head,u&&u.head,n,r);(i||l!=a.anchor||s!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new gi(l,s))}return i?yi(i,t.primIndex):t}function Zi(e,t,n,r,i){var o=ue(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var u=o.markedSpans[a],l=u.marker;if((null==u.from||(l.inclusiveLeft?u.from<=t.ch:u.from<t.ch))&&(null==u.to||(l.inclusiveRight?u.to>=t.ch:u.to>t.ch))){if(i&&(nt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var s=l.find(r<0?1:-1),c=void 0;if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(s=eo(e,s,-r,s&&s.line==t.line?o:null)),s&&s.line==t.line&&(c=ve(s,n))&&(r<0?c<0:c>0))return Zi(e,s,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(f=eo(e,f,r,f.line==t.line?o:null)),f?Zi(e,f,t,r,i):null}}return t}function Xi(e,t,n,r,i){var o=r||1,a=Zi(e,t,n,o,i)||!i&&Zi(e,t,n,o,!0)||Zi(e,t,n,-o,i)||!i&&Zi(e,t,n,-o,!0);return a||(e.cantEdit=!0,me(e.first,0))}function eo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?_e(e,me(t.line-1)):null:n>0&&t.ch==(r||ue(e,t.line)).text.length?t.line<e.first+e.size-1?me(t.line+1,0):null:new me(t.line,t.ch+n)}function to(e){e.setSelection(me(e.firstLine(),0),me(e.lastLine()),U)}function no(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=_e(e,t)),n&&(r.to=_e(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),nt(e,"beforeChange",e,r),e.cm&&nt(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ro(e,t,n){if(e.cm){if(!e.cm.curOp)return Kr(e.cm,ro)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ot(e,"beforeChange")||e.cm&&ot(e.cm,"beforeChange"))||(t=no(e,t,!0))){var r=Ee&&!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!=Q(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],u=a.find(0),l=0;l<i.length;++l){var s=i[l];if(!(ve(s.to,u.from)<0||ve(s.from,u.to)>0)){var c=[l,1],f=ve(s.from,u.from),p=ve(s.to,u.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:s.from,to:u.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:u.to,to:s.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)io(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else io(e,t)}}function io(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ve(t.from,t.to)){var n=_i(e,t);Fi(e,t,n,e.cm?e.cm.curOp.id:NaN),uo(e,t,n,Ne(e,t));var r=[];Si(e,function(e,n){n||-1!=Q(r,e.history)||(fo(e.history,t),r.push(e.history)),uo(e,t,null,Ne(e,t))})}}function oo(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var r,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,u="undo"==t?i.undone:i.done,l=0;l<a.length&&(r=a[l],n?!r.ranges||r.equals(e.sel):r.ranges);l++);if(l!=a.length){for(i.lastOrigin=i.lastSelOrigin=null;(r=a.pop()).ranges;){if(Mi(r,u),n&&!r.equals(e.sel))return void Ki(e,r,{clearRedo:!1});o=r}var s=[];Mi(o,u),u.push({changes:s,generation:i.generation}),i.generation=r.generation||++i.maxGeneration;for(var c=ot(e,"beforeChange")||e.cm&&ot(e.cm,"beforeChange"),f=function(n){var i=r.changes[n];if(i.origin=t,c&&!no(e,i,!1))return a.length=0,{};s.push(Ai(e,i));var o=n?_i(e,i):Y(a);uo(e,i,o,Vi(e,i)),!n&&e.cm&&e.cm.scrollIntoView({from:i.from,to:ki(i)});var u=[];Si(e,function(e,t){t||-1!=Q(u,e.history)||(fo(e.history,i),u.push(e.history)),uo(e,i,null,Vi(e,i))})},p=r.changes.length-1;p>=0;--p){var d=f(p);if(d)return d.v}}}}function ao(e,t){if(0!=t&&(e.first+=t,e.sel=new vi(J(e.sel.ranges,function(e){return new gi(me(e.anchor.line+t,e.anchor.ch),me(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Jr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)$r(e.cm,r,"gutter")}}function uo(e,t,n,r){if(e.cm&&!e.cm.curOp)return Kr(e.cm,uo)(e,t,n,r);if(t.to.line<e.first)ao(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);ao(e,i),t={from:me(e.first,0),to:me(t.to.line+i,t.to.ch),text:[Y(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:me(o,ue(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=le(e,t.from,t.to),n||(n=_i(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,u=!1,l=o.line;e.options.lineWrapping||(l=fe(Qe(ue(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return u=!0,!0}));r.sel.contains(t.from,t.to)>-1&&it(e);Ci(r,t,n,ir(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=He(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,u=!1)}),u&&(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=ue(e,r).stateAfter;if(i&&(!(i instanceof It)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}})(r,o.line),ti(e,400);var s=t.text.length-(a.line-o.line)-1;t.full?Jr(e):o.line!=a.line||1!=t.text.length||Oi(e.doc,t)?Jr(e,o.line,a.line+1,s):$r(e,o.line,"text");var c=ot(e,"changes"),f=ot(e,"change");if(f||c){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&un(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):Ci(e,t,r),Wi(e,n,U)}}function lo(e,t,n,r,i){var o;(r||(r=n),ve(r,n)<0)&&(n=(o=[r,n])[0],r=o[1]);"string"==typeof t&&(t=e.splitLines(t)),ro(e,{from:n,to:r,text:t,origin:i})}function so(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function co(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 u=0;u<o.ranges.length;u++)so(o.ranges[u].anchor,t,n,r),so(o.ranges[u].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var s=o.changes[l];if(n<s.from.line)s.from=me(s.from.line+r,s.from.ch),s.to=me(s.to.line+r,s.to.ch);else if(t<=s.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function fo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;co(e.done,n,r,i),co(e.undone,n,r,i)}function po(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=ue(e,we(e,t)):i=fe(t),null==i?null:(r(o,i)&&e.cm&&$r(e.cm,i,n),o)}function ho(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 mo(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}gi.prototype.from=function(){return ke(this.anchor,this.head)},gi.prototype.to=function(){return be(this.anchor,this.head)},gi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ho.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,Ht(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}},mo.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 ho))){var u=[];this.collapse(u),this.children=[new ho(u)],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,u=a;u<i.lines.length;){var l=new ho(i.lines.slice(u,u+=25));i.height-=l.height,this.children.splice(++r,0,l),l.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 mo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=Q(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new mo(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 vo=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 go(e,t,n){ze(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Er(e,n)}vo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=fe(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=kn(this);ce(n,Math.max(0,n.height-o)),e&&(Hr(e,function(){go(e,n,-o),$r(e,r,"widget")}),un(e,"lineWidgetCleared",e,this,r))}},vo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=kn(this)-t;i&&(ce(r,r.height+i),n&&Hr(n,function(){n.curOp.forceUpdate=!0,go(n,r,i),un(n,"lineWidgetChanged",n,e,fe(r))}))},at(vo);var yo=0,bo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++yo};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],u=r.widgetNode;return Si(e,function(e){u&&(r.widgetNode=u.cloneNode(!0)),o.push(ko(e,_e(e,t),_e(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Y(o)}),new wo(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Kr(e.cm,ko)(e,t,n,r,i);var o=new bo(e,i),a=ve(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=L("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ve(e,t.line,t,n,o)||t.line!=n.line&&Ve(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");xe=!0}o.addToHistory&&Fi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var u,l=t.line,s=e.cm;if(e.iter(l,n.line+1,function(e){s&&o.collapsed&&!s.options.lineWrapping&&Qe(e)==s.display.maxLine&&(u=!0),o.collapsed&&l!=t.line&&ce(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Oe(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Ue(e,t)&&ce(t,0)}),o.clearOnEnter&&Xe(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Ee=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++yo,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)Jr(s,t.line,n.line+1);else if(o.className||o.title||o.startStyle||o.endStyle||o.css)for(var c=t.line;c<=n.line;c++)$r(s,c,"text");o.atomic&&Ji(s.doc),un(s,"markerAdded",s,o)}return o}bo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Qr(e),ot(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],u=Ce(a.markedSpans,this);e&&!this.collapsed?$r(e,fe(a),"text"):e&&(null!=u.to&&(i=fe(a)),null!=u.from&&(r=fe(a))),a.markedSpans=Se(a.markedSpans,u),null==u.from&&this.collapsed&&!Ue(this.doc,a)&&e&&ce(a,er(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var s=Qe(this.lines[l]),c=He(s);c>e.display.maxLineLength&&(e.display.maxLine=s,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Jr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ji(e.doc)),e&&un(e,"markerCleared",e,this,r,i),t&&Gr(e),this.parent&&this.parent.clear()}},bo.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=Ce(o.markedSpans,this);if(null!=a.from&&(n=me(t?o:fe(o),a.from),-1==e))return n;if(null!=a.to&&(r=me(t?o:fe(o),a.to),1==e))return r}return n&&{from:n,to:r}},bo.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Hr(r,function(){var i=t.line,o=fe(t.line),a=Ln(r,o);if(a&&(Pn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ue(n.doc,i)&&null!=n.height){var u=n.height;n.height=null;var l=kn(n)-u;l&&ce(i,i.height+l)}un(r,"markerChanged",r,e)})},bo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=Q(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},bo.prototype.detachLine=function(e){if(this.lines.splice(Q(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},at(bo);var wo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function _o(e){return e.findMarks(me(e.first,0),e.clipPos(me(e.lastLine())),function(e){return e.parent})}function To(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Si(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==Q(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}wo.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")}},wo.prototype.find=function(e,t){return this.primary.find(e,t)},at(wo);var Eo=0,xo=function(e,t,n,r,i){if(!(this instanceof xo))return new xo(e,t,n,r,i);null==n&&(n=0),mo.call(this,[new ho([new zt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=me(n,0);this.sel=bi(o),this.history=new Di(null),this.id=++Eo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ci(this,{from:o,to:o,text:e}),Ki(this,bi(o),U)};xo.prototype=Z(mo.prototype,{constructor:xo,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=se(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Yr(function(e){var t=me(this.first,0),n=this.first+this.size-1;ro(this,{from:t,to:me(n,ue(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Or(this.cm,0,0),Ki(this,bi(t),U)}),replaceRange:function(e,t,n,r){lo(this,e,t=_e(this,t),n=n?_e(this,n):t,r)},getRange:function(e,t,n){var r=le(this,_e(this,e),_e(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(de(this,e))return ue(this,e)},getLineNumber:function(e){return fe(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=ue(this,e)),Qe(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return _e(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:Yr(function(e,t,n){zi(this,_e(this,"number"==typeof e?me(e,t||0):e),null,n)}),setSelection:Yr(function(e,t,n){zi(this,_e(this,e),_e(this,t||e),n)}),extendSelection:Yr(function(e,t,n){qi(this,_e(this,e),t&&_e(this,t),n)}),extendSelections:Yr(function(e,t){Ui(this,Te(this,e),t)}),extendSelectionsBy:Yr(function(e,t){Ui(this,Te(this,J(this.sel.ranges,e)),t)}),setSelections:Yr(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new gi(_e(this,e[i].anchor),_e(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Ki(this,yi(r,t),n)}}),addSelection:Yr(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new gi(_e(this,e),_e(this,t||e))),Ki(this,yi(r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=le(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=le(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:Yr(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 u=t&&"end"!=t&&function(e,t,n){for(var r=[],i=me(e.first,0),o=i,a=0;a<t.length;a++){var u=t[a],l=Ti(u.from,i,o),s=Ti(ki(u),i,o);if(i=u.to,o=s,"around"==n){var c=e.sel.ranges[a],f=ve(c.head,c.anchor)<0;r[a]=new gi(f?s:l,f?l:s)}else r[a]=new gi(l,l)}return new vi(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)ro(this,r[l]);u?Hi(this,u):this.cm&&xr(this.cm)}),undo:Yr(function(){oo(this,"undo")}),redo:Yr(function(){oo(this,"redo")}),undoSelection:Yr(function(){oo(this,"undo",!0)}),redoSelection:Yr(function(){oo(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(){this.history=new Di(this.history.maxGeneration)},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:Qi(this.history.done),undone:Qi(this.history.undone)}},setHistory:function(e){var t=this.history=new Di(this.history.maxGeneration);t.done=Qi(e.done.slice(0),null,!0),t.undone=Qi(e.undone.slice(0),null,!0)},setGutterMarker:Yr(function(e,t,n){return po(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ne(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Yr(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&po(t,n,"gutter",function(){return n.gutterMarkers[e]=null,ne(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!de(this,e))return null;if(t=e,!(e=ue(this,e)))return null}else if(null==(t=fe(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:Yr(function(e,t,n){return po(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(E(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:Yr(function(e,t,n){return po(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(E(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:Yr(function(e,t,n){return function(e,t,n,r){var i=new vo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),po(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&&!Ue(e,t)){var r=ze(t)<e.scrollTop;ce(t,t.height+kn(i)),r&&Er(o,i.height),o.curOp.forceUpdate=!0}return!0}),un(o,"lineWidgetAdded",o,i,"number"==typeof t?t:fe(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ko(this,_e(this,e),_e(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=_e(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=ue(this,(e=_e(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=_e(this,e),t=_e(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 u=0;u<a.length;u++){var l=a[u];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;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}),_e(this,me(n,t))},indexFromPos:function(e){var t=(e=_e(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 xo(se(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 xo(se(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(ve(o,a)){var u=ko(e,o,a,r.primary,r.primary.type);r.markers.push(u),u.parent=r}}}(r,_o(this)),r},unlinkDoc:function(e){if(e instanceof _a&&(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),To(_o(this));break}}if(e.history==this.history){var n=[e.id];Si(e,function(e){return n.push(e.id)},!0),e.history=new Di(null),e.history.done=Qi(this.history.done,n),e.history.undone=Qi(this.history.undone,n)}},iterLinkedDocs:function(e){Si(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):bt(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Yr(function(e){var t;("rtl"!=e&&(e="ltr"),e!=this.direction)&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Hr(t=this.cm,function(){Li(t),Jr(t)}))})}),xo.prototype.eachLine=xo.prototype.iter;var Oo=0;function Co(e){var t=this;if(So(t),!rt(t,e)&&!wn(t.display,e)){ut(e),a&&(Oo=+new Date);var n=ar(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),u=0,l=function(e,r){if(!t.options.allowDropFileTypes||-1!=Q(t.options.allowDropFileTypes,e.type)){var a=new FileReader;a.onload=Kr(t,function(){var e=a.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++u==i){var l={from:n=_e(t.doc,n),to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};ro(t.doc,l),Hi(t.doc,bi(n,ki(l)))}}),a.readAsText(e)}},s=0;s<i;++s)l(r[s],s);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 c=e.dataTransfer.getData("Text");if(c){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Wi(t.doc,bi(n,n)),f)for(var p=0;p<f.length;++p)lo(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(c,"around","paste"),t.display.input.focus()}}catch(e){}}}}function So(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function No(e){if(document.getElementsByClassName)for(var t=document.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}var Lo=!1;function Do(){var e;Lo||(Xe(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,No(Ao)},100))}),Xe(window,"blur",function(){return No(gr)}),Lo=!0)}function Ao(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}for(var Io={3:"Enter",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:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fo=0;Fo<10;Fo++)Io[Fo+48]=Io[Fo+96]=String(Fo);for(var jo=65;jo<=90;jo++)Io[jo]=String.fromCharCode(jo);for(var Mo=1;Mo<=12;Mo++)Io[Mo+111]=Io[Mo+63235]="F"+Mo;var Po={};function Ro(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var u=o[a];if(/^(cmd|meta|m)$/i.test(u))i=!0;else if(/^a(lt)?$/i.test(u))t=!0;else if(/^(c|ctrl|control)$/i.test(u))n=!0;else{if(!/^s(hift)?$/i.test(u))throw new Error("Unrecognized modifier name: "+u);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Vo(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=J(n.split(" "),Ro),o=0;o<i.length;o++){var a=void 0,u=void 0;o==i.length-1?(u=i.join(" "),a=r):(u=i.slice(0,o+1).join(" "),a="...");var l=t[u];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+u)}else t[u]=a}delete e[n]}for(var s in t)e[s]=t[s];return e}function Qo(e,t,n,r){var i=(t=Bo(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 Qo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Qo(e,t.fallthrough[o],n,r);if(a)return a}}}function Go(e){var t="string"==typeof e?e:Io[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function qo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(_?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(_?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Uo(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=Io[e.keyCode];return null!=n&&!e.altGraphKey&&qo(n,e,t)}function Bo(e){return"string"==typeof e?Po[e]:e}function zo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ve(o.from,Y(r).to)<=0;){var a=r.pop();if(ve(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Hr(e,function(){for(var t=r.length-1;t>=0;t--)lo(e.doc,"",r[t].from,r[t].to,"+delete");xr(e)})}function Ho(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ko(e,t,n){var r=Ho(e,t.ch,n);return null==r?null:new me(t.line,r,n<0?"after":"before")}function Wo(e,t,n,r,i){if(e){var o=$e(n,t.doc.direction);if(o){var a,u=i<0?Y(o):o[0],l=i<0==(1==u.level)?"after":"before";if(u.level>0||"rtl"==t.doc.direction){var s=Dn(t,n);a=i<0?n.text.length-1:0;var c=An(t,s,a).top;a=ae(function(e){return An(t,s,e).top==c},i<0==(1==u.level)?u.from:u.to-1,a),"before"==l&&(a=Ho(n,a,1))}else a=i<0?u.to:u.from;return new me(r,a,l)}}return new me(r,i<0?n.text.length:0,i<0?"before":"after")}Po.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"},Po.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"},Po.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"},Po.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"]},Po.default=y?Po.macDefault:Po.pcDefault;var Yo={selectAll:to,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(e){return zo(e,function(t){if(t.empty()){var n=ue(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:me(t.head.line+1,0)}:{from:t.head,to:me(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return zo(e,function(t){return{from:me(t.from().line,0),to:_e(e.doc,me(t.to().line+1,0))}})},delLineLeft:function(e){return zo(e,function(e){return{from:me(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return zo(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 zo(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(me(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(me(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Jo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return $o(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=ue(e.doc,t),r=function(e){for(var t;t=Re(e);)e=t.find(1,!0).line;return e}(n);r!=n&&(t=fe(r));return Wo(!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")},z)},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")},z)},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/)?$o(e,t.head):r},z)},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,"char")},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(W(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Hr(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=ue(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new me(i.line,i.ch-1)),i.ch>0)i=new me(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),me(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=ue(e.doc,i.line-1).text;a&&(i=new me(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),me(i.line-1,a.length-1),i,"+transpose"))}n.push(new gi(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Hr(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);xr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Jo(e,t){var n=ue(e.doc,t),r=Qe(n);return r!=n&&(t=fe(r)),Wo(!0,e,r,t,1)}function $o(e,t){var n=Jo(e,t.line),r=ue(e.doc,n.line),i=$e(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return me(n.line,a?0:o,n.sticky)}return n}function Zo(e,t,n){if("string"==typeof t&&!(t=Yo[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)!=q}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var Xo=new V;function ea(e,t,n,r){var i=e.state.keySeq;if(i){if(Go(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Xo.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),ta(e,i+" "+t,n,r))return!0}return ta(e,t,n,r)}function ta(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Qo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Qo(t,e.options.extraKeys,n,e)||Qo(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||(ut(n),dr(e)),!!i}function na(e,t){var n=Uo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ea(e,"Shift-"+n,t,function(t){return Zo(e,t,!0)})||ea(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return Zo(e,t)}):ea(e,n,t,function(t){return Zo(e,t)}))}var ra=null;function ia(e){var t=this;if(t.curOp.focus=A(),!rt(t,e)){a&&u<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=na(t,e);f&&(ra=r?n:null,!r&&88==n&&!wt&&(y?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(O(t,"CodeMirror-crosshair"),tt(document,"keyup",n),tt(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),Xe(document,"keyup",n),Xe(document,"mouseover",n)}(t)}}function oa(e){16==e.keyCode&&(this.doc.sel.shift=!1),rt(this,e)}function aa(e){var t=this;if(!(wn(t.display,e)||rt(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ra)return ra=null,void ut(e);if(!f||e.which&&!(e.which<10)||!na(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return ea(e,"'"+n+"'",t,function(t){return Zo(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var ua,la,sa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ca(e){var t=this,n=t.display;if(!(rt(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,wn(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!da(t,e)){var r=ar(t,e),i=pt(e),o=r?function(e,t){var n=+new Date;return la&&la.compare(n,e,t)?(ua=la=null,"triple"):ua&&ua.compare(n,e,t)?(la=new sa(n,e,t),ua=null,"double"):(ua=new sa(n,e,t),la=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";"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o);return ea(e,qo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=Yo[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=q}finally{e.state.suppressEdits=!1}return r})}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(M(hr,e),0):e.curOp.focus=A();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"}(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey);null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey);null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey));return i}(e,n,r),s=e.doc.sel;e.options.dragDrop&&mt&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ve((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ve(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,s=Kr(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,tt(document,"mouseup",s),tt(document,"mousemove",c),tt(i.scroller,"dragstart",f),tt(i.scroller,"drop",s),o||(ut(t),r.addNew||qi(e.doc,n,null,null,r.extend),l||a&&9==u?setTimeout(function(){document.body.focus(),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0);e.state.draggingText=s,s.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop();Xe(document,"mouseup",s),Xe(document,"mousemove",c),Xe(i.scroller,"dragstart",f),Xe(i.scroller,"drop",s),mr(e),setTimeout(function(){return i.input.focus()},20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;ut(t);var a,u,l=o.sel,s=l.ranges;r.addNew&&!r.extend?(u=o.sel.contains(n),a=u>-1?s[u]:new gi(n,n)):(a=o.sel.primary(),u=o.sel.primIndex);if("rectangle"==r.unit)r.addNew||(a=new gi(n,n)),n=ar(e,t,!0,!0),u=-1;else{var c=fa(e,n,r.unit);a=r.extend?Gi(a,c.anchor,c.head,r.extend):c}r.addNew?-1==u?(u=s.length,Ki(o,yi(s.concat([a]),u),{scroll:!1,origin:"*mouse"})):s.length>1&&s[u].empty()&&"char"==r.unit&&!r.extend?(Ki(o,yi(s.slice(0,u).concat(s.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Bi(o,u,a,B):(u=0,Ki(o,new vi([a],0),B),l=o.sel);var f=n;function p(t){if(0!=ve(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],s=e.options.tabSize,c=R(ue(o,n.line).text,n.ch,s),p=R(ue(o,t.line).text,t.ch,s),d=Math.min(c,p),h=Math.max(c,p),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=ue(o,m).text,y=H(g,d,s);d==h?i.push(new gi(me(m,y),me(m,y))):g.length>y&&i.push(new gi(me(m,y),me(m,H(g,h,s))))}i.length||i.push(new gi(n,n)),Ki(o,yi(l.ranges.slice(0,u).concat(i),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,k=a,w=fa(e,t,r.unit),_=k.anchor;ve(w.anchor,_)>0?(b=w.head,_=ke(k.from(),w.anchor)):(b=w.anchor,_=be(k.to(),w.head));var T=l.ranges.slice(0);T[u]=function(e,t){var n=t.anchor,r=t.head,i=ue(e.doc,n.line);if(0==ve(n,r)&&n.sticky==r.sticky)return t;var o=$e(i);if(!o)return t;var a=Ye(o,n.ch,n.sticky),u=o[a];if(u.from!=n.ch&&u.to!=n.ch)return t;var l,s=a+(u.from==n.ch==(1!=u.level)?0:1);if(0==s||s==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Ye(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==u.level?-1:1);l=c==s-1||c==s?f<0:f>0}var p=o[s+(l?-1:0)],d=l==(1==p.level),h=d?p.from:p.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new gi(new me(n.line,h,m),r)}(e,new gi(_e(o,_),b)),Ki(o,yi(T,u),B)}}var d=i.wrapper.getBoundingClientRect(),h=0;function m(t){e.state.selectingText=!1,h=1/0,ut(t),i.input.focus(),tt(document,"mousemove",v),tt(document,"mouseup",g),o.history.lastSelOrigin=null}var v=Kr(e,function(t){pt(t)?function t(n){var a=++h;var u=ar(e,n,!0,"rectangle"==r.unit);if(!u)return;if(0!=ve(u,f)){e.curOp.focus=A(),p(u);var l=kr(i,o);(u.line>=l.to||u.line<l.from)&&setTimeout(Kr(e,function(){h==a&&t(n)}),150)}else{var s=n.clientY<d.top?-20:n.clientY>d.bottom?20:0;s&&setTimeout(Kr(e,function(){h==a&&(i.scroller.scrollTop+=s,t(n))}),50)}}(t):m(t)}),g=Kr(e,m);e.state.selectingText=g,Xe(document,"mousemove",v),Xe(document,"mouseup",g)}(e,r,t,o)}(t,r,o,e):ft(e)==n.scroller&&ut(e):2==i?(r&&qi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(T?ha(t,e):mr(t)))}}function fa(e,t,n){if("char"==n)return new gi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new gi(me(t.line,0),_e(e.doc,me(t.line+1,0)));var r=n(e,t);return new gi(r.from,r.to)}function pa(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(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ut(t);var a=e.display,u=a.lineDiv.getBoundingClientRect();if(o>u.bottom||!ot(e,n))return st(t);o-=u.top-a.viewOffset;for(var l=0;l<e.options.gutters.length;++l){var s=a.gutters.childNodes[l];if(s&&s.getBoundingClientRect().right>=i)return nt(e,n,e,pe(e.doc,o),e.options.gutters[l],t),st(t)}}function da(e,t){return pa(e,t,"gutterClick",!0)}function ha(e,t){wn(e.display,t)||function(e,t){if(!ot(e,"gutterContextMenu"))return!1;return pa(e,t,"gutterContextMenu",!1)}(e,t)||rt(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function ma(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Vn(e)}sa.prototype.compare=function(e,t,n){return this.time+400>e&&0==ve(t,this.pos)&&n==this.button};var va={toString:function(){return"CodeMirror.Init"}},ga={},ya={};function ba(e){si(e),Jr(e),wr(e)}function ka(e,t,n){if(!t!=!(n&&n!=va)){var r=e.display.dragFunctions,i=t?Xe:tt;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 wa(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),Ke(e)),or(e),Jr(e),Vn(e),setTimeout(function(){return jr(e)},100)}function _a(e,t){var r=this;if(!(this instanceof _a))return new _a(e,t);this.options=t=t?P(t):{},P(ga,t,!1),ci(t);var i=t.value;"string"==typeof i&&(i=new xo(i,t.mode,null,t.lineSeparator,t.direction)),this.doc=i;var o=new _a.inputStyles[t.inputStyle](this),s=this.display=new function(e,t,r){var i=this;this.input=r,i.scrollbarFiller=N("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=N("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=L("div",null,"CodeMirror-code"),i.selectionDiv=N("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=N("div",null,"CodeMirror-cursors"),i.measure=N("div",null,"CodeMirror-measure"),i.lineMeasure=N("div",null,"CodeMirror-measure"),i.lineSpace=L("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=L("div",[i.lineSpace],"CodeMirror-lines");i.mover=N("div",[o],null,"position: relative"),i.sizer=N("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=N("div",null,null,"position: absolute; height: "+G+"px; width: 1px;"),i.gutters=N("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=N("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=N("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),a&&u<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&g||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,r.init(i)}(e,i,o);for(var c in s.wrapper.CodeMirror=this,si(this),ma(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Rr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},t.autofocus&&!g&&s.input.focus(),a&&u<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(e){var t=e.display;Xe(t.scroller,"mousedown",Kr(e,ca)),Xe(t.scroller,"dblclick",a&&u<11?Kr(e,function(t){if(!rt(e,t)){var n=ar(e,t);if(n&&!da(e,t)&&!wn(e.display,t)){ut(t);var r=e.findWordAt(n);qi(e.doc,r.anchor,r.head)}}}):function(t){return rt(e,t)||ut(t)});T||Xe(t.scroller,"contextmenu",function(t){return ha(e,t)});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}Xe(t.scroller,"touchstart",function(i){if(!rt(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!da(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)}}),Xe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Xe(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!wn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,u=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new gi(u,u):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(u):new gi(me(u.line,0),_e(e.doc,me(u.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),ut(n)}i()}),Xe(t.scroller,"touchcancel",i),Xe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Nr(e,t.scroller.scrollTop),Dr(e,t.scroller.scrollLeft,!0),nt(e,"scroll",e))}),Xe(t.scroller,"mousewheel",function(t){return mi(e,t)}),Xe(t.scroller,"DOMMouseScroll",function(t){return mi(e,t)}),Xe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){rt(e,t)||ct(t)},over:function(t){rt(e,t)||(!function(e,t){var n=ar(e,t);if(n){var r=document.createDocumentFragment();cr(e,n,r),e.display.dragCursor||(e.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),S(e.display.dragCursor,r)}}(e,t),ct(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Oo<100))ct(t);else if(!rt(e,t)&&!wn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=N("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:Kr(e,Co),leave:function(t){rt(e,t)||So(e)}};var l=t.input.getField();Xe(l,"keyup",function(t){return oa.call(e,t)}),Xe(l,"keydown",Kr(e,ia)),Xe(l,"keypress",Kr(e,aa)),Xe(l,"focus",function(t){return vr(e,t)}),Xe(l,"blur",function(t){return gr(e,t)})}(this),Do(),Qr(this),this.curOp.forceUpdate=!0,Ni(this,i),t.autofocus&&!g||this.hasFocus()?setTimeout(M(vr,this),20):gr(this),ya)ya.hasOwnProperty(c)&&ya[c](r,t[c],va);_r(this),t.finishInit&&t.finishInit(this);for(var d=0;d<Ta.length;++d)Ta[d](r);Gr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(s.lineDiv).textRendering&&(s.lineDiv.style.textRendering="auto")}_a.defaults=ga,_a.optionHandlers=ya;var Ta=[];function Ea(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Pt(e,t).state:n="prev");var a=e.options.tabSize,u=ue(o,t),l=R(u.text,null,a);u.stateAfter&&(u.stateAfter=null);var s,c=u.text.match(/^\s*/)[0];if(r||/\S/.test(u.text)){if("smart"==n&&((s=o.mode.indent(i,u.text.slice(c.length),u.text))==q||s>150)){if(!r)return;n="prev"}}else s=0,n="not";"prev"==n?s=t>o.first?R(ue(o,t-1).text,null,a):0:"add"==n?s=l+e.options.indentUnit:"subtract"==n?s=l-e.options.indentUnit:"number"==typeof n&&(s=l+n),s=Math.max(0,s);var f="",p=0;if(e.options.indentWithTabs)for(var d=Math.floor(s/a);d;--d)p+=a,f+="\t";if(p<s&&(f+=W(s-p)),f!=c)return lo(o,f,me(t,0),me(t,c.length),"+input"),u.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<c.length){var v=me(t,c.length);Bi(o,h,new gi(v,v));break}}}_a.defineInitHook=function(e){return Ta.push(e)};var xa=null;function Oa(e){xa=e}function Ca(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a,u=e.state.pasteIncoming||"paste"==i,l=bt(t),s=null;if(u&&r.ranges.length>1)if(xa&&xa.text.join("\n")==t){if(r.ranges.length%xa.text.length==0){s=[];for(var c=0;c<xa.text.length;c++)s.push(o.splitLines(xa.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(s=J(l,function(e){return[e]}));for(var f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],d=p.from(),h=p.to();p.empty()&&(n&&n>0?d=me(d.line,d.ch-n):e.state.overwrite&&!u?h=me(h.line,Math.min(ue(o,h.line).text.length,h.ch+Y(l).length)):xa&&xa.lineWise&&xa.text.join("\n")==t&&(d=h=me(d.line,0))),a=e.curOp.updateInput;var m={from:d,to:h,text:s?s[f%s.length]:l,origin:i||(u?"paste":e.state.cutIncoming?"cut":"+input")};ro(e.doc,m),un(e,"inputRead",e,m)}t&&!u&&Na(e,t),xr(e),e.curOp.updateInput=a,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Sa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Hr(t,function(){return Ca(t,n,0,null,"paste")}),!0}function Na(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 u=0;u<o.electricChars.length;u++)if(t.indexOf(o.electricChars.charAt(u))>-1){a=Ea(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ue(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ea(e,i.head.line,"smart"));a&&un(e,"electricInput",e,i.head.line)}}}function La(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:me(i,0),head:me(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Da(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function Aa(){var e=N("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=N("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Da(e),t}function Ia(e,t,n,r,i){var o=t,a=n,u=ue(e,t.line);function l(r){var o,a;if(null==(o=i?function(e,t,n,r){var i=$e(t,e.doc.direction);if(!i)return Ko(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=Ye(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 Ko(t,n,r);var u,l=function(e,n){return Ho(t,e instanceof me?e.ch:e,n)},s=function(n){return e.options.lineWrapping?(u=u||Dn(e,t),$n(e,t,u,n)):{begin:0,end:t.text.length}},c=s("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,p=l(n,f?1:-1);if(null!=p&&(f?p<=a.to&&p<=c.end:p>=a.from&&p>=c.begin)){var d=f?"before":"after";return new me(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new me(n.line,l(e,1),"before"):new me(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],u=t>0==(1!=a.level),s=u?r.begin:l(r.end,-1);if(a.from<=s&&s<a.to)return o(s,u);if(s=u?a.from:l(a.to,-1),r.begin<=s&&s<r.end)return o(s,u)}},m=h(o+r,r,c);if(m)return m;var v=r>0?c.end:l(c.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,s(v)))?null:m}(e.cm,u,t,n):Ko(u,t,n))){if(r||(a=t.line+n)<e.first||a>=e.first+e.size||(t=new me(a,t.ch,t.sticky),!(u=ue(e,a))))return!1;t=Wo(i,e.cm,u,t.line,n)}else t=o;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var s=null,c="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||l(!p);p=!1){var d=u.text.charAt(t.ch)||"\n",h=te(d,f)?"w":c&&"\n"==d?"n":!c||/\s/.test(d)?null:"p";if(!c||p||h||(h="s"),s&&s!=h){n<0&&(n=1,l(),t.sticky="after");break}if(h&&(s=h),n>0&&!l(!p))break}var m=Xi(e,t,o,a,!0);return ge(o,m)&&(m.hitSide=!0),m}function Fa(e,t,n,r){var i,o,a=e.doc,u=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(l-.5*er(e.display),3);i=(n>0?t.bottom:t.top)+n*s}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Yn(e,u,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var ja=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ma(e,t){var n=Ln(e,t.line);if(!n||n.hidden)return null;var r=ue(e.doc,t.line),i=Sn(n,r,t.line),o=$e(r,e.doc.direction),a="left";o&&(a=Ye(o,t.ch)%2?"right":"left");var u=jn(i.map,t.ch,a);return u.offset="right"==u.collapse?u.end:u.start,u}function Pa(e,t){return t&&(e.bad=!0),e}function Ra(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Pa(e.clipPos(me(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 Va(o,t,n)}}function Va(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return Pa(me(fe(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Y(e.rest):e.line;return Pa(me(fe(o),o.text.length),i)}var a=3==t.nodeType?t:null,u=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));u.parentNode!=r;)u=u.parentNode;var l=e.measure,s=l.maps;function c(t,n,r){for(var i=-1;i<(s?s.length:0);i++)for(var o=i<0?l.map:s[i],a=0;a<o.length;a+=3){var u=o[a+2];if(u==t||u==n){var c=fe(i<0?e.line:e.rest[i]),f=o[a]+r;return(r<0||u!=t)&&(f=o[a+(r?1:0)]),me(c,f)}}}var f=c(a,u,n);if(f)return Pa(f,i);for(var p=u.nextSibling,d=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(f=c(p,p.firstChild,0))return Pa(me(f.line,f.ch-d),i);d+=p.textContent.length}for(var h=u.previousSibling,m=n;h;h=h.previousSibling){if(f=c(h,h.firstChild,-1))return Pa(me(f.line,f.ch+m),i);m+=h.textContent.length}}ja.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){if(!rt(r,e)){if(r.somethingSelected())Oa({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=La(r);Oa({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,U),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var o=xa.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=Aa(),u=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),u.value=xa.text.join("\n");var l=document.activeElement;j(u),setTimeout(function(){r.display.lineSpace.removeChild(a),l.focus(),l==i&&n.showPrimarySelection()},50)}}Da(i,r.options.spellcheck),Xe(i,"paste",function(e){rt(r,e)||Sa(e,r)||u<=11&&setTimeout(Kr(r,function(){return t.updateFromDOM()}),20)}),Xe(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),Xe(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),Xe(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Xe(i,"touchstart",function(){return n.forceCompositionEnd()}),Xe(i,"input",function(){t.composing||t.readFromDOMSoon()}),Xe(i,"copy",o),Xe(i,"cut",o)},ja.prototype.prepareSelection=function(){var e=sr(this.cm,!1);return e.focus=this.cm.state.focused,e},ja.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ja.prototype.showPrimarySelection=function(){var e=window.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=Ra(t,e.anchorNode,e.anchorOffset),u=Ra(t,e.focusNode,e.focusOffset);if(!a||a.bad||!u||u.bad||0!=ve(ke(a,u),i)||0!=ve(be(a,u),o)){var l=t.display.view,s=i.line>=t.display.viewFrom&&Ma(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Ma(t,o);if(!c){var f=l[l.length-1].measure,p=f.maps?f.maps[f.maps.length-1]:f.map;c={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(s&&c){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=x(s.node,s.offset,c.offset,c.node)}catch(e){}d&&(!n&&t.state.focused?(e.collapse(s.node,s.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()}}},ja.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)},ja.prototype.showMultipleSelections=function(e){S(this.cm.display.cursorDiv,e.cursors),S(this.cm.display.selectionDiv,e.selection)},ja.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ja.prototype.selectionInEditor=function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},ja.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},ja.prototype.blur=function(){this.div.blur()},ja.prototype.getField=function(){return this.div},ja.prototype.supportsTouch=function(){return!0},ja.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Hr(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))})},ja.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ja.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;if(v&&c&&this.cm.options.gutters.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=Ra(t,e.anchorNode,e.anchorOffset),r=Ra(t,e.focusNode,e.focusOffset);n&&r&&Hr(t,function(){Ki(t.doc,bi(n,r),U),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},ja.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(),u=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=me(a.line-1,ue(r.doc,a.line-1).length)),u.ch==ue(r.doc,u.line).text.length&&u.line<r.lastLine()&&(u=me(u.line+1,0)),a.line<i.viewFrom||u.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=ur(r,a.line))?(t=fe(i.view[0].line),n=i.view[0].node):(t=fe(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,s,c=ur(r,u.line);if(c==i.view.length-1?(l=i.viewTo-1,s=i.lineDiv.lastChild):(l=fe(i.view[c+1].line)-1,s=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,u=e.doc.lineSeparator();function l(){a&&(o+=u,a=!1)}function s(e){e&&(l(),o+=e)}function c(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void s(n||t.textContent.replace(/\u200b/g,""));var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(me(r,0),me(i+1,0),(m=+f,function(e){return e.id==m}));return void(p.length&&(o=p[0].find(0))&&s(le(e.doc,o.from,o.to).join(u)))}if("false"==t.getAttribute("contenteditable"))return;var d=/^(pre|div|p)$/i.test(t.nodeName);d&&l();for(var h=0;h<t.childNodes.length;h++)c(t.childNodes[h]);d&&(a=!0)}else 3==t.nodeType&&s(t.nodeValue);var m}for(;c(t),t!=n;)t=t.nextSibling;return o}(r,n,s,t,l)),p=le(r.doc,me(t,0),me(l,ue(r.doc,l).text.length));f.length>1&&p.length>1;)if(Y(f)==Y(p))f.pop(),p.pop(),l--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,m=f[0],v=p[0],g=Math.min(m.length,v.length);d<g&&m.charCodeAt(d)==v.charCodeAt(d);)++d;for(var y=Y(f),b=Y(p),k=Math.min(y.length-(1==f.length?d:0),b.length-(1==p.length?d:0));h<k&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==f.length&&1==p.length&&t==a.line)for(;d&&d>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var w=me(t,d),_=me(l,p.length?Y(p).length-h:0);return f.length>1||f[0]||ve(w,_)?(lo(r.doc,f,w,_,"+input"),!0):void 0},ja.prototype.ensurePolled=function(){this.forceCompositionEnd()},ja.prototype.reset=function(){this.forceCompositionEnd()},ja.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ja.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))},ja.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Hr(this.cm,function(){return Jr(e.cm)})},ja.prototype.setUneditable=function(e){e.contentEditable="false"},ja.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||Kr(this.cm,Ca)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},ja.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},ja.prototype.onContextMenu=function(){},ja.prototype.resetPosition=function(){},ja.prototype.needsContentAttribute=!0;var Qa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};Qa.prototype.init=function(e){var t=this,n=this,r=this.cm,i=this.wrapper=Aa(),o=this.textarea=i.firstChild;function l(e){if(!rt(r,e)){if(r.somethingSelected())Oa({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=La(r);Oa({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,U):(n.prevInput="",o.value=t.text.join("\n"),j(o))}"cut"==e.type&&(r.state.cutIncoming=!0)}}e.wrapper.insertBefore(i,e.wrapper.firstChild),m&&(o.style.width="0px"),Xe(o,"input",function(){a&&u>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Xe(o,"paste",function(e){rt(r,e)||Sa(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),Xe(o,"cut",l),Xe(o,"copy",l),Xe(e.scroller,"paste",function(t){wn(e,t)||rt(r,t)||(r.state.pasteIncoming=!0,n.focus())}),Xe(e.lineSpace,"selectstart",function(t){wn(e,t)||ut(t)}),Xe(o,"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"})}}),Xe(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Qa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=sr(e);if(e.options.moveInputWithCursor){var i=Hn(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},Qa.prototype.showSelection=function(e){var t=this.cm.display;S(t.cursorDiv,e.cursors),S(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Qa.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&&u>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&u>=9&&(this.hasSelection=null))}},Qa.prototype.getField=function(){return this.textarea},Qa.prototype.supportsTouch=function(){return!1},Qa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||A()!=this.textarea))try{this.textarea.focus()}catch(e){}},Qa.prototype.blur=function(){this.textarea.blur()},Qa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qa.prototype.receivedFocus=function(){this.slowPoll()},Qa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Qa.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))})},Qa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||kt(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&&u>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,s=Math.min(r.length,i.length);l<s&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Hr(t,function(){Ca(t,i.slice(l),r.length-l,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},Qa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qa.prototype.onKeyPress=function(){a&&u>=9&&(this.hasSelection=null),this.fastPoll()},Qa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea,o=ar(n,e),s=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Kr(n,Ki)(n.doc,bi(o),U);var c=i.style.cssText,p=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var d,h=t.wrapper.getBoundingClientRect();if(i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(d=window.scrollY),r.input.focus(),l&&window.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=!0,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&u>=9&&v(),T){ct(e);var m=function(){tt(window,"mouseup",m),setTimeout(g,20)};Xe(window,"mouseup",m)}else setTimeout(g,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=c,a&&u<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=s),null!=i.selectionStart){(!a||a&&u<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Kr(n,to)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Qa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Qa.prototype.setUneditable=function(){},Qa.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!=va&&i(e,t,n)}:i)}e.defineOption=n,e.Init=va,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Ei(e)},!0),n("indentUnit",2,Ei,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){xi(e),Vn(e),Jr(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(me(r,o))}r++});for(var i=n.length-1;i>=0;i--)lo(e.doc,t,n[i],me(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=va&&e.refresh()}),n("specialCharPlaceholder",$t,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("rtlMoveVisually",!k),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ma(e),ba(e)},!0),n("keyMap","default",function(e,t,n){var r=Bo(t),i=n!=va&&Bo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,wa,!0),n("gutters",[],function(e){ci(e.options),ba(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?rr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return jr(e)},!0),n("scrollbarStyle","native",function(e){Rr(e),jr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e){ci(e.options),ba(e)},!0),n("firstLineNumber",1,ba,!0),n("lineNumberFormatter",function(e){return e},ba,!0),n("showCursorWhenSelecting",!1,lr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("readOnly",!1,function(e,t){"nocursor"==t&&(gr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,ka),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,lr,!0),n("singleCursorHeightPerLine",!0,lr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,xi,!0),n("addModeClass",!1,xi,!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,xi,!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)}(_a),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)&&Kr(this,t[e])(this,n,i),nt(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"](Bo(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:Wr(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++,Jr(this)}),removeOverlay:Wr(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 Jr(this)}}),indentLine:Wr(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),de(this.doc,e)&&Ea(this,e,t,n)}),indentSelection:Wr(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&&(Ea(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&xr(this));else{var o=i.from(),a=i.to(),u=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=u;l<n;++l)Ea(this,l,e);var s=this.doc.sel.ranges;0==o.ch&&t.length==s.length&&s[r].from().ch>0&&Bi(this.doc,r,new gi(o,s[r].to()),U)}}}),getTokenAt:function(e,t){return qt(this,e,t)},getLineTokens:function(e,t){return qt(this,me(e),t,!0)},getTokenTypeAt:function(e){e=_e(this.doc,e);var t,n=Mt(this,ue(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 u=t?t.indexOf("overlay "):-1;return u<0?t:0==u?null:t.slice(0,u-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 u=i[o[t][a]];u&&r.push(u)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var s=i._global[l];s.pred(o,this)&&-1==Q(r,s.val)&&r.push(s.val)}return r},getStateAfter:function(e,t){var n=this.doc;return Pt(this,(e=we(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Hn(this,null==e?n.head:"object"==typeof e?_e(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return zn(this,_e(this.doc,e),t||"page")},coordsChar:function(e,t){return Yn(this,(e=Bn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Bn(this,{top:e,left:0},t||"page").top,pe(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=ue(this.doc,e)}else r=e;return Un(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-ze(r):0)},defaultTextHeight:function(){return er(this.display)},defaultCharWidth:function(){return tr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,u,l=this.display,s=(e=Hn(this,_e(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)s=e.top;else if("above"==r||"near"==r){var f=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(s=e.bottom),c+t.offsetWidth>p&&(c=p-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==i?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:s,right:c+t.offsetWidth,bottom:s+t.offsetHeight},null!=(u=Tr(o,a)).scrollTop&&Nr(o,u.scrollTop),null!=u.scrollLeft&&Dr(o,u.scrollLeft))},triggerOnKeyDown:Wr(ia),triggerOnKeyPress:Wr(aa),triggerOnKeyUp:oa,triggerOnMouseDown:Wr(ca),execCommand:function(e){if(Yo.hasOwnProperty(e))return Yo[e].call(null,this)},triggerElectric:Wr(function(e){Na(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=_e(this.doc,e),a=0;a<t&&!(o=Ia(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Wr(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Ia(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},z)}),deleteH:Wr(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):zo(this,function(n){var i=Ia(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=_e(this.doc,e),u=0;u<t;++u){var l=Hn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Fa(this,l,i,n)).hitSide)break}return a},moveV:Wr(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 u=Hn(n,a.head,"div");null!=a.goalColumn&&(u.left=a.goalColumn),i.push(u.left);var l=Fa(n,u,e,t);return"page"==t&&a==r.sel.primary()&&Er(n,zn(n,l,"div").top-u.top),l},z),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=ue(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=te(o,i)?function(e){return te(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!te(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new gi(me(e.line,n),me(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),nt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==A()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Wr(function(e,t){Or(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-xn(this)-this.display.barHeight,width:e.scrollWidth-xn(this)-this.display.barWidth,clientHeight:Cn(this),clientWidth:On(this)}},scrollIntoView:Wr(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:me(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){Cr(e),e.curOp.scrollToPos=t}(this,e):Sr(this,e.from,e.to,e.margin)}),setSize:Wr(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&&Rn(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){$r(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,nt(this,"refresh",this)}),operation:function(e){return Hr(this,e)},startOperation:function(){return Qr(this)},endOperation:function(){return Gr(this)},refresh:Wr(function(){var e=this.display.cachedTextHeight;Jr(this),this.curOp.forceUpdate=!0,Vn(this),Or(this,this.doc.scrollLeft,this.doc.scrollTop),ui(this),(null==e||Math.abs(e-er(this.display))>.5)&&or(this),nt(this,"refresh",this)}),swapDoc:Wr(function(e){var t=this.doc;return t.cm=null,Ni(this,e),Vn(this),this.display.input.reset(),Or(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,t),t}),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}},at(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})}}(_a);var Ga,qa="iter insert remove copy getEditor constructor".split(" ");for(var Ua in xo.prototype)xo.prototype.hasOwnProperty(Ua)&&Q(qa,Ua)<0&&(_a.prototype[Ua]=function(e){return function(){return e.apply(this.doc,arguments)}}(xo.prototype[Ua]));return at(xo),_a.inputStyles={textarea:Qa,contenteditable:ja},_a.defineMode=function(e){_a.defaults.mode||"null"==e||(_a.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Tt[e]=t}.apply(this,arguments)},_a.defineMIME=function(e,t){Et[e]=t},_a.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),_a.defineMIME("text/plain","null"),_a.defineExtension=function(e,t){_a.prototype[e]=t},_a.defineDocExtension=function(e,t){xo.prototype[e]=t},_a.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=A();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=u.getValue()}var i;if(e.form&&(Xe(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(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(tt(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var u=_a(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return u},(Ga=_a).off=tt,Ga.on=Xe,Ga.wheelEventPixels=hi,Ga.Doc=xo,Ga.splitLines=bt,Ga.countColumn=R,Ga.findColumn=H,Ga.isWordChar=ee,Ga.Pass=q,Ga.signal=nt,Ga.Line=zt,Ga.changeEnd=ki,Ga.scrollbarModel=Pr,Ga.Pos=me,Ga.cmpPos=ve,Ga.modes=Tt,Ga.mimeModes=Et,Ga.resolveMode=xt,Ga.getMode=Ot,Ga.modeExtensions=Ct,Ga.extendMode=St,Ga.copyState=Nt,Ga.startState=Dt,Ga.innerMode=Lt,Ga.commands=Yo,Ga.keyMap=Po,Ga.keyName=Uo,Ga.isModifierKey=Go,Ga.lookupKey=Qo,Ga.normalizeKeyMap=Vo,Ga.StringStream=At,Ga.SharedTextMarker=wo,Ga.TextMarker=bo,Ga.LineWidget=vo,Ga.e_preventDefault=ut,Ga.e_stopPropagation=lt,Ga.e_stop=ct,Ga.addClass=I,Ga.contains=D,Ga.rmClass=O,Ga.keyNames=Io,_a.version="5.33.0",_a},e.exports=r()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLNonNull=t.GraphQLList=t.GraphQLInputObjectType=t.GraphQLEnumType=t.GraphQLUnionType=t.GraphQLInterfaceType=t.GraphQLObjectType=t.GraphQLScalarType=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=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};t.isType=f,t.assertType=function(e){return f(e)||(0,o.default)(0,"Expected "+String(e)+" to be a GraphQL type."),e},t.isInputType=p,t.assertInputType=function(e){return p(e)||(0,o.default)(0,"Expected "+String(e)+" to be a GraphQL input type."),e},t.isOutputType=d,t.assertOutputType=function(e){return d(e)||(0,o.default)(0,"Expected "+String(e)+" to be a GraphQL output type."),e},t.isLeafType=h,t.assertLeafType=function(e){return h(e)||(0,o.default)(0,"Expected "+String(e)+" to be a GraphQL leaf type."),e},t.isCompositeType=m,t.assertCompositeType=function(e){return m(e)||(0,o.default)(0,"Expected "+String(e)+" to be a GraphQL composite type."),e},t.isAbstractType=v,t.assertAbstractType=function(e){return v(e)||(0,o.default)(0,"Expected "+String(e)+" to be a GraphQL abstract type."),e},t.getNullableType=function(e){return e instanceof S?e.ofType:e},t.isNamedType=g,t.assertNamedType=function(e){return g(e)||(0,o.default)(0,"Expected "+String(e)+" to be a GraphQL named type."),e},t.getNamedType=function(e){if(e){for(var t=e;t instanceof C||t instanceof S;)t=t.ofType;return t}};var o=s(n(8)),a=s(n(24)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),l=n(80);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e){return e instanceof b||e instanceof k||e instanceof T||e instanceof E||e instanceof x||e instanceof O||e instanceof C||e instanceof S}function p(e){return e instanceof b||e instanceof x||e instanceof O||e instanceof S&&p(e.ofType)||e instanceof C&&p(e.ofType)}function d(e){return e instanceof b||e instanceof k||e instanceof T||e instanceof E||e instanceof x||e instanceof S&&d(e.ofType)||e instanceof C&&d(e.ofType)}function h(e){return e instanceof b||e instanceof x}function m(e){return e instanceof k||e instanceof T||e instanceof E}function v(e){return e instanceof T||e instanceof E}function g(e){return e instanceof b||e instanceof k||e instanceof T||e instanceof E||e instanceof x||e instanceof O}function y(e){return"function"==typeof e?e():e}var b=t.GraphQLScalarType=function(){function e(t){c(this,e),(0,l.assertValidName)(t.name),this.name=t.name,this.description=t.description,this.astNode=t.astNode,"function"!=typeof t.serialize&&(0,o.default)(0,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.'),(t.parseValue||t.parseLiteral)&&("function"!=typeof t.parseValue||"function"!=typeof t.parseLiteral)&&(0,o.default)(0,this.name+' must provide both "parseValue" and "parseLiteral" functions.'),this._scalarConfig=t}return e.prototype.serialize=function(e){return(0,this._scalarConfig.serialize)(e)},e.prototype.isValidValue=function(e){return!(0,a.default)(this.parseValue(e))},e.prototype.parseValue=function(e){var t=this._scalarConfig.parseValue;return t&&!(0,a.default)(e)?t(e):void 0},e.prototype.isValidLiteral=function(e){return!(0,a.default)(this.parseLiteral(e))},e.prototype.parseLiteral=function(e){var t=this._scalarConfig.parseLiteral;return t?t(e):void 0},e.prototype.toString=function(){return this.name},e}();b.prototype.toJSON=b.prototype.inspect=b.prototype.toString;var k=t.GraphQLObjectType=function(){function e(t){c(this,e),(0,l.assertValidName)(t.name,t.isIntrospection),this.name=t.name,this.description=t.description,this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes||[],t.isTypeOf&&"function"!=typeof t.isTypeOf&&(0,o.default)(0,this.name+' must provide "isTypeOf" as a function.'),this.isTypeOf=t.isTypeOf,this._typeConfig=t}return e.prototype.getFields=function(){return this._fields||(this._fields=w(this,this._typeConfig.fields))},e.prototype.getInterfaces=function(){return this._interfaces||(this._interfaces=function(e,t){var n=y(t);if(!n)return[];Array.isArray(n)||(0,o.default)(0,e.name+" interfaces must be an Array or a function which returns an Array.");var r=Object.create(null);return n.forEach(function(t){t instanceof T||(0,o.default)(0,e.name+" may only implement Interface types, it cannot implement: "+String(t)+"."),r[t.name]&&(0,o.default)(0,e.name+" may declare it implements "+t.name+" only once."),r[t.name]=!0,"function"!=typeof t.resolveType&&"function"!=typeof e.isTypeOf&&(0,o.default)(0,"Interface Type "+t.name+' does not provide a "resolveType" function and implementing Type '+e.name+' does not provide a "isTypeOf" function. There is no way to resolve this implementing type during execution.')}),n}(this,this._typeConfig.interfaces))},e.prototype.toString=function(){return this.name},e}();function w(e,t){var n=y(t);_(n)||(0,o.default)(0,e.name+" fields must be an object with field names as keys or a function which returns such an object.");var r=Object.keys(n);r.length>0||(0,o.default)(0,e.name+" fields must be an object with field names as keys or a function which returns such an object.");var a=Object.create(null);return r.forEach(function(t){(0,l.assertValidName)(t);var r=n[t];_(r)||(0,o.default)(0,e.name+"."+t+" field config must be an object"),r.hasOwnProperty("isDeprecated")&&(0,o.default)(0,e.name+"."+t+' should provide "deprecationReason" instead of "isDeprecated".');var u,s=i({},r,{isDeprecated:Boolean(r.deprecationReason),name:t});d(s.type)||(0,o.default)(0,e.name+"."+t+" field type must be Output Type but got: "+String(s.type)+"."),null!=(u=s.resolve)&&"function"!=typeof u&&(0,o.default)(0,e.name+"."+t+" field resolver must be a function if provided, but got: "+String(s.resolve)+".");var c=r.args;c?(_(c)||(0,o.default)(0,e.name+"."+t+" args must be an object with argument names as keys."),s.args=Object.keys(c).map(function(n){(0,l.assertValidName)(n);var r=c[n];return p(r.type)||(0,o.default)(0,e.name+"."+t+"("+n+":) argument type must be Input Type but got: "+String(r.type)+"."),{name:n,description:void 0===r.description?null:r.description,type:r.type,defaultValue:r.defaultValue,astNode:r.astNode}})):s.args=[],a[t]=s}),a}function _(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)}k.prototype.toJSON=k.prototype.inspect=k.prototype.toString;var T=t.GraphQLInterfaceType=function(){function e(t){c(this,e),(0,l.assertValidName)(t.name),this.name=t.name,this.description=t.description,this.astNode=t.astNode,t.resolveType&&"function"!=typeof t.resolveType&&(0,o.default)(0,this.name+' must provide "resolveType" as a function.'),this.resolveType=t.resolveType,this._typeConfig=t}return e.prototype.getFields=function(){return this._fields||(this._fields=w(this,this._typeConfig.fields))},e.prototype.toString=function(){return this.name},e}();T.prototype.toJSON=T.prototype.inspect=T.prototype.toString;var E=t.GraphQLUnionType=function(){function e(t){c(this,e),(0,l.assertValidName)(t.name),this.name=t.name,this.description=t.description,this.astNode=t.astNode,t.resolveType&&"function"!=typeof t.resolveType&&(0,o.default)(0,this.name+' must provide "resolveType" as a function.'),this.resolveType=t.resolveType,this._typeConfig=t}return e.prototype.getTypes=function(){return this._types||(this._types=function(e,t){var n=y(t);Array.isArray(n)&&n.length>0||(0,o.default)(0,"Must provide Array of types or a function which returns such an array for Union "+e.name+".");var r=Object.create(null);return n.forEach(function(t){t instanceof k||(0,o.default)(0,e.name+" may only contain Object types, it cannot contain: "+String(t)+"."),r[t.name]&&(0,o.default)(0,e.name+" can include "+t.name+" type only once."),r[t.name]=!0,"function"!=typeof e.resolveType&&"function"!=typeof t.isTypeOf&&(0,o.default)(0,'Union type "'+e.name+'" does not provide a "resolveType" function and possible type "'+t.name+'" does not provide an "isTypeOf" function. There is no way to resolve this possible type during execution.')}),n}(this,this._typeConfig.types))},e.prototype.toString=function(){return this.name},e}();E.prototype.toJSON=E.prototype.inspect=E.prototype.toString;var x=t.GraphQLEnumType=function(){function e(t){c(this,e),this.name=t.name,(0,l.assertValidName)(t.name,t.isIntrospection),this.description=t.description,this.astNode=t.astNode,this._values=function(e,t){_(t)||(0,o.default)(0,e.name+" values must be an object with value names as keys.");var n=Object.keys(t);return n.length>0||(0,o.default)(0,e.name+" values must be an object with value names as keys."),n.map(function(n){(0,l.assertValidName)(n),-1!==["true","false","null"].indexOf(n)&&(0,o.default)(0,'Name "'+n+'" can not be used as an Enum value.');var r=t[n];return _(r)||(0,o.default)(0,e.name+"."+n+' must refer to an object with a "value" key representing an internal value but got: '+String(r)+"."),r.hasOwnProperty("isDeprecated")&&(0,o.default)(0,e.name+"."+n+' should provide "deprecationReason" instead of "isDeprecated".'),{name:n,description:r.description,isDeprecated:Boolean(r.deprecationReason),deprecationReason:r.deprecationReason,astNode:r.astNode,value:r.hasOwnProperty("value")?r.value:n}})}(this,t.values),this._enumConfig=t}return e.prototype.getValues=function(){return this._values},e.prototype.getValue=function(e){return this._getNameLookup()[e]},e.prototype.serialize=function(e){var t=this._getValueLookup().get(e);return t?t.name:null},e.prototype.isValidValue=function(e){return"string"==typeof e&&void 0!==this._getNameLookup()[e]},e.prototype.parseValue=function(e){if("string"==typeof e){var t=this._getNameLookup()[e];if(t)return t.value}},e.prototype.isValidLiteral=function(e){return e.kind===u.ENUM&&void 0!==this._getNameLookup()[e.value]},e.prototype.parseLiteral=function(e){if(e.kind===u.ENUM){var t=this._getNameLookup()[e.value];if(t)return t.value}},e.prototype._getValueLookup=function(){if(!this._valueLookup){var e=new Map;this.getValues().forEach(function(t){e.set(t.value,t)}),this._valueLookup=e}return this._valueLookup},e.prototype._getNameLookup=function(){if(!this._nameLookup){var e=Object.create(null);this.getValues().forEach(function(t){e[t.name]=t}),this._nameLookup=e}return this._nameLookup},e.prototype.toString=function(){return this.name},e}();x.prototype.toJSON=x.prototype.inspect=x.prototype.toString;var O=t.GraphQLInputObjectType=function(){function e(t){c(this,e),(0,l.assertValidName)(t.name),this.name=t.name,this.description=t.description,this.astNode=t.astNode,this._typeConfig=t}return e.prototype.getFields=function(){return this._fields||(this._fields=this._defineFieldMap())},e.prototype._defineFieldMap=function(){var e=this,t=y(this._typeConfig.fields);_(t)||(0,o.default)(0,this.name+" fields must be an object with field names as keys or a function which returns such an object.");var n=Object.keys(t);n.length>0||(0,o.default)(0,this.name+" fields must be an object with field names as keys or a function which returns such an object.");var r=Object.create(null);return n.forEach(function(n){(0,l.assertValidName)(n);var a=i({},t[n],{name:n});p(a.type)||(0,o.default)(0,e.name+"."+n+" field type must be Input Type but got: "+String(a.type)+"."),null!=a.resolve&&(0,o.default)(0,e.name+"."+n+" field type has a resolve property, but Input Types cannot define resolvers."),r[n]=a}),r},e.prototype.toString=function(){return this.name},e}();O.prototype.toJSON=O.prototype.inspect=O.prototype.toString;var C=t.GraphQLList=function(){function e(t){c(this,e),f(t)||(0,o.default)(0,"Can only create List of a GraphQLType but got: "+String(t)+"."),this.ofType=t}return e.prototype.toString=function(){return"["+String(this.ofType)+"]"},e}();C.prototype.toJSON=C.prototype.inspect=C.prototype.toString;var S=t.GraphQLNonNull=function(){function e(t){c(this,e),(!f(t)||t instanceof e)&&(0,o.default)(0,"Can only create NonNull of a Nullable GraphQLType but got: "+String(t)+"."),this.ofType=t}return e.prototype.toString=function(){return this.ofType.toString()+"!"},e}();S.prototype.toJSON=S.prototype.inspect=S.prototype.toString},function(e,t,n){e.exports=n(206)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.VARIABLE="Variable",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.TYPE_EXTENSION_DEFINITION="TypeExtensionDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw new Error(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:i})};var r=n(11);var i={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return o(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",o(e.variableDefinitions,", "),")"),i=o(e.directives," "),a=e.selectionSet;return n||i||r||"query"!==t?o([t,o([n,r]),i,a]," "):a},VariableDefinition:function(e){return e.variable+": "+e.type+u(" = ",e.defaultValue)},SelectionSet:function(e){return a(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet;return o([u("",t,": ")+n+u("(",o(r,", "),")"),o(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",o(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return o(["...",u("on ",t),o(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.directives,i=e.selectionSet;return"fragment "+t+" on "+n+" "+u("",o(r," ")," ")+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e){var t=e.value;return JSON.stringify(t)},BooleanValue:function(e){var t=e.value;return JSON.stringify(t)},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+o(e.values,", ")+"]"},ObjectValue:function(e){return"{"+o(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",o(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,n=e.operationTypes;return o(["schema",o(t," "),a(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:function(e){return o(["scalar",e.name,o(e.directives," ")]," ")},ObjectTypeDefinition:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,u("implements ",o(n,", ")),o(r," "),a(i)]," ")},FieldDefinition:function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+u("(",o(n,", "),")")+": "+r+u(" ",o(i," "))},InputValueDefinition:function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,u("= ",r),o(i," ")]," ")},InterfaceTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.fields;return o(["interface",t,o(n," "),a(r)]," ")},UnionTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.types;return o(["union",t,o(n," "),"= "+o(r," | ")]," ")},EnumTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.values;return o(["enum",t,o(n," "),a(r)]," ")},EnumValueDefinition:function(e){return o([e.name,o(e.directives," ")]," ")},InputObjectTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.fields;return o(["input",t,o(n," "),a(r)]," ")},TypeExtensionDefinition:function(e){return"extend "+e.definition},DirectiveDefinition:function(e){var t=e.name,n=e.arguments,r=e.locations;return"directive @"+t+u("(",o(n,", "),")")+" on "+o(r," | ")}};function o(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function a(e){return e&&0!==e.length?((t="{\n"+o(e,"\n"))&&t.replace(/\n/g,"\n  "))+"\n}":"{}";var t}function u(e,t,n){return t?e+t+(n||""):""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=i;var r=n(28);function i(e,t,n,o,a,u){var l=n;if(!l&&t&&t.length>0){var s=t[0];l=s&&s.loc&&s.loc.source}var c=o;!c&&t&&(c=t.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),c&&0===c.length&&(c=void 0);var f=void 0,p=l;p&&c&&(f=c.map(function(e){return(0,r.getLocation)(p,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:f||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:t||void 0},source:{value:l||void 0},positions:{value:c||void 0},originalError:{value:u}}),u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,i):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}i.prototype=Object.create(Error.prototype,{constructor:{value:i},name:{value:"GraphQLError"}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t,n){var u=n||r,l=void 0,s=Array.isArray(e),c=[e],f=-1,p=[],d=void 0,h=[],m=[],v=e;do{var g=++f===c.length,y=void 0,b=void 0,k=g&&0!==p.length;if(g){if(y=0===m.length?void 0:h.pop(),b=d,d=m.pop(),k){if(s)b=b.slice();else{var w={};for(var _ in b)b.hasOwnProperty(_)&&(w[_]=b[_]);b=w}for(var T=0,E=0;E<p.length;E++){var x=p[E][0],O=p[E][1];s&&(x-=T),s&&null===O?(b.splice(x,1),T++):b[x]=O}}f=l.index,c=l.keys,p=l.edits,s=l.inArray,l=l.prev}else{if(y=d?s?f:c[f]:void 0,null===(b=d?d[y]:v)||void 0===b)continue;d&&h.push(y)}var C=void 0;if(!Array.isArray(b)){if(!o(b))throw new Error("Invalid AST Node: "+JSON.stringify(b));var S=a(t,b.kind,g);if(S){if((C=S.call(t,b,y,d,h,m))===i)break;if(!1===C){if(!g){h.pop();continue}}else if(void 0!==C&&(p.push([y,C]),!g)){if(!o(C)){h.pop();continue}b=C}}}void 0===C&&k&&p.push([y,b]),g||(l={inArray:s,index:f,keys:c,edits:p,prev:l},s=Array.isArray(b),c=s?b:u[b.kind]||[],f=-1,p=[],d&&m.push(d),d=b)}while(void 0!==l);0!==p.length&&(v=p[p.length-1][1]);return v},t.visitInParallel=function(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(!t[r]){var o=a(e[r],n.kind,!1);if(o){var u=o.apply(e[r],arguments);if(!1===u)t[r]=n;else if(u===i)t[r]=i;else if(void 0!==u)return u}}},leave:function(n){for(var r=0;r<e.length;r++)if(t[r])t[r]===n&&(t[r]=null);else{var o=a(e[r],n.kind,!0);if(o){var u=o.apply(e[r],arguments);if(u===i)t[r]=i;else if(void 0!==u&&!1!==u)return u}}}}},t.visitWithTypeInfo=function(e,t){return{enter:function(n){e.enter(n);var r=a(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),o(i)&&e.enter(i)),i}},leave:function(n){var r=a(t,n.kind,!0),i=void 0;return r&&(i=r.apply(t,arguments)),e.leave(n),i}}},t.getVisitFn=a;var r=t.QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","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:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["name","directives"],ObjectTypeDefinition:["name","interfaces","directives","fields"],FieldDefinition:["name","arguments","type","directives"],InputValueDefinition:["name","type","defaultValue","directives"],InterfaceTypeDefinition:["name","directives","fields"],UnionTypeDefinition:["name","directives","types"],EnumTypeDefinition:["name","directives","values"],EnumValueDefinition:["name","directives"],InputObjectTypeDefinition:["name","directives","fields"],TypeExtensionDefinition:["definition"],DirectiveDefinition:["name","arguments","locations"]},i=t.BREAK={};function o(e){return e&&"string"==typeof e.kind}function a(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){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 u(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 l,s=[],c=!1,f=-1;function p(){c&&l&&(c=!1,l.length?s=l.concat(s):f=-1,s.length&&d())}function d(){if(!c){var e=u(p);c=!0;for(var t=s.length;t;){for(l=s,s=[];++f<t;)l&&l[f].run();f=-1,t=s.length}l=null,c=!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];s.push(new h(e,t)),1!==s.length||c||u(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";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){var n="string"==typeof e?new r.Source(e):e;if(!(n instanceof r.Source))throw new TypeError("Must provide Source. Received: "+String(n));return function(e){var t=e.token;M(e,o.TokenKind.SOF);var n=[];do{n.push(l(e))}while(!j(e,o.TokenKind.EOF));return{kind:a.DOCUMENT,definitions:n,loc:A(e,t)}}((0,o.createLexer)(n,t||{}))},t.parseValue=function(e,t){var n="string"==typeof e?new r.Source(e):e,i=(0,o.createLexer)(n,t||{});M(i,o.TokenKind.SOF);var a=y(i,!1);return M(i,o.TokenKind.EOF),a},t.parseType=function(e,t){var n="string"==typeof e?new r.Source(e):e,i=(0,o.createLexer)(n,t||{});M(i,o.TokenKind.SOF);var a=E(i);return M(i,o.TokenKind.EOF),a},t.parseConstValue=b,t.parseTypeReference=E,t.parseNamedType=x;var r=n(50),i=n(0),o=n(37),a=n(7);function u(e){var t=M(e,o.TokenKind.NAME);return{kind:a.NAME,value:t.value,loc:A(e,t)}}function l(e){if(F(e,o.TokenKind.BRACE_L))return s(e);if(F(e,o.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return s(e);case"fragment":return function(e){var t=e.token;return P(e,"fragment"),{kind:a.FRAGMENT_DEFINITION,name:g(e),typeCondition:(P(e,"on"),x(e)),directives:_(e),selectionSet:d(e),loc:A(e,t)}}(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return function(e){if(F(e,o.TokenKind.NAME))switch(e.token.value){case"schema":return function(e){var t=e.token;P(e,"schema");var n=_(e),r=Q(e,o.TokenKind.BRACE_L,O,o.TokenKind.BRACE_R);return{kind:a.SCHEMA_DEFINITION,directives:n,operationTypes:r,loc:A(e,t)}}(e);case"scalar":return function(e){var t=e.token;P(e,"scalar");var n=u(e),r=_(e);return{kind:a.SCALAR_TYPE_DEFINITION,name:n,directives:r,loc:A(e,t)}}(e);case"type":return C(e);case"interface":return function(e){var t=e.token;P(e,"interface");var n=u(e),r=_(e),i=V(e,o.TokenKind.BRACE_L,S,o.TokenKind.BRACE_R);return{kind:a.INTERFACE_TYPE_DEFINITION,name:n,directives:r,fields:i,loc:A(e,t)}}(e);case"union":return function(e){var t=e.token;P(e,"union");var n=u(e),r=_(e);M(e,o.TokenKind.EQUALS);var i=function(e){j(e,o.TokenKind.PIPE);var t=[];do{t.push(x(e))}while(j(e,o.TokenKind.PIPE));return t}(e);return{kind:a.UNION_TYPE_DEFINITION,name:n,directives:r,types:i,loc:A(e,t)}}(e);case"enum":return function(e){var t=e.token;P(e,"enum");var n=u(e),r=_(e),i=Q(e,o.TokenKind.BRACE_L,D,o.TokenKind.BRACE_R);return{kind:a.ENUM_TYPE_DEFINITION,name:n,directives:r,values:i,loc:A(e,t)}}(e);case"input":return function(e){var t=e.token;P(e,"input");var n=u(e),r=_(e),i=V(e,o.TokenKind.BRACE_L,L,o.TokenKind.BRACE_R);return{kind:a.INPUT_OBJECT_TYPE_DEFINITION,name:n,directives:r,fields:i,loc:A(e,t)}}(e);case"extend":return function(e){var t=e.token;P(e,"extend");var n=C(e);return{kind:a.TYPE_EXTENSION_DEFINITION,definition:n,loc:A(e,t)}}(e);case"directive":return function(e){var t=e.token;P(e,"directive"),M(e,o.TokenKind.AT);var n=u(e),r=N(e);P(e,"on");var i=function(e){j(e,o.TokenKind.PIPE);var t=[];do{t.push(u(e))}while(j(e,o.TokenKind.PIPE));return t}(e);return{kind:a.DIRECTIVE_DEFINITION,name:n,arguments:r,locations:i,loc:A(e,t)}}(e)}throw R(e)}(e)}throw R(e)}function s(e){var t=e.token;if(F(e,o.TokenKind.BRACE_L))return{kind:a.OPERATION_DEFINITION,operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:d(e),loc:A(e,t)};var n=c(e),r=void 0;return F(e,o.TokenKind.NAME)&&(r=u(e)),{kind:a.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:function(e){return F(e,o.TokenKind.PAREN_L)?Q(e,o.TokenKind.PAREN_L,f,o.TokenKind.PAREN_R):[]}(e),directives:_(e),selectionSet:d(e),loc:A(e,t)}}function c(e){var t=M(e,o.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw R(e,t)}function f(e){var t=e.token;return{kind:a.VARIABLE_DEFINITION,variable:p(e),type:(M(e,o.TokenKind.COLON),E(e)),defaultValue:j(e,o.TokenKind.EQUALS)?y(e,!0):null,loc:A(e,t)}}function p(e){var t=e.token;return M(e,o.TokenKind.DOLLAR),{kind:a.VARIABLE,name:u(e),loc:A(e,t)}}function d(e){var t=e.token;return{kind:a.SELECTION_SET,selections:Q(e,o.TokenKind.BRACE_L,h,o.TokenKind.BRACE_R),loc:A(e,t)}}function h(e){return F(e,o.TokenKind.SPREAD)?function(e){var t=e.token;if(M(e,o.TokenKind.SPREAD),F(e,o.TokenKind.NAME)&&"on"!==e.token.value)return{kind:a.FRAGMENT_SPREAD,name:g(e),directives:_(e),loc:A(e,t)};var n=null;"on"===e.token.value&&(e.advance(),n=x(e));return{kind:a.INLINE_FRAGMENT,typeCondition:n,directives:_(e),selectionSet:d(e),loc:A(e,t)}}(e):function(e){var t=e.token,n=u(e),r=void 0,i=void 0;j(e,o.TokenKind.COLON)?(r=n,i=u(e)):(r=null,i=n);return{kind:a.FIELD,alias:r,name:i,arguments:m(e),directives:_(e),selectionSet:F(e,o.TokenKind.BRACE_L)?d(e):null,loc:A(e,t)}}(e)}function m(e){return F(e,o.TokenKind.PAREN_L)?Q(e,o.TokenKind.PAREN_L,v,o.TokenKind.PAREN_R):[]}function v(e){var t=e.token;return{kind:a.ARGUMENT,name:u(e),value:(M(e,o.TokenKind.COLON),y(e,!1)),loc:A(e,t)}}function g(e){if("on"===e.token.value)throw R(e);return u(e)}function y(e,t){var n=e.token;switch(n.kind){case o.TokenKind.BRACKET_L:return function(e,t){var n=e.token,r=t?b:k;return{kind:a.LIST,values:V(e,o.TokenKind.BRACKET_L,r,o.TokenKind.BRACKET_R),loc:A(e,n)}}(e,t);case o.TokenKind.BRACE_L:return function(e,t){var n=e.token;M(e,o.TokenKind.BRACE_L);var r=[];for(;!j(e,o.TokenKind.BRACE_R);)r.push(w(e,t));return{kind:a.OBJECT,fields:r,loc:A(e,n)}}(e,t);case o.TokenKind.INT:return e.advance(),{kind:a.INT,value:n.value,loc:A(e,n)};case o.TokenKind.FLOAT:return e.advance(),{kind:a.FLOAT,value:n.value,loc:A(e,n)};case o.TokenKind.STRING:return e.advance(),{kind:a.STRING,value:n.value,loc:A(e,n)};case o.TokenKind.NAME:return"true"===n.value||"false"===n.value?(e.advance(),{kind:a.BOOLEAN,value:"true"===n.value,loc:A(e,n)}):"null"===n.value?(e.advance(),{kind:a.NULL,loc:A(e,n)}):(e.advance(),{kind:a.ENUM,value:n.value,loc:A(e,n)});case o.TokenKind.DOLLAR:if(!t)return p(e)}throw R(e)}function b(e){return y(e,!0)}function k(e){return y(e,!1)}function w(e,t){var n=e.token;return{kind:a.OBJECT_FIELD,name:u(e),value:(M(e,o.TokenKind.COLON),y(e,t)),loc:A(e,n)}}function _(e){for(var t=[];F(e,o.TokenKind.AT);)t.push(T(e));return t}function T(e){var t=e.token;return M(e,o.TokenKind.AT),{kind:a.DIRECTIVE,name:u(e),arguments:m(e),loc:A(e,t)}}function E(e){var t=e.token,n=void 0;return j(e,o.TokenKind.BRACKET_L)?(n=E(e),M(e,o.TokenKind.BRACKET_R),n={kind:a.LIST_TYPE,type:n,loc:A(e,t)}):n=x(e),j(e,o.TokenKind.BANG)?{kind:a.NON_NULL_TYPE,type:n,loc:A(e,t)}:n}function x(e){var t=e.token;return{kind:a.NAMED_TYPE,name:u(e),loc:A(e,t)}}function O(e){var t=e.token,n=c(e);M(e,o.TokenKind.COLON);var r=x(e);return{kind:a.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:A(e,t)}}function C(e){var t=e.token;P(e,"type");var n=u(e),r=function(e){var t=[];if("implements"===e.token.value){e.advance();do{t.push(x(e))}while(F(e,o.TokenKind.NAME))}return t}(e),i=_(e),l=V(e,o.TokenKind.BRACE_L,S,o.TokenKind.BRACE_R);return{kind:a.OBJECT_TYPE_DEFINITION,name:n,interfaces:r,directives:i,fields:l,loc:A(e,t)}}function S(e){var t=e.token,n=u(e),r=N(e);M(e,o.TokenKind.COLON);var i=E(e),l=_(e);return{kind:a.FIELD_DEFINITION,name:n,arguments:r,type:i,directives:l,loc:A(e,t)}}function N(e){return F(e,o.TokenKind.PAREN_L)?Q(e,o.TokenKind.PAREN_L,L,o.TokenKind.PAREN_R):[]}function L(e){var t=e.token,n=u(e);M(e,o.TokenKind.COLON);var r=E(e),i=null;j(e,o.TokenKind.EQUALS)&&(i=b(e));var l=_(e);return{kind:a.INPUT_VALUE_DEFINITION,name:n,type:r,defaultValue:i,directives:l,loc:A(e,t)}}function D(e){var t=e.token,n=u(e),r=_(e);return{kind:a.ENUM_VALUE_DEFINITION,name:n,directives:r,loc:A(e,t)}}function A(e,t){if(!e.options.noLocation)return new I(t,e.lastToken,e.source)}function I(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function F(e,t){return e.token.kind===t}function j(e,t){var n=e.token.kind===t;return n&&e.advance(),n}function M(e,t){var n=e.token;if(n.kind===t)return e.advance(),n;throw(0,i.syntaxError)(e.source,n.start,"Expected "+t+", found "+(0,o.getTokenDesc)(n))}function P(e,t){var n=e.token;if(n.kind===o.TokenKind.NAME&&n.value===t)return e.advance(),n;throw(0,i.syntaxError)(e.source,n.start,'Expected "'+t+'", found '+(0,o.getTokenDesc)(n))}function R(e,t){var n=t||e.token;return(0,i.syntaxError)(e.source,n.start,"Unexpected "+(0,o.getTokenDesc)(n))}function V(e,t,n,r){M(e,t);for(var i=[];!j(e,r);)i.push(n(e));return i}function Q(e,t,n,r){M(e,t);for(var i=[n(e)];!j(e,r);)i.push(n(e));return i}I.prototype.toJSON=I.prototype.inspect=function(){return{start:this.start,end:this.end}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSchema=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(5),o=n(15),a=n(16),u=c(n(31)),l=c(n(8)),s=n(53);function c(e){return e&&e.__esModule?e:{default:e}}t.GraphQLSchema=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==(void 0===t?"undefined":r(t))&&(0,l.default)(0,"Must provide configuration object."),t.query instanceof i.GraphQLObjectType||(0,l.default)(0,"Schema query must be Object Type but got: "+String(t.query)+"."),this._queryType=t.query,!t.mutation||t.mutation instanceof i.GraphQLObjectType||(0,l.default)(0,"Schema mutation must be Object Type if provided but got: "+String(t.mutation)+"."),this._mutationType=t.mutation,!t.subscription||t.subscription instanceof i.GraphQLObjectType||(0,l.default)(0,"Schema subscription must be Object Type if provided but got: "+String(t.subscription)+"."),this._subscriptionType=t.subscription,t.types&&!Array.isArray(t.types)&&(0,l.default)(0,"Schema types must be Array if provided but got: "+String(t.types)+"."),!t.directives||Array.isArray(t.directives)&&t.directives.every(function(e){return e instanceof o.GraphQLDirective})||(0,l.default)(0,"Schema directives must be Array<GraphQLDirective> if provided but got: "+String(t.directives)+"."),this._directives=t.directives||o.specifiedDirectives,this.astNode=t.astNode||null;var c=[this.getQueryType(),this.getMutationType(),this.getSubscriptionType(),a.__Schema],p=t.types;p&&(c=c.concat(p)),this._typeMap=c.reduce(f,Object.create(null)),this._implementations=Object.create(null),Object.keys(this._typeMap).forEach(function(e){var t=n._typeMap[e];t instanceof i.GraphQLObjectType&&t.getInterfaces().forEach(function(e){var r=n._implementations[e.name];r?r.push(t):n._implementations[e.name]=[t]})}),Object.keys(this._typeMap).forEach(function(e){var t=n._typeMap[e];t instanceof i.GraphQLObjectType&&t.getInterfaces().forEach(function(e){return function(e,t,n){var r=t.getFields(),o=n.getFields();Object.keys(o).forEach(function(a){var c=r[a],f=o[a];c||(0,l.default)(0,'"'+n.name+'" expects field "'+a+'" but "'+t.name+'" does not provide it.'),(0,s.isTypeSubTypeOf)(e,c.type,f.type)||(0,l.default)(0,n.name+"."+a+' expects type "'+String(f.type)+'" but '+t.name+"."+a+' provides type "'+String(c.type)+'".'),f.args.forEach(function(e){var r=e.name,i=(0,u.default)(c.args,function(e){return e.name===r});i||(0,l.default)(0,n.name+"."+a+' expects argument "'+r+'" but '+t.name+"."+a+" does not provide it."),(0,s.isEqualType)(e.type,i.type)||(0,l.default)(0,n.name+"."+a+"("+r+':) expects type "'+String(e.type)+'" but '+t.name+"."+a+"("+r+':) provides type "'+String(i.type)+'".')}),c.args.forEach(function(e){var r=e.name,o=(0,u.default)(f.args,function(e){return e.name===r});o||e.type instanceof i.GraphQLNonNull&&(0,l.default)(0,t.name+"."+a+"("+r+':) is of required type "'+String(e.type)+'" but is not also provided by the interface '+n.name+"."+a+".")})})}(n,t,e)})})}return e.prototype.getQueryType=function(){return this._queryType},e.prototype.getMutationType=function(){return this._mutationType},e.prototype.getSubscriptionType=function(){return this._subscriptionType},e.prototype.getTypeMap=function(){return this._typeMap},e.prototype.getType=function(e){return this.getTypeMap()[e]},e.prototype.getPossibleTypes=function(e){return e instanceof i.GraphQLUnionType?e.getTypes():(e instanceof i.GraphQLInterfaceType||(0,l.default)(0),this._implementations[e.name])},e.prototype.isPossibleType=function(e,t){var n=this._possibleTypeMap;if(n||(this._possibleTypeMap=n=Object.create(null)),!n[e.name]){var r=this.getPossibleTypes(e);Array.isArray(r)||(0,l.default)(0,"Could not find possible implementing types for "+e.name+" in schema. Check that schema.types is defined and is an array of all possible types in the schema."),n[e.name]=r.reduce(function(e,t){return e[t.name]=!0,e},Object.create(null))}return Boolean(n[e.name][t.name])},e.prototype.getDirectives=function(){return this._directives},e.prototype.getDirective=function(e){return(0,u.default)(this.getDirectives(),function(t){return t.name===e})},e}();function f(e,t){if(!t)return e;if(t instanceof i.GraphQLList||t instanceof i.GraphQLNonNull)return f(e,t.ofType);if(e[t.name])return e[t.name]!==t&&(0,l.default)(0,'Schema must contain unique named types but contains multiple types named "'+t.name+'".'),e;e[t.name]=t;var n=e;if(t instanceof i.GraphQLUnionType&&(n=t.getTypes().reduce(f,n)),t instanceof i.GraphQLObjectType&&(n=t.getInterfaces().reduce(f,n)),t instanceof i.GraphQLObjectType||t instanceof i.GraphQLInterfaceType){var r=t.getFields();Object.keys(r).forEach(function(e){var t=r[e];if(t.args){var i=t.args.map(function(e){return e.type});n=i.reduce(f,n)}n=f(n,t.type)})}if(t instanceof i.GraphQLInputObjectType){var o=t.getFields();Object.keys(o).forEach(function(e){var t=o[e];n=f(n,t.type)})}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedDirectives=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.DirectiveLocation=void 0;var r,i=n(5),o=n(19),a=n(8),u=(r=a)&&r.__esModule?r:{default:r},l=n(80);var s=t.DirectiveLocation={QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",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"},c=t.GraphQLDirective=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.name||(0,u.default)(0,"Directive must be named."),(0,l.assertValidName)(t.name),Array.isArray(t.locations)||(0,u.default)(0,"Must provide locations for directive."),this.name=t.name,this.description=t.description,this.locations=t.locations,this.astNode=t.astNode;var n=t.args;n?(Array.isArray(n)&&(0,u.default)(0,"@"+t.name+" args must be an object with argument names as keys."),this.args=Object.keys(n).map(function(e){(0,l.assertValidName)(e);var r=n[e];return(0,i.isInputType)(r.type)||(0,u.default)(0,"@"+t.name+"("+e+":) argument type must be Input Type but got: "+String(r.type)+"."),{name:e,description:void 0===r.description?null:r.description,type:r.type,defaultValue:r.defaultValue,astNode:r.astNode}})):this.args=[]},f=t.GraphQLIncludeDirective=new c({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[s.FIELD,s.FRAGMENT_SPREAD,s.INLINE_FRAGMENT],args:{if:{type:new i.GraphQLNonNull(o.GraphQLBoolean),description:"Included when true."}}}),p=t.GraphQLSkipDirective=new c({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[s.FIELD,s.FRAGMENT_SPREAD,s.INLINE_FRAGMENT],args:{if:{type:new i.GraphQLNonNull(o.GraphQLBoolean),description:"Skipped when true."}}}),d=t.DEFAULT_DEPRECATION_REASON="No longer supported",h=t.GraphQLDeprecatedDirective=new c({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[s.FIELD_DEFINITION,s.ENUM_VALUE],args:{reason:{type:o.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).",defaultValue:d}}});t.specifiedDirectives=[f,p,h]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.SchemaMetaFieldDef=t.__TypeKind=t.TypeKind=t.__EnumValue=t.__InputValue=t.__Field=t.__Type=t.__DirectiveLocation=t.__Directive=t.__Schema=void 0;var r,i=n(38),o=(r=i)&&r.__esModule?r:{default:r},a=n(81),u=n(9),l=n(5),s=n(19),c=n(15);var f=t.__Schema=new l.GraphQLObjectType({name:"__Schema",isIntrospection:!0,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{types:{description:"A list of all types supported by this server.",type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(h))),resolve:function(e){var t=e.getTypeMap();return Object.keys(t).map(function(e){return t[e]})}},queryType:{description:"The type that query operations will be rooted at.",type:new l.GraphQLNonNull(h),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:h,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:h,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(p))),resolve:function(e){return e.getDirectives()}}}}}),p=t.__Directive=new l.GraphQLObjectType({name:"__Directive",isIntrospection:!0,description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new l.GraphQLNonNull(s.GraphQLString)},description:{type:s.GraphQLString},locations:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(d)))},args:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(v))),resolve:function(e){return e.args||[]}},onOperation:{deprecationReason:"Use `locations`.",type:new l.GraphQLNonNull(s.GraphQLBoolean),resolve:function(e){return-1!==e.locations.indexOf(c.DirectiveLocation.QUERY)||-1!==e.locations.indexOf(c.DirectiveLocation.MUTATION)||-1!==e.locations.indexOf(c.DirectiveLocation.SUBSCRIPTION)}},onFragment:{deprecationReason:"Use `locations`.",type:new l.GraphQLNonNull(s.GraphQLBoolean),resolve:function(e){return-1!==e.locations.indexOf(c.DirectiveLocation.FRAGMENT_SPREAD)||-1!==e.locations.indexOf(c.DirectiveLocation.INLINE_FRAGMENT)||-1!==e.locations.indexOf(c.DirectiveLocation.FRAGMENT_DEFINITION)}},onField:{deprecationReason:"Use `locations`.",type:new l.GraphQLNonNull(s.GraphQLBoolean),resolve:function(e){return-1!==e.locations.indexOf(c.DirectiveLocation.FIELD)}}}}}),d=t.__DirectiveLocation=new l.GraphQLEnumType({name:"__DirectiveLocation",isIntrospection:!0,description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:c.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:c.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:c.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:c.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:c.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:c.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:c.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},SCHEMA:{value:c.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:c.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:c.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:c.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:c.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:c.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:c.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:c.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:c.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:c.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:c.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),h=t.__Type=new l.GraphQLObjectType({name:"__Type",isIntrospection:!0,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 and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new l.GraphQLNonNull(b),resolve:function(e){if(e instanceof l.GraphQLScalarType)return y.SCALAR;if(e instanceof l.GraphQLObjectType)return y.OBJECT;if(e instanceof l.GraphQLInterfaceType)return y.INTERFACE;if(e instanceof l.GraphQLUnionType)return y.UNION;if(e instanceof l.GraphQLEnumType)return y.ENUM;if(e instanceof l.GraphQLInputObjectType)return y.INPUT_OBJECT;if(e instanceof l.GraphQLList)return y.LIST;if(e instanceof l.GraphQLNonNull)return y.NON_NULL;throw new Error("Unknown kind of type: "+e)}},name:{type:s.GraphQLString},description:{type:s.GraphQLString},fields:{type:new l.GraphQLList(new l.GraphQLNonNull(m)),args:{includeDeprecated:{type:s.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(e instanceof l.GraphQLObjectType||e instanceof l.GraphQLInterfaceType){var r=e.getFields(),i=Object.keys(r).map(function(e){return r[e]});return n||(i=i.filter(function(e){return!e.deprecationReason})),i}return null}},interfaces:{type:new l.GraphQLList(new l.GraphQLNonNull(h)),resolve:function(e){if(e instanceof l.GraphQLObjectType)return e.getInterfaces()}},possibleTypes:{type:new l.GraphQLList(new l.GraphQLNonNull(h)),resolve:function(e,t,n,r){var i=r.schema;if((0,l.isAbstractType)(e))return i.getPossibleTypes(e)}},enumValues:{type:new l.GraphQLList(new l.GraphQLNonNull(g)),args:{includeDeprecated:{type:s.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(e instanceof l.GraphQLEnumType){var r=e.getValues();return n||(r=r.filter(function(e){return!e.deprecationReason})),r}}},inputFields:{type:new l.GraphQLList(new l.GraphQLNonNull(v)),resolve:function(e){if(e instanceof l.GraphQLInputObjectType){var t=e.getFields();return Object.keys(t).map(function(e){return t[e]})}}},ofType:{type:h}}}}),m=t.__Field=new l.GraphQLObjectType({name:"__Field",isIntrospection:!0,description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new l.GraphQLNonNull(s.GraphQLString)},description:{type:s.GraphQLString},args:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(v))),resolve:function(e){return e.args||[]}},type:{type:new l.GraphQLNonNull(h)},isDeprecated:{type:new l.GraphQLNonNull(s.GraphQLBoolean)},deprecationReason:{type:s.GraphQLString}}}}),v=t.__InputValue=new l.GraphQLObjectType({name:"__InputValue",isIntrospection:!0,description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new l.GraphQLNonNull(s.GraphQLString)},description:{type:s.GraphQLString},type:{type:new l.GraphQLNonNull(h)},defaultValue:{type:s.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){return(0,o.default)(e.defaultValue)?null:(0,u.print)((0,a.astFromValue)(e.defaultValue,e.type))}}}}}),g=t.__EnumValue=new l.GraphQLObjectType({name:"__EnumValue",isIntrospection:!0,description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new l.GraphQLNonNull(s.GraphQLString)},description:{type:s.GraphQLString},isDeprecated:{type:new l.GraphQLNonNull(s.GraphQLBoolean)},deprecationReason:{type:s.GraphQLString}}}}),y=t.TypeKind={SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"},b=t.__TypeKind=new l.GraphQLEnumType({name:"__TypeKind",isIntrospection:!0,description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.SchemaMetaFieldDef={name:"__schema",type:new l.GraphQLNonNull(f),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema}},t.TypeMetaFieldDef={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",type:new l.GraphQLNonNull(s.GraphQLString)}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)}},t.TypeNameMetaFieldDef={name:"__typename",type:new l.GraphQLNonNull(s.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeFromAST=void 0;var r,i=n(8),o=(r=i)&&r.__esModule?r:{default:r},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),u=n(5);var l=t.typeFromAST=function(e,t){var n=void 0;return t.kind===a.LIST_TYPE?(n=l(e,t.type))&&new u.GraphQLList(n):t.kind===a.NON_NULL_TYPE?(n=l(e,t.type))&&new u.GraphQLNonNull(n):(t.kind!==a.NAMED_TYPE&&(0,o.default)(0,"Must be a named type."),e.getType(t.name.value))}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLID=t.GraphQLBoolean=t.GraphQLString=t.GraphQLFloat=t.GraphQLInt=void 0;var r=n(5),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7));var o=2147483647,a=-2147483648;function u(e){if(""===e)throw new TypeError("Int cannot represent non 32-bit signed integer value: (empty string)");var t=Number(e);if(t!=t||t>o||t<a)throw new TypeError("Int cannot represent non 32-bit signed integer value: "+String(e));var n=Math.floor(t);if(n!==t)throw new TypeError("Int cannot represent non-integer value: "+String(e));return n}t.GraphQLInt=new r.GraphQLScalarType({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:u,parseValue:u,parseLiteral:function(e){if(e.kind===i.INT){var t=parseInt(e.value,10);if(t<=o&&t>=a)return t}return null}});function l(e){if(""===e)throw new TypeError("Float cannot represent non numeric value: (empty string)");var t=Number(e);if(t==t)return t;throw new TypeError("Float cannot represent non numeric value: "+String(e))}t.GraphQLFloat=new r.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ",serialize:l,parseValue:l,parseLiteral:function(e){return e.kind===i.FLOAT||e.kind===i.INT?parseFloat(e.value):null}});function s(e){if(Array.isArray(e))throw new TypeError("String cannot represent an array value: ["+String(e)+"]");return String(e)}t.GraphQLString=new r.GraphQLScalarType({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:s,parseValue:s,parseLiteral:function(e){return e.kind===i.STRING?e.value:null}}),t.GraphQLBoolean=new r.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:Boolean,parseValue:Boolean,parseLiteral:function(e){return e.kind===i.BOOLEAN?e.value:null}}),t.GraphQLID=new r.GraphQLScalarType({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:String,parseValue:String,parseLiteral:function(e){return e.kind===i.STRING||e.kind===i.INT?e.value:null}})},function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,r=n||"@@iterator";function i(e){return!!u(e)}function o(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function a(e){var t=u(e);if(t)return t.call(e)}function u(e){if(null!=e){var t=n&&e[n]||e["@@iterator"];if("function"==typeof t)return t}}function l(e){if(null!=e){var t=a(e);if(t)return t;if(o(e))return new s(e)}}function s(e){this._o=e,this._i=0}t.$$iterator=r,t.isIterable=i,t.isArrayLike=o,t.isCollection=function(e){return Object(e)===e&&(o(e)||i(e))},t.getIterator=a,t.getIteratorMethod=u,t.createIterator=l,s.prototype[r]=function(){return this},s.prototype.next=function(){return void 0===this._o||this._i>=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}},t.forEach=function(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,i=a(e);if(i){for(var u;!(u=i.next()).done;)if(t.call(n,u.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(o(e))for(;r<e.length;r++)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}};var c="function"==typeof Symbol&&Symbol.asyncIterator,f=c||"@@asyncIterator";function p(e){var t=d(e);if(t)return t.call(e)}function d(e){if(null!=e){var t=c&&e[c]||e["@@asyncIterator"];if("function"==typeof t)return t}}function h(e){if(null!=e){var t=p(e);if(t)return t;var n=l(e);if(n)return new m(n)}}function m(e){this._i=e}t.$$asyncIterator=f,t.isAsyncIterable=function(e){return!!d(e)},t.getAsyncIterator=p,t.getAsyncIteratorMethod=d,t.createAsyncIterator=h,m.prototype[f]=function(){return this},m.prototype.next=function(){var e=this._i.next();return Promise.resolve(e.value).then(function(t){return{value:t,done:e.done}})},t.forAwaitEach=function(e,t,n){var r=h(e);if(r){var i=0;return new Promise(function(o,a){!function u(){return r.next().then(function(r){r.done?o():Promise.resolve(t.call(n,r.value,i++,e)).then(u).catch(a)}).catch(a)}()})}}},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";t.h=function(e){return["StringValue","BooleanValue","EnumValue"].indexOf(e.kind)>-1},t.g=function(e){return["IntValue","FloatValue"].indexOf(e.kind)>-1},t.m=a,t.j=function(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,o=r.value;return a(n[e.name.value],i,o,t)})}));var r=null;e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return a(r,n,i,t)}));return l(e.name.value,r,n)},t.b=l,t.a=function(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return a(n,r,i,t)}),n}return null},t.i=function(e){return e.alias?e.alias.value:e.name.value},t.c=function(e){return"Field"===e.kind},t.e=function(e){return"InlineFragment"===e.kind},t.d=function(e){return e&&"id"===e.type&&"boolean"==typeof e.generated},t.k=function(e,t){void 0===t&&(t=!1);return o({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)},t.f=function(e){return null!=e&&"object"==typeof e&&"json"===e.type},t.l=function e(t,n){void 0===n&&(n=s);switch(t.kind){case"Variable":return n(t);case"NullValue":return null;case"IntValue":return parseInt(t.value,10);case"FloatValue":return parseFloat(t.value);case"ListValue":return t.values.map(function(t){return e(t,n)});case"ObjectValue":for(var r={},i=0,o=t.fields;i<o.length;i++){var a=o[i];r[a.name.value]=e(a.value,n)}return r;default:return t.value}};var r=n(49),i=n.n(r),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)};function a(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(e){return a(i,e.name,e.value,r)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return a(n,t,e,r),n[t.value]});else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new Error('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.');e[t.value]=null}}var u=["connection","include","skip","client","rest","export"];function l(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o=t,a={};return r.forEach(function(e){a[e]=o[e]}),n.connection.key+"("+JSON.stringify(a)+")"}return n.connection.key}var l=e;if(t){var s=i()(t);l+="("+s+")"}return n&&Object.keys(n).forEach(function(e){-1===u.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?l+="@"+e+"("+JSON.stringify(n[e])+")":l+="@"+e)}),l}function s(e){throw new Error("Variable nodes are not supported by valueFromNode")}},function(e,t,n){"use strict";(function(e){function n(){return void 0!==e?"production":"development"}function r(e){return n()===e}t.a=n,t.c=r,t.d=function(){return!0===r("production")},t.b=function(){return!0===r("development")},t.e=function(){return!0===r("test")}}).call(t,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null===e||void 0===e||e!=e}},function(e,t,n){e.exports=n(110).Observable},function(e,t,n){"use strict";function r(e,t,n,i){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map(function(e){return r(o,e.name,e.value,i)}),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(i||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return r(n,t,e,i),n[t.value]});else{if(!function(e){return"EnumValue"===e.kind}(n))throw new Error('The inline argument "'+t.value+'" of kind "'+n.kind+'" is not supported.\n                    Use variables instead of inline arguments to overcome this limitation.');e[t.value]=n.value}}t.b=r,t.a=function(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var i=e.name,o=e.value;return r(n,i,o,t)}),n}return null}},function(e,t,n){"use strict";(function(e){function n(t){return(void 0!==e?"production":"development")===t}t.b=function(){return!0===n("production")},t.a=function(){return!0===n("development")},t.c=function(){return!0===n("test")}}).call(t,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){var n=/\r\n|[\n\r]/g,r=1,i=t+1,o=void 0;for(;(o=n.exec(e.body))&&o.index<t;)r+=1,i=t+1-(o.index+o[0].length);return{line:r,column:i}}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t){var n={},r=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},i=r(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),o=r(function(){return document.head||document.getElementsByTagName("head")[0]}),a=null,u=0,l=[];function s(e,t){for(var r=0;r<e.length;r++){var i=e[r],o=n[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(h(i.parts[a],t))}else{var u=[];for(a=0;a<i.parts.length;a++)u.push(h(i.parts[a],t));n[i.id]={id:i.id,refs:1,parts:u}}}}function c(e){for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],o=i[0],a={css:i[1],media:i[2],sourceMap:i[3]};n[o]?n[o].parts.push(a):t.push(n[o]={id:o,parts:[a]})}return t}function f(e,t){var n=o(),r=l[l.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),l.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function p(e){e.parentNode.removeChild(e);var t=l.indexOf(e);t>=0&&l.splice(t,1)}function d(e){var t=document.createElement("style");return t.type="text/css",f(e,t),t}function h(e,t){var n,r,i;if(t.singleton){var o=u++;n=a||(a=d(t)),r=g.bind(null,n,o,!1),i=g.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",f(e,t),t}(t),r=function(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}.bind(null,n),i=function(){p(n),n.href&&URL.revokeObjectURL(n.href)}):(n=d(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){p(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");void 0===(t=t||{}).singleton&&(t.singleton=i()),void 0===t.insertAt&&(t.insertAt="bottom");var r=c(e);return s(r,t),function(e){for(var i=[],o=0;o<r.length;o++){var a=r[o];(u=n[a.id]).refs--,i.push(u)}e&&s(c(e),t);for(o=0;o<i.length;o++){var u;if(0===(u=i[o]).refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete n[u.id]}}}};var m,v=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function g(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},Object.create(null))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56);Object.defineProperty(t,"getDefinitionState",{enumerable:!0,get:function(){return r.getDefinitionState}}),Object.defineProperty(t,"getFieldDef",{enumerable:!0,get:function(){return r.getFieldDef}}),Object.defineProperty(t,"forEachState",{enumerable:!0,get:function(){return r.forEachState}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return r.objectValues}}),Object.defineProperty(t,"hintList",{enumerable:!0,get:function(){return r.hintList}});var i=n(57);Object.defineProperty(t,"getAutocompleteSuggestions",{enumerable:!0,get:function(){return i.getAutocompleteSuggestions}});var o=n(58);Object.defineProperty(t,"LANGUAGE",{enumerable:!0,get:function(){return o.LANGUAGE}}),Object.defineProperty(t,"getDefinitionQueryResultForFragmentSpread",{enumerable:!0,get:function(){return o.getDefinitionQueryResultForFragmentSpread}}),Object.defineProperty(t,"getDefinitionQueryResultForDefinitionNode",{enumerable:!0,get:function(){return o.getDefinitionQueryResultForDefinitionNode}});var a=n(60);Object.defineProperty(t,"getDiagnostics",{enumerable:!0,get:function(){return a.getDiagnostics}}),Object.defineProperty(t,"validateQuery",{enumerable:!0,get:function(){return a.validateQuery}});var u=n(98);Object.defineProperty(t,"getOutline",{enumerable:!0,get:function(){return u.getOutline}});var l=n(99);Object.defineProperty(t,"GraphQLLanguageService",{enumerable:!0,get:function(){return l.GraphQLLanguageService}})},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(i.apply(null,r));else if("object"===o)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=i:void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";t.g=function(e){o(e);var t=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})[0];if(!t)throw new Error("Must contain a mutation definition.");return t},t.a=o,t.h=a,t.i=function(e){var t=a(e);if(!t)throw new Error("GraphQL document is missing an operation");return t},t.j=function(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null},t.e=function(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})},t.k=function(e){var t=a(e);if(!t||"query"!==t.operation)throw new Error("Must contain a query definition.");return t},t.d=function(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');if(e.definitions.length>1)throw new Error("Fragment must have exactly one definition.");var t=e.definitions[0];if("FragmentDefinition"!==t.kind)throw new Error("Must be a fragment definition.");return t},t.f=function(e){var t;o(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw new Error("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.")},t.b=function(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t},t.c=function(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter(function(e){var t=e.defaultValue;return t}).map(function(e){var t=e.variable,n=e.defaultValue,r={};return Object(i.m)(r,t.name,n),r});return r.a.apply(void 0,[{}].concat(t))}return{}},t.l=function(e){var t=new Set;if(e.variableDefinitions)for(var n=0,r=e.variableDefinitions;n<r.length;n++){var i=r[n];t.add(i.variable.name.value)}return t};var r=n(36),i=n(22);function o(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new Error('Schema type definitions not allowed in queries. Found: "'+e.kind+'"');return e});if(t.length>1)throw new Error("Ambiguous GraphQL document: contains "+t.length+" operations");return e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}},function(e,t,n){"use strict";t.a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){void 0!==t&&null!==t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.createLexer=function(e,t){var n=new C(o,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:i}},t.getTokenDesc=function(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind};var r=n(0);function i(){var e=this.lastToken=this.token;if(e.kind!==a){do{e=e.next=N(this,e)}while(e.kind===E);this.token=e}return e}var o="<SOF>",a="<EOF>",u="!",l="$",s="(",c=")",f="...",p=":",d="=",h="@",m="[",v="]",g="{",y="|",b="}",k="Name",w="Int",_="Float",T="String",E="Comment";t.TokenKind={SOF:o,EOF:a,BANG:u,DOLLAR:l,PAREN_L:s,PAREN_R:c,SPREAD:f,COLON:p,EQUALS:d,AT:h,BRACKET_L:m,BRACKET_R:v,BRACE_L:g,PIPE:y,BRACE_R:b,NAME:k,INT:w,FLOAT:_,STRING:T,COMMENT:E};var x=String.prototype.charCodeAt,O=String.prototype.slice;function C(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}function S(e){return isNaN(e)?a:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function N(e,t){var n=e.source,i=n.body,o=i.length,N=function(e,t,n){var r=e.length,i=t;for(;i<r;){var o=x.call(e,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===x.call(e,i+1)?i+=2:++i,++n.line,n.lineStart=i}}return i}(i,t.end,e),A=e.line,I=1+N-e.lineStart;if(N>=o)return new C(a,o,o,A,I,t);var F=x.call(i,N);if(F<32&&9!==F&&10!==F&&13!==F)throw(0,r.syntaxError)(n,N,"Cannot contain the invalid character "+S(F)+".");switch(F){case 33:return new C(u,N,N+1,A,I,t);case 35:return function(e,t,n,r,i){var o=e.body,a=void 0,u=t;do{a=x.call(o,++u)}while(null!==a&&(a>31||9===a));return new C(E,t,u,n,r,i,O.call(o,t+1,u))}(n,N,A,I,t);case 36:return new C(l,N,N+1,A,I,t);case 40:return new C(s,N,N+1,A,I,t);case 41:return new C(c,N,N+1,A,I,t);case 46:if(46===x.call(i,N+1)&&46===x.call(i,N+2))return new C(f,N,N+3,A,I,t);break;case 58:return new C(p,N,N+1,A,I,t);case 61:return new C(d,N,N+1,A,I,t);case 64:return new C(h,N,N+1,A,I,t);case 91:return new C(m,N,N+1,A,I,t);case 93:return new C(v,N,N+1,A,I,t);case 123:return new C(g,N,N+1,A,I,t);case 124:return new C(y,N,N+1,A,I,t);case 125:return new C(b,N,N+1,A,I,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,i){var o=e.body,a=o.length,u=t+1,l=0;for(;u!==a&&null!==(l=x.call(o,u))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++u;return new C(k,t,u,n,r,i,O.call(o,t,u))}(n,N,A,I,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,i,o,a){var u=e.body,l=n,s=t,c=!1;45===l&&(l=x.call(u,++s));if(48===l){if((l=x.call(u,++s))>=48&&l<=57)throw(0,r.syntaxError)(e,s,"Invalid number, unexpected digit after 0: "+S(l)+".")}else s=L(e,s,l),l=x.call(u,s);46===l&&(c=!0,l=x.call(u,++s),s=L(e,s,l),l=x.call(u,s));69!==l&&101!==l||(c=!0,43!==(l=x.call(u,++s))&&45!==l||(l=x.call(u,++s)),s=L(e,s,l));return new C(c?_:w,t,s,i,o,a,O.call(u,t,s))}(n,N,F,A,I,t);case 34:return function(e,t,n,i,o){var a=e.body,u=t+1,l=u,s=0,c="";for(;u<a.length&&null!==(s=x.call(a,u))&&10!==s&&13!==s&&34!==s;){if(s<32&&9!==s)throw(0,r.syntaxError)(e,u,"Invalid character within String: "+S(s)+".");if(++u,92===s){switch(c+=O.call(a,l,u-1),s=x.call(a,u)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var f=(p=x.call(a,u+1),d=x.call(a,u+2),h=x.call(a,u+3),m=x.call(a,u+4),D(p)<<12|D(d)<<8|D(h)<<4|D(m));if(f<0)throw(0,r.syntaxError)(e,u,"Invalid character escape sequence: \\u"+a.slice(u+1,u+5)+".");c+=String.fromCharCode(f),u+=4;break;default:throw(0,r.syntaxError)(e,u,"Invalid character escape sequence: \\"+String.fromCharCode(s)+".")}l=++u}}var p,d,h,m;if(34!==s)throw(0,r.syntaxError)(e,u,"Unterminated string.");return c+=O.call(a,l,u),new C(T,t,u+1,n,i,o,c)}(n,N,A,I,t)}throw(0,r.syntaxError)(n,N,function(e){if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character "+S(e)+"."}(F))}function L(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=x.call(i,++o)}while(a>=48&&a<=57);return o}throw(0,r.syntaxError)(e,o,"Invalid number, expected digit but got: "+S(a)+".")}function D(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}C.prototype.toJSON=C.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return void 0===e||e!=e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=function e(t,n,s){if(!t)return;if(n instanceof l.GraphQLNonNull){if(t.kind===u.NULL)return;return e(t,n.ofType,s)}if(t.kind===u.NULL)return null;if(t.kind===u.VARIABLE){var f=t.name.value;if(!s||(0,a.default)(s[f]))return;return s[f]}if(n instanceof l.GraphQLList){var p=n.ofType;if(t.kind===u.LIST){for(var d=[],h=t.values,m=0;m<h.length;m++)if(c(h[m],s)){if(p instanceof l.GraphQLNonNull)return;d.push(null)}else{var v=e(h[m],p,s);if((0,a.default)(v))return;d.push(v)}return d}var g=e(t,p,s);if((0,a.default)(g))return;return[g]}if(n instanceof l.GraphQLInputObjectType){if(t.kind!==u.OBJECT)return;for(var y=Object.create(null),b=n.getFields(),k=(0,r.default)(t.fields,function(e){return e.name.value}),w=Object.keys(b),_=0;_<w.length;_++){var T=w[_],E=b[T],x=k[T];if(x&&!c(x.value,s)){var O=e(x.value,E.type,s);if((0,a.default)(O))return;y[T]=O}else if((0,a.default)(E.defaultValue)){if(E.type instanceof l.GraphQLNonNull)return}else y[T]=E.defaultValue}return y}n instanceof l.GraphQLScalarType||n instanceof l.GraphQLEnumType||(0,i.default)(0,"Must be input type");var C=n.parseLiteral(t);if((0,o.default)(C)&&!n.isValidLiteral(t))return;return C};var r=s(n(32)),i=s(n(8)),o=s(n(24)),a=s(n(38)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),l=n(5);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return e.kind===u.VARIABLE&&(!t||(0,a.default)(t[e.name.value]))}},function(e,t,n){(function(e){"use strict";var t,n,r=e.Pos;function i(e){return e.global?e:new RegExp(e.source,function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e)+"g")}function o(e,t,n){t=i(t);for(var o=n.line,a=n.ch,u=e.lastLine();o<=u;o++,a=0){t.lastIndex=a;var l=e.getLine(o),s=t.exec(l);if(s)return{from:r(o,s.index),to:r(o,s.index+s[0].length),match:s}}}function a(e,t){for(var n,r=0;;){t.lastIndex=r;var i=t.exec(e);if(!i)return n;if((r=(n=i).index+(n[0].length||1))==e.length)return n}}function u(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,u=r(e.slice(0,a)).length;if(u==n)return a;u>n?o=a:i=a+1}}function l(e,l,s,c){var f;this.atOccurrence=!1,this.doc=e,s=s?e.clipPos(s):r(0,0),this.pos={from:s,to:s},"object"==typeof c?f=c.caseFold:(f=c,c=null),"string"==typeof l?(null==f&&(f=!1),this.matches=function(i,o){return(i?function(e,i,o,a){if(!i.length)return null;var l=a?t:n,s=l(i).split(/\r|\n\r?/);e:for(var c=o.line,f=o.ch,p=e.firstLine()-1+s.length;c>=p;c--,f=-1){var d=e.getLine(c);f>-1&&(d=d.slice(0,f));var h=l(d);if(1==s.length){var m=h.lastIndexOf(s[0]);if(-1==m)continue e;return{from:r(c,u(d,h,m,l)),to:r(c,u(d,h,m+s[0].length,l))}}var v=s[s.length-1];if(h.slice(0,v.length)==v){var g=1;for(o=c-s.length+1;g<s.length-1;g++)if(l(e.getLine(o+g))!=s[g])continue e;var y=e.getLine(c+1-s.length),b=l(y);if(b.slice(b.length-s[0].length)==s[0])return{from:r(c+1-s.length,u(y,b,y.length-s[0].length,l)),to:r(c,u(d,h,v.length,l))}}}}:function(e,i,o,a){if(!i.length)return null;var l=a?t:n,s=l(i).split(/\r|\n\r?/);e:for(var c=o.line,f=o.ch,p=e.lastLine()+1-s.length;c<=p;c++,f=0){var d=e.getLine(c).slice(f),h=l(d);if(1==s.length){var m=h.indexOf(s[0]);if(-1==m)continue e;return o=u(d,h,m,l)+f,{from:r(c,u(d,h,m,l)+f),to:r(c,u(d,h,m+s[0].length,l)+f)}}var v=h.length-s[0].length;if(h.slice(v)==s[0]){for(var g=1;g<s.length-1;g++)if(l(e.getLine(c+g))!=s[g])continue e;var y=e.getLine(c+s.length-1),b=l(y),k=s[s.length-1];if(b.slice(0,k.length)==k)return{from:r(c,u(d,h,v,l)+f),to:r(c+s.length-1,u(y,b,k.length,l))}}}})(e,l,o,f)}):(l=i(l),c&&!1===c.multiline?this.matches=function(t,n){return(t?function(e,t,n){t=i(t);for(var o=n.line,u=n.ch,l=e.firstLine();o>=l;o--,u=-1){var s=e.getLine(o);u>-1&&(s=s.slice(0,u));var c=a(s,t);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}:o)(e,l,n)}:this.matches=function(t,n){return(t?function(e,t,n){t=i(t);for(var o,u=1,l=n.line,s=e.firstLine();l>=s;){for(var c=0;c<u;c++){var f=e.getLine(l--);o=null==o?f.slice(0,n.ch):f+"\n"+o}u*=2;var p=a(o,t);if(p){var d=o.slice(0,p.index).split("\n"),h=p[0].split("\n"),m=l+d.length,v=d[d.length-1].length;return{from:r(m,v),to:r(m+h.length-1,1==h.length?v+h[0].length:h[h.length-1].length),match:p}}}}:function(e,t,n){if(!function(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}(t))return o(e,t,n);t=i(t);for(var a,u=1,l=n.line,s=e.lastLine();l<=s;){for(var c=0;c<u;c++){var f=e.getLine(l++);a=null==a?f:a+"\n"+f}u*=2,t.lastIndex=n.ch;var p=t.exec(a);if(p){var d=a.slice(0,p.index).split("\n"),h=p[0].split("\n"),m=n.line+d.length-1,v=d[d.length-1].length;return{from:r(m,v),to:r(m+h.length-1,1==h.length?v+h[0].length:h[h.length-1].length),match:p}}}})(e,l,n)})}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}),l.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 l(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new l(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(4))},function(e,t,n){(function(e){function t(e,t,n){var r;return(r=e.getWrapperElement().appendChild(document.createElement("div"))).className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?r.innerHTML=t:r.appendChild(t),r}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),u=!1,l=this;function s(e){if("string"==typeof e)f.value=e;else{if(u)return;u=!0,a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,f=a.getElementsByTagName("input")[0];return f?(f.focus(),o.value&&(f.value=o.value,!1!==o.selectValueOnOpen&&f.select()),o.onInput&&e.on(f,"input",function(e){o.onInput(e,f.value,s)}),o.onKeyUp&&e.on(f,"keyup",function(e){o.onKeyUp(e,f.value,s)}),e.on(f,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,s)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),s()),13==t.keyCode&&i(f.value,t))}),!1!==o.closeOnBlur&&e.on(f,"blur",s)):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",function(){s(),l.focus()}),!1!==o.closeOnBlur&&e.on(c,"blur",s),c.focus()),s}),e.defineExtension("openConfirm",function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),u=a.getElementsByTagName("button"),l=!1,s=this,c=1;function f(){l||(l=!0,a.parentNode.removeChild(a),s.focus())}u[0].focus();for(var p=0;p<u.length;++p){var d=u[p];!function(t){e.on(d,"click",function(n){e.e_preventDefault(n),f(),t&&t(s)})}(i[p]),e.on(d,"blur",function(){--c,setTimeout(function(){c<=0&&f()},200)}),e.on(d,"focus",function(){++c})}}),e.defineExtension("openNotification",function(r,i){n(this,s);var o,a=t(this,r,i&&i.bottom),u=!1,l=i&&void 0!==i.duration?i.duration:5e3;function s(){u||(u=!0,clearTimeout(o),a.parentNode.removeChild(a))}return e.on(a,"click",function(t){e.e_preventDefault(t),s()}),l&&(o=setTimeout(s,l)),s})})(n(4))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(2)),o=u(n(6)),a=n(1);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.type!==e.type}},{key:"render",value:function(){return function e(t,n){if(t instanceof a.GraphQLNonNull)return i.default.createElement("span",null,e(t.ofType,n),"!");if(t instanceof a.GraphQLList)return i.default.createElement("span",null,"[",e(t.ofType,n),"]");return i.default.createElement("a",{className:"type-name",onClick:function(e){return n(t,e)}},t.name)}(this.props.type,this.props.onClick)}}]),t}();l.propTypes={type:o.default.object,onClick:o.default.func},t.default=l},function(e,t,n){"use strict";t.h=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw new Error("illegal argument: "+i)}return e},n.d(t,"a",function(){return s}),t.d=function(e){return e.request.length<=1},t.f=c,n.d(t,"e",function(){return f}),t.c=function(e){return new o(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})},t.g=function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};t.operationName||(t.operationName="string"!=typeof t.query?Object(i.a)(t.query):"");return t},t.b=function(e,t){var n=l({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=l({},n,"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return l({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){return Object(a.print)(e.query)+"|"+JSON.stringify(e.variables)+"|"+e.operationName}(t)}}),t};var r,i=n(111),o=n(25),a=(n.n(o),n(9)),u=(n.n(a),this&&this.__extends||(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])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})),l=this&&this.__assign||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};var s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return u(t,e),t}(Error);function c(e){var t=!1;return new Promise(function(n,r){e.subscribe({next:function(e){t?console.warn("Promise Wrapper does not support multiple results from Observable"):(t=!0,n(e))},error:r})})}var f=c},function(e,t,n){"use strict";t.a=r,t.d=function(e){var t=i(e);if(!t)throw new Error("GraphQL document is missing an operation");return t},t.e=function(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null},t.c=function(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})},t.b=function(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t};n(45),n(26);function r(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new Error('Schema type definitions not allowed in queries. Found: "'+e.kind+'"');return e});if(t.length>1)throw new Error("Ambiguous GraphQL document: contains "+t.length+" operations")}function i(e){return r(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}},function(e,t,n){"use strict";t.a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){void 0!==t&&null!==t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}},function(e,t,n){"use strict";t.a=function e(t){if(Array.isArray(t))return t.map(function(t){return e(t)});if(null!==t&&"object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}return t}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(66);n.d(t,"getDirectiveInfoFromField",function(){return r.b}),n.d(t,"shouldInclude",function(){return r.f}),n.d(t,"flattenSelections",function(){return r.a}),n.d(t,"getDirectiveNames",function(){return r.c}),n.d(t,"hasDirectives",function(){return r.e}),n.d(t,"hasClientExports",function(){return r.d});var i=n(67);n.d(t,"getFragmentQueryDocument",function(){return i.a});var o=n(35);n.d(t,"getMutationDefinition",function(){return o.g}),n.d(t,"checkDocument",function(){return o.a}),n.d(t,"getOperationDefinition",function(){return o.h}),n.d(t,"getOperationDefinitionOrDie",function(){return o.i}),n.d(t,"getOperationName",function(){return o.j}),n.d(t,"getFragmentDefinitions",function(){return o.e}),n.d(t,"getQueryDefinition",function(){return o.k}),n.d(t,"getFragmentDefinition",function(){return o.d}),n.d(t,"getMainDefinition",function(){return o.f}),n.d(t,"createFragmentMap",function(){return o.b}),n.d(t,"getDefaultValues",function(){return o.c}),n.d(t,"variablesInOperation",function(){return o.l});var a=n(68);n.d(t,"removeDirectivesFromDocument",function(){return a.g}),n.d(t,"addTypenameToDocument",function(){return a.a}),n.d(t,"removeConnectionDirectiveFromDocument",function(){return a.f}),n.d(t,"getDirectivesFromDocument",function(){return a.c}),n.d(t,"removeArgumentsFromDocument",function(){return a.d}),n.d(t,"removeFragmentSpreadFromDocument",function(){return a.h}),n.d(t,"buildQueryFromSelectionSet",function(){return a.b}),n.d(t,"removeClientSetsFromDocument",function(){return a.e});var u=n(22);n.d(t,"isScalarValue",function(){return u.h}),n.d(t,"isNumberValue",function(){return u.g}),n.d(t,"valueToObjectRepresentation",function(){return u.m}),n.d(t,"storeKeyNameFromField",function(){return u.j}),n.d(t,"getStoreKeyName",function(){return u.b}),n.d(t,"argumentsObjectFromField",function(){return u.a}),n.d(t,"resultKeyNameFromField",function(){return u.i}),n.d(t,"isField",function(){return u.c}),n.d(t,"isInlineFragment",function(){return u.e}),n.d(t,"isIdValue",function(){return u.d}),n.d(t,"toIdValue",function(){return u.k}),n.d(t,"isJsonValue",function(){return u.f}),n.d(t,"valueFromNode",function(){return u.l});var l=n(36);n.d(t,"assign",function(){return l.a});var s=n(70);n.d(t,"cloneDeep",function(){return s.a});var c=n(23);n.d(t,"getEnv",function(){return c.a}),n.d(t,"isEnv",function(){return c.c}),n.d(t,"isProduction",function(){return c.d}),n.d(t,"isDevelopment",function(){return c.b}),n.d(t,"isTest",function(){return c.e});var f=n(71);n.d(t,"tryFunctionOrLogError",function(){return f.b}),n.d(t,"graphQLResultHasError",function(){return f.a});var p=n(72);n.d(t,"isEqual",function(){return p.a});var d=n(73);n.d(t,"maybeDeepFreeze",function(){return d.a});var h=n(74);n.d(t,"warnOnceInDevelopment",function(){return h.a});var m=n(75);n.d(t,"stripSymbols",function(){return m.a});var v=n(76);n.d(t,"mergeDeep",function(){return v.a})},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 u=o.push(t)-1,l=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<l.length;n++){var s=l[n],c=e(t[s]);c&&(a&&(a+=","),a+=JSON.stringify(s)+":"+c)}return o.splice(u,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0;var r,i=n(8),o=(r=i)&&r.__esModule?r:{default:r};t.Source=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.body=t,this.name=n||"GraphQL request",this.locationOffset=r||{line:1,column:1},this.locationOffset.line>0||(0,o.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,o.default)(0,"column in locationOffset is 1-indexed and must be positive")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){if(e&&e.path)return e;var i=e?e.message||String(e):"An unknown error occurred.";return new r.GraphQLError(i,e&&e.nodes||t,e&&e.source,e&&e.positions,n,e)};var r=n(10)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=u(i),a=u(n(34));function u(e){return e&&e.__esModule?e:{default:e}}t.Sidebar=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.initResize=r.initResize.bind(r),r.Resize=r.Resize.bind(r),r.stopResize=r.stopResize.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidMount",value:function(){var e=localStorage.getItem("apollo-client:"+this.props.name);e&&(this.sidebar.style.width=e+"px")}},{key:"initResize",value:function(e){window.addEventListener("mousemove",this.Resize,!1),window.addEventListener("mouseup",this.stopResize,!1)}},{key:"Resize",value:function(e){var t=e.clientX-this.sidebar.offsetLeft;localStorage.setItem("apollo-client:"+this.props.name,t),this.sidebar.style.width=t+"px",window.getSelection().removeAllRanges()}},{key:"stopResize",value:function(e){window.removeEventListener("mousemove",this.Resize,!1),window.removeEventListener("mouseup",this.stopResize,!1)}},{key:"render",value:function(){var e=this,t=this.props.children;return o.default.createElement("div",{className:(0,a.default)(this.props.className,"sidebar"),ref:function(t){e.sidebar=t}},o.default.createElement("div",{className:"dragger",onMouseDown:this.initResize}),t)}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqualType=function e(t,n){if(t===n)return!0;if(t instanceof r.GraphQLNonNull&&n instanceof r.GraphQLNonNull)return e(t.ofType,n.ofType);if(t instanceof r.GraphQLList&&n instanceof r.GraphQLList)return e(t.ofType,n.ofType);return!1},t.isTypeSubTypeOf=function e(t,n,i){if(n===i)return!0;if(i instanceof r.GraphQLNonNull)return n instanceof r.GraphQLNonNull&&e(t,n.ofType,i.ofType);if(n instanceof r.GraphQLNonNull)return e(t,n.ofType,i);if(i instanceof r.GraphQLList)return n instanceof r.GraphQLList&&e(t,n.ofType,i.ofType);if(n instanceof r.GraphQLList)return!1;if((0,r.isAbstractType)(i)&&n instanceof r.GraphQLObjectType&&t.isPossibleType(i,n))return!0;return!1},t.doTypesOverlap=function(e,t,n){var i=n;if(t===i)return!0;if((0,r.isAbstractType)(t))return(0,r.isAbstractType)(i)?e.getPossibleTypes(t).some(function(t){return e.isPossibleType(i,t)}):e.isPossibleType(t,i);if((0,r.isAbstractType)(i))return e.isPossibleType(i,t);return!1};var r=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidLiteralValue=function e(t,n){if(t instanceof o.GraphQLNonNull)return n&&n.kind!==i.NULL?e(t.ofType,n):['Expected "'+String(t)+'", found null.'];if(!n||n.kind===i.NULL)return[];if(n.kind===i.VARIABLE)return[];if(t instanceof o.GraphQLList){var l=t.ofType;return n.kind===i.LIST?n.values.reduce(function(t,n,r){var i=e(l,n);return t.concat(i.map(function(e){return"In element #"+r+": "+e}))},[]):e(l,n)}if(t instanceof o.GraphQLInputObjectType){if(n.kind!==i.OBJECT)return['Expected "'+t.name+'", found not an object.'];var s=t.getFields(),c=[],f=n.fields;f.forEach(function(e){s[e.name.value]||c.push('In field "'+e.name.value+'": Unknown field.')});var p=(0,u.default)(f,function(e){return e.name.value});return Object.keys(s).forEach(function(t){var n=e(s[t].type,p[t]&&p[t].value);c.push.apply(c,n.map(function(e){return'In field "'+t+'": '+e}))}),c}t instanceof o.GraphQLScalarType||t instanceof o.GraphQLEnumType||(0,a.default)(0,"Must be input type");if(!t.isValidLiteral(n))return['Expected type "'+t.name+'", found '+(0,r.print)(n)+"."];return[]};var r=n(9),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),o=n(5),a=l(n(8)),u=l(n(32));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.getVariableValues=function(e,t,n){for(var r={},i=0;i<t.length;i++){var a=t[i],l=a.variable.name.value,c=(0,f.typeFromAST)(e,a.type);if(!(0,g.isInputType)(c))throw new o.GraphQLError('Variable "$'+l+'" expected value of type "'+(0,v.print)(a.type)+'" which cannot be used as an input type.',[a.type]);var h=n[l];if((0,s.default)(h)){var m=a.defaultValue;if(m&&(r[l]=(0,p.valueFromAST)(m,c)),c instanceof g.GraphQLNonNull)throw new o.GraphQLError('Variable "$'+l+'" of required type "'+String(c)+'" was not provided.',[a])}else{var y=(0,d.isValidJSValue)(h,c);if(y.length){var b=y?"\n"+y.join("\n"):"";throw new o.GraphQLError('Variable "$'+l+'" got invalid value '+JSON.stringify(h)+"."+b,[a])}var w=k(c,h);(0,s.default)(w)&&(0,u.default)(0,"Should have reported error."),r[l]=w}}return r},t.getArgumentValues=b,t.getDirectiveValues=function(e,t,n){var r=t.directives&&(0,a.default)(t.directives,function(t){return t.name.value===e.name});if(r)return b(e,r,n)},t.coerceValue=k;var i=n(20),o=n(0),a=y(n(31)),u=y(n(8)),l=y(n(24)),s=y(n(38)),c=y(n(32)),f=n(17),p=n(39),d=n(161),h=n(54),m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),v=n(9),g=n(5);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){var r={},i=e.args,a=t.arguments;if(!i||!a)return r;for(var u=(0,c.default)(a,function(e){return e.name.value}),l=0;l<i.length;l++){var f=i[l],d=f.name,y=f.type,b=u[d],k=f.defaultValue;if(b)if(b.value.kind===m.VARIABLE){var w=b.value.name.value;if(n&&Object.prototype.hasOwnProperty.call(n,w)&&!(0,s.default)(n[w]))r[d]=n[w];else if((0,s.default)(k)){if(y instanceof g.GraphQLNonNull)throw new o.GraphQLError('Argument "'+d+'" of required type "'+String(y)+'" was provided the variable "$'+w+'" which was not provided a runtime value.',[b.value])}else r[d]=k}else{var _=b.value,T=(0,p.valueFromAST)(_,y,n);if((0,s.default)(T)){var E=(0,h.isValidLiteralValue)(y,_),x=E?"\n"+E.join("\n"):"";throw new o.GraphQLError('Argument "'+d+'" got invalid value '+(0,v.print)(_)+"."+x,[b.value])}r[d]=T}else if((0,s.default)(k)){if(y instanceof g.GraphQLNonNull)throw new o.GraphQLError('Argument "'+d+'" of required type "'+String(y)+'" was not provided.',[t])}else r[d]=k}return r}function k(e,t){var n=t;if(!(0,s.default)(n)){if(e instanceof g.GraphQLNonNull){if(null===n)return;return k(e.ofType,n)}if(null===n)return null;if(e instanceof g.GraphQLList){var o=e.ofType;if((0,i.isCollection)(n)){var a=[],c=(0,i.createIterator)(n);if(!c)return;for(var f=void 0;!(f=c.next()).done;){var p=k(o,f.value);if((0,s.default)(p))return;a.push(p)}return a}var d=k(o,n);if((0,s.default)(d))return;return[k(o,n)]}if(e instanceof g.GraphQLInputObjectType){if("object"!==(void 0===n?"undefined":r(n)))return;for(var h=Object.create(null),m=e.getFields(),v=Object.keys(m),y=0;y<v.length;y++){var b=v[y],w=m[b];if((0,s.default)(n[b]))if((0,s.default)(w.defaultValue)){if(w.type instanceof g.GraphQLNonNull)return}else h[b]=w.defaultValue;else{var _=k(w.type,n[b]);if((0,s.default)(_))return;h[b]=_}}return h}e instanceof g.GraphQLScalarType||e instanceof g.GraphQLEnumType||(0,u.default)(0,"Must be input type");var T=e.parseValue(n);if(!(0,l.default)(T))return T}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefinitionState=function(e){var t=void 0;return o(e,function(e){switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t},t.getFieldDef=function(e,t,n){if(n===i.SchemaMetaFieldDef.name&&e.getQueryType()===t)return i.SchemaMetaFieldDef;if(n===i.TypeMetaFieldDef.name&&e.getQueryType()===t)return i.TypeMetaFieldDef;if(n===i.TypeNameMetaFieldDef.name&&(0,r.isCompositeType)(t))return i.TypeNameMetaFieldDef;if(t.getFields&&"function"==typeof t.getFields)return t.getFields()[n];return null},t.forEachState=o,t.objectValues=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n),i=0;i<n;++i)r[i]=e[t[i]];return r},t.hintList=function(e,t){return function(e,t){if(!t)return a(e,function(e){return!e.isDeprecated});return a(a(e.map(function(e){return{proximity:function(e,t){var n=function(e,t){var n=void 0,r=void 0,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var u=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]+u),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]+u))}return i[o][a]}(t,e);e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5);return n}(u(e.label),t),entry:e}}),function(e){return e.proximity<=2}),function(e){return!e.entry.isDeprecated}).sort(function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length}).map(function(e){return e.entry})}(t,u(e.string))};var r=n(1),i=n(16);function o(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}function a(e,t){var n=e.filter(t);return 0===n.length?e:n}function u(e){return e.toLowerCase().replace(/\W/g,"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.getAutocompleteSuggestions=function(e,t,n,o){var l=o||function(e,t){var n=null,i=null,o=null,a=u(e,function(e,a,u,l){if(l===t.line&&e.getCurrentPosition()>=t.character)return n=u,i=r({},a),o=e.current(),"BREAK"});return{start:a.start,end:a.end,string:o||a.string,state:i||a.state,style:n||a.style}}(t,n),s="Invalid"===l.state.kind?l.state.prevState:l.state;if(!s)return[];var c=s.kind,f=s.step,p=function(e,t){var n=void 0,r=void 0,o=void 0,u=void 0,l=void 0,s=void 0,c=void 0,f=void 0,p=void 0;return(0,a.forEachState)(t,function(t){switch(t.kind){case"Query":case"ShortQuery":p=e.getQueryType();break;case"Mutation":p=e.getMutationType();break;case"Subscription":p=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(p=e.getType(t.type));break;case"Field":case"AliasedField":p&&t.name?(l=f?(0,a.getFieldDef)(e,f,t.name):null,p=l?l.type:null):l=null;break;case"SelectionSet":f=(0,i.getNamedType)(p);break;case"Directive":o=t.name?e.getDirective(t.name):null;break;case"Arguments":if(t.prevState)switch(t.prevState.kind){case"Field":r=l&&l.args;break;case"Directive":r=o&&o.args;break;case"AliasedField":var d=t.prevState&&t.prevState.name;if(!d){r=null;break}var h=f?(0,a.getFieldDef)(e,f,d):null;if(!h){r=null;break}r=h.args;break;default:r=null}else r=null;break;case"Argument":if(r)for(var m=0;m<r.length;m++)if(r[m].name===t.name){n=r[m];break}s=n&&n.type;break;case"EnumValue":var v=(0,i.getNamedType)(s);u=v instanceof i.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}(v.getValues(),function(e){return e.value===t.name}):null;break;case"ListValue":var g=(0,i.getNullableType)(s);s=g instanceof i.GraphQLList?g.ofType:null;break;case"ObjectValue":var y=(0,i.getNamedType)(s);c=y instanceof i.GraphQLInputObjectType?y.getFields():null;break;case"ObjectField":var b=t.name&&c?c[t.name]:null;s=b&&b.type;break;case"NamedType":t.name&&(p=e.getType(t.name))}}),{argDef:n,argDefs:r,directiveDef:o,enumValue:u,fieldDef:l,inputType:s,objectFieldDefs:c,parentType:f,type:p}}(e,l.state);if("Document"===c)return(0,a.hintList)(l,[{label:"query"},{label:"mutation"},{label:"subscription"},{label:"fragment"},{label:"{"}]);if("SelectionSet"===c||"Field"===c||"AliasedField"===c)return function(e,t,n){if(t.parentType){var r=t.parentType,o=r.getFields instanceof Function?(0,a.objectValues)(r.getFields()):[];return(0,i.isAbstractType)(r)&&o.push(i.TypeNameMetaFieldDef),r===n.getQueryType()&&o.push(i.SchemaMetaFieldDef,i.TypeMetaFieldDef),(0,a.hintList)(e,o.map(function(e){return{label:e.name,detail:String(e.type),documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}))}return[]}(l,p,e);if("Arguments"===c||"Argument"===c&&0===f){var d=p.argDefs;if(d)return(0,a.hintList)(l,d.map(function(e){return{label:e.name,detail:String(e.type),documentation:e.description}}))}if(("ObjectValue"===c||"ObjectField"===c&&0===f)&&p.objectFieldDefs){var h=(0,a.objectValues)(p.objectFieldDefs);return(0,a.hintList)(l,h.map(function(e){return{label:e.name,detail:String(e.type),documentation:e.description}}))}if("EnumValue"===c||"ListValue"===c&&1===f||"ObjectField"===c&&2===f||"Argument"===c&&2===f)return function(e,t){var n=(0,i.getNamedType)(t.inputType);if(n instanceof i.GraphQLEnumType){var r=n.getValues();return(0,a.hintList)(e,r.map(function(e){return{label:e.name,detail:String(n),documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}))}if(n===i.GraphQLBoolean)return(0,a.hintList)(e,[{label:"true",detail:String(i.GraphQLBoolean),documentation:"Not false."},{label:"false",detail:String(i.GraphQLBoolean),documentation:"Not true."}]);return[]}(l,p);if("TypeCondition"===c&&1===f||"NamedType"===c&&null!=s.prevState&&"TypeCondition"===s.prevState.kind)return function(e,t,n){var r=void 0;if(t.parentType)if((0,i.isAbstractType)(t.parentType)){var o=(0,i.assertAbstractType)(t.parentType),u=n.getPossibleTypes(o),l=Object.create(null);u.forEach(function(e){e.getInterfaces().forEach(function(e){l[e.name]=e})}),r=u.concat((0,a.objectValues)(l))}else r=[t.parentType];else{var s=n.getTypeMap();r=(0,a.objectValues)(s).filter(i.isCompositeType)}return(0,a.hintList)(e,r.map(function(e){var t=(0,i.getNamedType)(e);return{label:String(e),documentation:t&&t.description||""}}))}(l,p,e);if("FragmentSpread"===c&&1===f)return function(e,t,n,r){var o=n.getTypeMap(),l=(0,a.getDefinitionState)(e.state),s=function(e){var t=[];return u(e,function(e,n){"FragmentDefinition"===n.kind&&n.name&&n.type&&t.push({kind:"FragmentDefinition",name:{kind:"Name",value:n.name},selectionSet:{kind:"SelectionSet",selections:[]},typeCondition:{kind:"NamedType",name:{kind:"Name",value:n.type}}})}),t}(r).filter(function(e){return o[e.typeCondition.name.value]&&!(l&&"FragmentDefinition"===l.kind&&l.name===e.name.value)&&(0,i.isCompositeType)(t.parentType)&&(0,i.isCompositeType)(o[e.typeCondition.name.value])&&(0,i.doTypesOverlap)(n,t.parentType,o[e.typeCondition.name.value])});return(0,a.hintList)(e,s.map(function(e){return{label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:"fragment "+e.name.value+" on "+e.typeCondition.name.value}}))}(l,p,e,t);if("VariableDefinition"===c&&2===f||"ListType"===c&&1===f||"NamedType"===c&&s.prevState&&("VariableDefinition"===s.prevState.kind||"ListType"===s.prevState.kind))return function(e,t){var n=t.getTypeMap(),r=(0,a.objectValues)(n).filter(i.isInputType);return(0,a.hintList)(e,r.map(function(e){return{label:e.name,documentation:e.description}}))}(l,e);if("Directive"===c)return function(e,t,n){if(t.prevState&&t.prevState.kind){var r=n.getDirectives().filter(function(e){return function(e,t){if(!e||!e.kind)return!1;var n=e.kind,r=t.locations;switch(n){case"Query":return-1!==r.indexOf("QUERY");case"Mutation":return-1!==r.indexOf("MUTATION");case"Subscription":return-1!==r.indexOf("SUBSCRIPTION");case"Field":case"AliasedField":return-1!==r.indexOf("FIELD");case"FragmentDefinition":return-1!==r.indexOf("FRAGMENT_DEFINITION");case"FragmentSpread":return-1!==r.indexOf("FRAGMENT_SPREAD");case"InlineFragment":return-1!==r.indexOf("INLINE_FRAGMENT");case"SchemaDef":return-1!==r.indexOf("SCHEMA");case"ScalarDef":return-1!==r.indexOf("SCALAR");case"ObjectTypeDef":return-1!==r.indexOf("OBJECT");case"FieldDef":return-1!==r.indexOf("FIELD_DEFINITION");case"InterfaceDef":return-1!==r.indexOf("INTERFACE");case"UnionDef":return-1!==r.indexOf("UNION");case"EnumDef":return-1!==r.indexOf("ENUM");case"EnumValue":return-1!==r.indexOf("ENUM_VALUE");case"InputDef":return-1!==r.indexOf("INPUT_OBJECT");case"InputValueDef":var i=e.prevState&&e.prevState.kind;switch(i){case"ArgumentsDef":return-1!==r.indexOf("ARGUMENT_DEFINITION");case"InputDef":return-1!==r.indexOf("INPUT_FIELD_DEFINITION")}}return!1}(t.prevState,e)});return(0,a.hintList)(e,r.map(function(e){return{label:e.name,documentation:e.description||""}}))}return[]}(l,s,e);return[]};var i=n(1),o=n(178),a=n(56);function u(e,t){for(var n=e.split("\n"),r=(0,o.onlineParser)(),i=r.startState(),a="",u=new o.CharacterStream(""),l=0;l<n.length;l++){for(u=new o.CharacterStream(n[l]);!u.eol();){if("BREAK"===t(u,i,a=r.token(u,i),l))break}t(u,i,a,l),i.kind||(i=r.startState())}return{start:u.getStartOfToken(),end:u.getCurrentPosition(),string:u.current(),state:i,style:a}}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.LANGUAGE=void 0,t.getDefinitionQueryResultForFragmentSpread=function(t,n,r){var i,o,a;return regeneratorRuntime.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(i=n.name.value,0!==(o=r.filter(function(e){var t=e.definition;return t.name.value===i})).length){u.next=5;break}return e.stderr.write("Definition not found for GraphQL fragment "+i),u.abrupt("return",{queryRange:[],definitions:[]});case 5:return a=o.map(function(e){var t=e.filePath,n=e.content,r=e.definition;return s(t||"",n,r)}),u.abrupt("return",{definitions:a,queryRange:a.map(function(e){return l(t,n)})});case 7:case"end":return u.stop()}},null,this)},t.getDefinitionQueryResultForDefinitionNode=function(e,t,n){return{definitions:[s(e,t,n)],queryRange:n.name?[l(t,n.name)]:[]}};var r,i=n(59),o=n(182),a=(r=o)&&r.__esModule?r:{default:r};var u=t.LANGUAGE="GraphQL";function l(e,t){var n=t.loc;return(0,a.default)(n,"Expected ASTNode to have a location."),(0,i.locToRange)(e,n)}function s(e,t,n){var r=n.name;return(0,a.default)(r,"Expected ASTNode to have a Name."),{path:e,position:function(e,t){var n=t.loc;return(0,a.default)(n,"Expected ASTNode to have a location."),(0,i.offsetToPosition)(e,n.start)}(t,r),range:l(t,n),name:r.value||"",language:u,projectRoot:e}}}).call(t,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(324);Object.defineProperty(t,"getASTNodeAtPosition",{enumerable:!0,get:function(){return r.getASTNodeAtPosition}}),Object.defineProperty(t,"pointToOffset",{enumerable:!0,get:function(){return r.pointToOffset}});var i=n(181);Object.defineProperty(t,"Position",{enumerable:!0,get:function(){return i.Position}}),Object.defineProperty(t,"Range",{enumerable:!0,get:function(){return i.Range}}),Object.defineProperty(t,"locToRange",{enumerable:!0,get:function(){return i.locToRange}}),Object.defineProperty(t,"offsetToPosition",{enumerable:!0,get:function(){return i.offsetToPosition}});var o=n(325);Object.defineProperty(t,"validateWithCustomRules",{enumerable:!0,get:function(){return o.validateWithCustomRules}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEVERITY=void 0,t.getDiagnostics=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3],i=null;try{i=(0,a.parse)(e)}catch(t){var o=d(t.locations[0],e);return[{severity:s.ERROR,message:t.message,source:"GraphQL: Syntax",range:o}]}return c(i,t,n,r)},t.validateQuery=c,t.getRange=d;var r,i=n(182),o=(r=i)&&r.__esModule?r:{default:r},a=n(1),u=n(178),l=n(59);var s=t.SEVERITY={ERROR:1,WARNING:2,INFORMATION:3,HINT:4};function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3];if(!t)return[];var i=f((0,l.validateWithCustomRules)(t,e,n,r),function(e){return p(e,s.ERROR,"Validation")}),o=a.findDeprecatedUsages?f((0,a.findDeprecatedUsages)(t,e),function(e){return p(e,s.WARNING,"Deprecation")}):[];return i.concat(o)}function f(e,t){return Array.prototype.concat.apply([],e.map(t))}function p(e,t,n){return e.nodes?e.nodes.map(function(r){var i="Variable"!==r.kind&&r.name?r.name:r.variable?r.variable:r;(0,o.default)(e.locations,"GraphQL validation error requires locations.");var a=e.locations[0],u=function(e){var t=e.loc;return(0,o.default)(t,"Expected ASTNode to have a location."),t}(i),s=a.column+(u.end-u.start);return{source:"GraphQL: "+n,message:e.message,severity:t,range:new l.Range(new l.Position(a.line-1,a.column-1),new l.Position(a.line-1,s))}}):[]}function d(e,t){var n=(0,u.onlineParser)(),r=n.startState(),i=t.split("\n");(0,o.default)(i.length>=e.line,"Query text must have more lines than where the error happened");for(var a=null,s=0;s<e.line;s++)for(a=new u.CharacterStream(i[s]);!a.eol();){if("invalidchar"===n.token(a,r))break}(0,o.default)(a,"Expected Parser stream to be available.");var c=e.line-1,f=a.getStartOfToken(),p=a.getCurrentPosition();return new l.Range(new l.Position(c,f),new l.Position(c,p))}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(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])},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(1),a=n(55),u=n(363),l=function(e){function t(t){var n=e.call(this,t)||this;return n.message=t,Error.captureStackTrace(n,n.constructor),n}return i(t,e),t}(Error);function s(e){return void 0!==e.kind}function c(e,t){void 0===t&&(t=[]);var n,r=[];return e.forEach(function(e){if(s(e)&&(e=o.print(e)),"function"==typeof e)-1===t.indexOf(e)&&(t.push(e),r=r.concat(c(e(),t)));else{if("string"!=typeof e)throw new l("typeDef array must contain only strings and functions, got "+typeof e);r.push(e.trim())}}),(n=r.map(function(e){return e.trim()}),n.reduce(function(e,t){return-1===e.indexOf(t)?e.concat([t]):e},[])).join("\n")}function f(e){var t,n=e;if(s(e))t=e;else if("string"!=typeof n){if(!Array.isArray(n))throw new l("typeDefs must be a string, array or schema AST, got "+typeof n);n=c(n)}"string"==typeof n&&(t=o.parse(n));var r={commentDescriptions:!0},i=o.buildASTSchema(t,r),a=h(t);return a.definitions.length>0&&(i=o.extendSchema(i,a,r)),i}t.SchemaError=l,t.makeExecutableSchema=function(e){var t=e.typeDefs,n=e.resolvers,r=void 0===n?{}:n,i=e.connectors,o=e.logger,a=e.allowUndefinedInResolve,u=void 0===a||a,s=e.resolverValidationOptions,c=void 0===s?{}:s,p=e.directiveResolvers,d=function(e,t,n,r,i,o){if("object"!=typeof i)throw new l("Expected `resolverValidationOptions` to be an object");if(!e)throw new l("Must provide typeDefs");if(!t)throw new l("Must provide resolvers");var a=f(e);return y(a,t,i),k(a,i),r||E(a),n&&_(a,n),o&&x(a,o),a}(t,r,o,u,c,void 0===p?null:p);return"function"==typeof r.__schema&&g(d,r.__schema),i&&v(d,i),d},t.concatenateTypeDefs=c,t.buildSchemaFromTypeDefinitions=f;var p="TypeExtensionDefinition",d="ObjectTypeExtension";function h(e){var t=e.definitions.filter(function(e){return e.kind===p||e.kind===d});return Object.assign({},e,{definitions:t})}function m(e,t){var n=e.getTypeMap();Object.keys(n).forEach(function(e){var r=n[e];if(!o.getNamedType(r).name.startsWith("__")&&r instanceof o.GraphQLObjectType){var i=r.getFields();Object.keys(i).forEach(function(n){var r=i[n];t(r,e,n)})}})}t.extractExtensionDefinitions=h,t.forEachField=m;var v=u.deprecated({version:"0.7.0",url:"https://github.com/apollostack/graphql-tools/issues/140"},function(e,t){if(!(e&&e instanceof o.GraphQLSchema))throw new Error("schema must be an instance of GraphQLSchema. This error could be caused by installing more than one version of GraphQL-JS");if("object"!=typeof t)throw new Error("Expected connectors to be of type object, got "+typeof t);if(0===Object.keys(t).length)throw new Error("Expected connectors to not be an empty object");if(Array.isArray(t))throw new Error("Expected connectors to be of type object, got Array");if(e._apolloConnectorsAttached)throw new Error("Connectors already attached to context, cannot attach more than once");e._apolloConnectorsAttached=!0;g(e,function(e,n,r){if("object"!=typeof r)throw new Error("Cannot attach connector because context is not an object: "+typeof r);return void 0===r.connectors&&(r.connectors={}),Object.keys(t).forEach(function(e){var n=t[e];if(!n.prototype)throw new Error("Connector must be a function or an class");r.connectors[e]=new n(r)}),e})});function g(e,t){[e.getQueryType(),e.getMutationType(),e.getSubscriptionType()].filter(function(e){return!!e}).forEach(function(n){var r=function(e){var t,n=Math.random();return function(r,i,o,a){return a.operation.__runAtMostOnce||(a.operation.__runAtMostOnce={}),a.operation.__runAtMostOnce[n]||(a.operation.__runAtMostOnce[n]=!0,t=e(r,i,o,a)),t}}(t),i=n.getFields();Object.keys(i).forEach(function(o){n===e.getSubscriptionType()?i[o].resolve=T(i[o].resolve,t):i[o].resolve=T(i[o].resolve,r)})})}function y(e,t,n){void 0===n&&(n={});var r=n.allowResolversNotInSchema,i=void 0!==r&&r;Object.keys(t).forEach(function(n){var r=e.getType(n);if(!r&&"__schema"!==n){if(i)return;throw new l('"'+n+'" defined in resolvers, but not in schema')}Object.keys(t[n]).forEach(function(e){if(e.startsWith("__"))r[e.substring(2)]=t[n][e];else if(r instanceof o.GraphQLScalarType)r[e]=t[n][e];else if(r instanceof o.GraphQLEnumType){if(!r.getValue(e))throw new l(n+"."+e+" was defined in resolvers, but enum is not in schema");r.getValue(e).value=t[n][e]}else{var a=function(e){return e instanceof o.GraphQLObjectType||e instanceof o.GraphQLInterfaceType?e.getFields():void 0}(r);if(!a){if(i)return;throw new l(n+" was defined in resolvers, but it's not an object")}if(!a[e]){if(i)return;throw new l(n+"."+e+" defined in resolvers, but not in schema")}var u=a[e],s=t[n][e];if("function"==typeof s)b(u,{resolve:s});else{if("object"!=typeof s)throw new l("Resolver "+n+"."+e+" must be object or function");b(u,s)}}})})}function b(e,t){Object.keys(t).forEach(function(n){e[n]=t[n]})}function k(e,t){void 0===t&&(t={});var n=t.requireResolversForArgs,r=void 0!==n&&n,i=t.requireResolversForNonScalar,a=void 0!==i&&i,u=t.requireResolversForAllFields,l=void 0!==u&&u;if(l&&(r||a))throw new TypeError("requireResolversForAllFields takes precedence over the more specific assertions. Please configure either requireResolversForAllFields or requireResolversForArgs / requireResolversForNonScalar, but not a combination of them.");m(e,function(e,t,n){l&&w(e,t,n),r&&e.args.length>0&&w(e,t,n),!a||o.getNamedType(e.type)instanceof o.GraphQLScalarType||w(e,t,n)})}function w(e,t,n){if(e.resolve){if("function"!=typeof e.resolve)throw new l('Resolver "'+t+"."+n+'" must be a function')}else console.warn('Resolve function missing for "'+t+"."+n+'". To disable this warning check https://github.com/apollostack/graphql-tools/issues/131')}function _(e,t){if(!t)throw new Error("Must provide a logger");if("function"!=typeof t.log)throw new Error("Logger.log must be a function");m(e,function(e,n,r){var i=n+"."+r;e.resolve=function(e,t,n){void 0===e&&(e=o.defaultFieldResolver);var r=function(e){var r=new Error;r.stack=e.stack,n&&(r.originalMessage=e.message,r.message="Error in resolver "+n+"\n"+e.message),t.log(r)};return function(t,n,i,o){try{var a=e(t,n,i,o);return a&&"function"==typeof a.then&&"function"==typeof a.catch&&a.catch(function(e){var t=e instanceof Error?e:new Error(e);return r(t),e}),a}catch(e){throw r(e),e}}}(e.resolve,t,i)})}function T(e,t){return function(n,r,i,a){return Promise.resolve(t(n,r,i,a)).then(function(t){return e?e(t,r,i,a):o.defaultFieldResolver(t,r,i,a)})}}function E(e){m(e,function(e,t,n){var r=t+"."+n;e.resolve=function(e,t){void 0===e&&(e=o.defaultFieldResolver);return function(n,r,i,o){var a=e(n,r,i,o);if(void 0===a)throw new Error('Resolve function for "'+t+'" returned undefined');return a}}(e.resolve,r)})}function x(e,t){if("object"!=typeof t)throw new Error("Expected directiveResolvers to be of type object, got "+typeof t);if(Array.isArray(t))throw new Error("Expected directiveResolvers to be of type object, got Array");m(e,function(n){n.astNode.directives.forEach(function(r){var i=r.name.value,u=t[i];if(u){var l=n.resolve||o.defaultFieldResolver,s=e.getDirective(i);if(void 0===s)throw new Error("Directive @"+i+" is undefined. Please define in schema before using");var c=a.getArgumentValues(s,r);n.resolve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[2],o=e[3];return u(function(){try{var t=l.call.apply(l,[n].concat(e));return t instanceof Promise?t:Promise.resolve(t)}catch(e){return Promise.reject(e)}},r,c,i,o)}}})})}t.attachConnectorsToContext=v,t.addSchemaLevelResolveFunction=g,t.addResolveFunctionsToSchema=y,t.assertResolveFunctionsPresent=k,t.addErrorLoggingToSchema=_,t.chainResolvers=function(e){return function(t,n,r,i){return e.reduce(function(e,t){return t?t(e,n,r,i):o.defaultFieldResolver(e,n,r,i)},t)}},t.addCatchUndefinedToSchema=E,t.attachDirectiveResolvers=x},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,u,l,s;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(o(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:u=Array.prototype.slice.call(arguments,1),n.apply(this,u)}else if(i(n))for(u=Array.prototype.slice.call(arguments,1),a=(s=n.slice()).length,l=0;l<a;l++)s[l].apply(this,u);return!0},n.prototype.addListener=function(e,t){var a;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,o,a,u;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(u=a;u-- >0;)if(n[u]===t||n[u].listener&&n[u].listener===t){o=u;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(210)},function(e,t,n){"use strict";t.b=function(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach(function(e){n[e.name.value]=Object(r.a)(e,t)}),n}return null},t.f=function(e,t){void 0===t&&(t={});if(!e.directives)return!0;var n=!0;return e.directives.forEach(function(e){if("skip"===e.name.value||"include"===e.name.value){var r=e.arguments||[],i=e.name.value;if(1!==r.length)throw new Error("Incorrect number of arguments for the @"+i+" directive.");var o=r[0];if(!o.name||"if"!==o.name.value)throw new Error("Invalid argument for the @"+i+" directive.");var a=r[0].value,u=!1;if(a&&"BooleanValue"===a.kind)u=a.value;else{if("Variable"!==a.kind)throw new Error("Argument for the @"+i+" directive must be a variable or a boolean value.");if(void 0===(u=t[a.name.value]))throw new Error("Invalid variable referenced in @"+i+" directive.")}"skip"===i&&(u=!u),u||(n=!1)}}),n},t.a=i,t.c=o,t.e=a,t.d=function(e){return e&&a(["client"],e)&&a(["export"],e)};var r=n(22);function i(e){return e.selectionSet&&e.selectionSet.selections.length>0?[e].concat(e.selectionSet.selections.map(function(e){return[e].concat(i(e))}).reduce(function(e,t){return e.concat(t)},[])):[e]}function o(e){return e.definitions.filter(function(e){return e.selectionSet&&e.selectionSet.selections}).map(function(e){return i(e)}).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return e.directives&&e.directives.length>0}).map(function(e){return e.directives}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return e.name.value})}function a(e,t){return o(t).some(function(t){return e.indexOf(t)>-1})}},function(e,t,n){"use strict";t.a=function(e,t){var n=t,i=[];if(e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new Error("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed.");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===n){if(1!==i.length)throw new Error("Found "+i.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment.");n=i[0].name.value}return r({},e,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}].concat(e.definitions)})};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)}},function(e,t,n){"use strict";t.g=c,t.a=function(e){return Object(r.visit)(Object(i.a)(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r){var i=r.some(function(e){return"Field"===e.kind&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))});if(!i)return a({},e,{selections:r.concat([u])})}}}}})},t.f=function(e){return c([f],Object(i.a)(e))},t.c=function(e,t){var n;return Object(i.a)(t),l(Object(r.visit)(t,{SelectionSet:{enter:function(t,r,i,o){var u=o.join("-");if(!n||u===n||!u.startsWith(n)){if(t.selections){var l=t.selections.filter(function(t){return d(e,t)});return p(e,t,!1)&&(n=u),a({},t,{selections:l})}return null}}}}))},t.d=h,t.h=m,t.b=function(e){if("query"===Object(i.f)(e).operation)return e;return Object(r.visit)(e,{OperationDefinition:{enter:function(e){return a({},e,{operation:"query"})}}})},t.e=function(e){Object(i.a)(e);var t=c([{test:function(e){return"client"===e.name.value},remove:!0}],e);t&&(t=Object(r.visit)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet){var t=e.selectionSet.selections.every(function(e){return"Field"===e.kind&&"__typename"===e.name.value});if(t)return null}}}}));return t};var r=n(11),i=(n.n(r),n(35)),o=n(69),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)},u={kind:"Field",name:{kind:"Name",value:"__typename"}};function l(e){return function e(t,n){return t.selectionSet.selections.every(function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)})}(Object(i.h)(e)||Object(i.d)(e),Object(i.b)(Object(i.e)(e)))?null:e}function s(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function c(e,t){var n=Object.create(null),i=[],a=Object.create(null),u=[],c=l(Object(r.visit)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some(function(e){return e.remove})&&t.directives.some(s(e))))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})}),t.selectionSet&&function e(t){var n=[];t.selections.forEach(function(t){"Field"!==t.kind&&"InlineFragment"!==t.kind||!t.selectionSet?"FragmentSpread"===t.kind&&n.push(t):e(t.selectionSet).forEach(function(e){return n.push(e)})});return n}(t.selectionSet).forEach(function(e){u.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){a[e.name.value]=!0}},Directive:{enter:function(t){if(s(e)(t))return null}}}));return c&&Object(o.a)(i,function(e){return!n[e.name]}).length&&(c=h(i,c)),c&&Object(o.a)(u,function(e){return!a[e.name]}).length&&(c=m(u,c)),c}var f={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||console.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function p(e,t,n){return void 0===n&&(n=!0),t&&t.selections&&t.selections.some(function(t){return d(e,t,n)})}function d(e,t,n){return void 0===n&&(n=!0),"Field"!==t.kind||!t||!!t.directives&&(t.directives.some(s(e))||n&&p(e,t.selectionSet,n))}function h(e,t){var n=function(e){return function(t){return e.some(function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}(e);return l(Object(r.visit)(t,{OperationDefinition:{enter:function(t){return a({},t,{variableDefinitions:t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})})})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var r=0;if(t.arguments.forEach(function(e){n(e)&&(r+=1)}),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}function m(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return l(Object(r.visit)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}},function(e,t,n){"use strict";t.a=function(e,t,n){var r=0;return e.forEach(function(n,i){t.call(this,n,i,e)&&(e[r++]=n)},n),e.length=r,e}},function(e,t,n){"use strict";t.a=function(e){return function e(t,n){switch(r.call(t)){case"[object Array]":if(n.has(t))return n.get(t);var i=t.slice(0);return n.set(t,i),i.forEach(function(t,r){i[r]=e(t,n)}),i;case"[object Object]":if(n.has(t))return n.get(t);var o=Object.create(Object.getPrototypeOf(t));return n.set(t,o),Object.keys(t).forEach(function(r){o[r]=e(t[r],n)}),o;default:return t}}(e,new Map)};var r=Object.prototype.toString},function(e,t,n){"use strict";t.b=function(e){try{return e()}catch(e){console.error&&console.error(e)}},t.a=function(e){return e.errors&&e.errors.length}},function(e,t,n){"use strict";t.a=function e(t,n){if(t===n)return!0;if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(null!=t&&"object"==typeof t&&null!=n&&"object"==typeof n){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(!Object.prototype.hasOwnProperty.call(n,r))return!1;if(!e(t[r],n[r]))return!1}for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&!Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}return!1}},function(e,t,n){"use strict";t.a=function(e){if(Object(r.b)()||Object(r.e)()){var t="function"==typeof Symbol&&"string"==typeof Symbol("");if(!t)return function e(t){Object.freeze(t);Object.getOwnPropertyNames(t).forEach(function(n){null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])});return t}(e)}return e};var r=n(23)},function(e,t,n){"use strict";t.a=function(e,t){void 0===t&&(t="warn");if(Object(r.d)())return;if(!i[e])switch(Object(r.e)()||(i[e]=!0),t){case"error":console.error(e);break;default:console.warn(e)}};var r=n(23),i=Object.create({})},function(e,t,n){"use strict";t.a=function(e){return JSON.parse(JSON.stringify(e))}},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}t.a=function e(t,n){var i=Object.assign({},t);r(t)&&r(n)&&Object.keys(n).forEach(function(o){var a,u;r(n[o])?o in t?i[o]=e(t[o],n[o]):Object.assign(i,((a={})[o]=n[o],a)):Object.assign(i,((u={})[o]=n[o],u))});return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){var l=(0,r.getLocation)(e,t),s=l.line+e.locationOffset.line-1,c=o(e,l),f=l.column+c;return new i.GraphQLError("Syntax Error "+e.name+" ("+s+":"+f+") "+n+"\n\n"+function(e,t){var n=t.line,r=e.locationOffset.line-1,i=o(e,t),l=n+r,s=(l-1).toString(),c=l.toString(),f=(l+1).toString(),p=f.length,d=e.body.split(/\r\n|[\n\r]/g);return d[0]=a(e.locationOffset.column-1)+d[0],(n>=2?u(p,s)+": "+d[n-2]+"\n":"")+u(p,c)+": "+d[n-1]+"\n"+a(2+p+t.column-1+i)+"^\n"+(n<d.length?u(p,f)+": "+d[n]+"\n":"")}(e,l),void 0,e,[t])};var r=n(28),i=n(10);function o(e,t){return 1===t.line?e.locationOffset.column-1:0}function a(e){return Array(e+1).join(" ")}function u(e,t){return a(e-t.length)+t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatError=function(e){return e||(0,o.default)(0,"Received null or undefined error."),{message:e.message,locations:e.locations,path:e.path}};var r,i=n(8),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=i;var r=n(228);function i(e,t,n,o,a,u){u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,i):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0});var l=n;if(!l&&t&&t.length>0){var s=t[0];l=s&&s.loc&&s.loc.source}var c=o;!c&&t&&(c=t.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),c&&0===c.length&&(c=void 0);var f=void 0,p=l;p&&c&&(f=c.map(function(e){return(0,r.getLocation)(p,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:f||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:t||void 0},source:{value:l||void 0},positions:{value:c||void 0},originalError:{value:u}})}i.prototype=Object.create(Error.prototype,{constructor:{value:i},name:{value:"GraphQLError"}})},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=function(e,t){if(!e||"string"!=typeof e)throw new Error("Must be named. Unexpected name: "+e+".");if(!t&&!o&&!i&&"__"===e.slice(0,2)&&(o=!0,console&&console.warn)){var r=new Error('Name "'+e+'" must not begin with "__", which is reserved by GraphQL introspection. In a future release of graphql this will become a hard error.');console.warn(a(r))}if(!n.test(e))throw new Error('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'+e+'" does not.')},t.formatWarning=a;var n=/^[_a-zA-Z][_a-zA-Z0-9]*$/,r=/^Error: /,i=Boolean(e&&Object({NODE_ENV:"production"})&&Object({NODE_ENV:"production"}).GRAPHQL_NO_NAME_WARNING),o=!1;function a(e){var t="",n=String(e).replace(r,""),i=e.stack;return i&&(t=i.replace(r,"")),-1===t.indexOf(n)&&(t=n+"\n"+t),t.trim()}}).call(t,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.astFromValue=function e(t,n){var f=t;if(n instanceof s.GraphQLNonNull){var p=e(f,n.ofType);return p&&p.kind===l.NULL?null:p}if(null===f)return{kind:l.NULL};if((0,u.default)(f))return null;if(n instanceof s.GraphQLList){var d=n.ofType;if((0,i.isCollection)(f)){var h=[];return(0,i.forEach)(f,function(t){var n=e(t,d);n&&h.push(n)}),{kind:l.LIST,values:h}}return e(f,d)}if(n instanceof s.GraphQLInputObjectType){if(null===f||"object"!==(void 0===f?"undefined":r(f)))return null;var m=n.getFields(),v=[];return Object.keys(m).forEach(function(t){var n=m[t].type,r=e(f[t],n);r&&v.push({kind:l.OBJECT_FIELD,name:{kind:l.NAME,value:t},value:r})}),{kind:l.OBJECT,fields:v}}n instanceof s.GraphQLScalarType||n instanceof s.GraphQLEnumType||(0,o.default)(0,"Must provide Input Type, cannot use: "+String(n));var g=n.serialize(f);if((0,a.default)(g))return null;if("boolean"==typeof g)return{kind:l.BOOLEAN,value:g};if("number"==typeof g){var y=String(g);return/^[0-9]+$/.test(y)?{kind:l.INT,value:y}:{kind:l.FLOAT,value:y}}if("string"==typeof g)return n instanceof s.GraphQLEnumType?{kind:l.ENUM,value:g}:n===c.GraphQLID&&/^[0-9]+$/.test(g)?{kind:l.INT,value:g}:{kind:l.STRING,value:JSON.stringify(g).slice(1,-1)};throw new TypeError("Cannot convert value to AST: "+String(g))};var i=n(20),o=f(n(8)),a=f(n(24)),u=f(n(38)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),s=n(5),c=n(19);function f(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInfo=void 0;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),o=n(5),a=n(16),u=n(17),l=n(31),s=(r=l)&&r.__esModule?r:{default:r};t.TypeInfo=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n||c}return e.prototype.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},e.prototype.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},e.prototype.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},e.prototype.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},e.prototype.getDirective=function(){return this._directive},e.prototype.getArgument=function(){return this._argument},e.prototype.getEnumValue=function(){return this._enumValue},e.prototype.enter=function(e){var t=this._schema;switch(e.kind){case i.SELECTION_SET:var n=(0,o.getNamedType)(this.getType());this._parentTypeStack.push((0,o.isCompositeType)(n)?n:void 0);break;case i.FIELD:var r=this.getParentType(),a=void 0;r&&(a=this._getFieldDef(t,r,e)),this._fieldDefStack.push(a),this._typeStack.push(a&&a.type);break;case i.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.OPERATION_DEFINITION:var l=void 0;"query"===e.operation?l=t.getQueryType():"mutation"===e.operation?l=t.getMutationType():"subscription"===e.operation&&(l=t.getSubscriptionType()),this._typeStack.push(l);break;case i.INLINE_FRAGMENT:case i.FRAGMENT_DEFINITION:var c=e.typeCondition,f=c?(0,u.typeFromAST)(t,c):this.getType();this._typeStack.push((0,o.isOutputType)(f)?f:void 0);break;case i.VARIABLE_DEFINITION:var p=(0,u.typeFromAST)(t,e.type);this._inputTypeStack.push((0,o.isInputType)(p)?p:void 0);break;case i.ARGUMENT:var d=void 0,h=void 0,m=this.getDirective()||this.getFieldDef();m&&(d=(0,s.default)(m.args,function(t){return t.name===e.name.value}))&&(h=d.type),this._argument=d,this._inputTypeStack.push(h);break;case i.LIST:var v=(0,o.getNullableType)(this.getInputType());this._inputTypeStack.push(v instanceof o.GraphQLList?v.ofType:void 0);break;case i.OBJECT_FIELD:var g=(0,o.getNamedType)(this.getInputType()),y=void 0;if(g instanceof o.GraphQLInputObjectType){var b=g.getFields()[e.name.value];y=b?b.type:void 0}this._inputTypeStack.push(y);break;case i.ENUM:var k=(0,o.getNamedType)(this.getInputType()),w=void 0;k instanceof o.GraphQLEnumType&&(w=k.getValue(e.value)),this._enumValue=w}},e.prototype.leave=function(e){switch(e.kind){case i.SELECTION_SET:this._parentTypeStack.pop();break;case i.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.DIRECTIVE:this._directive=null;break;case i.OPERATION_DEFINITION:case i.INLINE_FRAGMENT:case i.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.ARGUMENT:this._argument=null,this._inputTypeStack.pop();break;case i.LIST:case i.OBJECT_FIELD:this._inputTypeStack.pop();break;case i.ENUM:this._enumValue=null}},e}();function c(e,t,n){var r=n.name.value;return r===a.SchemaMetaFieldDef.name&&e.getQueryType()===t?a.SchemaMetaFieldDef:r===a.TypeMetaFieldDef.name&&e.getQueryType()===t?a.TypeMetaFieldDef:r===a.TypeNameMetaFieldDef.name&&(0,o.isCompositeType)(t)?a.TypeNameMetaFieldDef:t instanceof o.GraphQLObjectType||t instanceof o.GraphQLInterfaceType?t.getFields()[r]:void 0}},function(e,t,n){"use strict";function r(e,t){var n=void 0,r=void 0,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var u=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]+u),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]+u))}return i[o][a]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=Object.create(null),i=t.length,o=e.length/2,a=0;a<i;a++){var u=r(e,t[a]),l=Math.max(o,t[a].length/2,1);u<=l&&(n[t[a]]=u)}return Object.keys(n).sort(function(e,t){return n[e]-n[t]})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.slice(0,r);return t.map(function(e){return'"'+e+'"'}).reduce(function(e,n,r){return e+(t.length>2?", ":" ")+(r===t.length-1?"or ":"")+n})};var r=5},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownFragmentMessage=i,t.KnownFragmentNames=function(e){return{FragmentSpread:function(t){var n=t.name.value,o=e.getFragment(n);o||e.reportError(new r.GraphQLError(i(n),[t.name]))}}};var r=n(0);function i(e){return'Unknown fragment "'+e+'".'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unusedFragMessage=i,t.NoUnusedFragments=function(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){var o=Object.create(null);t.forEach(function(t){e.getRecursivelyReferencedFragments(t).forEach(function(e){o[e.name.value]=!0})}),n.forEach(function(t){var n=t.name.value;!0!==o[n]&&e.reportError(new r.GraphQLError(i(n),[t]))})}}}};var r=n(0);function i(e){return'Fragment "'+e+'" is never used.'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultFieldResolver=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.execute=function(e,t,n,r,i,o,a){return 1===arguments.length?v(e.schema,e.document,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):v(e,t,n,r,i,o,a)},t.responsePathAsArray=g,t.addPath=y,t.assertValidExecutionArguments=b,t.buildExecutionContext=k,t.getOperationRootType=w,t.collectFields=T,t.buildResolveInfo=C,t.resolveFieldValueOrError=S,t.getFieldDef=P;var i=n(20),o=n(0),a=m(n(8)),u=m(n(24)),l=n(17),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),c=n(55),f=n(5),p=n(14),d=n(16),h=n(15);function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n,r,i,o,a){b(e,t,i);var u=void 0;try{u=k(e,t,n,r,i,o,a)}catch(e){return Promise.resolve({errors:[e]})}return Promise.resolve(function(e,t,n){var r=w(e.schema,t),i=T(e,r,t.selectionSet,Object.create(null),Object.create(null)),o=void 0;try{var a="mutation"===t.operation?function(e,t,n,r,i){return Object.keys(i).reduce(function(o,a){return o.then(function(o){var u=i[a],l=y(r,a),s=O(e,t,n,u,l);if(void 0===s)return o;var c=M(s);return c?c.then(function(e){return o[a]=e,o}):(o[a]=s,o)})},Promise.resolve({}))}(e,r,n,o,i):_(e,r,n,o,i),u=M(a);return u?u.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):a}catch(t){return e.errors.push(t),null}}(u,u.operation,n)).then(function(e){return 0===u.errors.length?{data:e}:{errors:u.errors,data:e}})}function g(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function y(e,t){return{prev:e,key:t}}function b(e,t,n){e||(0,a.default)(0,"Must provide schema"),t||(0,a.default)(0,"Must provide document"),e instanceof p.GraphQLSchema||(0,a.default)(0,"Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory."),n&&"object"!==(void 0===n?"undefined":r(n))&&(0,a.default)(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 k(e,t,n,r,i,a,u){var l=void 0,f=Object.create(null);if(t.definitions.forEach(function(e){switch(e.kind){case s.OPERATION_DEFINITION:if(!a&&l)throw new o.GraphQLError("Must provide operation name if query contains multiple operations.");(!a||e.name&&e.name.value===a)&&(l=e);break;case s.FRAGMENT_DEFINITION:f[e.name.value]=e;break;default:throw new o.GraphQLError("GraphQL cannot execute a request containing a "+e.kind+".",[e])}}),!l)throw a?new o.GraphQLError('Unknown operation named "'+a+'".'):new o.GraphQLError("Must provide an operation.");var p=(0,c.getVariableValues)(e,l.variableDefinitions||[],i||{});return{schema:e,fragments:f,rootValue:n,contextValue:r,operation:l,variableValues:p,fieldResolver:u||j,errors:[]}}function w(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":var n=e.getMutationType();if(!n)throw new o.GraphQLError("Schema is not configured for mutations",[t]);return n;case"subscription":var r=e.getSubscriptionType();if(!r)throw new o.GraphQLError("Schema is not configured for subscriptions",[t]);return r;default:throw new o.GraphQLError("Can only execute queries, mutations and subscriptions",[t])}}function _(e,t,n,r,i){var o,a,u,l=!1,s=Object.keys(i).reduce(function(o,a){var u=i[a],s=y(r,a),c=O(e,t,n,u,s);return void 0===c?o:(o[a]=c,M(c)&&(l=!0),o)},Object.create(null));return l?(o=s,a=Object.keys(o),u=a.map(function(e){return o[e]}),Promise.all(u).then(function(e){return e.reduce(function(e,t,n){return e[a[n]]=t,e},Object.create(null))})):s}function T(e,t,n,r,i){for(var o=0;o<n.selections.length;o++){var a=n.selections[o];switch(a.kind){case s.FIELD:if(!E(e,a))continue;var u=(f=a).alias?f.alias.value:f.name.value;r[u]||(r[u]=[]),r[u].push(a);break;case s.INLINE_FRAGMENT:if(!E(e,a)||!x(e,a,t))continue;T(e,t,a.selectionSet,r,i);break;case s.FRAGMENT_SPREAD:var l=a.name.value;if(i[l]||!E(e,a))continue;i[l]=!0;var c=e.fragments[l];if(!c||!x(e,c,t))continue;T(e,t,c.selectionSet,r,i)}}var f;return r}function E(e,t){var n=(0,c.getDirectiveValues)(h.GraphQLSkipDirective,t,e.variableValues);if(n&&!0===n.if)return!1;var r=(0,c.getDirectiveValues)(h.GraphQLIncludeDirective,t,e.variableValues);return!r||!1!==r.if}function x(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=(0,l.typeFromAST)(e.schema,r);return i===n||!!(0,f.isAbstractType)(i)&&e.schema.isPossibleType(i,n)}function O(e,t,n,r,i){var o=r[0].name.value,a=P(e.schema,t,o);if(a){var u=a.resolve||e.fieldResolver,l=C(e,a,r,t,i),s=S(e,a,r,u,n,l);return N(e,a.type,r,l,i,s)}}function C(e,t,n,r,i){return{fieldName:n[0].name.value,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 S(e,t,n,r,i,o){try{return r(i,(0,c.getArgumentValues)(t,n[0],e.variableValues),e.contextValue,o)}catch(e){return e instanceof Error?e:new Error(e)}}function N(e,t,n,r,i,o){if(t instanceof f.GraphQLNonNull)return L(e,t,n,r,i,o);try{var a=L(e,t,n,r,i,o),u=M(a);return u?u.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):a}catch(t){return e.errors.push(t),null}}function L(e,t,n,r,l,s){try{var c=function e(t,n,r,o,l,s){var c=M(s);if(c)return c.then(function(i){return e(t,n,r,o,l,i)});if(s instanceof Error)throw s;if(n instanceof f.GraphQLNonNull){var p=e(t,n.ofType,r,o,l,s);if(null===p)throw new Error("Cannot return null for non-nullable field "+o.parentType.name+"."+o.fieldName+".");return p}if((0,u.default)(s))return null;if(n instanceof f.GraphQLList)return function(e,t,n,r,o,u){(0,i.isCollection)(u)||(0,a.default)(0,"Expected Iterable, but did not find one for field "+r.parentType.name+"."+r.fieldName+".");var l=t.ofType,s=!1,c=[];return(0,i.forEach)(u,function(t,i){var a=y(o,i),u=N(e,l,n,r,a,t);!s&&M(u)&&(s=!0),c.push(u)}),s?Promise.all(c):c}(t,n,r,o,l,s);if((0,f.isLeafType)(n))return function(e,t){e.serialize||(0,a.default)(0,"Missing serialize method on type");var n=e.serialize(t);if((0,u.default)(n))throw new Error('Expected a value of type "'+String(e)+'" but received: '+String(t));return n}(n,s);if((0,f.isAbstractType)(n))return function(e,t,n,r,i,o){var a=t.resolveType?t.resolveType(o,e.contextValue,r):function(e,t,n,r){for(var i=n.schema.getPossibleTypes(r),o=[],a=0;a<i.length;a++){var u=i[a];if(u.isTypeOf){var l=u.isTypeOf(e,t,n),s=M(l);if(s)o[a]=s;else if(l)return u}}if(o.length)return Promise.all(o).then(function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t]})}(o,e.contextValue,r,t),u=M(a);if(u)return u.then(function(a){return A(e,D(a,e,t,n,r,o),n,r,i,o)});return A(e,D(a,e,t,n,r,o),n,r,i,o)}(t,n,r,o,l,s);if(n instanceof f.GraphQLObjectType)return A(t,n,r,o,l,s);throw new Error('Cannot complete value of unexpected type "'+String(n)+'".')}(e,t,n,r,l,s),p=M(c);return p?p.then(void 0,function(e){return Promise.reject((0,o.locatedError)(e,n,g(l)))}):c}catch(e){throw(0,o.locatedError)(e,n,g(l))}}function D(e,t,n,r,i,a){var u="string"==typeof e?t.schema.getType(e):e;if(!(u instanceof f.GraphQLObjectType))throw new o.GraphQLError("Abstract type "+n.name+" must resolve to an Object type at runtime for field "+i.parentType.name+"."+i.fieldName+' with value "'+String(a)+'", received "'+String(u)+'".',r);if(!t.schema.isPossibleType(n,u))throw new o.GraphQLError('Runtime Object type "'+u.name+'" is not a possible type for "'+n.name+'".',r);return u}function A(e,t,n,r,i,o){if(t.isTypeOf){var a=t.isTypeOf(o,e.contextValue,r),u=M(a);if(u)return u.then(function(a){if(!a)throw I(t,o,n);return F(e,t,n,r,i,o)});if(!a)throw I(t,o,n)}return F(e,t,n,r,i,o)}function I(e,t,n){return new o.GraphQLError('Expected value of type "'+e.name+'" but got: '+String(t)+".",n)}function F(e,t,n,r,i,o){for(var a=Object.create(null),u=Object.create(null),l=0;l<n.length;l++){var s=n[l].selectionSet;s&&(a=T(e,t,s,a,u))}return _(e,t,o,i,a)}var j=t.defaultFieldResolver=function(e,t,n,i){if("object"===(void 0===e?"undefined":r(e))||"function"==typeof e){var o=e[i.fieldName];return"function"==typeof o?e[i.fieldName](t,n,i):o}};function M(e){if("object"===(void 0===e?"undefined":r(e))&&null!==e&&"function"==typeof e.then)return e}function P(e,t,n){return n===d.SchemaMetaFieldDef.name&&e.getQueryType()===t?d.SchemaMetaFieldDef:n===d.TypeMetaFieldDef.name&&e.getQueryType()===t?d.TypeMetaFieldDef:n===d.TypeNameMetaFieldDef.name?d.TypeNameMetaFieldDef:t.getFields()[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return e.reduce(function(e,r){return e[t(r)]=n(r),e},Object.create(null))}},function(e,t,n){"use strict";e.exports=n(264)},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\u0AF0\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-\u2E44\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},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){(function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"};function i(e,t,i){var a=e.getLineHandle(t.line),u=t.ch-1,l=i&&i.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var s=!l&&u>=0&&r[a.text.charAt(u)]||r[a.text.charAt(++u)];if(!s)return null;var c=">"==s.charAt(1)?1:-1;if(i&&i.strict&&c>0!=(u==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,u+1)),p=o(e,n(t.line,u+(c>0?1:0)),c,f||null,i);return null==p?null:{from:n(t.line,u),to:p&&p.pos,match:p&&p.ch==s.charAt(0),forward:c>0}}function o(e,t,i,o,a){for(var u=a&&a.maxScanLineLength||1e4,l=a&&a.maxScanLines||1e3,s=[],c=a&&a.bracketRegex?a.bracketRegex:/[(){}[\]]/,f=i>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),p=t.line;p!=f;p+=i){var d=e.getLine(p);if(d){var h=i>0?0:d.length-1,m=i>0?d.length:-1;if(!(d.length>u))for(p==t.line&&(h=t.ch-(i<0?1:0));h!=m;h+=i){var v=d.charAt(h);if(c.test(v)&&(void 0===o||e.getTokenTypeAt(n(p,h+1))==o))if(">"==r[v].charAt(1)==i>0)s.push(v);else{if(!s.length)return{pos:n(p,h),ch:v};s.pop()}}}}return p-i!=(i>0?e.lastLine():e.firstLine())&&null}function a(e,r,o){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,u=[],l=e.listSelections(),s=0;s<l.length;s++){var c=l[s].empty()&&i(e,l[s].head,o);if(c&&e.getLine(c.from.line).length<=a){var f=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";u.push(e.markText(c.from,n(c.from.line,c.from.ch+1),{className:f})),c.to&&e.getLine(c.to.line).length<=a&&u.push(e.markText(c.to,n(c.to.line,c.to.ch+1),{className:f}))}}if(u.length){t&&e.state.focused&&e.focus();var p=function(){e.operation(function(){for(var e=0;e<u.length;e++)u[e].clear()})};if(!r)return p;setTimeout(p,800)}}var u=null;function l(e){e.operation(function(){u&&(u(),u=null),u=a(e,!1,e.state.matchBrackets)})}e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),u&&(u(),u=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l))}),e.defineExtension("matchBrackets",function(){a(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),i(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,n,r){return o(this,e,t,n,r)})})(n(4))},function(e,t,n){(function(e){"use strict";e.defineOption("foldGutter",!1,function(t,n,r){r&&r!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",a),t.off("change",u),t.off("viewportChange",l),t.off("fold",s),t.off("unfold",s),t.off("swapDoc",u)),n&&(t.state.foldGutter=new function(e){this.options=e,this.from=this.to=0}(function(e){!0===e&&(e={});null==e.gutter&&(e.gutter="CodeMirror-foldgutter");null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open");null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded");return e}(n)),o(t),t.on("gutterClick",a),t.on("change",u),t.on("viewportChange",l),t.on("fold",s),t.on("unfold",s),t.on("swapDoc",u))});var t=e.Pos;function n(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold&&r[i].find().from.line==n)return r[i]}function r(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function i(e,i,o){var a=e.state.foldGutter.options,u=i,l=e.foldOption(a,"minFoldSize"),s=e.foldOption(a,"rangeFinder");e.eachLine(i,o,function(i){var o=null;if(n(e,u))o=r(a.indicatorFolded);else{var c=t(u,0),f=s&&s(e,c);f&&f.to.line-f.from.line>=l&&(o=r(a.indicatorOpen))}e.setGutterMarker(i,a.gutter,o),++u})}function o(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){i(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function a(e,r,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var u=n(e,r);u?u.clear():e.foldCode(t(r,0),a.rangeFinder)}}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){o(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?o(e):e.operation(function(){n.from<t.from&&(i(e,n.from,t.from),t.from=n.from),n.to>t.to&&(i(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function s(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&i(e,r,r+1)}}})(n(4),n(320))},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 u=n.ch,l=0;;){var s=u<=0?-1:o.lastIndexOf(a,u-1);if(-1!=s){if(1==l&&s<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(i,s+1)),!/^(comment|string)/.test(r))return s+1;u=s-1}else{if(1==l)break;l=1,u=o.length}}}var u="{",l="}",s=a("{");if(null==s&&(u="[",l="]",s=a("[")),null!=s){var c,f,p=1,d=t.lastLine();e:for(var h=i;h<=d;++h)for(var m=t.getLine(h),v=h==i?s:0;;){var g=m.indexOf(u,v),y=m.indexOf(l,v);if(g<0&&(g=m.length),y<0&&(y=m.length),(v=Math.min(g,y))==m.length)break;if(t.getTokenTypeAt(e.Pos(h,v+1))==r)if(v==g)++p;else if(!--p){c=h,f=v;break e}++v}if(null!=c&&(i!=c||f!=s))return{from:e.Pos(i,s),to:e.Pos(c,f)}}}),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 u=a.end;;){var l=r(u.line+1);if(null==l)break;u=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:u}}),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;;){if(null==r(a+1))break;++a}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})})(n(4))},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,'Jump to line: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use line:column or scroll% syntax)</span>',"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(4),n(41))},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,u="start",l=r.ch,s=i<0?0:o.length,c=0;l!=s;l+=i,c++){var f=o.charAt(i<0?l-1:l),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==u)"o"!=p&&(u="in",a=p);else if("in"==u&&a!=p){if("w"==a&&"W"==p&&i<0&&l--,"W"==a&&"w"==p&&i>0){a="w";continue}break}}return n(r.line,l)}(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 u=t.listSelections()[a].head;if(!(u.line<=o)){var l=n(u.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=u.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={anchor:e.findPosV(o.anchor,t,"line"),head:e.findPosV(o.head,t,"line")};r.push(o),r.push(a)}e.setSelections(r)}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(),u=o.line;u<=a.line;++u)a.line>o.line&&u==a.line&&0==a.ch||r.push({anchor:u==o.line?o:n(u,0),head:u==a.line?a:n(u)});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 u=o(t,r);if(!u.word)return;t.setSelection(u.from,u.to),a=!0}else{var l=t.getRange(r,i),s=a?new RegExp("\\b"+l+"\\b"):l,c=t.getSearchCursor(s,i),f=c.findNext();if(f||(f=(c=t.getSearchCursor(s,n(t.firstLine(),0))).findNext()),!f||function(e,t,n){for(var r=0;r<e.length;r++)if(e[r].from()==t&&e[r].to()==n)return!0;return!1}(t.listSelections(),c.from(),c.to()))return e.Pass;t.addSelection(c.from(),c.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)};var u="(){}[]";function l(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],l=a.head,s=t.scanForBracket(l,-1);if(!s)return!1;for(;;){var c=t.scanForBracket(l,1);if(!c)return!1;if(c.ch==u.charAt(u.indexOf(s.ch)+1)){var f=n(s.pos.line,s.pos.ch+1);if(0!=e.cmpPos(f,a.from())||0!=e.cmpPos(c.pos,a.to())){i.push({anchor:f,head:c.pos});break}if(!(s=t.scanForBracket(s.pos,-1)))return!1}l=n(c.pos.line,c.pos.ch+1)}}return t.setSelections(i),!0}function s(t,r){if(t.isReadOnly())return e.Pass;for(var i,o=t.listSelections(),a=[],u=0;u<o.length;u++){var l=o[u];if(!l.empty()){for(var s=l.from().line,c=l.to().line;u<o.length-1&&o[u+1].from().line==c;)c=o[++u].to().line;o[u].to().ch||c--,a.push(s,c)}}a.length?i=!0:a.push(t.firstLine(),t.lastLine()),t.operation(function(){for(var e=[],o=0;o<a.length;o+=2){var u=a[o],l=a[o+1],s=n(u,0),c=n(l),f=t.getRange(s,c,!1);r?f.sort():f.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(f,s,c),i&&e.push({anchor:s,head:n(l+1,0)})}i&&t.setSelections(e,0)})}function c(t,n){t.operation(function(){for(var r=t.listSelections(),i=[],a=[],u=0;u<r.length;u++){(s=r[u]).empty()?(i.push(u),a.push("")):a.push(n(t.getRange(s.from(),s.to())))}t.replaceSelections(a,"around","case");var l;for(u=i.length-1;u>=0;u--){var s=r[i[u]];if(!(l&&e.cmpPos(s.head,l)>0)){var c=o(t,s.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy(function(r){var i=t.scanForBracket(r.head,1);if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-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=[],u=0;u<r.length;u++){var l=r[u],s=l.from().line-1,c=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,s>o?i.push(s,c):i.length&&(i[i.length-1]=c),o=c}t.operation(function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],u=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+u,n(t.lastLine()),null,"+swapLine"):t.replaceRange(u+"\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 u=r[a],l=u.to().line+1,s=u.from().line;0!=u.to().ch||u.empty()||l--,l<o?i.push(l,s):i.length&&(i[i.length-1]=s),o=s}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(),u=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:u,end:l,anchor:!o.empty()&&a})}e.operation(function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,u=r[o],l=u.anchor&&n(u.anchor.line-t,u.anchor.ch),s=u.start;s<=u.end;s++){var c=s-t;s==u.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||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){s(e,!0)},t.sortLinesInsensitive=function(e){s(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=e.findMarks(i,o),u=0;u<a.length;u++)if(a[u].sublimeBookmark){a[u].clear();for(var l=0;l<n.length;l++)n[l]==a[u]&&n.splice(l--,1);break}u==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,u=t.getRange({line:a.line,ch:0},a),l=e.countColumn(u,null,t.getOption("tabSize")),s=t.findPosH(a,-1,"char",!1);if(u&&!/\S/.test(u)&&l%i==0){var c=new n(a.line,e.findColumn(u,l-i,i));c.ch!=a.ch&&(s=c)}t.replaceRange("",s,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){c(e,function(e){return e.toUpperCase()})},t.downcaseAtCursor=function(e){c(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){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var 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",F9:"sortLines","Cmd-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","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-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-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-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(4),n(40),n(93))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.getOutline=function(e){var t=void 0;try{t=(0,i.parse)(e)}catch(e){return null}var n=(s=e,c=function(e){return{representativeName:e.name,startPosition:(0,a.offsetToPosition)(s,e.loc.start),endPosition:(0,a.offsetToPosition)(s,e.loc.end),children:e.selectionSet||[]}},{Field:function(e){var t=e.alias?[l("plain",e.alias),l("plain",": ")]:[];return t.push(l("plain",e.name)),r({tokenizedText:t},c(e))},OperationDefinition:function(e){return r({tokenizedText:[l("keyword",e.operation),l("whitespace"," "),l("class-name",e.name)]},c(e))},Document:function(e){return e.definitions},SelectionSet:function(e){return function(e,t){for(var n=[],r=0;r<e.length;r++){var i=t(e[r],r);Array.isArray(i)?n.push.apply(n,i):n.push(i)}return n}(e.selections,function(e){return e.kind===o.INLINE_FRAGMENT?e.selectionSet:e})},Name:function(e){return e.value},FragmentDefinition:function(e){return r({tokenizedText:[l("keyword","fragment"),l("whitespace"," "),l("class-name",e.name)]},c(e))},FragmentSpread:function(e){return r({tokenizedText:[l("plain","..."),l("class-name",e.name)]},c(e))},InlineFragment:function(e){return e.selectionSet}});var s,c;return{outlineTrees:(0,i.visit)(t,{leave:function(e){return u.hasOwnProperty(e.kind)&&n[e.kind]?n[e.kind](e):null}})}};var i=n(1),o=n(7),a=n(59),u={Field:!0,OperationDefinition:!0,Document:!0,SelectionSet:!0,Name:!0,FragmentDefinition:!0,FragmentSpread:!0,InlineFragment:!0};function l(e,t){return{kind:e,value:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLLanguageService=void 0;var r=n(7),i=n(1),o=n(57),a=n(60),u=n(58),l=n(59);t.GraphQLLanguageService=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._graphQLCache=t,this._graphQLConfig=t.getGraphQLConfig()}return e.prototype.getDiagnostics=function(e,t,o){var u,l,s,c,f,p,d,h,m,v,g,y,b,k;return regeneratorRuntime.async(function(w){for(;;)switch(w.prev=w.next){case 0:u=!1,l=this._graphQLConfig.getConfigForFile(t),s=l.schemaPath,w.prev=3,c=(0,i.parse)(e),s&&t===s||(u=c.definitions.some(function(e){switch(e.kind){case r.OBJECT_TYPE_DEFINITION:case r.INTERFACE_TYPE_DEFINITION:case r.ENUM_TYPE_DEFINITION:case r.UNION_TYPE_DEFINITION:case r.SCALAR_TYPE_DEFINITION:case r.INPUT_OBJECT_TYPE_DEFINITION:case r.SCALAR_TYPE_EXTENSION:case r.OBJECT_TYPE_EXTENSION:case r.INTERFACE_TYPE_EXTENSION:case r.UNION_TYPE_EXTENSION:case r.ENUM_TYPE_EXTENSION:case r.INPUT_OBJECT_TYPE_EXTENSION:case r.DIRECTIVE_DEFINITION:return!0}return!1})),w.next=12;break;case 8:return w.prev=8,w.t0=w.catch(3),f=(0,a.getRange)(w.t0.locations[0],e),w.abrupt("return",[{severity:a.SEVERITY.ERROR,message:w.t0.message,source:"GraphQL: Syntax",range:f}]);case 12:if(s){w.next=14;break}return w.abrupt("return",[]);case 14:return p=e,w.next=17,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDefinitions(l));case 17:return d=w.sent,w.next=20,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDependencies(e,d));case 20:h=w.sent,m=h.reduce(function(e,t){return e+" "+(0,i.print)(t.definition)},""),p=p+" "+m,v=null,w.prev=24,v=(0,i.parse)(p),w.next=31;break;case 28:return w.prev=28,w.t1=w.catch(24),w.abrupt("return",[]);case 31:return w.next=33,regeneratorRuntime.awrap(this._graphQLCache.getSchema(l.projectName,u));case 33:return g=w.sent,y=void 0,(b=l.extensions.customValidationRules)&&(k=n(183).resolve(""+b))&&(y=n(183)(""+k)(this._graphQLConfig)),w.abrupt("return",(0,a.validateQuery)(v,g,y,o));case 38:case"end":return w.stop()}},null,this,[[3,8],[24,28]])},e.prototype.getAutocompleteSuggestions=function(e,t,n){var r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(r=this._graphQLConfig.getConfigForFile(n)).schemaPath){a.next=7;break}return a.next=4,regeneratorRuntime.awrap(this._graphQLCache.getSchema(r.projectName));case 4:if(!(i=a.sent)){a.next=7;break}return a.abrupt("return",(0,o.getAutocompleteSuggestions)(i,e,t));case 7:return a.abrupt("return",[]);case 8:case"end":return a.stop()}},null,this)},e.prototype.getDefinition=function(e,t,n){var o,a,s;return regeneratorRuntime.async(function(c){for(;;)switch(c.prev=c.next){case 0:o=this._graphQLConfig.getConfigForFile(n),a=void 0,c.prev=2,a=(0,i.parse)(e),c.next=9;break;case 6:return c.prev=6,c.t0=c.catch(2),c.abrupt("return",null);case 9:if(!(s=(0,l.getASTNodeAtPosition)(e,a,t))){c.next=16;break}c.t1=s.kind,c.next=c.t1===r.FRAGMENT_SPREAD?14:c.t1===r.FRAGMENT_DEFINITION?15:c.t1===r.OPERATION_DEFINITION?15:16;break;case 14:return c.abrupt("return",this._getDefinitionForFragmentSpread(e,a,s,n,o));case 15:return c.abrupt("return",(0,u.getDefinitionQueryResultForDefinitionNode)(n,e,s));case 16:return c.abrupt("return",null);case 17:case"end":return c.stop()}},null,this,[[2,6]])},e.prototype._getDefinitionForFragmentSpread=function(e,t,n,i,o){var a,l,s,c,f;return regeneratorRuntime.async(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDefinitions(o));case 2:return a=p.sent,p.next=5,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDependenciesForAST(t,a));case 5:return l=p.sent,s=t.definitions.filter(function(e){return e.kind===r.FRAGMENT_DEFINITION}),c=s.map(function(t){return{filePath:i,content:e,definition:t}}),p.next=11,regeneratorRuntime.awrap((0,u.getDefinitionQueryResultForFragmentSpread)(e,n,l.concat(c)));case 11:return f=p.sent,p.abrupt("return",f);case 13:case"end":return p.stop()}},null,this)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(334);Object.defineProperty(t,"CharacterStream",{enumerable:!0,get:function(){return u(r).default}});var i=n(188);Object.defineProperty(t,"LexRules",{enumerable:!0,get:function(){return i.LexRules}}),Object.defineProperty(t,"ParseRules",{enumerable:!0,get:function(){return i.ParseRules}}),Object.defineProperty(t,"isIgnored",{enumerable:!0,get:function(){return i.isIgnored}});var o=n(189);Object.defineProperty(t,"butNot",{enumerable:!0,get:function(){return o.butNot}}),Object.defineProperty(t,"list",{enumerable:!0,get:function(){return o.list}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return o.opt}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return o.p}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return o.t}});var a=n(335);function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"onlineParser",{enumerable:!0,get:function(){return u(a).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=u(n(2)),i=u(n(6)),o=u(n(42)),a=u(n(190));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.arg,n=e.onClickType,i=e.showDefaultValue;return r.default.createElement("span",{className:"arg"},r.default.createElement("span",{className:"arg-name"},t.name),": ",r.default.createElement(o.default,{type:t.type,onClick:n}),!1!==i&&r.default.createElement(a.default,{field:t}))}l.propTypes={arg:i.default.object.isRequired,onClickType:i.default.func.isRequired,showDefaultValue:i.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(2)),o=a(n(6));function a(e){return e&&e.__esModule?e:{default:e}}var u=new(a(n(89)).default),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.markdown!==e.markdown}},{key:"render",value:function(){var e=this.props.markdown;return e?i.default.createElement("div",{className:this.props.className,dangerouslySetInnerHTML:{__html:u.render(e)}}):i.default.createElement("div",null)}}]),t}();l.propTypes={markdown:o.default.string,className:o.default.string},t.default=l},function(e,t,n){var r,i,o=n(62),a=n(63),u=0,l=0;e.exports=function(e,t,n){var s=t&&n||0,c=t||[],f=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==p){var d=o();null==f&&(f=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==p&&(p=i=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,v=h-u+(m-l)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||h>u)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=h,l=m,i=p;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;c[s++]=g>>>24&255,c[s++]=g>>>16&255,c[s++]=g>>>8&255,c[s++]=255&g;var y=h/4294967296*1e4&268435455;c[s++]=y>>>8&255,c[s++]=255&y,c[s++]=y>>>24&15|16,c[s++]=y>>>16&255,c[s++]=p>>>8|128,c[s++]=255&p;for(var b=0;b<6;++b)c[s+b]=f[b];return t||a(c)}},function(e,t,n){"use strict";t.h=function(e){return["StringValue","BooleanValue","EnumValue"].indexOf(e.kind)>-1},t.g=function(e){return["IntValue","FloatValue"].indexOf(e.kind)>-1},t.m=a,t.j=function(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,o=r.value;return a(n[e.name.value],i,o,t)})}));var r=null;e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return a(r,n,i,t)}));return l(e.name.value,r,n)},t.b=l,t.a=function(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return a(n,r,i,t)}),n}return null},t.i=function(e){return e.alias?e.alias.value:e.name.value},t.c=function(e){return"Field"===e.kind},t.e=function(e){return"InlineFragment"===e.kind},t.d=function(e){return e&&"id"===e.type&&"boolean"==typeof e.generated},t.k=function(e,t){void 0===t&&(t=!1);return o({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)},t.f=function(e){return null!=e&&"object"==typeof e&&"json"===e.type},t.l=function e(t,n){void 0===n&&(n=s);switch(t.kind){case"Variable":return n(t);case"NullValue":return null;case"IntValue":return parseInt(t.value,10);case"FloatValue":return parseFloat(t.value);case"ListValue":return t.values.map(function(t){return e(t,n)});case"ObjectValue":for(var r={},i=0,o=t.fields;i<o.length;i++){var a=o[i];r[a.name.value]=e(a.value,n)}return r;default:return t.value}};var r=n(49),i=n.n(r),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)};function a(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(e){return a(i,e.name,e.value,r)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return a(n,t,e,r),n[t.value]});else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new Error('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.');e[t.value]=null}}var u=["connection","include","skip","client","rest","export"];function l(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o=t,a={};return r.forEach(function(e){a[e]=o[e]}),n.connection.key+"("+JSON.stringify(a)+")"}return n.connection.key}var l=e;if(t){var s=i()(t);l+="("+s+")"}return n&&Object.keys(n).forEach(function(e){-1===u.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?l+="@"+e+"("+JSON.stringify(n[e])+")":l+="@"+e)}),l}function s(e){throw new Error("Variable nodes are not supported by valueFromNode")}},function(e,t,n){"use strict";(function(e){function n(){return void 0!==e?"production":"development"}function r(e){return n()===e}t.a=n,t.c=r,t.d=function(){return!0===r("production")},t.b=function(){return!0===r("development")},t.e=function(){return!0===r("test")}}).call(t,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default=function(e,t){var n=e.__typename;if(!n)throw new Error("Did not fetch typename for object, unable to resolve interface.");var i=t.getType(n);if(!(i instanceof r.GraphQLObjectType))throw new Error("__typename did not match an object type: "+n);return i}},function(e,t,n){"use strict";var r=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),a=Symbol("subSchemaErrors");function u(e,t){if(t&&t.length>0){if(Array.isArray(e)){var n={};return t.forEach(function(e){var t=e.path[1],i=n[t]||[];i.push(r({},e,{path:e.path.slice(1)})),n[t]=i}),e.map(function(e,t){return u(e,n[t])})}return r({},e,((i={})[a]=t.map(function(e){return r({},e,{path:e.path.slice(1)})}),i))}return e;var i}t.annotateWithChildrenErrors=u,t.getErrorsFromParent=function(e,t){for(var n=[],r=0,i=e&&e[a]||[];r<i.length;r++){var o=i[r];if(1===o.path.length&&o.path[0]===t)return{kind:"OWN",error:o};o.path[0]===t&&n.push(o)}return{kind:"CHILDREN",errors:n}},t.checkResultAndHandleErrors=function(e,t,n){if(n||(n=t.fieldNodes[0].alias?t.fieldNodes[0].alias.value:t.fieldName),!e.errors||e.data&&null!=e.data[n]){var r=e.data[n];return e.errors&&(r=u(r,e.errors)),r}var a=e.errors.map(function(e){return e.message}).join("\n");throw o.locatedError(new Error(a),t.fieldNodes,i.responsePathAsArray(t.path))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(109);n.d(t,"empty",function(){return r.c}),n.d(t,"from",function(){return r.e}),n.d(t,"split",function(){return r.f}),n.d(t,"concat",function(){return r.b}),n.d(t,"ApolloLink",function(){return r.a}),n.d(t,"execute",function(){return r.d});var i=n(43);n.d(t,"createOperation",function(){return i.b}),n.d(t,"makePromise",function(){return i.e}),n.d(t,"toPromise",function(){return i.f}),n.d(t,"fromPromise",function(){return i.c});var o=n(25);n.n(o);n.d(t,"Observable",function(){return o})},function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return f}),t.d=function(e,t){return e.request(Object(i.b)(t.context,Object(i.g)(Object(i.h)(t))))||r.of()};var r=n(25),i=(n.n(r),n(43)),o=function(e,t){return t?t(e):r.of()},a=function(e){return"function"==typeof e?new f(e):e},u=function(){return new f(function(e,t){return r.of()})},l=function(e){return 0===e.length?u():e.map(a).reduce(function(e,t){return e.concat(t)})},s=function(e,t,n){void 0===n&&(n=new f(o));var u=a(t),l=a(n);return Object(i.d)(u)&&Object(i.d)(l)?new f(function(t){return e(t)?u.request(t)||r.of():l.request(t)||r.of()}):new f(function(t,n){return e(t)?u.request(t,n)||r.of():l.request(t,n)||r.of()})},c=function(e,t){var n=a(e);if(Object(i.d)(n))return console.warn(new i.a("You are calling concat on a terminating link, which will have no effect",n)),n;var o=a(t);return Object(i.d)(o)?new f(function(e){return n.request(e,function(e){return o.request(e)||r.of()})||r.of()}):new f(function(e,t){return n.request(e,function(e){return o.request(e,t)||r.of()})||r.of()})},f=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return void 0===r&&(r=new e(o)),this.concat(s(t,n,r))},e.prototype.concat=function(e){return c(this,e)},e.prototype.request=function(e,t){throw new Error("request is not implemented")},e.empty=u,e.from=l,e.split=s,e}()},function(e,t,n){"use strict";(function(e){(function(e,t){function n(e){return"function"==typeof Symbol&&Boolean(Symbol[e])}function r(e){return n(e)?Symbol[e]:"@@"+e}function i(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function o(e){var t=e.constructor;return void 0!==t&&null===(t=t[r("species")])&&(t=void 0),void 0!==t?t:f}function a(e,t){Object.keys(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);r.enumerable=!1,Object.defineProperty(e,n,r)})}function u(e){var t=e._cleanup;t&&(e._cleanup=void 0,t())}function l(e){return void 0===e._observer}function s(e,t){if(Object(e)!==e)throw new TypeError("Observer must be an object");this._cleanup=void 0,this._observer=e;var n=i(e,"start");if(n&&n.call(e,this),!l(this)){e=new c(this);try{var r=t.call(void 0,e);if(null!=r){if("function"==typeof r.unsubscribe)o=r,r=function(){o.unsubscribe()};else if("function"!=typeof r)throw new TypeError(r+" is not a function");this._cleanup=r}}catch(t){return void e.error(t)}var o;l(this)&&u(this)}}function c(e){this._subscription=e}function f(e){if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}"function"!=typeof Symbol||Symbol.observable||(Symbol.observable=Symbol("observable")),a(s.prototype={},{get closed(){return l(this)},unsubscribe:function(){var e;l(e=this)||(e._observer=void 0,u(e))}}),a(c.prototype={},{get closed(){return l(this._subscription)},next:function(e){var t=this._subscription;if(!l(t)){var n=t._observer,r=i(n,"next");if(r)return r.call(n,e)}},error:function(e){var t=this._subscription;if(l(t))throw e;var n=t._observer;t._observer=void 0;try{var r=i(n,"error");if(!r)throw e;e=r.call(n,e)}catch(e){try{u(t)}finally{throw e}}return u(t),e},complete:function(e){var t=this._subscription;if(!l(t)){var n=t._observer;t._observer=void 0;try{var r=i(n,"complete");e=r?r.call(n,e):void 0}catch(e){try{u(t)}finally{throw e}}return u(t),e}}}),a(f.prototype,{subscribe:function(e){for(var t=[],n=1;n<arguments.length;++n)t.push(arguments[n]);return"function"==typeof e&&(e={next:e,error:t[0],complete:t[1]}),new s(e,this._subscriber)},forEach:function(e){var t=this;return new Promise(function(n,r){if("function"!=typeof e)return Promise.reject(new TypeError(e+" is not a function"));t.subscribe({_subscription:null,start:function(e){if(Object(e)!==e)throw new TypeError(e+" is not an object");this._subscription=e},next:function(t){var n=this._subscription;if(!n.closed)try{return e(t)}catch(e){r(e),n.unsubscribe()}},error:r,complete:n})})},map:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(o(this))(function(n){return t.subscribe({next:function(t){if(!n.closed){try{t=e(t)}catch(e){return n.error(e)}return n.next(t)}},error:function(e){return n.error(e)},complete:function(e){return n.complete(e)}})})},filter:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(o(this))(function(n){return t.subscribe({next:function(t){if(!n.closed){try{if(!e(t))return}catch(e){return n.error(e)}return n.next(t)}},error:function(e){return n.error(e)},complete:function(){return n.complete()}})})},reduce:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=o(this),r=arguments.length>1,i=!1,a=arguments[1];return new n(function(n){return t.subscribe({next:function(t){if(!n.closed){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t}},error:function(e){n.error(e)},complete:function(){i||r?(n.next(a),n.complete()):n.error(new TypeError("Cannot reduce an empty sequence"))}})})},flatMap:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(o(this))(function(n){var r=!1,i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return void n.error(e)}f.from(t).subscribe({_subscription:null,start:function(e){i.push(this._subscription=e)},next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(this._subscription);e>=0&&i.splice(e,1),a()}})},error:function(e){return n.error(e)},complete:function(){r=!0,a()}});function a(){r&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})}}),Object.defineProperty(f.prototype,r("observable"),{value:function(){return this},writable:!0,configurable:!0}),a(f,{from:function(e){var t="function"==typeof this?this:f;if(null==e)throw new TypeError(e+" is not an object");var o=i(e,r("observable"));if(o){var a=o.call(e);if(Object(a)!==a)throw new TypeError(a+" is not an object");return a.constructor===t?a:new t(function(e){return a.subscribe(e)})}if(n("iterator")&&(o=i(e,r("iterator"))))return new t(function(t){for(var n,r=o.call(e)[Symbol.iterator]();!(n=r.next()).done;){var i=n.value;if(t.next(i),t.closed)return}t.complete()});if(Array.isArray(e))return new t(function(t){for(var n=0;n<e.length;++n)if(t.next(e[n]),t.closed)return;t.complete()});throw new TypeError(e+" is not observable")},of:function(){for(var e=[],t=0;t<arguments.length;++t)e.push(arguments[t]);return new("function"==typeof this?this:f)(function(t){for(var n=0;n<e.length;++n)if(t.next(e[n]),t.closed)return;t.complete()})}}),Object.defineProperty(f,r("species"),{get:function(){return this},configurable:!0}),Object.defineProperty(f,"observableSymbol",{value:r("observable")}),e.Observable=f})(t)}).call(t,n(21)(e))},function(e,t,n){"use strict";n(112),n(113);var r=n(44);n.d(t,"a",function(){return r.e});n(114),n(26),n(45),n(46),n(27),n(115),n(116),n(117),n(118)},function(e,t,n){"use strict";n(26);new Map},function(e,t,n){"use strict";this&&this.__assign||Object.assign},function(e,t,n){"use strict";n(46),n(44);new Map;new Map},function(e,t,n){"use strict"},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(27)},function(e,t,n){"use strict";n(27),Object.create({})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(64);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),r=n;return r.setMaxListeners(1/0),r.wall=e,e.listen(function(e){"string"==typeof e?r.emit(e):r.emit(e.event,e.payload)}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.EventEmitter),r(t,[{key:"send",value:function(e,t){this.wall.send({event:e,payload:t})}},{key:"log",value:function(e){this.send("log",e)}}]),t}();t.default=o},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;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,a,u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var s in n=Object(arguments[l]))i.call(n,s)&&(u[s]=n[s]);if(r){a=r(n);for(var c=0;c<a.length;c++)o.call(n,a[c])&&(u[a[c]]=n[a[c]])}}return u}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){(function(e,n){var r=200,i="Expected a function",o="__lodash_hash_undefined__",a=1,u=2,l=1/0,s=9007199254740991,c="[object Arguments]",f="[object Array]",p="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Function]",v="[object GeneratorFunction]",g="[object Map]",y="[object Number]",b="[object Object]",k="[object RegExp]",w="[object Set]",_="[object String]",T="[object Symbol]",E="[object ArrayBuffer]",x="[object DataView]",O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,S=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L=/\\(\\)?/g,D=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[c]=I[f]=I[E]=I[p]=I[x]=I[d]=I[h]=I[m]=I[g]=I[y]=I[b]=I[k]=I[w]=I[_]=I["[object WeakMap]"]=!1;var F="object"==typeof e&&e&&e.Object===Object&&e,j="object"==typeof self&&self&&self.Object===Object&&self,M=F||j||Function("return this")(),P="object"==typeof t&&t&&!t.nodeType&&t,R=P&&"object"==typeof n&&n&&!n.nodeType&&n,V=R&&R.exports===P&&F.process,Q=function(){try{return V&&V.binding("util")}catch(e){}}(),G=Q&&Q.isTypedArray;function q(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function U(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function B(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function z(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function H(e,t){return function(n){return e(t(n))}}function K(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var W,Y=Array.prototype,J=Function.prototype,$=Object.prototype,Z=M["__core-js_shared__"],X=(W=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",ee=J.toString,te=$.hasOwnProperty,ne=$.toString,re=RegExp("^"+ee.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=M.Symbol,oe=M.Uint8Array,ae=H(Object.getPrototypeOf,Object),ue=$.propertyIsEnumerable,le=Y.splice,se=Object.getOwnPropertySymbols,ce=H(Object.keys,Object),fe=qe(M,"DataView"),pe=qe(M,"Map"),de=qe(M,"Promise"),he=qe(M,"Set"),me=qe(M,"WeakMap"),ve=qe(Object,"create"),ge=Xe(fe),ye=Xe(pe),be=Xe(de),ke=Xe(he),we=Xe(me),_e=ie?ie.prototype:void 0,Te=_e?_e.valueOf:void 0,Ee=_e?_e.toString:void 0;function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.__data__=new Ce;++t<n;)this.add(e[t])}function Ne(e){this.__data__=new Oe(e)}function Le(e,t){var n=rt(e)||nt(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!te.call(e,o)||i&&("length"==o||He(o,r))||n.push(o);return n}function De(e,t){for(var n=e.length;n--;)if(tt(e[n][0],t))return n;return-1}function Ae(e,t){for(var n=0,r=(t=Ke(t,e)?[t]:Re(t)).length;null!=e&&n<r;)e=e[Ze(t[n++])];return n&&n==r?e:void 0}function Ie(e,t){return null!=e&&t in Object(e)}function Fe(e,t,n,r,i){return e===t||(null==e||null==t||!ut(e)&&!lt(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var l=rt(e),s=rt(t),m=f,v=f;l||(m=(m=ze(e))==c?b:m);s||(v=(v=ze(t))==c?b:v);var O=m==b&&!B(e),C=v==b&&!B(t),S=m==v;if(S&&!O)return o||(o=new Ne),l||ft(e)?Ve(e,t,n,r,i,o):function(e,t,n,r,i,o,l){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!r(new oe(e),new oe(t)));case p:case d:case y:return tt(+e,+t);case h:return e.name==t.name&&e.message==t.message;case k:case _:return e==t+"";case g:var s=z;case w:var c=o&u;if(s||(s=K),e.size!=t.size&&!c)return!1;var f=l.get(e);if(f)return f==t;o|=a,l.set(e,t);var m=Ve(s(e),s(t),r,i,o,l);return l.delete(e),m;case T:if(Te)return Te.call(e)==Te.call(t)}return!1}(e,t,m,n,r,i,o);if(!(i&u)){var N=O&&te.call(e,"__wrapped__"),L=C&&te.call(t,"__wrapped__");if(N||L){var D=N?e.value():e,A=L?t.value():t;return o||(o=new Ne),n(D,A,r,i,o)}}if(!S)return!1;return o||(o=new Ne),function(e,t,n,r,i,o){var a=i&u,l=pt(e),s=l.length,c=pt(t).length;if(s!=c&&!a)return!1;for(var f=s;f--;){var p=l[f];if(!(a?p in t:te.call(t,p)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var m=a;++f<s;){p=l[f];var v=e[p],g=t[p];if(r)var y=a?r(g,v,p,t,e,o):r(v,g,p,e,t,o);if(!(void 0===y?v===g||n(v,g,r,i,o):y)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var b=e.constructor,k=t.constructor;b!=k&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof k&&k instanceof k)&&(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o)}(e,t,Fe,n,r,i))}function je(e){return!(!ut(e)||X&&X in e)&&(ot(e)||B(e)?re:D).test(Xe(e))}function Me(e){return"function"==typeof e?e:null==e?ht:"object"==typeof e?rt(e)?function(e,t){if(Ke(e)&&Ye(t))return Je(Ze(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Ae(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){var r,i=-1,o=(t=Ke(t,e)?[t]:Re(t)).length;for(;++i<o;){var a=Ze(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;return!!(o=e?e.length:0)&&at(o)&&He(a,o)&&(rt(e)||nt(e))}(e,t,Ie)}(n,e):Fe(t,r,void 0,a|u)}}(e[0],e[1]):function(e){var t=function(e){var t=pt(e),n=t.length;for(;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ye(i)]}return t}(e);if(1==t.length&&t[0][2])return Je(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,l=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var c=(s=n[i])[0],f=e[c],p=s[1];if(l&&s[2]){if(void 0===f&&!(c in e))return!1}else{var d=new Ne;if(r)var h=r(f,p,c,e,t,d);if(!(void 0===h?Fe(p,f,r,a|u,d):h))return!1}}return!0}(n,e,t)}}(e):Ke(t=e)?(n=Ze(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Ae(t,e)}}(t);var t,n}function Pe(e){if(!ut(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=We(e),n=[];for(var r in e)("constructor"!=r||!t&&te.call(e,r))&&n.push(r);return n}function Re(e){return rt(e)?e:$e(e)}function Ve(e,t,n,r,i,o){var l=i&u,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var p=-1,d=!0,h=i&a?new Se:void 0;for(o.set(e,t),o.set(t,e);++p<s;){var m=e[p],v=t[p];if(r)var g=l?r(v,m,p,t,e,o):r(m,v,p,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!U(t,function(e,t){if(!h.has(t)&&(m===e||n(m,e,r,i,o)))return h.add(t)})){d=!1;break}}else if(m!==v&&!n(m,v,r,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Qe(e){return function(e,t,n){var r=t(e);return rt(e)?r:q(r,n(e))}(e,dt,Be)}function Ge(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 qe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return je(n)?n:void 0}xe.prototype.clear=function(){this.__data__=ve?ve(null):{}},xe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},xe.prototype.get=function(e){var t=this.__data__;if(ve){var n=t[e];return n===o?void 0:n}return te.call(t,e)?t[e]:void 0},xe.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:te.call(t,e)},xe.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?o:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=De(t,e);return!(n<0||(n==t.length-1?t.pop():le.call(t,n,1),0))},Oe.prototype.get=function(e){var t=this.__data__,n=De(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return De(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=De(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new xe,map:new(pe||Oe),string:new xe}},Ce.prototype.delete=function(e){return Ge(this,e).delete(e)},Ce.prototype.get=function(e){return Ge(this,e).get(e)},Ce.prototype.has=function(e){return Ge(this,e).has(e)},Ce.prototype.set=function(e,t){return Ge(this,e).set(e,t),this},Se.prototype.add=Se.prototype.push=function(e){return this.__data__.set(e,o),this},Se.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.clear=function(){this.__data__=new Oe},Ne.prototype.delete=function(e){return this.__data__.delete(e)},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var i=n.__data__;if(!pe||i.length<r-1)return i.push([e,t]),this;n=this.__data__=new Ce(i)}return n.set(e,t),this};var Ue=se?H(se,Object):mt,Be=se?function(e){for(var t=[];e;)q(t,Ue(e)),e=ae(e);return t}:mt,ze=function(e){return ne.call(e)};function He(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e,t){if(rt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!st(e))||(C.test(e)||!O.test(e)||null!=t&&e in Object(t))}function We(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$)}function Ye(e){return e==e&&!ut(e)}function Je(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(fe&&ze(new fe(new ArrayBuffer(1)))!=x||pe&&ze(new pe)!=g||de&&"[object Promise]"!=ze(de.resolve())||he&&ze(new he)!=w||me&&"[object WeakMap]"!=ze(new me))&&(ze=function(e){var t=ne.call(e),n=t==b?e.constructor:void 0,r=n?Xe(n):void 0;if(r)switch(r){case ge:return x;case ye:return g;case be:return"[object Promise]";case ke:return w;case we:return"[object WeakMap]"}return t});var $e=et(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(st(e))return Ee?Ee.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}(t);var n=[];return S.test(e)&&n.push(""),e.replace(N,function(e,t,r,i){n.push(r?i.replace(L,"$1"):t||e)}),n});function Ze(e){if("string"==typeof e||st(e))return e;var t=e+"";return"0"==t&&1/e==-l?"-0":t}function Xe(e){if(null!=e){try{return ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function et(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);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),a};return n.cache=new(et.Cache||Ce),n}function tt(e,t){return e===t||e!=e&&t!=t}function nt(e){return function(e){return lt(e)&&it(e)}(e)&&te.call(e,"callee")&&(!ue.call(e,"callee")||ne.call(e)==c)}et.Cache=Ce;var rt=Array.isArray;function it(e){return null!=e&&at(e.length)&&!ot(e)}function ot(e){var t=ut(e)?ne.call(e):"";return t==m||t==v}function at(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function ut(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function lt(e){return!!e&&"object"==typeof e}function st(e){return"symbol"==typeof e||lt(e)&&ne.call(e)==T}var ct,ft=G?(ct=G,function(e){return ct(e)}):function(e){return lt(e)&&at(e.length)&&!!I[ne.call(e)]};function pt(e){return it(e)?Le(e):function(e){if(!We(e))return ce(e);var t=[];for(var n in Object(e))te.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}function dt(e){return it(e)?Le(e,!0):Pe(e)}function ht(e){return e}function mt(){return[]}n.exports=function(e,t){return null==e?{}:function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],u=e[a];n(u,a)&&(o[a]=u)}return o}(e,Qe(e),Me(t))}}).call(t,n(18),n(21)(e))},function(e,t,n){(function(e,n){var r=200,i="Expected a function",o="__lodash_hash_undefined__",a=1,u=2,l=1/0,s=9007199254740991,c="[object Arguments]",f="[object Array]",p="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Function]",v="[object GeneratorFunction]",g="[object Map]",y="[object Number]",b="[object Object]",k="[object RegExp]",w="[object Set]",_="[object String]",T="[object Symbol]",E="[object ArrayBuffer]",x="[object DataView]",O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,S=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L=/\\(\\)?/g,D=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[c]=I[f]=I[E]=I[p]=I[x]=I[d]=I[h]=I[m]=I[g]=I[y]=I[b]=I[k]=I[w]=I[_]=I["[object WeakMap]"]=!1;var F="object"==typeof e&&e&&e.Object===Object&&e,j="object"==typeof self&&self&&self.Object===Object&&self,M=F||j||Function("return this")(),P="object"==typeof t&&t&&!t.nodeType&&t,R=P&&"object"==typeof n&&n&&!n.nodeType&&n,V=R&&R.exports===P&&F.process,Q=function(){try{return V&&V.binding("util")}catch(e){}}(),G=Q&&Q.isTypedArray;function q(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function U(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function B(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function z(e){return function(t){return e(t)}}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function K(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Y,J,$,Z=Array.prototype,X=Function.prototype,ee=Object.prototype,te=M["__core-js_shared__"],ne=(Y=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",re=X.toString,ie=ee.hasOwnProperty,oe=ee.toString,ae=RegExp("^"+re.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ue=M.Symbol,le=M.Uint8Array,se=ee.propertyIsEnumerable,ce=Z.splice,fe=ue?ue.isConcatSpreadable:void 0,pe=(J=Object.keys,$=Object,function(e){return J($(e))}),de=Math.max,he=Je(M,"DataView"),me=Je(M,"Map"),ve=Je(M,"Promise"),ge=Je(M,"Set"),ye=Je(M,"WeakMap"),be=Je(Object,"create"),ke=at(he),we=at(me),_e=at(ve),Te=at(ge),Ee=at(ye),xe=ue?ue.prototype:void 0,Oe=xe?xe.valueOf:void 0,Ce=xe?xe.toString:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ne(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Le(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function De(e){var t=-1,n=e?e.length:0;for(this.__data__=new Le;++t<n;)this.add(e[t])}function Ae(e){this.__data__=new Ne(e)}function Ie(e,t){var n=ft(e)||ct(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!ie.call(e,o)||i&&("length"==o||Xe(o,r))||n.push(o);return n}function Fe(e,t){for(var n=e.length;n--;)if(st(e[n][0],t))return n;return-1}Se.prototype.clear=function(){this.__data__=be?be(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(be){var n=t[e];return n===o?void 0:n}return ie.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return be?void 0!==t[e]:ie.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=be&&void 0===t?o:t,this},Ne.prototype.clear=function(){this.__data__=[]},Ne.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0||(n==t.length-1?t.pop():ce.call(t,n,1),0))},Ne.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Ne.prototype.has=function(e){return Fe(this.__data__,e)>-1},Ne.prototype.set=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Le.prototype.clear=function(){this.__data__={hash:new Se,map:new(me||Ne),string:new Se}},Le.prototype.delete=function(e){return Ye(this,e).delete(e)},Le.prototype.get=function(e){return Ye(this,e).get(e)},Le.prototype.has=function(e){return Ye(this,e).has(e)},Le.prototype.set=function(e,t){return Ye(this,e).set(e,t),this},De.prototype.add=De.prototype.push=function(e){return this.__data__.set(e,o),this},De.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.clear=function(){this.__data__=new Ne},Ae.prototype.delete=function(e){return this.__data__.delete(e)},Ae.prototype.get=function(e){return this.__data__.get(e)},Ae.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ne){var i=n.__data__;if(!me||i.length<r-1)return i.push([e,t]),this;n=this.__data__=new Le(i)}return n.set(e,t),this};var je,Me,Pe=(je=function(e,t){return e&&Re(e,t,bt)},function(e,t){if(null==e)return e;if(!pt(e))return je(e,t);for(var n=e.length,r=Me?n:-1,i=Object(e);(Me?r--:++r<n)&&!1!==t(i[r],r,i););return e});var Re=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),u=a.length;u--;){var l=a[e?u:++i];if(!1===n(o[l],l,o))break}return t}}();function Ve(e,t){for(var n=0,r=(t=tt(t,e)?[t]:He(t)).length;null!=e&&n<r;)e=e[ot(t[n++])];return n&&n==r?e:void 0}function Qe(e,t){return null!=e&&t in Object(e)}function Ge(e,t,n,r,i){return e===t||(null==e||null==t||!mt(e)&&!vt(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var l=ft(e),s=ft(t),m=f,v=f;l||(m=(m=$e(e))==c?b:m);s||(v=(v=$e(t))==c?b:v);var O=m==b&&!H(e),C=v==b&&!H(t),S=m==v;if(S&&!O)return o||(o=new Ae),l||yt(e)?We(e,t,n,r,i,o):function(e,t,n,r,i,o,l){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!r(new le(e),new le(t)));case p:case d:case y:return st(+e,+t);case h:return e.name==t.name&&e.message==t.message;case k:case _:return e==t+"";case g:var s=K;case w:var c=o&u;if(s||(s=W),e.size!=t.size&&!c)return!1;var f=l.get(e);if(f)return f==t;o|=a,l.set(e,t);var m=We(s(e),s(t),r,i,o,l);return l.delete(e),m;case T:if(Oe)return Oe.call(e)==Oe.call(t)}return!1}(e,t,m,n,r,i,o);if(!(i&u)){var N=O&&ie.call(e,"__wrapped__"),L=C&&ie.call(t,"__wrapped__");if(N||L){var D=N?e.value():e,A=L?t.value():t;return o||(o=new Ae),n(D,A,r,i,o)}}if(!S)return!1;return o||(o=new Ae),function(e,t,n,r,i,o){var a=i&u,l=bt(e),s=l.length,c=bt(t).length;if(s!=c&&!a)return!1;for(var f=s;f--;){var p=l[f];if(!(a?p in t:ie.call(t,p)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var m=a;++f<s;){p=l[f];var v=e[p],g=t[p];if(r)var y=a?r(g,v,p,t,e,o):r(v,g,p,e,t,o);if(!(void 0===y?v===g||n(v,g,r,i,o):y)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var b=e.constructor,k=t.constructor;b!=k&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof k&&k instanceof k)&&(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o)}(e,t,Ge,n,r,i))}function qe(e){return!(!mt(e)||ne&&ne in e)&&(dt(e)||H(e)?ae:D).test(at(e))}function Ue(e){return"function"==typeof e?e:null==e?kt:"object"==typeof e?ft(e)?function(e,t){if(tt(e)&&nt(t))return rt(ot(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Ve(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){var r,i=-1,o=(t=tt(t,e)?[t]:He(t)).length;for(;++i<o;){var a=ot(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;return!!(o=e?e.length:0)&&ht(o)&&Xe(a,o)&&(ft(e)||ct(e))}(e,t,Qe)}(n,e):Ge(t,r,void 0,a|u)}}(e[0],e[1]):function(e){var t=function(e){var t=bt(e),n=t.length;for(;n--;){var r=t[n],i=e[r];t[n]=[r,i,nt(i)]}return t}(e);if(1==t.length&&t[0][2])return rt(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,l=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var c=(s=n[i])[0],f=e[c],p=s[1];if(l&&s[2]){if(void 0===f&&!(c in e))return!1}else{var d=new Ae;if(r)var h=r(f,p,c,e,t,d);if(!(void 0===h?Ge(p,f,r,a|u,d):h))return!1}}return!0}(n,e,t)}}(e):tt(t=e)?(n=ot(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Ve(t,e)}}(t);var t,n}function Be(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||ee,t!==r)return pe(e);var t,n,r,i=[];for(var o in Object(e))ie.call(e,o)&&"constructor"!=o&&i.push(o);return i}function ze(e,t,n){var r=-1;return t=q(t.length?t:[kt],z(Ue)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(function(e,t){var n=-1,r=pt(e)?Array(e.length):[];return Pe(e,function(e,i,o){r[++n]=t(e,i,o)}),r}(e,function(e,n,i){return{criteria:q(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,u=n.length;for(;++r<a;){var l=Ke(i[r],o[r]);if(l){if(r>=u)return l;var s=n[r];return l*("desc"==s?-1:1)}}return e.index-t.index}(e,t,n)})}function He(e){return ft(e)?e:it(e)}function Ke(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=gt(e),a=void 0!==t,u=null===t,l=t==t,s=gt(t);if(!u&&!s&&!o&&e>t||o&&a&&l&&!u&&!s||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!s&&e<t||s&&n&&i&&!r&&!o||u&&n&&i||!a&&i||!l)return-1}return 0}function We(e,t,n,r,i,o){var l=i&u,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var p=-1,d=!0,h=i&a?new De:void 0;for(o.set(e,t),o.set(t,e);++p<s;){var m=e[p],v=t[p];if(r)var g=l?r(v,m,p,t,e,o):r(m,v,p,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!B(t,function(e,t){if(!h.has(t)&&(m===e||n(m,e,r,i,o)))return h.add(t)})){d=!1;break}}else if(m!==v&&!n(m,v,r,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ye(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 Je(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return qe(n)?n:void 0}var $e=function(e){return oe.call(e)};function Ze(e){return ft(e)||ct(e)||!!(fe&&e&&e[fe])}function Xe(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function et(e,t,n){if(!mt(n))return!1;var r=typeof t;return!!("number"==r?pt(n)&&Xe(t,n.length):"string"==r&&t in n)&&st(n[t],e)}function tt(e,t){if(ft(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!gt(e))||(C.test(e)||!O.test(e)||null!=t&&e in Object(t))}function nt(e){return e==e&&!mt(e)}function rt(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(he&&$e(new he(new ArrayBuffer(1)))!=x||me&&$e(new me)!=g||ve&&"[object Promise]"!=$e(ve.resolve())||ge&&$e(new ge)!=w||ye&&"[object WeakMap]"!=$e(new ye))&&($e=function(e){var t=oe.call(e),n=t==b?e.constructor:void 0,r=n?at(n):void 0;if(r)switch(r){case ke:return x;case we:return g;case _e:return"[object Promise]";case Te:return w;case Ee:return"[object WeakMap]"}return t});var it=lt(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(gt(e))return Ce?Ce.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}(t);var n=[];return S.test(e)&&n.push(""),e.replace(N,function(e,t,r,i){n.push(r?i.replace(L,"$1"):t||e)}),n});function ot(e){if("string"==typeof e||gt(e))return e;var t=e+"";return"0"==t&&1/e==-l?"-0":t}function at(e){if(null!=e){try{return re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ut=function(e,t){return t=de(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=de(n.length-t,0),o=Array(i);++r<i;)o[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=o,function(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)}(e,this,a)}}(function(e,t){if(null==e)return[];var n=t.length;return n>1&&et(e,t[0],t[1])?t=[]:n>2&&et(t[0],t[1],t[2])&&(t=[t[0]]),ze(e,function e(t,n,r,i,o){var a=-1,u=t.length;for(r||(r=Ze),o||(o=[]);++a<u;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,i,o):U(o,l):i||(o[o.length]=l)}return o}(t,1),[])});function lt(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);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),a};return n.cache=new(lt.Cache||Le),n}function st(e,t){return e===t||e!=e&&t!=t}function ct(e){return function(e){return vt(e)&&pt(e)}(e)&&ie.call(e,"callee")&&(!se.call(e,"callee")||oe.call(e)==c)}lt.Cache=Le;var ft=Array.isArray;function pt(e){return null!=e&&ht(e.length)&&!dt(e)}function dt(e){var t=mt(e)?oe.call(e):"";return t==m||t==v}function ht(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function mt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function vt(e){return!!e&&"object"==typeof e}function gt(e){return"symbol"==typeof e||vt(e)&&oe.call(e)==T}var yt=G?z(G):function(e){return vt(e)&&ht(e.length)&&!!I[oe.call(e)]};function bt(e){return pt(e)?Ie(e):Be(e)}function kt(e){return e}n.exports=ut}).call(t,n(18),n(21)(e))},function(e,t,n){var r=n(222).default;e.exports={GraphqlCodeBlock:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:i})};var r=n(126);var i={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return o(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",o(e.variableDefinitions,", "),")"),i=o(e.directives," "),a=e.selectionSet;return n||i||r||"query"!==t?o([t,o([n,r]),i,a]," "):a},VariableDefinition:function(e){return e.variable+": "+e.type+u(" = ",e.defaultValue)},SelectionSet:function(e){return a(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet;return o([u("",t,": ")+n+u("(",o(r,", "),")"),o(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",o(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return o(["...",u("on ",t),o(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.directives,i=e.selectionSet;return"fragment "+t+" on "+n+" "+u("",o(r," ")," ")+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e){var t=e.value;return JSON.stringify(t)},BooleanValue:function(e){var t=e.value;return JSON.stringify(t)},EnumValue:function(e){return e.value},ListValue:function(e){return"["+o(e.values,", ")+"]"},ObjectValue:function(e){return"{"+o(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",o(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,n=e.operationTypes;return o(["schema",o(t," "),a(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:function(e){return o(["scalar",e.name,o(e.directives," ")]," ")},ObjectTypeDefinition:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,u("implements ",o(n,", ")),o(r," "),a(i)]," ")},FieldDefinition:function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+u("(",o(n,", "),")")+": "+r+u(" ",o(i," "))},InputValueDefinition:function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,u("= ",r),o(i," ")]," ")},InterfaceTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.fields;return o(["interface",t,o(n," "),a(r)]," ")},UnionTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.types;return o(["union",t,o(n," "),"= "+o(r," | ")]," ")},EnumTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.values;return o(["enum",t,o(n," "),a(r)]," ")},EnumValueDefinition:function(e){return o([e.name,o(e.directives," ")]," ")},InputObjectTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.fields;return o(["input",t,o(n," "),a(r)]," ")},TypeExtensionDefinition:function(e){return"extend "+e.definition},DirectiveDefinition:function(e){var t=e.name,n=e.arguments,r=e.locations;return"directive @"+t+u("(",o(n,", "),")")+" on "+o(r," | ")}};function o(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function a(e){return e&&0!==e.length?((t="{\n"+o(e,"\n"))&&t.replace(/\n/g,"\n  "))+"\n}":"{}";var t}function u(e,t,n){return t?e+t+(n||""):""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t,n){var u=n||r,l=void 0,s=Array.isArray(e),c=[e],f=-1,p=[],d=void 0,h=[],m=[],v=e;do{var g=++f===c.length,y=void 0,b=void 0,k=g&&0!==p.length;if(g){if(y=0===m.length?void 0:h.pop(),b=d,d=m.pop(),k){if(s)b=b.slice();else{var w={};for(var _ in b)b.hasOwnProperty(_)&&(w[_]=b[_]);b=w}for(var T=0,E=0;E<p.length;E++){var x=p[E][0],O=p[E][1];s&&(x-=T),s&&null===O?(b.splice(x,1),T++):b[x]=O}}f=l.index,c=l.keys,p=l.edits,s=l.inArray,l=l.prev}else{if(y=d?s?f:c[f]:void 0,null===(b=d?d[y]:v)||void 0===b)continue;d&&h.push(y)}var C=void 0;if(!Array.isArray(b)){if(!o(b))throw new Error("Invalid AST Node: "+JSON.stringify(b));var S=a(t,b.kind,g);if(S){if((C=S.call(t,b,y,d,h,m))===i)break;if(!1===C){if(!g){h.pop();continue}}else if(void 0!==C&&(p.push([y,C]),!g)){if(!o(C)){h.pop();continue}b=C}}}void 0===C&&k&&p.push([y,b]),g||(l={inArray:s,index:f,keys:c,edits:p,prev:l},s=Array.isArray(b),c=s?b:u[b.kind]||[],f=-1,p=[],d&&m.push(d),d=b)}while(void 0!==l);0!==p.length&&(v=p[p.length-1][1]);return v},t.visitInParallel=function(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(!t[r]){var o=a(e[r],n.kind,!1);if(o){var u=o.apply(e[r],arguments);if(!1===u)t[r]=n;else if(u===i)t[r]=i;else if(void 0!==u)return u}}},leave:function(n){for(var r=0;r<e.length;r++)if(t[r])t[r]===n&&(t[r]=null);else{var o=a(e[r],n.kind,!0);if(o){var u=o.apply(e[r],arguments);if(u===i)t[r]=i;else if(void 0!==u&&!1!==u)return u}}}}},t.visitWithTypeInfo=function(e,t){return{enter:function(n){e.enter(n);var r=a(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),o(i)&&e.enter(i)),i}},leave:function(n){var r=a(t,n.kind,!0),i=void 0;return r&&(i=r.apply(t,arguments)),e.leave(n),i}}};var r=t.QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["name","directives"],ObjectTypeDefinition:["name","interfaces","directives","fields"],FieldDefinition:["name","arguments","type","directives"],InputValueDefinition:["name","type","defaultValue","directives"],InterfaceTypeDefinition:["name","directives","fields"],UnionTypeDefinition:["name","directives","types"],EnumTypeDefinition:["name","directives","values"],EnumValueDefinition:["name","directives"],InputObjectTypeDefinition:["name","directives","fields"],TypeExtensionDefinition:["definition"],DirectiveDefinition:["name","arguments","locations"]},i=t.BREAK={};function o(e){return e&&"string"==typeof e.kind}function a(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";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){var n="string"==typeof e?new r.Source(e):e;return function(e){var t=e.token;M(e,o.TokenKind.SOF);var n=[];do{n.push(l(e))}while(!j(e,o.TokenKind.EOF));return{kind:a.DOCUMENT,definitions:n,loc:A(e,t)}}((0,o.createLexer)(n,t||{}))},t.parseValue=function(e,t){var n="string"==typeof e?new r.Source(e):e,i=(0,o.createLexer)(n,t||{});M(i,o.TokenKind.SOF);var a=y(i,!1);return M(i,o.TokenKind.EOF),a},t.parseType=function(e,t){var n="string"==typeof e?new r.Source(e):e,i=(0,o.createLexer)(n,t||{});M(i,o.TokenKind.SOF);var a=E(i);return M(i,o.TokenKind.EOF),a},t.parseConstValue=b,t.parseTypeReference=E,t.parseNamedType=x;var r=n(128),i=n(129),o=n(131),a=n(132);function u(e){var t=M(e,o.TokenKind.NAME);return{kind:a.NAME,value:t.value,loc:A(e,t)}}function l(e){if(F(e,o.TokenKind.BRACE_L))return s(e);if(F(e,o.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return s(e);case"fragment":return function(e){var t=e.token;return P(e,"fragment"),{kind:a.FRAGMENT_DEFINITION,name:g(e),typeCondition:(P(e,"on"),x(e)),directives:_(e),selectionSet:d(e),loc:A(e,t)}}(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return function(e){if(F(e,o.TokenKind.NAME))switch(e.token.value){case"schema":return function(e){var t=e.token;P(e,"schema");var n=_(e),r=Q(e,o.TokenKind.BRACE_L,O,o.TokenKind.BRACE_R);return{kind:a.SCHEMA_DEFINITION,directives:n,operationTypes:r,loc:A(e,t)}}(e);case"scalar":return function(e){var t=e.token;P(e,"scalar");var n=u(e),r=_(e);return{kind:a.SCALAR_TYPE_DEFINITION,name:n,directives:r,loc:A(e,t)}}(e);case"type":return C(e);case"interface":return function(e){var t=e.token;P(e,"interface");var n=u(e),r=_(e),i=V(e,o.TokenKind.BRACE_L,S,o.TokenKind.BRACE_R);return{kind:a.INTERFACE_TYPE_DEFINITION,name:n,directives:r,fields:i,loc:A(e,t)}}(e);case"union":return function(e){var t=e.token;P(e,"union");var n=u(e),r=_(e);M(e,o.TokenKind.EQUALS);var i=function(e){var t=[];do{t.push(x(e))}while(j(e,o.TokenKind.PIPE));return t}(e);return{kind:a.UNION_TYPE_DEFINITION,name:n,directives:r,types:i,loc:A(e,t)}}(e);case"enum":return function(e){var t=e.token;P(e,"enum");var n=u(e),r=_(e),i=Q(e,o.TokenKind.BRACE_L,D,o.TokenKind.BRACE_R);return{kind:a.ENUM_TYPE_DEFINITION,name:n,directives:r,values:i,loc:A(e,t)}}(e);case"input":return function(e){var t=e.token;P(e,"input");var n=u(e),r=_(e),i=V(e,o.TokenKind.BRACE_L,L,o.TokenKind.BRACE_R);return{kind:a.INPUT_OBJECT_TYPE_DEFINITION,name:n,directives:r,fields:i,loc:A(e,t)}}(e);case"extend":return function(e){var t=e.token;P(e,"extend");var n=C(e);return{kind:a.TYPE_EXTENSION_DEFINITION,definition:n,loc:A(e,t)}}(e);case"directive":return function(e){var t=e.token;P(e,"directive"),M(e,o.TokenKind.AT);var n=u(e),r=N(e);P(e,"on");var i=function(e){var t=[];do{t.push(u(e))}while(j(e,o.TokenKind.PIPE));return t}(e);return{kind:a.DIRECTIVE_DEFINITION,name:n,arguments:r,locations:i,loc:A(e,t)}}(e)}throw R(e)}(e)}throw R(e)}function s(e){var t=e.token;if(F(e,o.TokenKind.BRACE_L))return{kind:a.OPERATION_DEFINITION,operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:d(e),loc:A(e,t)};var n=c(e),r=void 0;return F(e,o.TokenKind.NAME)&&(r=u(e)),{kind:a.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:function(e){return F(e,o.TokenKind.PAREN_L)?Q(e,o.TokenKind.PAREN_L,f,o.TokenKind.PAREN_R):[]}(e),directives:_(e),selectionSet:d(e),loc:A(e,t)}}function c(e){var t=M(e,o.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw R(e,t)}function f(e){var t=e.token;return{kind:a.VARIABLE_DEFINITION,variable:p(e),type:(M(e,o.TokenKind.COLON),E(e)),defaultValue:j(e,o.TokenKind.EQUALS)?y(e,!0):null,loc:A(e,t)}}function p(e){var t=e.token;return M(e,o.TokenKind.DOLLAR),{kind:a.VARIABLE,name:u(e),loc:A(e,t)}}function d(e){var t=e.token;return{kind:a.SELECTION_SET,selections:Q(e,o.TokenKind.BRACE_L,h,o.TokenKind.BRACE_R),loc:A(e,t)}}function h(e){return F(e,o.TokenKind.SPREAD)?function(e){var t=e.token;if(M(e,o.TokenKind.SPREAD),F(e,o.TokenKind.NAME)&&"on"!==e.token.value)return{kind:a.FRAGMENT_SPREAD,name:g(e),directives:_(e),loc:A(e,t)};var n=null;"on"===e.token.value&&(e.advance(),n=x(e));return{kind:a.INLINE_FRAGMENT,typeCondition:n,directives:_(e),selectionSet:d(e),loc:A(e,t)}}(e):function(e){var t=e.token,n=u(e),r=void 0,i=void 0;j(e,o.TokenKind.COLON)?(r=n,i=u(e)):(r=null,i=n);return{kind:a.FIELD,alias:r,name:i,arguments:m(e),directives:_(e),selectionSet:F(e,o.TokenKind.BRACE_L)?d(e):null,loc:A(e,t)}}(e)}function m(e){return F(e,o.TokenKind.PAREN_L)?Q(e,o.TokenKind.PAREN_L,v,o.TokenKind.PAREN_R):[]}function v(e){var t=e.token;return{kind:a.ARGUMENT,name:u(e),value:(M(e,o.TokenKind.COLON),y(e,!1)),loc:A(e,t)}}function g(e){if("on"===e.token.value)throw R(e);return u(e)}function y(e,t){var n=e.token;switch(n.kind){case o.TokenKind.BRACKET_L:return function(e,t){var n=e.token,r=t?b:k;return{kind:a.LIST,values:V(e,o.TokenKind.BRACKET_L,r,o.TokenKind.BRACKET_R),loc:A(e,n)}}(e,t);case o.TokenKind.BRACE_L:return function(e,t){var n=e.token;M(e,o.TokenKind.BRACE_L);var r=[];for(;!j(e,o.TokenKind.BRACE_R);)r.push(w(e,t));return{kind:a.OBJECT,fields:r,loc:A(e,n)}}(e,t);case o.TokenKind.INT:return e.advance(),{kind:a.INT,value:n.value,loc:A(e,n)};case o.TokenKind.FLOAT:return e.advance(),{kind:a.FLOAT,value:n.value,loc:A(e,n)};case o.TokenKind.STRING:return e.advance(),{kind:a.STRING,value:n.value,loc:A(e,n)};case o.TokenKind.NAME:if("true"===n.value||"false"===n.value)return e.advance(),{kind:a.BOOLEAN,value:"true"===n.value,loc:A(e,n)};if("null"!==n.value)return e.advance(),{kind:a.ENUM,value:n.value,loc:A(e,n)};break;case o.TokenKind.DOLLAR:if(!t)return p(e)}throw R(e)}function b(e){return y(e,!0)}function k(e){return y(e,!1)}function w(e,t){var n=e.token;return{kind:a.OBJECT_FIELD,name:u(e),value:(M(e,o.TokenKind.COLON),y(e,t)),loc:A(e,n)}}function _(e){for(var t=[];F(e,o.TokenKind.AT);)t.push(T(e));return t}function T(e){var t=e.token;return M(e,o.TokenKind.AT),{kind:a.DIRECTIVE,name:u(e),arguments:m(e),loc:A(e,t)}}function E(e){var t=e.token,n=void 0;return j(e,o.TokenKind.BRACKET_L)?(n=E(e),M(e,o.TokenKind.BRACKET_R),n={kind:a.LIST_TYPE,type:n,loc:A(e,t)}):n=x(e),j(e,o.TokenKind.BANG)?{kind:a.NON_NULL_TYPE,type:n,loc:A(e,t)}:n}function x(e){var t=e.token;return{kind:a.NAMED_TYPE,name:u(e),loc:A(e,t)}}function O(e){var t=e.token,n=c(e);M(e,o.TokenKind.COLON);var r=x(e);return{kind:a.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:A(e,t)}}function C(e){var t=e.token;P(e,"type");var n=u(e),r=function(e){var t=[];if("implements"===e.token.value){e.advance();do{t.push(x(e))}while(F(e,o.TokenKind.NAME))}return t}(e),i=_(e),l=V(e,o.TokenKind.BRACE_L,S,o.TokenKind.BRACE_R);return{kind:a.OBJECT_TYPE_DEFINITION,name:n,interfaces:r,directives:i,fields:l,loc:A(e,t)}}function S(e){var t=e.token,n=u(e),r=N(e);M(e,o.TokenKind.COLON);var i=E(e),l=_(e);return{kind:a.FIELD_DEFINITION,name:n,arguments:r,type:i,directives:l,loc:A(e,t)}}function N(e){return F(e,o.TokenKind.PAREN_L)?Q(e,o.TokenKind.PAREN_L,L,o.TokenKind.PAREN_R):[]}function L(e){var t=e.token,n=u(e);M(e,o.TokenKind.COLON);var r=E(e),i=null;j(e,o.TokenKind.EQUALS)&&(i=b(e));var l=_(e);return{kind:a.INPUT_VALUE_DEFINITION,name:n,type:r,defaultValue:i,directives:l,loc:A(e,t)}}function D(e){var t=e.token,n=u(e),r=_(e);return{kind:a.ENUM_VALUE_DEFINITION,name:n,directives:r,loc:A(e,t)}}function A(e,t){if(!e.options.noLocation)return new I(t,e.lastToken,e.source)}function I(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function F(e,t){return e.token.kind===t}function j(e,t){var n=e.token.kind===t;return n&&e.advance(),n}function M(e,t){var n=e.token;if(n.kind===t)return e.advance(),n;throw(0,i.syntaxError)(e.source,n.start,"Expected "+t+", found "+(0,o.getTokenDesc)(n))}function P(e,t){var n=e.token;if(n.kind===o.TokenKind.NAME&&n.value===t)return e.advance(),n;throw(0,i.syntaxError)(e.source,n.start,'Expected "'+t+'", found '+(0,o.getTokenDesc)(n))}function R(e,t){var n=t||e.token;return(0,i.syntaxError)(e.source,n.start,"Unexpected "+(0,o.getTokenDesc)(n))}function V(e,t,n,r){M(e,t);for(var i=[];!j(e,r);)i.push(n(e));return i}function Q(e,t,n,r){M(e,t);for(var i=[n(e)];!j(e,r);)i.push(n(e));return i}I.prototype.toJSON=I.prototype.inspect=function(){return{start:this.start,end:this.end}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Source=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.body=t,this.name=n||"GraphQL"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(79);Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}});var i=n(229);Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var o=n(230);Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}});var a=n(231);Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return a.formatError}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){var n=/\r\n|[\n\r]/g,r=1,i=t+1,o=void 0;for(;(o=n.exec(e.body))&&o.index<t;)r+=1,i=t+1-(o.index+o[0].length);return{line:r,column:i}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.createLexer=function(e,t){var n=new C(o,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:i}},t.getTokenDesc=function(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind};var r=n(129);function i(){var e=this.lastToken=this.token;if(e.kind!==a){do{e=e.next=N(this,e)}while(e.kind===E);this.token=e}return e}var o="<SOF>",a="<EOF>",u="!",l="$",s="(",c=")",f="...",p=":",d="=",h="@",m="[",v="]",g="{",y="|",b="}",k="Name",w="Int",_="Float",T="String",E="Comment";t.TokenKind={SOF:o,EOF:a,BANG:u,DOLLAR:l,PAREN_L:s,PAREN_R:c,SPREAD:f,COLON:p,EQUALS:d,AT:h,BRACKET_L:m,BRACKET_R:v,BRACE_L:g,PIPE:y,BRACE_R:b,NAME:k,INT:w,FLOAT:_,STRING:T,COMMENT:E};var x=String.prototype.charCodeAt,O=String.prototype.slice;function C(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}function S(e){return isNaN(e)?a:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function N(e,t){var n=e.source,i=n.body,o=i.length,N=function(e,t,n){var r=e.length,i=t;for(;i<r;){var o=x.call(e,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===x.call(e,i+1)?i+=2:++i,++n.line,n.lineStart=i}}return i}(i,t.end,e),A=e.line,I=1+N-e.lineStart;if(N>=o)return new C(a,o,o,A,I,t);var F=x.call(i,N);if(F<32&&9!==F&&10!==F&&13!==F)throw(0,r.syntaxError)(n,N,"Invalid character "+S(F)+".");switch(F){case 33:return new C(u,N,N+1,A,I,t);case 35:return function(e,t,n,r,i){var o=e.body,a=void 0,u=t;do{a=x.call(o,++u)}while(null!==a&&(a>31||9===a));return new C(E,t,u,n,r,i,O.call(o,t+1,u))}(n,N,A,I,t);case 36:return new C(l,N,N+1,A,I,t);case 40:return new C(s,N,N+1,A,I,t);case 41:return new C(c,N,N+1,A,I,t);case 46:if(46===x.call(i,N+1)&&46===x.call(i,N+2))return new C(f,N,N+3,A,I,t);break;case 58:return new C(p,N,N+1,A,I,t);case 61:return new C(d,N,N+1,A,I,t);case 64:return new C(h,N,N+1,A,I,t);case 91:return new C(m,N,N+1,A,I,t);case 93:return new C(v,N,N+1,A,I,t);case 123:return new C(g,N,N+1,A,I,t);case 124:return new C(y,N,N+1,A,I,t);case 125:return new C(b,N,N+1,A,I,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,i){var o=e.body,a=o.length,u=t+1,l=0;for(;u!==a&&null!==(l=x.call(o,u))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++u;return new C(k,t,u,n,r,i,O.call(o,t,u))}(n,N,A,I,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,i,o,a){var u=e.body,l=n,s=t,c=!1;45===l&&(l=x.call(u,++s));if(48===l){if((l=x.call(u,++s))>=48&&l<=57)throw(0,r.syntaxError)(e,s,"Invalid number, unexpected digit after 0: "+S(l)+".")}else s=L(e,s,l),l=x.call(u,s);46===l&&(c=!0,l=x.call(u,++s),s=L(e,s,l),l=x.call(u,s));69!==l&&101!==l||(c=!0,43!==(l=x.call(u,++s))&&45!==l||(l=x.call(u,++s)),s=L(e,s,l));return new C(c?_:w,t,s,i,o,a,O.call(u,t,s))}(n,N,F,A,I,t);case 34:return function(e,t,n,i,o){var a=e.body,u=t+1,l=u,s=0,c="";for(;u<a.length&&null!==(s=x.call(a,u))&&10!==s&&13!==s&&34!==s;){if(s<32&&9!==s)throw(0,r.syntaxError)(e,u,"Invalid character within String: "+S(s)+".");if(++u,92===s){switch(c+=O.call(a,l,u-1),s=x.call(a,u)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var f=(p=x.call(a,u+1),d=x.call(a,u+2),h=x.call(a,u+3),m=x.call(a,u+4),D(p)<<12|D(d)<<8|D(h)<<4|D(m));if(f<0)throw(0,r.syntaxError)(e,u,"Invalid character escape sequence: \\u"+a.slice(u+1,u+5)+".");c+=String.fromCharCode(f),u+=4;break;default:throw(0,r.syntaxError)(e,u,"Invalid character escape sequence: \\"+String.fromCharCode(s)+".")}l=++u}}var p,d,h,m;if(34!==s)throw(0,r.syntaxError)(e,u,"Unterminated string.");return c+=O.call(a,l,u),new C(T,t,u+1,n,i,o,c)}(n,N,A,I,t)}throw(0,r.syntaxError)(n,N,"Unexpected character "+S(F)+".")}function L(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=x.call(i,++o)}while(a>=48&&a<=57);return o}throw(0,r.syntaxError)(e,o,"Invalid number, expected digit but got: "+S(a)+".")}function D(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}C.prototype.toJSON=C.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.VARIABLE="Variable",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.TYPE_EXTENSION_DEFINITION="TypeExtensionDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){return o.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 32 32"},o.default.createElement("path",{fill:"#e04e4b",d:"M16 19.495c-0.69 0-1.25-0.56-1.25-1.25v-6.5c0-0.69 0.56-1.25 1.25-1.25v0c0.69 0 1.25 0.56 1.25 1.25v6.5c0 0.69-0.56 1.25-1.25 1.25v0zM16 23.245c0.69 0 1.25-0.56 1.25-1.25v0c0-0.69-0.56-1.25-1.25-1.25v0c-0.69 0-1.25 0.56-1.25 1.25v0c0 0.69 0.56 1.25 1.25 1.25v0zM16.004 6.619l-10.627 18.407h21.255l-10.627-18.407zM16.004 2.891c0.453 0 0.906 0.298 1.25 0.893l12.457 21.577c0.688 1.191 0.125 2.165-1.25 2.165h-24.915c-1.375 0-1.938-0.974-1.25-2.165l12.457-21.577c0.344-0.595 0.797-0.893 1.25-0.893v0z"}))}},function(e,t,n){var r=n(235);"string"==typeof r&&(r=[[e.i,r,""]]);n(30)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationContext=void 0,t.validate=function(e,t,n,r){return e||(0,o.default)(0,"Must provide schema"),!t&&(0,o.default)(0,"Must provide document"),!(e instanceof l.GraphQLSchema)&&(0,o.default)(0,"Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory."),function(e,t,n,r){var i=new f(e,n,t),o=r.map(function(e){return e(i)});return(0,a.visit)(n,(0,a.visitWithTypeInfo)(t,(0,a.visitInParallel)(o))),i.getErrors()}(e,r||new s.TypeInfo(e),t,n||c.specifiedRules)};var r,i=n(8),o=(r=i)&&r.__esModule?r:{default:r},a=(n(0),n(11)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),l=n(14),s=n(82),c=n(136);var f=t.ValidationContext=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._schema=t,this._ast=n,this._typeInfo=r,this._errors=[],this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}return e.prototype.reportError=function(e){this._errors.push(e)},e.prototype.getErrors=function(){return this._errors},e.prototype.getSchema=function(){return this._schema},e.prototype.getDocument=function(){return this._ast},e.prototype.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce(function(e,t){return t.kind===u.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e},Object.create(null))),t[e]},e.prototype.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=n.pop(),i=0;i<r.selections.length;i++){var o=r.selections[i];o.kind===u.FRAGMENT_SPREAD?t.push(o):o.selectionSet&&n.push(o.selectionSet)}this._fragmentSpreads.set(e,t)}return t},e.prototype.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=this.getFragmentSpreads(i),a=0;a<o.length;a++){var u=o[a].name.value;if(!0!==n[u]){n[u]=!0;var l=this.getFragment(u);l&&(t.push(l),r.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e.prototype.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new s.TypeInfo(this._schema);(0,a.visit)(e,(0,a.visitWithTypeInfo)(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType()})}})),t=n,this._variableUsages.set(e,t)}return t},e.prototype.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=this.getRecursivelyReferencedFragments(e),r=0;r<n.length;r++)Array.prototype.push.apply(t,this.getVariableUsages(n[r]));this._recursiveVariableUsages.set(e,t)}return t},e.prototype.getType=function(){return this._typeInfo.getType()},e.prototype.getParentType=function(){return this._typeInfo.getParentType()},e.prototype.getInputType=function(){return this._typeInfo.getInputType()},e.prototype.getFieldDef=function(){return this._typeInfo.getFieldDef()},e.prototype.getDirective=function(){return this._typeInfo.getDirective()},e.prototype.getArgument=function(){return this._typeInfo.getArgument()},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedRules=void 0;var r=n(137),i=n(138),o=n(139),a=n(140),u=n(141),l=n(142),s=n(143),c=n(144),f=n(145),p=n(85),d=n(86),h=n(146),m=n(147),v=n(148),g=n(149),y=n(150),b=n(151),k=n(152),w=n(153),_=n(154),T=n(155),E=n(156),x=n(157),O=n(158),C=n(159),S=n(160);t.specifiedRules=[r.UniqueOperationNames,i.LoneAnonymousOperation,o.SingleFieldSubscriptions,a.KnownTypeNames,u.FragmentsOnCompositeTypes,l.VariablesAreInputTypes,s.ScalarLeafs,c.FieldsOnCorrectType,f.UniqueFragmentNames,p.KnownFragmentNames,d.NoUnusedFragments,h.PossibleFragmentSpreads,m.NoFragmentCycles,v.UniqueVariableNames,g.NoUndefinedVariables,y.NoUnusedVariables,b.KnownDirectives,k.UniqueDirectivesPerLocation,w.KnownArgumentNames,_.UniqueArgumentNames,T.ArgumentsOfCorrectType,E.ProvidedNonNullArguments,x.DefaultValuesOfCorrectType,O.VariablesInAllowedPosition,C.OverlappingFieldsCanBeMerged,S.UniqueInputFieldNames]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateOperationNameMessage=i,t.UniqueOperationNames=function(e){var t=Object.create(null);return{OperationDefinition:function(n){var o=n.name;return o&&(t[o.value]?e.reportError(new r.GraphQLError(i(o.value),[t[o.value],o])):t[o.value]=o),!1},FragmentDefinition:function(){return!1}}};var r=n(0);function i(e){return'There can be only one operation named "'+e+'".'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.anonOperationNotAloneMessage=o,t.LoneAnonymousOperation=function(e){var t=0;return{Document:function(e){t=e.definitions.filter(function(e){return e.kind===i.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",[n]))}}};var r=n(0),i=n(7);function o(){return"This anonymous operation must be the only defined operation."}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.singleFieldOnlyMessage=i,t.SingleFieldSubscriptions=function(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new r.GraphQLError(i(t.name&&t.name.value),t.selectionSet.selections.slice(1)))}}};var r=n(0);function i(e){return(e?'Subscription "'+e+'" ':"Anonymous Subscription ")+"must select only one top level field."}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownTypeMessage=u,t.KnownTypeNames=function(e){return{ObjectTypeDefinition:function(){return!1},InterfaceTypeDefinition:function(){return!1},UnionTypeDefinition:function(){return!1},InputObjectTypeDefinition:function(){return!1},NamedType:function(t){var n=e.getSchema(),o=t.name.value,a=n.getType(o);a||e.reportError(new r.GraphQLError(u(o,(0,i.default)(o,Object.keys(n.getTypeMap()))),[t]))}}};var r=n(0),i=a(n(83)),o=a(n(84));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n='Unknown type "'+String(e)+'".';return t.length&&(n+=" Did you mean "+(0,o.default)(t)+"?"),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inlineFragmentOnNonCompositeErrorMessage=u,t.fragmentOnNonCompositeErrorMessage=l,t.FragmentsOnCompositeTypes=function(e){return{InlineFragment:function(t){if(t.typeCondition){var n=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);n&&!(0,o.isCompositeType)(n)&&e.reportError(new r.GraphQLError(u((0,i.print)(t.typeCondition)),[t.typeCondition]))}},FragmentDefinition:function(t){var n=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);n&&!(0,o.isCompositeType)(n)&&e.reportError(new r.GraphQLError(l(t.name.value,(0,i.print)(t.typeCondition)),[t.typeCondition]))}}};var r=n(0),i=n(9),o=n(5),a=n(17);function u(e){return'Fragment cannot condition on non composite type "'+String(e)+'".'}function l(e,t){return'Fragment "'+e+'" cannot condition on non composite type "'+String(t)+'".'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nonInputTypeOnVarMessage=u,t.VariablesAreInputTypes=function(e){return{VariableDefinition:function(t){var n=(0,a.typeFromAST)(e.getSchema(),t.type);if(n&&!(0,o.isInputType)(n)){var l=t.variable.name.value;e.reportError(new r.GraphQLError(u(l,(0,i.print)(t.type)),[t.type]))}}}};var r=n(0),i=n(9),o=n(5),a=n(17);function u(e,t){return'Variable "$'+e+'" cannot be non-input type "'+t+'".'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noSubselectionAllowedMessage=o,t.requiredSubselectionMessage=a,t.ScalarLeafs=function(e){return{Field:function(t){var n=e.getType();n&&((0,i.isLeafType)((0,i.getNamedType)(n))?t.selectionSet&&e.reportError(new r.GraphQLError(o(t.name.value,n),[t.selectionSet])):t.selectionSet||e.reportError(new r.GraphQLError(a(t.name.value,n),[t])))}}};var r=n(0),i=n(5);function o(e,t){return'Field "'+e+'" must not have a selection since type "'+String(t)+'" has no subfields.'}function a(e,t){return'Field "'+e+'" of type "'+String(t)+'" must have a selection of subfields. Did you mean "'+e+' { ... }"?'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedFieldMessage=l,t.FieldsOnCorrectType=function(e){return{Field:function(t){var n=e.getParentType();if(n){var o=e.getFieldDef();if(!o){var u=e.getSchema(),s=t.name.value,c=function(e,t,n){if((0,a.isAbstractType)(t)){var r=[],i=Object.create(null);e.getPossibleTypes(t).forEach(function(e){e.getFields()[n]&&(r.push(e.name),e.getInterfaces().forEach(function(e){e.getFields()[n]&&(i[e.name]=(i[e.name]||0)+1)}))});var o=Object.keys(i).sort(function(e,t){return i[t]-i[e]});return o.concat(r)}return[]}(u,n,s),f=0!==c.length?[]:function(e,t,n){if(t instanceof a.GraphQLObjectType||t instanceof a.GraphQLInterfaceType){var r=Object.keys(t.getFields());return(0,i.default)(n,r)}return[]}(0,n,s);e.reportError(new r.GraphQLError(l(s,n.name,c,f),[t]))}}}}};var r=n(0),i=u(n(83)),o=u(n(84)),a=n(5);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n,r){var i='Cannot query field "'+e+'" on type "'+t+'".';0!==n.length?i+=" Did you mean to use an inline fragment on "+(0,o.default)(n)+"?":0!==r.length&&(i+=" Did you mean "+(0,o.default)(r)+"?");return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateFragmentNameMessage=i,t.UniqueFragmentNames=function(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var o=n.name.value;return t[o]?e.reportError(new r.GraphQLError(i(o),[t[o],n.name])):t[o]=n.name,!1}}};var r=n(0);function i(e){return'There can be only one fragment named "'+e+'".'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeIncompatibleSpreadMessage=u,t.typeIncompatibleAnonSpreadMessage=l,t.PossibleFragmentSpreads=function(e){return{InlineFragment:function(t){var n=e.getType(),o=e.getParentType();(0,a.isCompositeType)(n)&&(0,a.isCompositeType)(o)&&!(0,i.doTypesOverlap)(e.getSchema(),n,o)&&e.reportError(new r.GraphQLError(l(o,n),[t]))},FragmentSpread:function(t){var n=t.name.value,a=function(e,t){var n=e.getFragment(t);return n&&(0,o.typeFromAST)(e.getSchema(),n.typeCondition)}(e,n),l=e.getParentType();a&&l&&!(0,i.doTypesOverlap)(e.getSchema(),a,l)&&e.reportError(new r.GraphQLError(u(n,l,a),[t]))}}};var r=n(0),i=n(53),o=n(17),a=n(5);function u(e,t,n){return'Fragment "'+e+'" cannot be spread here as objects of type "'+String(t)+'" can never be of type "'+String(n)+'".'}function l(e,t){return'Fragment cannot be spread here as objects of type "'+String(e)+'" can never be of type "'+String(t)+'".'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cycleErrorMessage=i,t.NoFragmentCycles=function(e){var t=Object.create(null),n=[],o=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(a){return t[a.name.value]||function a(u){var l=u.name.value;t[l]=!0;var s=e.getFragmentSpreads(u.selectionSet);if(0===s.length)return;o[l]=n.length;for(var c=0;c<s.length;c++){var f=s[c],p=f.name.value,d=o[p];if(void 0===d){if(n.push(f),!t[p]){var h=e.getFragment(p);h&&a(h)}n.pop()}else{var m=n.slice(d);e.reportError(new r.GraphQLError(i(p,m.map(function(e){return e.name.value})),m.concat(f)))}}o[l]=void 0}(a),!1}}};var r=n(0);function i(e,t){return'Cannot spread fragment "'+e+'" within itself'+(t.length?" via "+t.join(", "):"")+"."}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateVariableMessage=i,t.UniqueVariableNames=function(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var o=n.variable.name.value;t[o]?e.reportError(new r.GraphQLError(i(o),[t[o],n.variable.name])):t[o]=n.variable.name}}};var r=n(0);function i(e){return'There can be only one variable named "'+e+'".'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedVarMessage=i,t.NoUndefinedVariables=function(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var o=e.getRecursiveVariableUsages(n);o.forEach(function(o){var a=o.node,u=a.name.value;!0!==t[u]&&e.reportError(new r.GraphQLError(i(u,n.name&&n.name.value),[a,n]))})}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}};var r=n(0);function i(e,t){return t?'Variable "$'+e+'" is not defined by operation "'+t+'".':'Variable "$'+e+'" is not defined.'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unusedVariableMessage=i,t.NoUnusedVariables=function(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){var o=Object.create(null),a=e.getRecursiveVariableUsages(n),u=n.name?n.name.value:null;a.forEach(function(e){var t=e.node;o[t.name.value]=!0}),t.forEach(function(t){var n=t.variable.name.value;!0!==o[n]&&e.reportError(new r.GraphQLError(i(n,u),[t]))})}},VariableDefinition:function(e){t.push(e)}}};var r=n(0);function i(e,t){return t?'Variable "$'+e+'" is never used in operation "'+t+'".':'Variable "$'+e+'" is never used.'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownDirectiveMessage=s,t.misplacedDirectiveMessage=c,t.KnownDirectives=function(e){return{Directive:function(t,n,r,o,f){var p=(0,a.default)(e.getSchema().getDirectives(),function(e){return e.name===t.name.value});if(p){var d=function(e){var t=e[e.length-1];switch(t.kind){case u.OPERATION_DEFINITION:switch(t.operation){case"query":return l.DirectiveLocation.QUERY;case"mutation":return l.DirectiveLocation.MUTATION;case"subscription":return l.DirectiveLocation.SUBSCRIPTION}break;case u.FIELD:return l.DirectiveLocation.FIELD;case u.FRAGMENT_SPREAD:return l.DirectiveLocation.FRAGMENT_SPREAD;case u.INLINE_FRAGMENT:return l.DirectiveLocation.INLINE_FRAGMENT;case u.FRAGMENT_DEFINITION:return l.DirectiveLocation.FRAGMENT_DEFINITION;case u.SCHEMA_DEFINITION:return l.DirectiveLocation.SCHEMA;case u.SCALAR_TYPE_DEFINITION:return l.DirectiveLocation.SCALAR;case u.OBJECT_TYPE_DEFINITION:return l.DirectiveLocation.OBJECT;case u.FIELD_DEFINITION:return l.DirectiveLocation.FIELD_DEFINITION;case u.INTERFACE_TYPE_DEFINITION:return l.DirectiveLocation.INTERFACE;case u.UNION_TYPE_DEFINITION:return l.DirectiveLocation.UNION;case u.ENUM_TYPE_DEFINITION:return l.DirectiveLocation.ENUM;case u.ENUM_VALUE_DEFINITION:return l.DirectiveLocation.ENUM_VALUE;case u.INPUT_OBJECT_TYPE_DEFINITION:return l.DirectiveLocation.INPUT_OBJECT;case u.INPUT_VALUE_DEFINITION:var n=e[e.length-3];return n.kind===u.INPUT_OBJECT_TYPE_DEFINITION?l.DirectiveLocation.INPUT_FIELD_DEFINITION:l.DirectiveLocation.ARGUMENT_DEFINITION}}(f);d?-1===p.locations.indexOf(d)&&e.reportError(new i.GraphQLError(c(t.name.value,d),[t])):e.reportError(new i.GraphQLError(c(t.name.value,t.type),[t]))}else e.reportError(new i.GraphQLError(s(t.name.value),[t]))}}};var r,i=n(0),o=n(31),a=(r=o)&&r.__esModule?r:{default:r},u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),l=n(15);function s(e){return'Unknown directive "'+e+'".'}function c(e,t){return'Directive "'+e+'" may not be used on '+t+"."}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateDirectiveMessage=i,t.UniqueDirectivesPerLocation=function(e){return{enter:function(t){if(t.directives){var n=Object.create(null);t.directives.forEach(function(t){var o=t.name.value;n[o]?e.reportError(new r.GraphQLError(i(o),[n[o],t])):n[o]=t})}}}};var r=n(0);function i(e){return'The directive "'+e+'" can only be used once at this location.'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownArgMessage=c,t.unknownDirectiveArgMessage=f,t.KnownArgumentNames=function(e){return{Argument:function(t,n,u,s,p){var d=p[p.length-1];if(d.kind===l.FIELD){var h=e.getFieldDef();if(h){var m=(0,i.default)(h.args,function(e){return e.name===t.name.value});if(!m){var v=e.getParentType();v||(0,o.default)(0),e.reportError(new r.GraphQLError(c(t.name.value,h.name,v.name,(0,a.default)(t.name.value,h.args.map(function(e){return e.name}))),[t]))}}}else if(d.kind===l.DIRECTIVE){var g=e.getDirective();if(g){var y=(0,i.default)(g.args,function(e){return e.name===t.name.value});y||e.reportError(new r.GraphQLError(f(t.name.value,g.name,(0,a.default)(t.name.value,g.args.map(function(e){return e.name}))),[t]))}}}}};var r=n(0),i=s(n(31)),o=s(n(8)),a=s(n(83)),u=s(n(84)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r){var i='Unknown argument "'+e+'" on field "'+t+'" of type "'+n+'".';return r.length&&(i+=" Did you mean "+(0,u.default)(r)+"?"),i}function f(e,t,n){var r='Unknown argument "'+e+'" on directive "@'+t+'".';return n.length&&(r+=" Did you mean "+(0,u.default)(n)+"?"),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateArgMessage=i,t.UniqueArgumentNames=function(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var o=n.name.value;return t[o]?e.reportError(new r.GraphQLError(i(o),[t[o],n.name])):t[o]=n.name,!1}}};var r=n(0);function i(e){return'There can be only one argument named "'+e+'".'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.badValueMessage=a,t.ArgumentsOfCorrectType=function(e){return{Argument:function(t){var n=e.getArgument();if(n){var u=(0,o.isValidLiteralValue)(n.type,t.value);u&&u.length>0&&e.reportError(new r.GraphQLError(a(t.name.value,n.type,(0,i.print)(t.value),u),[t.value]))}return!1}}};var r=n(0),i=n(9),o=n(54);function a(e,t,n,r){return'Argument "'+e+'" has invalid value '+n+"."+(r?"\n"+r.join("\n"):"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.missingFieldArgMessage=l,t.missingDirectiveArgMessage=s,t.ProvidedNonNullArguments=function(e){return{Field:{leave:function(t){var n=e.getFieldDef();if(!n)return!1;var r=t.arguments||[],o=(0,a.default)(r,function(e){return e.name.value});n.args.forEach(function(n){var r=o[n.name];!r&&n.type instanceof u.GraphQLNonNull&&e.reportError(new i.GraphQLError(l(t.name.value,n.name,n.type),[t]))})}},Directive:{leave:function(t){var n=e.getDirective();if(!n)return!1;var r=t.arguments||[],o=(0,a.default)(r,function(e){return e.name.value});n.args.forEach(function(n){var r=o[n.name];!r&&n.type instanceof u.GraphQLNonNull&&e.reportError(new i.GraphQLError(s(t.name.value,n.name,n.type),[t]))})}}}};var r,i=n(0),o=n(32),a=(r=o)&&r.__esModule?r:{default:r},u=n(5);function l(e,t,n){return'Field "'+e+'" argument "'+t+'" of type "'+String(n)+'" is required but not provided.'}function s(e,t,n){return'Directive "@'+e+'" argument "'+t+'" of type "'+String(n)+'" is required but not provided.'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultForNonNullArgMessage=u,t.badValueForDefaultArgMessage=l,t.DefaultValuesOfCorrectType=function(e){return{VariableDefinition:function(t){var n=t.variable.name.value,s=t.defaultValue,c=e.getInputType();if(c instanceof o.GraphQLNonNull&&s&&e.reportError(new r.GraphQLError(u(n,c,c.ofType),[s])),c&&s){var f=(0,a.isValidLiteralValue)(c,s);f&&f.length>0&&e.reportError(new r.GraphQLError(l(n,c,(0,i.print)(s),f),[s]))}return!1},SelectionSet:function(){return!1},FragmentDefinition:function(){return!1}}};var r=n(0),i=n(9),o=n(5),a=n(54);function u(e,t,n){return'Variable "$'+e+'" of type "'+String(t)+'" is required and will not use the default value. Perhaps you meant to use type "'+String(n)+'".'}function l(e,t,n,r){var i=r?"\n"+r.join("\n"):"";return'Variable "$'+e+'" of type "'+String(t)+'" has invalid default value '+n+"."+i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.badVarPosMessage=u,t.VariablesInAllowedPosition=function(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var l=e.getRecursiveVariableUsages(n);l.forEach(function(n){var l=n.node,s=n.type,c=l.name.value,f=t[c];if(f&&s){var p=e.getSchema(),d=(0,a.typeFromAST)(p,f.type);d&&!(0,o.isTypeSubTypeOf)(p,function(e,t){return!t.defaultValue||e instanceof i.GraphQLNonNull?e:new i.GraphQLNonNull(e)}(d,f),s)&&e.reportError(new r.GraphQLError(u(c,d,s),[f,l]))}})}},VariableDefinition:function(e){t[e.variable.name.value]=e}}};var r=n(0),i=n(5),o=n(53),a=n(17);function u(e,t,n){return'Variable "$'+e+'" of type "'+String(t)+'" used in position expecting type "'+String(n)+'".'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fieldsConflictMessage=f,t.OverlappingFieldsCanBeMerged=function(e){var t=new y,n=new Map;return{SelectionSet:function(r){var o=function(e,t,n,r,i){var o=[],a=v(e,t,r,i),u=a[0],l=a[1];!function(e,t,n,r,i){Object.keys(i).forEach(function(o){var a=i[o];if(a.length>1)for(var u=0;u<a.length;u++)for(var l=u+1;l<a.length;l++){var s=m(e,n,r,!1,o,a[u],a[l]);s&&t.push(s)}})}(e,o,t,n,u);for(var s=0;s<l.length;s++){p(e,o,t,n,!1,u,l[s]);for(var c=s+1;c<l.length;c++)d(e,o,t,n,!1,l[s],l[c])}return o}(e,n,t,e.getParentType(),r);o.forEach(function(t){var n=t[0],r=n[0],o=n[1],a=t[1],u=t[2];return e.reportError(new i.GraphQLError(f(r,o),a.concat(u)))})}}};var r,i=n(0),o=n(31),a=(r=o)&&r.__esModule?r:{default:r},u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),l=n(9),s=n(5),c=n(17);function f(e,t){return'Fields "'+e+'" conflict because '+function e(t){if(Array.isArray(t))return t.map(function(t){var n=t[0],r=t[1];return'subfields "'+n+'" conflict because '+e(r)}).join(" and ");return t}(t)+". Use different aliases on the fields to fetch both if this was intentional."}function p(e,t,n,r,i,o,a){var u=e.getFragment(a);if(u){var l=g(e,n,u),s=l[0],c=l[1];h(e,t,n,r,i,o,s);for(var f=0;f<c.length;f++)p(e,t,n,r,i,o,c[f])}}function d(e,t,n,r,i,o,a){var u=e.getFragment(o),l=e.getFragment(a);if(u&&l&&u!==l&&!r.has(o,a,i)){r.add(o,a,i);var s=g(e,n,u),c=s[0],f=s[1],p=g(e,n,l),m=p[0],v=p[1];h(e,t,n,r,i,c,m);for(var y=0;y<v.length;y++)d(e,t,n,r,i,o,v[y]);for(var b=0;b<f.length;b++)d(e,t,n,r,i,f[b],a)}}function h(e,t,n,r,i,o,a){Object.keys(o).forEach(function(u){var l=a[u];if(l)for(var s=o[u],c=0;c<s.length;c++)for(var f=0;f<l.length;f++){var p=m(e,n,r,i,u,s[c],l[f]);p&&t.push(p)}})}function m(e,t,n,r,i,o,u){var c=o[0],f=o[1],m=o[2],g=u[0],y=u[1],b=u[2],k=r||c!==g&&c instanceof s.GraphQLObjectType&&g instanceof s.GraphQLObjectType,w=m&&m.type,_=b&&b.type;if(!k){var T=f.name.value,E=y.name.value;if(T!==E)return[[i,T+" and "+E+" are different fields"],[f],[y]];if(!function(e,t){if(e.length!==t.length)return!1;return e.every(function(e){var n,r,i=(0,a.default)(t,function(t){return t.name.value===e.name.value});return!!i&&(n=e.value,r=i.value,!n&&!r||(0,l.print)(n)===(0,l.print)(r))})}(f.arguments||[],y.arguments||[]))return[[i,"they have differing arguments"],[f],[y]]}if(w&&_&&function e(t,n){if(t instanceof s.GraphQLList)return!(n instanceof s.GraphQLList)||e(t.ofType,n.ofType);if(n instanceof s.GraphQLList)return!(t instanceof s.GraphQLList)||e(t.ofType,n.ofType);if(t instanceof s.GraphQLNonNull)return!(n instanceof s.GraphQLNonNull)||e(t.ofType,n.ofType);if(n instanceof s.GraphQLNonNull)return!(t instanceof s.GraphQLNonNull)||e(t.ofType,n.ofType);if((0,s.isLeafType)(t)||(0,s.isLeafType)(n))return t!==n;return!1}(w,_))return[[i,"they return conflicting types "+String(w)+" and "+String(_)],[f],[y]];var x=f.selectionSet,O=y.selectionSet;return x&&O?function(e,t,n,r){if(e.length>0)return[[t,e.map(function(e){var t=e[0];return t})],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,u){var l=[],s=v(e,t,i,o),c=s[0],f=s[1],m=v(e,t,a,u),g=m[0],y=m[1];h(e,l,t,n,r,c,g);for(var b=0;b<y.length;b++)p(e,l,t,n,r,c,y[b]);for(var k=0;k<f.length;k++)p(e,l,t,n,r,g,f[k]);for(var w=0;w<f.length;w++)for(var _=0;_<y.length;_++)d(e,l,t,n,r,f[w],y[_]);return l}(e,t,n,k,(0,s.getNamedType)(w),x,(0,s.getNamedType)(_),O),i,f,y):void 0}function v(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;a<r.selections.length;a++){var l=r.selections[a];switch(l.kind){case u.FIELD:var f=l.name.value,p=void 0;(n instanceof s.GraphQLObjectType||n instanceof s.GraphQLInterfaceType)&&(p=n.getFields()[f]);var d=l.alias?l.alias.value:f;i[d]||(i[d]=[]),i[d].push([n,l,p]);break;case u.FRAGMENT_SPREAD:o[l.name.value]=!0;break;case u.INLINE_FRAGMENT:var h=l.typeCondition,m=h?(0,c.typeFromAST)(t.getSchema(),h):n;e(t,m,l.selectionSet,i,o)}}}(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function g(e,t,n){var r=t.get(n.selectionSet);return r||v(e,t,(0,c.typeFromAST)(e.getSchema(),n.typeCondition),n.selectionSet)}var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data=Object.create(null)}return e.prototype.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!==n||!1===i)},e.prototype.add=function(e,t,n){b(this._data,e,t,n),b(this._data,t,e,n)},e}();function b(e,t,n,r){var i=e[t];i||(i=Object.create(null),e[t]=i),i[n]=r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateInputFieldMessage=i,t.UniqueInputFieldNames=function(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 o=t.name.value;return n[o]?e.reportError(new r.GraphQLError(i(o),[n[o],t.name])):n[o]=t.name,!1}}};var r=n(0);function i(e){return'There can be only one input field named "'+e+'".'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isValidJSValue=function e(t,n){if(n instanceof u.GraphQLNonNull)return(0,a.default)(t)?['Expected "'+String(n)+'", found null.']:e(t,n.ofType);if((0,a.default)(t))return[];if(n instanceof u.GraphQLList){var l=n.ofType;if((0,i.isCollection)(t)){var s=[];return(0,i.forEach)(t,function(t,n){s.push.apply(s,e(t,l).map(function(e){return"In element #"+n+": "+e}))}),s}return e(t,l)}if(n instanceof u.GraphQLInputObjectType){if("object"!==(void 0===t?"undefined":r(t))||null===t)return['Expected "'+n.name+'", found not an object.'];var c=n.getFields(),f=[];return Object.keys(t).forEach(function(e){c[e]||f.push('In field "'+e+'": Unknown field.')}),Object.keys(c).forEach(function(n){var r=e(t[n],c[n].type);f.push.apply(f,r.map(function(e){return'In field "'+n+'": '+e}))}),f}n instanceof u.GraphQLScalarType||n instanceof u.GraphQLEnumType||(0,o.default)(0,"Must be input type");try{var p=n.parseValue(t);if((0,a.default)(p)&&!n.isValidValue(t))return['Expected type "'+n.name+'", found '+JSON.stringify(t)+"."]}catch(e){return['Expected type "'+n.name+'", found '+JSON.stringify(t)+": "+e.message]}return[]};var i=n(20),o=l(n(8)),a=l(n(24)),u=n(5);function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(87);Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return r.execute}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return r.defaultFieldResolver}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return r.responsePathAsArray}});var i=n(55);Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return i.getDirectiveValues}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(249);Object.defineProperty(t,"introspectionQuery",{enumerable:!0,get:function(){return r.introspectionQuery}});var i=n(250);Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}});var o=n(251);Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return o.buildClientSchema}});var a=n(164);Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return a.buildASTSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return a.buildSchema}});var u=n(252);Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return u.extendSchema}});var l=n(253);Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return l.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return l.printType}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return l.printIntrospectionSchema}});var s=n(17);Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return s.typeFromAST}});var c=n(39);Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return c.valueFromAST}});var f=n(81);Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return f.astFromValue}});var p=n(82);Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return p.TypeInfo}});var d=n(161);Object.defineProperty(t,"isValidJSValue",{enumerable:!0,get:function(){return d.isValidJSValue}});var h=n(54);Object.defineProperty(t,"isValidLiteralValue",{enumerable:!0,get:function(){return h.isValidLiteralValue}});var m=n(254);Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return m.concatAST}});var v=n(255);Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return v.separateOperations}});var g=n(53);Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return g.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return g.isTypeSubTypeOf}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return g.doTypesOverlap}});var y=n(80);Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return y.assertValidName}});var b=n(256);Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return b.BreakingChangeType}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return b.DangerousChangeType}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return b.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return b.findDangerousChanges}});var k=n(257);Object.defineProperty(t,"findDeprecatedUsages",{enumerable:!0,get:function(){return k.findDeprecatedUsages}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildASTSchema=v,t.getDeprecationReason=g,t.getDescription=y,t.buildSchema=function(e){return v((0,u.parse)(e))};var r=m(n(8)),i=m(n(88)),o=n(39),a=n(37),u=n(13),l=n(55),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),c=n(14),f=n(19),p=n(5),d=n(15),h=n(16);function m(e){return e&&e.__esModule?e:{default:e}}function v(e){if(!e||e.kind!==s.DOCUMENT)throw new Error("Must provide a document ast.");for(var t=void 0,n=[],a=Object.create(null),u=[],l=0;l<e.definitions.length;l++){var m=e.definitions[l];switch(m.kind){case s.SCHEMA_DEFINITION:if(t)throw new Error("Must provide only one schema definition.");t=m;break;case s.SCALAR_TYPE_DEFINITION:case s.OBJECT_TYPE_DEFINITION:case s.INTERFACE_TYPE_DEFINITION:case s.ENUM_TYPE_DEFINITION:case s.UNION_TYPE_DEFINITION:case s.INPUT_OBJECT_TYPE_DEFINITION:var v=m.name.value;if(a[v])throw new Error('Type "'+v+'" was defined more than once.');n.push(m),a[v]=m;break;case s.DIRECTIVE_DEFINITION:u.push(m)}}var b=void 0,w=void 0,_=void 0;if(t?t.operationTypes.forEach(function(e){var t=e.type.name.value;if("query"===e.operation){if(b)throw new Error("Must provide only one query type in schema.");if(!a[t])throw new Error('Specified query type "'+t+'" not found in document.');b=t}else if("mutation"===e.operation){if(w)throw new Error("Must provide only one mutation type in schema.");if(!a[t])throw new Error('Specified mutation type "'+t+'" not found in document.');w=t}else if("subscription"===e.operation){if(_)throw new Error("Must provide only one subscription type in schema.");if(!a[t])throw new Error('Specified subscription type "'+t+'" not found in document.');_=t}}):(a.Query&&(b="Query"),a.Mutation&&(w="Mutation"),a.Subscription&&(_="Subscription")),!b)throw new Error("Must provide schema definition with query type or a type named Query.");var T={String:f.GraphQLString,Int:f.GraphQLInt,Float:f.GraphQLFloat,Boolean:f.GraphQLBoolean,ID:f.GraphQLID,__Schema:h.__Schema,__Directive:h.__Directive,__DirectiveLocation:h.__DirectiveLocation,__Type:h.__Type,__Field:h.__Field,__InputValue:h.__InputValue,__EnumValue:h.__EnumValue,__TypeKind:h.__TypeKind},E=n.map(function(e){return S(e.name.value)}),x=u.map(function(e){return new d.GraphQLDirective({name:e.name.value,description:y(e),locations:e.locations.map(function(e){return e.value}),args:e.arguments&&L(e.arguments),astNode:e})});return x.some(function(e){return"skip"===e.name})||x.push(d.GraphQLSkipDirective),x.some(function(e){return"include"===e.name})||x.push(d.GraphQLIncludeDirective),x.some(function(e){return"deprecated"===e.name})||x.push(d.GraphQLDeprecatedDirective),new c.GraphQLSchema({query:O(a[b]),mutation:w?O(a[w]):null,subscription:_?O(a[_]):null,types:E,directives:x,astNode:t});function O(e){var t=S(e.name.value);return t instanceof p.GraphQLObjectType||(0,r.default)(0,"AST must provide object type."),t}function C(e){return function e(t,n){if(n.kind===s.LIST_TYPE)return new p.GraphQLList(e(t,n.type));if(n.kind===s.NON_NULL_TYPE){var i=e(t,n.type);return i instanceof p.GraphQLNonNull&&(0,r.default)(0,"No nesting nonnull."),new p.GraphQLNonNull(i)}return t}(S(function(e){for(var t=e;t.kind===s.LIST_TYPE||t.kind===s.NON_NULL_TYPE;)t=t.type;return t}(e).name.value),e)}function S(e){if(!T[e]){if(!a[e])throw new Error('Type "'+e+'" not found in document.');T[e]=function(e){switch(e.kind){case s.OBJECT_TYPE_DEFINITION:return function(e){var t=e.name.value;return new p.GraphQLObjectType({name:t,description:y(e),fields:function(){return N(e)},interfaces:function(){return function(e){return e.interfaces&&e.interfaces.map(function(e){return(t=C(e))instanceof p.GraphQLInterfaceType||(0,r.default)(0,"Expected Interface type."),t;var t})}(e)},astNode:e})}(e);case s.INTERFACE_TYPE_DEFINITION:return function(e){return new p.GraphQLInterfaceType({name:e.name.value,description:y(e),fields:function(){return N(e)},astNode:e,resolveType:k})}(e);case s.ENUM_TYPE_DEFINITION:return function(e){return new p.GraphQLEnumType({name:e.name.value,description:y(e),values:(0,i.default)(e.values,function(e){return e.name.value},function(e){return{description:y(e),deprecationReason:g(e),astNode:e}}),astNode:e})}(e);case s.UNION_TYPE_DEFINITION:return function(e){return new p.GraphQLUnionType({name:e.name.value,description:y(e),types:e.types.map(function(e){return(t=C(e))instanceof p.GraphQLObjectType||(0,r.default)(0,"Expected Object type."),t;var t}),resolveType:k,astNode:e})}(e);case s.SCALAR_TYPE_DEFINITION:return function(e){return new p.GraphQLScalarType({name:e.name.value,description:y(e),astNode:e,serialize:function(){return null},parseValue:function(){return!1},parseLiteral:function(){return!1}})}(e);case s.INPUT_OBJECT_TYPE_DEFINITION:return function(e){return new p.GraphQLInputObjectType({name:e.name.value,description:y(e),fields:function(){return L(e.fields)},astNode:e})}(e);default:throw new Error('Type kind "'+e.kind+'" not supported.')}}(a[e])}return T[e]}function N(e){return(0,i.default)(e.fields,function(e){return e.name.value},function(e){return{type:(t=e.type,(0,p.assertOutputType)(C(t))),description:y(e),args:L(e.arguments),deprecationReason:g(e),astNode:e};var t})}function L(e){return(0,i.default)(e,function(e){return e.name.value},function(e){var t,n=(t=e.type,(0,p.assertInputType)(C(t)));return{type:n,description:y(e),defaultValue:(0,o.valueFromAST)(e.defaultValue,n),astNode:e}})}}function g(e){var t=(0,l.getDirectiveValues)(d.GraphQLDeprecatedDirective,e);return t&&t.reason}function y(e){var t=e.loc;if(t){for(var n=[],r=void 0,i=t.startToken.prev;i&&i.kind===a.TokenKind.COMMENT&&i.next&&i.prev&&i.line+1===i.next.line&&i.line!==i.prev.line;){var o=String(i.value),u=b(o);(void 0===r||u<r)&&(r=u),n.push(o),i=i.prev}return n.reverse().map(function(e){return e.slice(r)}).join("\n")}}function b(e){for(var t=0;t<e.length&&" "===e[t];t++);return t}function k(){throw new Error("Generated Schema cannot use Interface or Union types for execution.")}},function(e,t,n){"use strict";e.exports=n(265)},function(e,t,n){"use strict";e.exports.encode=n(266),e.exports.decode=n(267),e.exports.format=n(268),e.exports.parse=n(269)},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\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,u=e.src.charCodeAt(a);if(t)return!1;if(126!==u)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(u),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:u,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=[],u=e.delimiters,l=e.delimiters.length;for(t=0;t<l;t++)126===(r=u[t]).marker&&-1!==r.end&&(i=u[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,u=e.delimiters;for(t=e.delimiters.length-1;t>=0;t--)95!==(n=u[t]).marker&&42!==n.marker||-1!==n.end&&(r=u[n.end],a=t>0&&u[t-1].end===n.end+1&&u[t-1].token===n.token-1&&u[n.end+1].token===r.token+1&&u[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[u[t-1].token].content="",e.tokens[u[n.end+1].token].content="",t--))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var o=void 0,u=void 0;n(4).on(t,"select",function(e,t){if(!o){var n=t.parentNode;(o=document.createElement("div")).className="CodeMirror-hint-information",n.appendChild(o),(u=document.createElement("div")).className="CodeMirror-hint-deprecation",n.appendChild(u);var l=void 0;n.addEventListener("DOMNodeRemoved",l=function(e){e.target===n&&(n.removeEventListener("DOMNodeRemoved",l),o=null,u=null,l=null)})}var s=e.description?a.render(e.description):"Self descriptive.",c=e.type?'<span class="infoType">'+function e(t){if(t instanceof i.GraphQLNonNull)return e(t.ofType)+"!";if(t instanceof i.GraphQLList)return"["+e(t.ofType)+"]";return'<a class="typeName">'+t.name+"</a>"}(e.type)+"</span>":"";if(o.innerHTML='<div class="content">'+("<p>"===s.slice(0,3)?"<p>"+c+s.slice(3):c+s)+"</div>",e.isDeprecated){var f=e.deprecationReason?a.render(e.deprecationReason):"";u.innerHTML='<span class="deprecation-label">Deprecated</span>'+f,u.style.display="block"}else u.style.display="none";r&&r(o)})};var r,i=n(1),o=n(89);var a=new((r=o)&&r.__esModule?r:{default:r}).default},function(e,t,n){(function(e){"use strict";var t="CodeMirror-hint",n="CodeMirror-hint-active";function r(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(t){t=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in c)i[o]=c[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]);i.hint.resolve&&(i.hint=i.hint.resolve(e,t));return i}(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<n.length;i++)if(n[i].head.line!=n[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new r(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}});var i=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function a(e){return"string"==typeof e?e:e.text}function u(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function l(r,i){this.completion=r,this.data=i,this.picked=!1;var o=this,l=r.cm,s=this.hints=document.createElement("ul");s.className="CodeMirror-hints",this.selectedHint=i.selectedHint||0;for(var c=i.list,f=0;f<c.length;++f){var p=s.appendChild(document.createElement("li")),d=c[f],h=t+(f!=this.selectedHint?"":" "+n);null!=d.className&&(h=d.className+" "+h),p.className=h,d.render?d.render(p,i,d):p.appendChild(document.createTextNode(d.displayText||a(d))),p.hintId=f}var m=l.cursorCoords(r.options.alignWithWord?i.from:null),v=m.left,g=m.bottom,y=!0;s.style.left=v+"px",s.style.top=g+"px";var b=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),k=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(r.options.container||document.body).appendChild(s);var w=s.getBoundingClientRect(),_=w.bottom-k,T=s.scrollHeight>s.clientHeight+1,E=l.getScrollInfo();if(_>0){var x=w.bottom-w.top;if(m.top-(m.bottom-w.top)-x>0)s.style.top=(g=m.top-x)+"px",y=!1;else if(x>k){s.style.height=k-5+"px",s.style.top=(g=m.bottom-w.top)+"px";var O=l.getCursor();i.from.ch!=O.ch&&(m=l.cursorCoords(O),s.style.left=(v=m.left)+"px",w=s.getBoundingClientRect())}}var C,S=w.right-b;if(S>0&&(w.right-w.left>b&&(s.style.width=b-5+"px",S-=w.right-w.left-b),s.style.left=(v=m.left-S)+"px"),T)for(var N=s.firstChild;N;N=N.nextSibling)N.style.paddingRight=l.display.nativeBarWidth+"px";(l.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},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 u=e.options.extraKeys;if(u)for(var a in u)u.hasOwnProperty(a)&&o(a,u[a]);return i}(r,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:c.length,close:function(){r.close()},pick:function(){o.pick()},data:i})),r.options.closeOnUnfocus)&&(l.on("blur",this.onBlur=function(){C=setTimeout(function(){r.close()},100)}),l.on("focus",this.onFocus=function(){clearTimeout(C)}));return l.on("scroll",this.onScroll=function(){var e=l.getScrollInfo(),t=l.getWrapperElement().getBoundingClientRect(),n=g+E.top-e.top,i=n-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(y||(i+=s.offsetHeight),i<=t.top||i>=t.bottom)return r.close();s.style.top=n+"px",s.style.left=v+E.left-e.left+"px"}),e.on(s,"dblclick",function(e){var t=u(s,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(s,"click",function(e){var t=u(s,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),r.options.completeOnSingleClick&&o.pick())}),e.on(s,"mousedown",function(){setTimeout(function(){l.focus()},20)}),e.signal(i,"select",c[this.selectedHint],s.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)}}r.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];r.hint?r.hint(this.cm,t,r):this.cm.replaceRange(a(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch<this.startPos.ch||this.cm.somethingSelected()||e.ch&&this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=i(function(){n.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 l(this,t),e.signal(t,"shown")))}},l.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,r){if(t>=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i.className=i.className.replace(" "+n,""),(i=this.hints.childNodes[this.selectedHint=t]).className+=" "+n,i.offsetTop<this.hints.scrollTop?this.hints.scrollTop=i.offsetTop-3:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},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=t.getCursor(),i=t.getTokenAt(r),o=e.Pos(r.line,i.end);if(i.string&&/\w/.test(i.string[i.string.length-1]))var a=i.string,u=e.Pos(r.line,i.start);else a="",u=o;for(var l=[],s=0;s<n.words.length;s++){var c=n.words[s];c.slice(0,a.length)==a&&l.push(c)}if(l.length)return{list:l,from:u,to:o}}),e.commands.autocomplete=e.showHint;var c={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(4))},function(e,t,n){(function(e){var t={pairs:"()[]{}''\"\"",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=u(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return e.Pass;var c=s(t,a[l].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(var l=a.length-1;l>=0;l--){var f=a[l].head;t.replaceRange("",n(f.line,f.ch-1),n(f.line,f.ch+1),"+delete")}},Enter:function(t){var n=u(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 l=s(t,o[a].head);if(!l||i.indexOf(l)%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=u(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),s=a.indexOf(i);if(-1==s)return e.Pass;for(var f,p=r(o,"triples"),d=a.charAt(s+1)==i,h=t.listSelections(),m=s%2==0,v=0;v<h.length;v++){var g,y=h[v],b=y.head,k=t.getRange(b,n(b.line,b.ch+1));if(m&&!y.empty())g="surround";else if(!d&&m||k!=i)if(d&&b.ch>1&&p.indexOf(i)>=0&&t.getRange(n(b.line,b.ch-2),b)==i+i&&(b.ch<=2||t.getRange(n(b.line,b.ch-3),n(b.line,b.ch-2))!=i))g="addFour";else if(d){var w=0==b.ch?" ":t.getRange(n(b.line,b.ch-1),b);if(e.isWordChar(k)||w==i||e.isWordChar(w))return e.Pass;g="both"}else{if(!m||t.getLine(b.line).length!=b.ch&&!l(k,a)&&!/\s/.test(k))return e.Pass;g="both"}else g=d&&c(t,b)?"both":p.indexOf(i)>=0&&t.getRange(b,n(b.line,b.ch+3))==i+i+i?"skipThree":"skip";if(f){if(f!=g)return e.Pass}else f=g}var _=s%2?a.charAt(s-1):i,T=s%2?i:a.charAt(s+1);t.operation(function(){if("skip"==f)t.execCommand("goCharRight");else if("skipThree"==f)for(var r=0;r<3;r++)t.execCommand("goCharRight");else if("surround"==f){for(var i=t.getSelections(),r=0;r<i.length;r++)i[r]=_+i[r]+T;t.replaceSelections(i,"around"),i=t.listSelections().slice();for(var r=0;r<i.length;r++)i[r]=(o=i[r],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"==f?(t.replaceSelection(_+T,null),t.triggerElectric(_+T),t.execCommand("goCharLeft")):"addFour"==f&&(t.replaceSelection(_+_+_+_,"before"),t.execCommand("goCharRight"));var o,a})}(i,t)}}function u(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(e,t){var n=t.lastIndexOf(e);return n>-1&&n%2==1}function s(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(4))},function(e,t,n){(function(e){"use strict";function t(e){return e.state.search||(e.state.search=new function(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null})}function n(e){return"string"==typeof e&&e==e.toLowerCase()}function r(e,t,r){return e.getSearchCursor(t,r,{caseFold:n(t),multiline:!0})}function i(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function o(e){return e.replace(/\\(.)/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":t})}function a(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=o(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}var u='<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>';function l(e,t,r){t.queryText=r,t.query=a(r),e.removeOverlay(t.overlay,n(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,n(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,n(t.query)))}function s(n,r,o,a){var s=t(n);if(s.query)return c(n,r);var p=n.getSelection()||s.lastQuery;if(p instanceof RegExp&&"x^"==p.source&&(p=null),o&&n.openDialog){var d=null,h=function(t,r){e.e_stop(r),t&&(t!=s.queryText&&(l(n,s,t),s.posFrom=s.posTo=n.getCursor()),d&&(d.style.opacity=1),c(n,r.shiftKey,function(e,t){var r;t.line<3&&document.querySelector&&(r=n.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>n.cursorCoords(t,"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(){f(e)},onKeyDown:i})}(n,u,p,h,function(r,i){var o=e.keyName(r),a=n.getOption("extraKeys"),u=a&&a[o]||e.keyMap[n.getOption("keyMap")][o];"findNext"==u||"findPrev"==u||"findPersistentNext"==u||"findPersistentPrev"==u?(e.e_stop(r),l(n,t(n),i),n.execCommand(u)):"find"!=u&&"findPersistent"!=u||(e.e_stop(r),h(i,r))}),a&&p&&(l(n,s,p),c(n,r))}else i(n,u,"Search for:",p,function(e){e&&!s.query&&n.operation(function(){l(n,s,e),s.posFrom=s.posTo=n.getCursor(),c(n,r)})})}function c(n,i,o){n.operation(function(){var a=t(n),u=r(n,a.query,i?a.posFrom:a.posTo);(u.find(i)||(u=r(n,a.query,i?e.Pos(n.lastLine()):e.Pos(n.firstLine(),0))).find(i))&&(n.setSelection(u.from(),u.to()),n.scrollIntoView({from:u.from(),to:u.to()},20),a.posFrom=u.from(),a.posTo=u.to(),o&&o(u.from(),u.to()))})}function f(e){e.operation(function(){var n=t(e);n.lastQuery=n.query,n.query&&(n.query=n.queryText=null,e.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))})}var p=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',d='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',h='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';function m(e,t,n){e.operation(function(){for(var i=r(e,t);i.findNext();)if("string"!=typeof t){var o=e.getRange(i.from(),i.to()).match(t);i.replace(n.replace(/\$(\d)/g,function(e,t){return o[t]}))}else i.replace(n)})}function v(e,n){if(!e.getOption("readOnly")){var u=e.getSelection()||t(e).lastQuery,l='<span class="CodeMirror-search-label">'+(n?"Replace all:":"Replace:")+"</span>";i(e,l+p,l,u,function(t){t&&(t=a(t),i(e,d,"Replace with:","",function(i){if(i=o(i),n)m(e,t,i);else{f(e);var a=r(e,t,e.getCursor("from")),u=function(){var n,o=a.from();!(n=a.findNext())&&(a=r(e,t),!(n=a.findNext())||o&&a.from().line==o.line&&a.from().ch==o.ch)||(e.setSelection(a.from(),a.to()),e.scrollIntoView({from:a.from(),to:a.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,h,"Replace?",[function(){l(n)},u,function(){m(e,t,i)}]))},l=function(e){a.replace("string"==typeof t?i:i.replace(/\$(\d)/g,function(t,n){return e[n]})),u()};u()}}))})}}e.commands.find=function(e){f(e),s(e)},e.commands.findPersistent=function(e){f(e),s(e,!1,!0)},e.commands.findPersistentNext=function(e){s(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){s(e,!0,!0,!0)},e.commands.findNext=s,e.commands.findPrev=function(e){s(e,!0)},e.commands.clearSearch=f,e.commands.replace=v,e.commands.replaceAll=function(e){v(e,!0)}})(n(4),n(40),n(41))},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){var o=function(t,n){var r=document.createElement("div");function i(t){if(!r.parentNode)return e.off(document,"mousemove",i);r.style.top=Math.max(0,t.clientY-r.offsetHeight-5)+"px",r.style.left=t.clientX+5+"px"}return r.className="CodeMirror-lint-tooltip",r.appendChild(n.cloneNode(!0)),document.body.appendChild(r),e.on(document,"mousemove",i),i(t),null!=r.style.opacity&&(r.style.opacity=1),r}(t,r);function a(){var t;e.off(i,"mouseout",a),o&&((t=o).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout(function(){n(t)},600)),o=null)}var u=setInterval(function(){if(o)for(var e=i;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){a();break}}if(!o)return clearInterval(u)},400);e.on(i,"mouseout",a)}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))return;for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,l=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),s=[],c=0;c<l.length;++c){var f=l[c].__annotation;f&&s.push(f)}s.length&&function(e,t){for(var n=t.target||t.srcElement,i=document.createDocumentFragment(),o=0;o<e.length;o++){var a=e[o];i.appendChild(u(a))}r(t,i,n)}(s,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){var a=document.createElement("div"),u=a;return a.className="CodeMirror-lint-marker-"+n,i&&((u=a.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=o&&e.on(u,"mouseover",function(e){r(e,t,u)}),a}function u(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function l(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(){s(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(){s(t,e)})}):t.operation(function(){s(t,o)})}}function s(e,n){o(e);for(var r,i=e.state.lint,l=i.options,s=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),c=0;c<s.length;++c){var f=s[c];if(f){for(var p=null,d=i.hasGutter&&document.createDocumentFragment(),h=0;h<f.length;++h){var m=f[h],v=m.severity;v||(v="error"),p="error"==(r=p)?r:v,l.formatAnnotation&&(m=l.formatAnnotation(m)),i.hasGutter&&d.appendChild(u(m)),m.to&&i.marked.push(e.markText(m.from,m.to,{className:"CodeMirror-lint-mark-"+v,__annotation:m}))}i.hasGutter&&e.setGutterMarker(c,t,a(d,p,f.length>1,i.options.tooltips))}}l.onUpdateLinting&&l.onUpdateLinting(n,s,e)}function c(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){l(e)},t.options.delay||500))}e.defineOption("lint",!1,function(n,r,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",c),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var u=n.getOption("gutters"),s=!1,f=0;f<u.length;++f)u[f]==t&&(s=!0);var p=n.state.lint=new i(n,(d=r)instanceof Function?{getAnnotations:d}:(d&&!0!==d||(d={}),d),s);!1!==p.options.lintOnChange&&n.on("change",c),0!=p.options.tooltips&&"gutter"!=p.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",p.onMouseOver),l(n)}var d}),e.defineExtension("performLint",function(){this.state.lint&&l(this)})})(n(4))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(322);Object.defineProperty(t,"CharacterStream",{enumerable:!0,get:function(){return u(r).default}});var i=n(179);Object.defineProperty(t,"LexRules",{enumerable:!0,get:function(){return i.LexRules}}),Object.defineProperty(t,"ParseRules",{enumerable:!0,get:function(){return i.ParseRules}}),Object.defineProperty(t,"isIgnored",{enumerable:!0,get:function(){return i.isIgnored}});var o=n(180);Object.defineProperty(t,"butNot",{enumerable:!0,get:function(){return o.butNot}}),Object.defineProperty(t,"list",{enumerable:!0,get:function(){return o.list}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return o.opt}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return o.p}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return o.t}});var a=n(323);function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"onlineParser",{enumerable:!0,get:function(){return u(a).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseRules=t.LexRules=t.isIgnored=void 0;var r,i=n(180);t.isIgnored=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e},t.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},t.ParseRules={Document:[(0,i.list)("Definition")],Definition:function(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:[o("query"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],Mutation:[o("mutation"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],Subscription:[o("subscription"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,i.p)("("),(0,i.list)("VariableDefinition"),(0,i.p)(")")],VariableDefinition:["Variable",(0,i.p)(":"),"Type",(0,i.opt)("DefaultValue")],Variable:[(0,i.p)("$","variable"),a("variable")],DefaultValue:[(0,i.p)("="),"Value"],SelectionSet:[(0,i.p)("{"),(0,i.list)("Selection"),(0,i.p)("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[a("property"),(0,i.p)(":"),a("qualifier"),(0,i.opt)("Arguments"),(0,i.list)("Directive"),(0,i.opt)("SelectionSet")],Field:[a("property"),(0,i.opt)("Arguments"),(0,i.list)("Directive"),(0,i.opt)("SelectionSet")],Arguments:[(0,i.p)("("),(0,i.list)("Argument"),(0,i.p)(")")],Argument:[a("attribute"),(0,i.p)(":"),"Value"],FragmentSpread:[(0,i.p)("..."),a("def"),(0,i.list)("Directive")],InlineFragment:[(0,i.p)("..."),(0,i.opt)("TypeCondition"),(0,i.list)("Directive"),"SelectionSet"],FragmentDefinition:[o("fragment"),(0,i.opt)((0,i.butNot)(a("def"),[o("on")])),"TypeCondition",(0,i.list)("Directive"),"SelectionSet"],TypeCondition:[o("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[(0,i.t)("Number","number")],StringValue:[(0,i.t)("String","string")],BooleanValue:[(0,i.t)("Name","builtin")],NullValue:[(0,i.t)("Name","keyword")],EnumValue:[a("string-2")],ListValue:[(0,i.p)("["),(0,i.list)("Value"),(0,i.p)("]")],ObjectValue:[(0,i.p)("{"),(0,i.list)("ObjectField"),(0,i.p)("}")],ObjectField:[a("attribute"),(0,i.p)(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[(0,i.p)("["),"Type",(0,i.p)("]"),(0,i.opt)((0,i.p)("!"))],NonNullType:["NamedType",(0,i.opt)((0,i.p)("!"))],NamedType:[(r="atom",{style:r,match:function(e){return"Name"===e.kind},update:function(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[(0,i.p)("@","meta"),a("meta"),(0,i.opt)("Arguments")],SchemaDef:[o("schema"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("OperationTypeDef"),(0,i.p)("}")],OperationTypeDef:[a("keyword"),(0,i.p)(":"),a("atom")],ScalarDef:[o("scalar"),a("atom"),(0,i.list)("Directive")],ObjectTypeDef:[o("type"),a("atom"),(0,i.opt)("Implements"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("FieldDef"),(0,i.p)("}")],Implements:[o("implements"),(0,i.list)("NamedType")],FieldDef:[a("property"),(0,i.opt)("ArgumentsDef"),(0,i.p)(":"),"Type",(0,i.list)("Directive")],ArgumentsDef:[(0,i.p)("("),(0,i.list)("InputValueDef"),(0,i.p)(")")],InputValueDef:[a("attribute"),(0,i.p)(":"),"Type",(0,i.opt)("DefaultValue"),(0,i.list)("Directive")],InterfaceDef:[o("interface"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("FieldDef"),(0,i.p)("}")],UnionDef:[o("union"),a("atom"),(0,i.list)("Directive"),(0,i.p)("="),(0,i.list)("UnionMember",(0,i.p)("|"))],UnionMember:["NamedType"],EnumDef:[o("enum"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("EnumValueDef"),(0,i.p)("}")],EnumValueDef:[a("string-2"),(0,i.list)("Directive")],InputDef:[o("input"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("InputValueDef"),(0,i.p)("}")],ExtendDef:[o("extend"),"ObjectTypeDef"],DirectiveDef:[o("directive"),(0,i.p)("@","meta"),a("meta"),(0,i.opt)("ArgumentsDef"),o("on"),(0,i.list)("DirectiveLocation",(0,i.p)("|"))],DirectiveLocation:[a("string-2")]};function o(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function a(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opt=function(e){return{ofRule:e}},t.list=function(e,t){return{ofRule:e,isList:!0,separator:t}},t.butNot=function(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every(function(t){return t.match&&!t.match(e)})},e},t.t=function(e,t){return{style:t,match:function(t){return t.kind===e}}},t.p=function(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.offsetToPosition=a,t.locToRange=function(e,t){var n=a(e,t.start),r=a(e,t.end);return new i(n,r)};var i=t.Range=function(){function e(t,n){var i=this;r(this,e),this.containsPosition=function(e){return i.start.line===e.line?i.start.character<=e.character:i.end.line===e.line?i.end.character>=e.character:i.start.line<=e.line&&i.end.line>=e.line},this.start=t,this.end=n}return e.prototype.setStart=function(e,t){this.start=new o(e,t)},e.prototype.setEnd=function(e,t){this.end=new o(e,t)},e}(),o=t.Position=function(){function e(t,n){var i=this;r(this,e),this.lessThanOrEqualTo=function(e){return i.line<e.line||i.line===e.line&&i.character<=e.character},this.line=t,this.character=n}return e.prototype.setLine=function(e){this.line=e},e.prototype.setCharacter=function(e){this.character=e},e}();function a(e,t){var n=e.slice(0,t),r=n.split("\n").length-1,i=n.lastIndexOf("\n");return new o(r,t-i-1)}},function(e,t,n){"use strict";(function(t){function r(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 i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=n(326),a=Object.prototype.hasOwnProperty,u=Array.prototype.slice,l="foo"===function(){}.name;function s(e){return Object.prototype.toString.call(e)}function c(e){return!i(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=g,p=/\s*function\s+([^\(\s]*)\s*/;function d(e){if(o.isFunction(e)){if(l)return e.name;var t=e.toString().match(p);return t&&t[1]}}function h(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function m(e){if(l||!o.isFunction(e))return o.inspect(e);var t=d(e);return"[Function"+(t?": "+t:"")+"]"}function v(e,t,n,r,i){throw new f.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function g(e,t){e||v(e,!0,t,"==",f.ok)}function y(e,t,n,a){if(e===t)return!0;if(i(e)&&i(t))return 0===r(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.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(c(e)&&c(t)&&s(e)===s(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var l=(a=a||{actual:[],expected:[]}).actual.indexOf(e);return-1!==l&&l===a.expected.indexOf(t)||(a.actual.push(e),a.expected.push(t),function(e,t,n,r){if(null===e||void 0===e||null===t||void 0===t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=b(e),a=b(t);if(i&&!a||!i&&a)return!1;if(i)return e=u.call(e),t=u.call(t),y(e,t,n);var l,s,c=_(e),f=_(t);if(c.length!==f.length)return!1;for(c.sort(),f.sort(),s=c.length-1;s>=0;s--)if(c[s]!==f[s])return!1;for(s=c.length-1;s>=0;s--)if(l=c[s],!y(e[l],t[l],n,r))return!1;return!0}(e,t,n,a))}return n?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function k(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 w(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&&v(i,n,"Missing expected exception"+r);var a="string"==typeof r,u=!e&&o.isError(i),l=!e&&i&&!n;if((u&&a&&k(i,n)||l)&&v(i,n,"Got unwanted exception"+r),e&&i&&n&&!k(i,n)||!e&&i)throw i}f.AssertionError=function(e){var t;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=h(m((t=this).actual),128)+" "+t.operator+" "+h(m(t.expected),128),this.generatedMessage=!0);var n=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,o=d(n),a=i.indexOf("\n"+o);if(a>=0){var u=i.indexOf("\n",a+1);i=i.substring(u+1)}this.stack=i}}},o.inherits(f.AssertionError,Error),f.fail=v,f.ok=g,f.equal=function(e,t,n){e!=t&&v(e,t,n,"==",f.equal)},f.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",f.notEqual)},f.deepEqual=function(e,t,n){y(e,t,!1)||v(e,t,n,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,n){y(e,t,!0)||v(e,t,n,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,n){y(e,t,!1)&&v(e,t,n,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function e(t,n,r){y(t,n,!0)&&v(t,n,r,"notDeepStrictEqual",e)},f.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",f.strictEqual)},f.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",f.notStrictEqual)},f.throws=function(e,t,n){w(!0,e,t,n)},f.doesNotThrow=function(e,t,n){w(!1,e,t,n)},f.ifError=function(e){if(e)throw e};var _=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}}).call(t,n(18))},function(e,t,n){var r={".":33,"./":33,"./GraphQLLanguageService":99,"./GraphQLLanguageService.js":99,"./autocompleteUtils":56,"./autocompleteUtils.js":56,"./getAutocompleteSuggestions":57,"./getAutocompleteSuggestions.js":57,"./getDefinition":58,"./getDefinition.js":58,"./getDiagnostics":60,"./getDiagnostics.js":60,"./getOutline":98,"./getOutline.js":98,"./index":33,"./index.js":33};function i(e){return n(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=183},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,u.default)(t,function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?l(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":var r="Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&l(e,n.parentType,t.prevState.name):null;n.argDefs=r&&r.args;break;case"Argument":if(n.argDef=null,n.argDefs)for(var o=0;o<n.argDefs.length;o++)if(n.argDefs[o].name===t.name){n.argDef=n.argDefs[o];break}n.inputType=n.argDef&&n.argDef.type;break;case"EnumValue":var a=(0,i.getNamedType)(n.inputType);n.enumValue=a instanceof i.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}(a.getValues(),function(e){return e.value===t.name}):null;break;case"ListValue":var u=(0,i.getNullableType)(n.inputType);n.inputType=u instanceof i.GraphQLList?u.ofType:null;break;case"ObjectValue":var s=(0,i.getNamedType)(n.inputType);n.objectFieldDefs=s instanceof i.GraphQLInputObjectType?s.getFields():null;break;case"ObjectField":var 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(1),o=n(16),a=n(185),u=(r=a)&&r.__esModule?r:{default:r};function l(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){var n=[],r=e;for(;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}},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(1);function i(e){return"__"===e.name.slice(0,2)}},function(e,t,n){"use strict";var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r};o.default.defineOption("info",!1,function(e,t,n){if(n&&n!==o.default.Init){var r=e.state.info.onMouseOver;o.default.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var i=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);i.onMouseOver=function(e,t){var n=e.state.info,r=t.target||t.srcElement;if("SPAN"!==r.nodeName||void 0!==n.hoverTimeout)return;var i=r.getBoundingClientRect(),a=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(s,a);var u=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(s,a)},l=function t(){o.default.off(document,"mousemove",u),o.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},s=function(){o.default.off(document,"mousemove",u),o.default.off(e.getWrapperElement(),"mouseout",l),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info.options,i=r.render||e.getHelper(n,"info");if(i){var a=e.getTokenAt(n,!0);if(a){var u=i(a,r,e,n);u&&function(e,t,n){var r=document.createElement("div");r.className="CodeMirror-info",r.appendChild(n),document.body.appendChild(r);var i=r.getBoundingClientRect(),a=r.currentStyle||window.getComputedStyle(r),u=i.right-i.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),l=i.bottom-i.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),s=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(s=t.top-l);s<0&&(s=t.bottom);var c=Math.max(0,window.innerWidth-u-15);c>t.left&&(c=t.left);r.style.opacity=1,r.style.top=s+"px",r.style.left=c+"px";var f=void 0,p=function(){clearTimeout(f)},d=function(){clearTimeout(f),f=setTimeout(h,200)},h=function(){o.default.off(r,"mouseover",p),o.default.off(r,"mouseout",d),o.default.off(e.getWrapperElement(),"mouseout",d),r.style.opacity?(r.style.opacity=0,setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r)},600)):r.parentNode&&r.parentNode.removeChild(r)};o.default.on(r,"mouseover",p),o.default.on(r,"mouseout",d),o.default.on(e.getWrapperElement(),"mouseout",d)}(e,t,u)}}}(e,i)};o.default.on(document,"mousemove",u),o.default.on(e.getWrapperElement(),"mouseout",l)}.bind(null,e),o.default.on(e.getWrapperElement(),"mouseover",i.onMouseOver)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseRules=t.LexRules=t.isIgnored=void 0;var r,i=n(189);t.isIgnored=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e},t.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Comment:/^#.*/},t.ParseRules={Document:[(0,i.list)("Definition")],Definition:function(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:[o("query"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],Mutation:[o("mutation"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],Subscription:[o("subscription"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,i.p)("("),(0,i.list)("VariableDefinition"),(0,i.p)(")")],VariableDefinition:["Variable",(0,i.p)(":"),"Type",(0,i.opt)("DefaultValue")],Variable:[(0,i.p)("$","variable"),a("variable")],DefaultValue:[(0,i.p)("="),"Value"],SelectionSet:[(0,i.p)("{"),(0,i.list)("Selection"),(0,i.p)("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[a("property"),(0,i.p)(":"),a("qualifier"),(0,i.opt)("Arguments"),(0,i.list)("Directive"),(0,i.opt)("SelectionSet")],Field:[a("property"),(0,i.opt)("Arguments"),(0,i.list)("Directive"),(0,i.opt)("SelectionSet")],Arguments:[(0,i.p)("("),(0,i.list)("Argument"),(0,i.p)(")")],Argument:[a("attribute"),(0,i.p)(":"),"Value"],FragmentSpread:[(0,i.p)("..."),a("def"),(0,i.list)("Directive")],InlineFragment:[(0,i.p)("..."),(0,i.opt)("TypeCondition"),(0,i.list)("Directive"),"SelectionSet"],FragmentDefinition:[o("fragment"),(0,i.opt)((0,i.butNot)(a("def"),[o("on")])),"TypeCondition",(0,i.list)("Directive"),"SelectionSet"],TypeCondition:[o("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[(0,i.t)("Number","number")],StringValue:[(0,i.t)("String","string")],BooleanValue:[(0,i.t)("Name","builtin")],NullValue:[(0,i.t)("Name","keyword")],EnumValue:[a("string-2")],ListValue:[(0,i.p)("["),(0,i.list)("Value"),(0,i.p)("]")],ObjectValue:[(0,i.p)("{"),(0,i.list)("ObjectField"),(0,i.p)("}")],ObjectField:[a("attribute"),(0,i.p)(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[(0,i.p)("["),"Type",(0,i.p)("]"),(0,i.opt)((0,i.p)("!"))],NonNullType:["NamedType",(0,i.opt)((0,i.p)("!"))],NamedType:[(r="atom",{style:r,match:function(e){return"Name"===e.kind},update:function(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[(0,i.p)("@","meta"),a("meta"),(0,i.opt)("Arguments")],SchemaDef:[o("schema"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("OperationTypeDef"),(0,i.p)("}")],OperationTypeDef:[a("keyword"),(0,i.p)(":"),a("atom")],ScalarDef:[o("scalar"),a("atom"),(0,i.list)("Directive")],ObjectTypeDef:[o("type"),a("atom"),(0,i.opt)("Implements"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("FieldDef"),(0,i.p)("}")],Implements:[o("implements"),(0,i.list)("NamedType")],FieldDef:[a("property"),(0,i.opt)("ArgumentsDef"),(0,i.p)(":"),"Type",(0,i.list)("Directive")],ArgumentsDef:[(0,i.p)("("),(0,i.list)("InputValueDef"),(0,i.p)(")")],InputValueDef:[a("attribute"),(0,i.p)(":"),"Type",(0,i.opt)("DefaultValue"),(0,i.list)("Directive")],InterfaceDef:[o("interface"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("FieldDef"),(0,i.p)("}")],UnionDef:[o("union"),a("atom"),(0,i.list)("Directive"),(0,i.p)("="),(0,i.list)("UnionMember",(0,i.p)("|"))],UnionMember:["NamedType"],EnumDef:[o("enum"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("EnumValueDef"),(0,i.p)("}")],EnumValueDef:[a("string-2"),(0,i.list)("Directive")],InputDef:[o("input"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("InputValueDef"),(0,i.p)("}")],ExtendDef:[o("extend"),"ObjectTypeDef"],DirectiveDef:[o("directive"),(0,i.p)("@","meta"),a("meta"),(0,i.opt)("ArgumentsDef"),o("on"),(0,i.list)("DirectiveLocation",(0,i.p)("|"))],DirectiveLocation:[a("string-2")]};function o(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function a(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opt=function(e){return{ofRule:e}},t.list=function(e,t){return{ofRule:e,isList:!0,separator:t}},t.butNot=function(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every(function(t){return t.match&&!t.match(e)})},e},t.t=function(e,t){return{style:t,match:function(t){return t.kind===e}}},t.p=function(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=a(n(2)),i=a(n(6)),o=n(1);function a(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.field,n=t.type,i=t.defaultValue;return void 0!==i?r.default.createElement("span",null," = ",r.default.createElement("span",{className:"arg-default-value"},(0,o.print)((0,o.astFromValue)(i,n)))):null}u.propTypes={field:i.default.object.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=void 0;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){n=null,t.apply(r,i)},e)}}},function(e,t,n){(function(t){var n=1/0,r=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",u="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,s=u||l||Function("return this")();function c(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var f=Object.prototype,p=f.hasOwnProperty,d=f.toString,h=s.Symbol,m=f.propertyIsEnumerable,v=h?h.isConcatSpreadable:void 0;function g(e){return y(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?d.call(e):"";return t==o||t==a}(e)}(e)}(e)&&p.call(e,"callee")&&(!m.call(e,"callee")||d.call(e)==i)}(e)||!!(v&&e&&e[v])}var y=Array.isArray;e.exports=function(e){return e&&e.length?function e(t,n,r,i,o){var a=-1,u=t.length;for(r||(r=g),o||(o=[]);++a<u;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,i,o):c(o,l):i||(o[o.length]=l)}return o}(e,n):[]}}).call(t,n(18))},function(e,t,n){"use strict";var r=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(369);function a(e,t){return e.request(function(e,t){var n=r({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?e(n):r({},e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return r({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){return i.print(e.query)+"|"+JSON.stringify(e.variables)+"|"+e.operationName}(t)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};t.operationName||(t.operationName="string"!=typeof t.query?o.getOperationName(t.query):"");return t}(function(e){var t=["query","operationName","variables","extensions","context"];if(!e.query)throw new Error("ApolloLink requires a query");for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw new Error("illegal argument: "+i)}return e}(t))))}t.default=function(e){return function(t){var n,o,u=r({},t,{query:i.parse(t.query)});return n=a(e,u),o=!1,new Promise(function(e,t){n.subscribe({next:function(t){o?console.warn("Promise Wrapper does not support multiple results from Observable"):(o=!0,e(t))},error:t})})}},t.execute=a},function(e,t,n){"use strict";t.g=function(e){o(e);var t=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})[0];if(!t)throw new Error("Must contain a mutation definition.");return t},t.a=o,t.h=a,t.i=function(e){var t=a(e);if(!t)throw new Error("GraphQL document is missing an operation");return t},t.j=function(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null},t.e=function(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})},t.k=function(e){var t=a(e);if(!t||"query"!==t.operation)throw new Error("Must contain a query definition.");return t},t.d=function(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');if(e.definitions.length>1)throw new Error("Fragment must have exactly one definition.");var t=e.definitions[0];if("FragmentDefinition"!==t.kind)throw new Error("Must be a fragment definition.");return t},t.f=function(e){var t;o(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw new Error("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.")},t.b=function(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t},t.c=function(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter(function(e){var t=e.defaultValue;return t}).map(function(e){var t=e.variable,n=e.defaultValue,r={};return Object(i.m)(r,t.name,n),r});return r.a.apply(void 0,[{}].concat(t))}return{}},t.l=function(e){var t=new Set;if(e.variableDefinitions)for(var n=0,r=e.variableDefinitions;n<r.length;n++){var i=r[n];t.add(i.variable.name.value)}return t};var r=n(195),i=n(104);function o(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new Error('Schema type definitions not allowed in queries. Found: "'+e.kind+'"');return e});if(t.length>1)throw new Error("Ambiguous GraphQL document: contains "+t.length+" operations")}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}},function(e,t,n){"use strict";t.a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){void 0!==t&&null!==t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}},function(e,t,n){"use strict";t.a=function(e){return function e(t,n){switch(r.call(t)){case"[object Array]":if(n.has(t))return n.get(t);var i=t.slice(0);return n.set(t,i),i.forEach(function(t,r){i[r]=e(t,n)}),i;case"[object Object]":if(n.has(t))return n.get(t);var o=Object.create(Object.getPrototypeOf(t));return n.set(t,o),Object.keys(t).forEach(function(r){o[r]=e(t[r],n)}),o;default:return t}}(e,new Map)};var r=Object.prototype.toString},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)return!0;for(var t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(107);t.default=function(e,t,n,a){var u=a.fieldNodes[0].alias?a.fieldNodes[0].alias.value:a.fieldName,l=o.getErrorsFromParent(e,u);if("OWN"===l.kind)throw i.locatedError(new Error(l.error.message),a.fieldNodes,r.responsePathAsArray(a.path));if(e){var s=e[u];return!s&&e.data&&e.data[u]&&(s=e.data[u]),l.errors&&(s=o.annotateWithChildrenErrors(s,l.errors)),s}return null}},function(e,t,n){"use strict";var r=this&&this.__assign||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},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function u(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,u)}l((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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(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=(i=a.trys).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,u])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),u=n(107);function l(e,t,n,r,i,o,u,l){var c=n.getFields()[r],f=[],h={kind:a.Kind.SELECTION_SET,selections:o.map(function(e){if(e.kind===a.Kind.FIELD){var t=function(e,t,n){var r=e.arguments||[],i=r.map(function(e){return e.name.value}),o=n.args.map(function(e){return e.name}),u=d(o,i),l=d(i,o),s=r.filter(function(e){return-1===l.indexOf(e.name.value)}),c=[],f=u.map(function(e){var t="_"+e;return c.push({arg:e,variable:t}),{kind:a.Kind.ARGUMENT,name:{kind:a.Kind.NAME,value:e},value:{kind:a.Kind.VARIABLE,name:{kind:a.Kind.NAME,value:t}}}});return{selection:{kind:a.Kind.FIELD,alias:null,arguments:s.concat(f),selectionSet:e.selectionSet,name:{kind:a.Kind.NAME,value:t}},variables:c}}(e,r,c),n=t.selection,i=t.variables;return f.push.apply(f,i),n}return e})},m=f.map(function(e){var t=e.arg,n=e.variable,r=c.args.find(function(e){return e.name===t});if(!r)throw new Error("Unexpected missing arg");var i=function e(t){if(t instanceof a.GraphQLNonNull){var n=e(t.ofType);if(n.kind===a.Kind.LIST_TYPE||n.kind===a.Kind.NAMED_TYPE)return{kind:a.Kind.NON_NULL_TYPE,type:n};throw new Error("Incorrent inner non-null type")}return t instanceof a.GraphQLList?{kind:a.Kind.LIST_TYPE,type:e(t.ofType)}:{kind:a.Kind.NAMED_TYPE,name:{kind:a.Kind.NAME,value:t.toString()}}}(r.type);return{kind:a.Kind.VARIABLE_DEFINITION,variable:{kind:a.Kind.VARIABLE,name:{kind:a.Kind.NAME,value:n}},type:i}}),v=function(e,t,n,r,i){var o=[];Object.keys(i).forEach(function(t){var n=i[t],r=n.typeCondition.name.value,a=e.getType(r);a&&o.push(n)});var u=s(e,t,n,r,o),l=u.selectionSet,c=u.usedFragments,f=u.usedVariables,d={};for(;c.length>0;){var h=c.pop();if(!d[h]){var m=i[h];if(!h)throw new Error("Could not find fragment "+h);var v=m.typeCondition.name.value,g=e.getType(v);if(g){var y=s(e,t,g,m.selectionSet,o),b=y.selectionSet,k=y.usedFragments,w=y.usedVariables;c=p(c,k),f=p(f,w),d[h]={kind:a.Kind.FRAGMENT_DEFINITION,name:{kind:a.Kind.NAME,value:h},typeCondition:m.typeCondition,selectionSet:b}}}}var _=Object.keys(d).map(function(e){return d[e]});return{selectionSet:l,fragments:_,usedVariables:f}}(e,t,n,h,u),g=v.selectionSet,y=v.fragments,b=v.usedVariables,k={kind:a.Kind.OPERATION_DEFINITION,operation:i,variableDefinitions:(l||[]).filter(function(e){return-1!==b.indexOf(e.variable.name.value)}).concat(m),selectionSet:g};return{kind:a.Kind.DOCUMENT,definitions:[k].concat(y)}}function s(e,t,n,i,o){var u,l=[],s=[],p=[n];return{selectionSet:a.visit(i,((u={})[a.Kind.FIELD]={enter:function(e){var t=c(p[p.length-1]);if(t instanceof a.GraphQLObjectType||t instanceof a.GraphQLInterfaceType){var n=t.getFields(),r="__typename"===e.name.value?a.TypeNameMetaFieldDef:n[e.name.value];if(!r)return null;p.push(r.type)}else t instanceof a.GraphQLUnionType&&"__typename"===e.name.value&&p.push(a.TypeNameMetaFieldDef.type)},leave:function(){p.pop()}},u[a.Kind.SELECTION_SET]=function(e){var n=c(p[p.length-1]),i=n.name,o=e.selections;if((n instanceof a.GraphQLInterfaceType||n instanceof a.GraphQLUnionType)&&!o.find(function(e){return e.kind===a.Kind.FIELD&&"__typename"===e.name.value})&&(o=o.concat({kind:a.Kind.FIELD,name:{kind:a.Kind.NAME,value:"__typename"}})),t[i]&&o.forEach(function(e){if(e.kind===a.Kind.FIELD){var n=e.name.value,r=t[i][n];r&&(o=o.concat(r))}}),o!==e.selections)return r({},e,{selections:o})},u[a.Kind.FRAGMENT_SPREAD]=function(t){var n=o.filter(function(e){return e.name.value===t.name.value})[0];if(!n)return null;if(n.typeCondition){var r=e.getType(n.typeCondition.name.value);if(!f(c(p[p.length-1]),r))return null}l.push(t.name.value)},u[a.Kind.INLINE_FRAGMENT]={enter:function(t){if(t.typeCondition){var n=e.getType(t.typeCondition.name.value);if(!f(c(p[p.length-1]),n))return null;p.push(n)}},leave:function(t){if(t.typeCondition){if(!e.getType(t.typeCondition.name.value))return null;p.pop()}}},u[a.Kind.VARIABLE]=function(e){s.push(e.name.value)},u)),usedFragments:l,usedVariables:s}}function c(e){for(var t=e;t instanceof a.GraphQLNonNull||t instanceof a.GraphQLList;)t=t.ofType;return t}function f(e,t,n){return void 0===n&&(n=!1),e===t||(e instanceof a.GraphQLInterfaceType&&t instanceof a.GraphQLObjectType?-1!==t.getInterfaces().indexOf(e):e instanceof a.GraphQLInterfaceType&&t instanceof a.GraphQLInterfaceType||(e instanceof a.GraphQLUnionType&&t instanceof a.GraphQLObjectType?-1!==e.getTypes().indexOf(t):e instanceof a.GraphQLObjectType&&!n&&f(t,e,!0)))}function p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},r=[];return e.forEach(function(e){e.forEach(function(e){n[e]||(n[e]=!0,r.push(e))})}),r}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r={};return t.forEach(function(e){e.forEach(function(e){r[e]=!0})}),e.filter(function(e){return!r[e]})}t.default=function(e,t,n,r,s,c,f){return i(this,void 0,void 0,function(){var i,p,d,h,m,v;return o(this,function(o){switch(o.label){case 0:if(!(i="mutation"===n?e.getMutationType():"subscription"===n?e.getSubscriptionType():e.getQueryType()))return[3,3];if(p=l(e,t,i,r,n,f.fieldNodes,f.fragments,f.operation.variableDefinitions),(d=a.validate(e,p)).length>0)throw d;return h=p.definitions.find(function(e){return e.kind===a.Kind.OPERATION_DEFINITION}),m={},h&&h.kind===a.Kind.OPERATION_DEFINITION&&h.variableDefinitions&&h.variableDefinitions.forEach(function(e){var t=e.variable.name.value,n=t;n.startsWith("_")&&(n=n.slice(1));var r=s[n]||s[t]||f.variableValues[t];m[t]=r}),"query"!==n&&"mutation"!==n?[3,2]:[4,a.execute(e,p,f.rootValue,c,m)];case 1:return v=o.sent(),[2,u.checkResultAndHandleErrors(v,f,r)];case 2:if("subscription"===n)return[2,a.subscribe(e,p,f.rootValue,c,m)];o.label=3;case 3:throw new Error("Could not forward to merged schema")}})})},t.createDocument=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BridgeProvider=t.withBridge=t.BridgeConsumer=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=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},o=n(2),a=l(o),u=l(n(6));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.BridgeConsumer=function(e,t){return e.children(t.bridge)};s.contextTypes={bridge:u.default.object.isRequired};t.withBridge=function(e){return function(t){return a.default.createElement(s,null,function(n){return a.default.createElement(e,i({bridge:n},t))})}};var c=t.BridgeProvider=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{key:"getChildContext",value:function(){return{bridge:this.props.bridge}}},{key:"render",value:function(){return o.Children.only(this.props.children)}}]),t}();c.propTypes={bridge:u.default.object.isRequired,children:u.default.element.isRequired},c.childContextTypes={bridge:u.default.object.isRequired}},,,,function(e,t,n){"use strict";var r=n(205),i=(o(r),o(n(119)));function o(e){return e&&e.__esModule?e:{default:e}}(0,r.initDevTools)({connect:function(e){!function(e,t){var n="\n    (function() {\n      var script = document.constructor.prototype.createElement.call(document, 'script');\n      script.src = \""+e+'";\n      document.documentElement.appendChild(script);\n      script.parentNode.removeChild(script);\n    })()\n  ';chrome.devtools.inspectedWindow.eval(n,function(e,n){n&&console.log(n),t(e)})}(chrome.runtime.getURL("dist/backend.js"),function(){var t=chrome.runtime.connect({name:""+chrome.devtools.inspectedWindow.tabId}),n=!1;t.onDisconnect.addListener(function(){n=!0});var r=new i.default({listen:function(e){t.onMessage.addListener(e)},send:function(e){n||t.postMessage(e)}});e(r)})},onReload:function(e){chrome.devtools.network.onNavigated.addListener(e)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initDevTools=t.initApp=void 0;u(n(6));var r=u(n(2)),i=n(65),o=u(n(219)),a=n(200);function u(e){return e&&e.__esModule?e:{default:e}}var l="undefined"!=typeof chrome&&!!chrome.devtools,s=!!l&&"dark"===chrome.devtools.panels.themeName,c=t.initApp=function(e){e.connect(function(e){window.bridge=e,l&&chrome.runtime.sendMessage("apollo-panel-load");var t=r.default.createElement(a.BridgeProvider,{bridge:e},r.default.createElement(o.default,{isChrome:l,bridge:e,theme:s?"dark":"light"}));(0,i.render)(t,document.getElementById("app"))})};t.initDevTools=function(e){c(e),e.onReload(function(){bridge&&bridge.removeAllListeners(),c(e)})}},function(e,t,n){"use strict";var r=n(47),i=n(207),o=n(208);e.exports=function(){function e(e,t,n,r,a,u){u!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,u,l){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,a,u,l],f=0;(s=new Error(t.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(120),i=n(121),o=n(47),a="function"==typeof Symbol&&Symbol.for,u=a?Symbol.for("react.element"):60103,l=a?Symbol.for("react.call"):60104,s=a?Symbol.for("react.return"):60105,c=a?Symbol.for("react.portal"):60106,f=a?Symbol.for("react.fragment"):60107,p="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw(t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.")).name="Invariant Violation",t.framesToPop=1,t}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function m(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||h}function v(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||h}function g(){}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&d("85"),this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var y=v.prototype=new g;function b(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||h}y.constructor=v,r(y,m.prototype),y.isPureReactComponent=!0;var k=b.prototype=new g;k.constructor=b,r(k,m.prototype),k.unstable_isAsyncReactComponent=!0,k.render=function(){return this.props.children};var w={current:null},_=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)_.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:u,type:e,key:o,ref:a,props:i,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var O=/\/+/g,C=[];function S(e,t,n,r){if(C.length){var i=C.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>C.length&&C.push(e)}function L(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var o=!1;if(null===e)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case u:case l:case s:case c:o=!0}}if(o)return n(r,e,""===t?"."+D(e,0):t),1;if(o=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var f=t+D(i=e[a],a);o+=L(i,f,n,r)}else if(null===e||void 0===e?f=null:f="function"==typeof(f=p&&e[p]||e["@@iterator"])?f:null,"function"==typeof f)for(e=f.call(e),a=0;!(i=e.next()).done;)o+=L(i=i.value,f=t+D(i,a++),n,r);else"object"===i&&d("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return o}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function A(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,o.thatReturnsArgument):null!=e&&(x(e)&&(t=i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n,e={$$typeof:u,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function F(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(O,"$&/")+"/"),t=S(t,o,r,i),null==e||L(e,"",I,t),N(t)}var j={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=S(null,null,t,n),null==e||L(e,"",A,t),N(t)},count:function(e){return null==e?0:L(e,"",o.thatReturnsNull,null)},toArray:function(e){var t=[];return F(e,t,null,o.thatReturnsArgument),t},only:function(e){return x(e)||d("143"),e}},Component:m,PureComponent:v,unstable_AsyncComponent:b,Fragment:f,createElement:E,cloneElement:function(e,t,n){var i=r({},e.props),o=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)_.call(t,c)&&!T.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:u,type:e.type,key:o,ref:a,props:i,_owner:l}},createFactory:function(e){var t=E.bind(null,e);return t.type=e,t},isValidElement:x,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:w,assign:r}},M=Object.freeze({default:j}),P=M&&j||M;e.exports=P.default?P.default:P},function(e,t,n){"use strict";var r=n(2),i=n(211),o=n(120),a=n(47),u=n(212),l=n(213),s=n(214),c=n(215),f=n(218),p=n(121);function d(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw(t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.")).name="Invariant Violation",t.framesToPop=1,t}r||d("227");var h={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0};function m(e,t){return(e&t)===t}var v={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=v,n=e.Properties||{},r=e.DOMAttributeNamespaces||{},i=e.DOMAttributeNames||{};for(var o in e=e.DOMMutationMethods||{},n){g.hasOwnProperty(o)&&d("48",o);var a=o.toLowerCase(),u=n[o];1>=(a={attributeName:a,attributeNamespace:null,propertyName:o,mutationMethod:null,mustUseProperty:m(u,t.MUST_USE_PROPERTY),hasBooleanValue:m(u,t.HAS_BOOLEAN_VALUE),hasNumericValue:m(u,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:m(u,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:m(u,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:m(u,t.HAS_STRING_BOOLEAN_VALUE)}).hasBooleanValue+a.hasNumericValue+a.hasOverloadedBooleanValue||d("50",o),i.hasOwnProperty(o)&&(a.attributeName=i[o]),r.hasOwnProperty(o)&&(a.attributeNamespace=r[o]),e.hasOwnProperty(o)&&(a.mutationMethod=e[o]),g[o]=a}}},g={};function y(e,t){if(h.hasOwnProperty(e)||2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return h.hasOwnProperty(e)?e=!0:(t=b(e))?e=t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:e="data-"===(e=e.toLowerCase().slice(0,5))||"aria-"===e,e;case"undefined":case"number":case"string":case"object":return!0;default:return!1}}function b(e){return g.hasOwnProperty(e)?g[e]:null}var k=v,w=k.MUST_USE_PROPERTY,_=k.HAS_BOOLEAN_VALUE,T=k.HAS_NUMERIC_VALUE,E=k.HAS_POSITIVE_NUMERIC_VALUE,x=k.HAS_OVERLOADED_BOOLEAN_VALUE,O=k.HAS_STRING_BOOLEAN_VALUE,C={Properties:{allowFullScreen:_,async:_,autoFocus:_,autoPlay:_,capture:x,checked:w|_,cols:E,contentEditable:O,controls:_,default:_,defer:_,disabled:_,download:x,draggable:O,formNoValidate:_,hidden:_,loop:_,multiple:w|_,muted:w|_,noValidate:_,open:_,playsInline:_,readOnly:_,required:_,reversed:_,rows:E,rowSpan:T,scoped:_,seamless:_,selected:w|_,size:E,start:T,span:E,spellCheck:O,style:0,tabIndex:0,itemScope:_,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:O},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},S=k.HAS_STRING_BOOLEAN_VALUE,N="http://www.w3.org/1999/xlink",L="http://www.w3.org/XML/1998/namespace",D={Properties:{autoReverse:S,externalResourcesRequired:S,preserveAlpha:S},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:N,xlinkArcrole:N,xlinkHref:N,xlinkRole:N,xlinkShow:N,xlinkTitle:N,xlinkType:N,xmlBase:L,xmlLang:L,xmlSpace:L}},A=/[\-\:]([a-z])/g;function I(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(A,I);D.Properties[t]=0,D.DOMAttributeNames[t]=e}),k.injectDOMPropertyConfig(C),k.injectDOMPropertyConfig(D);var F={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback&&d("197"),j=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,i,o,a,u,l){j.apply(F,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,i,o,a,u,l){if(F.invokeGuardedCallback.apply(this,arguments),F.hasCaughtError()){var s=F.clearCaughtError();F._hasRethrowError||(F._hasRethrowError=!0,F._rethrowError=s)}},rethrowCaughtError:function(){return function(){if(F._hasRethrowError){var e=F._rethrowError;throw F._rethrowError=null,F._hasRethrowError=!1,e}}.apply(F,arguments)},hasCaughtError:function(){return F._hasCaughtError},clearCaughtError:function(){if(F._hasCaughtError){var e=F._caughtError;return F._caughtError=null,F._hasCaughtError=!1,e}d("198")}};function j(e,t,n,r,i,o,a,u,l){F._hasCaughtError=!1,F._caughtError=null;var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){F._caughtError=e,F._hasCaughtError=!0}}var M=null,P={};function R(){if(M)for(var e in P){var t=P[e],n=M.indexOf(e);if(-1<n||d("96",e),!Q[n])for(var r in t.extractEvents||d("97",e),Q[n]=t,n=t.eventTypes){var i=void 0,o=n[r],a=t,u=r;G.hasOwnProperty(u)&&d("99",u),G[u]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&V(l[i],a,u);i=!0}else o.registrationName?(V(o.registrationName,a,u),i=!0):i=!1;i||d("98",r,e)}}}function V(e,t,n){q[e]&&d("100",e),q[e]=t,U[e]=t.eventTypes[n].dependencies}var Q=[],G={},q={},U={};function B(e){M&&d("101"),M=Array.prototype.slice.call(e),R()}function z(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];P.hasOwnProperty(t)&&P[t]===r||(P[t]&&d("102",t),P[t]=r,n=!0)}n&&R()}var H=Object.freeze({plugins:Q,eventNameDispatchConfigs:G,registrationNameModules:q,registrationNameDependencies:U,possibleRegistrationNames:null,injectEventPluginOrder:B,injectEventPluginsByName:z}),K=null,W=null,Y=null;function J(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=Y(r),F.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function $(e,t){return null==t&&d("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function Z(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var X=null;function ee(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var i=0;i<n.length&&!e.isPropagationStopped();i++)J(e,t,n[i],r[i]);else n&&J(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function te(e){return ee(e,!0)}function ne(e){return ee(e,!1)}var re={injectEventPluginOrder:B,injectEventPluginsByName:z};function ie(e,t){var n=e.stateNode;if(!n)return null;var r=K(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&d("231",t,typeof n),n)}function oe(e,t,n,r){for(var i,o=0;o<Q.length;o++){var a=Q[o];a&&(a=a.extractEvents(e,t,n,r))&&(i=$(i,a))}return i}function ae(e){e&&(X=$(X,e))}function ue(e){var t=X;X=null,t&&(Z(t,e?te:ne),X&&d("95"),F.rethrowCaughtError())}var le=Object.freeze({injection:re,getListener:ie,extractEvents:oe,enqueueEvents:ae,processEventQueue:ue}),se=Math.random().toString(36).slice(2),ce="__reactInternalInstance$"+se,fe="__reactEventHandlers$"+se;function pe(e){if(e[ce])return e[ce];for(var t=[];!e[ce];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=void 0,r=e[ce];if(5===r.tag||6===r.tag)return r;for(;e&&(r=e[ce]);e=t.pop())n=r;return n}function de(e){if(5===e.tag||6===e.tag)return e.stateNode;d("33")}function he(e){return e[fe]||null}var me=Object.freeze({precacheFiberNode:function(e,t){t[ce]=e},getClosestInstanceFromNode:pe,getInstanceFromNode:function(e){return!(e=e[ce])||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:de,getFiberCurrentPropsFromNode:he,updateFiberProps:function(e,t){e[fe]=t}});function ve(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function ge(e,t,n){for(var r=[];e;)r.push(e),e=ve(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function ye(e,t,n){(t=ie(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=$(n._dispatchListeners,t),n._dispatchInstances=$(n._dispatchInstances,e))}function be(e){e&&e.dispatchConfig.phasedRegistrationNames&&ge(e._targetInst,ye,e)}function ke(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;ge(t=t?ve(t):null,ye,e)}}function we(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=ie(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=$(n._dispatchListeners,t),n._dispatchInstances=$(n._dispatchInstances,e))}function _e(e){e&&e.dispatchConfig.registrationName&&we(e._targetInst,null,e)}function Te(e){Z(e,be)}function Ee(e,t,n,r){if(n&&r)e:{for(var i=n,o=r,a=0,u=i;u;u=ve(u))a++;u=0;for(var l=o;l;l=ve(l))u++;for(;0<a-u;)i=ve(i),a--;for(;0<u-a;)o=ve(o),u--;for(;a--;){if(i===o||i===o.alternate)break e;i=ve(i),o=ve(o)}i=null}else i=null;for(o=i,i=[];n&&n!==o&&(null===(a=n.alternate)||a!==o);)i.push(n),n=ve(n);for(n=[];r&&r!==o&&(null===(a=r.alternate)||a!==o);)n.push(r),r=ve(r);for(r=0;r<i.length;r++)we(i[r],"bubbled",e);for(e=n.length;0<e--;)we(n[e],"captured",t)}var xe=Object.freeze({accumulateTwoPhaseDispatches:Te,accumulateTwoPhaseDispatchesSkipTarget:function(e){Z(e,ke)},accumulateEnterLeaveDispatches:Ee,accumulateDirectDispatches:function(e){Z(e,_e)}}),Oe=null;function Ce(){return!Oe&&i.canUseDOM&&(Oe="textContent"in document.documentElement?"textContent":"innerText"),Oe}var Se={_root:null,_startText:null,_fallbackText:null};function Ne(){if(Se._fallbackText)return Se._fallbackText;var e,t,n=Se._startText,r=n.length,i=Le(),o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Se._fallbackText=i.slice(e,1<t?1-t:void 0),Se._fallbackText}function Le(){return"value"in Se._root?Se._root.value:Se._root[Ce()]}var De="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),Ae={type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function Ie(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?a.thatReturnsTrue:a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse,this}function Fe(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function je(e){e instanceof this||d("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Me(e){e.eventPool=[],e.getPooled=Fe,e.release=je}function Pe(e,t,n,r){return Ie.call(this,e,t,n,r)}function Re(e,t,n,r){return Ie.call(this,e,t,n,r)}o(Ie.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<De.length;t++)this[De[t]]=null}}),Ie.Interface=Ae,Ie.augmentClass=function(e,t){function n(){}n.prototype=this.prototype;var r=new n;o(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=o({},this.Interface,t),e.augmentClass=this.augmentClass,Me(e)},Me(Ie),Ie.augmentClass(Pe,{data:null}),Ie.augmentClass(Re,{data:null});var Ve,Qe=[9,13,27,32],Ge=i.canUseDOM&&"CompositionEvent"in window,qe=null;if(i.canUseDOM&&"documentMode"in document&&(qe=document.documentMode),Ve=i.canUseDOM&&"TextEvent"in window&&!qe){var Ue=window.opera;Ve=!("object"==typeof Ue&&"function"==typeof Ue.version&&12>=parseInt(Ue.version(),10))}var Be=Ve,ze=i.canUseDOM&&(!Ge||qe&&8<qe&&11>=qe),He=String.fromCharCode(32),Ke={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},We=!1;function Ye(e,t){switch(e){case"topKeyUp":return-1!==Qe.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function Je(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $e=!1;var Ze={eventTypes:Ke,extractEvents:function(e,t,n,r){var i;if(Ge)e:{switch(e){case"topCompositionStart":var o=Ke.compositionStart;break e;case"topCompositionEnd":o=Ke.compositionEnd;break e;case"topCompositionUpdate":o=Ke.compositionUpdate;break e}o=void 0}else $e?Ye(e,n)&&(o=Ke.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(o=Ke.compositionStart);return o?(ze&&($e||o!==Ke.compositionStart?o===Ke.compositionEnd&&$e&&(i=Ne()):(Se._root=r,Se._startText=Le(),$e=!0)),o=Pe.getPooled(o,t,n,r),i?o.data=i:null!==(i=Je(n))&&(o.data=i),Te(o),i=o):i=null,(e=Be?function(e,t){switch(e){case"topCompositionEnd":return Je(t);case"topKeyPress":return 32!==t.which?null:(We=!0,He);case"topTextInput":return(e=t.data)===He&&We?null:e;default:return null}}(e,n):function(e,t){if($e)return"topCompositionEnd"===e||!Ge&&Ye(e,t)?(e=Ne(),Se._root=null,Se._startText=null,Se._fallbackText=null,$e=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"topCompositionEnd":return ze?null:t.data;default:return null}}(e,n))?((t=Re.getPooled(Ke.beforeInput,t,n,r)).data=e,Te(t)):t=null,[i,t]}},Xe=null,et=null,tt=null;function nt(e){if(e=W(e)){Xe&&"function"==typeof Xe.restoreControlledState||d("194");var t=K(e.stateNode);Xe.restoreControlledState(e.stateNode,e.type,t)}}var rt={injectFiberControlledHostComponent:function(e){Xe=e}};function it(e){et?tt?tt.push(e):tt=[e]:et=e}function ot(){if(et){var e=et,t=tt;if(tt=et=null,nt(e),t)for(e=0;e<t.length;e++)nt(t[e])}}var at=Object.freeze({injection:rt,enqueueStateRestore:it,restoreStateIfNeeded:ot});function ut(e,t){return e(t)}var lt=!1;function st(e,t){if(lt)return ut(e,t);lt=!0;try{return ut(e,t)}finally{lt=!1,ot()}}var ct,ft={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ft[e.type]:"textarea"===t}function dt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ht(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n=(t="on"+e)in document;return n||((n=document.createElement("div")).setAttribute(t,"return;"),n="function"==typeof n[t]),!n&&ct&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}function mt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function vt(e){e._valueTracker||(e._valueTracker=function(e){var t=mt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"==typeof n.get&&"function"==typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}(e))}function gt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}i.canUseDOM&&(ct=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var yt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}};function bt(e,t,n){return(e=Ie.getPooled(yt.change,e,t,n)).type="change",it(n),Te(e),e}var kt=null,wt=null;function _t(e){ae(e),ue(!1)}function Tt(e){if(gt(de(e)))return e}function Et(e,t){if("topChange"===e)return t}var xt=!1;function Ot(){kt&&(kt.detachEvent("onpropertychange",Ct),wt=kt=null)}function Ct(e){"value"===e.propertyName&&Tt(wt)&&st(_t,e=bt(wt,e,dt(e)))}function St(e,t,n){"topFocus"===e?(Ot(),wt=n,(kt=t).attachEvent("onpropertychange",Ct)):"topBlur"===e&&Ot()}function Nt(e){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return Tt(wt)}function Lt(e,t){if("topClick"===e)return Tt(t)}function Dt(e,t){if("topInput"===e||"topChange"===e)return Tt(t)}i.canUseDOM&&(xt=ht("input")&&(!document.documentMode||9<document.documentMode));var At={eventTypes:yt,_isInputEventSupported:xt,extractEvents:function(e,t,n,r){var i=t?de(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=Et;else if(pt(i))if(xt)a=Dt;else{a=Nt;var u=St}else!(o=i.nodeName)||"input"!==o.toLowerCase()||"checkbox"!==i.type&&"radio"!==i.type||(a=Lt);if(a&&(a=a(e,t)))return bt(a,n,r);u&&u(e,i,t),"topBlur"===e&&null!=t&&(e=t._wrapperState||i._wrapperState)&&e.controlled&&"number"===i.type&&(e=""+i.value,i.getAttribute("value")!==e&&i.setAttribute("value",e))}};function It(e,t,n,r){return Ie.call(this,e,t,n,r)}Ie.augmentClass(It,{view:null,detail:null});var Ft={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ft[e])&&!!t[e]}function Mt(){return jt}function Pt(e,t,n,r){return Ie.call(this,e,t,n,r)}It.augmentClass(Pt,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Mt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}});var Rt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Vt={eventTypes:Rt,extractEvents:function(e,t,n,r){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement)||"topMouseOut"!==e&&"topMouseOver"!==e)return null;var i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window;if("topMouseOut"===e?(e=t,t=(t=n.relatedTarget||n.toElement)?pe(t):null):e=null,e===t)return null;var o=null==e?i:de(e);i=null==t?i:de(t);var a=Pt.getPooled(Rt.mouseLeave,e,n,r);return a.type="mouseleave",a.target=o,a.relatedTarget=i,(n=Pt.getPooled(Rt.mouseEnter,t,n,r)).type="mouseenter",n.target=i,n.relatedTarget=o,Ee(a,n,e,t),[a,n]}},Qt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;function Gt(e){return"string"==typeof(e=e.type)?e:"function"==typeof e?e.displayName||e.name:null}function qt(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function Ut(e){return!!(e=e._reactInternalFiber)&&2===qt(e)}function Bt(e){2!==qt(e)&&d("188")}function zt(e){var t=e.alternate;if(!t)return 3===(t=qt(e))&&d("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var a=i.child;a;){if(a===n)return Bt(i),e;if(a===r)return Bt(i),t;a=a.sibling}d("188")}if(n.return!==r.return)n=i,r=o;else{a=!1;for(var u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}a||d("189")}}n.alternate!==r&&d("190")}return 3!==n.tag&&d("188"),n.stateNode.current===n?e:t}var Ht=[];function Kt(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=pe(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],Yt(e.topLevelType,t,e.nativeEvent,dt(e.nativeEvent))}var Wt=!0,Yt=void 0;function Jt(e){Wt=!!e}function $t(e,t,n){return n?u.listen(n,t,Xt.bind(null,e)):null}function Zt(e,t,n){return n?u.capture(n,t,Xt.bind(null,e)):null}function Xt(e,t){if(Wt){var n=dt(t);if(null===(n=pe(n))||"number"!=typeof n.tag||2===qt(n)||(n=null),Ht.length){var r=Ht.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{st(Kt,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Ht.length&&Ht.push(e)}}}var en=Object.freeze({get _enabled(){return Wt},get _handleTopLevel(){return Yt},setHandleTopLevel:function(e){Yt=e},setEnabled:Jt,isEnabled:function(){return Wt},trapBubbledEvent:$t,trapCapturedEvent:Zt,dispatchEvent:Xt});function tn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var nn={animationend:tn("Animation","AnimationEnd"),animationiteration:tn("Animation","AnimationIteration"),animationstart:tn("Animation","AnimationStart"),transitionend:tn("Transition","TransitionEnd")},rn={},on={};function an(e){if(rn[e])return rn[e];if(!nn[e])return e;var t,n=nn[e];for(t in n)if(n.hasOwnProperty(t)&&t in on)return rn[e]=n[t];return""}i.canUseDOM&&(on=document.createElement("div").style,"AnimationEvent"in window||(delete nn.animationend.animation,delete nn.animationiteration.animation,delete nn.animationstart.animation),"TransitionEvent"in window||delete nn.transitionend.transition);var un={topAbort:"abort",topAnimationEnd:an("animationend")||"animationend",topAnimationIteration:an("animationiteration")||"animationiteration",topAnimationStart:an("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:an("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},ln={},sn=0,cn="_reactListenersID"+(""+Math.random()).slice(2);function fn(e){return Object.prototype.hasOwnProperty.call(e,cn)||(e[cn]=sn++,ln[e[cn]]={}),ln[e[cn]]}function pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=pn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pn(r)}}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}var mn=i.canUseDOM&&"documentMode"in document&&11>=document.documentMode,vn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},gn=null,yn=null,bn=null,kn=!1;function wn(e,t){if(kn||null==gn||gn!==l())return null;var n=gn;return"selectionStart"in n&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?n={anchorNode:(n=window.getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}:n=void 0,bn&&s(bn,n)?null:(bn=n,(e=Ie.getPooled(vn.select,yn,e,t)).type="select",e.target=gn,Te(e),e)}var _n={eventTypes:vn,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=fn(o),i=U.onSelect;for(var a=0;a<i.length;a++){var u=i[a];if(!o.hasOwnProperty(u)||!o[u]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?de(t):window,e){case"topFocus":(pt(o)||"true"===o.contentEditable)&&(gn=o,yn=t,bn=null);break;case"topBlur":bn=yn=gn=null;break;case"topMouseDown":kn=!0;break;case"topContextMenu":case"topMouseUp":return kn=!1,wn(n,r);case"topSelectionChange":if(mn)break;case"topKeyDown":case"topKeyUp":return wn(n,r)}return null}};function Tn(e,t,n,r){return Ie.call(this,e,t,n,r)}function En(e,t,n,r){return Ie.call(this,e,t,n,r)}function xn(e,t,n,r){return Ie.call(this,e,t,n,r)}function On(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}Ie.augmentClass(Tn,{animationName:null,elapsedTime:null,pseudoElement:null}),Ie.augmentClass(En,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),It.augmentClass(xn,{relatedTarget:null});var Cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function Nn(e,t,n,r){return Ie.call(this,e,t,n,r)}function Ln(e,t,n,r){return Ie.call(this,e,t,n,r)}function Dn(e,t,n,r){return Ie.call(this,e,t,n,r)}function An(e,t,n,r){return Ie.call(this,e,t,n,r)}function In(e,t,n,r){return Ie.call(this,e,t,n,r)}It.augmentClass(Nn,{key:function(e){if(e.key){var t=Cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=On(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Mt,charCode:function(e){return"keypress"===e.type?On(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?On(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pt.augmentClass(Ln,{dataTransfer:null}),It.augmentClass(Dn,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Mt}),Ie.augmentClass(An,{propertyName:null,elapsedTime:null,pseudoElement:null}),Pt.augmentClass(In,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var Fn={},jn={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t="top"+t]},Fn[e]=n,jn[t]=n});var Mn={eventTypes:Fn,extractEvents:function(e,t,n,r){var i=jn[e];if(!i)return null;switch(e){case"topKeyPress":if(0===On(n))return null;case"topKeyDown":case"topKeyUp":e=Nn;break;case"topBlur":case"topFocus":e=xn;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":e=Pt;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":e=Ln;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":e=Dn;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":e=Tn;break;case"topTransitionEnd":e=An;break;case"topScroll":e=It;break;case"topWheel":e=In;break;case"topCopy":case"topCut":case"topPaste":e=En;break;default:e=Ie}return Te(t=e.getPooled(i,t,n,r)),t}};Yt=function(e,t,n,r){ae(e=oe(e,t,n,r)),ue(!1)},re.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),K=me.getFiberCurrentPropsFromNode,W=me.getInstanceFromNode,Y=me.getNodeFromInstance,re.injectEventPluginsByName({SimpleEventPlugin:Mn,EnterLeaveEventPlugin:Vt,ChangeEventPlugin:At,SelectEventPlugin:_n,BeforeInputEventPlugin:Ze});var Pn=[],Rn=-1;function Vn(e){0>Rn||(e.current=Pn[Rn],Pn[Rn]=null,Rn--)}function Qn(e,t){Pn[++Rn]=e.current,e.current=t}new Set;var Gn={current:p},qn={current:!1},Un=p;function Bn(e){return Hn(e)?Un:Gn.current}function zn(e,t){var n=e.type.contextTypes;if(!n)return p;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Hn(e){return 2===e.tag&&null!=e.type.childContextTypes}function Kn(e){Hn(e)&&(Vn(qn),Vn(Gn))}function Wn(e,t,n){null!=Gn.cursor&&d("168"),Qn(Gn,t),Qn(qn,n)}function Yn(e,t){var n=e.stateNode,r=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;for(var i in n=n.getChildContext())i in r||d("108",Gt(e)||"Unknown",i);return o({},t,n)}function Jn(e){if(!Hn(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||p,Un=Gn.current,Qn(Gn,t),Qn(qn,qn.current),!0}function $n(e,t){var n=e.stateNode;if(n||d("169"),t){var r=Yn(e,Un);n.__reactInternalMemoizedMergedChildContext=r,Vn(qn),Vn(Gn),Qn(Gn,r)}else Vn(qn);Qn(qn,t)}function Zn(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function Xn(e,t,n){var r=e.alternate;return null===r?((r=new Zn(e.tag,e.key,e.internalContextTag)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=t,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function er(e,t,n){var r=void 0,i=e.type,o=e.key;return"function"==typeof i?((r=i.prototype&&i.prototype.isReactComponent?new Zn(2,o,t):new Zn(0,o,t)).type=i,r.pendingProps=e.props):"string"==typeof i?((r=new Zn(5,o,t)).type=i,r.pendingProps=e.props):"object"==typeof i&&null!==i&&"number"==typeof i.tag?(r=i).pendingProps=e.props:d("130",null==i?i:typeof i,""),r.expirationTime=n,r}function tr(e,t,n,r){return(t=new Zn(10,r,t)).pendingProps=e,t.expirationTime=n,t}function nr(e,t,n){return(t=new Zn(6,null,t)).pendingProps=e,t.expirationTime=n,t}function rr(e,t,n){return(t=new Zn(7,e.key,t)).type=e.handler,t.pendingProps=e,t.expirationTime=n,t}function ir(e,t,n){return(e=new Zn(9,null,t)).expirationTime=n,e}function or(e,t,n){return(t=new Zn(4,e.key,t)).pendingProps=e.children||[],t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ar=null,ur=null;function lr(e){return function(t){try{return e(t)}catch(e){}}}function sr(e){"function"==typeof ar&&ar(e)}function cr(e){"function"==typeof ur&&ur(e)}function fr(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function pr(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function dr(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=fr(null)),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=fr(null)):e=null,null===(e=e!==r?e:null)?pr(r,t):null===r.last||null===e.last?(pr(r,t),pr(e,t)):(pr(r,t),e.last=t)}function hr(e,t,n,r){return"function"==typeof(e=e.partialState)?e.call(t,n,r):e}function mr(e,t,n,r,i,a){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var u=!0,l=n.first,s=!1;null!==l;){var c=l.expirationTime;if(c>a){var f=n.expirationTime;(0===f||f>c)&&(n.expirationTime=c),s||(s=!0,n.baseState=e)}else s||(n.first=l.next,null===n.first&&(n.last=null)),l.isReplace?(e=hr(l,r,e,i),u=!0):(c=hr(l,r,e,i))&&(e=u?o({},e,c):o(e,c),u=!1),l.isForced&&(n.hasForceUpdate=!0),null!==l.callback&&(null===(c=n.callbackList)&&(c=n.callbackList=[]),c.push(l));l=l.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||(t.updateQueue=null),s||(n.baseState=e),e}function vr(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;e<n.length;e++){var r=n[e],i=r.callback;r.callback=null,"function"!=typeof i&&d("191",i),i.call(t)}}var gr="function"==typeof Symbol&&Symbol.for,yr=gr?Symbol.for("react.element"):60103,br=gr?Symbol.for("react.call"):60104,kr=gr?Symbol.for("react.return"):60105,wr=gr?Symbol.for("react.portal"):60106,_r=gr?Symbol.for("react.fragment"):60107,Tr="function"==typeof Symbol&&Symbol.iterator;function Er(e){return null===e||void 0===e?null:"function"==typeof(e=Tr&&e[Tr]||e["@@iterator"])?e:null}var xr=Array.isArray;function Or(e,t){var n=t.ref;if(null!==n&&"function"!=typeof n){if(t._owner){var r=void 0;(t=t._owner)&&(2!==t.tag&&d("110"),r=t.stateNode),r||d("147",n);var i=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===i?e.ref:((e=function(e){var t=r.refs===p?r.refs={}:r.refs;null===e?delete t[i]:t[i]=e})._stringRef=i,e)}"string"!=typeof n&&d("148"),t._owner||d("149",n)}return n}function Cr(e,t){"textarea"!==e.type&&d("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Sr(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return(e=Xn(e,t,n)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=nr(n,e.internalContextTag,r)).return=e,t):((t=i(t,n,r)).return=e,t)}function l(e,t,n,r){return null!==t&&t.type===n.type?((r=i(t,n.props,r)).ref=Or(t,n),r.return=e,r):((r=er(n,e.internalContextTag,r)).ref=Or(t,n),r.return=e,r)}function s(e,t,n,r){return null===t||7!==t.tag?((t=rr(n,e.internalContextTag,r)).return=e,t):((t=i(t,n,r)).return=e,t)}function c(e,t,n,r){return null===t||9!==t.tag?((t=ir(n,e.internalContextTag,r)).type=n.value,t.return=e,t):((t=i(t,null,r)).type=n.value,t.return=e,t)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=or(n,e.internalContextTag,r)).return=e,t):((t=i(t,n.children||[],r)).return=e,t)}function p(e,t,n,r,o){return null===t||10!==t.tag?((t=tr(n,e.internalContextTag,r,o)).return=e,t):((t=i(t,n,r)).return=e,t)}function h(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=nr(""+t,e.internalContextTag,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case yr:return t.type===_r?((t=tr(t.props.children,e.internalContextTag,n,t.key)).return=e,t):((n=er(t,e.internalContextTag,n)).ref=Or(null,t),n.return=e,n);case br:return(t=rr(t,e.internalContextTag,n)).return=e,t;case kr:return(n=ir(t,e.internalContextTag,n)).type=t.value,n.return=e,n;case wr:return(t=or(t,e.internalContextTag,n)).return=e,t}if(xr(t)||Er(t))return(t=tr(t,e.internalContextTag,n,null)).return=e,t;Cr(e,t)}return null}function m(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case yr:return n.key===i?n.type===_r?p(e,t,n.props.children,r,i):l(e,t,n,r):null;case br:return n.key===i?s(e,t,n,r):null;case kr:return null===i?c(e,t,n,r):null;case wr:return n.key===i?f(e,t,n,r):null}if(xr(n)||Er(n))return null!==i?null:p(e,t,n,r,null);Cr(e,n)}return null}function v(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case yr:return e=e.get(null===r.key?n:r.key)||null,r.type===_r?p(t,e,r.props.children,i,r.key):l(t,e,r,i);case br:return s(t,e=e.get(null===r.key?n:r.key)||null,r,i);case kr:return c(t,e=e.get(n)||null,r,i);case wr:return f(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(xr(r)||Er(r))return p(t,e=e.get(n)||null,r,i,null);Cr(t,r)}return null}function g(i,a,u,l){for(var s=null,c=null,f=a,p=a=0,d=null;null!==f&&p<u.length;p++){f.index>p?(d=f,f=null):d=f.sibling;var g=m(i,f,u[p],l);if(null===g){null===f&&(f=d);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,p),null===c?s=g:c.sibling=g,c=g,f=d}if(p===u.length)return n(i,f),s;if(null===f){for(;p<u.length;p++)(f=h(i,u[p],l))&&(a=o(f,a,p),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(i,f);p<u.length;p++)(d=v(f,i,p,u[p],l))&&(e&&null!==d.alternate&&f.delete(null===d.key?p:d.key),a=o(d,a,p),null===c?s=d:c.sibling=d,c=d);return e&&f.forEach(function(e){return t(i,e)}),s}function y(i,a,u,l){var s=Er(u);"function"!=typeof s&&d("150"),null==(u=s.call(u))&&d("151");for(var c=s=null,f=a,p=a=0,g=null,y=u.next();null!==f&&!y.done;p++,y=u.next()){f.index>p?(g=f,f=null):g=f.sibling;var b=m(i,f,y.value,l);if(null===b){f||(f=g);break}e&&f&&null===b.alternate&&t(i,f),a=o(b,a,p),null===c?s=b:c.sibling=b,c=b,f=g}if(y.done)return n(i,f),s;if(null===f){for(;!y.done;p++,y=u.next())null!==(y=h(i,y.value,l))&&(a=o(y,a,p),null===c?s=y:c.sibling=y,c=y);return s}for(f=r(i,f);!y.done;p++,y=u.next())null!==(y=v(f,i,p,y.value,l))&&(e&&null!==y.alternate&&f.delete(null===y.key?p:y.key),a=o(y,a,p),null===c?s=y:c.sibling=y,c=y);return e&&f.forEach(function(e){return t(i,e)}),s}return function(e,r,o,u){"object"==typeof o&&null!==o&&o.type===_r&&null===o.key&&(o=o.props.children);var l="object"==typeof o&&null!==o;if(l)switch(o.$$typeof){case yr:e:{var s=o.key;for(l=r;null!==l;){if(l.key===s){if(10===l.tag?o.type===_r:l.type===o.type){n(e,l.sibling),(r=i(l,o.type===_r?o.props.children:o.props,u)).ref=Or(l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===_r?((r=tr(o.props.children,e.internalContextTag,u,o.key)).return=e,e=r):((u=er(o,e.internalContextTag,u)).ref=Or(r,o),u.return=e,e=u)}return a(e);case br:e:{for(l=o.key;null!==r;){if(r.key===l){if(7===r.tag){n(e,r.sibling),(r=i(r,o,u)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=rr(o,e.internalContextTag,u)).return=e,e=r}return a(e);case kr:e:{if(null!==r){if(9===r.tag){n(e,r.sibling),(r=i(r,null,u)).type=o.value,r.return=e,e=r;break e}n(e,r)}(r=ir(o,e.internalContextTag,u)).type=o.value,r.return=e,e=r}return a(e);case wr:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[],u)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=or(o,e.internalContextTag,u)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),r=i(r,o,u)):(n(e,r),r=nr(o,e.internalContextTag,u)),r.return=e,a(e=r);if(xr(o))return g(e,r,o,u);if(Er(o))return y(e,r,o,u);if(l&&Cr(e,o),void 0===o)switch(e.tag){case 2:case 1:d("152",(u=e.type).displayName||u.name||"Component")}return n(e,r)}}var Nr=Sr(!0),Lr=Sr(!1);function Dr(e,t,n,r,i){function o(e,t,n){var r=t.expirationTime;t.child=null===e?Lr(t,null,n,r):Nr(t,e.child,n,r)}function a(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=128)}function u(e,t,n,r){if(a(e,t),!n)return r&&$n(t,!1),c(e,t);n=t.stateNode,Qt.current=t;var i=n.render();return t.effectTag|=1,o(e,t,i),t.memoizedState=n.state,t.memoizedProps=n.props,r&&$n(t,!0),t.child}function l(e){var t=e.stateNode;t.pendingContext?Wn(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Wn(0,t.context,!1),y(e,t.containerInfo)}function c(e,t){if(null!==e&&t.child!==e.child&&d("153"),null!==t.child){var n=Xn(e=t.child,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Xn(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function f(e,t){switch(t.tag){case 3:l(t);break;case 2:Jn(t);break;case 4:y(t,t.stateNode.containerInfo)}return null}var h=e.shouldSetTextContent,m=e.useSyncScheduling,v=e.shouldDeprioritizeSubtree,g=t.pushHostContext,y=t.pushHostContainer,b=n.enterHydrationState,k=n.resetHydrationState,w=n.tryToClaimNextHydratableInstance,_=(e=function(e,t,n,r){function i(e,t){t.updater=o,e.stateNode=t,t._reactInternalFiber=e}var o={isMounted:Ut,enqueueSetState:function(n,r,i){n=n._reactInternalFiber,i=void 0===i?null:i;var o=t(n);dr(n,{expirationTime:o,partialState:r,callback:i,isReplace:!1,isForced:!1,nextCallback:null,next:null}),e(n,o)},enqueueReplaceState:function(n,r,i){n=n._reactInternalFiber,i=void 0===i?null:i;var o=t(n);dr(n,{expirationTime:o,partialState:r,callback:i,isReplace:!0,isForced:!1,nextCallback:null,next:null}),e(n,o)},enqueueForceUpdate:function(n,r){n=n._reactInternalFiber,r=void 0===r?null:r;var i=t(n);dr(n,{expirationTime:i,partialState:null,callback:r,isReplace:!1,isForced:!0,nextCallback:null,next:null}),e(n,i)}};return{adoptClassInstance:i,constructClassInstance:function(e,t){var n=e.type,r=Bn(e),o=2===e.tag&&null!=e.type.contextTypes,a=o?zn(e,r):p;return i(e,t=new n(t,a)),o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=a),t},mountClassInstance:function(e,t){var n=e.alternate,r=e.stateNode,i=r.state||null,a=e.pendingProps;a||d("158");var u=Bn(e);r.props=a,r.state=e.memoizedState=i,r.refs=p,r.context=zn(e,u),null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=1),"function"==typeof r.componentWillMount&&(i=r.state,r.componentWillMount(),i!==r.state&&o.enqueueReplaceState(r,r.state,null),null!==(i=e.updateQueue)&&(r.state=mr(n,e,i,r,a,t))),"function"==typeof r.componentDidMount&&(e.effectTag|=4)},updateClassInstance:function(e,t,i){var a=t.stateNode;a.props=t.memoizedProps,a.state=t.memoizedState;var u=t.memoizedProps,l=t.pendingProps;l||null==(l=u)&&d("159");var c=a.context,f=Bn(t);if(f=zn(t,f),"function"!=typeof a.componentWillReceiveProps||u===l&&c===f||(c=a.state,a.componentWillReceiveProps(l,f),a.state!==c&&o.enqueueReplaceState(a,a.state,null)),c=t.memoizedState,i=null!==t.updateQueue?mr(e,t,t.updateQueue,a,l,i):c,!(u!==l||c!==i||qn.current||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),!1;var p=l;if(null===u||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)p=!0;else{var h=t.stateNode,m=t.type;p="function"==typeof h.shouldComponentUpdate?h.shouldComponentUpdate(p,i,f):!(m.prototype&&m.prototype.isPureReactComponent&&s(u,p)&&s(c,i))}return p?("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(l,i,f),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),n(t,l),r(t,i)),a.props=l,a.state=i,a.context=f,p}}}(r,i,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t})).adoptClassInstance,T=e.constructClassInstance,E=e.mountClassInstance,x=e.updateClassInstance;return{beginWork:function(e,t,n){if(0===t.expirationTime||t.expirationTime>n)return f(0,t);switch(t.tag){case 0:null!==e&&d("155");var r=t.type,i=t.pendingProps,s=Bn(t);return r=r(i,s=zn(t,s)),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render?(t.tag=2,i=Jn(t),_(t,r),E(t,n),t=u(e,t,!0,i)):(t.tag=1,o(e,t,r),t.memoizedProps=i,t=t.child),t;case 1:e:{if(i=t.type,n=t.pendingProps,r=t.memoizedProps,qn.current)null===n&&(n=r);else if(null===n||r===n){t=c(e,t);break e}i=i(n,r=zn(t,r=Bn(t))),t.effectTag|=1,o(e,t,i),t.memoizedProps=n,t=t.child}return t;case 2:return i=Jn(t),r=void 0,null===e?t.stateNode?d("153"):(T(t,t.pendingProps),E(t,n),r=!0):r=x(e,t,n),u(e,t,r,i);case 3:return l(t),null!==(i=t.updateQueue)?(r=t.memoizedState)===(i=mr(e,t,i,null,null,n))?(k(),t=c(e,t)):(r=i.element,s=t.stateNode,(null===e||null===e.child)&&s.hydrate&&b(t)?(t.effectTag|=2,t.child=Lr(t,null,r,n)):(k(),o(e,t,r)),t.memoizedState=i,t=t.child):(k(),t=c(e,t)),t;case 5:g(t),null===e&&w(t),i=t.type;var p=t.memoizedProps;return null===(r=t.pendingProps)&&(null===(r=p)&&d("154")),s=null!==e?e.memoizedProps:null,qn.current||null!==r&&p!==r?(p=r.children,h(i,r)?p=null:s&&h(i,s)&&(t.effectTag|=16),a(e,t),2147483647!==n&&!m&&v(i,r)?(t.expirationTime=2147483647,t=null):(o(e,t,p),t.memoizedProps=r,t=t.child)):t=c(e,t),t;case 6:return null===e&&w(t),null===(e=t.pendingProps)&&(e=t.memoizedProps),t.memoizedProps=e,null;case 8:t.tag=7;case 7:return i=t.pendingProps,qn.current?null===i&&(null===(i=e&&e.memoizedProps)&&d("154")):null!==i&&t.memoizedProps!==i||(i=t.memoizedProps),r=i.children,t.stateNode=null===e?Lr(t,t.stateNode,r,n):Nr(t,t.stateNode,r,n),t.memoizedProps=i,t.stateNode;case 9:return null;case 4:e:{if(y(t,t.stateNode.containerInfo),i=t.pendingProps,qn.current)null===i&&(null==(i=e&&e.memoizedProps)&&d("154"));else if(null===i||t.memoizedProps===i){t=c(e,t);break e}null===e?t.child=Nr(t,null,i,n):o(e,t,i),t.memoizedProps=i,t=t.child}return t;case 10:e:{if(n=t.pendingProps,qn.current)null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=c(e,t);break e}o(e,t,n),t.memoizedProps=n,t=t.child}return t;default:d("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case 2:Jn(t);break;case 3:l(t);break;default:d("157")}return t.effectTag|=64,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),0===t.expirationTime||t.expirationTime>n?f(0,t):(t.firstEffect=null,t.lastEffect=null,t.child=null===e?Lr(t,null,null,n):Nr(t,e.child,null,n),2===t.tag&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}var Ar={};function Ir(e){function t(e){ae=J=!0;var t=e.stateNode;if(t.current===e&&d("177"),t.isReadyForCommit=!1,Qt.current=null,1<e.effectTag)if(null!==e.lastEffect){e.lastEffect.nextEffect=e;var n=e.firstEffect}else n=e;else n=e.firstEffect;for(z(),ee=n;null!==ee;){var r=!1,i=void 0;try{for(;null!==ee;){var o=ee.effectTag;if(16&o&&F(ee),128&o){var a=ee.alternate;null!==a&&Q(a)}switch(-242&o){case 2:j(ee),ee.effectTag&=-3;break;case 6:j(ee),ee.effectTag&=-3,P(ee.alternate,ee);break;case 4:P(ee.alternate,ee);break;case 8:ue=!0,M(ee),ue=!1}ee=ee.nextEffect}}catch(e){r=!0,i=e}r&&(null===ee&&d("178"),u(ee,i),null!==ee&&(ee=ee.nextEffect))}for(H(),t.current=e,ee=n;null!==ee;){n=!1,r=void 0;try{for(;null!==ee;){var l=ee.effectTag;if(36&l&&R(ee.alternate,ee),128&l&&V(ee),64&l)switch(i=ee,o=void 0,null!==te&&(o=te.get(i),te.delete(i),null==o&&null!==i.alternate&&(i=i.alternate,o=te.get(i),te.delete(i))),null==o&&d("184"),i.tag){case 2:i.stateNode.componentDidCatch(o.error,{componentStack:o.componentStack});break;case 3:null===ie&&(ie=o.error);break;default:d("157")}var s=ee.nextEffect;ee.nextEffect=null,ee=s}}catch(e){n=!0,r=e}n&&(null===ee&&d("178"),u(ee,r),null!==ee&&(ee=ee.nextEffect))}return J=ae=!1,sr(e.stateNode),re&&(re.forEach(v),re=null),null!==ie&&(e=ie,ie=null,E(e)),0===(t=t.current.expirationTime)&&(ne=te=null),t}function n(e){for(;;){var t=I(e.alternate,e,X),n=e.return,r=e.sibling,i=e;if(2147483647===X||2147483647!==i.expirationTime){if(2!==i.tag&&3!==i.tag)var o=0;else o=null===(o=i.updateQueue)?0:o.expirationTime;for(var a=i.child;null!==a;)0!==a.expirationTime&&(0===o||o>a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){e.stateNode.isReadyForCommit=!0;break}e=n}return null}function r(e){var t=D(e.alternate,e,X);return null===t&&(t=n(e)),Qt.current=null,t}function i(e){var t=A(e.alternate,e,X);return null===t&&(t=n(e)),Qt.current=null,t}function o(e){if(null!==te){if(!(0===X||X>e))if(X<=W)for(;null!==$;)$=l($)?i($):r($);else for(;null!==$&&!T();)$=l($)?i($):r($)}else if(!(0===X||X>e))if(X<=W)for(;null!==$;)$=r($);else for(;null!==$&&!T();)$=r($)}function a(e,t){if(J&&d("243"),J=!0,e.isReadyForCommit=!1,e!==Z||t!==X||null===$){for(;-1<Rn;)Pn[Rn]=null,Rn--;Un=p,Gn.current=p,qn.current=!1,N(),X=t,$=Xn((Z=e).current,null,t)}var n=!1,r=null;try{o(t)}catch(e){n=!0,r=e}for(;n;){if(oe){ie=r;break}var a=$;if(null===a)oe=!0;else{var l=u(a,r);if(null===l&&d("183"),!oe){try{for(r=t,l=n=l;null!==a;){switch(a.tag){case 2:Kn(a);break;case 5:S(a);break;case 3:C(a);break;case 4:C(a)}if(a===l||a.alternate===l)break;a=a.return}$=i(n),o(r)}catch(e){n=!0,r=e;continue}break}}}return t=ie,oe=J=!1,ie=null,null!==t&&E(t),e.isReadyForCommit?e.current.alternate:null}function u(e,t){var n=Qt.current=null,r=!1,i=!1,o=null;if(3===e.tag)n=e,s(e)&&(oe=!0);else for(var a=e.return;null!==a&&null===n;){if(2===a.tag?"function"==typeof a.stateNode.componentDidCatch&&(r=!0,o=Gt(a),n=a,i=!0):3===a.tag&&(n=a),s(a)){if(ue||null!==re&&(re.has(a)||null!==a.alternate&&re.has(a.alternate)))return null;n=null,i=!1}a=a.return}if(null!==n){null===ne&&(ne=new Set),ne.add(n);var u="";a=e;do{e:switch(a.tag){case 0:case 1:case 2:case 5:var l=a._debugOwner,c=a._debugSource,f=Gt(a),p=null;l&&(p=Gt(l)),l=c,f="\n    in "+(f||"Unknown")+(l?" (at "+l.fileName.replace(/^.*[\\\/]/,"")+":"+l.lineNumber+")":p?" (created by "+p+")":"");break e;default:f=""}u+=f,a=a.return}while(a);a=u,e=Gt(e),null===te&&(te=new Map),t={componentName:e,componentStack:a,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:o,willRetry:i},te.set(n,t);try{var d=t.error;d&&d.suppressReactErrorLogging||console.error(d)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}return ae?(null===re&&(re=new Set),re.add(n)):v(n),n}return null===ie&&(ie=t),null}function l(e){return null!==te&&(te.has(e)||null!==e.alternate&&te.has(e.alternate))}function s(e){return null!==ne&&(ne.has(e)||null!==e.alternate&&ne.has(e.alternate))}function c(){return 20*(1+((g()+100)/20|0))}function f(e){return 0!==Y?Y:J?ae?1:X:!B||1&e.internalContextTag?c():1}function h(e,t){return m(e,t)}function m(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!J&&n===Z&&t<X&&($=Z=null,X=0);var r=n,i=t;if(_e>we&&d("185"),null===r.nextScheduledRoot)r.remainingExpirationTime=i,null===se?(le=se=r,r.nextScheduledRoot=r):(se=se.nextScheduledRoot=r).nextScheduledRoot=le;else{var o=r.remainingExpirationTime;(0===o||i<o)&&(r.remainingExpirationTime=i)}pe||(be?ke&&_(de=r,he=1):1===i?w(1,null):y(i)),!J&&n===Z&&t<X&&($=Z=null,X=0)}e=e.return}}function v(e){m(e,1)}function g(){return W=2+((G()-K)/10|0)}function y(e){if(0!==ce){if(e>ce)return;U(fe)}var t=G()-K;ce=e,fe=q(k,{timeout:10*(e-2)-t})}function b(){var e=0,t=null;if(null!==se)for(var n=se,r=le;null!==r;){var i=r.remainingExpirationTime;if(0===i){if((null===n||null===se)&&d("244"),r===r.nextScheduledRoot){le=se=r.nextScheduledRoot=null;break}if(r===le)le=i=r.nextScheduledRoot,se.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===se){(se=n).nextScheduledRoot=le,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===e||i<e)&&(e=i,t=r),r===se)break;n=r,r=r.nextScheduledRoot}}null!==(n=de)&&n===t?_e++:_e=0,de=t,he=e}function k(e){w(0,e)}function w(e,t){for(ye=t,b();null!==de&&0!==he&&(0===e||he<=e)&&!me;)_(de,he),b();if(null!==ye&&(ce=0,fe=-1),0!==he&&y(he),ye=null,me=!1,_e=0,ve)throw e=ge,ge=null,ve=!1,e}function _(e,n){if(pe&&d("245"),pe=!0,n<=g()){var r=e.finishedWork;null!==r?(e.finishedWork=null,e.remainingExpirationTime=t(r)):(e.finishedWork=null,null!==(r=a(e,n))&&(e.remainingExpirationTime=t(r)))}else null!==(r=e.finishedWork)?(e.finishedWork=null,e.remainingExpirationTime=t(r)):(e.finishedWork=null,null!==(r=a(e,n))&&(T()?e.finishedWork=r:e.remainingExpirationTime=t(r)));pe=!1}function T(){return!(null===ye||ye.timeRemaining()>Te)&&(me=!0)}function E(e){null===de&&d("246"),de.remainingExpirationTime=0,ve||(ve=!0,ge=e)}var x=function(e){function t(e){return e===Ar&&d("174"),e}var n=e.getChildHostContext,r=e.getRootHostContext,i={current:Ar},o={current:Ar},a={current:Ar};return{getHostContext:function(){return t(i.current)},getRootHostContainer:function(){return t(a.current)},popHostContainer:function(e){Vn(i),Vn(o),Vn(a)},popHostContext:function(e){o.current===e&&(Vn(i),Vn(o))},pushHostContainer:function(e,t){Qn(a,t),t=r(t),Qn(o,e),Qn(i,t)},pushHostContext:function(e){var r=t(a.current),u=t(i.current);u!==(r=n(u,e.type,r))&&(Qn(o,e),Qn(i,r))},resetHostContainer:function(){i.current=Ar,a.current=Ar}}}(e),O=function(e){function t(e,t){var n=new Zn(5,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case 5:return null!==(t=o(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=a(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function r(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;f=e}var i=e.shouldSetTextContent;if(!(e=e.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){d("175")},prepareToHydrateHostTextInstance:function(){d("176")},popHydrationState:function(){return!1}};var o=e.canHydrateInstance,a=e.canHydrateTextInstance,u=e.getNextHydratableSibling,l=e.getFirstHydratableChild,s=e.hydrateInstance,c=e.hydrateTextInstance,f=null,p=null,h=!1;return{enterHydrationState:function(e){return p=l(e.stateNode.containerInfo),f=e,h=!0},resetHydrationState:function(){p=f=null,h=!1},tryToClaimNextHydratableInstance:function(e){if(h){var r=p;if(r){if(!n(e,r)){if(!(r=u(r))||!n(e,r))return e.effectTag|=2,h=!1,void(f=e);t(f,p)}f=e,p=l(r)}else e.effectTag|=2,h=!1,f=e}},prepareToHydrateHostInstance:function(e,t,n){return t=s(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return c(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==f)return!1;if(!h)return r(e),h=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!i(n,e.memoizedProps))for(n=p;n;)t(e,n),n=u(n);return r(e),p=f?u(e.stateNode):null,!0}}}(e),C=x.popHostContainer,S=x.popHostContext,N=x.resetHostContainer,L=Dr(e,x,O,h,f),D=L.beginWork,A=L.beginFailedWork,I=function(e,t,n){function r(e){e.effectTag|=4}var i=e.createInstance,o=e.createTextInstance,a=e.appendInitialChild,u=e.finalizeInitialChildren,l=e.prepareUpdate,s=e.persistence,c=t.getRootHostContainer,f=t.popHostContext,p=t.getHostContext,h=t.popHostContainer,m=n.prepareToHydrateHostInstance,v=n.prepareToHydrateHostTextInstance,g=n.popHydrationState,y=void 0,b=void 0,k=void 0;return e.mutation?(y=function(){},b=function(e,t,n){(t.updateQueue=n)&&r(t)},k=function(e,t,n,i){n!==i&&r(t)}):d(s?"235":"236"),{completeWork:function(e,t,n){var s=t.pendingProps;switch(null===s?s=t.memoizedProps:2147483647===t.expirationTime&&2147483647!==n||(t.pendingProps=null),t.tag){case 1:return null;case 2:return Kn(t),null;case 3:return h(t),Vn(qn),Vn(Gn),(s=t.stateNode).pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==e&&null!==e.child||(g(t),t.effectTag&=-3),y(t),null;case 5:f(t),n=c();var w=t.type;if(null!==e&&null!=t.stateNode){var _=e.memoizedProps,T=t.stateNode,E=p();T=l(T,w,_,s,n,E),b(e,t,T,w,_,s,n),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!s)return null===t.stateNode&&d("166"),null;if(e=p(),g(t))m(t,n,e)&&r(t);else{e=i(w,s,n,e,t);e:for(_=t.child;null!==_;){if(5===_.tag||6===_.tag)a(e,_.stateNode);else if(4!==_.tag&&null!==_.child){_.child.return=_,_=_.child;continue}if(_===t)break;for(;null===_.sibling;){if(null===_.return||_.return===t)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}u(e,w,s,n)&&r(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)k(e,t,e.memoizedProps,s);else{if("string"!=typeof s)return null===t.stateNode&&d("166"),null;e=c(),n=p(),g(t)?v(t)&&r(t):t.stateNode=o(s,e,n,t)}return null;case 7:(s=t.memoizedProps)||d("165"),t.tag=8,w=[];e:for((_=t.stateNode)&&(_.return=t);null!==_;){if(5===_.tag||6===_.tag||4===_.tag)d("247");else if(9===_.tag)w.push(_.type);else if(null!==_.child){_.child.return=_,_=_.child;continue}for(;null===_.sibling;){if(null===_.return||_.return===t)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}return s=(_=s.handler)(s.props,w),t.child=Nr(t,null!==e?e.child:null,s,n),t.child;case 8:return t.tag=7,null;case 9:case 10:return null;case 4:return h(t),y(t),null;case 0:d("167");default:d("156")}}}}(e,x,O).completeWork,F=(x=function(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function r(e){switch(cr(e),e.tag){case 2:n(e);var r=e.stateNode;if("function"==typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case 5:n(e);break;case 7:i(e.stateNode);break;case 4:l&&a(e)}}function i(e){for(var t=e;;)if(r(t),null===t.child||l&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function o(e){return 5===e.tag||3===e.tag||4===e.tag}function a(e){for(var t=e,n=!1,o=void 0,a=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&d("160"),n.tag){case 5:o=n.stateNode,a=!1;break e;case 3:case 4:o=n.stateNode.containerInfo,a=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)i(t),a?b(o,t.stateNode):y(o,t.stateNode);else if(4===t.tag?o=t.stateNode.containerInfo:r(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}var u=e.getPublicInstance,l=e.mutation;e=e.persistence,l||d(e?"235":"236");var s=l.commitMount,c=l.commitUpdate,f=l.resetTextContent,p=l.commitTextUpdate,h=l.appendChild,m=l.appendChildToContainer,v=l.insertBefore,g=l.insertInContainerBefore,y=l.removeChild,b=l.removeChildFromContainer;return{commitResetTextContent:function(e){f(e.stateNode)},commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(o(t)){var n=t;break e}t=t.return}d("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:d("161")}16&n.effectTag&&(f(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||o(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)n?r?g(t,i.stateNode,n):v(t,i.stateNode,n):r?m(t,i.stateNode):h(t,i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){a(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&c(n,o,i,e,r,t)}break;case 6:null===t.stateNode&&d("162"),n=t.memoizedProps,p(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:break;default:d("163")}},commitLifeCycles:function(e,t){switch(t.tag){case 2:var n=t.stateNode;if(4&t.effectTag)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var r=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(r,e)}null!==(t=t.updateQueue)&&vr(t,n);break;case 3:null!==(n=t.updateQueue)&&vr(n,null!==t.child?t.child.stateNode:null);break;case 5:n=t.stateNode,null===e&&4&t.effectTag&&s(n,t.type,t.memoizedProps,t);break;case 6:case 4:break;default:d("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:t(u(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}(e,u)).commitResetTextContent,j=x.commitPlacement,M=x.commitDeletion,P=x.commitWork,R=x.commitLifeCycles,V=x.commitAttachRef,Q=x.commitDetachRef,G=e.now,q=e.scheduleDeferredCallback,U=e.cancelDeferredCallback,B=e.useSyncScheduling,z=e.prepareForCommit,H=e.resetAfterCommit,K=G(),W=2,Y=0,J=!1,$=null,Z=null,X=0,ee=null,te=null,ne=null,re=null,ie=null,oe=!1,ae=!1,ue=!1,le=null,se=null,ce=0,fe=-1,pe=!1,de=null,he=0,me=!1,ve=!1,ge=null,ye=null,be=!1,ke=!1,we=1e3,_e=0,Te=1;return{computeAsyncExpiration:c,computeExpirationForFiber:f,scheduleWork:h,batchedUpdates:function(e,t){var n=be;be=!0;try{return e(t)}finally{(be=n)||pe||w(1,null)}},unbatchedUpdates:function(e){if(be&&!ke){ke=!0;try{return e()}finally{ke=!1}}return e()},flushSync:function(e){var t=be;be=!0;try{e:{var n=Y;Y=1;try{var r=e();break e}finally{Y=n}r=void 0}return r}finally{be=t,pe&&d("187"),w(1,null)}},deferredUpdates:function(e){var t=Y;Y=c();try{return e()}finally{Y=t}}}}function Fr(e){function t(e){return null===(e=function(e){if(!(e=zt(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:e.stateNode}var n=e.getPublicInstance,r=(e=Ir(e)).computeAsyncExpiration,i=e.computeExpirationForFiber,a=e.scheduleWork;return{createContainer:function(e,t){var n=new Zn(3,null,0);return e={current:n,containerInfo:e,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:t,nextScheduledRoot:null},n.stateNode=e},updateContainer:function(e,t,n,o){var u=t.current;if(n){var l;n=n._reactInternalFiber;e:{for(2===qt(n)&&2===n.tag||d("170"),l=n;3!==l.tag;){if(Hn(l)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}(l=l.return)||d("171")}l=l.stateNode.context}n=Hn(n)?Yn(n,l):l}else n=p;null===t.context?t.context=n:t.pendingContext=n,t=void 0===(t=o)?null:t,dr(u,{expirationTime:o=null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent?r():i(u),partialState:{element:e},callback:t,isReplace:!1,isForced:!1,nextCallback:null,next:null}),a(u,o)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return n(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:t,findHostInstanceWithNoPortals:function(e){return null===(e=function(e){if(!(e=zt(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:e.stateNode},injectIntoDevTools:function(e){var n=e.findFiberByHostInstance;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);ar=lr(function(e){return t.onCommitFiberRoot(n,e)}),ur=lr(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}(o({},e,{findHostInstanceByFiber:function(e){return t(e)},findFiberByHostInstance:function(e){return n?n(e):null}}))}}}var jr=Object.freeze({default:Fr}),Mr=jr&&Fr||jr,Pr=Mr.default?Mr.default:Mr;var Rr="object"==typeof performance&&"function"==typeof performance.now,Vr=void 0;Vr=Rr?function(){return performance.now()}:function(){return Date.now()};var Qr=void 0,Gr=void 0;if(i.canUseDOM)if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var qr,Ur=null,Br=!1,zr=-1,Hr=!1,Kr=0,Wr=33,Yr=33;qr=Rr?{didTimeout:!1,timeRemaining:function(){var e=Kr-performance.now();return 0<e?e:0}}:{didTimeout:!1,timeRemaining:function(){var e=Kr-Date.now();return 0<e?e:0}};var Jr="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===Jr){if(Br=!1,e=Vr(),0>=Kr-e){if(!(-1!==zr&&zr<=e))return void(Hr||(Hr=!0,requestAnimationFrame($r)));qr.didTimeout=!0}else qr.didTimeout=!1;zr=-1,e=Ur,Ur=null,null!==e&&e(qr)}},!1);var $r=function(e){Hr=!1;var t=e-Kr+Yr;t<Yr&&Wr<Yr?(8>t&&(t=8),Yr=t<Wr?Wr:t):Wr=t,Kr=e+Yr,Br||(Br=!0,window.postMessage(Jr,"*"))};Qr=function(e,t){return Ur=e,null!=t&&"number"==typeof t.timeout&&(zr=Vr()+t.timeout),Hr||(Hr=!0,requestAnimationFrame($r)),0},Gr=function(){Ur=null,Br=!1,zr=-1}}else Qr=window.requestIdleCallback,Gr=window.cancelIdleCallback;else Qr=function(e){return setTimeout(function(){e({timeRemaining:function(){return 1/0}})})},Gr=function(e){clearTimeout(e)};var Zr=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Xr={},ei={};function ti(e,t,n){var r=b(t);if(r&&y(t,n)){var i=r.mutationMethod;i?i(e,n):null==n||r.hasBooleanValue&&!n||r.hasNumericValue&&isNaN(n)||r.hasPositiveNumericValue&&1>n||r.hasOverloadedBooleanValue&&!1===n?ri(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(i=r.attributeNamespace)?e.setAttributeNS(i,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else ni(e,t,y(t,n)?n:null)}function ni(e,t,n){(function(e){return!!ei.hasOwnProperty(e)||!Xr.hasOwnProperty(e)&&(Zr.test(e)?ei[e]=!0:(Xr[e]=!0,!1))})(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))}function ri(e,t){var n=b(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}function ii(e,t){var n=t.value,r=t.checked;return o({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})}function oi(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ai(e,t){null!=(t=t.checked)&&ti(e,"checked",t)}function ui(e,t){ai(e,t);var n=t.value;null!=n?0===n&&""===e.value?e.value="0":"number"===t.type?(n!=(t=parseFloat(e.value)||0)||n==t&&e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))}function li(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)}function si(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}(t.children))&&(e.children=t),e}function ci(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function fi(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function pi(e,t){return null!=t.dangerouslySetInnerHTML&&d("91"),o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function di(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&d("92"),Array.isArray(t)&&(1>=t.length||d("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function hi(e,t){var n=t.value;null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function mi(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}var vi="http://www.w3.org/1999/xhtml",gi="http://www.w3.org/2000/svg";function yi(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bi(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?yi(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ki,wi=void 0,_i=(ki=function(e,t){if(e.namespaceURI!==gi||"innerHTML"in e)e.innerHTML=t;else{for((wi=wi||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=wi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ki(e,t)})}:ki);function Ti(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ei={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xi=["Webkit","ms","Moz","O"];function Oi(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=t[n];i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||Ei.hasOwnProperty(i)&&Ei[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Ei).forEach(function(e){xi.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ei[t]=Ei[e]})});var Ci=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Si(e,t,n){t&&(Ci[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&d("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&d("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||d("61")),null!=t.style&&"object"!=typeof t.style&&d("62",n()))}function Ni(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Li=vi,Di=a.thatReturns("");function Ai(e,t){var n=fn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=U[t];for(var r=0;r<t.length;r++){var i=t[r];n.hasOwnProperty(i)&&n[i]||("topScroll"===i?Zt("topScroll","scroll",e):"topFocus"===i||"topBlur"===i?(Zt("topFocus","focus",e),Zt("topBlur","blur",e),n.topBlur=!0,n.topFocus=!0):"topCancel"===i?(ht("cancel",!0)&&Zt("topCancel","cancel",e),n.topCancel=!0):"topClose"===i?(ht("close",!0)&&Zt("topClose","close",e),n.topClose=!0):un.hasOwnProperty(i)&&$t(i,un[i],e),n[i]=!0)}}var Ii={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"};function Fi(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===Li&&(r=yi(e)),r===Li?"script"===e?((e=n.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function ji(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function Mi(e,t,n,r){var i=Ni(t,n);switch(t){case"iframe":case"object":$t("topLoad","load",e);var u=n;break;case"video":case"audio":for(u in Ii)Ii.hasOwnProperty(u)&&$t(u,Ii[u],e);u=n;break;case"source":$t("topError","error",e),u=n;break;case"img":case"image":$t("topError","error",e),$t("topLoad","load",e),u=n;break;case"form":$t("topReset","reset",e),$t("topSubmit","submit",e),u=n;break;case"details":$t("topToggle","toggle",e),u=n;break;case"input":oi(e,n),u=ii(e,n),$t("topInvalid","invalid",e),Ai(r,"onChange");break;case"option":u=si(e,n);break;case"select":fi(e,n),u=o({},n,{value:void 0}),$t("topInvalid","invalid",e),Ai(r,"onChange");break;case"textarea":di(e,n),u=pi(e,n),$t("topInvalid","invalid",e),Ai(r,"onChange");break;default:u=n}Si(t,u,Di);var l,s=u;for(l in s)if(s.hasOwnProperty(l)){var c=s[l];"style"===l?Oi(e,c):"dangerouslySetInnerHTML"===l?null!=(c=c?c.__html:void 0)&&_i(e,c):"children"===l?"string"==typeof c?("textarea"!==t||""!==c)&&Ti(e,c):"number"==typeof c&&Ti(e,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(q.hasOwnProperty(l)?null!=c&&Ai(r,l):i?ni(e,l,c):null!=c&&ti(e,l,c))}switch(t){case"input":vt(e),li(e,n);break;case"textarea":vt(e),mi(e);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,null!=(t=n.value)?ci(e,!!n.multiple,t,!1):null!=n.defaultValue&&ci(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=a)}}function Pi(e,t,n,r,i){var u,l,s=null;switch(t){case"input":n=ii(e,n),r=ii(e,r),s=[];break;case"option":n=si(e,n),r=si(e,r),s=[];break;case"select":n=o({},n,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":n=pi(e,n),r=pi(e,r),s=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=a)}for(u in Si(t,r,Di),e=null,n)if(!r.hasOwnProperty(u)&&n.hasOwnProperty(u)&&null!=n[u])if("style"===u)for(l in t=n[u])t.hasOwnProperty(l)&&(e||(e={}),e[l]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(q.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(t=null!=n?n[u]:void 0,r.hasOwnProperty(u)&&c!==t&&(null!=c||null!=t))if("style"===u)if(t){for(l in t)!t.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(e||(e={}),e[l]="");for(l in c)c.hasOwnProperty(l)&&t[l]!==c[l]&&(e||(e={}),e[l]=c[l])}else e||(s||(s=[]),s.push(u,e)),e=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,t=t?t.__html:void 0,null!=c&&t!==c&&(s=s||[]).push(u,""+c)):"children"===u?t===c||"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(q.hasOwnProperty(u)?(null!=c&&Ai(i,u),s||t===c||(s=[])):(s=s||[]).push(u,c))}return e&&(s=s||[]).push("style",e),s}function Ri(e,t,n,r,i){"input"===n&&"radio"===i.type&&null!=i.name&&ai(e,i),Ni(n,r),r=Ni(n,i);for(var o=0;o<t.length;o+=2){var a=t[o],u=t[o+1];"style"===a?Oi(e,u):"dangerouslySetInnerHTML"===a?_i(e,u):"children"===a?Ti(e,u):r?null!=u?ni(e,a,u):e.removeAttribute(a):null!=u?ti(e,a,u):ri(e,a)}switch(n){case"input":ui(e,i);break;case"textarea":hi(e,i);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?ci(e,!!i.multiple,n,!1):t!==!!i.multiple&&(null!=i.defaultValue?ci(e,!!i.multiple,i.defaultValue,!0):ci(e,!!i.multiple,i.multiple?[]:"",!1))}}function Vi(e,t,n,r,i){switch(t){case"iframe":case"object":$t("topLoad","load",e);break;case"video":case"audio":for(var o in Ii)Ii.hasOwnProperty(o)&&$t(o,Ii[o],e);break;case"source":$t("topError","error",e);break;case"img":case"image":$t("topError","error",e),$t("topLoad","load",e);break;case"form":$t("topReset","reset",e),$t("topSubmit","submit",e);break;case"details":$t("topToggle","toggle",e);break;case"input":oi(e,n),$t("topInvalid","invalid",e),Ai(i,"onChange");break;case"select":fi(e,n),$t("topInvalid","invalid",e),Ai(i,"onChange");break;case"textarea":di(e,n),$t("topInvalid","invalid",e),Ai(i,"onChange")}for(var u in Si(t,n,Di),r=null,n)n.hasOwnProperty(u)&&(o=n[u],"children"===u?"string"==typeof o?e.textContent!==o&&(r=["children",o]):"number"==typeof o&&e.textContent!==""+o&&(r=["children",""+o]):q.hasOwnProperty(u)&&null!=o&&Ai(i,u));switch(t){case"input":vt(e),li(e,n);break;case"textarea":vt(e),mi(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(e.onclick=a)}return r}function Qi(e,t){return e.nodeValue!==t}var Gi=Object.freeze({createElement:Fi,createTextNode:ji,setInitialProperties:Mi,diffProperties:Pi,updateProperties:Ri,diffHydratedProperties:Vi,diffHydratedText:Qi,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(ui(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=he(r);i||d("90"),gt(r),ui(r,i)}}}break;case"textarea":hi(e,n);break;case"select":null!=(t=n.value)&&ci(e,!!n.multiple,t,!1)}}});rt.injectFiberControlledHostComponent(Gi);var qi=null,Ui=null;function Bi(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}var zi=Pr({getRootHostContext:function(e){var t=e.nodeType;switch(t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:bi(null,"");break;default:e=bi(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}return e},getChildHostContext:function(e,t){return bi(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){qi=Wt;var e=l();if(hn(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=window.getSelection&&window.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch(e){t=null;break e}var o=0,a=-1,u=-1,s=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==t||0!==r&&3!==f.nodeType||(a=o+r),f!==i||0!==n&&3!==f.nodeType||(u=o+n),3===f.nodeType&&(o+=f.nodeValue.length),null!==(d=f.firstChild);)p=f,f=d;for(;;){if(f===e)break t;if(p===t&&++s===r&&(a=o),p===i&&++c===n&&(u=o),null!==(d=f.nextSibling))break;p=(f=p).parentNode}f=d}t=-1===a||-1===u?null:{start:a,end:u}}else t=null}t=t||{start:0,end:0}}else t=null;Ui={focusedElem:e,selectionRange:t},Jt(!1)},resetAfterCommit:function(){var e=Ui,t=l(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&c(document.documentElement,n)){if(hn(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(window.getSelection){t=window.getSelection();var i=n[Ce()].length;e=Math.min(r.start,i),r=void 0===r.end?e:Math.min(r.end,i),!t.extend&&e>r&&(i=r,r=e,e=i),i=dn(n,e);var o=dn(n,r);if(i&&o&&(1!==t.rangeCount||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)){var a=document.createRange();a.setStart(i.node,i.offset),t.removeAllRanges(),e>r?(t.addRange(a),t.extend(o.node,o.offset)):(a.setEnd(o.node,o.offset),t.addRange(a))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(f(n),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}Ui=null,Jt(qi),qi=null},createInstance:function(e,t,n,r,i){return(e=Fi(e,t,n,r))[ce]=i,e[fe]=t,e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){Mi(e,t,n,r);e:{switch(t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e}e=!1}return e},prepareUpdate:function(e,t,n,r,i){return Pi(e,t,n,r,i)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return(e=ji(e,t))[ce]=r,e},now:Vr,mutation:{commitMount:function(e){e.focus()},commitUpdate:function(e,t,n,r,i){e[fe]=i,Ri(e,t,n,r,i)},resetTextContent:function(e){e.textContent=""},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){8===e.nodeType?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)}},hydration:{canHydrateInstance:function(e,t){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e},canHydrateTextInstance:function(e,t){return""===t||3!==e.nodeType?null:e},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,i,o){return e[ce]=o,e[fe]=n,Vi(e,t,n,i,r)},hydrateTextInstance:function(e,t,n){return e[ce]=n,Qi(e,t)},didNotMatchHydratedContainerTextInstance:function(){},didNotMatchHydratedTextInstance:function(){},didNotHydrateContainerInstance:function(){},didNotHydrateInstance:function(){},didNotFindHydratableContainerInstance:function(){},didNotFindHydratableContainerTextInstance:function(){},didNotFindHydratableInstance:function(){},didNotFindHydratableTextInstance:function(){}},scheduleDeferredCallback:Qr,cancelDeferredCallback:Gr,useSyncScheduling:!0});function Hi(e,t,n,r,i){Bi(n)||d("200");var o=n._reactRootContainer;if(o)zi.updateContainer(t,o,e,i);else{if(!(r=r||function(e){return!(!(e=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))}(n)))for(o=void 0;o=n.lastChild;)n.removeChild(o);var a=zi.createContainer(n,r);o=n._reactRootContainer=a,zi.unbatchedUpdates(function(){zi.updateContainer(t,a,e,i)})}return zi.getPublicRootInstance(o)}function Ki(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Bi(t)||d("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:wr,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}function Wi(e,t){this._reactRootContainer=zi.createContainer(e,t)}ut=zi.batchedUpdates,Wi.prototype.render=function(e,t){zi.updateContainer(e,this._reactRootContainer,null,t)},Wi.prototype.unmount=function(e){zi.updateContainer(null,this._reactRootContainer,null,e)};var Yi={createPortal:Ki,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(t)return zi.findHostInstance(t);"function"==typeof e.render?d("188"):d("213",Object.keys(e))},hydrate:function(e,t,n){return Hi(null,e,t,!0,n)},render:function(e,t,n){return Hi(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&d("38"),Hi(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Bi(e)||d("40"),!!e._reactRootContainer&&(zi.unbatchedUpdates(function(){Hi(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:Ki,unstable_batchedUpdates:st,unstable_deferredUpdates:zi.deferredUpdates,flushSync:zi.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:le,EventPluginRegistry:H,EventPropagators:xe,ReactControlledComponent:at,ReactDOMComponentTree:me,ReactDOMEventListener:en}};zi.injectIntoDevTools({findFiberByHostInstance:pe,bundleType:0,version:"16.2.0",rendererPackageName:"react-dom"});var Ji=Object.freeze({default:Yi}),$i=Ji&&Yi||Ji;e.exports=$i.default?$i.default:$i},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},function(e,t,n){"use strict";var r=n(47),i={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=i},function(e,t,n){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!r.call(t,n[a])||!i(e[n[a]],t[n[a]]))return!1;return!0}},function(e,t,n){"use strict";var r=n(216);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(217);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";e.exports=function(e){try{e.focus()}catch(e){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=v(i),a=v(n(34)),u=v(n(220)),l=v(n(236)),s=v(n(238)),c=v(n(391)),f=n(52),p=v(n(395)),d=v(n(396)),h=v(n(397)),m=v(n(398));function v(e){return e&&e.__esModule?e:{default:e}}n(399);var g=function(e){var t=e.children;return o.default.createElement("div",{style:{backgroundImage:"linear-gradient(174deg,#1c2945 0,#2d4d5a 54%,#436a75 81%,#448b8e 100%)",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:0,bottom:0,left:0,right:0}},o.default.createElement("div",{style:{maxWidth:"50%"}},t))},y=function(e){var t=e.version;return o.default.createElement(g,null,o.default.createElement("h1",{style:{color:"white"}},"Your Apollo Client needs updating!"),o.default.createElement("h3",{style:{color:"white"}},"We've detected your version of Apollo Client to be v",t,". The Apollo Devtools requires version 2.0.0 or greater. Luckily, upgrading is pretty painless and brings a whole bunch of new features! To learn how to upgrade, check out the migration guide"," ",o.default.createElement("a",{style:{color:"white"},href:"https://www.apollographql.com/docs/react/recipes/2.0-migration.html",target:"_blank"},"here!")),o.default.createElement("h3",{style:{color:"white"}},"To continue using the Devtools with v",t,", check out this guide to"," ",o.default.createElement("a",{style:{color:"white"},href:"https://github.com/apollographql/apollo-client-devtools/releases/tag/2.0.6",target:"_blank"},"using the previous version"),"."))},b=function(){return o.default.createElement(g,null,o.default.createElement("h2",{style:{color:"white"}},"Connecting to Apollo Client..."))},k=function(){return o.default.createElement(g,null,o.default.createElement("h1",{style:{color:"white"}},"We couldn't detect Apollo Client in your app!"),o.default.createElement("h3",{style:{color:"white"}},"To use the Apollo Devtools, make sure that ",o.default.createElement("code",null,"connectToDevTools")," ","is not disabled. To learn more about setting up Apollo Client to work with the Devtools, checkout this"," ",o.default.createElement("a",{style:{color:"white"},href:"https://github.com/apollographql/apollo-client-devtools#configuration",target:"_blank"},"link!")," ","The Devtools are turned off by default when running in production. To manually turn them on, set ",o.default.createElement("code",null,"connectToDevTools")," to be"," ",o.default.createElement("code",null,"true")))},w=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.onRun=function(e,t,n,i){r.setState({active:"graphiql",runQuery:e,runVariables:t?JSON.stringify(t,null,2):"",automaticallyRunQuery:i})},r.switchPane=function(e){r.setState({active:e,runQuery:void 0,runVariables:void 0})},r.state={active:"graphiql",tabData:{},runQuery:void 0,runVariables:void 0,version:void 0,automaticallyRunQuery:void 0,notFound:!1},r.props.bridge.on("ready",function(e){r.setState({version:e,notFound:!1}),r.props.bridge.send("panel:ready","ready")}),r.props.bridge.on("broadcast:new",function(e){var t=JSON.parse(e);r.setState(function(e){var n=e.tabData;return{tabData:Object.assign({},n,t),notFound:!1}})}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidMount",value:function(){var e=this;this._timeout=setTimeout(function(){e.state.version||e.setState({notFound:!0})},1e4)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timeout)}},{key:"render",value:function(){var e=this,t=this.state,n=t.active,r=t.tabData,i=t.version;if(t.notFound)return o.default.createElement(k,null);if(!i)return o.default.createElement(b,null);if(1===Number(i[0]))return o.default.createElement(y,{version:i});var v=void 0;switch(n){case"queries":v=o.default.createElement(u.default,{state:r,onRun:this.onRun});break;case"mutations":v=o.default.createElement(l.default,{state:r,onRun:this.onRun});break;case"store":v=o.default.createElement(c.default,{state:r});break;case"graphiql":v=o.default.createElement(s.default,{query:this.state.runQuery,variables:this.state.runVariables,automaticallyRunQuery:this.state.automaticallyRunQuery,theme:this.props.theme})}return o.default.createElement("div",{className:(0,a.default)("apollo-client-panel",{"in-window":this.props.isChrome},this.props.theme)},o.default.createElement(f.Sidebar,{className:"tabs",name:"nav-tabs"},o.default.createElement("div",{className:"tab logo-tab"},o.default.createElement(p.default,null)),o.default.createElement("div",{title:"GraphiQL console",className:(0,a.default)("tab",{active:"graphiql"===n}),onClick:function(){return e.switchPane("graphiql")}},o.default.createElement(d.default,null),o.default.createElement("h4",null,"GraphiQL")),o.default.createElement("div",{title:"Watched queries",className:(0,a.default)("tab",{active:"queries"===n}),onClick:function(){return e.switchPane("queries")}},o.default.createElement(m.default,null),o.default.createElement("h4",null,"Queries")),o.default.createElement("div",{title:"Watched mutations",className:(0,a.default)("tab",{active:"mutations"===n}),onClick:function(){return e.switchPane("mutations")}},o.default.createElement(m.default,null),o.default.createElement("h4",null,"Mutations")),o.default.createElement("div",{title:"Apollo client store",className:(0,a.default)("tab",{active:"store"===n}),onClick:function(){return e.switchPane("store")}},o.default.createElement(h.default,null),o.default.createElement("h4",null,"Cache"))),v)}}]),t}();t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(221),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=m(n(6)),o=m(n(2)),a=m(n(122)),u=m(n(123)),l=m(n(34)),s=n(48),c=n(13),f=n(9),p=n(124),d=n(52),h=m(n(133));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n(134);var b=function(e,t){var n=void 0;return t.queryString?n=(0,s.getOperationName)((0,c.parse)(t.queryString)):t.document&&(n=(0,s.getOperationName)(t.document)),!n&&t.document.loc.source&&(n=(0,s.getOperationName)((0,c.parse)(t.document.loc.source.body))),n||e},k=function(e){function t(e,n){v(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.state={selectedId:null},r}return y(t,o.default.Component),r(t,[{key:"selectId",value:function(e){this.setState({selectedId:e})}},{key:"getQueries",value:function(){return this.props.state?(0,a.default)(this.props.state.queries,function(e){return!e.stopped}):{}}},{key:"sortedQueryIds",value:function(){var e=this.getQueries();return(0,u.default)(Object.keys(e),function(e){return parseInt(e,10)})}},{key:"renderSidebarItem",value:function(e,t){var n=this,r=t.networkError||t.graphQLErrors&&t.graphQLErrors.length>0;return o.default.createElement("li",{key:e,onClick:function(){return n.selectId(e)},className:(0,l.default)("item",{active:e===this.state.selectedId,loading:t.loading,error:r})},o.default.createElement("div",{className:"item-row"},o.default.createElement("h4",null,b(e,t)),r&&o.default.createElement("span",{className:"error-icon"},o.default.createElement(h.default,null))))}},{key:"render",value:function(){var e=this,t=this.getQueries(),n=this.state.selectedId;return o.default.createElement("div",{className:"watchedQueries body"},o.default.createElement(d.Sidebar,{className:"sidebar",name:"watched-queries-sidebar"},o.default.createElement("h4",{className:"queries-sidebar-title"},"Watched queries"),o.default.createElement("ol",{className:"query-list"},this.sortedQueryIds().map(function(n){return e.renderSidebarItem(n,t[n])}))),n&&t[n]&&o.default.createElement(E,{queryId:n,query:t[n],onRun:this.props.onRun}))}}]),t}();k.propTypes={state:i.default.object};var w=function(e){function t(e,n){v(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),i=e.show,o=void 0===i||i;return r.state={show:o},r.toggle=r.toggle.bind(r),r}return y(t,o.default.Component),r(t,[{key:"toggle",value:function(){this.setState(function(e){return{show:!e.show}})}},{key:"render",value:function(){return o.default.createElement("div",{className:(0,l.default)(this.props.className,"toggled-section")},o.default.createElement("span",{onClick:this.toggle,className:"toggle"},o.default.createElement("span",{className:(0,l.default)("triangle",{toggled:!this.state.show})},"▾"),o.default.createElement("span",{className:"section-label"},this.props.label)),this.state.show&&o.default.createElement("div",{className:"labeled"},this.props.children))}}]),t}();w.propTypes={label:i.default.string.isRequired,children:i.default.any.isRequired,show:i.default.bool};var _=function(e){var t=e.variables;if(!t)return null;var n=[];return Object.keys(t).sort().forEach(function(e){n.push(o.default.createElement("tr",{key:"tr-"+e},o.default.createElement("td",{key:"dt-"+e},e),o.default.createElement("td",{key:"dd-"+e},JSON.stringify(t[e]))))}),o.default.createElement("table",null,o.default.createElement("tbody",null,n))},T=function(e){var t=e.error;return o.default.createElement("li",{className:"graphql-error"},t.message&&o.default.createElement("span",null,t.message))};T.propTypes={error:i.default.shape({message:i.default.string})};var E=function(e){function t(){return v(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return y(t,o.default.Component),r(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.queryId,r=t.query,i=r&&r.metadata&&r.metadata.reactComponent&&r.metadata.reactComponent.displayName,a=r&&r.metadata&&r.metadata.component&&r.metadata.component.displayName||i,u=r.queryString||(0,f.print)(r.document);return o.default.createElement("div",{className:(0,l.default)("main",{loading:r.loading})},o.default.createElement("div",{className:"panel-title"},b(n,r),a&&o.default.createElement("span",{className:"component-name"},"<"+a+">"),o.default.createElement("span",{className:"run-in-graphiql-link",onClick:function(){return e.props.onRun(u,r.variables,"WatchedQueries",!0)}},"Run in GraphiQL"),o.default.createElement("span",{className:(0,l.default)("loading-label",{show:r.loading})},"(loading)")),r.variables&&o.default.createElement(w,{label:"Variables"},o.default.createElement(_,{variables:r.variables})),o.default.createElement(w,{label:"Query string",show:!1},o.default.createElement(p.GraphqlCodeBlock,{className:"GraphqlCodeBlock",queryBody:u})),r.graphQLErrors&&r.graphQLErrors.length>0&&o.default.createElement(w,{label:"GraphQL Errors",show:r.graphQLErrors&&r.graphQLErrors.length>0},o.default.createElement("ul",null,r.graphQLErrors.map(function(e,t){return o.default.createElement(T,{key:t,error:e})}))),r.networkError&&o.default.createElement(w,{label:"Network Errors",show:!!r.networkError},o.default.createElement("pre",null,"There is a network error: ",JSON.stringify(r.networkError))))}}]),t}();t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(223),o=f(n(225)),a=n(2),u=f(a),l=f(n(6)),s=n(125),c=n(127);function f(e){return e&&e.__esModule?e:{default:e}}n(233);var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),r(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.queryBody,r=(0,s.print)((0,c.parse)(n)),a=[],l=[];(0,o.default)(r,{eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},LexRules:i.LexRules,ParseRules:i.ParseRules},function(e,t,n){var r=e._sourceText,i=e._start,o=e._pos;l[l.length-1]!==r&&(l.push(r),a.push([]));var s=r.substring(i,o);a[a.length-1].push(u.default.createElement("span",{key:l.length+"-"+i+"-"+o,className:n},s))});var f=[];return a.forEach(function(e,t){f.push(u.default.createElement("pre",{key:"query-row-"+t},e))}),u.default.createElement("div",{className:t},f)}}]),t}();p.propTypes={queryBody:l.default.string,className:l.default.string},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseRules=t.LexRules=t.isIgnored=void 0;var r,i=n(224);t.isIgnored=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e},t.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|\]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/},t.ParseRules={Document:[(0,i.list)("Definition")],Definition:function(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:[o("query"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],Mutation:[o("mutation"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],Subscription:[o("subscription"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,i.p)("("),(0,i.list)("VariableDefinition"),(0,i.p)(")")],VariableDefinition:["Variable",(0,i.p)(":"),"Type",(0,i.opt)("DefaultValue")],Variable:[(0,i.p)("$","variable"),a("variable")],DefaultValue:[(0,i.p)("="),"Value"],SelectionSet:[(0,i.p)("{"),(0,i.list)("Selection"),(0,i.p)("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[a("property"),(0,i.p)(":"),a("qualifier"),(0,i.opt)("Arguments"),(0,i.list)("Directive"),(0,i.opt)("SelectionSet")],Field:[a("property"),(0,i.opt)("Arguments"),(0,i.list)("Directive"),(0,i.opt)("SelectionSet")],Arguments:[(0,i.p)("("),(0,i.list)("Argument"),(0,i.p)(")")],Argument:[a("attribute"),(0,i.p)(":"),"Value"],FragmentSpread:[(0,i.p)("..."),a("def"),(0,i.list)("Directive")],InlineFragment:[(0,i.p)("..."),(0,i.opt)("TypeCondition"),(0,i.list)("Directive"),"SelectionSet"],FragmentDefinition:[o("fragment"),(0,i.opt)((0,i.butNot)(a("def"),[o("on")])),"TypeCondition",(0,i.list)("Directive"),"SelectionSet"],TypeCondition:[o("on"),(r="atom",{style:r,match:function(e){return"Name"===e.kind},update:function(e,t){e.prevState.type=t.value}})],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"EnumValue"}},NumberValue:[(0,i.t)("Number","number")],StringValue:[(0,i.t)("String","string")],BooleanValue:[(0,i.t)("Name","builtin")],EnumValue:[a("string-2")],ListValue:[(0,i.p)("["),(0,i.list)("Value"),(0,i.p)("]")],ObjectValue:[(0,i.p)("{"),(0,i.list)("ObjectField"),(0,i.p)("}")],ObjectField:[a("attribute"),(0,i.p)(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NamedType"},ListType:[(0,i.p)("["),"Type",(0,i.p)("]"),(0,i.opt)((0,i.p)("!"))],NamedType:[a("atom"),(0,i.opt)((0,i.p)("!"))],Directive:[(0,i.p)("@","meta"),a("meta"),(0,i.opt)("Arguments")],SchemaDef:[o("schema"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("OperationTypeDef"),(0,i.p)("}")],OperationTypeDef:[a("keyword"),(0,i.p)(":"),a("atom")],ScalarDef:[o("scalar"),a("atom"),(0,i.list)("Directive")],ObjectTypeDef:[o("type"),a("atom"),(0,i.opt)("Implements"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("FieldDef"),(0,i.p)("}")],Implements:[o("implements"),(0,i.list)(a("atom"))],FieldDef:[a("property"),(0,i.opt)("ArgumentsDef"),(0,i.p)(":"),"Type",(0,i.list)("Directive")],ArgumentsDef:[(0,i.p)("("),(0,i.list)("InputValueDef"),(0,i.p)(")")],InputValueDef:[a("attribute"),(0,i.p)(":"),"Type",(0,i.opt)("DefaultValue"),(0,i.list)("Directive")],InterfaceDef:[o("interface"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("FieldDef"),(0,i.p)("}")],UnionDef:[o("union"),a("atom"),(0,i.list)("Directive"),(0,i.p)("="),a("atom"),(0,i.list)("UnionMember")],UnionMember:[(0,i.p)("|"),a("atom")],EnumDef:[o("enum"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("EnumValueDef"),(0,i.p)("}")],EnumValueDef:[a("string-2"),(0,i.list)("Directive")],InputDef:[o("input"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("InputValueDef"),(0,i.p)("}")],ExtendDef:[o("extend"),"ObjectTypeDef"],DirectiveDef:[o("directive"),(0,i.p)("@","meta"),a("meta"),(0,i.opt)("ArgumentsDef"),o("on"),a("string-2"),(0,i.list)("DirectiveLocation")],DirectiveLocation:[(0,i.p)("|"),a("string-2")]};function o(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function a(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opt=function(e){return{ofRule:e}},t.list=function(e,t){return{ofRule:e,isList:!0,separator:t}},t.butNot=function(e,t){var n=e.match;return e.match=function(e){return n(e)&&t.every(function(t){return!t.match(e)})},e},t.t=function(e,t){return{style:t,match:function(t){return t.kind===e}}},t.p=function(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=(0,i.default)(t),a=o.startState();e.split("\n").forEach(function(e){for(var t=new r.default(e);!t.eol();){var i=o.token(t,a);n(t,a,i)}})};var r=o(n(226)),i=o(n(227));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._start=0,this._pos=0,this._sourceText=t}return i(e,[{key:"getStartOfToken",value:function(){return this._start}},{key:"getCurrentPosition",value:function(){return this._pos}},{key:"_testNextCharacter",value:function(e){var t=this._sourceText.charAt(this._pos);return"string"==typeof e?t===e:e.test?e.test(t):e(t)}},{key:"eol",value:function(){return this._sourceText.length===this._pos}},{key:"sol",value:function(){return 0===this._pos}},{key:"peek",value:function(){return Boolean(this._sourceText.charAt(this._pos))?this._sourceText.charAt(this._pos):null}},{key:"next",value:function(){var e=this._sourceText.charAt(this._pos);return this._pos++,e}},{key:"eat",value:function(e){if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)}},{key:"eatWhile",value:function(e){var 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}},{key:"eatSpace",value:function(){return this.eatWhile(/[\s\u00a0]/)}},{key:"skipToEnd",value:function(){this._pos=this._sourceText.length}},{key:"skipTo",value:function(e){this._pos=e}},{key:"match",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments[2],i=null,o=null;switch(void 0===e?"undefined":r(e)){case"string":o=new RegExp(e,n?"i":"").test(this._sourceText.substr(this._pos,e.length)),i=e;break;case"object":case"function":o=this._sourceText.slice(this._pos).match(e),i=o&&o[0]}return!(!o||"string"!=typeof e&&0!==o.index)&&(t&&(this._start=this._pos,this._pos+=i.length),o)}},{key:"backUp",value:function(e){this._pos-=e}},{key:"column",value:function(){return this._pos}},{key:"indentation",value:function(){var e=this._sourceText.match(/\s*/),t=0;if(e&&0===e.index)for(var n=e[0],r=0;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++;return t}},{key:"current",value:function(){return this._sourceText.slice(this._start,this._pos)}}]),e}();t.default=o},function(e,t,n){"use strict";function r(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{startState:function(){var t={level:0};return o(e.ParseRules,t,"Document"),t},token:function(t,n){return function(e,t,n){var a=n.LexRules,l=n.ParseRules,c=n.eatWhitespace,f=n.editorConfig;t.needsAdvance&&(t.needsAdvance=!1,u(t,!0));if(e.sol()){var p=f&&f.tabSize||2;t.indentLevel=Math.floor(e.indentation()/p)}if(c(e))return"ws";if("#"===e.peek())return e.skipToEnd(),"comment";var d=function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=t.match(e[n[r]]);if(i)return{kind:n[r],value:i[0]}}}(a,e);if(!d)return e.match(/\S+/),"invalidchar";if(function(e){r(i,e)}(t),"Punctuation"===d.kind)if(/^[{([]/.test(d.value))t.levels=(t.levels||[]).concat(t.indentLevel+1);else if(/^[})\]]/.test(d.value)){var h=t.levels=(t.levels||[]).slice(0,-1);h.length>0&&h[h.length-1]<t.indentLevel&&(t.indentLevel=h[h.length-1])}for(;t.rule;){var m="function"==typeof t.rule?0===t.step?t.rule(d,e):null:t.rule[t.step];if(t.needsSeperator&&(m=m&&m.separator),m){if(m.ofRule&&(m=m.ofRule),"string"==typeof m){o(l,t,m);continue}if(m.match&&m.match(d))return m.update&&m.update(t,d),"Punctuation"===d.kind?u(t,!0):t.needsAdvance=!0,m.style}s(t)}return function(e){r(e,i)}(t),"invalidchar"}(t,n,e)}}};var i={};function o(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=r({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeperator=!1}function a(e){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 u(e,t){if(l(e)){if(e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator,!e.needsSeperator))return;if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)a(e),e.rule&&(l(e)?e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function l(e){return Array.isArray(e.rule)&&e.rule[e.step].isList}function s(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)a(e);e.rule&&u(e,!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=t.visitWithTypeInfo=t.visitInParallel=t.visit=t.Source=t.print=t.parseType=t.parseValue=t.parse=t.TokenKind=t.createLexer=t.Kind=t.getLocation=void 0;var r=n(130);Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return r.getLocation}});var i=n(131);Object.defineProperty(t,"createLexer",{enumerable:!0,get:function(){return i.createLexer}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return i.TokenKind}});var o=n(127);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return o.parseValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return o.parseType}});var a=n(125);Object.defineProperty(t,"print",{enumerable:!0,get:function(){return a.print}});var u=n(128);Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return u.Source}});var l=n(126);Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return l.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return l.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return l.visitWithTypeInfo}}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return l.BREAK}});var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(132));t.Kind=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){var a=(0,r.getLocation)(e,t);return new i.GraphQLError("Syntax Error "+e.name+" ("+a.line+":"+a.column+") "+n+"\n\n"+function(e,t){var n=t.line,r=(n-1).toString(),i=n.toString(),a=(n+1).toString(),u=a.length,l=e.body.split(/\r\n|[\n\r]/g);return(n>=2?o(u,r)+": "+l[n-2]+"\n":"")+o(u,i)+": "+l[n-1]+"\n"+Array(2+u+t.column).join(" ")+"^\n"+(n<l.length?o(u,a)+": "+l[n]+"\n":"")}(e,a),void 0,e,[t])};var r=n(130),i=n(79);function o(e,t){return Array(e-t.length+1).join(" ")+t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){if(e&&e.locations)return e;var i=e?e.message||String(e):"An unknown error occurred.";return new r.GraphQLError(i,t,void 0,void 0,n,e)};var r=n(79)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatError=function(e){return(0,o.default)(e,"Received null or undefined error."),{message:e.message,locations:e.locations}};var r,i=n(232),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw new Error(t)}},function(e,t,n){var r=n(234);"string"==typeof r&&(r=[[e.i,r,""]]);n(30)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(29)()).push([e.i,".GraphqlCodeBlock pre {\n  background: transparent;\n  background-color: transparent;\n  margin: 0;\n  padding: 0;\n  text-align: left;\n}\n\n/* colors copied from graphiql */\n.GraphqlCodeBlock span.comment {\n  color: #999999;\n}\n\n.GraphqlCodeBlock span.number {\n  color: #2882F9;\n}\n\n.GraphqlCodeBlock span.variable {\n  color: #397D13;\n}\n\n.GraphqlCodeBlock span.atom {\n  color: #CA9800;\n}\n\n.GraphqlCodeBlock span.attribute {\n  color: #8B2BB9;\n}\n\n.GraphqlCodeBlock span.punctuation {\n  color: #555555;\n}\n\n.GraphqlCodeBlock span.keyword {\n  color: #B11A04;\n}\n\n.GraphqlCodeBlock span.def {\n  color: #D2054E;\n}\n\n.GraphqlCodeBlock span.property {\n  color: #1F61A0;\n}\n",""])},function(e,t,n){(e.exports=n(29)()).push([e.i,'.dark .watchedQueries {\n  background-color: #333333;\n  color: #FFF;\n}\n.dark .watchedQueries .sidebar {\n  border-right-color: #3d3d3d;\n  border-left: 1px solid #3d3d3d;\n  background-color: #2a2a2a;\n}\n.dark .watchedQueries .sidebar .queries-sidebar-title {\n  background-color: #2a2a2a;\n  border-bottom-color: #3d3d3d;\n  color: #FFF !important;\n}\n.dark .watchedQueries .main {\n  background-color: #333333;\n}\n.dark .watchedQueries .main table tr {\n  color: #CCC;\n}\n.dark .watchedQueries .main .component-name {\n  color: #c678dd !important;\n}\n.dark .watchedQueries .main .GraphqlCodeBlock span.comment {\n  color: #CCC;\n}\n.dark .watchedQueries .main .GraphqlCodeBlock span.number {\n  color: #5db0d7;\n}\n.dark .watchedQueries .main .GraphqlCodeBlock span.variable {\n  color: #35d4c7;\n}\n.dark .watchedQueries .main .GraphqlCodeBlock span.atom {\n  color: #f29766;\n}\n.dark .watchedQueries .main .GraphqlCodeBlock span.attribute {\n  color: #c678dd;\n}\n.dark .watchedQueries .main .GraphqlCodeBlock span.punctuation {\n  color: #CCCCCC;\n}\n.dark .watchedQueries .main .GraphqlCodeBlock span.keyword {\n  color: #e7c26f;\n}\n.dark .watchedQueries .main .GraphqlCodeBlock span.def {\n  color: #ff8080;\n}\n.dark .watchedQueries .main .GraphqlCodeBlock span.property {\n  color: #9bbbdc;\n}\n.watchedQueries {\n  display: flex;\n  flex-direction: row;\n  background-color: white;\n}\n.watchedQueries .sidebar {\n  background-color: white;\n  flex: none;\n  width: 200px;\n  border-right: 1px solid #DDD;\n}\n.watchedQueries .sidebar .queries-sidebar-title {\n  font-weight: bold;\n  background-color: #FBFBFB;\n  border-bottom: 1px solid #CCC;\n  line-height: 33px;\n  padding-left: 10px;\n}\n.apollo-client-panel.dark .watchedQueries .sidebar .queries-sidebar-title {\n  color: #333333;\n}\n.watchedQueries .sidebar .query-list {\n  padding: 0 0 0 25px;\n  margin: 0;\n}\n.watchedQueries .sidebar .query-list .item {\n  padding: 10px 10px 0;\n  font-size: 12px;\n  cursor: pointer;\n  transition: .25s;\n}\n.watchedQueries .sidebar .query-list .item:hover span {\n  color: rgba(51, 51, 51, 0.6);\n}\n.apollo-client-panel.dark .watchedQueries .sidebar .query-list .item:hover span {\n  color: rgba(255, 255, 255, 0.6);\n}\n.watchedQueries .sidebar .query-list .item.active span {\n  color: #22a699;\n}\n.watchedQueries .sidebar .query-list .item.active:hover span {\n  color: rgba(34, 166, 153, 0.6);\n}\n.watchedQueries .sidebar .query-list .item.loading span {\n  color: #AAA;\n}\n.watchedQueries .sidebar .query-list .item .item-row {\n  display: inline-flex;\n  justify-content: space-between;\n  align-items: center;\n  width: 100%;\n}\n.watchedQueries .sidebar .query-list .item .item-row span {\n  max-width: 95%;\n  word-wrap: break-word;\n}\n.watchedQueries .sidebar .query-list .item .item-row .error-icon {\n  width: 16px;\n  height: 16px;\n}\n.watchedQueries .main {\n  background-color: white;\n  flex: 1;\n  overflow-y: auto;\n  padding: 20px;\n}\n.watchedQueries .main .toggled-section {\n  margin-bottom: 10px;\n}\n.watchedQueries .main .toggled-section:last-of-type {\n  margin: 0;\n}\n.watchedQueries .main .toggled-section table tr {\n  font-size: 12px;\n}\n.apollo-client-panel.dark .watchedQueries .main .toggled-section table tr {\n  color: #dddddd;\n}\n.watchedQueries .main .toggled-section table tr td:first-child {\n  font-weight: bold;\n  padding: 0 15px 0 5px;\n}\n.watchedQueries .main .toggled-section table tr td:nth-child(2) {\n  font-family: monospace;\n}\n.watchedQueries .main .panel-title {\n  font-size: 14px;\n  font-family: "Source Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;\n  margin-bottom: 10px;\n}\n.watchedQueries .main .panel-title .loading-label {\n  font-size: 12px;\n  font-family: sans-serif;\n  margin-left: 10px;\n  color: #AAA;\n  opacity: 0;\n  transition: .25s;\n}\n.watchedQueries .main .panel-title .loading-label.show {\n  opacity: 1;\n}\n.watchedQueries .main .panel-title .component-name {\n  color: #8B2BB9;\n  font-weight: normal;\n  font-family: monospace;\n  margin-left: 10px;\n}\n.watchedQueries .main .panel-title .run-in-graphiql-link {\n  font-size: 10px;\n  cursor: pointer;\n  font-family: sans-serif;\n  margin-left: 10px;\n  padding: 2px 5px;\n  border-radius: 3px;\n  border: 1px solid #CCC;\n}\n.watchedQueries .main .panel-title .run-in-graphiql-link:hover {\n  box-shadow: inset 6px 6px 30px #CCC;\n}\n.watchedQueries .main pre {\n  border: none;\n  font-family: monospace;\n  font-size: 12px;\n}\n.watchedQueries .main .loading {\n  background: #AAA;\n}\n.watchedQueries .main .graphql-error {\n  white-space: pre-wrap;\n  font-family: Menlo, Monaco, Consolas, monospace;\n}\n.watchedQueries .toggle {\n  font-size: 12px;\n  font-family: "Source Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;\n  font-weight: bold;\n  cursor: pointer;\n  display: block;\n}\n.watchedQueries .toggle .triangle {\n  width: 15px;\n  display: inline-block;\n  transition: 300ms all cubic-bezier(0.175, 0.885, 0.335, 1.05);\n  line-height: 15px;\n  vertical-align: top;\n  text-align: center;\n}\n.watchedQueries .toggle .triangle.toggled {\n  transform: rotate(-90deg);\n}\n.watchedQueries .toggle .section-label {\n  line-height: 15px;\n  display: inline-block;\n  vertical-align: top;\n}\n.watchedQueries .toggle:hover .section-label {\n  text-decoration: underline;\n}\n.watchedQueries .labeled {\n  padding-left: 16px;\n}\n.watchedQueries td {\n  font-family: "Source Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;\n}\n',""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(237),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=m(n(6)),o=m(n(2)),a=m(n(122)),u=m(n(123)),l=m(n(34)),s=n(48),c=n(13),f=n(9),p=n(124),d=n(52),h=m(n(133));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n(134);var b=function(e,t){var n=(0,s.getOperationName)((0,c.parse)(t.mutationString||t.document.loc.source.body));return null===n?e:""+n},k=function(e){function t(e,n){v(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.state={selectedId:null},r}return y(t,o.default.Component),r(t,[{key:"selectId",value:function(e){this.setState({selectedId:e})}},{key:"getMutations",value:function(){return this.props.state?(0,a.default)(this.props.state.mutations,function(e){return!e.stopped}):{}}},{key:"sortedMutationIds",value:function(){var e=this.getMutations();return(0,u.default)(Object.keys(e),function(e){return parseInt(e,10)})}},{key:"renderSidebarItem",value:function(e,t){var n=this,r=t.networkError||t.graphQLErrors&&t.graphQLErrors.length>0;return o.default.createElement("li",{key:e,onClick:function(){return n.selectId(e)},className:(0,l.default)("item",{active:e===this.state.selectedId,loading:t.loading,error:r})},o.default.createElement("div",{className:"item-row"},o.default.createElement("h4",null,b(e,t)),r&&o.default.createElement("span",{className:"error-icon"},o.default.createElement(h.default,null))))}},{key:"render",value:function(){var e=this,t=this.getMutations(),n=this.state.selectedId;return o.default.createElement("div",{className:"watchedQueries body"},o.default.createElement(d.Sidebar,{className:"sidebar",name:"watched-mutations-sidebar"},o.default.createElement("h4",{className:"queries-sidebar-title"},"Mutation log"),o.default.createElement("ol",{className:"query-list"},this.sortedMutationIds().map(function(n){return e.renderSidebarItem(n,t[n])}))),n&&t[n]&&o.default.createElement(E,{mutationId:n,mutation:t[n],onRun:this.props.onRun}))}}]),t}();k.propTypes={state:i.default.object};var w=function(e){function t(e,n){v(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),i=e.show,o=void 0===i||i;return r.state={show:o},r.toggle=r.toggle.bind(r),r}return y(t,o.default.Component),r(t,[{key:"toggle",value:function(){this.setState(function(e){return{show:!e.show}})}},{key:"render",value:function(){return o.default.createElement("div",{className:(0,l.default)(this.props.className,"toggled-section")},o.default.createElement("span",{onClick:this.toggle,className:"toggle"},o.default.createElement("span",{className:(0,l.default)("triangle",{toggled:!this.state.show})},"▾"),o.default.createElement("span",{className:"section-label"},this.props.label)),this.state.show&&o.default.createElement("div",{className:"labeled"},this.props.children))}}]),t}();w.propTypes={label:i.default.string.isRequired,children:i.default.any.isRequired,show:i.default.bool};var _=function(e){var t=e.variables;if(!t)return null;var n=[];return Object.keys(t).sort().forEach(function(e){n.push(o.default.createElement("tr",{key:"tr-"+e},o.default.createElement("td",{key:"dt-"+e},e),o.default.createElement("td",{key:"dd-"+e},JSON.stringify(t[e]))))}),o.default.createElement("table",null,o.default.createElement("tbody",null,n))},T=function(e){var t=e.error;return o.default.createElement("li",{className:"graphql-error"},t.message&&o.default.createElement("span",null,t.message))};T.propTypes={error:i.default.shape({message:i.default.string})};var E=function(e){function t(){return v(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return y(t,o.default.Component),r(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.mutationId,r=t.mutation,i=r&&r.metadata&&r.metadata.reactComponent&&r.metadata.reactComponent.displayName,a=r&&r.metadata&&r.metadata.component&&r.metadata.component.displayName||i,u=r.mutationString||(0,f.print)(r.document);return o.default.createElement("div",{className:(0,l.default)("main",{loading:r.loading})},o.default.createElement("div",{className:"panel-title"},b(n,r),a&&o.default.createElement("span",{className:"component-name"},"<"+a+">"),o.default.createElement("span",{className:"run-in-graphiql-link",onClick:function(){return e.props.onRun(u,r.variables,"Mutations",!1)}},"Run in GraphiQL"),o.default.createElement("span",{className:(0,l.default)("loading-label",{show:r.loading})},"(loading)")),r.variables&&o.default.createElement(w,{label:"Variables"},o.default.createElement(_,{variables:r.variables})),o.default.createElement(w,{label:"Mutation string",show:!1},o.default.createElement(p.GraphqlCodeBlock,{className:"GraphqlCodeBlock",queryBody:u})),r.graphQLErrors&&r.graphQLErrors.length>0&&o.default.createElement(w,{label:"GraphQL Errors",show:r.graphQLErrors&&r.graphQLErrors.length>0},o.default.createElement("ul",null,r.graphQLErrors.map(function(e,t){return o.default.createElement(T,{key:t,error:e})}))),r.networkError&&o.default.createElement(w,{label:"Network Errors",show:!!r.networkError},o.default.createElement("pre",null,"There is a network error: ",JSON.stringify(r.networkError))))}}]),t}();t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(239),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Explorer=t.createBridgeLink=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(v(n(6)),n(2)),o=v(i),a=v(n(240)),u=v(n(361)),l=v(n(192)),s=n(13),c=n(9),f=n(163),p=n(362),d=n(162),h=n(108),m=n(200);function v(e){return e&&e.__esModule?e:{default:e}}n(387),n(389);var g=(0,s.parse)(f.introspectionQuery),y=f.introspectionQuery.replace(/\s/g,""),b=t.createBridgeLink=function(e){return new h.ApolloLink(function(t){return new h.Observable(function(n){var r=t.toKey(),i=t.query,o=t.operationName,a=t.variables,s=function(){return n.complete()},h=function(e){return n.error(JSON.parse(e))},m=function(e){var t=JSON.parse(e);if(!t.extensions||!t.extensions.schemas||(0,c.print)(i).replace(/\s/g,"")!==y)return t.extensions&&(delete t.extensions.schemas,0===Object.keys(t.extensions).length&&delete t.extensions),void n.next(t);var r=t.extensions.schemas,o=r.filter(function(e){return!e.definition}).map(function(e){return e.directives}),a=r.filter(function(e){return!!e.definition}).map(function(e){var t=e.definition,n=e.directives,r=void 0===n?"":n;return(0,f.buildSchema)(r+" "+t)}),s=a.map(function(e){return e._directives}),h=void 0;if(t.data&&0!==Object.keys(t.data).length){var m=(0,f.buildClientSchema)(t.data),v=(0,f.printSchema)(m);v=v+" "+o.join("\n"),m=(0,f.buildSchema)(v),s=s.concat(m._directives),h=(0,p.mergeSchemas)({schemas:[m].concat(a)})}else h=(0,p.mergeSchemas)({schemas:a});h._directives=(0,u.default)((0,l.default)(h._directives.concat(s)),"name");try{var b=(0,d.execute)(h,g);n.next(b)}catch(e){n.error(e.stack)}};e.on("link:next:"+r,m),e.on("link:error:"+r,h),e.on("link:complete:"+r,s);var v=JSON.stringify({query:(0,c.print)(i),operationName:o,variables:a,key:r,fetchPolicy:t.getContext().noFetch?"cache-only":"no-cache"});return e.send("link:operation",v),function(){e.removeListener("link:next:"+r,m),e.removeListener("link:error:"+r,h),e.removeListener("link:complete:"+r,s)}})})},k=t.Explorer=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.fetcher=function(e){var t=e.query,n=e.variables,i=void 0===n?{}:n;return(0,h.execute)(r.link,{query:(0,s.parse)(t),variables:i,context:{noFetch:r.state.noFetch}})},r.handleClickPrettifyButton=function(e){var t=r.graphiql.getQueryEditor(),n=t.getValue(),i=(0,c.print)((0,s.parse)(n));t.setValue(i)},r.state={noFetch:!1,query:r.props.query,variables:r.props.variables},r.link=b(r.props.bridge),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidMount",value:function(){this.props.query&&this.props.automaticallyRunQuery&&this.graphiql.handleRunQuery()}},{key:"clearDefaultQueryState",value:function(){this.setState({query:void 0,variables:void 0})}},{key:"render",value:function(){var e=this,t=this.state.noFetch,n=this.props.theme,r=o.default.createElement(a.default,{fetcher:this.fetcher,query:this.state.query,editorTheme:"dark"===n?"dracula":"graphiql",onEditQuery:function(){e.clearDefaultQueryState()},onEditVariables:function(){e.clearDefaultQueryState()},variables:this.state.variables,ref:function(t){e.graphiql=t}},o.default.createElement(a.default.Toolbar,null,o.default.createElement(a.default.Button,{onClick:this.handleClickPrettifyButton,label:"Prettify"}),o.default.createElement("label",null,o.default.createElement("input",{type:"checkbox",checked:t,style:{verticalAlign:"middle"},onChange:function(){e.setState({noFetch:!t,query:void 0,variables:void 0})}}),"Load from cache")));return o.default.createElement("div",{className:"body"},r)}}]),t}();t.default=(0,m.withBridge)(k)},function(e,t,n){"use strict";e.exports=n(241).GraphiQL},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.GraphiQL=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=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},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=N(n(2)),u=N(n(6)),l=N(n(65)),s=n(1),c=n(258),f=n(259),p=n(260),d=n(261),h=n(262),m=n(263),v=n(336),g=n(342),y=n(344),b=n(350),k=N(n(353)),w=N(n(354)),_=N(n(355)),T=N(n(356)),E=N(n(191)),x=N(n(357)),O=n(358),C=n(359),S=n(360);function N(e){return e&&e.__esModule?e:{default:e}}var L=350,D=t.GraphiQL=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));if(A.call(t),"function"!=typeof e.fetcher)throw new TypeError("GraphiQL requires a fetcher function.");t._storage=new w.default(e.storage);var o=void 0!==e.query?e.query:null!==t._storage.get("query")?t._storage.get("query"):void 0!==e.defaultQuery?e.defaultQuery:I,a=(0,_.default)(e.schema,o),u=void 0!==e.variables?e.variables:t._storage.get("variables"),l=void 0!==e.operationName?e.operationName:(0,T.default)(null,t._storage.get("operationName"),a&&a.operations);return t.state=i({schema:e.schema,query:o,variables:u,operationName:l,response:e.response,editorFlex:Number(t._storage.get("editorFlex"))||1,variableEditorOpen:Boolean(u),variableEditorHeight:Number(t._storage.get("variableEditorHeight"))||200,docExplorerOpen:"true"===t._storage.get("docExplorerOpen")||!1,historyPaneOpen:"true"===t._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(t._storage.get("docExplorerWidth"))||L,isWaitingForResponse:!1,subscription:null},a),t._editorQueryID=0,"object"===("undefined"==typeof window?"undefined":r(window))&&window.addEventListener("beforeunload",function(){return t.componentWillUnmount()}),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,a.default.Component),o(n,[{key:"componentDidMount",value:function(){void 0===this.state.schema&&this._fetchSchema(),this.codeMirrorSizer=new k.default,e.g=this}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.state.schema,r=this.state.query,i=this.state.variables,o=this.state.operationName,a=this.state.response;if(void 0!==e.schema&&(n=e.schema),void 0!==e.query&&(r=e.query),void 0!==e.variables&&(i=e.variables),void 0!==e.operationName&&(o=e.operationName),void 0!==e.response&&(a=e.response),n!==this.state.schema||r!==this.state.query||o!==this.state.operationName){var u=this._updateQueryFacts(r,o,this.state.operations,n);void 0!==u&&(o=u.operationName,this.setState(u))}void 0===e.schema&&e.fetcher!==this.props.fetcher&&(n=void 0),this.setState({schema:n,query:r,variables:i,operationName:o,response:a},function(){void 0===t.state.schema&&(t.docExplorerComponent.reset(),t._fetchSchema())})}},{key:"componentDidUpdate",value:function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.resultComponent])}},{key:"componentWillUnmount",value:function(){this._storage.set("query",this.state.query),this._storage.set("variables",this.state.variables),this._storage.set("operationName",this.state.operationName),this._storage.set("editorFlex",this.state.editorFlex),this._storage.set("variableEditorHeight",this.state.variableEditorHeight),this._storage.set("docExplorerWidth",this.state.docExplorerWidth),this._storage.set("docExplorerOpen",this.state.docExplorerOpen),this._storage.set("historyPaneOpen",this.state.historyPaneOpen)}},{key:"render",value:function(){var e=this,t=a.default.Children.toArray(this.props.children),r=(0,x.default)(t,function(e){return e.type===n.Logo})||a.default.createElement(n.Logo,null),i=(0,x.default)(t,function(e){return e.type===n.Toolbar})||a.default.createElement(n.Toolbar,null,a.default.createElement(f.ToolbarButton,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),a.default.createElement(f.ToolbarButton,{onClick:this.handleToggleHistory,title:"Show History",label:"History"})),o=(0,x.default)(t,function(e){return e.type===n.Footer}),u={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},l={display:this.state.docExplorerOpen?"block":"none",width:this.state.docExplorerWidth},s="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),p={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:"7"},d=this.state.variableEditorOpen,h={height:d?this.state.variableEditorHeight:null};return a.default.createElement("div",{className:"graphiql-container"},a.default.createElement("div",{className:"historyPaneWrap",style:p},a.default.createElement(b.QueryHistory,{operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,queryID:this._editorQueryID},a.default.createElement("div",{className:"docExplorerHide",onClick:this.handleToggleHistory},"✕"))),a.default.createElement("div",{className:"editorWrap"},a.default.createElement("div",{className:"topBarWrap"},a.default.createElement("div",{className:"topBar"},r,a.default.createElement(c.ExecuteButton,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),i),!this.state.docExplorerOpen&&a.default.createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs},"Docs")),a.default.createElement("div",{ref:function(t){e.editorBarComponent=t},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},a.default.createElement("div",{className:"queryWrap",style:u},a.default.createElement(m.QueryEditor,{ref:function(t){e.queryEditorComponent=t},schema:this.state.schema,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onPrettifyQuery:this.handlePrettifyQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme}),a.default.createElement("div",{className:"variable-editor",style:h},a.default.createElement("div",{className:"variable-editor-title",style:{cursor:d?"row-resize":"n-resize"},onMouseDown:this.handleVariableResizeStart},"Query Variables"),a.default.createElement(v.VariableEditor,{ref:function(t){e.variableEditorComponent=t},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme}))),a.default.createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&a.default.createElement("div",{className:"spinner-container"},a.default.createElement("div",{className:"spinner"})),a.default.createElement(g.ResultViewer,{ref:function(t){e.resultComponent=t},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip}),o))),a.default.createElement("div",{className:s,style:l},a.default.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),a.default.createElement(y.DocExplorer,{ref:function(t){e.docExplorerComponent=t},schema:this.state.schema},a.default.createElement("div",{className:"docExplorerHide",onClick:this.handleToggleDocs},"✕"))))}},{key:"getQueryEditor",value:function(){return this.queryEditorComponent.getCodeMirror()}},{key:"getVariableEditor",value:function(){return this.variableEditorComponent.getCodeMirror()}},{key:"refresh",value:function(){this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent.getCodeMirror().refresh(),this.resultComponent.getCodeMirror().refresh()}},{key:"autoCompleteLeafs",value:function(){var e=(0,O.fillLeafs)(this.state.schema,this.state.query,this.props.getDefaultFieldNames),t=e.insertions,n=e.result;if(t&&t.length>0){var r=this.getQueryEditor();r.operation(function(){var e=r.getCursor(),i=r.indexFromPos(e);r.setValue(n);var o=0,a=t.map(function(e){var t=e.index,n=e.string;return r.markText(r.posFromIndex(t+o),r.posFromIndex(t+(o+=n.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(function(){return a.forEach(function(e){return e.clear()})},7e3);var u=i;t.forEach(function(e){var t=e.index,n=e.string;t<i&&(u+=n.length)}),r.setCursor(r.posFromIndex(u))})}return n}},{key:"_fetchSchema",value:function(){var e=this,t=this.props.fetcher,n=j(t({query:S.introspectionQuery}));F(n)?n.then(function(e){if(e.data)return e;var r=j(t({query:S.introspectionQuerySansSubscriptions}));if(!F(n))throw new Error("Fetcher did not return a Promise for introspection.");return r}).then(function(t){if(void 0===e.state.schema)if(t&&t.data){var n=(0,s.buildClientSchema)(t.data),r=(0,_.default)(n,e.state.query);e.setState(i({schema:n},r))}else{var o="string"==typeof t?t:JSON.stringify(t,null,2);e.setState({schema:null,response:o})}}).catch(function(t){e.setState({schema:null,response:t&&String(t.stack||t)})}):this.setState({response:"Fetcher did not return a Promise for introspection."})}},{key:"_fetchQuery",value:function(e,t,n,i){var o=this,a=this.props.fetcher,u=null;try{u=t&&""!==t.trim()?JSON.parse(t):null}catch(e){throw new Error("Variables are invalid JSON: "+e.message+".")}if("object"!==(void 0===u?"undefined":r(u)))throw new Error("Variables are not a JSON object.");var l=a({query:e,variables:u,operationName:n});if(!F(l)){if(M(l))return l.subscribe({next:i,error:function(e){o.setState({isWaitingForResponse:!1,response:e&&String(e.stack||e),subscription:null})},complete:function(){o.setState({isWaitingForResponse:!1,subscription:null})}});throw new Error("Fetcher did not return Promise or Observable.")}l.then(i).catch(function(e){o.setState({isWaitingForResponse:!1,response:e&&String(e.stack||e)})})}},{key:"_runQueryAtCursor",value:function(){if(this.state.subscription)this.handleStopQuery();else{var e=void 0,t=this.state.operations;if(t){var n=this.getQueryEditor();if(n.hasFocus())for(var r=n.getCursor(),i=n.indexFromPos(r),o=0;o<t.length;o++){var a=t[o];if(a.loc.start<=i&&a.loc.end>=i){e=a.name&&a.name.value;break}}}this.handleRunQuery(e)}}},{key:"_didClickDragBar",value:function(e){if(0!==e.button||e.ctrlKey)return!1;var t=e.target;if(0!==t.className.indexOf("CodeMirror-gutter"))return!1;for(var n=l.default.findDOMNode(this.resultComponent);t;){if(t===n)return!0;t=t.parentNode}return!1}}]),n}();D.propTypes={fetcher:u.default.func.isRequired,schema:u.default.instanceOf(s.GraphQLSchema),query:u.default.string,variables:u.default.string,operationName:u.default.string,response:u.default.string,storage:u.default.shape({getItem:u.default.func,setItem:u.default.func,removeItem:u.default.func}),defaultQuery:u.default.string,onEditQuery:u.default.func,onEditVariables:u.default.func,onEditOperationName:u.default.func,onToggleDocs:u.default.func,getDefaultFieldNames:u.default.func,editorTheme:u.default.string,onToggleHistory:u.default.func,ResultsTooltip:u.default.any};var A=function(){var e=this;this.handleClickReference=function(t){e.setState({docExplorerOpen:!0},function(){e.docExplorerComponent.showDocForReference(t)})},this.handleRunQuery=function(t){e._editorQueryID++;var n=e._editorQueryID,r=e.autoCompleteLeafs()||e.state.query,i=e.state.variables,o=e.state.operationName;t&&t!==o&&(o=t,e.handleEditOperationName(o));try{e.setState({isWaitingForResponse:!0,response:null,operationName:o});var a=e._fetchQuery(r,i,o,function(t){n===e._editorQueryID&&e.setState({isWaitingForResponse:!1,response:JSON.stringify(t,null,2)})});e.setState({subscription:a})}catch(t){e.setState({isWaitingForResponse:!1,response:t.message})}},this.handleStopQuery=function(){var t=e.state.subscription;e.setState({isWaitingForResponse:!1,subscription:null}),t&&t.unsubscribe()},this.handlePrettifyQuery=function(){var t=e.getQueryEditor();t.setValue((0,s.print)((0,s.parse)(t.getValue())))},this.handleEditQuery=(0,E.default)(100,function(t){var n=e._updateQueryFacts(t,e.state.operationName,e.state.operations,e.state.schema);if(e.setState(i({query:t},n)),e.props.onEditQuery)return e.props.onEditQuery(t)}),this._updateQueryFacts=function(t,n,r,o){var a=(0,_.default)(o,t);if(a){var u=(0,T.default)(r,n,a.operations),l=e.props.onEditOperationName;return l&&n!==u&&l(u),i({operationName:u},a)}},this.handleEditVariables=function(t){e.setState({variables:t}),e.props.onEditVariables&&e.props.onEditVariables(t)},this.handleEditOperationName=function(t){var n=e.props.onEditOperationName;n&&n(t)},this.handleHintInformationRender=function(t){t.addEventListener("click",e._onClickHintInformation);var n=void 0;t.addEventListener("DOMNodeRemoved",n=function(){t.removeEventListener("DOMNodeRemoved",n),t.removeEventListener("click",e._onClickHintInformation)})},this.handleEditorRunQuery=function(){e._runQueryAtCursor()},this._onClickHintInformation=function(t){if("typeName"===t.target.className){var n=t.target.innerHTML,r=e.state.schema;if(r){var i=r.getType(n);i&&e.setState({docExplorerOpen:!0},function(){e.docExplorerComponent.showDoc(i)})}}},this.handleToggleDocs=function(){"function"==typeof e.props.onToggleDocs&&e.props.onToggleDocs(!e.state.docExplorerOpen),e.setState({docExplorerOpen:!e.state.docExplorerOpen})},this.handleToggleHistory=function(){"function"==typeof e.props.onToggleHistory&&e.props.onToggleHistory(!e.state.historyPaneOpen),e.setState({historyPaneOpen:!e.state.historyPaneOpen})},this.handleSelectHistoryQuery=function(t,n,r){e.handleEditQuery(t),e.handleEditVariables(n),e.handleEditOperationName(r)},this.handleResizeStart=function(t){if(e._didClickDragBar(t)){t.preventDefault();var n=t.clientX-(0,C.getLeft)(t.target),r=function(t){if(0===t.buttons)return i();var r=l.default.findDOMNode(e.editorBarComponent),o=t.clientX-(0,C.getLeft)(r)-n,a=r.clientWidth-o;e.setState({editorFlex:o/a})},i=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),r=null,i=null});document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)}},this.handleResetResize=function(){e.setState({editorFlex:1})},this.handleDocsResizeStart=function(t){t.preventDefault();var n=e.state.docExplorerWidth,r=t.clientX-(0,C.getLeft)(t.target),i=function(t){if(0===t.buttons)return o();var n=l.default.findDOMNode(e),i=t.clientX-(0,C.getLeft)(n)-r,a=n.clientWidth-i;a<100?e.setState({docExplorerOpen:!1}):e.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(a,650)})},o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.state.docExplorerOpen||e.setState({docExplorerWidth:n}),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",o),i=null,o=null});document.addEventListener("mousemove",i),document.addEventListener("mouseup",o)},this.handleDocsResetResize=function(){e.setState({docExplorerWidth:L})},this.handleVariableResizeStart=function(t){t.preventDefault();var n=!1,r=e.state.variableEditorOpen,i=e.state.variableEditorHeight,o=t.clientY-(0,C.getTop)(t.target),a=function(t){if(0===t.buttons)return u();n=!0;var r=l.default.findDOMNode(e.editorBarComponent),a=t.clientY-(0,C.getTop)(r)-o,s=r.clientHeight-a;s<60?e.setState({variableEditorOpen:!1,variableEditorHeight:i}):e.setState({variableEditorOpen:!0,variableEditorHeight:s})},u=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){n||e.setState({variableEditorOpen:!r}),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",u),a=null,u=null});document.addEventListener("mousemove",a),document.addEventListener("mouseup",u)}};D.Logo=function(e){return a.default.createElement("div",{className:"title"},e.children||a.default.createElement("span",null,"Graph",a.default.createElement("em",null,"i"),"QL"))},D.Toolbar=function(e){return a.default.createElement("div",{className:"toolbar"},e.children)},D.QueryEditor=m.QueryEditor,D.VariableEditor=v.VariableEditor,D.ResultViewer=g.ResultViewer,D.Button=f.ToolbarButton,D.ToolbarButton=f.ToolbarButton,D.Group=p.ToolbarGroup,D.Menu=d.ToolbarMenu,D.MenuItem=d.ToolbarMenuItem,D.Select=h.ToolbarSelect,D.SelectOption=h.ToolbarSelectOption,D.Footer=function(e){return a.default.createElement("div",{className:"footer"},e.children)};var I='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that starts\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n#     {\n#       field(arg: "value") {\n#         subField\n#       }\n#     }\n#\n# Keyboard shortcuts:\n#\n#  Prettify Query:  Shift-Ctrl-P (or press the prettify button above)\n#\n#       Run Query:  Ctrl-Enter (or press the play button above)\n#\n#   Auto Complete:  Ctrl-Space (or just start typing)\n#\n\n';function F(e){return"object"===(void 0===e?"undefined":r(e))&&"function"==typeof e.then}function j(e){return M(e)?new Promise(function(t,n){var r=e.subscribe(function(e){t(e),r.unsubscribe()},n,function(){n(new Error("no value resolved"))})}):e}function M(e){return"object"===(void 0===e?"undefined":r(e))&&"function"==typeof e.subscribe}}).call(t,n(18))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=function(e,t,n,r,i,o,u){return 1===arguments.length?a(e.schema,e.source,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):a(e,t,n,r,i,o,u)};var r=n(13),i=n(135),o=n(87);function a(e,t,n,a,u,l,s){return new Promise(function(c){var f=void 0;try{f=(0,r.parse)(t)}catch(e){return c({errors:[e]})}var p=(0,i.validate)(e,f);if(p.length>0)return c({errors:p});c((0,o.execute)(e,f,n,a,u,l,s))})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}});var i=n(5);Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}});var o=n(15);Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return o.DirectiveLocation}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}});var a=n(19);Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}});var u=n(16);Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return u.TypeKind}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return u.__Schema}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return u.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return u.__DirectiveLocation}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return u.__Type}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return u.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return u.__InputValue}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return u.__EnumValue}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return u.__TypeKind}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return u.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return u.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return u.TypeNameMetaFieldDef}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=t.getVisitFn=t.visitWithTypeInfo=t.visitInParallel=t.visit=t.Source=t.print=t.parseType=t.parseValue=t.parse=t.TokenKind=t.createLexer=t.Kind=t.getLocation=void 0;var r=n(28);Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return r.getLocation}});var i=n(37);Object.defineProperty(t,"createLexer",{enumerable:!0,get:function(){return i.createLexer}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return i.TokenKind}});var o=n(13);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return o.parseValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return o.parseType}});var a=n(9);Object.defineProperty(t,"print",{enumerable:!0,get:function(){return a.print}});var u=n(50);Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return u.Source}});var l=n(11);Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return l.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return l.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return l.visitWithTypeInfo}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return l.getVisitFn}}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return l.BREAK}});var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7));t.Kind=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(246);Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return r.subscribe}}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return r.createSourceEventStream}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=function(e,t,n,r,i,o,a,u){var l=1===arguments.length?e:void 0,s=l?l.schema:e;return l?f(s,l.document,l.rootValue,l.contextValue,l.variableValues,l.operationName,l.fieldResolver,l.subscribeFieldResolver):f(s,t,n,r,i,o,a,u)},t.createSourceEventStream=p;var r=n(20),i=n(10),o=n(51),a=n(87),u=(n(14),s(n(8))),l=s(n(247));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){if(e instanceof i.GraphQLError)return{errors:[e]};throw e}function f(e,t,n,r,i,o,u,s){var f=function(n){return(0,a.execute)(e,t,n,r,i,o,u)};return p(e,t,n,r,i,o,s).then(function(e){return(0,l.default)(e,f,c)},c)}function p(e,t,n,i,l,s,c){return(0,a.assertValidExecutionArguments)(e,t,l),new Promise(function(f,p){var d=(0,a.buildExecutionContext)(e,t,n,i,l,s,c),h=(0,a.getOperationRootType)(e,d.operation),m=(0,a.collectFields)(d,h,d.operation.selectionSet,Object.create(null),Object.create(null)),v=Object.keys(m)[0],g=m[v],y=g[0],b=(0,a.getFieldDef)(e,h,y.name.value);b||(0,u.default)(0,"This subscription is not defined by the schema.");var k=b.subscribe||d.fieldResolver,w=(0,a.addPath)(void 0,v),_=(0,a.buildResolveInfo)(d,b,g,h,w);Promise.resolve((0,a.resolveFieldValueOrError)(d,b,g,k,n,_)).then(function(e){if(e instanceof Error){var t=(0,o.locatedError)(e,g,(0,a.responsePathAsArray)(w));p(t)}(0,r.isAsyncIterable)(e)||p(new Error("Subscription must return Async Iterable. Received: "+String(e))),f(e)}).catch(p)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var a=(0,r.getAsyncIterator)(e),u=void 0,l=void 0;"function"==typeof a.return&&(u=a.return,l=function(e){var t=function(){return Promise.reject(e)};return u.call(a).then(t,t)});function s(e){return e.done?e:i(e.value,t).then(o,l)}var c=void 0;if(n){var f=n;c=function(e){return i(e,f).then(o,l)}}return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({next:function(){return a.next().then(s,c)},return:function(){return u?u.call(a).then(s,c):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof a.throw?a.throw(e).then(s,c):Promise.reject(e).catch(l)}},r.$$asyncIterator,function(){return this})};var r=n(20);function i(e,t){return new Promise(function(n){return n(t(e))})}function o(e){return{value:e,done:!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(135);Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return r.validate}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return r.ValidationContext}});var i=n(136);Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return i.specifiedRules}});var o=n(155);Object.defineProperty(t,"ArgumentsOfCorrectTypeRule",{enumerable:!0,get:function(){return o.ArgumentsOfCorrectType}});var a=n(157);Object.defineProperty(t,"DefaultValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return a.DefaultValuesOfCorrectType}});var u=n(144);Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return u.FieldsOnCorrectType}});var l=n(141);Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return l.FragmentsOnCompositeTypes}});var s=n(153);Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return s.KnownArgumentNames}});var c=n(151);Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return c.KnownDirectives}});var f=n(85);Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return f.KnownFragmentNames}});var p=n(140);Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return p.KnownTypeNames}});var d=n(138);Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return d.LoneAnonymousOperation}});var h=n(147);Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return h.NoFragmentCycles}});var m=n(149);Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return m.NoUndefinedVariables}});var v=n(86);Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return v.NoUnusedFragments}});var g=n(150);Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return g.NoUnusedVariables}});var y=n(159);Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return y.OverlappingFieldsCanBeMerged}});var b=n(146);Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return b.PossibleFragmentSpreads}});var k=n(156);Object.defineProperty(t,"ProvidedNonNullArgumentsRule",{enumerable:!0,get:function(){return k.ProvidedNonNullArguments}});var w=n(143);Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return w.ScalarLeafs}});var _=n(139);Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return _.SingleFieldSubscriptions}});var T=n(154);Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return T.UniqueArgumentNames}});var E=n(152);Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return E.UniqueDirectivesPerLocation}});var x=n(145);Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return x.UniqueFragmentNames}});var O=n(160);Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return O.UniqueInputFieldNames}});var C=n(137);Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return C.UniqueOperationNames}});var S=n(148);Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return S.UniqueVariableNames}});var N=n(142);Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return N.VariablesAreInputTypes}});var L=n(158);Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return L.VariablesInAllowedPosition}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.introspectionQuery="\n  query IntrospectionQuery {\n    __schema {\n      queryType { name }\n      mutationType { name }\n      subscriptionType { name }\n      types {\n        ...FullType\n      }\n      directives {\n        name\n        description\n        locations\n        args {\n          ...InputValue\n        }\n      }\n    }\n  }\n\n  fragment FullType on __Type {\n    kind\n    name\n    description\n    fields(includeDeprecated: true) {\n      name\n      description\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      description\n      isDeprecated\n      deprecationReason\n    }\n    possibleTypes {\n      ...TypeRef\n    }\n  }\n\n  fragment InputValue on __InputValue {\n    name\n    description\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"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationAST=function(e,t){for(var n=null,i=0;i<e.definitions.length;i++){var o=e.definitions[i];if(o.kind===r.OPERATION_DEFINITION)if(t){if(o.name&&o.name.value===t)return o}else{if(n)return null;n=o}}return n};var r=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildClientSchema=function(e){var t=e.__schema,n=(0,i.default)(t.types,function(e){return e.name}),d={String:f.GraphQLString,Int:f.GraphQLInt,Float:f.GraphQLFloat,Boolean:f.GraphQLBoolean,ID:f.GraphQLID,__Schema:c.__Schema,__Directive:c.__Directive,__DirectiveLocation:c.__DirectiveLocation,__Type:c.__Type,__Field:c.__Field,__InputValue:c.__InputValue,__EnumValue:c.__EnumValue,__TypeKind:c.__TypeKind};function m(e){if(e.kind===c.TypeKind.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new s.GraphQLList(m(t))}if(e.kind===c.TypeKind.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");var i=m(n);return i instanceof s.GraphQLNonNull&&(0,r.default)(0,"No nesting nonnull."),new s.GraphQLNonNull(i)}return v(e.name)}function v(e){if(d[e])return d[e];var t=n[e];if(!t)throw new Error("Invalid or incomplete schema, unknown type: "+e+". Ensure that a full introspection query is used in order to build a client schema.");var r=function(e){switch(e.kind){case c.TypeKind.SCALAR:return u=e,new s.GraphQLScalarType({name:u.name,description:u.description,serialize:function(e){return e},parseValue:function(){return!1},parseLiteral:function(){return!1}});case c.TypeKind.OBJECT:return a=e,new s.GraphQLObjectType({name:a.name,description:a.description,interfaces:a.interfaces.map(y),fields:function(){return b(a)}});case c.TypeKind.INTERFACE:return i=e,new s.GraphQLInterfaceType({name:i.name,description:i.description,fields:function(){return b(i)},resolveType:h});case c.TypeKind.UNION:return r=e,new s.GraphQLUnionType({name:r.name,description:r.description,types:r.possibleTypes.map(g),resolveType:h});case c.TypeKind.ENUM:return n=e,new s.GraphQLEnumType({name:n.name,description:n.description,values:(0,o.default)(n.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})});case c.TypeKind.INPUT_OBJECT:return t=e,new s.GraphQLInputObjectType({name:t.name,description:t.description,fields:function(){return k(t.inputFields)}});default:throw new Error("Invalid or incomplete schema, unknown kind: "+e.kind+". Ensure that a full introspection query is used in order to build a client schema.")}var t;var n;var r;var i;var a;var u}(t);return d[e]=r,r}function g(e){var t=m(e);return t instanceof s.GraphQLObjectType||(0,r.default)(0,"Introspection must provide object type for possibleTypes."),t}function y(e){var t=m(e);return t instanceof s.GraphQLInterfaceType||(0,r.default)(0,"Introspection must provide interface type for interfaces."),t}function b(e){return(0,o.default)(e.fields,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason,type:(t=e.type,n=m(t),(0,s.isOutputType)(n)||(0,r.default)(0,"Introspection must provide output type for fields."),n),args:k(e.args)};var t,n})}function k(e){return(0,o.default)(e,function(e){return e.name},w)}function w(e){var t=function(e){var t=m(e);return(0,s.isInputType)(t)||(0,r.default)(0,"Introspection must provide input type for arguments."),t}(e.type),n=e.defaultValue?(0,a.valueFromAST)((0,u.parseValue)(e.defaultValue),t):void 0;return{name:e.name,description:e.description,type:t,defaultValue:n}}var _=t.types.map(function(e){return v(e.name)}),T=g(t.queryType),E=t.mutationType?g(t.mutationType):null,x=t.subscriptionType?g(t.subscriptionType):null,O=t.directives?t.directives.map(function(e){var t=e.locations?e.locations.slice():[].concat(e.onField?[p.DirectiveLocation.FIELD]:[],e.onOperation?[p.DirectiveLocation.QUERY,p.DirectiveLocation.MUTATION,p.DirectiveLocation.SUBSCRIPTION]:[],e.onFragment?[p.DirectiveLocation.FRAGMENT_DEFINITION,p.DirectiveLocation.FRAGMENT_SPREAD,p.DirectiveLocation.INLINE_FRAGMENT]:[]);return new p.GraphQLDirective({name:e.name,description:e.description,locations:t,args:k(e.args)})}):[];return new l.GraphQLSchema({query:T,mutation:E,subscription:x,types:_,directives:O})};var r=d(n(8)),i=d(n(32)),o=d(n(88)),a=n(39),u=n(13),l=n(14),s=n(5),c=n(16),f=n(19),p=n(15);function d(e){return e&&e.__esModule?e:{default:e}}function h(){throw new Error("Client Schema cannot use Interface or Union types for execution.")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSchema=function(e,t){e instanceof s.GraphQLSchema||(0,r.default)(0,"Must provide valid GraphQLSchema"),(!t||t.kind!==h.DOCUMENT)&&(0,r.default)(0,"Must provide valid Document AST");for(var n=Object.create(null),m=Object.create(null),g=[],y=0;y<t.definitions.length;y++){var b=t.definitions[y];switch(b.kind){case h.OBJECT_TYPE_DEFINITION:case h.INTERFACE_TYPE_DEFINITION:case h.ENUM_TYPE_DEFINITION:case h.UNION_TYPE_DEFINITION:case h.SCALAR_TYPE_DEFINITION:case h.INPUT_OBJECT_TYPE_DEFINITION:var k=b.name.value;if(e.getType(k))throw new l.GraphQLError('Type "'+k+'" already exists in the schema. It cannot also be defined in this type definition.',[b]);n[k]=b;break;case h.TYPE_EXTENSION_DEFINITION:var w=b.definition.name.value,_=e.getType(w);if(!_)throw new l.GraphQLError('Cannot extend type "'+w+'" because it does not exist in the existing schema.',[b.definition]);if(!(_ instanceof c.GraphQLObjectType))throw new l.GraphQLError('Cannot extend non-object type "'+w+'".',[b.definition]);var T=m[w];T?T.push(b):T=[b],m[w]=T;break;case h.DIRECTIVE_DEFINITION:var E=b.name.value,x=e.getDirective(E);if(x)throw new l.GraphQLError('Directive "'+E+'" already exists in the schema. It cannot be redefined.',[b]);g.push(b)}}if(0===Object.keys(m).length&&0===Object.keys(n).length&&0===g.length)return e;var O={String:d.GraphQLString,Int:d.GraphQLInt,Float:d.GraphQLFloat,Boolean:d.GraphQLBoolean,ID:d.GraphQLID,__Schema:p.__Schema,__Directive:p.__Directive,__DirectiveLocation:p.__DirectiveLocation,__Type:p.__Type,__Field:p.__Field,__InputValue:p.__InputValue,__EnumValue:p.__EnumValue,__TypeKind:p.__TypeKind},C=F(e.getQueryType()),S=e.getMutationType(),N=S?F(S):null,L=e.getSubscriptionType(),D=L?F(L):null,A=e.getTypeMap(),I=Object.keys(A).map(function(e){return F(A[e])});return Object.keys(n).forEach(function(e){I.push(j(n[e]))}),new s.GraphQLSchema({query:C,mutation:N,subscription:D,types:I,directives:function(){var t=e.getDirectives();t||(0,r.default)(0,"schema must have default directives");var n=g.map(function(e){return function(e){return new f.GraphQLDirective({name:e.name.value,description:(0,a.getDescription)(e),locations:e.locations.map(function(e){return e.value}),args:e.arguments&&G(e.arguments),astNode:e})}(e)});return t.concat(n)}(),astNode:e.astNode});function F(e){var t=R(e.name);return t||(0,r.default)(0,"Missing type from schema"),t}function j(e){var t=R(e.name.value);if(!t)throw new l.GraphQLError('Unknown type: "'+e.name.value+'". Ensure that this type exists either in the original schema, or is added in a type definition.',[e]);return t}function M(e){var t=j(e);return t instanceof c.GraphQLObjectType||(0,r.default)(0,"Must be Object type."),t}function P(e){var t=j(e);return t instanceof c.GraphQLInterfaceType||(0,r.default)(0,"Must be Interface type."),t}function R(t){var r=O[t];if(r)return r;var i=e.getType(t);if(i){var u=function(e){if(e instanceof c.GraphQLObjectType)return function(e){var t=e.name,n=e.extensionASTNodes;m[t]&&(n=n.concat(m[t]));return new c.GraphQLObjectType({name:t,description:e.description,interfaces:function(){return function(e){var t=e.getInterfaces().map(F),n=m[e.name];n&&n.forEach(function(n){n.definition.interfaces.forEach(function(n){var r=n.name.value;if(t.some(function(e){return e.name===r}))throw new l.GraphQLError('Type "'+e.name+'" already implements "'+r+'". It cannot also be implemented in this type extension.',[n]);t.push(P(n))})});return t}(e)},fields:function(){return V(e)},astNode:e.astNode,extensionASTNodes:n,isTypeOf:e.isTypeOf})}(e);if(e instanceof c.GraphQLInterfaceType)return function(e){return new c.GraphQLInterfaceType({name:e.name,description:e.description,fields:function(){return V(e)},astNode:e.astNode,resolveType:e.resolveType})}(e);if(e instanceof c.GraphQLUnionType)return function(e){return new c.GraphQLUnionType({name:e.name,description:e.description,types:e.getTypes().map(F),astNode:e.astNode,resolveType:e.resolveType})}(e);return e}(i);return O[t]=u,u}var s=n[t];if(s){var f=function(e){switch(e.kind){case h.OBJECT_TYPE_DEFINITION:return function(e){return new c.GraphQLObjectType({name:e.name.value,description:(0,a.getDescription)(e),interfaces:function(){return function(e){return e.interfaces&&e.interfaces.map(P)}(e)},fields:function(){return Q(e)},astNode:e})}(e);case h.INTERFACE_TYPE_DEFINITION:return function(e){return new c.GraphQLInterfaceType({name:e.name.value,description:(0,a.getDescription)(e),fields:function(){return Q(e)},astNode:e,resolveType:v})}(e);case h.UNION_TYPE_DEFINITION:return function(e){return new c.GraphQLUnionType({name:e.name.value,description:(0,a.getDescription)(e),types:e.types.map(M),astNode:e,resolveType:v})}(e);case h.SCALAR_TYPE_DEFINITION:return function(e){return new c.GraphQLScalarType({name:e.name.value,description:(0,a.getDescription)(e),astNode:e,serialize:function(e){return e},parseValue:function(){return!1},parseLiteral:function(){return!1}})}(e);case h.ENUM_TYPE_DEFINITION:return function(e){return new c.GraphQLEnumType({name:e.name.value,description:(0,a.getDescription)(e),values:(0,o.default)(e.values,function(e){return e.name.value},function(e){return{description:(0,a.getDescription)(e),deprecationReason:(0,a.getDeprecationReason)(e),astNode:e}}),astNode:e})}(e);case h.INPUT_OBJECT_TYPE_DEFINITION:return function(e){return new c.GraphQLInputObjectType({name:e.name.value,description:(0,a.getDescription)(e),fields:function(){return G(e.fields)},astNode:e})}(e)}throw new TypeError("Unknown type kind "+e.kind)}(s);return O[t]=f,f}}function V(e){var t=Object.create(null),n=e.getFields();Object.keys(n).forEach(function(e){var r=n[e];t[e]={description:r.description,deprecationReason:r.deprecationReason,type:function e(t){if(t instanceof c.GraphQLList)return new c.GraphQLList(e(t.ofType));if(t instanceof c.GraphQLNonNull)return new c.GraphQLNonNull(e(t.ofType));return F(t)}(r.type),args:(0,i.default)(r.args,function(e){return e.name}),astNode:r.astNode,resolve:r.resolve}});var r=m[e.name];return r&&r.forEach(function(r){r.definition.fields.forEach(function(r){var i=r.name.value;if(n[i])throw new l.GraphQLError('Field "'+e.name+"."+i+'" already exists in the schema. It cannot also be defined in this type extension.',[r]);t[i]={description:(0,a.getDescription)(r),type:q(r.type),args:G(r.arguments),deprecationReason:(0,a.getDeprecationReason)(r),astNode:r}})}),t}function Q(e){return(0,o.default)(e.fields,function(e){return e.name.value},function(e){return{type:q(e.type),description:(0,a.getDescription)(e),args:G(e.arguments),deprecationReason:(0,a.getDeprecationReason)(e),astNode:e}})}function G(e){return(0,o.default)(e,function(e){return e.name.value},function(e){var t=function e(t){if(t.kind===h.LIST_TYPE)return new c.GraphQLList(e(t.type));if(t.kind===h.NON_NULL_TYPE){var n=e(t.type);return n instanceof c.GraphQLNonNull&&(0,r.default)(0,"Must be nullable"),new c.GraphQLNonNull(n)}return i=t,(0,c.assertInputType)(j(i));var i}(e.type);return{type:t,description:(0,a.getDescription)(e),defaultValue:(0,u.valueFromAST)(e.defaultValue,t),astNode:e}})}function q(e){if(e.kind===h.LIST_TYPE)return new c.GraphQLList(q(e.type));if(e.kind===h.NON_NULL_TYPE){var t=q(e.type);return t instanceof c.GraphQLNonNull&&(0,r.default)(0,"Must be nullable"),new c.GraphQLNonNull(t)}return n=e,(0,c.assertOutputType)(j(n));var n}};var r=m(n(8)),i=m(n(32)),o=m(n(88)),a=n(164),u=n(39),l=n(10),s=n(14),c=n(5),f=n(15),p=n(16),d=n(19),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7));function m(e){return e&&e.__esModule?e:{default:e}}function v(){throw new Error("Extended Schema cannot use Interface or Union types for execution.")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printSchema=function(e){return m(e,function(e){return!p(e)},d)},t.printIntrospectionSchema=function(e){return m(e,p,h)},t.printType=v;var r=f(n(8)),i=f(n(24)),o=f(n(38)),a=n(81),u=n(9),l=n(5),s=n(19),c=n(15);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return"skip"===e||"include"===e||"deprecated"===e}function d(e){return!h(e)&&!function(e){return"String"===e||"Boolean"===e||"Int"===e||"Float"===e||"ID"===e}(e)}function h(e){return 0===e.indexOf("__")}function m(e,t,n){var r=e.getDirectives().filter(function(e){return t(e.name)}),i=e.getTypeMap(),o=Object.keys(i).filter(n).sort(function(e,t){return e.localeCompare(t)}).map(function(e){return i[e]});return[function(e){if(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))return;var t=[],n=e.getQueryType();n&&t.push("  query: "+n.name);var r=e.getMutationType();r&&t.push("  mutation: "+r.name);var i=e.getSubscriptionType();i&&t.push("  subscription: "+i.name);return"schema {\n"+t.join("\n")+"\n}"}(e)].concat(r.map(k),o.map(v)).filter(Boolean).join("\n\n")+"\n"}function v(e){return e instanceof l.GraphQLScalarType?function(e){return _(e)+"scalar "+e.name}(e):e instanceof l.GraphQLObjectType?function(e){var t=e.getInterfaces(),n=t.length?" implements "+t.map(function(e){return e.name}).join(", "):"";return _(e)+"type "+e.name+n+" {\n"+g(e)+"\n}"}(e):e instanceof l.GraphQLInterfaceType?function(e){return _(e)+"interface "+e.name+" {\n"+g(e)+"\n}"}(e):e instanceof l.GraphQLUnionType?function(e){return _(e)+"union "+e.name+" = "+e.getTypes().join(" | ")}(e):e instanceof l.GraphQLEnumType?function(e){return _(e)+"enum "+e.name+" {\n"+(t=e.getValues(),t.map(function(e,t){return _(e,"  ",!t)+"  "+e.name+w(e)}).join("\n"))+"\n}";var t}(e):(e instanceof l.GraphQLInputObjectType||(0,r.default)(0),function(e){var t=e.getFields(),n=Object.keys(t).map(function(e){return t[e]});return _(e)+"input "+e.name+" {\n"+n.map(function(e,t){return _(e,"  ",!t)+"  "+b(e)}).join("\n")+"\n}"}(e))}function g(e){var t=e.getFields();return Object.keys(t).map(function(e){return t[e]}).map(function(e,t){return _(e,"  ",!t)+"  "+e.name+y(e.args,"  ")+": "+String(e.type)+w(e)}).join("\n")}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 0===e.length?"":e.every(function(e){return!e.description})?"("+e.map(b).join(", ")+")":"(\n"+e.map(function(e,n){return _(e,"  "+t,!n)+"  "+t+b(e)}).join("\n")+"\n"+t+")"}function b(e){var t=e.name+": "+String(e.type);return(0,o.default)(e.defaultValue)||(t+=" = "+(0,u.print)((0,a.astFromValue)(e.defaultValue,e.type))),t}function k(e){return _(e)+"directive @"+e.name+y(e.args)+" on "+e.locations.join(" | ")}function w(e){var t=e.deprecationReason;return(0,i.default)(t)?"":""===t||t===c.DEFAULT_DEPRECATION_REASON?" @deprecated":" @deprecated(reason: "+(0,u.print)((0,a.astFromValue)(t,s.GraphQLString))+")"}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e.description)return"";for(var r=e.description.split("\n"),i=t&&!n?"\n":"",o=0;o<r.length;o++)if(""===r[o])i+=t+"#\n";else for(var a=T(r[o],120-t.length),u=0;u<a.length;u++)i+=t+"# "+a[u]+"\n";return i}function T(e,t){if(e.length<t+5)return[e];var n=e.split(new RegExp("((?: |^).{15,"+(t-40)+"}(?= |$))"));if(n.length<4)return[e];for(var r=[n[0]+n[1]+n[2]],i=3;i<n.length;i+=2)r.push(n[i].slice(1)+n[i+1]);return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAST=function(e){for(var t=[],n=0;n<e.length;n++)for(var r=e[n].definitions,i=0;i<r.length;i++)t.push(r[i]);return{kind:"Document",definitions:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.separateOperations=function(e){var t=[],n=Object.create(null),o=new Map,a=Object.create(null),u=void 0,l=0;(0,r.visit)(e,{OperationDefinition:function(e){u=i(e),t.push(e),o.set(e,l++)},FragmentDefinition:function(e){u=e.name.value,n[u]=e,o.set(e,l++)},FragmentSpread:function(e){var t=e.name.value;(a[u]||(a[u]=Object.create(null)))[t]=!0}});var s=Object.create(null);return t.forEach(function(e){var t=i(e),r=Object.create(null);!function e(t,n,r){var i=n[r];i&&Object.keys(i).forEach(function(r){t[r]||(t[r]=!0,e(t,n,r))})}(r,a,t);var u=[e];Object.keys(r).forEach(function(e){u.push(n[e])}),u.sort(function(e,t){return(o.get(e)||0)-(o.get(t)||0)}),s[t]={kind:"Document",definitions:u}}),s};var r=n(11);function i(e){return e.name?e.name.value:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DangerousChangeType=t.BreakingChangeType=void 0,t.findBreakingChanges=function(e,t){return[].concat(a(e,t),u(e,t),c(e,t),d(e,t),m(e,t),l(e,t).breakingChanges,g(e,t))},t.findDangerousChanges=function(e,t){return[].concat(l(e,t).dangerousChanges,v(e,t),h(e,t))},t.findRemovedTypes=a,t.findTypesThatChangedKind=u,t.findArgChanges=l,t.findFieldsThatChangedType=c,t.findFieldsThatChangedTypeOnInputObjectTypes=f,t.findTypesRemovedFromUnions=d,t.findTypesAddedToUnions=h,t.findValuesRemovedFromEnums=m,t.findValuesAddedToEnums=v,t.findInterfacesRemovedFromObjectTypes=g;var r=n(5),i=(n(14),t.BreakingChangeType={FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",FIELD_REMOVED:"FIELD_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED:"TYPE_REMOVED",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",NON_NULL_ARG_ADDED:"NON_NULL_ARG_ADDED",NON_NULL_INPUT_FIELD_ADDED:"NON_NULL_INPUT_FIELD_ADDED",INTERFACE_REMOVED_FROM_OBJECT:"INTERFACE_REMOVED_FROM_OBJECT"}),o=t.DangerousChangeType={ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE",VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION"};function a(e,t){var n=e.getTypeMap(),r=t.getTypeMap(),o=[];return Object.keys(n).forEach(function(e){r[e]||o.push({type:i.TYPE_REMOVED,description:e+" was removed."})}),o}function u(e,t){var n=e.getTypeMap(),r=t.getTypeMap(),o=[];return Object.keys(n).forEach(function(e){if(r[e]){var t=n[e],a=r[e];t instanceof a.constructor||o.push({type:i.TYPE_CHANGED_KIND,description:e+" changed from "+s(t)+" to "+s(a)+"."})}}),o}function l(e,t){var n=e.getTypeMap(),a=t.getTypeMap(),u=[],l=[];return Object.keys(n).forEach(function(e){var t=n[e],s=a[e];if((t instanceof r.GraphQLObjectType||t instanceof r.GraphQLInterfaceType)&&s instanceof t.constructor){var c=t.getFields(),f=s.getFields();Object.keys(c).forEach(function(e){f[e]&&(c[e].args.forEach(function(n){var r=f[e].args.find(function(e){return e.name===n.name});r?p(n.type,r.type)?void 0!==n.defaultValue&&n.defaultValue!==r.defaultValue&&l.push({type:o.ARG_DEFAULT_VALUE_CHANGE,description:t.name+"."+e+" arg "+n.name+" has changed defaultValue"}):u.push({type:i.ARG_CHANGED_KIND,description:t.name+"."+e+" arg "+n.name+" has changed type from "+n.type.toString()+" to "+r.type.toString()}):u.push({type:i.ARG_REMOVED,description:t.name+"."+e+" arg "+n.name+" was removed"})}),f[e].args.forEach(function(t){!c[e].args.find(function(e){return e.name===t.name})&&t.type instanceof r.GraphQLNonNull&&u.push({type:i.NON_NULL_ARG_ADDED,description:"A non-null arg "+t.name+" on "+s.name+"."+e+" was added"})}))})}}),{breakingChanges:u,dangerousChanges:l}}function s(e){if(e instanceof r.GraphQLScalarType)return"a Scalar type";if(e instanceof r.GraphQLObjectType)return"an Object type";if(e instanceof r.GraphQLInterfaceType)return"an Interface type";if(e instanceof r.GraphQLUnionType)return"a Union type";if(e instanceof r.GraphQLEnumType)return"an Enum type";if(e instanceof r.GraphQLInputObjectType)return"an Input type";throw new TypeError("Unknown type "+e.constructor.name)}function c(e,t){return[].concat(function(e,t){var n=e.getTypeMap(),o=t.getTypeMap(),a=[];return Object.keys(n).forEach(function(e){var t=n[e],u=o[e];if((t instanceof r.GraphQLObjectType||t instanceof r.GraphQLInterfaceType)&&u instanceof t.constructor){var l=t.getFields(),s=u.getFields();Object.keys(l).forEach(function(t){if(t in s){var n=l[t].type,o=s[t].type;if(!function e(t,n){return(0,r.isNamedType)(t)?(0,r.isNamedType)(n)&&t.name===n.name||n instanceof r.GraphQLNonNull&&e(t,n.ofType):t instanceof r.GraphQLList?n instanceof r.GraphQLList&&e(t.ofType,n.ofType)||n instanceof r.GraphQLNonNull&&e(t,n.ofType):t instanceof r.GraphQLNonNull&&(n instanceof r.GraphQLNonNull&&e(t.ofType,n.ofType))}(n,o)){var u=(0,r.isNamedType)(n)?n.name:n.toString(),c=(0,r.isNamedType)(o)?o.name:o.toString();a.push({type:i.FIELD_CHANGED_KIND,description:e+"."+t+" changed type from "+u+" to "+c+"."})}}else a.push({type:i.FIELD_REMOVED,description:e+"."+t+" was removed."})})}}),a}(e,t),f(e,t))}function f(e,t){var n=e.getTypeMap(),o=t.getTypeMap(),a=[];return Object.keys(n).forEach(function(e){var t=n[e],u=o[e];if(t instanceof r.GraphQLInputObjectType&&u instanceof r.GraphQLInputObjectType){var l=t.getFields(),s=u.getFields();Object.keys(l).forEach(function(t){if(t in s){var n=l[t].type,o=s[t].type;if(!p(n,o)){var u=(0,r.isNamedType)(n)?n.name:n.toString(),c=(0,r.isNamedType)(o)?o.name:o.toString();a.push({type:i.FIELD_CHANGED_KIND,description:e+"."+t+" changed type from "+u+" to "+c+"."})}}else a.push({type:i.FIELD_REMOVED,description:e+"."+t+" was removed."})}),Object.keys(s).forEach(function(e){!(e in l)&&s[e].type instanceof r.GraphQLNonNull&&a.push({type:i.NON_NULL_INPUT_FIELD_ADDED,description:"A non-null field "+e+" on input type "+u.name+" was added."})})}}),a}function p(e,t){return(0,r.isNamedType)(e)?(0,r.isNamedType)(t)&&e.name===t.name:e instanceof r.GraphQLList?t instanceof r.GraphQLList&&p(e.ofType,t.ofType):e instanceof r.GraphQLNonNull&&(t instanceof r.GraphQLNonNull&&p(e.ofType,t.ofType)||!(t instanceof r.GraphQLNonNull)&&p(e.ofType,t))}function d(e,t){var n=e.getTypeMap(),o=t.getTypeMap(),a=[];return Object.keys(n).forEach(function(e){var t=n[e],u=o[e];if(t instanceof r.GraphQLUnionType&&u instanceof r.GraphQLUnionType){var l=Object.create(null);u.getTypes().forEach(function(e){l[e.name]=!0}),t.getTypes().forEach(function(t){l[t.name]||a.push({type:i.TYPE_REMOVED_FROM_UNION,description:t.name+" was removed from union type "+e+"."})})}}),a}function h(e,t){var n=e.getTypeMap(),i=t.getTypeMap(),a=[];return Object.keys(i).forEach(function(e){var t=n[e],u=i[e];if(t instanceof r.GraphQLUnionType&&u instanceof r.GraphQLUnionType){var l=Object.create(null);t.getTypes().forEach(function(e){l[e.name]=!0}),u.getTypes().forEach(function(t){l[t.name]||a.push({type:o.TYPE_ADDED_TO_UNION,description:t.name+" was added to union type "+e+"."})})}}),a}function m(e,t){var n=e.getTypeMap(),o=t.getTypeMap(),a=[];return Object.keys(n).forEach(function(e){var t=n[e],u=o[e];if(t instanceof r.GraphQLEnumType&&u instanceof r.GraphQLEnumType){var l=Object.create(null);u.getValues().forEach(function(e){l[e.name]=!0}),t.getValues().forEach(function(t){l[t.name]||a.push({type:i.VALUE_REMOVED_FROM_ENUM,description:t.name+" was removed from enum type "+e+"."})})}}),a}function v(e,t){var n=e.getTypeMap(),i=t.getTypeMap(),a=[];return Object.keys(n).forEach(function(e){var t=n[e],u=i[e];if(t instanceof r.GraphQLEnumType&&u instanceof r.GraphQLEnumType){var l=Object.create(null);t.getValues().forEach(function(e){l[e.name]=!0}),u.getValues().forEach(function(t){l[t.name]||a.push({type:o.VALUE_ADDED_TO_ENUM,description:t.name+" was added to enum type "+e+"."})})}}),a}function g(e,t){var n=e.getTypeMap(),o=t.getTypeMap(),a=[];return Object.keys(n).forEach(function(e){var t=n[e],u=o[e];if(t instanceof r.GraphQLObjectType&&u instanceof r.GraphQLObjectType){var l=t.getInterfaces(),s=u.getInterfaces();l.forEach(function(t){s.some(function(e){return e.name===t.name})||a.push({type:i.INTERFACE_REMOVED_FROM_OBJECT,description:e+" no longer implements interface "+t.name+"."})})}}),a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findDeprecatedUsages=function(e,t){var n=[],u=new a.TypeInfo(e);return(0,i.visit)(t,(0,i.visitWithTypeInfo)(u,{Field:function(e){var t=u.getFieldDef();if(t&&t.isDeprecated){var i=u.getParentType();if(i){var o=t.deprecationReason;n.push(new r.GraphQLError("The field "+i.name+"."+t.name+" is deprecated."+(o?" "+o:""),[e]))}}},EnumValue:function(e){var t=u.getEnumValue();if(t&&t.isDeprecated){var i=(0,o.getNamedType)(u.getInputType());if(i){var a=t.deprecationReason;n.push(new r.GraphQLError("The enum value "+i.name+"."+t.name+" is deprecated."+(a?" "+a:""),[e]))}}}})),n};var r=n(10),i=n(11),o=n(5),a=(n(14),n(82))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteButton=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(2)),o=a(n(6));function a(e){return e&&e.__esModule?e:{default:e}}(t.ExecuteButton=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=function(){n.props.isRunning?n.props.onStop():n.props.onRun()},n._onOptionSelected=function(e){n.setState({optionsOpen:!1}),n.props.onRun(e.name&&e.name.value)},n._onOptionsOpen=function(e){var t=!0,r=e.target;n.setState({highlight:null,optionsOpen:!0});var i=function(e){t&&e.target===r?t=!1:(document.removeEventListener("mouseup",i),i=null,r.parentNode.compareDocumentPosition(e.target)&Node.DOCUMENT_POSITION_CONTAINED_BY||n.setState({optionsOpen:!1}))};document.addEventListener("mouseup",i)},n.state={optionsOpen:!1,highlight:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"render",value:function(){var e=this,t=this.props.operations,n=this.state.optionsOpen,r=t&&t.length>1,o=null;if(r&&n){var a=this.state.highlight;o=i.default.createElement("ul",{className:"execute-options"},t.map(function(t){return i.default.createElement("li",{key:t.name?t.name.value:"*",className:t===a?"selected":null,onMouseOver:function(){return e.setState({highlight:t})},onMouseOut:function(){return e.setState({highlight:null})},onMouseUp:function(){return e._onOptionSelected(t)}},t.name?t.name.value:"<Unnamed>")}))}var u=void 0;!this.props.isRunning&&r||(u=this._onClick);var l=void 0;this.props.isRunning||!r||n||(l=this._onOptionsOpen);var s=this.props.isRunning?i.default.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):i.default.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return i.default.createElement("div",{className:"execute-button-wrap"},i.default.createElement("button",{type:"button",className:"execute-button",onMouseDown:l,onClick:u,title:"Execute Query (Ctrl-Enter)"},i.default.createElement("svg",{width:"34",height:"34"},s)),o)}}]),t}()).propTypes={onRun:o.default.func,onStop:o.default.func,isRunning:o.default.bool,operations:o.default.array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarButton=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(2)),o=a(n(6));function a(e){return e&&e.__esModule?e:{default:e}}function u(e){e.preventDefault()}(t.ToolbarButton=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=function(e){e.preventDefault();try{n.props.onClick(),n.setState({error:null})}catch(e){n.setState({error:e})}},n.state={error:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"render",value:function(){var e=this.state.error;return i.default.createElement("a",{className:"toolbar-button"+(e?" error":""),onMouseDown:u,onClick:this.handleClick,title:e?e.message:this.props.title},this.props.label)}}]),t}()).propTypes={onClick:o.default.func,title:o.default.string,label:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarGroup=function(e){var t=e.children;return o.default.createElement("div",{className:"toolbar-button-group"},t)};var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarMenu=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.ToolbarMenuItem=u;var i=a(n(2)),o=a(n(6));function a(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.onSelect,n=e.title,r=e.label;return i.default.createElement("li",{onMouseOver:function(e){e.target.className="hover"},onMouseOut:function(e){e.target.className=null},onMouseDown:l,onMouseUp:t,title:n},r)}function l(e){e.preventDefault()}(t.ToolbarMenu=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleOpen=function(e){l(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var e=this,t=this.state.visible;return i.default.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:l,ref:function(t){e._node=t},title:this.props.title},this.props.label,i.default.createElement("svg",{width:"14",height:"8"},i.default.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),i.default.createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(e){this._node!==e.target&&(l(e),this.setState({visible:!1}),this._release())}}]),t}()).propTypes={title:o.default.string,label:o.default.string},u.propTypes={onSelect:o.default.func,title:o.default.string,label:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarSelect=void 0;var 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},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.ToolbarSelectOption=l;var o=u(n(2)),a=u(n(6));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.onSelect,n=e.label,r=e.selected;return o.default.createElement("li",{onMouseOver:function(e){e.target.className="hover"},onMouseOut:function(e){e.target.className=null},onMouseDown:s,onMouseUp:t},n,r&&o.default.createElement("svg",{width:"13",height:"13"},o.default.createElement("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835 10.686,0 13,2.314 4.851,10.462"})))}function s(e){e.preventDefault()}(t.ToolbarSelect=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleOpen=function(e){s(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var e=this,t=void 0,n=this.state.visible,i=o.default.Children.map(this.props.children,function(n,i){t&&!n.props.selected||(t=n);var a=n.props.onSelect||e.props.onSelect&&e.props.onSelect.bind(null,n.props.value,i);return o.default.createElement(l,r({},n.props,{onSelect:a}))});return o.default.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:s,ref:function(t){e._node=t},title:this.props.title},t.props.label,o.default.createElement("svg",{width:"13",height:"10"},o.default.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),o.default.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),o.default.createElement("ul",{className:"toolbar-select-options"+(n?" open":"")},i))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(e){this._node!==e.target&&(s(e),this.setState({visible:!1}),this._release())}}]),t}()).propTypes={title:a.default.string,label:a.default.string,onSelect:a.default.func},l.propTypes={onSelect:a.default.func,selected:a.default.bool,label:a.default.string,value:a.default.any}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryEditor=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(2)),o=c(n(6)),a=n(1),u=c(n(89)),l=n(318),s=c(n(173));function c(e){return e&&e.__esModule?e:{default:e}}var f=new u.default,p=/^[a-zA-Z0-9_@(]$/;(t.QueryEditor=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._onKeyUp=function(e,t){p.test(t.key)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(e,t){(0,s.default)(e,t,n.props.onHintInformationRender)},n.cachedValue=e.value||"",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentDidMount",value:function(){var e=this,t=n(4);n(174),n(319),n(93),n(175),n(94),n(95),n(176),n(40),n(96),n(41),n(177),n(97),n(321),n(329),n(330),n(331),n(333),this.editor=t(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{schema:this.props.schema},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1},info:{schema:this.props.schema,renderDescription:function(e){return f.render(e)},onClick:function(t){return e.props.onClickReference(t)}},jump:{schema:this.props.schema,onClick:function(t){return e.props.onClickReference(t)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":function(){return e.editor.showHint({completeSingle:!0})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!0})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!0})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!0})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Cmd-F":"findPersistent","Ctrl-F":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"}}),this.editor.on("change",this._onEdit),this.editor.on("keyup",this._onKeyUp),this.editor.on("hasCompletion",this._onHasCompletion),this.editor.on("beforeChange",this._onBeforeChange)}},{key:"componentDidUpdate",value:function(e){var t=n(4);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,t.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}},{key:"componentWillUnmount",value:function(){this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{className:"query-editor",ref:function(t){e._node=t}})}},{key:"getCodeMirror",value:function(){return this.editor}},{key:"getClientHeight",value:function(){return this._node&&this._node.clientHeight}},{key:"_onBeforeChange",value:function(e,t){if("paste"===t.origin){var n=t.text.map(l.normalizeWhitespace);t.update(t.from,t.to,n)}}}]),t}()).propTypes={schema:o.default.instanceOf(a.GraphQLSchema),value:o.default.string,onEdit:o.default.func,readOnly:o.default.bool,onHintInformationRender:o.default.func,onClickReference:o.default.func,onPrettifyQuery:o.default.func,onRunQuery:o.default.func,editorTheme:o.default.string}},function(e,t,n){"use strict";var r=n(3),i=n(272),o=n(276),a=n(277),u=n(285),l=n(299),s=n(312),c=n(166),f=n(314),p={default:n(315),zero:n(316),commonmark:n(317)},d=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!d.test(t)||!!h.test(t)}var v=["http:","https:","mailto:"];function g(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=f.toASCII(t.hostname)}catch(e){}return c.encode(c.format(t))}function y(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=f.toUnicode(t.hostname)}catch(e){}return c.decode(c.format(t))}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new u,this.core=new a,this.renderer=new o,this.linkify=new s,this.validateLink=m,this.normalizeLink=g,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=p[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},function(e,t){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e,t,n){"use strict";var r={};function i(e,t,n){var o,a,u,l,s,c="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),s=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),o=0,a=e.length;o<a;o++)if(u=e.charCodeAt(o),n&&37===u&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(u<128)c+=s[u];else if(u>=55296&&u<=57343){if(u>=55296&&u<=56319&&o+1<a&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict";var r={};function i(e,t){var n;return"string"!=typeof t&&(t=i.defaultChars),n=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),i.push(n);for(t=0;t<e.length;t++)i[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return i}(t),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,r,i,o,a,u,l,s="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?s+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(s+=(l=i<<6&1984|63&o)<128?"��":String.fromCharCode(l),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(s+=(l=i<<12&61440|o<<6&4032|63&a)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),u=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&u))?((l=i<<18&1835008|o<<12&258048|a<<6&4032|63&u)<65536||l>1114111?s+="����":(l-=65536,s+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):s+="�";return s})}i.defaultChars=";/?:@&=+$,#",i.componentChars="",e.exports=i},function(e,t,n){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),s=["%","/","?",";","#"].concat(l),c=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,o,u,l,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var v=a.exec(m);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var g=i.exec(m);if(g&&(o=(g=g[0]).toLowerCase(),this.protocol=g,m=m.substr(g.length)),(t||g||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(l="//"===m.substr(0,2))||g&&d[g]||(m=m.substr(2),this.slashes=!0)),!d[g]&&(l||g&&!h[g])){var y,b,k=-1;for(n=0;n<c.length;n++)-1!==(u=m.indexOf(c[n]))&&(-1===k||u<k)&&(k=u);for(-1!==(b=-1===k?m.lastIndexOf("@"):m.lastIndexOf("@",k))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),k=-1,n=0;n<s.length;n++)-1!==(u=m.indexOf(s[n]))&&(-1===k||u<k)&&(k=u);-1===k&&(k=m.length),":"===m[k-1]&&k--;var w=m.slice(0,k);m=m.slice(k),this.parseHost(w),this.hostname=this.hostname||"";var _="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_){var T=this.hostname.split(/\./);for(n=0,r=T.length;n<r;n++){var E=T[n];if(E&&!E.match(f)){for(var x="",O=0,C=E.length;O<C;O++)E.charCodeAt(O)>127?x+="x":x+=E[O];if(!x.match(f)){var S=T.slice(0,n),N=T.slice(n+1),L=E.match(p);L&&(S.push(L[1]),N.unshift(L[2])),N.length&&(m=N.join(".")+m),this.hostname=S.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=m.indexOf("#");-1!==D&&(this.hash=m.substr(D),m=m.slice(0,D));var A=m.indexOf("?");return-1!==A&&(this.search=m.substr(A),m=m.slice(0,A)),m&&(this.pathname=m),h[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}},function(e,t,n){"use strict";t.Any=n(167),t.Cc=n(168),t.Cf=n(271),t.P=n(90),t.Z=n(169)},function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},function(e,t,n){"use strict";t.parseLinkLabel=n(273),t.parseLinkDestination=n(274),t.parseLinkTitle=n(275)},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,u=-1,l=e.posMax,s=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=s,-1}return i&&(u=e.pos),e.pos=s,u}},function(e,t,n){"use strict";var r=n(3).isSpace,i=n(3).unescapeAll;e.exports=function(e,t,n){var o,a,u=t,l={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(o=e.charCodeAt(t))||r(o))return l;if(62===o)return l.pos=t+1,l.str=i(e.slice(u+1,t)),l.ok=!0,l;92===o&&t+1<n?t+=2:t++}return l}for(a=0;t<n&&32!==(o=e.charCodeAt(t))&&!(o<32||127===o);)if(92===o&&t+1<n)t+=2;else{if(40===o&&a++,41===o){if(0===a)break;a--}t++}return u===t?l:0!==a?l:(l.str=i(e.slice(u,t)),l.lines=0,l.pos=t,l.ok=!0,l)}},function(e,t,n){"use strict";var r=n(3).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,u=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return l;for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return l.pos=t+1,l.lines=a,l.str=r(e.slice(u+1,t)),l.ok=!0,l;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return l}},function(e,t,n){"use strict";var r=n(3).assign,i=n(3).unescapeAll,o=n(3).escapeHtml,a={};function u(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,i){var a=e[t];return"<code"+i.renderAttrs(a)+">"+o(e[t].content)+"</code>"},a.code_block=function(e,t,n,r,i){var a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+o(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,r,a){var u,l,s,c,f=e[t],p=f.info?i(f.info).trim():"",d="";return p&&(d=p.split(/\s+/g)[0]),0===(u=n.highlight&&n.highlight(f.content,d)||o(f.content)).indexOf("<pre")?u+"\n":p?(l=f.attrIndex("class"),s=f.attrs?f.attrs.slice():[],l<0?s.push(["class",n.langPrefix+d]):s[l][1]+=" "+n.langPrefix+d,c={attrs:s},"<pre><code"+a.renderAttrs(c)+">"+u+"</code></pre>\n"):"<pre><code"+a.renderAttrs(f)+">"+u+"</code></pre>\n"},a.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},u.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return r},u.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden?o=!1:-1===r.nesting&&r.tag===a.tag&&(o=!1))),i+=o?">\n":">")},u.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,u=e.length;a<u;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},u.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type&&(r+=this.renderInlineAsText(e[i].children,t,n));return r},u.prototype.render=function(e,t,n){var r,i,o,a="",u=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==u[o]?a+=u[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=u},function(e,t,n){"use strict";var r=n(91),i=[["normalize",n(278)],["block",n(279)],["inline",n(280)],["linkify",n(281)],["replacements",n(282)],["smartquotes",n(283)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1])}o.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},o.prototype.State=n(284),e.exports=o},function(e,t,n){"use strict";var r=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,i=/\u0000/g;e.exports=function(e){var t;t=(t=e.src.replace(r,"\n")).replace(i,"�"),e.src=t}},function(e,t,n){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},function(e,t,n){"use strict";var r=n(3).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,a,u,l,s,c,f,p,d,h,m,v,g,y,b,k,w=e.tokens;if(e.md.options.linkify)for(n=0,o=w.length;n<o;n++)if("inline"===w[n].type&&e.md.linkify.pretest(w[n].content))for(m=0,t=(a=w[n].children).length-1;t>=0;t--)if("link_close"!==(l=a[t]).type){if("html_inline"===l.type&&(k=l.content,/^<a[>\s]/i.test(k)&&m>0&&m--,i(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(f=l.content,b=e.md.linkify.match(f),s=[],h=l.level,d=0,c=0;c<b.length;c++)v=b[c].url,g=e.md.normalizeLink(v),e.md.validateLink(g)&&(y=b[c].text,y=b[c].schema?"mailto:"!==b[c].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(p=b[c].index)>d&&((u=new e.Token("text","",0)).content=f.slice(d,p),u.level=h,s.push(u)),(u=new e.Token("link_open","a",1)).attrs=[["href",g]],u.level=h++,u.markup="linkify",u.info="auto",s.push(u),(u=new e.Token("text","",0)).content=y,u.level=h,s.push(u),(u=new e.Token("link_close","a",-1)).level=--h,u.markup="linkify",u.info="auto",s.push(u),d=b[c].lastIndex);d<f.length&&((u=new e.Token("text","",0)).content=f.slice(d),u.level=h,s.push(u)),w[n].children=a=r(a,t,s)}}else for(t--;a[t].level!==l.level&&"link_open"!==a[t].type;)t--}},function(e,t,n){"use strict";var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,i=/\((c|tm|r|p)\)/i,o=/\((c|tm|r|p)\)/gi,a={c:"©",r:"®",p:"§",tm:"™"};function u(e,t){return a[t.toLowerCase()]}function l(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(o,u)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function s(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(i.test(e.tokens[t].content)&&l(e.tokens[t].children),r.test(e.tokens[t].content)&&s(e.tokens[t].children))}},function(e,t,n){"use strict";var r=n(3).isWhiteSpace,i=n(3).isPunctChar,o=n(3).isMdAsciiPunct,a=/['"]/,u=/['"]/g,l="’";function s(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,t){var n,a,c,f,p,d,h,m,v,g,y,b,k,w,_,T,E,x,O,C,S;for(O=[],n=0;n<e.length;n++){for(a=e[n],h=e[n].level,E=O.length-1;E>=0&&!(O[E].level<=h);E--);if(O.length=E+1,"text"===a.type){p=0,d=(c=a.content).length;e:for(;p<d&&(u.lastIndex=p,f=u.exec(c));){if(_=T=!0,p=f.index+1,x="'"===f[0],v=32,f.index-1>=0)v=c.charCodeAt(f.index-1);else for(E=n-1;E>=0;E--)if("text"===e[E].type){v=e[E].content.charCodeAt(e[E].content.length-1);break}if(g=32,p<d)g=c.charCodeAt(p);else for(E=n+1;E<e.length;E++)if("text"===e[E].type){g=e[E].content.charCodeAt(0);break}if(y=o(v)||i(String.fromCharCode(v)),b=o(g)||i(String.fromCharCode(g)),k=r(v),(w=r(g))?_=!1:b&&(k||y||(_=!1)),k?T=!1:y&&(w||b||(T=!1)),34===g&&'"'===f[0]&&v>=48&&v<=57&&(T=_=!1),_&&T&&(_=!1,T=b),_||T){if(T)for(E=O.length-1;E>=0&&(m=O[E],!(O[E].level<h));E--)if(m.single===x&&O[E].level===h){m=O[E],x?(C=t.md.options.quotes[2],S=t.md.options.quotes[3]):(C=t.md.options.quotes[0],S=t.md.options.quotes[1]),a.content=s(a.content,f.index,S),e[m.token].content=s(e[m.token].content,m.pos,C),p+=S.length-1,m.token===n&&(p+=C.length-1),d=(c=a.content).length,O.length=E;continue e}_?O.push({token:n,pos:f.index,single:x,level:h}):T&&x&&(a.content=s(a.content,f.index,l))}else x&&(a.content=s(a.content,f.index,l))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}},function(e,t,n){"use strict";var r=n(92);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},function(e,t,n){"use strict";var r=n(91),i=[["table",n(286),["paragraph","reference"]],["code",n(287)],["fence",n(288),["paragraph","reference","blockquote","list"]],["blockquote",n(289),["paragraph","reference","blockquote","list"]],["hr",n(290),["paragraph","reference","blockquote","list"]],["list",n(291),["paragraph","reference","blockquote"]],["reference",n(292)],["heading",n(293),["paragraph","reference","blockquote"]],["lheading",n(294)],["html_block",n(295),["paragraph","reference","blockquote"]],["paragraph",n(297)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,u=!1,l=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!u,e.isEmpty(e.line-1)&&(u=!0),(a=e.line)<n&&e.isEmpty(a)&&(u=!0,a++,e.line=a)}},o.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=n(298),e.exports=o},function(e,t,n){"use strict";var r=n(3).isSpace;function i(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=0,a=0,u=!1,l=0;for(t=e.charCodeAt(r);r<i;)96===t?u?(u=!1,l=r):o%2==0&&(u=!0,l=r):124!==t||o%2!=0||u||(n.push(e.substring(a,r)),a=r+1),92===t?o++:o=0,++r===i&&u&&(u=!1,r=l+1),t=e.charCodeAt(r);return n.push(e.substring(a)),n}e.exports=function(e,t,n,a){var u,l,s,c,f,p,d,h,m,v,g,y;if(t+2>n)return!1;if(f=t+1,e.sCount[f]<e.blkIndent)return!1;if(e.sCount[f]-e.blkIndent>=4)return!1;if((s=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(u=e.src.charCodeAt(s++))&&45!==u&&58!==u)return!1;for(;s<e.eMarks[f];){if(124!==(u=e.src.charCodeAt(s))&&45!==u&&58!==u&&!r(u))return!1;s++}for(p=(l=i(e,t+1)).split("|"),m=[],c=0;c<p.length;c++){if(!(v=p[c].trim())){if(0===c||c===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?m.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(l=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((d=(p=o(l.replace(/^\||\|$/g,""))).length)>m.length)return!1;if(a)return!0;for((h=e.push("table_open","table",1)).map=g=[t,0],(h=e.push("thead_open","thead",1)).map=[t,t+1],(h=e.push("tr_open","tr",1)).map=[t,t+1],c=0;c<p.length;c++)(h=e.push("th_open","th",1)).map=[t,t+1],m[c]&&(h.attrs=[["style","text-align:"+m[c]]]),(h=e.push("inline","",0)).content=p[c].trim(),h.map=[t,t+1],h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),(h=e.push("tbody_open","tbody",1)).map=y=[t+2,0],f=t+2;f<n&&!(e.sCount[f]<e.blkIndent)&&-1!==(l=i(e,f).trim()).indexOf("|")&&!(e.sCount[f]-e.blkIndent>=4);f++){for(p=o(l.replace(/^\||\|$/g,"")),h=e.push("tr_open","tr",1),c=0;c<d;c++)h=e.push("td_open","td",1),m[c]&&(h.attrs=[["style","text-align:"+m[c]]]),(h=e.push("inline","",0)).content=p[c]?p[c].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return h=e.push("tbody_close","tbody",-1),h=e.push("table_close","table",-1),g[1]=y[1]=f,e.line=f,!0}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!0),o.map=[t,e.line],!0}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o,a,u,l,s,c,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(l=p,(o=(p=e.skipChars(p,i))-l)<3)return!1;if(c=e.src.slice(l,p),(a=e.src.slice(p,d)).indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(u=t;!(++u>=n)&&!((p=l=e.bMarks[u]+e.tShift[u])<(d=e.eMarks[u])&&e.sCount[u]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[u]-e.blkIndent>=4||(p=e.skipChars(p,i))-l<o||(p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=u+(f?1:0),(s=e.push("fence","code",0)).info=a,s.content=e.getLines(t+1,u,o,!0),s.markup=c,s.map=[t,e.line],!0}},function(e,t,n){"use strict";var r=n(3).isSpace;e.exports=function(e,t,n,i){var o,a,u,l,s,c,f,p,d,h,m,v,g,y,b,k,w,_,T,E,x=e.lineMax,O=e.bMarks[t]+e.tShift[t],C=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(O++))return!1;if(i)return!0;for(l=d=e.sCount[t]+O-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(O)?(O++,l++,d++,o=!1,k=!0):9===e.src.charCodeAt(O)?(k=!0,(e.bsCount[t]+d)%4==3?(O++,l++,d++,o=!1):o=!0):k=!1,h=[e.bMarks[t]],e.bMarks[t]=O;O<C&&(a=e.src.charCodeAt(O),r(a));)9===a?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,O++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(k?1:0),c=O>=C,y=[e.sCount[t]],e.sCount[t]=d-l,b=[e.tShift[t]],e.tShift[t]=O-e.bMarks[t],_=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",E=!1,p=t+1;p<n&&(e.sCount[p]<e.blkIndent&&(E=!0),!((O=e.bMarks[p]+e.tShift[p])>=(C=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(O++)||E){if(c)break;for(w=!1,u=0,s=_.length;u<s;u++)if(_[u](e,p,n,!0)){w=!0;break}if(w){e.lineMax=p,0!==e.blkIndent&&(h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]=-1}else{for(l=d=e.sCount[p]+O-(e.bMarks[p]+e.tShift[p]),32===e.src.charCodeAt(O)?(O++,l++,d++,o=!1,k=!0):9===e.src.charCodeAt(O)?(k=!0,(e.bsCount[p]+d)%4==3?(O++,l++,d++,o=!1):o=!0):k=!1,h.push(e.bMarks[p]),e.bMarks[p]=O;O<C&&(a=e.src.charCodeAt(O),r(a));)9===a?d+=4-(d+e.bsCount[p]+(o?1:0))%4:d++,O++;c=O>=C,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(k?1:0),y.push(e.sCount[p]),e.sCount[p]=d-l,b.push(e.tShift[p]),e.tShift[p]=O-e.bMarks[p]}for(v=e.blkIndent,e.blkIndent=0,(T=e.push("blockquote_open","blockquote",1)).markup=">",T.map=f=[t,0],e.md.block.tokenize(e,t,p),(T=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=g,f[1]=e.line,u=0;u<b.length;u++)e.bMarks[u+t]=h[u],e.tShift[u+t]=b[u],e.sCount[u+t]=y[u],e.bsCount[u+t]=m[u];return e.blkIndent=v,!0}},function(e,t,n){"use strict";var r=n(3).isSpace;e.exports=function(e,t,n,i){var o,a,u,l,s=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(s++))&&45!==o&&95!==o)return!1;for(a=1;s<c;){if((u=e.src.charCodeAt(s++))!==o&&!r(u))return!1;u===o&&a++}return!(a<3)&&(!!i||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(o)),!0))}},function(e,t,n){"use strict";var r=n(3).isSpace;function i(e,t){var n,i,o,a;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n?-1:i<o&&(a=e.src.charCodeAt(i),!r(a))?-1:i}function o(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,a=e.eMarks[t];if(o+1>=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o<a&&(n=e.src.charCodeAt(o),!r(n))?-1:o}e.exports=function(e,t,n,r){var a,u,l,s,c,f,p,d,h,m,v,g,y,b,k,w,_,T,E,x,O,C,S,N,L,D,A,I,F=!1,j=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(F=!0),(S=o(e,t))>=0){if(p=!0,L=e.bMarks[t]+e.tShift[t],y=Number(e.src.substr(L,S-L-1)),F&&1!==y)return!1}else{if(!((S=i(e,t))>=0))return!1;p=!1}if(F&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(S-1),r)return!0;for(v=e.tokens.length,p?(I=e.push("ordered_list_open","ol",1),1!==y&&(I.attrs=[["start",y]])):I=e.push("bullet_list_open","ul",1),I.map=m=[t,0],I.markup=String.fromCharCode(g),k=t,N=!1,A=e.md.block.ruler.getRules("list"),E=e.parentType,e.parentType="list";k<n;){for(C=S,b=e.eMarks[k],f=w=e.sCount[k]+S-(e.bMarks[t]+e.tShift[t]);C<b;){if(9===(a=e.src.charCodeAt(C)))w+=4-(w+e.bsCount[k])%4;else{if(32!==a)break;w++}C++}if((c=(u=C)>=b?1:w-f)>4&&(c=1),s=f+c,(I=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),I.map=d=[t,0],_=e.blkIndent,O=e.tight,x=e.tShift[t],T=e.sCount[t],e.blkIndent=s,e.tight=!0,e.tShift[t]=u-e.bMarks[t],e.sCount[t]=w,u>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(j=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=_,e.tShift[t]=x,e.sCount[t]=T,e.tight=O,(I=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),k=t=e.line,d[1]=k,u=e.bMarks[t],k>=n)break;if(e.sCount[k]<e.blkIndent)break;for(D=!1,l=0,h=A.length;l<h;l++)if(A[l](e,k,n,!0)){D=!0;break}if(D)break;if(p){if((S=o(e,k))<0)break}else if((S=i(e,k))<0)break;if(g!==e.src.charCodeAt(S-1))break}return(I=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),m[1]=k,e.line=k,e.parentType=E,j&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,v),!0}},function(e,t,n){"use strict";var r=n(3).normalizeReference,i=n(3).isSpace;e.exports=function(e,t,n,o){var a,u,l,s,c,f,p,d,h,m,v,g,y,b,k,w,_=0,T=e.bMarks[t]+e.tShift[t],E=e.eMarks[t],x=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(T))return!1;for(;++T<E;)if(93===e.src.charCodeAt(T)&&92!==e.src.charCodeAt(T-1)){if(T+1===E)return!1;if(58!==e.src.charCodeAt(T+1))return!1;break}for(s=e.lineMax,k=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";x<s&&!e.isEmpty(x);x++)if(!(e.sCount[x]-e.blkIndent>3||e.sCount[x]<0)){for(b=!1,f=0,p=k.length;f<p;f++)if(k[f](e,x,s,!0)){b=!0;break}if(b)break}for(E=(y=e.getLines(t,x,e.blkIndent,!1).trim()).length,T=1;T<E;T++){if(91===(a=y.charCodeAt(T)))return!1;if(93===a){h=T;break}10===a?_++:92===a&&++T<E&&10===y.charCodeAt(T)&&_++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(T=h+2;T<E;T++)if(10===(a=y.charCodeAt(T)))_++;else if(!i(a))break;if(!(v=e.md.helpers.parseLinkDestination(y,T,E)).ok)return!1;if(c=e.md.normalizeLink(v.str),!e.md.validateLink(c))return!1;for(u=T=v.pos,l=_+=v.lines,g=T;T<E;T++)if(10===(a=y.charCodeAt(T)))_++;else if(!i(a))break;for(v=e.md.helpers.parseLinkTitle(y,T,E),T<E&&g!==T&&v.ok?(w=v.str,T=v.pos,_+=v.lines):(w="",T=u,_=l);T<E&&(a=y.charCodeAt(T),i(a));)T++;if(T<E&&10!==y.charCodeAt(T)&&w)for(w="",T=u,_=l;T<E&&(a=y.charCodeAt(T),i(a));)T++;return!(T<E&&10!==y.charCodeAt(T))&&(!!(d=r(y.slice(1,h)))&&(!!o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[d]&&(e.env.references[d]={title:w,href:c}),e.parentType=m,e.line=t+_+1,!0)))}},function(e,t,n){"use strict";var r=n(3).isSpace;e.exports=function(e,t,n,i){var o,a,u,l,s=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(s))||s>=c)return!1;for(a=1,o=e.src.charCodeAt(++s);35===o&&s<c&&a<=6;)a++,o=e.src.charCodeAt(++s);return!(a>6||s<c&&!r(o))&&(!!i||(c=e.skipSpacesBack(c,s),(u=e.skipCharsBack(c,35,s))>s&&r(e.src.charCodeAt(u-1))&&(c=u),e.line=t+1,(l=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(s,c).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a),!0))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,u,l,s,c,f,p,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(l=e.bMarks[d]+e.tShift[d])<(s=e.eMarks[d])&&(45===(f=e.src.charCodeAt(l))||61===f)&&(l=e.skipChars(l,f),(l=e.skipSpaces(l))>=s)){c=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(u=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(f),u.map=[t,e.line],(u=e.push("inline","",0)).content=r,u.map=[t,e.line-1],u.children=[],(u=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}},function(e,t,n){"use strict";var r=n(296),i=n(170).HTML_OPEN_CLOSE_TAG_RE,o=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,u,l,s=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(s))return!1;for(l=e.src.slice(s,c),i=0;i<o.length&&!o[i][0].test(l);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(l))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(s=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],l=e.src.slice(s,c),o[i][1].test(l)){0!==l.length&&a++;break}return e.line=a,(u=e.push("html_block","",0)).map=[t,a],u.content=e.getLines(t,a,e.blkIndent,!0),!0}},function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o,a,u,l=t+1,s=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(u=e.parentType,e.parentType="paragraph";l<c&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(r=!1,i=0,o=s.length;i<o;i++)if(s[i](e,l,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=u,!0}},function(e,t,n){"use strict";var r=n(92),i=n(3).isSpace;function o(e,t,n,r){var o,a,u,l,s,c,f,p;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,u=l=c=f=0,s=(a=this.src).length;l<s;l++){if(o=a.charCodeAt(l),!p){if(i(o)){c++,9===o?f+=4-f%4:f++;continue}p=!0}10!==o&&l!==s-1||(10!==o&&l++,this.bMarks.push(u),this.eMarks.push(l),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),p=!1,c=0,f=0,u=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),i(t));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,u,l,s,c,f,p=e;if(e>=t)return"";for(c=new Array(t-e),o=0;p<t;p++,o++){for(a=0,f=l=this.bMarks[p],s=p+1<t||r?this.eMarks[p]+1:this.eMarks[p];l<s&&a<n;){if(u=this.src.charCodeAt(l),i(u))9===u?a+=4-(a+this.bsCount[p])%4:a++;else{if(!(l-f<this.tShift[p]))break;a++}l++}c[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(l,s):this.src.slice(l,s)}return c.join("")},o.prototype.Token=r,e.exports=o},function(e,t,n){"use strict";var r=n(91),i=[["text",n(300)],["newline",n(301)],["escape",n(302)],["backticks",n(303)],["strikethrough",n(171).tokenize],["emphasis",n(172).tokenize],["link",n(304)],["image",n(305)],["autolink",n(306)],["html_inline",n(307)],["entity",n(308)]],o=[["balance_pairs",n(309)],["strikethrough",n(171).postProcess],["emphasis",n(172).postProcess],["text_collapse",n(310)]];function a(){var e;for(this.ruler=new r,e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(this.ruler2=new r,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}a.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,u=e.cache;if(void 0===u[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,u[r]=e.pos}else e.pos=u[r]},a.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,u=new this.State(e,t,n,r);for(this.tokenize(u),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](u)},a.prototype.State=n(311),e.exports=a},function(e,t,n){"use strict";function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},function(e,t,n){"use strict";var r=n(3).isSpace;e.exports=function(e,t){var n,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(n=e.pending.length-1,i=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o<i&&r(e.src.charCodeAt(o));)o++;return e.pos=o,!0}},function(e,t,n){"use strict";for(var r=n(3).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){i[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<a){if((n=e.src.charCodeAt(o))<256&&0!==i[n])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),o++;o<a&&(n=e.src.charCodeAt(o),r(n));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o,a,u,l=e.pos;if(96!==e.src.charCodeAt(l))return!1;for(n=l,l++,r=e.posMax;l<r&&96===e.src.charCodeAt(l);)l++;for(i=e.src.slice(n,l),o=a=l;-1!==(o=e.src.indexOf("`",a));){for(a=o+1;a<r&&96===e.src.charCodeAt(a);)a++;if(a-o===i.length)return t||((u=e.push("code_inline","code",0)).markup=i,u.content=e.src.slice(l,o).replace(/[ \n]+/g," ").trim()),e.pos=a,!0}return t||(e.pending+=i),e.pos+=i.length,!0}},function(e,t,n){"use strict";var r=n(3).normalizeReference,i=n(3).isSpace;e.exports=function(e,t){var n,o,a,u,l,s,c,f,p,d="",h=e.pos,m=e.posMax,v=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(u=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((s=u+1)<m&&40===e.src.charCodeAt(s)){for(g=!1,s++;s<m&&(o=e.src.charCodeAt(s),i(o)||10===o);s++);if(s>=m)return!1;for(v=s,(c=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?s=c.pos:d=""),v=s;s<m&&(o=e.src.charCodeAt(s),i(o)||10===o);s++);if(c=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<m&&v!==s&&c.ok)for(p=c.str,s=c.pos;s<m&&(o=e.src.charCodeAt(s),i(o)||10===o);s++);else p="";(s>=m||41!==e.src.charCodeAt(s))&&(g=!0),s++}if(g){if(void 0===e.env.references)return!1;if(s<m&&91===e.src.charCodeAt(s)?(v=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?a=e.src.slice(v,s++):s=u+1):s=u+1,a||(a=e.src.slice(l,u)),!(f=e.env.references[r(a)]))return e.pos=h,!1;d=f.href,p=f.title}return t||(e.pos=l,e.posMax=u,e.push("link_open","a",1).attrs=n=[["href",d]],p&&n.push(["title",p]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=m,!0}},function(e,t,n){"use strict";var r=n(3).normalizeReference,i=n(3).isSpace;e.exports=function(e,t){var n,o,a,u,l,s,c,f,p,d,h,m,v,g="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=l+1)<b&&40===e.src.charCodeAt(c)){for(c++;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(c>=b)return!1;for(v=c,(p=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(g=e.md.normalizeLink(p.str),e.md.validateLink(g)?c=p.pos:g=""),v=c;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(p=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<b&&v!==c&&p.ok)for(d=p.str,c=p.pos;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);else d="";if(c>=b||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if(void 0===e.env.references)return!1;if(c<b&&91===e.src.charCodeAt(c)?(v=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?u=e.src.slice(v,c++):c=l+1):c=l+1,u||(u=e.src.slice(s,l)),!(f=e.env.references[r(u)]))return e.pos=y,!1;g=f.href,d=f.title}return t||(a=e.src.slice(s,l),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],h.children=m,h.content=a,d&&n.push(["title",d])),e.pos=c,e.posMax=b,!0}},function(e,t,n){"use strict";var r=/^<([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])?)*)>/,i=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,o,a,u,l,s,c=e.pos;return 60===e.src.charCodeAt(c)&&(!((n=e.src.slice(c)).indexOf(">")<0)&&(i.test(n)?(u=(o=n.match(i))[0].slice(1,-1),l=e.md.normalizeLink(u),!!e.md.validateLink(l)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",l]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(u),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o[0].length,!0)):!!r.test(n)&&(u=(a=n.match(r))[0].slice(1,-1),l=e.md.normalizeLink("mailto:"+u),!!e.md.validateLink(l)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",l]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(u),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=a[0].length,!0))))}},function(e,t,n){"use strict";var r=n(170).HTML_TAG_RE;e.exports=function(e,t){var n,i,o,a=e.pos;return!!e.md.options.html&&(o=e.posMax,!(60!==e.src.charCodeAt(a)||a+2>=o)&&(!(33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(i=e.src.slice(a).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,!0))))}},function(e,t,n){"use strict";var r=n(165),i=n(3).has,o=n(3).isValidEntityCode,a=n(3).fromCodePoint,u=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,s,c=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1<f)if(35===e.src.charCodeAt(c+1)){if(s=e.src.slice(c).match(u))return t||(n="x"===s[1][0].toLowerCase()?parseInt(s[1].slice(1),16):parseInt(s[1],10),e.pending+=o(n)?a(n):a(65533)),e.pos+=s[0].length,!0}else if((s=e.src.slice(c).match(l))&&i(r,s[1]))return t||(e.pending+=r[s[1]]),e.pos+=s[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,i,o=e.delimiters,a=e.delimiters.length;for(t=0;t<a;t++)if((r=o[t]).close)for(n=t-r.jump-1;n>=0;){if((i=o[n]).open&&i.marker===r.marker&&i.end<0&&i.level===r.level)if(!((i.close||r.open)&&void 0!==i.length&&void 0!==r.length&&(i.length+r.length)%3==0)){r.jump=t-n,r.open=!1,i.end=t,i.jump=0;break}n-=i.jump+1}}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)r+=i[t].nesting,i[t].level=r,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},function(e,t,n){"use strict";var r=n(92),i=n(3).isWhiteSpace,o=n(3).isPunctChar,a=n(3).isMdAsciiPunct;function u(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}u.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},u.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n);return n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(i),i},u.prototype.scanDelims=function(e,t){var n,r,u,l,s,c,f,p,d,h=e,m=!0,v=!0,g=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<g&&this.src.charCodeAt(h)===y;)h++;return u=h-e,r=h<g?this.src.charCodeAt(h):32,f=a(n)||o(String.fromCharCode(n)),d=a(r)||o(String.fromCharCode(r)),c=i(n),(p=i(r))?m=!1:d&&(c||f||(m=!1)),c?v=!1:f&&(p||d||(v=!1)),t?(l=m,s=v):(l=m&&(!v||f),s=v&&(!m||d)),{can_open:l,can_close:s,length:u}},u.prototype.Token=r,e.exports=u},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var u={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0: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}}},s="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function f(e){var t=e.re=n(313)(e.__opts__),r=e.__tlds__.slice();function u(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(s),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");var l=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===i(n))return!function(e){return"[object RegExp]"===i(e)}(n.validate)?o(n.validate)?a.validate=n.validate:c(t,n):a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}),void(o(n.normalize)?a.normalize=n.normalize:n.normalize?c(t,n):a.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?c(t,n):l.push(t)}}),l.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var f=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+"))("+f+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","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=new function(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}(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||u.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},u,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},f(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,f(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,u,l;if(this.re.schema_test.test(e))for((u=this.re.schema_search).lastIndex=0;null!==(t=u.exec(e));)if(i=this.testSchemaAt(e,t[2],u.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<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(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},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(),f(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,f(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){"use strict";e.exports=function(e){var t={};t.src_Any=n(167).source,t.src_Cc=n(168).source,t.src_Z=n(169).source,t.src_P=n(90).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-(?!-)|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|[><|]|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){(function(e,r){var i;!function(o){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var u,l=2147483647,s=36,c=1,f=26,p=38,d=700,h=72,m=128,v="-",g=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=s-c,_=Math.floor,T=String.fromCharCode;function E(e){throw new RangeError(k[e])}function x(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function O(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+x((e=e.replace(b,".")).split("."),t).join(".")}function C(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 S(e){return x(e,function(e){var t="";return e>65535&&(t+=T((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=T(e)}).join("")}function N(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function L(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>w*f>>1;r+=s)e=_(e/w);return _(r+(w+1)*e/(e+p))}function D(e){var t,n,r,i,o,a,u,p,d,g,y,b=[],k=e.length,w=0,T=m,x=h;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&E("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<k;){for(o=w,a=1,u=s;i>=k&&E("invalid-input"),((p=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:s)>=s||p>_((l-w)/a))&&E("overflow"),w+=p*a,!(p<(d=u<=x?c:u>=x+f?f:u-x));u+=s)a>_(l/(g=s-d))&&E("overflow"),a*=g;x=L(w-o,t=b.length+1,0==o),_(w/t)>l-T&&E("overflow"),T+=_(w/t),w%=t,b.splice(w++,0,T)}return S(b)}function A(e){var t,n,r,i,o,a,u,p,d,g,y,b,k,w,x,O=[];for(b=(e=C(e)).length,t=m,n=0,o=h,a=0;a<b;++a)(y=e[a])<128&&O.push(T(y));for(r=i=O.length,i&&O.push(v);r<b;){for(u=l,a=0;a<b;++a)(y=e[a])>=t&&y<u&&(u=y);for(u-t>_((l-n)/(k=r+1))&&E("overflow"),n+=(u-t)*k,t=u,a=0;a<b;++a)if((y=e[a])<t&&++n>l&&E("overflow"),y==t){for(p=n,d=s;!(p<(g=d<=o?c:d>=o+f?f:d-o));d+=s)x=p-g,w=s-g,O.push(T(N(g+x%w,0))),p=_(x/w);O.push(T(N(p,0))),o=L(n,k,r==i),n=0,++r}++n,++t}return O.join("")}u={version:"1.4.1",ucs2:{decode:C,encode:S},decode:D,encode:A,toASCII:function(e){return O(e,function(e){return y.test(e)?"xn--"+A(e):e})},toUnicode:function(e){return O(e,function(e){return g.test(e)?D(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return u}.call(t,n,t,e))||(e.exports=i)}()}).call(t,n(21)(e),n(18))},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},function(e,t,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeWhitespace=function(e){return e.replace(i," ")};var r=t.invalidCharacters=Array.from({length:11},function(e,t){return String.fromCharCode(8192+t)}).concat(["\u2028","\u2029"," "]),i=new RegExp("["+r.join("|")+"]","g")},function(e,t,n){(function(e){"use strict";var t={},n=/[^\s\u00a0]/,r=e.Pos;function i(e){var t=e.search(n);return-1==t?0:t}function o(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 u=i[a].from(),l=i[a].to();u.line>=n||(l.line>=n&&(l=r(n,0)),n=u.line,null==o?this.uncomment(u,l,e)?o="un":(this.lineComment(u,l,e),o="line"):"un"==o?this.uncomment(u,l,e):this.lineComment(u,l,e))}}),e.defineExtension("lineComment",function(e,a,u){u||(u=t);var l=this,s=o(l,e),c=l.getLine(e.line);if(null!=c&&(f=e,p=c,!/\bstring\b/.test(l.getTokenTypeAt(r(f.line,0)))||/^[\'\"\`]/.test(p))){var f,p,d=u.lineComment||s.lineComment;if(d){var h=Math.min(0!=a.ch||a.line==e.line?a.line+1:a.line,l.lastLine()+1),m=null==u.padding?" ":u.padding,v=u.commentBlankLines||e.line==a.line;l.operation(function(){if(u.indent){for(var t=null,o=e.line;o<h;++o){var a=(s=l.getLine(o)).slice(0,i(s));(null==t||t.length>a.length)&&(t=a)}for(o=e.line;o<h;++o){var s=l.getLine(o),c=t.length;(v||n.test(s))&&(s.slice(0,c)!=t&&(c=i(s)),l.replaceRange(t+d+m,r(o,0),r(o,c)))}}else for(o=e.line;o<h;++o)(v||n.test(l.getLine(o)))&&l.replaceRange(d+m,r(o,0))})}else(u.blockCommentStart||s.blockCommentStart)&&(u.fullLines=!0,l.blockComment(e,a,u))}}),e.defineExtension("blockComment",function(e,i,a){a||(a=t);var u=this,l=o(u,e),s=a.blockCommentStart||l.blockCommentStart,c=a.blockCommentEnd||l.blockCommentEnd;if(s&&c){if(!/\bcomment\b/.test(u.getTokenTypeAt(r(e.line,0)))){var f=Math.min(i.line,u.lastLine());f!=e.line&&0==i.ch&&n.test(u.getLine(f))&&--f;var p=null==a.padding?" ":a.padding;e.line>f||u.operation(function(){if(0!=a.fullLines){var t=n.test(u.getLine(f));u.replaceRange(p+c,r(f)),u.replaceRange(s+p,r(e.line,0));var o=a.blockCommentLead||l.blockCommentLead;if(null!=o)for(var d=e.line+1;d<=f;++d)(d!=f||t)&&u.replaceRange(o+p,r(d,0))}else u.replaceRange(c,i),u.replaceRange(s,e)})}}else(a.lineComment||l.lineComment)&&0!=a.fullLines&&u.lineComment(e,i,a)}),e.defineExtension("uncomment",function(e,i,a){a||(a=t);var u,l=this,s=o(l,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),f=Math.min(e.line,c),p=a.lineComment||s.lineComment,d=[],h=null==a.padding?" ":a.padding;e:if(p){for(var m=f;m<=c;++m){var v=l.getLine(m),g=v.indexOf(p);if(g>-1&&!/comment/.test(l.getTokenTypeAt(r(m,g+1)))&&(g=-1),-1==g&&n.test(v))break e;if(g>-1&&n.test(v.slice(0,g)))break e;d.push(v)}if(l.operation(function(){for(var e=f;e<=c;++e){var t=d[e-f],n=t.indexOf(p),i=n+p.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),u=!0,l.replaceRange("",r(e,n),r(e,i)))}}),u)return!0}var y=a.blockCommentStart||s.blockCommentStart,b=a.blockCommentEnd||s.blockCommentEnd;if(!y||!b)return!1;var k=a.blockCommentLead||s.blockCommentLead,w=l.getLine(f),_=w.indexOf(y);if(-1==_)return!1;var T=c==f?w:l.getLine(c),E=T.indexOf(b,c==f?_+y.length:0),x=r(f,_+1),O=r(c,E+1);if(-1==E||!/comment/.test(l.getTokenTypeAt(x))||!/comment/.test(l.getTokenTypeAt(O))||l.getRange(x,O,"\n").indexOf(b)>-1)return!1;var C=w.lastIndexOf(y,e.ch),S=-1==C?-1:w.slice(0,e.ch).indexOf(b,C+y.length);if(-1!=C&&-1!=S&&S+b.length!=e.ch)return!1;S=T.indexOf(b,i.ch);var N=T.slice(i.ch).lastIndexOf(y,S-i.ch);return C=-1==S||-1==N?-1:i.ch+N,(-1==S||-1==C||C==i.ch)&&(l.operation(function(){l.replaceRange("",r(c,E-(h&&T.slice(E-h.length,E)==h?h.length:0)),r(c,E+b.length));var e=_+y.length;if(h&&w.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange("",r(f,_),r(f,e)),k)for(var t=f+1;t<=c;++t){var i=l.getLine(t),o=i.indexOf(k);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+k.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange("",r(t,o),r(t,a))}}}),!0)})})(n(4))},function(e,t,n){(function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var u=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.line<u)return null;for(var i=t.findMarksAt(r.from),l=0;l<i.length;++l)if(i[l].__isFold&&"fold"!==o){if(!e)return null;r.cleared=!0,i[l].clear()}return r}var s=l(!0);if(r(t,i,"scanUp"))for(;!s&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),s=l(!1);if(s&&!s.cleared&&"unfold"!==o){var c=function(e,t){var n=r(e,t,"widget");if("string"==typeof n){var i=document.createTextNode(n);(n=document.createElement("span")).appendChild(i),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}(t,i);e.on(c,"mousedown",function(t){f.clear(),e.e_preventDefault(t)});var f=t.markText(s.from,s.to,{replacedWith:c,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});f.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,s.from,s.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}});var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return r(this,e,t)})})(n(4))},function(e,t,n){"use strict";var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r},a=n(33);o.default.registerHelper("hint","graphql",function(e,t){var n=t.schema;if(n){var r=e.getCursor(),i=e.getTokenAt(r),u=(0,a.getAutocompleteSuggestions)(n,e.getValue(),r,i),l=null!==i.type&&/"|\w/.test(i.string[0])?i.start:i.end,s={list:u.map(function(e){return{text:e.label,type:n.getType(e.detail),description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}),from:{line:r.line,column:l},to:{line:r.line,column:i.end}};return s&&s.list&&s.list.length>0&&(s.from=o.default.Pos(s.from.line,s.from.column),s.to=o.default.Pos(s.to.line,s.to.column),o.default.signal(e,"hasCompletion",e,s,i)),s}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getStartOfToken=function(){return n._start},this.getCurrentPosition=function(){return n._pos},this.eol=function(){return n._sourceText.length===n._pos},this.sol=function(){return 0===n._pos},this.peek=function(){return n._sourceText.charAt(n._pos)?n._sourceText.charAt(n._pos):null},this.next=function(){var e=n._sourceText.charAt(n._pos);return n._pos++,e},this.eat=function(e){if(n._testNextCharacter(e))return n._start=n._pos,n._pos++,n._sourceText.charAt(n._pos-1)},this.eatWhile=function(e){var t=n._testNextCharacter(e),r=!1;for(t&&(r=t,n._start=n._pos);t;)n._pos++,t=n._testNextCharacter(e),r=!0;return r},this.eatSpace=function(){return n.eatWhile(/[\s\u00a0]/)},this.skipToEnd=function(){n._pos=n._sourceText.length},this.skipTo=function(e){n._pos=e},this.match=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,o=null;"string"==typeof e?(o=new RegExp(e,r?"i":"g").test(n._sourceText.substr(n._pos,e.length)),i=e):e instanceof RegExp&&(i=(o=n._sourceText.slice(n._pos).match(e))&&o[0]);return!(null==o||!("string"==typeof e||o instanceof Array&&n._sourceText.startsWith(o[0],n._pos)))&&(t&&(n._start=n._pos,i&&i.length&&(n._pos+=i.length)),o)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0===e.length)for(var r=e[0],i=0;r.length>i;)9===r.charCodeAt(i)?t+=2:t++,i++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}return e.prototype._testNextCharacter=function(e){var t=this._sourceText.charAt(this._pos);return"string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t)},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},lexRules:i.LexRules,parseRules:i.ParseRules,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return u(e.parseRules,t,"Document"),t},token:function(t,n){return function(e,t,n){var r=n.lexRules,i=n.parseRules,c=n.eatWhitespace,p=n.editorConfig;t.rule&&0===t.rule.length?l(t):t.needsAdvance&&(t.needsAdvance=!1,s(t,!0));if(e.sol()){var d=p&&p.tabSize||2;t.indentLevel=Math.floor(e.indentation()/d)}if(c(e))return"ws";var h=function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(r,e);if(!h)return e.match(/\S+/),u(a,t,"Invalid"),"invalidchar";if("Comment"===h.kind)return u(a,t,"Comment"),"comment";var m=o({},t);if("Punctuation"===h.kind)if(/^[{([]/.test(h.value))t.levels=(t.levels||[]).concat(t.indentLevel+1);else if(/^[})\]]/.test(h.value)){var v=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&v.length>0&&v[v.length-1]<t.indentLevel&&(t.indentLevel=v[v.length-1])}for(;t.rule;){var g="function"==typeof t.rule?0===t.step?t.rule(h,e):null:t.rule[t.step];if(t.needsSeperator&&(g=g&&g.separator),g){if(g.ofRule&&(g=g.ofRule),"string"==typeof g){u(i,t,g);continue}if(g.match&&g.match(h))return g.update&&g.update(t,h),"Punctuation"===h.kind?s(t,!0):t.needsAdvance=!0,g.style}f(t)}return o(t,m),u(a,t,"Invalid"),"invalidchar"}(t,n,e)}}};var i=n(179);function o(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}var a={Invalid:[],Comment:[]};function u(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=r({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeperator=!1}function l(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 s(e,t){if(c(e)){if(e.rule&&e.rule[e.step].separator){var n=e.rule[e.step].separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&n.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)l(e),e.rule&&(c(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function c(e){return Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step].isList}function f(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)l(e);e.rule&&s(e,!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getASTNodeAtPosition=function(e,t,n){var o=i(e,n),a=void 0;return(0,r.visit)(t,{enter:function(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=o&&o<=e.loc.end))return!1;a=e},leave:function(e){if(e.loc&&e.loc.start<=o&&o<=e.loc.end)return!1}}),a},t.pointToOffset=i;n(181);var r=n(1);function i(e,t){var n=e.split("\n").slice(0,t.line);return t.character+n.map(function(e){return e.length+1}).reduce(function(e,t){return e+t},0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateWithCustomRules=function(e,t,i,o){var a=[n(86).NoUnusedFragments];if(o){var u=n(85),l=u.KnownFragmentNames;a.push(l)}var s=r.specifiedRules.filter(function(e){return!a.some(function(t){return t===e})}),c=new r.TypeInfo(e);i&&Array.prototype.push.apply(s,i);var f=(0,r.validate)(e,t,s,c);if(f.length>0)return f.filter(function(e){return-1===e.message.indexOf("Unknown directive")||!(e.nodes&&e.nodes[0]&&e.nodes[0].name&&"arguments"===e.nodes[0].name.value||e.nodes&&e.nodes[0]&&e.nodes[0].name&&e.nodes[0].name.value&&"argumentDefinitions"===e.nodes[0].name.value)});return[]};var r=n(1)},function(e,t,n){(function(e,r){var i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),l=r[n];n<o;l=r[++n])m(l)||!k(l)?a+=" "+l:a+=" "+u(l);return a},t.deprecate=function(n,i){if(y(e.process))return function(){return t.deprecate(n,i).apply(this,arguments)};if(!0===r.noDeprecation)return n;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return n.apply(this,arguments)}};var o,a={};function u(e,n){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),c(r,e,r.depth)}function l(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function s(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=c(e,i,r)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),u=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),_(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(T(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return f(n)}var s,k="",E=!1,x=["{","}"];(d(n)&&(E=!0,x=["[","]"]),T(n))&&(k=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(k=" "+RegExp.prototype.toString.call(n)),w(n)&&(k=" "+Date.prototype.toUTCString.call(n)),_(n)&&(k=" "+f(n)),0!==a.length||E&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),s=E?function(e,t,n,r,i){for(var o=[],a=0,u=t.length;a<u;++a)C(t,String(a))?o.push(p(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(p(e,t,n,r,i,!0))}),o}(e,n,r,u,a):a.map(function(t){return p(e,n,r,u,t,E)}),e.seen.pop(),function(e,t,n){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(s,k,x)):x[0]+k+x[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,u,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?u=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(u=e.stylize("[Setter]","special")),C(r,i)||(a="["+i+"]"),u||(e.seen.indexOf(l.value)<0?(u=m(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return"   "+e}).join("\n")):u=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return u;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return k(e)&&"[object RegExp]"===E(e)}function k(e){return"object"==typeof e&&null!==e}function w(e){return k(e)&&"[object Date]"===E(e)}function _(e){return k(e)&&("[object Error]"===E(e)||e instanceof Error)}function T(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(o)&&(o=Object({NODE_ENV:"production"}).NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=k,t.isDate=w,t.isError=_,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(327);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":"),[e.getDate(),O[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(328),t._extend=function(e,t){if(!t||!k(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(t,n(18),n(12))},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r},a=n(33);var u=["error","warning","information","hint"],l={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};o.default.registerHelper("lint","graphql",function(e,t){var n=t.schema;return(0,a.getDiagnostics)(e,n).map(function(e){return{message:e.message,severity:u[e.severity-1],type:l[e.source],from:o.default.Pos(e.range.start.line,e.range.start.character),to:o.default.Pos(e.range.end.line,e.range.end.character)}})})},function(e,t,n){"use strict";var r=n(1),i=u(n(4)),o=u(n(184)),a=n(186);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){var r=t.fieldDef.name;"__"!==r.slice(0,2)&&(f(e,t,n,t.parentType),d(e,".")),d(e,r,"field-name",n,(0,a.getFieldReference)(t))}function s(e,t,n){d(e,"@"+t.directiveDef.name,"directive-name",n,(0,a.getDirectiveReference)(t))}function c(e,t,n,r){d(e,": "),f(e,t,n,r)}function f(e,t,n,i){i instanceof r.GraphQLNonNull?(f(e,t,n,i.ofType),d(e,"!")):i instanceof r.GraphQLList?(d(e,"["),f(e,t,n,i.ofType),d(e,"]")):d(e,i.name,"type-name",n,(0,a.getTypeReference)(t,i))}function p(e,t,n){var r=n.description;if(r){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function d(e,t,n,r,i){if(n){var o=r.onClick,a=document.createElement(o?"a":"span");o&&(a.href="javascript:void 0",a.addEventListener("click",function(e){o(i,e)})),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n(187),i.default.registerHelper("info","graphql",function(e,t){if(t.schema&&e.state){var n=e.state,r=n.kind,i=n.step,u=(0,o.default)(t.schema,e.state);if("Field"===r&&0===i&&u.fieldDef||"AliasedField"===r&&2===i&&u.fieldDef){var h=document.createElement("div");return function(e,t,n){l(e,t,n),c(e,t,n,t.type)}(h,u,t),p(h,t,u.fieldDef),h}if("Directive"===r&&1===i&&u.directiveDef){var m=document.createElement("div");return s(m,u,t),p(m,t,u.directiveDef),m}if("Argument"===r&&0===i&&u.argDef){var v=document.createElement("div");return function(e,t,n){t.directiveDef?s(e,t,n):t.fieldDef&&l(e,t,n);var r=t.argDef.name;d(e,"("),d(e,r,"arg-name",n,(0,a.getArgumentReference)(t)),c(e,t,n,t.inputType),d(e,")")}(v,u,t),p(v,t,u.argDef),v}if("EnumValue"===r&&u.enumValue&&u.enumValue.description){var g=document.createElement("div");return function(e,t,n){var r=t.enumValue.name;f(e,t,n,t.inputType),d(e,"."),d(e,r,"enum-value",n,(0,a.getEnumValueReference)(t))}(g,u,t),p(g,t,u.enumValue),g}if("NamedType"===r&&u.type&&u.type.description){var y=document.createElement("div");return f(y,u,t,u.type),p(y,t,u.type),y}}})},function(e,t,n){"use strict";var r=a(n(4)),i=a(n(184)),o=n(186);function a(e){return e&&e.__esModule?e:{default:e}}n(332),r.default.registerHelper("jump","graphql",function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,r=n.kind,a=n.step,u=(0,i.default)(t.schema,n);return"Field"===r&&0===a&&u.fieldDef||"AliasedField"===r&&2===a&&u.fieldDef?(0,o.getFieldReference)(u):"Directive"===r&&1===a&&u.directiveDef?(0,o.getDirectiveReference)(u):"Argument"===r&&0===a&&u.argDef?(0,o.getArgumentReference)(u):"EnumValue"===r&&u.enumValue?(0,o.getEnumValueReference)(u):"NamedType"===r&&u.type?(0,o.getTypeReference)(u):void 0}})},function(e,t,n){"use strict";var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r};o.default.defineOption("jump",!1,function(e,t,n){if(n&&n!==o.default.Init){var r=e.state.jump.onMouseOver;o.default.off(e.getWrapperElement(),"mouseover",r);var i=e.state.jump.onMouseOut;o.default.off(e.getWrapperElement(),"mouseout",i),o.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var s=e.state.jump={options:t,onMouseOver:function(e,t){var n=t.target||t.srcElement;if("SPAN"!==n.nodeName)return;var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&u(e)}.bind(null,e),onMouseOut:function(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor)return void(e.state.jump.cursor=null);e.state.jump.isHoldingModifier&&e.state.jump.marker&&l(e)}.bind(null,e),onKeyDown:function(e,t){if(e.state.jump.isHoldingModifier||(n=t.key,n!==(a?"Meta":"Control")))return;var n;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&u(e);var r=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},i=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};o.default.on(document,"keyup",function n(a){if(a.code!==t.code)return;e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&l(e);o.default.off(document,"keyup",n),o.default.off(document,"click",r),e.off("mousedown",i)}),o.default.on(document,"click",r),e.on("mousedown",i)}.bind(null,e)};o.default.on(e.getWrapperElement(),"mouseover",s.onMouseOver),o.default.on(e.getWrapperElement(),"mouseout",s.onMouseOut),o.default.on(document,"keydown",s.onKeyDown)}});var a=navigator&&-1!==navigator.appVersion.indexOf("Mac");function u(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){var a=o(r,i,e);if(a){var u=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=u,e.state.jump.destination=a}}}}function l(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},function(e,t,n){"use strict";var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r},a=n(100);function u(e,t){var n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}o.default.defineMode("graphql",function(e){var t=(0,a.onlineParser)({eatWhitespace:function(e){return e.eatWhile(a.isIgnored)},lexRules:a.LexRules,parseRules:a.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:u,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getStartOfToken=function(){return n._start},this.getCurrentPosition=function(){return n._pos},this.eol=function(){return n._sourceText.length===n._pos},this.sol=function(){return 0===n._pos},this.peek=function(){return n._sourceText.charAt(n._pos)?n._sourceText.charAt(n._pos):null},this.next=function(){var e=n._sourceText.charAt(n._pos);return n._pos++,e},this.eat=function(e){if(n._testNextCharacter(e))return n._start=n._pos,n._pos++,n._sourceText.charAt(n._pos-1)},this.eatWhile=function(e){var t=n._testNextCharacter(e),r=!1;for(t&&(r=t,n._start=n._pos);t;)n._pos++,t=n._testNextCharacter(e),r=!0;return r},this.eatSpace=function(){return n.eatWhile(/[\s\u00a0]/)},this.skipToEnd=function(){n._pos=n._sourceText.length},this.skipTo=function(e){n._pos=e},this.match=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,o=null;"string"==typeof e?(o=new RegExp(e,r?"i":"g").test(n._sourceText.substr(n._pos,e.length)),i=e):e instanceof RegExp&&(i=(o=n._sourceText.slice(n._pos).match(e))&&o[0]);return!(null==o||!("string"==typeof e||o instanceof Array&&n._sourceText.startsWith(o[0],n._pos)))&&(t&&(n._start=n._pos,i&&i.length&&(n._pos+=i.length)),o)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0===e.length)for(var r=e[0],i=0;r.length>i;)9===r.charCodeAt(i)?t+=2:t++,i++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}return e.prototype._testNextCharacter=function(e){var t=this._sourceText.charAt(this._pos);return"string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t)},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},lexRules:i.LexRules,parseRules:i.ParseRules,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return u(e.parseRules,t,"Document"),t},token:function(t,n){return function(e,t,n){var r=n.lexRules,i=n.parseRules,c=n.eatWhitespace,p=n.editorConfig;t.rule&&0===t.rule.length?l(t):t.needsAdvance&&(t.needsAdvance=!1,s(t,!0));if(e.sol()){var d=p&&p.tabSize||2;t.indentLevel=Math.floor(e.indentation()/d)}if(c(e))return"ws";var h=function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(r,e);if(!h)return e.match(/\S+/),u(a,t,"Invalid"),"invalidchar";if("Comment"===h.kind)return u(a,t,"Comment"),"comment";var m=o({},t);if("Punctuation"===h.kind)if(/^[{([]/.test(h.value))t.levels=(t.levels||[]).concat(t.indentLevel+1);else if(/^[})\]]/.test(h.value)){var v=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&v.length>0&&v[v.length-1]<t.indentLevel&&(t.indentLevel=v[v.length-1])}for(;t.rule;){var g="function"==typeof t.rule?0===t.step?t.rule(h,e):null:t.rule[t.step];if(t.needsSeperator&&(g=g&&g.separator),g){if(g.ofRule&&(g=g.ofRule),"string"==typeof g){u(i,t,g);continue}if(g.match&&g.match(h))return g.update&&g.update(t,h),"Punctuation"===h.kind?s(t,!0):t.needsAdvance=!0,g.style}f(t)}return o(t,m),u(a,t,"Invalid"),"invalidchar"}(t,n,e)}}};var i=n(188);function o(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}var a={Invalid:[],Comment:[]};function u(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=r({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeperator=!1}function l(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 s(e,t){if(c(e)){if(e.rule&&e.rule[e.step].separator){var n=e.rule[e.step].separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&n.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)l(e),e.rule&&(c(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function c(e){return Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step].isList}function f(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)l(e);e.rule&&s(e,!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariableEditor=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(2)),o=u(n(6)),a=u(n(173));function u(e){return e&&e.__esModule?e:{default:e}}(t.VariableEditor=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._onKeyUp=function(e,t){var r=t.keyCode;(r>=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&222===r)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(e,t){(0,a.default)(e,t,n.props.onHintInformationRender)},n.cachedValue=e.value||"",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentDidMount",value:function(){var e=this,t=n(4);n(174),n(93),n(175),n(95),n(94),n(177),n(40),n(96),n(41),n(97),n(337),n(339),n(341),this.editor=t(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Cmd-F":"findPersistent","Ctrl-F":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"}}),this.editor.on("change",this._onEdit),this.editor.on("keyup",this._onKeyUp),this.editor.on("hasCompletion",this._onHasCompletion)}},{key:"componentDidUpdate",value:function(e){var t=n(4);this.ignoreChangeEvent=!0,this.props.variableToType!==e.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,t.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}},{key:"componentWillUnmount",value:function(){this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{className:"codemirrorWrap",ref:function(t){e._node=t}})}},{key:"getCodeMirror",value:function(){return this.editor}},{key:"getClientHeight",value:function(){return this._node&&this._node.clientHeight}}]),t}()).propTypes={variableToType:o.default.object,value:o.default.string,onEdit:o.default.func,readOnly:o.default.bool,onHintInformationRender:o.default.func,onPrettifyQuery:o.default.func,onRunQuery:o.default.func,editorTheme:o.default.string}},function(e,t,n){"use strict";var r=u(n(4)),i=n(1),o=u(n(185)),a=u(n(338));function u(e){return e&&e.__esModule?e:{default:e}}r.default.registerHelper("hint","graphql-variables",function(e,t){var n=e.getCursor(),u=e.getTokenAt(n),l=function(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,u=r.kind,l=r.step;if("Document"===u&&0===l)return(0,a.default)(e,t,[{text:"{"}]);var s=n.variableToType;if(!s)return;var c=function(e,t){var n={type:null,fields:null};return(0,o.default)(t,function(t){if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){var r=(0,i.getNullableType)(n.type);n.type=r instanceof i.GraphQLList?r.ofType:null}else if("ObjectValue"===t.kind){var o=(0,i.getNamedType)(n.type);n.fields=o instanceof i.GraphQLInputObjectType?o.getFields():null}else if("ObjectField"===t.kind){var a=t.name&&n.fields?n.fields[t.name]:null;n.type=a&&a.type}}),n}(s,t.state);if("Document"===u||"Variable"===u&&0===l){var f=Object.keys(s);return(0,a.default)(e,t,f.map(function(e){return{text:'"'+e+'": ',type:s[e]}}))}if(("ObjectValue"===u||"ObjectField"===u&&0===l)&&c.fields){var p=Object.keys(c.fields).map(function(e){return c.fields[e]});return(0,a.default)(e,t,p.map(function(e){return{text:'"'+e.name+'": ',type:e.type,description:e.description}}))}if("StringValue"===u||"NumberValue"===u||"BooleanValue"===u||"NullValue"===u||"ListValue"===u&&1===l||"ObjectField"===u&&2===l||"Variable"===u&&2===l){var d=(0,i.getNamedType)(c.type);if(d instanceof i.GraphQLInputObjectType)return(0,a.default)(e,t,[{text:"{"}]);if(d instanceof i.GraphQLEnumType){var h=d.getValues(),m=Object.keys(h).map(function(e){return h[e]});return(0,a.default)(e,t,m.map(function(e){return{text:'"'+e.name+'"',type:d,description:e.description}}))}if(d===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,u,t);return l&&l.list&&l.list.length>0&&(l.from=r.default.Pos(l.from.line,l.from.column),l.to=r.default.Pos(l.to.line,l.to.column),r.default.signal(e,"hasCompletion",e,l,u)),l})},function(e,t,n){"use strict";function r(e,t){var n=e.filter(t);return 0===n.length?e:n}function i(e){return e.toLowerCase().replace(/\W/g,"")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=function(e,t){if(!t)return r(e,function(e){return!e.isDeprecated});return r(r(e.map(function(e){return{proximity:function(e,t){var n=function(e,t){var n=void 0,r=void 0,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var u=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]+u),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]+u))}return i[o][a]}(t,e);e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5);return n}(i(e.text),t),entry:e}}),function(e){return e.proximity<=2}),function(e){return!e.entry.isDeprecated}).sort(function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length}).map(function(e){return e.entry})}(n,i(t.string));if(!o)return;var a=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:o,from:{line:e.line,column:a},to:{line:e.line,column:t.end}}}},function(e,t,n){"use strict";var r=a(n(4)),i=n(1),o=a(n(340));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function l(e,t){return Array.prototype.concat.apply([],e.map(t))}r.default.registerHelper("lint","graphql-variables",function(e,t,n){if(!e)return[];var r=void 0;try{r=(0,o.default)(e)}catch(e){if(e.stack)throw e;return[u(n,e,e.message)]}var a=t.variableToType;return a?function(e,t,n){var r=[];return n.members.forEach(function(n){var 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){var r=t.ofType;return"Array"===n.kind?l(n.values,function(t){return e(r,t)}):e(r,n)}if(t instanceof i.GraphQLInputObjectType){if("Object"!==n.kind)return[[n,'Type "'+t+'" must be an Object.']];var o=Object.create(null),a=l(n.members,function(n){var r=n.key.value;o[r]=!0;var i=t.getFields()[r];if(!i)return[[n.key,'Type "'+t+'" does not have a field "'+r+'".']];var a=i?i.type:void 0;return e(a,n.value)});return Object.keys(t.getFields()).forEach(function(e){if(!o[e]){var r=t.getFields()[e].type;r instanceof i.GraphQLNonNull&&a.push([n,'Object of type "'+t+'" is missing required field "'+e+'".'])}}),a}return"Boolean"===t.name&&"Boolean"!==n.kind||"String"===t.name&&"String"!==n.kind||"ID"===t.name&&"Number"!==n.kind&&"String"!==n.kind||"Float"===t.name&&"Number"!==n.kind||"Int"===t.name&&("Number"!==n.kind||(0|n.value)!==n.value)?[[n,'Expected value of type "'+t+'".']]:(t instanceof i.GraphQLEnumType||t instanceof i.GraphQLScalarType)&&("String"!==n.kind&&"Number"!==n.kind&&"Boolean"!==n.kind&&"Null"!==n.kind||null===(u=t.parseValue(n.value))||void 0===u||u!=u)?[[n,'Expected value of type "'+t+'".']]:[];var u}(a,n.value).forEach(function(t){var n=t[0],i=t[1];r.push(u(e,n,i))}):r.push(u(e,n.key,'Variable "$'+o+'" does not appear in any GraphQL query.'))}),r}(n,a,r):[]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){r=e,i=e.length,o=a=u=-1,g(),y();var t=c();return h("EOF"),t};var r=void 0,i=void 0,o=void 0,a=void 0,u=void 0,l=void 0,s=void 0;function c(){var e=o,t=[];if(h("{"),!v("}")){do{t.push(f())}while(v(","));h("}")}return{kind:"Object",start:e,end:u,members:t}}function f(){var e=o,t="String"===s?d():null;h("String"),h(":");var n=p();return{kind:"Member",start:e,end:u,key:t,value:n}}function p(){switch(s){case"[":return function(){var e=o,t=[];if(h("["),!v("]")){do{t.push(p())}while(v(","));h("]")}return{kind:"Array",start:e,end:u,values:t}}();case"{":return c();case"String":case"Number":case"Boolean":case"Null":var e=d();return y(),e}return h("Value")}function d(){return{kind:s,start:o,end:a,value:JSON.parse(r.slice(o,a))}}function h(e){if(s!==e){var t=void 0;if("EOF"===s)t="[end of file]";else if(a-o>1)t="`"+r.slice(o,a)+"`";else{var n=r.slice(o).match(/^.+?\b/);t="`"+(n?n[0]:r[o])+"`"}throw m("Expected "+e+" but found "+t+".")}y()}function m(e){return{message:e,start:o,end:a}}function v(e){if(s===e)return y(),!0}function g(){a<i&&(l=++a===i?0:r.charCodeAt(a))}function y(){for(u=a;9===l||10===l||13===l||32===l;)g();if(0!==l){switch(o=a,l){case 34:return s="String",function(){g();for(;34!==l&&l>31;)if(92===l)switch(g(),l){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:g();break;case 117:g(),b(),b(),b(),b();break;default:throw m("Bad character escape sequence.")}else{if(a===i)throw m("Unterminated string.");g()}if(34===l)return void g();throw m("Unterminated string.")}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s="Number",function(){45===l&&g();48===l?g():k();46===l&&(g(),k());69!==l&&101!==l||(g(),43!==l&&45!==l||g(),k())}();case 102:if("false"!==r.slice(o,o+5))break;return a+=4,g(),void(s="Boolean");case 110:if("null"!==r.slice(o,o+4))break;return a+=3,g(),void(s="Null");case 116:if("true"!==r.slice(o,o+4))break;return a+=3,g(),void(s="Boolean")}s=r[o],g()}else s="EOF"}function b(){if(l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102)return g();throw m("Expected hexadecimal digit.")}function k(){if(l<48||l>57)throw m("Expected decimal digit.");do{g()}while(l>=48&&l<=57)}},function(e,t,n){"use strict";var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r},a=n(100);function u(e,t){var n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}o.default.defineMode("graphql-variables",function(e){var t=(0,a.onlineParser)({eatWhitespace:function(e){return e.eatSpace()},lexRules:l,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:u,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});var l={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[(0,a.p)("{"),(0,a.list)("Variable",(0,a.opt)((0,a.p)(","))),(0,a.p)("}")],Variable:[c("variable"),(0,a.p)(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,a.t)("Number","number")],StringValue:[(0,a.t)("String","string")],BooleanValue:[(0,a.t)("Keyword","builtin")],NullValue:[(0,a.t)("Keyword","keyword")],ListValue:[(0,a.p)("["),(0,a.list)("Value",(0,a.opt)((0,a.p)(","))),(0,a.p)("]")],ObjectValue:[(0,a.p)("{"),(0,a.list)("ObjectField",(0,a.opt)((0,a.p)(","))),(0,a.p)("}")],ObjectField:[c("attribute"),(0,a.p)(":"),"Value"]};function c(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultViewer=void 0;var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(2)),o=u(n(65)),a=u(n(6));function u(e){return e&&e.__esModule?e:{default:e}}(t.ResultViewer=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentDidMount",value:function(){var e=this,t=n(4);if(n(94),n(95),n(41),n(176),n(40),n(96),n(97),n(343),this.props.ResultsTooltip){n(187);var r=document.createElement("div");t.registerHelper("info","graphql-results",function(t,n,a,u){var l=e.props.ResultsTooltip;return o.default.render(i.default.createElement(l,{pos:u}),r),r})}this.viewer=t(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip),extraKeys:{"Cmd-F":"findPersistent","Ctrl-F":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"}})}},{key:"shouldComponentUpdate",value:function(e){return this.props.value!==e.value}},{key:"componentDidUpdate",value:function(){this.viewer.setValue(this.props.value||"")}},{key:"componentWillUnmount",value:function(){this.viewer=null}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{className:"result-window",ref:function(t){e._node=t}})}},{key:"getCodeMirror",value:function(){return this.viewer}},{key:"getClientHeight",value:function(){return this._node&&this._node.clientHeight}}]),t}()).propTypes={value:a.default.string,editorTheme:a.default.string,ResultsTooltip:a.default.any}},function(e,t,n){"use strict";var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r},a=n(100);function u(e,t){var n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}o.default.defineMode("graphql-results",function(e){var t=(0,a.onlineParser)({eatWhitespace:function(e){return e.eatSpace()},lexRules:l,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:u,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});var l={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[(0,a.p)("{"),(0,a.list)("Entry",(0,a.p)(",")),(0,a.p)("}")],Entry:[(0,a.t)("String","def"),(0,a.p)(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,a.t)("Number","number")],StringValue:[(0,a.t)("String","string")],BooleanValue:[(0,a.t)("Keyword","builtin")],NullValue:[(0,a.t)("Keyword","keyword")],ListValue:[(0,a.p)("["),(0,a.list)("Value",(0,a.p)(",")),(0,a.p)("]")],ObjectValue:[(0,a.p)("{"),(0,a.list)("ObjectField",(0,a.p)(",")),(0,a.p)("}")],ObjectField:[(0,a.t)("String","property"),(0,a.p)(":"),"Value"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocExplorer=void 0;var 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},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=d(n(2)),a=d(n(6)),u=n(1),l=d(n(345)),s=d(n(346)),c=d(n(347)),f=d(n(348)),p=d(n(349));function d(e){return e&&e.__esModule?e:{default:e}}var h={name:"Schema",title:"Documentation Explorer"};(t.DocExplorer=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.handleNavBackClick=function(){e.state.navStack.length>1&&e.setState({navStack:e.state.navStack.slice(0,-1)})},e.handleClickTypeOrField=function(t){e.showDoc(t)},e.handleSearch=function(t){e.showSearch(t)},e.state={navStack:[h]},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"shouldComponentUpdate",value:function(e,t){return this.props.schema!==e.schema||this.state.navStack!==t.navStack}},{key:"render",value:function(){var e=this.props.schema,t=this.state.navStack,n=t[t.length-1],r=void 0;r=void 0===e?o.default.createElement("div",{className:"spinner-container"},o.default.createElement("div",{className:"spinner"})):e?n.search?o.default.createElement(f.default,{searchValue:n.search,withinType:n.def,schema:e,onClickType:this.handleClickTypeOrField,onClickField:this.handleClickTypeOrField}):1===t.length?o.default.createElement(s.default,{schema:e,onClickType:this.handleClickTypeOrField}):(0,u.isType)(n.def)?o.default.createElement(p.default,{schema:e,type:n.def,onClickType:this.handleClickTypeOrField,onClickField:this.handleClickTypeOrField}):o.default.createElement(l.default,{field:n.def,onClickType:this.handleClickTypeOrField}):o.default.createElement("div",{className:"error-container"},"No Schema Available");var i=1===t.length||(0,u.isType)(n.def)&&n.def.getFields,a=void 0;return t.length>1&&(a=t[t.length-2].name),o.default.createElement("div",{className:"doc-explorer",key:n.name},o.default.createElement("div",{className:"doc-explorer-title-bar"},a&&o.default.createElement("div",{className:"doc-explorer-back",onClick:this.handleNavBackClick},a),o.default.createElement("div",{className:"doc-explorer-title"},n.title||n.name),o.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),o.default.createElement("div",{className:"doc-explorer-contents"},i&&o.default.createElement(c.default,{value:n.search,placeholder:"Search "+n.name+"...",onSearch:this.handleSearch}),r))}},{key:"showDoc",value:function(e){var t=this.state.navStack;t[t.length-1].def!==e&&this.setState({navStack:t.concat([{name:e.name,def:e}])})}},{key:"showDocForReference",value:function(e){"Type"===e.kind?this.showDoc(e.type):"Field"===e.kind?this.showDoc(e.field):"Argument"===e.kind&&e.field?this.showDoc(e.field):"EnumValue"===e.kind&&e.type&&this.showDoc(e.type)}},{key:"showSearch",value:function(e){var t=this.state.navStack.slice(),n=t[t.length-1];t[t.length-1]=r({},n,{search:e}),this.setState({navStack:t})}},{key:"reset",value:function(){this.setState({navStack:[h]})}}]),t}()).propTypes={schema:a.default.instanceOf(u.GraphQLSchema)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(2)),o=s(n(6)),a=s(n(101)),u=s(n(102)),l=s(n(42));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.field!==e.field}},{key:"render",value:function(){var e=this,t=this.props.field,n=void 0;return t.args&&t.args.length>0&&(n=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"arguments"),t.args.map(function(t){return i.default.createElement("div",{key:t.name,className:"doc-category-item"},i.default.createElement("div",null,i.default.createElement(a.default,{arg:t,onClickType:e.props.onClickType})),i.default.createElement(u.default,{className:"doc-value-description",markdown:t.description}))}))),i.default.createElement("div",null,i.default.createElement(u.default,{className:"doc-type-description",markdown:t.description||"No Description"}),t.deprecationReason&&i.default.createElement(u.default,{className:"doc-deprecation",markdown:t.deprecationReason}),i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"type"),i.default.createElement(l.default,{type:t.type,onClick:this.props.onClickType})),n)}}]),t}();c.propTypes={field:o.default.object,onClickType:o.default.func},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(2)),o=l(n(6)),a=l(n(42)),u=l(n(102));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.schema!==e.schema}},{key:"render",value:function(){var e=this.props.schema,t=e.getQueryType(),n=e.getMutationType&&e.getMutationType(),r=e.getSubscriptionType&&e.getSubscriptionType();return i.default.createElement("div",null,i.default.createElement(u.default,{className:"doc-type-description",markdown:"A GraphQL schema provides a root type for each kind of operation."}),i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"root types"),i.default.createElement("div",{className:"doc-category-item"},i.default.createElement("span",{className:"keyword"},"query"),": ",i.default.createElement(a.default,{type:t,onClick:this.props.onClickType})),n&&i.default.createElement("div",{className:"doc-category-item"},i.default.createElement("span",{className:"keyword"},"mutation"),": ",i.default.createElement(a.default,{type:n,onClick:this.props.onClickType})),r&&i.default.createElement("div",{className:"doc-category-item"},i.default.createElement("span",{className:"keyword"},"subscription"),": ",i.default.createElement(a.default,{type:r,onClick:this.props.onClickType}))))}}]),t}();s.propTypes={schema:o.default.object,onClickType:o.default.func},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(2)),o=u(n(6)),a=u(n(191));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){var t=e.target.value;n.setState({value:t}),n.debouncedOnSearch(t)},n.handleClear=function(){n.setState({value:""}),n.props.onSearch("")},n.state={value:e.value||""},n.debouncedOnSearch=(0,a.default)(200,n.props.onSearch),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"render",value:function(){return i.default.createElement("label",{className:"search-box"},i.default.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder}),this.state.value&&i.default.createElement("div",{className:"search-box-clear",onClick:this.handleClear},"✕"))}}]),t}();l.propTypes={value:o.default.string,placeholder:o.default.string,onSearch:o.default.func},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(2)),o=l(n(6)),a=l(n(101)),u=l(n(42));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.schema!==e.schema||this.props.searchValue!==e.searchValue}},{key:"render",value:function(){var e=this.props.searchValue,t=this.props.withinType,n=this.props.schema,r=this.props.onClickType,o=this.props.onClickField,l=[],s=[],f=[],p=n.getTypeMap(),d=Object.keys(p);t&&(d=d.filter(function(e){return e!==t.name})).unshift(t.name);var h=!0,m=!1,v=void 0;try{for(var g,y=function(){var n=g.value;if(l.length+s.length+f.length>=100)return"break";var d=p[n];if(t!==d&&c(n,e)&&s.push(i.default.createElement("div",{className:"doc-category-item",key:n},i.default.createElement(u.default,{type:d,onClick:r}))),d.getFields){var h=d.getFields();Object.keys(h).forEach(function(s){var p=h[s],m=void 0;if(!c(s,e)){if(!p.args||!p.args.length)return;if(0===(m=p.args.filter(function(t){return c(t.name,e)})).length)return}var v=i.default.createElement("div",{className:"doc-category-item",key:n+"."+s},t!==d&&[i.default.createElement(u.default,{key:"type",type:d,onClick:r}),"."],i.default.createElement("a",{className:"field-name",onClick:function(e){return o(p,d,e)}},p.name),m&&["(",i.default.createElement("span",{key:"args"},m.map(function(e){return i.default.createElement(a.default,{key:e.name,arg:e,onClickType:r,showDefaultValue:!1})})),")"]);t===d?l.push(v):f.push(v)})}},b=d[Symbol.iterator]();!(h=(g=b.next()).done);h=!0){if("break"===y())break}}catch(e){m=!0,v=e}finally{try{!h&&b.return&&b.return()}finally{if(m)throw v}}return l.length+s.length+f.length===0?i.default.createElement("span",{className:"doc-alert-text"},"No results found."):t&&s.length+f.length>0?i.default.createElement("div",null,l,i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"other results"),s,f)):i.default.createElement("div",null,l,s,f)}}]),t}();function c(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,function(e){return"\\"+e});return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}s.propTypes={schema:o.default.object,withinType:o.default.object,searchValue:o.default.string,onClickType:o.default.func,onClickField:o.default.func},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n(2)),o=f(n(6)),a=n(1),u=f(n(101)),l=f(n(102)),s=f(n(42)),c=f(n(190));function f(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleShowDeprecated=function(){return n.setState({showDeprecated:!0})},n.state={showDeprecated:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e,t){return this.props.type!==e.type||this.props.schema!==e.schema||this.state.showDeprecated!==t.showDeprecated}},{key:"render",value:function(){var e=this.props.schema,t=this.props.type,n=this.props.onClickType,r=this.props.onClickField,o=void 0,u=void 0;t instanceof a.GraphQLUnionType?(o="possible types",u=e.getPossibleTypes(t)):t instanceof a.GraphQLInterfaceType?(o="implementations",u=e.getPossibleTypes(t)):t instanceof a.GraphQLObjectType&&(o="implements",u=t.getInterfaces());var c=void 0;u&&u.length>0&&(c=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},o),u.map(function(e){return i.default.createElement("div",{key:e.name,className:"doc-category-item"},i.default.createElement(s.default,{type:e,onClick:n}))})));var f=void 0,p=void 0;if(t.getFields){var m=t.getFields(),v=Object.keys(m).map(function(e){return m[e]});f=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"fields"),v.filter(function(e){return!e.isDeprecated}).map(function(e){return i.default.createElement(d,{key:e.name,type:t,field:e,onClickType:n,onClickField:r})}));var g=v.filter(function(e){return e.isDeprecated});g.length>0&&(p=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?g.map(function(e){return i.default.createElement(d,{key:e.name,type:t,field:e,onClickType:n,onClickField:r})}):i.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}var y=void 0,b=void 0;if(t instanceof a.GraphQLEnumType){var k=t.getValues();y=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"values"),k.filter(function(e){return!e.isDeprecated}).map(function(e){return i.default.createElement(h,{key:e.name,value:e})}));var w=k.filter(function(e){return e.isDeprecated});w.length>0&&(b=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?w.map(function(e){return i.default.createElement(h,{key:e.name,value:e})}):i.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return i.default.createElement("div",null,i.default.createElement(l.default,{className:"doc-type-description",markdown:t.description||"No Description"}),t instanceof a.GraphQLObjectType&&c,f,p,y,b,!(t instanceof a.GraphQLObjectType)&&c)}}]),t}();function d(e){var t=e.type,n=e.field,r=e.onClickType,o=e.onClickField;return i.default.createElement("div",{className:"doc-category-item"},i.default.createElement("a",{className:"field-name",onClick:function(e){return o(n,t,e)}},n.name),n.args&&n.args.length>0&&["(",i.default.createElement("span",{key:"args"},n.args.map(function(e){return i.default.createElement(u.default,{key:e.name,arg:e,onClickType:r})})),")"],": ",i.default.createElement(s.default,{type:n.type,onClick:r}),i.default.createElement(c.default,{field:n}),n.description&&i.default.createElement(l.default,{className:"field-short-description",markdown:n.description}),n.deprecationReason&&i.default.createElement(l.default,{className:"doc-deprecation",markdown:n.deprecationReason}))}function h(e){var t=e.value;return i.default.createElement("div",{className:"doc-category-item"},i.default.createElement("div",{className:"enum-value"},t.name),i.default.createElement(l.default,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&i.default.createElement(l.default,{className:"doc-deprecation",markdown:t.deprecationReason}))}p.propTypes={schema:o.default.instanceOf(a.GraphQLSchema),type:o.default.object,onClickType:o.default.func,onClickField:o.default.func},t.default=p,d.propTypes={type:o.default.object,field:o.default.object,onClickType:o.default.func,onClickField:o.default.func},h.propTypes={value:o.default.object}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryHistory=void 0;var 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},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=c(n(2)),u=c(n(6)),l=c(n(351)),s=c(n(352));function c(e){return e&&e.__esModule?e:{default:e}}(t.QueryHistory=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));f.call(n),n.historyStore=new l.default("queries",e.storage),n.favoriteStore=new l.default("favorites",e.storage);var r=n.historyStore.fetchAll(),i=n.favoriteStore.fetchAll(),o=r.concat(i);return n.state={queries:o},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){if(function(e,t,n){if(e.queryID===t.queryID)return!1;try{(0,o.parse)(e.query)}catch(e){return!1}if(!n)return!0;if(JSON.stringify(e.query)===JSON.stringify(n.query)){if(JSON.stringify(e.variables)===JSON.stringify(n.variables))return!1;if(!e.variables&&!n.variables)return!1}return!0}(e,this.props,this.historyStore.fetchRecent())){var t={query:e.query,variables:e.variables,operationName:e.operationName};this.historyStore.push(t),this.historyStore.length>20&&this.historyStore.shift();var n=this.historyStore.items,r=this.favoriteStore.items,i=n.concat(r);this.setState({queries:i})}}},{key:"render",value:function(){var e=this,t=this.state.queries.slice().reverse().map(function(t,n){return a.default.createElement(s.default,r({handleToggleFavorite:e.toggleFavorite,key:n,onSelect:e.props.onSelectQuery},t))});return a.default.createElement("div",null,a.default.createElement("div",{className:"history-title-bar"},a.default.createElement("div",{className:"history-title"},"History"),a.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),a.default.createElement("div",{className:"history-contents"},t))}}]),t}()).propTypes={query:u.default.string,variables:u.default.string,operationName:u.default.string,queryID:u.default.number,onSelectQuery:u.default.func,storage:u.default.object};var f=function(){var e=this;this.toggleFavorite=function(t,n,r,i){var o={query:t,variables:n,operationName:r};e.favoriteStore.contains(o)?i&&(o.favorite=!1,e.favoriteStore.delete(o)):(o.favorite=!0,e.favoriteStore.push(o));var a=e.historyStore.items,u=e.favoriteStore.items,l=a.concat(u);e.setState({queries:l})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.key=t,this.storage=n,this.items=this.fetchAll()}return r(e,[{key:"contains",value:function(e){return this.items.some(function(t){return t.query===e.query&&t.variables===e.variables&&t.operationName===e.operationName})}},{key:"delete",value:function(e){var t=this.items.findIndex(function(t){return t.query===e.query&&t.variables===e.variables&&t.operationName===e.operationName});-1!==t&&(this.items.splice(t,1),this.save())}},{key:"fetchRecent",value:function(){return this.items[this.items.length-1]}},{key:"fetchAll",value:function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}},{key:"push",value:function(e){this.items.push(e),this.save()}},{key:"shift",value:function(){this.items.shift(),this.save()}},{key:"save",value:function(){var e,t,n;this.storage.set(this.key,JSON.stringify((e={},t=this.key,n=this.items,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)))}},{key:"length",get:function(){return this.items.length}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(2)),o=a(n(6));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=n.props.favorite?"visible":"hidden";return n.state={starVisibility:r},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"render",value:function(){this.props.favorite&&"hidden"===this.state.starVisibility&&this.setState({starVisibility:"visible"});var e={float:"right",visibility:this.state.starVisibility},t=this.props.operationName||this.props.query.split("\n").filter(function(e){return 0!==e.indexOf("#")}).join(""),n=this.props.favorite?"★":"☆";return i.default.createElement("p",{onClick:this.handleClick.bind(this),onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this)},i.default.createElement("span",null,t),i.default.createElement("span",{onClick:this.handleStarClick.bind(this),style:e},n))}},{key:"handleMouseEnter",value:function(){this.props.favorite||this.setState({starVisibility:"visible"})}},{key:"handleMouseLeave",value:function(){this.props.favorite||this.setState({starVisibility:"hidden"})}},{key:"handleClick",value:function(){this.props.onSelect(this.props.query,this.props.variables,this.props.operationName)}},{key:"handleStarClick",value:function(e){e.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.operationName,this.props.favorite)}}]),t}();u.propTypes={favorite:o.default.bool,favoriteSize:o.default.number,handleToggleFavorite:o.default.func,operationName:o.default.string,onSelect:o.default.func,query:o.default.string,variables:o.default.string},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sizes=[]}return r(e,[{key:"updateSizes",value:function(e){var t=this;e.forEach(function(e,n){var r=e.getClientHeight();n<=t.sizes.length&&r!==t.sizes[n]&&e.getCodeMirror().setSize(),t.sizes[n]=r})}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storage=t||window.localStorage}return r(e,[{key:"get",value:function(e){if(this.storage){var t=this.storage.getItem("graphiql:"+e);if("null"!==t&&"undefined"!==t)return t;this.storage.removeItem("graphiql:"+e)}}},{key:"set",value:function(e,t){if(this.storage){var n="graphiql:"+e;t?function(e,t,n){try{return e.setItem(t,n),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}}(this.storage,n,t)&&this.storage.setItem(n,t):this.storage.removeItem(n)}}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t)return;var n=void 0;try{n=(0,r.parse)(t)}catch(e){return}var o=e?i(e,n):null,a=[];return n.definitions.forEach(function(e){"OperationDefinition"===e.kind&&a.push(e)}),{variableToType:o,operations:a}},t.collectVariables=i;var r=n(1);function i(e,t){var n=Object.create(null);return t.definitions.forEach(function(t){if("OperationDefinition"===t.kind){var i=t.variableDefinitions;i&&i.forEach(function(t){var i=t.variable,o=t.type,a=(0,r.typeFromAST)(e,o);a&&(n[i.name.value]=a)})}}),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!n||n.length<1)return;var r=n.map(function(e){return e.name&&e.name.value});if(t&&-1!==r.indexOf(t))return t;if(t&&e){var i=e.map(function(e){return e.name&&e.name.value}),o=i.indexOf(t);if(-1!==o&&o<r.length)return r[o]}return r[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fillLeafs=function(e,t,n){var o=[];if(!e)return{insertions:o,result:t};var a=void 0;try{a=(0,r.parse)(t)}catch(e){return{insertions:o,result:t}}var u=n||i,l=new r.TypeInfo(e);return(0,r.visit)(a,{leave:function(e){l.leave(e)},enter:function(e){if(l.enter(e),"Field"===e.kind&&!e.selectionSet){var n=function e(t,n){var i=(0,r.getNamedType)(t);if(t&&!(0,r.isLeafType)(t)){var o=n(i);if(Array.isArray(o)&&0!==o.length)return{kind:"SelectionSet",selections:o.map(function(t){var r=i.getFields()[t],o=r?r.type:null;return{kind:"Field",name:{kind:"Name",value:t},selectionSet:e(o,n)}})}}}(l.getType(),u);if(n){var i=function(e,t){for(var n=t,r=t;n;){var i=e.charCodeAt(n-1);if(10===i||13===i||8232===i||8233===i)break;n--,9!==i&&11!==i&&12!==i&&32!==i&&160!==i&&(r=n)}return e.substring(n,r)}(t,e.loc.start);o.push({index:e.loc.end,string:" "+(0,r.print)(n).replace(/\n/g,"\n"+i)})}}}}),{insertions:o,result:function(e,t){if(0===t.length)return e;var n="",r=0;return t.forEach(function(t){var i=t.index,o=t.string;n+=e.slice(r,i)+o,r=i}),n+=e.slice(r)}(t,o)}};var r=n(1);function i(e){if(!e.getFields)return[];var t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];var n=[];return Object.keys(t).forEach(function(e){(0,r.isLeafType)(t[e].type)&&n.push(e)}),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLeft=function(e){var t=0,n=e;for(;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t},t.getTop=function(e){var t=0,n=e;for(;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"introspectionQuery",{enumerable:!0,get:function(){return r.introspectionQuery}});t.introspectionQuerySansSubscriptions="\n  query IntrospectionQuery {\n    __schema {\n      queryType { name }\n      mutationType { name }\n      types {\n        ...FullType\n      }\n      directives {\n        name\n        description\n        locations\n        args {\n          ...InputValue\n        }\n      }\n    }\n  }\n\n  fragment FullType on __Type {\n    kind\n    name\n    description\n    fields(includeDeprecated: true) {\n      name\n      description\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      description\n      isDeprecated\n      deprecationReason\n    }\n    possibleTypes {\n      ...TypeRef\n    }\n  }\n\n  fragment InputValue on __InputValue {\n    name\n    description\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"},function(e,t,n){(function(e,n){var r=200,i="Expected a function",o="__lodash_hash_undefined__",a=1,u=2,l=1/0,s=9007199254740991,c="[object Arguments]",f="[object Array]",p="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Function]",v="[object GeneratorFunction]",g="[object Map]",y="[object Number]",b="[object Object]",k="[object RegExp]",w="[object Set]",_="[object String]",T="[object Symbol]",E="[object ArrayBuffer]",x="[object DataView]",O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,S=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L=/\\(\\)?/g,D=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[c]=I[f]=I[E]=I[p]=I[x]=I[d]=I[h]=I[m]=I[g]=I[y]=I[b]=I[k]=I[w]=I[_]=I["[object WeakMap]"]=!1;var F="object"==typeof e&&e&&e.Object===Object&&e,j="object"==typeof self&&self&&self.Object===Object&&self,M=F||j||Function("return this")(),P="object"==typeof t&&t&&!t.nodeType&&t,R=P&&"object"==typeof n&&n&&!n.nodeType&&n,V=R&&R.exports===P&&F.process,Q=function(){try{return V&&V.binding("util")}catch(e){}}(),G=Q&&Q.isTypedArray;function q(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){var i=e.length,o=n+(r?1:-1);for(;r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}(e,z,n);var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function U(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function B(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function z(e){return e!=e}function H(e,t){return e.has(t)}function K(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var J,$,Z,X=Array.prototype,ee=Function.prototype,te=Object.prototype,ne=M["__core-js_shared__"],re=(J=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"",ie=ee.toString,oe=te.hasOwnProperty,ae=te.toString,ue=RegExp("^"+ie.call(oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=M.Symbol,se=M.Uint8Array,ce=te.propertyIsEnumerable,fe=X.splice,pe=($=Object.keys,Z=Object,function(e){return $(Z(e))}),de=Be(M,"DataView"),he=Be(M,"Map"),me=Be(M,"Promise"),ve=Be(M,"Set"),ge=Be(M,"WeakMap"),ye=Be(Object,"create"),be=Ze(de),ke=Ze(he),we=Ze(me),_e=Ze(ve),Te=Ze(ge),Ee=le?le.prototype:void 0,xe=Ee?Ee.valueOf:void 0,Oe=Ee?Ee.toString:void 0;function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ne(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Le(e){var t=-1,n=e?e.length:0;for(this.__data__=new Ne;++t<n;)this.add(e[t])}function De(e){this.__data__=new Se(e)}function Ae(e,t){var n=nt(e)||tt(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!oe.call(e,o)||i&&("length"==o||He(o,r))||n.push(o);return n}function Ie(e,t){for(var n=e.length;n--;)if(et(e[n][0],t))return n;return-1}function Fe(e,t){for(var n=0,r=(t=Ke(t,e)?[t]:Qe(t)).length;null!=e&&n<r;)e=e[$e(t[n++])];return n&&n==r?e:void 0}function je(e,t){return null!=e&&t in Object(e)}function Me(e,t,n,r,i){return e===t||(null==e||null==t||!at(e)&&!ut(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var l=nt(e),s=nt(t),m=f,v=f;l||(m=(m=ze(e))==c?b:m);s||(v=(v=ze(t))==c?b:v);var O=m==b&&!K(e),C=v==b&&!K(t),S=m==v;if(S&&!O)return o||(o=new De),l||st(e)?qe(e,t,n,r,i,o):function(e,t,n,r,i,o,l){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!r(new se(e),new se(t)));case p:case d:case y:return et(+e,+t);case h:return e.name==t.name&&e.message==t.message;case k:case _:return e==t+"";case g:var s=W;case w:var c=o&u;if(s||(s=Y),e.size!=t.size&&!c)return!1;var f=l.get(e);if(f)return f==t;o|=a,l.set(e,t);var m=qe(s(e),s(t),r,i,o,l);return l.delete(e),m;case T:if(xe)return xe.call(e)==xe.call(t)}return!1}(e,t,m,n,r,i,o);if(!(i&u)){var N=O&&oe.call(e,"__wrapped__"),L=C&&oe.call(t,"__wrapped__");if(N||L){var D=N?e.value():e,A=L?t.value():t;return o||(o=new De),n(D,A,r,i,o)}}if(!S)return!1;return o||(o=new De),function(e,t,n,r,i,o){var a=i&u,l=ct(e),s=l.length,c=ct(t).length;if(s!=c&&!a)return!1;for(var f=s;f--;){var p=l[f];if(!(a?p in t:oe.call(t,p)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var m=a;++f<s;){p=l[f];var v=e[p],g=t[p];if(r)var y=a?r(g,v,p,t,e,o):r(v,g,p,e,t,o);if(!(void 0===y?v===g||n(v,g,r,i,o):y)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var b=e.constructor,k=t.constructor;b!=k&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof k&&k instanceof k)&&(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o)}(e,t,Me,n,r,i))}function Pe(e){return!(!at(e)||re&&re in e)&&(it(e)||K(e)?ue:D).test(Ze(e))}function Re(e){return"function"==typeof e?e:null==e?ft:"object"==typeof e?nt(e)?function(e,t){if(Ke(e)&&We(t))return Ye($e(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Fe(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){var r,i=-1,o=(t=Ke(t,e)?[t]:Qe(t)).length;for(;++i<o;){var a=$e(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;return!!(o=e?e.length:0)&&ot(o)&&He(a,o)&&(nt(e)||tt(e))}(e,t,je)}(n,e):Me(t,r,void 0,a|u)}}(e[0],e[1]):function(e){var t=function(e){var t=ct(e),n=t.length;for(;n--;){var r=t[n],i=e[r];t[n]=[r,i,We(i)]}return t}(e);if(1==t.length&&t[0][2])return Ye(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,l=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var c=(s=n[i])[0],f=e[c],p=s[1];if(l&&s[2]){if(void 0===f&&!(c in e))return!1}else{var d=new De;if(r)var h=r(f,p,c,e,t,d);if(!(void 0===h?Me(p,f,r,a|u,d):h))return!1}}return!0}(n,e,t)}}(e):Ke(t=e)?(n=$e(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Fe(t,e)}}(t);var t,n}function Ve(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||te,t!==r)return pe(e);var t,n,r,i=[];for(var o in Object(e))oe.call(e,o)&&"constructor"!=o&&i.push(o);return i}function Qe(e){return nt(e)?e:Je(e)}Ce.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===o?void 0:n}return oe.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:oe.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?o:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,n=Ie(t,e);return!(n<0||(n==t.length-1?t.pop():fe.call(t,n,1),0))},Se.prototype.get=function(e){var t=this.__data__,n=Ie(t,e);return n<0?void 0:t[n][1]},Se.prototype.has=function(e){return Ie(this.__data__,e)>-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Ie(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ne.prototype.clear=function(){this.__data__={hash:new Ce,map:new(he||Se),string:new Ce}},Ne.prototype.delete=function(e){return Ue(this,e).delete(e)},Ne.prototype.get=function(e){return Ue(this,e).get(e)},Ne.prototype.has=function(e){return Ue(this,e).has(e)},Ne.prototype.set=function(e,t){return Ue(this,e).set(e,t),this},Le.prototype.add=Le.prototype.push=function(e){return this.__data__.set(e,o),this},Le.prototype.has=function(e){return this.__data__.has(e)},De.prototype.clear=function(){this.__data__=new Se},De.prototype.delete=function(e){return this.__data__.delete(e)},De.prototype.get=function(e){return this.__data__.get(e)},De.prototype.has=function(e){return this.__data__.has(e)},De.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var i=n.__data__;if(!he||i.length<r-1)return i.push([e,t]),this;n=this.__data__=new Ne(i)}return n.set(e,t),this};var Ge=ve&&1/Y(new ve([,-0]))[1]==l?function(e){return new ve(e)}:function(){};function qe(e,t,n,r,i,o){var l=i&u,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var p=-1,d=!0,h=i&a?new Le:void 0;for(o.set(e,t),o.set(t,e);++p<s;){var m=e[p],v=t[p];if(r)var g=l?r(v,m,p,t,e,o):r(m,v,p,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!B(t,function(e,t){if(!h.has(t)&&(m===e||n(m,e,r,i,o)))return h.add(t)})){d=!1;break}}else if(m!==v&&!n(m,v,r,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ue(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 Be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(n)?n:void 0}var ze=function(e){return ae.call(e)};function He(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e,t){if(nt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!lt(e))||(C.test(e)||!O.test(e)||null!=t&&e in Object(t))}function We(e){return e==e&&!at(e)}function Ye(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(de&&ze(new de(new ArrayBuffer(1)))!=x||he&&ze(new he)!=g||me&&"[object Promise]"!=ze(me.resolve())||ve&&ze(new ve)!=w||ge&&"[object WeakMap]"!=ze(new ge))&&(ze=function(e){var t=ae.call(e),n=t==b?e.constructor:void 0,r=n?Ze(n):void 0;if(r)switch(r){case be:return x;case ke:return g;case we:return"[object Promise]";case _e:return w;case Te:return"[object WeakMap]"}return t});var Je=Xe(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(lt(e))return Oe?Oe.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}(t);var n=[];return S.test(e)&&n.push(""),e.replace(N,function(e,t,r,i){n.push(r?i.replace(L,"$1"):t||e)}),n});function $e(e){if("string"==typeof e||lt(e))return e;var t=e+"";return"0"==t&&1/e==-l?"-0":t}function Ze(e){if(null!=e){try{return ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Xe(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);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),a};return n.cache=new(Xe.Cache||Ne),n}function et(e,t){return e===t||e!=e&&t!=t}function tt(e){return function(e){return ut(e)&&rt(e)}(e)&&oe.call(e,"callee")&&(!ce.call(e,"callee")||ae.call(e)==c)}Xe.Cache=Ne;var nt=Array.isArray;function rt(e){return null!=e&&ot(e.length)&&!it(e)}function it(e){var t=at(e)?ae.call(e):"";return t==m||t==v}function ot(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function at(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function lt(e){return"symbol"==typeof e||ut(e)&&ae.call(e)==T}var st=G?function(e){return function(t){return e(t)}}(G):function(e){return ut(e)&&ot(e.length)&&!!I[ae.call(e)]};function ct(e){return rt(e)?Ae(e):Ve(e)}function ft(e){return e}n.exports=function(e,t){return e&&e.length?function(e,t,n){var i=-1,o=q,a=e.length,u=!0,l=[],s=l;if(n)u=!1,o=U;else if(a>=r){var c=t?null:Ge(e);if(c)return Y(c);u=!1,o=H,s=new Le}else s=t?[]:l;e:for(;++i<a;){var f=e[i],p=t?t(f):f;if(f=n||0!==f?f:0,u&&p==p){for(var d=s.length;d--;)if(s[d]===p)continue e;t&&s.push(p),l.push(f)}else o(s,p,n)||(s!==l&&s.push(p),l.push(f))}return l}(e,Re(t)):[]}}).call(t,n(18),n(21)(e))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(61)),r(n(364)),r(n(367))},function(e,t,n){"use strict";function r(e,t,n,r,i){var o={};return function(){var a=(((new Error).stack||"").match(/(?:\s+at\s.+){2}\s+at\s(.+)/)||[void 0,""])[1];if(!((a=/\)$/.test(a)?a.match(/[^(]+(?=\)$)/)[0]:a.trim())in o)){var u;switch(o[a]=!0,e){case"class":u="Class";break;case"property":u="Property";break;case"method":u="Method";break;case"function":u="Function"}u+=" `"+t+"` has been deprecated",r&&(u+=" since version "+r),n&&(u+=", use `"+n+"` instead"),u+=".",a&&(u+="\n    at "+a),i&&(u+="\nCheck out "+i+" for more information."),console.warn(u)}}}function i(e,n,i,o,a,u){var l=(t.options.getWarner||r)(e,n,o,a,u),s={enumerable:(i=i||{writable:!0,enumerable:!1,configurable:!0}).enumerable,configurable:i.configurable};if(i.get||i.set)i.get&&(s.get=function(){return l(),i.get.call(this)}),i.set&&(s.set=function(e){return l(),i.set.call(this,e)});else{var c=i.value;s.get=function(){return l(),c},i.writable&&(s.set=function(e){l(),c=e})}return s}function o(e,n,i,o,a){for(var u=n.name,l=(t.options.getWarner||r)(e,u,i,o,a),s=function(){return l(),n.apply(this,arguments)},c=0,f=Object.getOwnPropertyNames(n);c<f.length;c++){var p=f[c],d=Object.getOwnPropertyDescriptor(n,p);d.writable?s[p]=n[p]:d.configurable&&Object.defineProperty(s,p,d)}return s}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=e[e.length-1];n="function"==typeof n?e.pop():void 0;var r,a,u,l=e[0];return"string"==typeof l?(r=l,a=e[1],u=e[2]):l&&(r=l.alternative,a=l.version,u=l.url),n?o("function",n,r,a,u):function(e,t,n){if("string"==typeof t)return i(n&&"function"==typeof n.value?"method":"property",t,n,r,a,u);if("function"==typeof e){for(var l=o("class",e,r,a,u),s=e.name,c=0,f=Object.getOwnPropertyNames(l);c<f.length;c++){var p=f[c],d=Object.getOwnPropertyDescriptor(l,p);(d=i("class",s,d,r,a,u)).writable?l[p]=e[p]:d.configurable&&Object.defineProperty(l,p,d)}return l}}}t.options={getWarner:void 0},t.deprecated=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(1),o=n(365),a=n(61);function u(e){var t=e.schema,n=e.mocks,i=void 0===n?{}:n,u=e.preserveResolvers,s=void 0!==u&&u;function c(e){return e===Object(e)&&!Array.isArray(e)}if(!t)throw new Error("Must provide schema to mock");if(!(t instanceof r.GraphQLSchema))throw new Error('Value at "schema" must be of type GraphQLSchema');if(!c(i))throw new Error("mocks must be of type Object");var f=new Map;Object.keys(i).forEach(function(e){f.set(e,i[e])}),f.forEach(function(e,t){if("function"!=typeof e)throw new Error("mockFunctionMap["+t+"] must be a function")});var p=new Map;function d(e,t){Object.getOwnPropertyNames(t).forEach(function(n){Object.getOwnPropertyDescriptor(e,n)||Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}function h(e){return e[Math.floor(Math.random()*e.length)]}function m(e,t){return Array.isArray(t)?t.map(function(t){return m(e,t)}):c(t)?(n=e(),r=t,Object.assign(n,r)):t;var n,r}function v(e){var t=r.getNullableType(e),n=r.getNamedType(t),i=function(e){return e instanceof r.GraphQLInterfaceType||e instanceof r.GraphQLUnionType?e.resolveType:void 0}(n);s&&i&&i.length||(n instanceof r.GraphQLUnionType||n instanceof r.GraphQLInterfaceType)&&(n.resolveType=function(e,t,n){return n.schema.getType(e.__typename)})}p.set("Int",function(){return Math.round(200*Math.random())-100}),p.set("Float",function(){return 200*Math.random()-100}),p.set("String",function(){return"Hello World"}),p.set("Boolean",function(){return Math.random()>.5}),p.set("ID",function(){return o.v4()});var g=function(e,n,i){return function(n,o,a,u){var s=r.getNullableType(e),c=r.getNamedType(s);if(n&&void 0!==n[i]){var d=void 0;return"function"==typeof n[i]?(d=n[i](n,o,a,u))instanceof l&&(d=d.mock(n,o,a,u,s,g)):d=n[i],f.has(c.name)&&(d=m(f.get(c.name).bind(null,n,o,a,u),d)),d}if(s instanceof r.GraphQLList)return[g(s.ofType)(n,o,a,u),g(s.ofType)(n,o,a,u)];if(f.has(s.name)&&!(s instanceof r.GraphQLUnionType||s instanceof r.GraphQLInterfaceType))return f.get(s.name)(n,o,a,u);if(s instanceof r.GraphQLObjectType)return{};if(s instanceof r.GraphQLUnionType||s instanceof r.GraphQLInterfaceType){var v=void 0;if(f.has(s.name)){var y=f.get(s.name)(n,o,a,u);if(!y||!y.__typename)return Error('Please return a __typename in "'+s.name+'"');v=t.getType(y.__typename)}else{v=h(t.getPossibleTypes(s))}return Object.assign({__typename:v},g(v)(n,o,a,u))}return s instanceof r.GraphQLEnumType?h(s.getValues()).value:p.has(s.name)?p.get(s.name)(n,o,a,u):Error('No mock defined for type "'+s.name+'"')}};a.forEachField(t,function(e,n,r){var i;v(e.type);var o=!!t.getQueryType()&&t.getQueryType().name===n,a=!!t.getMutationType()&&t.getMutationType().name===n;if((o||a)&&f.has(n)){var u=f.get(n);u(void 0,{},{},{})[r]&&(i=function(t,i,o,a){var l=t||{};return l[r]=u(t,i,o,a)[r],g(e.type,n,r)(l,i,o,a)})}if(i||(i=g(e.type,n,r)),s&&e.resolve){var l=e.resolve;e.resolve=function(e,t,n,r){return Promise.all([i(e,t,n,r),l(e,t,n,r)]).then(function(e){var t=e[0],n=e[1];if(t instanceof Error){if(void 0===n)throw t;return n}return n instanceof Date&&t instanceof Date?void 0!==n?n:t:c(t)&&c(n)?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){for(var n=t;n;)d(e,n),n=Object.getPrototypeOf(n)}),e}(Object.create(Object.getPrototypeOf(n)),n,t):void 0!==n?n:t})}}else e.resolve=i})}t.mockServer=function(e,t,n){var o;return void 0===n&&(n=!1),u({schema:o=e instanceof r.GraphQLSchema?e:a.buildSchemaFromTypeDefinitions(e),mocks:t,preserveResolvers:n}),{query:function(e,t){return i.graphql(o,e,{},{},t)}}},t.addMockFunctionsToSchema=u;var l=function(){function e(e,t){if(this.len=e,void 0!==t){if("function"!=typeof t)throw new Error("Second argument to MockList must be a function or undefined");this.wrappedFunction=t}}return e.prototype.mock=function(t,n,i,o,a,u){var l;l=Array.isArray(this.len)?new Array(this.randint(this.len[0],this.len[1])):new Array(this.len);for(var s=0;s<l.length;s++)if("function"==typeof this.wrappedFunction){var c=this.wrappedFunction(t,n,i,o);if(c instanceof e){var f=r.getNullableType(a.ofType);l[s]=c.mock(t,n,i,o,f,u)}else l[s]=c}else l[s]=u(a.ofType)(t,n,i,o);return l},e.prototype.randint=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},e}();t.MockList=l},function(e,t,n){var r=n(103),i=n(366),o=i;o.v1=r,o.v4=i,e.exports=o},function(e,t,n){var r=n(62),i=n(63);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var u=0;u<16;++u)t[o+u]=a[u];return t||i(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(368);t.makeRemoteExecutableSchema=r.default;var i=n(382);t.introspectSchema=i.default;var o=n(383);t.mergeSchemas=o.default;var a=n(199);t.delegateToSchema=a.default,t.createDocument=a.createDocument},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function u(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,u)}l((r=r.apply(e,t||[])).next())})},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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(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=(i=a.trys).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,u])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(193),u=n(197),l=n(61),s=n(106),c=n(198),f=n(107),p=n(378);function d(e){var t=this;return function(n,a,u,l){return r(t,void 0,void 0,function(){var t,n,r;return i(this,function(i){switch(i.label){case 0:return t=Object.keys(l.fragments).map(function(e){return l.fragments[e]}),n={kind:o.Kind.DOCUMENT,definitions:[l.operation].concat(t)},[4,e({query:o.print(n),variables:l.variableValues,context:{graphqlContext:u}})];case 1:return r=i.sent(),[2,f.checkResultAndHandleErrors(r,l)]}})})}}function h(e){switch(e.kind){case o.Kind.STRING:case o.Kind.BOOLEAN:return e.value;case o.Kind.INT:case o.Kind.FLOAT:return parseFloat(e.value);case o.Kind.OBJECT:var t=Object.create(null);return e.fields.forEach(function(e){t[e.name.value]=h(e.value)}),t;case o.Kind.LIST:return e.values.map(h);default:return null}}t.default=function(e){var t,n=e.schema,r=e.link,i=e.fetcher,f=e.createPubSub;!i&&r&&(i=a.default(r)),"string"==typeof n?(t=n,n=o.buildSchema(t)):t=o.printSchema(n);var m={},v=n.getQueryType(),g=v.getFields();Object.keys(g).forEach(function(e){m[e]=d(i)});var y={},b=n.getMutationType();if(b){var k=b.getFields();Object.keys(k).forEach(function(e){y[e]=d(i)})}var w={},_=n.getSubscriptionType();if(_){var T=f?f():new p.PubSub,E=_.getFields();Object.keys(E).forEach(function(e){w[e]={subscribe:function(e,t,n){return function(r,i,u,l){var s=Object.keys(l.fragments).map(function(e){return l.fragments[e]}),c={kind:o.Kind.DOCUMENT,definitions:[l.operation].concat(s)},f={query:c,variables:l.variableValues,context:{graphqlContext:u}},p=a.execute(t,f),d={next:function(t){n.publish("remote-schema-"+e,t.data)},error:function(t){n.publish("remote-schema-"+e,{errors:[t]})}};return p.subscribe(d),n.asyncIterator("remote-schema-"+e)}}(e,r,T)}})}var x=((O={})[v.name]=m,O);u.default(y)||(x[b.name]=y),u.default(w)||(x[_.name]=w);for(var O,C=n.getTypeMap(),S=function(e){if(e instanceof o.GraphQLInterfaceType||e instanceof o.GraphQLUnionType)x[e.name]={__resolveType:function(e,t,n){return s.default(e,n.schema)}};else if(e instanceof o.GraphQLScalarType)e!==o.GraphQLID&&e!==o.GraphQLString&&e!==o.GraphQLFloat&&e!==o.GraphQLBoolean&&e!==o.GraphQLInt&&(x[e.name]=(r=(n=e).name,i=n.description,new o.GraphQLScalarType({name:r,description:i,serialize:function(e){return e},parseValue:function(e){return e},parseLiteral:function(e){return h(e)}})));else if(e instanceof o.GraphQLObjectType&&"__"!==e.name.slice(0,2)&&e!==v&&e!==b&&e!==_){var t={};Object.keys(e.getFields()).forEach(function(e){t[e]=c.default}),x[e.name]=t}var n,r,i},N=0,L=Object.keys(C).map(function(e){return C[e]});N<L.length;N++)S(L[N]);return l.makeExecutableSchema({typeDefs:t,resolvers:x})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(370);n.d(t,"getDirectiveInfoFromField",function(){return r.b}),n.d(t,"shouldInclude",function(){return r.e}),n.d(t,"flattenSelections",function(){return r.a}),n.d(t,"getDirectiveNames",function(){return r.c}),n.d(t,"hasDirectives",function(){return r.d});var i=n(371);n.d(t,"getFragmentQueryDocument",function(){return i.a});var o=n(194);n.d(t,"getMutationDefinition",function(){return o.g}),n.d(t,"checkDocument",function(){return o.a}),n.d(t,"getOperationDefinition",function(){return o.h}),n.d(t,"getOperationDefinitionOrDie",function(){return o.i}),n.d(t,"getOperationName",function(){return o.j}),n.d(t,"getFragmentDefinitions",function(){return o.e}),n.d(t,"getQueryDefinition",function(){return o.k}),n.d(t,"getFragmentDefinition",function(){return o.d}),n.d(t,"getMainDefinition",function(){return o.f}),n.d(t,"createFragmentMap",function(){return o.b}),n.d(t,"getDefaultValues",function(){return o.c}),n.d(t,"variablesInOperation",function(){return o.l});var a=n(372);n.d(t,"removeDirectivesFromDocument",function(){return a.e}),n.d(t,"addTypenameToDocument",function(){return a.a}),n.d(t,"removeConnectionDirectiveFromDocument",function(){return a.d}),n.d(t,"getDirectivesFromDocument",function(){return a.b}),n.d(t,"removeArgumentsFromDocument",function(){return a.c}),n.d(t,"removeFragmentSpreadFromDocument",function(){return a.f});var u=n(104);n.d(t,"isScalarValue",function(){return u.h}),n.d(t,"isNumberValue",function(){return u.g}),n.d(t,"valueToObjectRepresentation",function(){return u.m}),n.d(t,"storeKeyNameFromField",function(){return u.j}),n.d(t,"getStoreKeyName",function(){return u.b}),n.d(t,"argumentsObjectFromField",function(){return u.a}),n.d(t,"resultKeyNameFromField",function(){return u.i}),n.d(t,"isField",function(){return u.c}),n.d(t,"isInlineFragment",function(){return u.e}),n.d(t,"isIdValue",function(){return u.d}),n.d(t,"toIdValue",function(){return u.k}),n.d(t,"isJsonValue",function(){return u.f}),n.d(t,"valueFromNode",function(){return u.l});var l=n(195);n.d(t,"assign",function(){return l.a});var s=n(196);n.d(t,"cloneDeep",function(){return s.a});var c=n(105);n.d(t,"getEnv",function(){return c.a}),n.d(t,"isEnv",function(){return c.c}),n.d(t,"isProduction",function(){return c.d}),n.d(t,"isDevelopment",function(){return c.b}),n.d(t,"isTest",function(){return c.e});var f=n(373);n.d(t,"tryFunctionOrLogError",function(){return f.b}),n.d(t,"graphQLResultHasError",function(){return f.a});var p=n(374);n.d(t,"isEqual",function(){return p.a});var d=n(375);n.d(t,"maybeDeepFreeze",function(){return d.a});var h=n(376);n.d(t,"warnOnceInDevelopment",function(){return h.a});var m=n(377);n.d(t,"stripSymbols",function(){return m.a})},function(e,t,n){"use strict";t.b=function(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach(function(e){n[e.name.value]=Object(r.a)(e,t)}),n}return null},t.e=function(e,t){void 0===t&&(t={});if(!e.directives)return!0;var n=!0;return e.directives.forEach(function(e){if("skip"===e.name.value||"include"===e.name.value){var r=e.arguments||[],i=e.name.value;if(1!==r.length)throw new Error("Incorrect number of arguments for the @"+i+" directive.");var o=r[0];if(!o.name||"if"!==o.name.value)throw new Error("Invalid argument for the @"+i+" directive.");var a=r[0].value,u=!1;if(a&&"BooleanValue"===a.kind)u=a.value;else{if("Variable"!==a.kind)throw new Error("Argument for the @"+i+" directive must be a variable or a boolean value.");if(void 0===(u=t[a.name.value]))throw new Error("Invalid variable referenced in @"+i+" directive.")}"skip"===i&&(u=!u),u||(n=!1)}}),n},t.a=i,t.c=o,t.d=function(e,t){return o(t).some(function(t){return e.indexOf(t)>-1})};var r=n(104);function i(e){return e.selectionSet&&e.selectionSet.selections.length>0?[e].concat(e.selectionSet.selections.map(function(e){return[e].concat(i(e))}).reduce(function(e,t){return e.concat(t)},[])):[e]}function o(e){return e.definitions.filter(function(e){return e.selectionSet&&e.selectionSet.selections}).map(function(e){return i(e)}).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return e.directives&&e.directives.length>0}).map(function(e){return e.directives}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return e.name.value})}},function(e,t,n){"use strict";t.a=function(e,t){var n=t,i=[];if(e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new Error("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed.");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===n){if(1!==i.length)throw new Error("Found "+i.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment.");n=i[0].name.value}return r({},e,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}].concat(e.definitions)})};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)}},function(e,t,n){"use strict";t.e=s,t.a=function(e){Object(i.a)(e);var t=Object(r.a)(e);return t.definitions.forEach(function(e){var t="OperationDefinition"===e.kind;!function e(t,n){if(void 0===n&&(n=!1),t.selections){if(!n){var r=t.selections.some(function(e){return"Field"===e.kind&&"__typename"===e.name.value});r||t.selections.push(o)}t.selections.forEach(function(t){"Field"===t.kind?0!==t.name.value.lastIndexOf("__",0)&&t.selectionSet&&e(t.selectionSet):"InlineFragment"===t.kind&&t.selectionSet&&e(t.selectionSet)})}}(e.selectionSet,t)}),t},t.d=function(e){return Object(i.a)(e),s([c],e)},t.b=function(e,t,n){void 0===n&&(n=!1);Object(i.a)(t);var o=Object(r.a)(t);o.definitions=o.definitions.map(function(t){return("OperationDefinition"===t.kind||"FragmentDefinition"===t.kind&&!n)&&t.selectionSet&&(t.selectionSet=function e(t,n){n.selections=n.selections.filter(function(e){return f(t,e,!0)}).map(function(n){return f(t,n,!1)?n:("Field"!==n.kind&&"InlineFragment"!==n.kind||!n.selectionSet||(n.selectionSet=e(t,n.selectionSet)),n)});return n}(e,t.selectionSet)),t});var u=Object(i.i)(o),l=Object(i.b)(Object(i.e)(o));return a(u,l)?o:null},t.c=h,t.f=m;var r=n(196),i=n(194),o={kind:"Field",name:{kind:"Name",value:"__typename"}};function a(e,t){return e.selectionSet.selections.filter(function(e){return!(e&&"FragmentSpread"===e.kind&&!a(t[e.name.value],t))}).length>0}function u(e){return function(t){return e.some(function(e){return!(!e.name||e.name!==t.name.value)||!(!e.test||!e.test(t))})}}function l(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),t.selections.map(function(t){if("Field"!==t.kind||!t||!t.directives)return r?null:t;var i,o=u(e);return t.directives=t.directives.filter(function(e){var t=!o(e);return i||t||(i=!0),t}),i&&n?null:t}).filter(function(e){return!!e})}function s(e,t){var n=Object(r.a)(t),o=[],u=[],s=e.some(function(e){return e.remove});return n.definitions.forEach(function(t){var i=t,a=Object(r.a)(i.selectionSet),c=function e(t,n){if(!n.selections)return n;var r=t.some(function(e){return e.remove});return n.selections=l(t,n,r),n.selections.forEach(function(n){"Field"!==n.kind&&"InlineFragment"!==n.kind||!n.selectionSet||e(t,n.selectionSet)}),n}(e,i.selectionSet);if(s&&n){var f=l(e.map(function(e){return{name:e.name,test:e.test}}),a),p=c.selections.map(d).reduce(function(e,t){return e.concat(t)},[]);o=o.concat(f.map(d).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return!p.some(function(t){return!("Variable"!==t.value.kind||!t.value)&&(!("Variable"!==e.value.kind||!e.value)&&t.value.name.value===e.value.name.value)})}).map(function(e){return"Variable"===e.value.kind&&e.value?{name:e.value.name.value,remove:s}:null}).filter(function(e){return!!e}));var h=v(c);u=u.concat(f.map(g).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return!h.some(function(t){return t.name.value===e.name.value})}).map(function(e){return{name:e.name.value,remove:s}}))}}),n?u.length>0&&!(n=m(u,n))?null:o.length>0&&!(n=h(o,n))?null:a(Object(i.i)(n),Object(i.b)(Object(i.e)(n)))?n:null:null}var c={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||console.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function f(e,t,n){if(void 0===n&&(n=!0),"Field"!==t.kind||!t)return!0;if(!t.directives)return!1;var r=u(e);return t.directives.filter(r).length>0||n&&function(e,t,n){return void 0===n&&(n=!0),y(t,function(t){return f(e,t,n)})}(e,t.selectionSet,n)}function p(e){return function(t){return e.some(function(e){return!("Variable"!==t.value.kind||!t.value)&&(!!t.value.name&&(e.name===t.value.name.value||!(!e.test||!e.test(t))))})}}function d(e){return"Field"===e.kind&&e&&e.arguments||[]}function h(e,t){var n=Object(r.a)(t);return n.definitions.forEach(function(t){var n=t,r=e.filter(function(e){return!!e.name}).map(function(e){return{name:e.name,remove:e.remove}});!function e(t,n){if(!n.selections)return n;var r=t.some(function(e){return e.remove});n.selections=n.selections.map(function(e){if("Field"!==e.kind||!e||!e.arguments)return e;var n,i=p(t);return e.arguments=e.arguments.filter(function(e){var t=!i(e);return n||t||!r||(n=!0),t}),n?null:e}).filter(function(e){return!!e});n.selections.forEach(function(n){"Field"!==n.kind&&"InlineFragment"!==n.kind||!n.selectionSet||e(t,n.selectionSet)});return n}(e,n.selectionSet),function(e,t){if(!t.variableDefinitions)return t;var n,r=e.some(function(e){return e.remove});t.variableDefinitions=t.variableDefinitions.filter(function(t){var i=!e.some(function(e){return e.name===t.variable.name.value||!(!e.test||!e.test(t))});return n||i||!r||(n=!0),i})}(r,n)}),a(Object(i.i)(n),Object(i.b)(Object(i.e)(n)))?n:null}function m(e,t){var n=Object(r.a)(t);return n.definitions.forEach(function(t){!function e(t,n){if(!n.selections)return n;n.selections=n.selections.filter(function(e){return!function(e,t){return!("FragmentSpread"!==t.kind||!t)&&e.some(function(e){return e.name===t.name.value||!(!e.test||!e.test(t))})}(t,e)});n.selections.forEach(function(n){"Field"!==n.kind&&"InlineFragment"!==n.kind||!n.selectionSet||e(t,n.selectionSet)});return n}(e,t.selectionSet)}),n.definitions=function(e,t){return t.filter(function(t){return"FragmentDefinition"!==t.kind||!t||!e.some(function(e){return!(!e.name||e.name!==t.name.value)||!(!e.test||!e.test(t))})})}(e.filter(function(e){return!!e.name}).map(function(e){return{name:e.name}}),n.definitions),a(Object(i.i)(n),Object(i.b)(Object(i.e)(n)))?n:null}function v(e){return e.selections.map(g).reduce(function(e,t){return e.concat(t)},[])}function g(e){return"Field"!==e.kind&&"InlineFragment"!==e.kind||!e.selectionSet?"FragmentSpread"===e.kind&&e?[e]:[]:v(e.selectionSet)}function y(e,t){return!(!e||!e.selections)&&e.selections.filter(t).length>0}},function(e,t,n){"use strict";t.b=function(e){try{return e()}catch(e){console.error&&console.error(e)}},t.a=function(e){return e.errors&&e.errors.length}},function(e,t,n){"use strict";t.a=function e(t,n){if(t===n)return!0;if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(null!=t&&"object"==typeof t&&null!=n&&"object"==typeof n){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(!Object.prototype.hasOwnProperty.call(n,r))return!1;if(!e(t[r],n[r]))return!1}for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&!Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}return!1}},function(e,t,n){"use strict";t.a=function(e){if(Object(r.b)()||Object(r.e)()){var t="function"==typeof Symbol&&"string"==typeof Symbol("");if(!t)return function e(t){Object.freeze(t);Object.getOwnPropertyNames(t).forEach(function(n){null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])});return t}(e)}return e};var r=n(105)},function(e,t,n){"use strict";t.a=function(e,t){void 0===t&&(t="warn");if(Object(r.d)())return;if(!i[e])switch(Object(r.e)()||(i[e]=!0),t){case"error":console.error(e);break;default:console.warn(e)}};var r=n(105),i=Object.create({})},function(e,t,n){"use strict";t.a=function(e){return JSON.parse(JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(379);t.PubSub=r.PubSub;var i=n(381);t.withFilter=i.withFilter},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64),i=n(380),o=function(){function e(e){void 0===e&&(e={}),this.ee=e.eventEmitter||new r.EventEmitter,this.subscriptions={},this.subIdCounter=0}return e.prototype.publish=function(e,t){return this.ee.emit(e,t),!0},e.prototype.subscribe=function(e,t){return this.ee.addListener(e,t),this.subIdCounter=this.subIdCounter+1,this.subscriptions[this.subIdCounter]=[e,t],Promise.resolve(this.subIdCounter)},e.prototype.unsubscribe=function(e){var t=this.subscriptions[e],n=t[0],r=t[1];delete this.subscriptions[e],this.ee.removeListener(n,r)},e.prototype.asyncIterator=function(e){return i.eventEmitterAsyncIterator(this.ee,e)},e}();t.PubSub=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20);t.eventEmitterAsyncIterator=function(e,t){var n,i=[],o=[],a="string"==typeof t?[t]:t,u=!0,l=function(e){0!==i.length?i.shift()({value:e,done:!1}):o.push(e)},s=function(){u&&(u=!1,c(),i.forEach(function(e){return e({value:void 0,done:!0})}),i.length=0,o.length=0)},c=function(){for(var t=0,n=a;t<n.length;t++){var r=n[t];e.removeListener(r,l)}};return function(){for(var t=0,n=a;t<n.length;t++){var r=n[t];e.addListener(r,l)}}(),(n={next:function(){return u?new Promise(function(e){0!==o.length?e({value:o.shift(),done:!1}):i.push(e)}):this.return()},return:function(){return s(),Promise.resolve({value:void 0,done:!0})},throw:function(e){return s(),Promise.reject(e)}})[r.$$asyncIterator]=function(){return this},n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20);t.withFilter=function(e,t){return function(n,i,o,a){var u,l=e(n,i,o,a),s=function(){return l.next().then(function(e){return Promise.all([e,Promise.resolve(t(e.value,i,o,a)).catch(function(){return!1})])}).then(function(e){var t=e[0];return!0===e[1]||!0===t.done?t:s()})};return(u={next:function(){return s()},return:function(){return l.return()},throw:function(e){return l.throw(e)}})[r.$$asyncIterator]=function(){return this},u}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function u(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,u)}l((r=r.apply(e,t||[])).next())})},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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(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=(i=a.trys).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,u])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(193);t.default=function(e,t){return r(this,void 0,void 0,function(){var n;return i(this,function(r){switch(r.label){case 0:return e.request&&(e=a.default(e)),[4,e({query:o.introspectionQuery,context:t})];case 1:if((n=r.sent()).errors&&n.errors.length||!n.data.__schema)throw n.errors;return[2,o.buildClientSchema(n.data)]}})})}},function(e,t,n){"use strict";var r=this&&this.__assign||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};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(384),a=n(197),u=n(61),l=n(385),s=n(199),c=n(386),f={commentDescriptions:!0};function p(e,t){return e}function d(e,t,n){return function(r,i,o,a){return e.delegate(t,n,i,o,a)}}function h(e){return e&&"object"==typeof e&&!Array.isArray(e)}t.default=function(e){var t=e.schemas,n=e.onTypeConflict,m=e.resolvers;n||(n=p);var v={},g={},y={},b=new o.default,k=function(e){return{delegate:function(t,n,r,i,o){var a=e.getSchemaByField(t,n);if(!a)throw new Error("Cannot find subschema for root field "+t+"."+n);var u=e.fragmentReplacements;return s.default(a,u,t,n,r,i,o)}}}(b),w=[],_=[],T=[],E={};t.forEach(function(e){if(e instanceof i.GraphQLSchema)w.push(e);else if("string"==typeof e){var t=i.parse(e);try{var n=i.buildASTSchema(t,f);n.getQueryType()&&w.push(n)}catch(e){_.push(t)}(t=u.extractExtensionDefinitions(t)).definitions.length>0&&T.push(t)}}),w.forEach(function(e){b.addSchema(e);var t=e.getQueryType(),o=e.getMutationType(),a=e.getSubscriptionType(),u=e.getTypeMap();Object.keys(u).forEach(function(r){var s=u[r];if(i.isNamedType(s)&&"__"!==i.getNamedType(s).name.slice(0,2)&&s!==t&&s!==o&&s!==a){var c=void 0;(c=i.isCompositeType(s)||s instanceof i.GraphQLInputObjectType?l.recreateCompositeType(e,s,b):i.getNamedType(s))instanceof i.GraphQLObjectType&&delete c.isTypeOf,b.addType(c.name,c,n)}}),Object.keys(t.getFields()).forEach(function(e){E.Query||(E.Query={}),E.Query[e]=d(k,"query",e)}),v=r({},v,t.getFields()),o&&(E.Mutation||(E.Mutation={}),Object.keys(o.getFields()).forEach(function(e){E.Mutation[e]=d(k,"mutation",e)}),g=r({},g,o.getFields())),a&&(E.Subscription||(E.Subscription={}),Object.keys(a.getFields()).forEach(function(e){E.Subscription[e]={subscribe:d(k,"subscription",e)}}),y=r({},y,a.getFields()))}),_.forEach(function(e){e.definitions.forEach(function(e){var t=c.default(b,e);t&&b.addType(t.name,t,n)})});var x={};m&&(x="function"==typeof m?m(k):r({},m)),Object.keys(x).forEach(function(e){var t=x[e];t instanceof i.GraphQLScalarType||Object.keys(t).forEach(function(n){var r=t[n];r.fragment&&b.addFragment(e,n,r.fragment)})}),E=function e(t,n){var r=Object.assign({},t);return h(t)&&h(n)&&Object.keys(n).forEach(function(i){var o,a;h(n[i])?i in t?r[i]=e(t[i],n[i]):Object.assign(r,((o={})[i]=n[i],o)):Object.assign(r,((a={})[i]=n[i],a))}),r}(E,x);var O,C,S=new i.GraphQLObjectType({name:"Query",fields:function(){return l.fieldMapToFieldConfigMap(v,b)}});a.default(g)||(O=new i.GraphQLObjectType({name:"Mutation",fields:function(){return l.fieldMapToFieldConfigMap(g,b)}})),a.default(y)||(C=new i.GraphQLObjectType({name:"Subscription",fields:function(){return l.fieldMapToFieldConfigMap(y,b)}})),b.addType("Query",S),b.addType("Mutation",O),b.addType("Subscription",C);var N,L,D=new i.GraphQLSchema({query:S,mutation:O,subscription:C,types:b.getAllTypes()});return T.forEach(function(e){D=i.extendSchema(D,e,f)}),u.addResolveFunctionsToSchema(D,E),N=function(e){if(e.resolve){var t=e.resolve;e.resolve=function(e,n,i,o){var a=r({},o,{mergeInfo:k});return t(e,n,i,a)}}},L=D.getTypeMap(),Object.keys(L).forEach(function(e){var t=L[e];if(!i.getNamedType(t).name.startsWith("__")&&t instanceof i.GraphQLObjectType){var n=t.getFields();Object.keys(n).forEach(function(t){var r=n[t];N(r,e,t)})}}),D}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(){this.types={},this.schemaByField={query:{},mutation:{},subscription:{}},this.fragmentReplacements={}}return e.prototype.getSchemaByField=function(e,t){return this.schemaByField[e][t]},e.prototype.getAllTypes=function(){var e=this;return Object.keys(this.types).map(function(t){return e.types[t]})},e.prototype.getType=function(e){if(!this.types[e])throw new Error("No such type: "+e);return this.types[e]},e.prototype.resolveType=function(e){return e instanceof r.GraphQLList?new r.GraphQLList(this.resolveType(e.ofType)):e instanceof r.GraphQLNonNull?new r.GraphQLNonNull(this.resolveType(e.ofType)):r.isNamedType(e)?this.getType(r.getNamedType(e).name):e},e.prototype.addSchema=function(e){var t=this,n=e.getQueryType();n&&Object.keys(n.getFields()).forEach(function(n){t.schemaByField.query[n]=e});var r=e.getMutationType();r&&Object.keys(r.getFields()).forEach(function(n){t.schemaByField.mutation[n]=e});var i=e.getSubscriptionType();i&&Object.keys(i.getFields()).forEach(function(n){t.schemaByField.subscription[n]=e})},e.prototype.addType=function(e,t,n){if(this.types[e]){if(!n)throw new Error("Type name conflict: "+e);t=n(this.types[e],t)}this.types[e]=t},e.prototype.addFragment=function(e,t,n){this.fragmentReplacements[e]||(this.fragmentReplacements[e]={}),this.fragmentReplacements[e][t]=function(e){for(var t=0,n=r.parse(e).definitions;t<n.length;t++){var i=n[t];if(i.kind===r.Kind.FRAGMENT_DEFINITION)return{kind:r.Kind.INLINE_FRAGMENT,typeCondition:i.typeCondition,selectionSet:i.selectionSet}}throw new Error("Could not parse fragment")}(n)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(106),o=n(198);function a(e,t){var n={};return Object.keys(e).forEach(function(r){n[r]=function(e,t){return{type:t.resolveType(e.type),args:function(e,t){var n={};return e.forEach(function(e){var r=function(e,t){return[e.name,{type:t.resolveType(e.type),defaultValue:e.defaultValue,description:e.description}]}(e,t),i=r[0],o=r[1];n[i]=o}),n}(e.args,t),resolve:o.default,description:e.description,deprecationReason:e.deprecationReason}}(e[r],t)}),n}t.recreateCompositeType=function(e,t,n){if(t instanceof r.GraphQLObjectType){var o=t.getFields(),u=t.getInterfaces();return new r.GraphQLObjectType({name:t.name,description:t.description,isTypeOf:t.isTypeOf,astNode:t.astNode,fields:function(){return a(o,n)},interfaces:function(){return u.map(function(e){return n.resolveType(e)})}})}if(t instanceof r.GraphQLInterfaceType){var l=t.getFields();return new r.GraphQLInterfaceType({name:t.name,description:t.description,astNode:t.astNode,fields:function(){return a(l,n)},resolveType:function(e,t,n){return i.default(e,n.schema)}})}if(t instanceof r.GraphQLUnionType)return new r.GraphQLUnionType({name:t.name,description:t.description,astNode:t.astNode,types:function(){return t.getTypes().map(function(e){return n.resolveType(e)})},resolveType:function(e,t,n){return i.default(e,n.schema)}});if(t instanceof r.GraphQLInputObjectType)return new r.GraphQLInputObjectType({name:t.name,description:t.description,astNode:t.astNode,fields:function(){return function(e,t){var n={};return Object.keys(e).forEach(function(r){n[r]=function(e,t){return{type:t.resolveType(e.type),defaultValue:e.defaultValue,description:e.description}}(e[r],t)}),n}(t.getFields(),n)}});throw new Error("Invalid type "+t)},t.fieldMapToFieldConfigMap=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i={commentDescriptions:!0},o=n(106);function a(e,t){var n={};return t.forEach(function(t){n[t.name.value]={type:l(e,t.type),args:u(e,t.arguments),description:s(t,i)}}),n}function u(e,t){var n={};return t.forEach(function(t){var o=l(e,t.type);n[t.name.value]={type:o,defaultValue:r.valueFromAST(t.defaultValue,o),description:s(t,i)}}),n}function l(e,t){switch(t.kind){case r.Kind.LIST_TYPE:return new r.GraphQLList(l(e,t.type));case r.Kind.NON_NULL_TYPE:return new r.GraphQLNonNull(l(e,t.type));default:return e.getType(t.name.value)}}function s(e,t){if(e.description)return e.description.value;if(t&&t.commentDescriptions){var n=function(e){var t=e.loc;if(!t)return;var n=[],r=t.startToken.prev;for(;r&&"Comment"===r.kind&&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.reverse().join("\n")}(e);if(void 0!==n)return function(e){for(var t=e.split(/\r\n|[\n\r]/g),n=null,r=1;r<t.length;r++){var i=t[r],o=c(i);if(o<i.length&&(null===n||o<n)&&0===(n=o))break}if(n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(;t.length>0&&f(t[0]);)t.shift();for(;t.length>0&&f(t[t.length-1]);)t.pop();return t.join("\n")}("\n"+n)}}function c(e){for(var t=0;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function f(e){return c(e)===e.length}t.default=function(e,t){switch(t.kind){case r.Kind.OBJECT_TYPE_DEFINITION:return function(e,t){return new r.GraphQLObjectType({name:t.name.value,fields:function(){return a(e,t.fields)},interfaces:function(){return t.interfaces.map(function(t){return e.getType(t.name.value)})},description:s(t,i)})}(e,t);case r.Kind.INTERFACE_TYPE_DEFINITION:return function(e,t){return new r.GraphQLInterfaceType({name:t.name.value,fields:function(){return a(e,t.fields)},description:s(t,i),resolveType:function(e,t,n){return o.default(e,n.schema)}})}(e,t);case r.Kind.ENUM_TYPE_DEFINITION:return function(e,t){var n={};return t.values.forEach(function(e){n[e.name.value]={description:s(e,i)}}),new r.GraphQLEnumType({name:t.name.value,values:n,description:s(t,i)})}(0,t);case r.Kind.UNION_TYPE_DEFINITION:return function(e,t){return new r.GraphQLUnionType({name:t.name.value,types:function(){return t.types.map(function(t){return l(e,t)})},description:s(t,i),resolveType:function(e,t,n){return o.default(e,n.schema)}})}(e,t);case r.Kind.SCALAR_TYPE_DEFINITION:return function(e,t){return new r.GraphQLScalarType({name:t.name.value,description:s(t,i),serialize:function(){return null},parseValue:function(){return!1},parseLiteral:function(){return!1}})}(0,t);case r.Kind.INPUT_OBJECT_TYPE_DEFINITION:return function(e,t){return new r.GraphQLInputObjectType({name:t.name.value,fields:function(){return u(e,t.fields)},description:s(t,i)})}(e,t);default:return null}}},function(e,t,n){var r=n(388);"string"==typeof r&&(r=[[e.i,r,""]]);n(30)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(29)()).push([e.i,".graphiql-container,\n.graphiql-container button,\n.graphiql-container input {\n  color: #141823;\n  font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular', 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande', arial, sans-serif;\n  font-size: 14px;\n}\n.graphiql-container {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  height: 100%;\n  margin: 0;\n  overflow: hidden;\n  width: 100%;\n}\n.graphiql-container .editorWrap {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  -webkit-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n  overflow-x: hidden;\n}\n.graphiql-container .title {\n  font-size: 18px;\n}\n.graphiql-container .title em {\n  font-family: georgia;\n  font-size: 19px;\n}\n.graphiql-container .topBarWrap {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n  -ms-flex-direction: row;\n  flex-direction: row;\n}\n.graphiql-container .topBar {\n  -webkit-box-align: center;\n  -ms-flex-align: center;\n  align-items: center;\n  background: -webkit-gradient(linear, left top, left bottom, from(#f7f7f7), to(#e2e2e2));\n  background: linear-gradient(#f7f7f7, #e2e2e2);\n  border-bottom: 1px solid #d0d0d0;\n  cursor: default;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  -webkit-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n  height: 34px;\n  overflow-y: visible;\n  padding: 7px 14px 6px;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.graphiql-container .toolbar {\n  overflow-x: visible;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.graphiql-container .docExplorerShow,\n.graphiql-container .historyShow {\n  background: -webkit-gradient(linear, left top, left bottom, from(#f7f7f7), to(#e2e2e2));\n  background: linear-gradient(#f7f7f7, #e2e2e2);\n  border-radius: 0;\n  border-bottom: 1px solid #d0d0d0;\n  border-right: none;\n  border-top: none;\n  color: #3B5998;\n  cursor: pointer;\n  font-size: 14px;\n  margin: 0;\n  outline: 0;\n  padding: 2px 20px 0 18px;\n}\n.graphiql-container .docExplorerShow {\n  border-left: 1px solid rgba(0, 0, 0, 0.2);\n}\n.graphiql-container .historyShow {\n  border-right: 1px solid rgba(0, 0, 0, 0.2);\n  border-left: 0;\n}\n.graphiql-container .docExplorerShow:before {\n  border-left: 2px solid #3B5998;\n  border-top: 2px solid #3B5998;\n  content: '';\n  display: inline-block;\n  height: 9px;\n  margin: 0 3px -1px 0;\n  position: relative;\n  -webkit-transform: rotate(-45deg);\n  transform: rotate(-45deg);\n  width: 9px;\n}\n.graphiql-container .editorBar {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  -webkit-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n}\n.graphiql-container .queryWrap {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  -webkit-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n}\n.graphiql-container .resultWrap {\n  border-left: solid 1px #e0e0e0;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  -webkit-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n  position: relative;\n}\n.graphiql-container .docExplorerWrap,\n.graphiql-container .historyPaneWrap {\n  background: white;\n  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);\n  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);\n  position: relative;\n  z-index: 3;\n}\n.graphiql-container .historyPaneWrap {\n  min-width: 230px;\n  z-index: 5;\n}\n.graphiql-container .docExplorerResizer {\n  cursor: col-resize;\n  height: 100%;\n  left: -5px;\n  position: absolute;\n  top: 0;\n  width: 10px;\n  z-index: 10;\n}\n.graphiql-container .docExplorerHide {\n  cursor: pointer;\n  font-size: 18px;\n  margin: -7px -8px -6px 0;\n  padding: 18px 16px 15px 12px;\n}\n.graphiql-container div .query-editor {\n  -webkit-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n  position: relative;\n}\n.graphiql-container .variable-editor {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  height: 29px;\n  position: relative;\n}\n.graphiql-container .variable-editor-title {\n  background: #eeeeee;\n  border-bottom: 1px solid #d6d6d6;\n  border-top: 1px solid #e0e0e0;\n  color: #777;\n  font-variant: small-caps;\n  font-weight: bold;\n  letter-spacing: 1px;\n  line-height: 14px;\n  padding: 6px 0 8px 43px;\n  text-transform: lowercase;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.graphiql-container .codemirrorWrap {\n  -webkit-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n  height: 100%;\n  position: relative;\n}\n.graphiql-container .result-window {\n  -webkit-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n  height: 100%;\n  position: relative;\n}\n.graphiql-container .footer {\n  background: #f6f7f8;\n  border-left: 1px solid #e0e0e0;\n  border-top: 1px solid #e0e0e0;\n  margin-left: 12px;\n  position: relative;\n}\n.graphiql-container .footer:before {\n  background: #eeeeee;\n  bottom: 0;\n  content: \" \";\n  left: -13px;\n  position: absolute;\n  top: -1px;\n  width: 12px;\n}\n/* No `.graphiql-container` here so themes can overwrite */\n.result-window .CodeMirror {\n  background: #f6f7f8;\n}\n.graphiql-container .result-window .CodeMirror-gutters {\n  background-color: #eeeeee;\n  border-color: #e0e0e0;\n  cursor: col-resize;\n}\n.graphiql-container .result-window .CodeMirror-foldgutter,\n.graphiql-container .result-window .CodeMirror-foldgutter-open:after,\n.graphiql-container .result-window .CodeMirror-foldgutter-folded:after {\n  padding-left: 3px;\n}\n.graphiql-container .toolbar-button {\n  background: #fdfdfd;\n  background: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec));\n  background: linear-gradient(#f9f9f9, #ececec);\n  border-radius: 3px;\n  -webkit-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 1px #fff;\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 1px #fff;\n  color: #555;\n  cursor: pointer;\n  display: inline-block;\n  margin: 0 5px;\n  padding: 3px 11px 5px;\n  text-decoration: none;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  max-width: 150px;\n}\n.graphiql-container .toolbar-button:active {\n  background: -webkit-gradient(linear, left top, left bottom, from(#ececec), to(#d5d5d5));\n  background: linear-gradient(#ececec, #d5d5d5);\n  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 1px 1px 1px rgba(0, 0, 0, 0.12), inset 0 0 5px rgba(0, 0, 0, 0.1);\n  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 1px 1px 1px rgba(0, 0, 0, 0.12), inset 0 0 5px rgba(0, 0, 0, 0.1);\n}\n.graphiql-container .toolbar-button.error {\n  background: -webkit-gradient(linear, left top, left bottom, from(#fdf3f3), to(#e6d6d7));\n  background: linear-gradient(#fdf3f3, #e6d6d7);\n  color: #b00;\n}\n.graphiql-container .toolbar-button-group {\n  margin: 0 5px;\n  white-space: nowrap;\n}\n.graphiql-container .toolbar-button-group > * {\n  margin: 0;\n}\n.graphiql-container .toolbar-button-group > *:not(:last-child) {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n.graphiql-container .toolbar-button-group > *:not(:first-child) {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  margin-left: -1px;\n}\n.graphiql-container .execute-button-wrap {\n  height: 34px;\n  margin: 0 14px 0 28px;\n  position: relative;\n}\n.graphiql-container .execute-button {\n  background: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd), to(#d2d3d6));\n  background: linear-gradient(#fdfdfd, #d2d3d6);\n  border-radius: 17px;\n  border: 1px solid rgba(0, 0, 0, 0.25);\n  -webkit-box-shadow: 0 1px 0 #fff;\n  box-shadow: 0 1px 0 #fff;\n  cursor: pointer;\n  fill: #444;\n  height: 34px;\n  margin: 0;\n  padding: 0;\n  width: 34px;\n}\n.graphiql-container .execute-button svg {\n  pointer-events: none;\n}\n.graphiql-container .execute-button:active {\n  background: -webkit-gradient(linear, left top, left bottom, from(#e6e6e6), to(#c3c3c3));\n  background: linear-gradient(#e6e6e6, #c3c3c3);\n  -webkit-box-shadow: 0 1px 0 #fff, inset 0 0 2px rgba(0, 0, 0, 0.2), inset 0 0 6px rgba(0, 0, 0, 0.1);\n  box-shadow: 0 1px 0 #fff, inset 0 0 2px rgba(0, 0, 0, 0.2), inset 0 0 6px rgba(0, 0, 0, 0.1);\n}\n.graphiql-container .execute-button:focus {\n  outline: 0;\n}\n.graphiql-container .toolbar-menu,\n.graphiql-container .toolbar-select {\n  position: relative;\n}\n.graphiql-container .execute-options,\n.graphiql-container .toolbar-menu-items,\n.graphiql-container .toolbar-select-options {\n  background: #fff;\n  -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25);\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25);\n  margin: 0;\n  padding: 6px 0;\n  position: absolute;\n  z-index: 100;\n}\n.graphiql-container .execute-options {\n  min-width: 100px;\n  top: 37px;\n  left: -1px;\n}\n.graphiql-container .toolbar-menu-items {\n  left: 1px;\n  margin-top: -1px;\n  min-width: 110%;\n  top: 100%;\n  visibility: hidden;\n}\n.graphiql-container .toolbar-menu-items.open {\n  visibility: visible;\n}\n.graphiql-container .toolbar-select-options {\n  left: 0;\n  min-width: 100%;\n  top: -5px;\n  visibility: hidden;\n}\n.graphiql-container .toolbar-select-options.open {\n  visibility: visible;\n}\n.graphiql-container .execute-options > li,\n.graphiql-container .toolbar-menu-items > li,\n.graphiql-container .toolbar-select-options > li {\n  cursor: pointer;\n  display: block;\n  margin: none;\n  max-width: 300px;\n  overflow: hidden;\n  padding: 2px 20px 4px 11px;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.graphiql-container .execute-options > li.selected,\n.graphiql-container .toolbar-menu-items > li.hover,\n.graphiql-container .toolbar-menu-items > li:active,\n.graphiql-container .toolbar-menu-items > li:hover,\n.graphiql-container .toolbar-select-options > li.hover,\n.graphiql-container .toolbar-select-options > li:active,\n.graphiql-container .toolbar-select-options > li:hover,\n.graphiql-container .history-contents > p:hover,\n.graphiql-container .history-contents > p:active {\n  background: #e10098;\n  color: #fff;\n}\n.graphiql-container .toolbar-select-options > li > svg {\n  display: inline;\n  fill: #666;\n  margin: 0 -6px 0 6px;\n  pointer-events: none;\n  vertical-align: middle;\n}\n.graphiql-container .toolbar-select-options > li.hover > svg,\n.graphiql-container .toolbar-select-options > li:active > svg,\n.graphiql-container .toolbar-select-options > li:hover > svg {\n  fill: #fff;\n}\n.graphiql-container .CodeMirror-scroll {\n  overflow-scrolling: touch;\n}\n.graphiql-container .CodeMirror {\n  color: #141823;\n  font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n  font-size: 13px;\n  height: 100%;\n  left: 0;\n  position: absolute;\n  top: 0;\n  width: 100%;\n}\n.graphiql-container .CodeMirror-lines {\n  padding: 20px 0;\n}\n.CodeMirror-hint-information .content {\n  box-orient: vertical;\n  color: #141823;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular', 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande', arial, sans-serif;\n  font-size: 13px;\n  line-clamp: 3;\n  line-height: 16px;\n  max-height: 48px;\n  overflow: hidden;\n  text-overflow: -o-ellipsis-lastline;\n}\n.CodeMirror-hint-information .content p:first-child {\n  margin-top: 0;\n}\n.CodeMirror-hint-information .content p:last-child {\n  margin-bottom: 0;\n}\n.CodeMirror-hint-information .infoType {\n  color: #CA9800;\n  cursor: pointer;\n  display: inline;\n  margin-right: 0.5em;\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@-webkit-keyframes insertionFade {\n  from,\n  to {\n    background: rgba(255, 255, 255, 0);\n    border-color: rgba(255, 255, 255, 0);\n  }\n  15%,\n  85% {\n    background: #fbffc9;\n    border-color: #f0f3c0;\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  15%,\n  85% {\n    background: #fbffc9;\n    border-color: #f0f3c0;\n  }\n}\ndiv.CodeMirror-lint-tooltip {\n  background-color: white;\n  border-radius: 2px;\n  border: 0;\n  color: #141823;\n  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n  font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular', 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande', arial, sans-serif;\n  font-size: 13px;\n  line-height: 16px;\n  max-width: 430px;\n  opacity: 0;\n  padding: 8px 10px;\n  -webkit-transition: opacity 0.15s;\n  transition: opacity 0.15s;\n  white-space: pre-wrap;\n}\ndiv.CodeMirror-lint-tooltip > * {\n  padding-left: 23px;\n}\ndiv.CodeMirror-lint-tooltip > * + * {\n  margin-top: 12px;\n}\n/* COLORS */\n.graphiql-container .CodeMirror-foldmarker {\n  border-radius: 4px;\n  background: #08f;\n  background: -webkit-gradient(linear, left top, left bottom, from(#43A8FF), to(#0F83E8));\n  background: linear-gradient(#43A8FF, #0F83E8);\n  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.1);\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.graphiql-container div.CodeMirror span.CodeMirror-matchingbracket {\n  color: #555;\n  text-decoration: underline;\n}\n.graphiql-container div.CodeMirror span.CodeMirror-nonmatchingbracket {\n  color: #f00;\n}\n/* Comment */\n.cm-comment {\n  color: #999;\n}\n/* Punctuation */\n.cm-punctuation {\n  color: #555;\n}\n/* Keyword */\n.cm-keyword {\n  color: #B11A04;\n}\n/* OperationName, FragmentName */\n.cm-def {\n  color: #D2054E;\n}\n/* FieldName */\n.cm-property {\n  color: #1F61A0;\n}\n/* FieldAlias */\n.cm-qualifier {\n  color: #1C92A9;\n}\n/* ArgumentName and ObjectFieldName */\n.cm-attribute {\n  color: #8B2BB9;\n}\n/* Number */\n.cm-number {\n  color: #2882F9;\n}\n/* String */\n.cm-string {\n  color: #D64292;\n}\n/* Boolean */\n.cm-builtin {\n  color: #D47509;\n}\n/* EnumValue */\n.cm-string-2 {\n  color: #0B7FC7;\n}\n/* Variable */\n.cm-variable {\n  color: #397D13;\n}\n/* Directive */\n.cm-meta {\n  color: #B33086;\n}\n/* Type */\n.cm-atom {\n  color: #CA9800;\n}\n/* BASICS */\n.CodeMirror {\n  /* Set height, width, borders, and global font properties here */\n  color: black;\n  font-family: monospace;\n  height: 300px;\n}\n/* PADDING */\n.CodeMirror-lines {\n  padding: 4px 0;\n  /* Vertical padding around content */\n}\n.CodeMirror pre {\n  padding: 0 4px;\n  /* Horizontal padding of content */\n}\n.CodeMirror-scrollbar-filler,\n.CodeMirror-gutter-filler {\n  background-color: white;\n  /* The little square between H and V scrollbars */\n}\n/* GUTTER */\n.CodeMirror-gutters {\n  border-right: 1px solid #ddd;\n  background-color: #f7f7f7;\n  white-space: nowrap;\n}\n.CodeMirror-linenumber {\n  color: #999;\n  min-width: 20px;\n  padding: 0 3px 0 5px;\n  text-align: right;\n  white-space: nowrap;\n}\n.CodeMirror-guttermarker {\n  color: black;\n}\n.CodeMirror-guttermarker-subtle {\n  color: #999;\n}\n/* CURSOR */\n.CodeMirror .CodeMirror-cursor {\n  border-left: 1px solid black;\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: #7e7;\n  border: 0;\n  width: auto;\n}\n.CodeMirror.cm-fat-cursor div.CodeMirror-cursors {\n  z-index: 1;\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/* Can style cursor different in overwrite (non-insert) mode */\n.cm-tab {\n  display: inline-block;\n  text-decoration: inherit;\n}\n.CodeMirror-ruler {\n  border-left: 1px solid #ccc;\n  position: absolute;\n}\n/* DEFAULT THEME */\n.cm-s-default .cm-keyword {\n  color: #708;\n}\n.cm-s-default .cm-atom {\n  color: #219;\n}\n.cm-s-default .cm-number {\n  color: #164;\n}\n.cm-s-default .cm-def {\n  color: #00f;\n}\n.cm-s-default .cm-variable-2 {\n  color: #05a;\n}\n.cm-s-default .cm-variable-3 {\n  color: #085;\n}\n.cm-s-default .cm-comment {\n  color: #a50;\n}\n.cm-s-default .cm-string {\n  color: #a11;\n}\n.cm-s-default .cm-string-2 {\n  color: #f50;\n}\n.cm-s-default .cm-meta {\n  color: #555;\n}\n.cm-s-default .cm-qualifier {\n  color: #555;\n}\n.cm-s-default .cm-builtin {\n  color: #30a;\n}\n.cm-s-default .cm-bracket {\n  color: #997;\n}\n.cm-s-default .cm-tag {\n  color: #170;\n}\n.cm-s-default .cm-attribute {\n  color: #00c;\n}\n.cm-s-default .cm-header {\n  color: blue;\n}\n.cm-s-default .cm-quote {\n  color: #090;\n}\n.cm-s-default .cm-hr {\n  color: #999;\n}\n.cm-s-default .cm-link {\n  color: #00c;\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.cm-s-default .cm-error {\n  color: #f00;\n}\n.cm-invalidchar {\n  color: #f00;\n}\n.CodeMirror-composing {\n  border-bottom: 2px solid;\n}\n/* Default styles for common addons */\ndiv.CodeMirror span.CodeMirror-matchingbracket {\n  color: #0f0;\n}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {\n  color: #f22;\n}\n.CodeMirror-matchingtag {\n  background: rgba(255, 150, 0, 0.3);\n}\n.CodeMirror-activeline-background {\n  background: #e8f2ff;\n}\n/* STOP */\n/* The rest of this file contains styles related to the mechanics of\n   the editor. You probably shouldn't touch them. */\n.CodeMirror {\n  background: white;\n  overflow: hidden;\n  position: relative;\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;\n  /* Prevent dragging from highlighting the element */\n  overflow: scroll !important;\n  /* Things will break if this is overridden */\n  padding-bottom: 30px;\n  position: relative;\n}\n.CodeMirror-sizer {\n  border-right: 30px solid transparent;\n  position: relative;\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;\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.CodeMirror-gutters {\n  min-height: 100%;\n  position: absolute;\n  left: 0;\n  top: 0;\n  z-index: 3;\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.CodeMirror-lines {\n  cursor: text;\n  min-height: 1px;\n  /* 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.CodeMirror-linebackground {\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 0;\n  bottom: 0;\n  z-index: 0;\n}\n.CodeMirror-linewidget {\n  overflow: auto;\n  position: relative;\n  z-index: 2;\n}\n.CodeMirror-code {\n  outline: none;\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  -webkit-box-sizing: content-box;\n  box-sizing: content-box;\n}\n.CodeMirror-measure {\n  height: 0;\n  overflow: hidden;\n  position: absolute;\n  visibility: hidden;\n  width: 100%;\n}\n.CodeMirror-cursor {\n  position: absolute;\n}\n.CodeMirror-measure pre {\n  position: static;\n}\ndiv.CodeMirror-cursors {\n  position: relative;\n  visibility: hidden;\n  z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n  visibility: visible;\n}\n.CodeMirror-focused div.CodeMirror-cursors {\n  visibility: visible;\n}\n.CodeMirror-selected {\n  background: #d9d9d9;\n}\n.CodeMirror-focused .CodeMirror-selected {\n  background: #d7d4f0;\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: #d7d4f0;\n}\n.CodeMirror-line::selection,\n.CodeMirror-line > span::selection,\n.CodeMirror-line > span > span::selection {\n  background: #d7d4f0;\n}\n.CodeMirror-line::-moz-selection,\n.CodeMirror-line > span::-moz-selection,\n.CodeMirror-line > span > span::-moz-selection {\n  background: #d7d4f0;\n}\n.cm-searching {\n  background: #ffa;\n  background: rgba(255, 255, 0, 0.4);\n}\n/* IE7 hack to prevent it from returning funny offsetTops on the spans */\n.CodeMirror span {\n  *vertical-align: text-bottom;\n}\n/* Used to force a border model for a node */\n.cm-force-border {\n  padding-right: .1px;\n}\n@media print {\n  /* Hide the cursor when printing */\n  .CodeMirror div.CodeMirror-cursors {\n    visibility: hidden;\n  }\n}\n/* See issue #2901 */\n.cm-tab-wrap-hack:after {\n  content: '';\n}\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext {\n  background: none;\n}\n.CodeMirror-dialog {\n  background: inherit;\n  color: inherit;\n  left: 0;\n  right: 0;\n  overflow: hidden;\n  padding: .1em .8em;\n  position: absolute;\n  z-index: 15;\n}\n.CodeMirror-dialog-top {\n  border-bottom: 1px solid #eee;\n  top: 0;\n}\n.CodeMirror-dialog-bottom {\n  border-top: 1px solid #eee;\n  bottom: 0;\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.CodeMirror-dialog button {\n  font-size: 70%;\n}\n.graphiql-container .doc-explorer {\n  background: white;\n}\n.graphiql-container .doc-explorer-title-bar,\n.graphiql-container .history-title-bar {\n  cursor: default;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  height: 34px;\n  line-height: 14px;\n  padding: 8px 8px 5px;\n  position: relative;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.graphiql-container .doc-explorer-title,\n.graphiql-container .history-title {\n  -webkit-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n  font-weight: bold;\n  overflow-x: hidden;\n  padding: 10px 0 10px 10px;\n  text-align: center;\n  text-overflow: ellipsis;\n  -webkit-user-select: initial;\n  -moz-user-select: initial;\n  -ms-user-select: initial;\n  user-select: initial;\n  white-space: nowrap;\n}\n.graphiql-container .doc-explorer-back {\n  color: #3B5998;\n  cursor: pointer;\n  margin: -7px 0 -6px -8px;\n  overflow-x: hidden;\n  padding: 17px 12px 16px 16px;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.doc-explorer-narrow .doc-explorer-back {\n  width: 0;\n}\n.graphiql-container .doc-explorer-back:before {\n  border-left: 2px solid #3B5998;\n  border-top: 2px solid #3B5998;\n  content: '';\n  display: inline-block;\n  height: 9px;\n  margin: 0 3px -1px 0;\n  position: relative;\n  -webkit-transform: rotate(-45deg);\n  transform: rotate(-45deg);\n  width: 9px;\n}\n.graphiql-container .doc-explorer-rhs {\n  position: relative;\n}\n.graphiql-container .doc-explorer-contents,\n.graphiql-container .history-contents {\n  background-color: #ffffff;\n  border-top: 1px solid #d6d6d6;\n  bottom: 0;\n  left: 0;\n  overflow-y: auto;\n  padding: 20px 15px;\n  position: absolute;\n  right: 0;\n  top: 47px;\n}\n.graphiql-container .doc-explorer-contents {\n  min-width: 300px;\n}\n.graphiql-container .doc-type-description p:first-child,\n.graphiql-container .doc-type-description blockquote:first-child {\n  margin-top: 0;\n}\n.graphiql-container .doc-explorer-contents a {\n  cursor: pointer;\n  text-decoration: none;\n}\n.graphiql-container .doc-explorer-contents a:hover {\n  text-decoration: underline;\n}\n.graphiql-container .doc-value-description > :first-child {\n  margin-top: 4px;\n}\n.graphiql-container .doc-value-description > :last-child {\n  margin-bottom: 4px;\n}\n.graphiql-container .doc-category {\n  margin: 20px 0;\n}\n.graphiql-container .doc-category-title {\n  border-bottom: 1px solid #e0e0e0;\n  color: #777;\n  cursor: default;\n  font-size: 14px;\n  font-variant: small-caps;\n  font-weight: bold;\n  letter-spacing: 1px;\n  margin: 0 -15px 10px 0;\n  padding: 10px 0;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.graphiql-container .doc-category-item {\n  margin: 12px 0;\n  color: #555;\n}\n.graphiql-container .keyword {\n  color: #B11A04;\n}\n.graphiql-container .type-name {\n  color: #CA9800;\n}\n.graphiql-container .field-name {\n  color: #1F61A0;\n}\n.graphiql-container .field-short-description {\n  color: #999;\n  margin-left: 5px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.graphiql-container .enum-value {\n  color: #0B7FC7;\n}\n.graphiql-container .arg-name {\n  color: #8B2BB9;\n}\n.graphiql-container .arg {\n  display: block;\n  margin-left: 1em;\n}\n.graphiql-container .arg:first-child:last-child,\n.graphiql-container .arg:first-child:nth-last-child(2),\n.graphiql-container .arg:first-child:nth-last-child(2) ~ .arg {\n  display: inherit;\n  margin: inherit;\n}\n.graphiql-container .arg:first-child:nth-last-child(2):after {\n  content: ', ';\n}\n.graphiql-container .arg-default-value {\n  color: #43A047;\n}\n.graphiql-container .doc-deprecation {\n  background: #fffae8;\n  -webkit-box-shadow: inset 0 0 1px #bfb063;\n  box-shadow: inset 0 0 1px #bfb063;\n  color: #867F70;\n  line-height: 16px;\n  margin: 8px -8px;\n  max-height: 80px;\n  overflow: hidden;\n  padding: 8px;\n  border-radius: 3px;\n}\n.graphiql-container .doc-deprecation:before {\n  content: 'Deprecated:';\n  color: #c79b2e;\n  cursor: default;\n  display: block;\n  font-size: 9px;\n  font-weight: bold;\n  letter-spacing: 1px;\n  line-height: 1;\n  padding-bottom: 5px;\n  text-transform: uppercase;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.graphiql-container .doc-deprecation > :first-child {\n  margin-top: 0;\n}\n.graphiql-container .doc-deprecation > :last-child {\n  margin-bottom: 0;\n}\n.graphiql-container .show-btn {\n  -webkit-appearance: initial;\n  display: block;\n  border-radius: 3px;\n  border: solid 1px #ccc;\n  text-align: center;\n  padding: 8px 12px 10px;\n  width: 100%;\n  -webkit-box-sizing: border-box;\n  box-sizing: border-box;\n  background: #fbfcfc;\n  color: #555;\n  cursor: pointer;\n}\n.graphiql-container .search-box {\n  border-bottom: 1px solid #d3d6db;\n  display: block;\n  font-size: 14px;\n  margin: -15px -15px 12px 0;\n  position: relative;\n}\n.graphiql-container .search-box:before {\n  content: '\\26B2';\n  cursor: pointer;\n  display: block;\n  font-size: 24px;\n  position: absolute;\n  top: -2px;\n  -webkit-transform: rotate(-45deg);\n  transform: rotate(-45deg);\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.graphiql-container .search-box .search-box-clear {\n  background-color: #d0d0d0;\n  border-radius: 12px;\n  color: #fff;\n  cursor: pointer;\n  font-size: 11px;\n  padding: 1px 5px 2px;\n  position: absolute;\n  right: 3px;\n  top: 8px;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.graphiql-container .search-box .search-box-clear:hover {\n  background-color: #b9b9b9;\n}\n.graphiql-container .search-box > input {\n  border: none;\n  -webkit-box-sizing: border-box;\n  box-sizing: border-box;\n  font-size: 14px;\n  outline: none;\n  padding: 6px 24px 8px 20px;\n  width: 100%;\n}\n.graphiql-container .error-container {\n  font-weight: bold;\n  left: 0;\n  letter-spacing: 1px;\n  opacity: 0.5;\n  position: absolute;\n  right: 0;\n  text-align: center;\n  text-transform: uppercase;\n  top: 50%;\n  -webkit-transform: translate(0, -50%);\n  transform: translate(0, -50%);\n}\n.CodeMirror-foldmarker {\n  color: blue;\n  cursor: pointer;\n  font-family: arial;\n  line-height: .3;\n  text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;\n}\n.CodeMirror-foldgutter {\n  width: .7em;\n}\n.CodeMirror-foldgutter-open,\n.CodeMirror-foldgutter-folded {\n  cursor: pointer;\n}\n.CodeMirror-foldgutter-open:after {\n  content: \"\\25BE\";\n}\n.CodeMirror-foldgutter-folded:after {\n  content: \"\\25B8\";\n}\n.graphiql-container .history-contents {\n  font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n  padding: 0;\n}\n.graphiql-container .history-contents p {\n  font-size: 12px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  margin: 0;\n  padding: 8px;\n  border-bottom: 1px solid #e0e0e0;\n}\n.graphiql-container .history-contents p:hover {\n  cursor: pointer;\n}\n.CodeMirror-info {\n  background: white;\n  border-radius: 2px;\n  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n  -webkit-box-sizing: border-box;\n  box-sizing: border-box;\n  color: #555;\n  font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular', 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande', arial, sans-serif;\n  font-size: 13px;\n  line-height: 16px;\n  margin: 8px -8px;\n  max-width: 400px;\n  opacity: 0;\n  overflow: hidden;\n  padding: 8px 8px;\n  position: fixed;\n  -webkit-transition: opacity 0.15s;\n  transition: opacity 0.15s;\n  z-index: 50;\n}\n.CodeMirror-info :first-child {\n  margin-top: 0;\n}\n.CodeMirror-info :last-child {\n  margin-bottom: 0;\n}\n.CodeMirror-info p {\n  margin: 1em 0;\n}\n.CodeMirror-info .info-description {\n  color: #777;\n  line-height: 16px;\n  margin-top: 1em;\n  max-height: 80px;\n  overflow: hidden;\n}\n.CodeMirror-info .info-deprecation {\n  background: #fffae8;\n  -webkit-box-shadow: inset 0 1px 1px -1px #bfb063;\n  box-shadow: inset 0 1px 1px -1px #bfb063;\n  color: #867F70;\n  line-height: 16px;\n  margin: -8px;\n  margin-top: 8px;\n  max-height: 80px;\n  overflow: hidden;\n  padding: 8px;\n}\n.CodeMirror-info .info-deprecation-label {\n  color: #c79b2e;\n  cursor: default;\n  display: block;\n  font-size: 9px;\n  font-weight: bold;\n  letter-spacing: 1px;\n  line-height: 1;\n  padding-bottom: 5px;\n  text-transform: uppercase;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.CodeMirror-info .info-deprecation-label + * {\n  margin-top: 0;\n}\n.CodeMirror-info a {\n  text-decoration: none;\n}\n.CodeMirror-info a:hover {\n  text-decoration: underline;\n}\n.CodeMirror-info .type-name {\n  color: #CA9800;\n}\n.CodeMirror-info .field-name {\n  color: #1F61A0;\n}\n.CodeMirror-info .enum-value {\n  color: #0B7FC7;\n}\n.CodeMirror-info .arg-name {\n  color: #8B2BB9;\n}\n.CodeMirror-info .directive-name {\n  color: #B33086;\n}\n.CodeMirror-jump-token {\n  text-decoration: underline;\n  cursor: pointer;\n}\n/* The lint marker gutter */\n.CodeMirror-lint-markers {\n  width: 16px;\n}\n.CodeMirror-lint-tooltip {\n  background-color: infobackground;\n  border-radius: 4px 4px 4px 4px;\n  border: 1px solid black;\n  color: infotext;\n  font-family: monospace;\n  font-size: 10pt;\n  max-width: 600px;\n  opacity: 0;\n  overflow: hidden;\n  padding: 2px 5px;\n  position: fixed;\n  -webkit-transition: opacity .4s;\n  transition: opacity .4s;\n  white-space: pre-wrap;\n  z-index: 100;\n}\n.CodeMirror-lint-mark-error,\n.CodeMirror-lint-mark-warning {\n  background-position: left bottom;\n  background-repeat: repeat-x;\n}\n.CodeMirror-lint-mark-error {\n  background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==\");\n}\n.CodeMirror-lint-mark-warning {\n  background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=\");\n}\n.CodeMirror-lint-marker-error,\n.CodeMirror-lint-marker-warning {\n  background-position: center center;\n  background-repeat: no-repeat;\n  cursor: pointer;\n  display: inline-block;\n  height: 16px;\n  position: relative;\n  vertical-align: middle;\n  width: 16px;\n}\n.CodeMirror-lint-message-error,\n.CodeMirror-lint-message-warning {\n  background-position: top left;\n  background-repeat: no-repeat;\n  padding-left: 18px;\n}\n.CodeMirror-lint-marker-error,\n.CodeMirror-lint-message-error {\n  background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=\");\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.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.graphiql-container .spinner-container {\n  height: 36px;\n  left: 50%;\n  position: absolute;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n  transform: translate(-50%, -50%);\n  width: 36px;\n  z-index: 10;\n}\n.graphiql-container .spinner {\n  -webkit-animation: rotation .6s infinite linear;\n  animation: rotation .6s infinite linear;\n  border-bottom: 6px solid rgba(150, 150, 150, 0.15);\n  border-left: 6px solid rgba(150, 150, 150, 0.15);\n  border-radius: 100%;\n  border-right: 6px solid rgba(150, 150, 150, 0.15);\n  border-top: 6px solid rgba(150, 150, 150, 0.8);\n  display: inline-block;\n  height: 24px;\n  position: absolute;\n  vertical-align: middle;\n  width: 24px;\n}\n@-webkit-keyframes rotation {\n  from {\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n  }\n  to {\n    -webkit-transform: rotate(359deg);\n    transform: rotate(359deg);\n  }\n}\n@keyframes rotation {\n  from {\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n  }\n  to {\n    -webkit-transform: rotate(359deg);\n    transform: rotate(359deg);\n  }\n}\n.CodeMirror-hints {\n  background: white;\n  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n  font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n  font-size: 13px;\n  list-style: none;\n  margin-left: -6px;\n  margin: 0;\n  max-height: 14.5em;\n  overflow-y: auto;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  z-index: 10;\n}\n.CodeMirror-hint {\n  border-top: solid 1px #f7f7f7;\n  color: #141823;\n  cursor: pointer;\n  margin: 0;\n  max-width: 300px;\n  overflow: hidden;\n  padding: 2px 6px;\n  white-space: pre;\n}\nli.CodeMirror-hint-active {\n  background-color: #08f;\n  border-top-color: white;\n  color: white;\n}\n.CodeMirror-hint-information {\n  border-top: solid 1px #c0c0c0;\n  max-width: 300px;\n  padding: 4px 6px;\n  position: relative;\n  z-index: 1;\n}\n.CodeMirror-hint-information:first-child {\n  border-bottom: solid 1px #c0c0c0;\n  border-top: none;\n  margin-bottom: -1px;\n}\n.CodeMirror-hint-deprecation {\n  background: #fffae8;\n  -webkit-box-shadow: inset 0 1px 1px -1px #bfb063;\n  box-shadow: inset 0 1px 1px -1px #bfb063;\n  color: #867F70;\n  font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular', 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande', arial, sans-serif;\n  font-size: 13px;\n  line-height: 16px;\n  margin-top: 4px;\n  max-height: 80px;\n  overflow: hidden;\n  padding: 6px;\n}\n.CodeMirror-hint-deprecation .deprecation-label {\n  color: #c79b2e;\n  cursor: default;\n  display: block;\n  font-size: 9px;\n  font-weight: bold;\n  letter-spacing: 1px;\n  line-height: 1;\n  padding-bottom: 5px;\n  text-transform: uppercase;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.CodeMirror-hint-deprecation .deprecation-label + * {\n  margin-top: 0;\n}\n.CodeMirror-hint-deprecation :last-child {\n  margin-bottom: 0;\n}\n",""])},function(e,t,n){var r=n(390);"string"==typeof r&&(r=[[e.i,r,""]]);n(30)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(29)()).push([e.i,".dark .graphiql-container .topBar,\n.dark .graphiql-container .variable-editor-title {\n  background-color: #21232b !important;\n  color: white !important;\n}\n.dark .CodeMirror .CodeMirror-cursor {\n  border-left-color: white;\n}\n.graphiql-container .CodeMirror pre {\n  font-size: 12px;\n}\n.graphiql-container .topBar {\n  background: none;\n  border-bottom: none;\n  background-color: #FBFBFB;\n  padding: 5px 10px;\n  color: #333;\n  border-bottom: 1px solid #CCC;\n}\n.graphiql-container .topBar .title {\n  font-size: 14px;\n  font-weight: bold;\n}\n.graphiql-container .topBar .title em {\n  font-size: 14px;\n}\n.graphiql-container .topBar .execute-button-wrap {\n  margin: 0;\n  height: 24px;\n}\n.graphiql-container .topBar .execute-button-wrap .execute-button {\n  border: 1px solid #CCC;\n  height: 24px;\n  background: none;\n  background-color: #FFF;\n  width: 24px;\n  margin: 0 0 0 20px;\n}\n.graphiql-container .topBar .execute-button-wrap .execute-button:hover,\n.graphiql-container .topBar .execute-button-wrap .execute-button:active {\n  box-shadow: inset 6px 6px 30px #CCC;\n}\n.graphiql-container .topBar .execute-button-wrap .execute-button svg {\n  margin-top: -5px;\n  margin-left: -5px;\n}\n.graphiql-container .topBar .toolbar-button {\n  font-size: 12px;\n  padding: 2px 5px;\n  border-radius: 3px;\n  background: none;\n  border: 1px solid #CCC;\n  background-color: #FFF;\n  margin-left: 20px;\n}\n.graphiql-container .topBar .toolbar-button:hover,\n.graphiql-container .topBar .toolbar-button:active {\n  box-shadow: inset 6px 6px 30px #CCC;\n}\n.graphiql-container .topBar label {\n  margin: 0 0 0 20px;\n  cursor: pointer;\n  font-weight: normal;\n  font-size: 12px;\n}\n.graphiql-container .topBar label input {\n  margin: 0 5px 0 0;\n  cursor: pointer;\n}\n.graphiql-container .variable-editor {\n  height: 60px;\n}\n.graphiql-container .variable-editor .variable-editor-title {\n  font-variant: none;\n  font-size: 12px;\n  color: #333;\n  text-transform: none;\n  background-color: #FBFBFB;\n  border-bottom: none;\n  padding: 5px 10px;\n}\n.graphiql-container .CodeMirror-lines {\n  padding: 5px 0;\n}\n.graphiql-container .CodeMirror pre {\n  font-family: monospace !important;\n}\n.graphiql-container .CodeMirror-linenumber.CodeMirror-gutter-elt {\n  font-family: monospace;\n}\n.graphiql-container .CodeMirror-gutters {\n  border: none;\n  background-color: #FBFBFB;\n}\n.graphiql-container .CodeMirror-gutter.CodeMirror-linenumbers {\n  width: 20px;\n}\n.graphiql-container .result-window .CodeMirror-gutters {\n  cursor: ew-resize;\n  border: none;\n  background-color: transparent;\n}\n.graphiql-container .docExplorerShow {\n  background: none;\n  background-color: #FBFBFB;\n  border-bottom: 1px solid #CCC;\n  color: #333;\n  font-weight: bold;\n  font-size: 12px;\n  padding: 0 10px;\n}\n.graphiql-container .docExplorerShow:before {\n  border-color: #333;\n  border-width: 1px;\n  margin: 0 5px 1px 0;\n  height: 5px;\n  width: 5px;\n}\n.graphiql-container .doc-explorer-back {\n  color: #333;\n  font-size: 12px;\n  padding: 0 0 0 5px;\n  margin: 0;\n}\n.graphiql-container .doc-explorer-back:before {\n  border-color: #333;\n  border-width: 1px;\n  margin: 0 5px 1px 0;\n  height: 5px;\n  width: 5px;\n}\n.graphiql-container .doc-explorer .doc-explorer-title-bar {\n  padding: 10px;\n}\n.graphiql-container .doc-explorer .doc-explorer-title-bar .doc-explorer-title {\n  font-size: 12px;\n  padding: 0;\n}\n.graphiql-container .doc-explorer .doc-explorer-title-bar .docExplorerHide {\n  padding: 0;\n  margin: 0;\n  font-size: 12px;\n}\n.graphiql-container .doc-explorer .doc-explorer-contents {\n  top: 33px;\n  font-size: 12px;\n}\n",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(392),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(6)),o=s(n(2)),a=n(52),u=s(n(34)),l=s(n(192));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n(393);var h=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={dataWithOptimistic:null,ids:[],selectedId:null,toHighlight:{},searchTerm:""},n.setSearchTerm=n.setSearchTerm.bind(n),n}return d(t,o.default.Component),r(t,[{key:"updateDataInStore",value:function(e){var t={};this.state.searchTerm.length>=3&&(t=v({data:e,query:this.state.searchTerm}));var n=Object.keys(e).filter(function(e){return"$"!==e[0]}),r=Object.keys(t).filter(function(e){return"$"!==e[0]&&"ROOT_QUERY"!==e}),i=n.filter(function(e){return"ROOT_QUERY"!==e&&r.indexOf(e)<0}).sort(),o=[].concat(c(r),["ROOT_QUERY"],c(i));this.state.selectedId||o[0];this.setState({dataWithOptimistic:e,toHighlight:t,ids:o,selectedId:this.state.selectedId||o[0]})}},{key:"componentDidMount",value:function(){this.props.state.inspector&&this.updateDataInStore(this.props.state.inspector)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._interval)}},{key:"componentWillReceiveProps",value:function(e){if(!e)return[null,null,null,null];this.updateDataInStore(e.state.inspector)}},{key:"getChildContext",value:function(){return{inspectorContext:{dataWithOptimistic:this.state.dataWithOptimistic,toHighlight:this.state.toHighlight,selectId:this.selectId.bind(this)}}}},{key:"componentWillUpdate",value:function(e,t){if(t.selectedId!==this.state.selectedId){var n=document.getElementById(t.selectedId);!n||(r=n.getBoundingClientRect(),i=document.documentElement,r.top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||i.clientHeight)&&r.right<=(window.innerWidth||i.clientWidth))||n.scrollIntoView()}var r,i}},{key:"selectId",value:function(e){this.setState({selectedId:e})}},{key:"setSearchTerm",value:function(e){var t={};e.length>=3&&(t=v({data:this.state.dataWithOptimistic,query:e})),this.setState({searchTerm:e,toHighlight:t})}},{key:"renderSidebarItem",value:function(e){var t="inspector-sidebar-item";return e===this.state.selectedId&&(t+=" active"),this.state.toHighlight[e]&&(t+=" inspector-sidebar-highlighted"),o.default.createElement("div",{id:e,key:"inspector-sidebar-item-"+e,onClick:this.selectId.bind(this,e),className:t},e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.selectedId,r=t.dataWithOptimistic,i=t.searchTerm,u=t.ids;return o.default.createElement("div",{className:"inspector-panel body"},o.default.createElement("div",{className:"inspector-body"},o.default.createElement(a.Sidebar,{className:"inspector-sidebar",name:"inspector-sidebar"},o.default.createElement("h4",{className:"inspector-sidebar-title"},"Cache"),o.default.createElement(m,{searchTerm:i,setSearchTerm:this.setSearchTerm}),u&&u.map(function(t){return e.renderSidebarItem(t)})),o.default.createElement("div",{className:"inspector-main"},n&&o.default.createElement(g,{data:r,dataId:n,expand:!0}))))}}]),t}();h.childContextTypes={inspectorContext:i.default.object.isRequired},t.default=h;var m=function(e){var t=e.searchTerm,n=e.setSearchTerm;return o.default.createElement("div",{className:"inspector-toolbar"},o.default.createElement("input",{className:"inspector-search",type:"text",placeholder:"Search...",onChange:function(e){return n(e.target.value)},value:t}))};function v(e){var t=e.data,n=e.query,r={};return Object.keys(t).forEach(function(e){!function e(t){var n=t.data,r=t.regex,i=t.toHighlight,o=t.pathToId,a=void 0===o?[]:o,u=t.dataId;var s=n[u];var f={};Object.keys(s).forEach(function(t){var o=[s[t]],p=(0,l.default)(o);p.forEach(function(o){var l="string"==typeof o&&r.test(o),s=r.test(t);(l||s)&&(f[t]=o),o&&o.id&&o.generated&&e({data:n,regex:r,toHighlight:i,pathToId:[].concat(c(a),[[u,t]]),dataId:o.id})})});Object.keys(f).length>0&&(i[u]=f,a.forEach(function(e){i[e[0]]=i[e[0]]||{},i[e[0]][e[1]]=n[e[0]][e[1]]}))}({data:t,regex:new RegExp(n),toHighlight:r,dataId:e})}),r}var g=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={expand:e.expand||"$"===e.dataId[0]},n.toggleExpand=n.toggleExpand.bind(n),n.selectId=n.selectId.bind(n),n}return d(t,o.default.Component),r(t,[{key:"getStoreObj",value:function(){return this.context.inspectorContext.dataWithOptimistic[this.props.dataId]}},{key:"getHighlightObj",value:function(){return this.context.inspectorContext.toHighlight[this.props.dataId]}},{key:"shouldDisplayId",value:function(){return"$"!==this.props.dataId[0]}},{key:"keysToDisplay",value:function(){return Object.keys(this.getStoreObj()).filter(function(e){return"__typename"!==e}).sort()}},{key:"renderFieldSet",value:function(e){var t=e.doubleIndent,n=this.getStoreObj(),r=this.getHighlightObj(),i="store-tree-field-set";return t&&(i+=" double-indent"),o.default.createElement("div",{className:i},this.keysToDisplay().map(function(e){return o.default.createElement(_,{key:e,storeKey:e,value:n[e],highlight:!(!r||!r[e])})}))}},{key:"toggleExpand",value:function(){this.setState(function(e){return{expand:!e.expand}})}},{key:"selectId",value:function(){this.context.inspectorContext.selectId(this.props.dataId)}},{key:"render",value:function(){return o.default.createElement("span",null,this.shouldDisplayId()&&o.default.createElement("span",{className:(0,u.default)("store-tree-ref-id toggle",{"store-tree-ref-id-inline":this.props.inArray}),onClick:this.toggleExpand},o.default.createElement("span",{className:(0,u.default)("triangle",{toggled:!this.state.expand})},"▾"),o.default.createElement("span",{className:"data-id"},this.props.dataId),o.default.createElement("span",{className:"jump-to-object",onClick:this.selectId})),o.default.createElement("div",null,this.state.expand&&this.renderFieldSet({doubleIndent:this.shouldDisplayId()})))}}]),t}();g.contextTypes={inspectorContext:i.default.object.isRequired};var y=function(e){var t=e.value;return o.default.createElement("div",{className:"store-tree-field-set"},t.map(function(e,t){return o.default.createElement(b,{key:t,item:e,index:t})}))},b=function(e){var t=e.item,n=e.index;return o.default.createElement("div",null,o.default.createElement("span",{className:"inspector-field-key"},n),":",o.default.createElement(w,{value:t,inArray:!0}))},k=function(e){var t,n=e.value,r=e.highlight,i=e.inArray;if((t=n)&&"id"===t.type)return o.default.createElement(g,{key:"storee-tree-field-set-"+n.id,dataId:n.id,inArray:i});var a="";return"string"==typeof n&&(a+=" inspector-value-string"),"number"==typeof n&&(a+=" inspector-value-number"),r&&(a+=" inspector-highlight"),o.default.createElement("span",{className:a},JSON.stringify(n))},w=function(e){return o.default.createElement("span",null,Array.isArray(e.value)?o.default.createElement(y,e):o.default.createElement(k,e))},_=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,o.default.Component),r(t,[{key:"getPossibleTypename",value:function(){for(var e=this.props.value,t=!1;Array.isArray(e);)e=e[0],t=!0;var n=e&&e.id&&this.context.inspectorContext.dataWithOptimistic[e.id],r=n&&n.__typename;return r&&t?"["+r+"]":r}},{key:"renderPossibleTypename",value:function(){var e=this.getPossibleTypename();return e?o.default.createElement("span",{className:"inspector-typename"},e):""}},{key:"render",value:function(){var e="inspector-field-key";return this.props.highlight&&(e+=" inspector-highlight"),o.default.createElement("div",null,o.default.createElement("span",{className:e},this.props.storeKey),": ",this.renderPossibleTypename(),o.default.createElement(w,{value:this.props.value,highlight:this.props.highlight}))}}]),t}();_.contextTypes={inspectorContext:i.default.object.isRequired}},function(e,t,n){var r=n(394);"string"==typeof r&&(r=[[e.i,r,""]]);n(30)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(29)()).push([e.i,'.dark .inspector-panel {\n  background-color: #333333;\n  color: #FFF;\n}\n.dark .inspector-panel .inspector-sidebar {\n  border-right-color: #3d3d3d;\n}\n.dark .inspector-panel .inspector-sidebar .inspector-sidebar-title {\n  background-color: #2a2a2a;\n  border-bottom-color: #3d3d3d;\n  color: #FFF !important;\n}\n.dark .inspector-panel .inspector-sidebar .inspector-search {\n  background-color: transparent;\n}\n.dark .inspector-panel .inspector-sidebar .inspector-sidebar-item {\n  border-bottom-color: #3d3d3d;\n}\n.dark .inspector-panel .inspector-sidebar .inspector-sidebar-item:hover {\n  background-color: rgba(17, 81, 75, 0.5);\n}\n.dark .inspector-panel .inspector-sidebar .inspector-sidebar-item.active {\n  background-color: #11514b;\n}\n.dark .inspector-panel .inspector-sidebar .inspector-sidebar-item.active:hover {\n  background-color: rgba(17, 81, 75, 0.8);\n}\n.dark .inspector-panel .store-tree-field-set {\n  border-left: 1px solid #3d3d3d;\n}\n.dark .inspector-panel .store-tree-ref-id {\n  color: #f29766;\n}\n.dark .inspector-panel .store-tree-ref-id .jump-to-object:before {\n  color: #CCC;\n}\n.dark .inspector-panel .store-tree-ref-id .jump-to-object:hover:before {\n  color: #35d4c7;\n}\n.dark .inspector-panel .inspector-highlight {\n  background-color: #FFF59D !important;\n  color: #333 !important;\n}\n.dark .inspector-panel .inspector-sidebar-highlighted {\n  background-color: #FFF59D !important;\n  color: #333 !important;\n}\n.dark .inspector-panel .inspector-sidebar-highlighted:hover {\n  background-color: rgba(181, 219, 156, 0.8) !important;\n}\n.dark .inspector-panel .inspector-sidebar-highlighted.active {\n  background-color: #B5DB9C !important;\n}\n.dark .inspector-panel .inspector-sidebar-highlighted.active:hover {\n  background-color: rgba(181, 219, 156, 0.8) !important;\n}\n.dark .inspector-panel .inspector-field-key {\n  color: #35d4c7;\n}\n.dark .inspector-panel .inspector-value-string {\n  color: #ff8080;\n}\n.dark .inspector-panel .inspector-value-number {\n  color: #5db0d7;\n}\n.dark .inspector-panel .inspector-typename {\n  color: #c678dd;\n}\n.inspector-panel {\n  background-color: white;\n  display: flex;\n  flex-direction: column;\n}\n.inspector-panel .inspector-toolbar {\n  flex: 0;\n  background-color: #f3f3f3;\n  border-bottom: #ccc 1px solid;\n}\n.inspector-panel .inspector-search {\n  width: 100%;\n  outline: none;\n  border: none;\n  padding: 5px 10px;\n  font-size: 12px;\n}\n.inspector-panel .inspector-body {\n  flex: 1;\n  display: flex;\n}\n.inspector-panel .inspector-sidebar {\n  flex: none;\n  width: 200px;\n  overflow: scroll;\n  border-right: 1px solid #ddd;\n}\n.inspector-panel .inspector-sidebar .inspector-sidebar-title {\n  font-weight: bold;\n  background-color: #FBFBFB;\n  border-bottom: 1px solid #CCC;\n  line-height: 33px;\n  padding-left: 10px;\n}\n.apollo-client-panel.dark .inspector-panel .inspector-sidebar .inspector-sidebar-title {\n  color: #333333;\n}\n.inspector-panel .inspector-sidebar .inspector-sidebar-item {\n  cursor: pointer;\n  padding: 3px 10px;\n  border-bottom: 1px solid #EFEFEF;\n  font-size: 12px;\n  font-family: monospace;\n  font-weight: 100;\n}\n.inspector-panel .inspector-sidebar .inspector-sidebar-item:hover {\n  background-color: rgba(34, 166, 153, 0.1);\n}\n.inspector-panel .inspector-sidebar .inspector-sidebar-item.active {\n  background-color: rgba(34, 166, 153, 0.4);\n}\n.inspector-panel .inspector-sidebar .inspector-sidebar-item.active:hover {\n  background-color: rgba(34, 166, 153, 0.3);\n}\n.inspector-panel .inspector-main {\n  flex: 1;\n  overflow: scroll;\n  font-size: 12px;\n  font-family: monospace;\n  padding: 20px 0;\n  position: relative;\n}\n.inspector-panel .store-tree-field-set {\n  margin-left: 20px;\n  border-left: 1px solid #EEE;\n  padding-left: 5px;\n}\n.inspector-panel .store-tree-field-set.double-indent {\n  margin-left: 40px;\n}\n.inspector-panel .store-tree-ref-id {\n  margin-left: 20px;\n  color: #B11A04;\n  cursor: pointer;\n  display: block;\n}\n.inspector-panel .store-tree-ref-id.store-tree-ref-id-inline {\n  display: inline-block;\n  margin-left: 5px;\n}\n.inspector-panel .store-tree-ref-id .jump-to-object:before {\n  content: "\\2192";\n  margin-left: 5px;\n  color: #999;\n  transition: 300ms all cubic-bezier(0.175, 0.885, 0.335, 1.05);\n  opacity: 0;\n}\n.inspector-panel .store-tree-ref-id .jump-to-object:hover:before {\n  color: #52dcce;\n}\n.inspector-panel .store-tree-ref-id:hover .data-id {\n  text-decoration: underline;\n}\n.inspector-panel .store-tree-ref-id:hover .jump-to-object:before {\n  opacity: 1;\n}\n.inspector-panel .store-tree-ref-id .triangle {\n  width: 15px;\n  display: inline-block;\n  transition: 300ms all cubic-bezier(0.175, 0.885, 0.335, 1.05);\n  line-height: 15px;\n  vertical-align: top;\n  text-align: center;\n  position: absolute;\n}\n.inspector-panel .store-tree-ref-id .triangle.toggled {\n  transform: rotate(-90deg);\n}\n.inspector-panel .store-tree-ref-id .data-id {\n  height: 15px;\n  line-height: 15px;\n  display: inline-block;\n  vertical-align: top;\n  margin-left: 15px;\n}\n.inspector-panel .inspector-highlight {\n  background-color: #FFF59D !important;\n}\n.inspector-panel .inspector-sidebar-highlighted {\n  background-color: #FFF59D !important;\n}\n.inspector-panel .inspector-sidebar-highlighted:hover {\n  background-color: rgba(181, 219, 156, 0.5) !important;\n}\n.inspector-panel .inspector-sidebar-highlighted.active {\n  background-color: #B5DB9C !important;\n}\n.inspector-panel .inspector-sidebar-highlighted.active:hover {\n  background-color: rgba(181, 219, 156, 0.5) !important;\n}\n.inspector-panel .inspector-field-key {\n  color: #1F61A0;\n}\n.inspector-panel .inspector-value-string {\n  color: #D64292;\n}\n.inspector-panel .inspector-value-number {\n  color: #2882F9;\n}\n.inspector-panel .inspector-typename {\n  color: #8B2BB9;\n}\n',""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){return o.default.createElement("svg",{version:"1.1",x:"0px",y:"0px",width:"200px",height:"200px",viewBox:"0 0 200 200",enableBackground:"new 0 0 200 200"},o.default.createElement("g",{id:"apollo_icon"},o.default.createElement("polygon",{fill:"#FFFFFF",points:"112.424,48.743 88.181,48.743 53.178,139.591 75.105,139.591 80.826,124.198 113.902,124.198 107.913,107.174 86.139,107.174 100.303,68.083 125.502,139.591 147.43,139.591"}),o.default.createElement("path",{fill:"#FFFFFF",d:"M196.313,73.037c-0.059-0.31-0.143-0.61-0.256-0.897c-0.027-0.1-0.12-0.285-0.12-0.285 c-0.789-1.718-2.523-2.914-4.538-2.914c-2.762,0-5,2.239-5,5c0,0.562,0.098,1.1,0.268,1.603l-0.014,0.005 c2.206,7.857,3.346,16.065,3.346,24.451c0,24.039-9.362,46.641-26.359,63.64c-16.999,17-39.6,26.36-63.64,26.36 c-24.039,0-46.642-9.362-63.639-26.36C19.36,146.641,10,124.039,10,100c0-24.04,9.362-46.641,26.361-63.64 C53.358,19.36,75.961,10,100,10c21.466,0,41.781,7.47,57.987,21.173c-0.544,1.386-0.848,2.894-0.848,4.474 c0,6.751,5.472,12.221,12.224,12.221c6.75,0,12.223-5.47,12.223-12.221s-5.473-12.224-12.223-12.224 c-1.473,0-2.884,0.26-4.192,0.737C147.666,9.106,124.9-0.001,100-0.001C44.771-0.001,0,44.771,0,100s44.771,100.001,100,100.001 c55.229,0,100-44.771,100-100.001C200,90.658,198.709,81.616,196.313,73.037z"})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){return o.default.createElement("svg",{version:"1.1",width:"32",height:"32",viewBox:"0 0 32 32"},o.default.createElement("path",{fill:"#FFF",d:"M28.751 3.996h-25.5c-0.69 0-1.25 0.56-1.25 1.25v21.5c0 0.69 0.56 1.25 1.25 1.25h9.893c0.035 0.003 0.071 0.005 0.107 0.005s0.072-0.002 0.107-0.005h15.393c0.69 0 1.25-0.56 1.25-1.25v-21.5c0-0.69-0.56-1.25-1.25-1.25zM4.501 6.496h7.5v19h-7.5v-19zM27.501 25.496h-13v-19h13v19z"}),o.default.createElement("path",{fill:"#FFF",d:"M7.21 10.001h2.075c0.552 0 1-0.448 1-1s-0.448-1-1-1h-2.075c-0.552 0-1 0.448-1 1s0.448 1 1 1z"}),o.default.createElement("path",{fill:"#FFF",d:"M7.21 14.001h2.075c0.552 0 1-0.448 1-1s-0.448-1-1-1h-2.075c-0.552 0-1 0.448-1 1s0.448 1 1 1z"}),o.default.createElement("path",{fill:"#FFF",d:"M7.21 18.001h2.075c0.552 0 1-0.448 1-1s-0.448-1-1-1h-2.075c-0.552 0-1 0.448-1 1s0.448 1 1 1z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){return o.default.createElement("svg",{version:"1.1",width:"32",height:"32",viewBox:"0 0 32 32"},o.default.createElement("path",{fill:"#FFF",d:"M27.998 6.918c-0.107-2.729-5.437-4.927-11.997-4.927s-11.891 2.199-11.997 4.927h-0.003v18.073c0 2.767 5.372 5.011 12 5.011s12-2.243 12-5.011v-18.073h-0.003zM24.95 13.456c-0.488 0.356-1.178 0.698-1.996 0.991-1.906 0.68-4.375 1.055-6.953 1.055s-5.047-0.375-6.953-1.055c-0.819-0.292-1.509-0.635-1.996-0.991-0.272-0.198-0.426-0.363-0.504-0.465v-2.903c2.197 1.171 5.614 1.924 9.453 1.924s7.257-0.753 9.453-1.924v2.903c-0.077 0.102-0.232 0.266-0.504 0.465zM25.454 16.077v2.914c-0.077 0.102-0.232 0.266-0.504 0.465-0.488 0.356-1.178 0.698-1.996 0.991-1.906 0.68-4.375 1.055-6.953 1.055s-5.047-0.375-6.953-1.055c-0.819-0.292-1.509-0.635-1.996-0.991-0.272-0.198-0.426-0.363-0.504-0.465v-2.914c2.197 1.171 5.614 1.924 9.453 1.924s7.257-0.753 9.453-1.924zM7.052 6.536c0.487-0.356 1.178-0.698 1.996-0.99 1.906-0.68 4.375-1.055 6.953-1.055s5.047 0.375 6.953 1.055c0.819 0.292 1.509 0.635 1.996 0.99 0.272 0.199 0.426 0.363 0.504 0.465v0.001c-0.077 0.102-0.232 0.266-0.504 0.465-0.488 0.356-1.178 0.698-1.996 0.99-1.906 0.68-4.375 1.055-6.953 1.055s-5.047-0.375-6.953-1.055c-0.819-0.292-1.509-0.635-1.996-0.99-0.272-0.199-0.426-0.363-0.504-0.465v-0.001c0.077-0.102 0.232-0.266 0.504-0.465zM24.95 25.456c-0.488 0.356-1.178 0.698-1.996 0.991-1.906 0.68-4.375 1.055-6.953 1.055s-5.047-0.375-6.953-1.055c-0.819-0.292-1.509-0.635-1.996-0.991-0.272-0.199-0.427-0.363-0.504-0.465h0v-2.913c2.197 1.171 5.614 1.924 9.453 1.924s7.257-0.753 9.453-1.924v2.913h0c-0.077 0.102-0.232 0.266-0.504 0.465z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){return o.default.createElement("svg",{version:"1.1",width:"32",height:"32",viewBox:"0 0 32 32"},o.default.createElement("path",{fill:"#FFF",d:"M30 7.25c0 0.69-0.56 1.25-1.25 1.25h-25.5c-0.69 0-1.25-0.56-1.25-1.25v0c0-0.69 0.56-1.25 1.25-1.25h25.5c0.69 0 1.25 0.56 1.25 1.25v0zM24 13c0 0.69-0.56 1.25-1.25 1.25h-19.5c-0.69 0-1.25-0.56-1.25-1.25v0c0-0.69 0.56-1.25 1.25-1.25h19.5c0.69 0 1.25 0.56 1.25 1.25v0zM26 19c0 0.69-0.56 1.25-1.25 1.25h-21.5c-0.69 0-1.25-0.56-1.25-1.25v0c0-0.69 0.56-1.25 1.25-1.25h21.5c0.69 0 1.25 0.56 1.25 1.25v0zM18 24.75c0 0.69-0.56 1.25-1.25 1.25h-13.5c-0.69 0-1.25-0.56-1.25-1.25v0c0-0.69 0.56-1.25 1.25-1.25h13.5c0.69 0 1.25 0.56 1.25 1.25v0z"}))}},function(e,t,n){var r=n(400);"string"==typeof r&&(r=[[e.i,r,""]]);n(30)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(29)()).push([e.i,'* {\n  box-sizing: border-box;\n}\nhtml,\nbody,\n#devtools {\n  height: 100%;\n  width: 100%;\n  padding: 0;\n  margin: 0;\n  font-size: 12px;\n  color: #333333;\n  overflow: hidden;\n}\nh1,\nh2,\nh4 {\n  font-family: "Open Sans", Helvetica, sans-serif;\n  font-weight: 600;\n  line-height: 1;\n}\nh4 {\n  margin-bottom: 0;\n  margin-top: 0;\n  font-weight: 600;\n}\nh1 {\n  font-size: 2.5em;\n}\nh3,\np {\n  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;\n  line-height: 140%;\n}\nh3 {\n  font-weight: 400;\n  font-size: 16px;\n}\n.sidebar {\n  position: relative;\n  overflow-y: scroll;\n  overflow-x: hidden;\n}\n.sidebar .dragger {\n  position: absolute;\n  height: 100%;\n  width: 4px;\n  right: 0;\n  cursor: ew-resize;\n  background-color: transparent;\n}\n.apollo-client-panel {\n  display: flex;\n  height: 100%;\n}\n.apollo-client-panel.in-window {\n  position: fixed;\n  left: 0;\n  bottom: 0;\n  top: 0;\n  right: 0;\n  background-color: white;\n}\n.apollo-client-panel .body {\n  flex: 1;\n}\n.apollo-client-panel .tabs {\n  background-image: linear-gradient(179deg, #2c2f39 2%, #363944 14%, #32353d 100%);\n  color: "#fff";\n  flex: none;\n  text-align: center;\n  width: 55px;\n  overflow-y: auto;\n}\n.apollo-client-panel .tabs .docs-link {\n  position: absolute;\n  bottom: 5px;\n  font-size: 10px;\n  display: block;\n  width: 100%;\n  text-align: center;\n  color: #FFF;\n  cursor: pointer;\n  text-decoration: none;\n}\n.apollo-client-panel .tabs .docs-link:hover {\n  text-decoration: underline;\n  color: rgba(255, 255, 255, 0.8);\n}\n.apollo-client-panel .tabs .tab {\n  cursor: pointer;\n  color: #FFF;\n  font-size: 8px;\n  padding: 8px;\n}\n.apollo-client-panel .tabs .tab:last-of-type {\n  margin-bottom: 10px;\n}\n.apollo-client-panel .tabs .tab svg {\n  display: inline-block;\n  width: 40%;\n  max-width: 50px;\n  min-width: 20px;\n  height: 30px;\n  vertical-align: top;\n}\n.apollo-client-panel .tabs .tab.logo-tab {\n  background-color: #22a699;\n  background-color: #21232b;\n  cursor: default;\n  font-size: 0;\n}\n.apollo-client-panel .tabs .tab.logo-tab svg {\n  width: 100%;\n}\n.apollo-client-panel .tabs .tab.logo-tab:hover {\n  color: #FFF;\n}\n.apollo-client-panel .tabs .tab.logo-tab:hover path,\n.apollo-client-panel .tabs .tab.logo-tab:hover rect {\n  fill: #FFF;\n}\n.apollo-client-panel .tabs .tab.active {\n  color: #2bd0c0;\n  position: relative;\n}\n.apollo-client-panel .tabs .tab.active path,\n.apollo-client-panel .tabs .tab.active rect {\n  fill: #2bd0c0;\n}\n.apollo-client-panel .tabs .tab.active:before {\n  content: "";\n  background-color: #22a699;\n  height: 5px;\n  width: 5px;\n  position: absolute;\n  border-radius: 5px;\n  left: -2.5px;\n  top: calc(50% - 2.5px);\n}\n.apollo-client-panel .tabs .tab.active:hover {\n  color: #22a699;\n}\n.apollo-client-panel .tabs .tab.active:hover path,\n.apollo-client-panel .tabs .tab.active:hover rect {\n  fill: #22a699;\n}\n.apollo-client-panel .tabs .tab:hover {\n  color: rgba(255, 255, 255, 0.8);\n}\n.apollo-client-panel .tabs .tab:hover path,\n.apollo-client-panel .tabs .tab:hover rect {\n  fill: rgba(255, 255, 255, 0.8);\n}\n.apollo-client-panel.dark .tabs {\n  background-color: #2a2a2a;\n  border-bottom: 1px solid #ccc;\n}\n',""])}]);