mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
2 lines
663 KiB
JavaScript
2 lines
663 KiB
JavaScript
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).GraphiQL=e()}}(function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),a=d(e("prop-types")),s=e("graphql"),u=d(e("./DocExplorer/FieldDoc")),l=d(e("./DocExplorer/SchemaDoc")),c=d(e("./DocExplorer/SearchBox")),f=d(e("./DocExplorer/SearchResults")),p=d(e("./DocExplorer/TypeDoc"));function d(e){return e&&e.__esModule?e:{default:e}}var h={name:"Schema",title:"Documentation Explorer"};(n.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(l.default,{schema:e,onClickType:this.handleClickTypeOrField}):(0,s.isType)(n.def)?o.default.createElement(p.default,{schema:e,type:n.def,onClickType:this.handleClickTypeOrField,onClickField:this.handleClickTypeOrField}):o.default.createElement(u.default,{field:n.def,onClickType:this.handleClickTypeOrField}):o.default.createElement("div",{className:"error-container"},"No Schema Available");var i=1===t.length||(0,s.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(s.GraphQLSchema)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./DocExplorer/FieldDoc":4,"./DocExplorer/SchemaDoc":6,"./DocExplorer/SearchBox":7,"./DocExplorer/SearchResults":8,"./DocExplorer/TypeDoc":9,graphql:95,"prop-types":233}],2:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=u;var r=s("undefined"!=typeof window?window.React:void 0!==t?t.React:null),i=s(e("prop-types")),o=s(e("./TypeLink")),a=s(e("./DefaultValue"));function s(e){return e&&e.__esModule?e:{default:e}}function u(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}))}u.propTypes={arg:i.default.object.isRequired,onClickType:i.default.func.isRequired,showDefaultValue:i.default.bool}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./DefaultValue":3,"./TypeLink":10,"prop-types":233}],3:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var r=a("undefined"!=typeof window?window.React:void 0!==t?t.React:null),i=a(e("prop-types")),o=e("graphql");function a(e){return e&&e.__esModule?e:{default:e}}function s(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}s.propTypes={field:i.default.object.isRequired}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{graphql:95,"prop-types":233}],4:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=l(e("prop-types")),a=l(e("./Argument")),s=l(e("./MarkdownContent")),u=l(e("./TypeLink"));function l(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(s.default,{className:"doc-value-description",markdown:t.description}))}))),i.default.createElement("div",null,i.default.createElement(s.default,{className:"doc-type-description",markdown:t.description||"No Description"}),t.deprecationReason&&i.default.createElement(s.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(u.default,{type:t.type,onClick:this.props.onClickType})),n)}}]),t}();c.propTypes={field:o.default.object,onClickType:o.default.func},n.default=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Argument":2,"./MarkdownContent":5,"./TypeLink":10,"prop-types":233}],5:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}var s=new(a(e("markdown-it")).default),u=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:s.render(e)}}):i.default.createElement("div",null)}}]),t}();u.propTypes={markdown:o.default.string,className:o.default.string},n.default=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"markdown-it":172,"prop-types":233}],6:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=u(e("prop-types")),a=u(e("./TypeLink")),s=u(e("./MarkdownContent"));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.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(s.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}();l.propTypes={schema:o.default.object,onClickType:o.default.func},n.default=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./MarkdownContent":5,"./TypeLink":10,"prop-types":233}],7:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=s(e("prop-types")),a=s(e("../../utility/debounce"));function s(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));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}();u.propTypes={value:o.default.string,placeholder:o.default.string,onSearch:o.default.func},n.default=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utility/debounce":26,"prop-types":233}],8:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=u(e("prop-types")),a=u(e("./Argument")),s=u(e("./TypeLink"));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.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,u=[],l=[],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,g=void 0;try{for(var v,y=function(){var n=v.value;if(u.length+l.length+f.length>=100)return"break";var d=p[n];if(t!==d&&c(n,e)&&l.push(i.default.createElement("div",{className:"doc-category-item",key:n},i.default.createElement(s.default,{type:d,onClick:r}))),d.getFields){var h=d.getFields();Object.keys(h).forEach(function(l){var p=h[l],m=void 0;if(!c(l,e)){if(!p.args||!p.args.length)return;if(0===(m=p.args.filter(function(t){return c(t.name,e)})).length)return}var g=i.default.createElement("div",{className:"doc-category-item",key:n+"."+l},t!==d&&[i.default.createElement(s.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?u.push(g):f.push(g)})}},b=d[Symbol.iterator]();!(h=(v=b.next()).done);h=!0){if("break"===y())break}}catch(e){m=!0,g=e}finally{try{!h&&b.return&&b.return()}finally{if(m)throw g}}return u.length+l.length+f.length===0?i.default.createElement("span",{className:"doc-alert-text"},"No results found."):t&&l.length+f.length>0?i.default.createElement("div",null,u,i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"other results"),l,f)):i.default.createElement("div",null,u,l,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())}}l.propTypes={schema:o.default.object,withinType:o.default.object,searchValue:o.default.string,onClickType:o.default.func,onClickField:o.default.func},n.default=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Argument":2,"./TypeLink":10,"prop-types":233}],9:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=f(e("prop-types")),a=e("graphql"),s=f(e("./Argument")),u=f(e("./MarkdownContent")),l=f(e("./TypeLink")),c=f(e("./DefaultValue"));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,s=void 0;t instanceof a.GraphQLUnionType?(o="possible types",s=e.getPossibleTypes(t)):t instanceof a.GraphQLInterfaceType?(o="implementations",s=e.getPossibleTypes(t)):t instanceof a.GraphQLObjectType&&(o="implements",s=t.getInterfaces());var c=void 0;s&&s.length>0&&(c=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},o),s.map(function(e){return i.default.createElement("div",{key:e.name,className:"doc-category-item"},i.default.createElement(l.default,{type:e,onClick:n}))})));var f=void 0,p=void 0;if(t.getFields){var m=t.getFields(),g=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"),g.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 v=g.filter(function(e){return e.isDeprecated});v.length>0&&(p=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?v.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 T=t.getValues();y=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"values"),T.filter(function(e){return!e.isDeprecated}).map(function(e){return i.default.createElement(h,{key:e.name,value:e})}));var _=T.filter(function(e){return e.isDeprecated});_.length>0&&(b=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?_.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(u.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(s.default,{key:e.name,arg:e,onClickType:r})})),")"],": ",i.default.createElement(l.default,{type:n.type,onClick:r}),i.default.createElement(c.default,{field:n}),n.description&&i.default.createElement(u.default,{className:"field-short-description",markdown:n.description}),n.deprecationReason&&i.default.createElement(u.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(u.default,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&i.default.createElement(u.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},n.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}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Argument":2,"./DefaultValue":3,"./MarkdownContent":5,"./TypeLink":10,graphql:95,"prop-types":233}],10:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=s(e("prop-types")),a=e("graphql");function s(e){return e&&e.__esModule?e:{default:e}}var u=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}();u.propTypes={type:o.default.object,onClick:o.default.func},n.default=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{graphql:95,"prop-types":233}],11:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}(n.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 s=void 0;!this.props.isRunning&&r||(s=this._onClick);var u=void 0;this.props.isRunning||!r||n||(u=this._onOptionsOpen);var l=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:u,onClick:s,title:"Execute Query (Ctrl-Enter)"},i.default.createElement("svg",{width:"34",height:"34"},l)),o)}}]),t}()).propTypes={onRun:o.default.func,onStop:o.default.func,isRunning:o.default.bool,operations:o.default.array}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"prop-types":233}],12:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),s=N(e("prop-types")),u=N("undefined"!=typeof window?window.ReactDOM:void 0!==t?t.ReactDOM:null),l=e("graphql"),c=e("./ExecuteButton"),f=e("./ToolbarButton"),p=e("./ToolbarGroup"),d=e("./ToolbarMenu"),h=e("./ToolbarSelect"),m=e("./QueryEditor"),g=e("./VariableEditor"),v=e("./ResultViewer"),y=e("./DocExplorer"),b=e("./QueryHistory"),T=N(e("../utility/CodeMirrorSizer")),_=N(e("../utility/StorageAPI")),w=N(e("../utility/getQueryFacts")),k=N(e("../utility/getSelectedOperationName")),E=N(e("../utility/debounce")),O=N(e("../utility/find")),S=e("../utility/fillLeafs"),L=e("../utility/elementPosition"),C=e("../utility/introspectionQueries");function N(e){return e&&e.__esModule?e:{default:e}}var x=350,D=n.GraphiQL=function(e){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 _.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,w.default)(e.schema,o),s=void 0!==e.variables?e.variables:t._storage.get("variables"),u=void 0!==e.operationName?e.operationName:(0,k.default)(null,t._storage.get("operationName"),a&&a.operations);return t.state=i({schema:e.schema,query:o,variables:s,operationName:u,response:e.response,editorFlex:Number(t._storage.get("editorFlex"))||1,variableEditorOpen:Boolean(s),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"))||x,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 T.default,t.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 s=this._updateQueryFacts(r,o,this.state.operations,n);void 0!==s&&(o=s.operationName,this.setState(s))}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,O.default)(t,function(e){return e.type===n.Logo})||a.default.createElement(n.Logo,null),i=(0,O.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,O.default)(t,function(e){return e.type===n.Footer}),s={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},u={display:this.state.docExplorerOpen?"block":"none",width:this.state.docExplorerWidth},l="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:s},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},"Variables"),a.default.createElement(g.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(v.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:l,style:u},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,S.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 s=i;t.forEach(function(e){var t=e.index,n=e.string;t<i&&(s+=n.length)}),r.setCursor(r.posFromIndex(s))})}return n}},{key:"_fetchSchema",value:function(){var e=this,t=this.props.fetcher,n=j(t({query:C.introspectionQuery}));F(n)?n.then(function(e){if(e.data)return e;var r=j(t({query:C.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,l.buildClientSchema)(t.data),r=(0,w.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,s=null;try{s=t&&""!==t.trim()?JSON.parse(t):null}catch(e){throw new Error("Variables are invalid JSON: "+e.message+".")}if("object"!==(void 0===s?"undefined":r(s)))throw new Error("Variables are not a JSON object.");var u=a({query:e,variables:s,operationName:n});if(!F(u)){if(M(u))return u.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.")}u.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=u.default.findDOMNode(this.resultComponent);t;){if(t===n)return!0;t=t.parentNode}return!1}}]),n}();D.propTypes={fetcher:s.default.func.isRequired,schema:s.default.instanceOf(l.GraphQLSchema),query:s.default.string,variables:s.default.string,operationName:s.default.string,response:s.default.string,storage:s.default.shape({getItem:s.default.func,setItem:s.default.func,removeItem:s.default.func}),defaultQuery:s.default.string,onEditQuery:s.default.func,onEditVariables:s.default.func,onEditOperationName:s.default.func,onToggleDocs:s.default.func,getDefaultFieldNames:s.default.func,editorTheme:s.default.string,onToggleHistory:s.default.func,ResultsTooltip:s.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,l.print)((0,l.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,w.default)(o,t);if(a){var s=(0,k.default)(r,n,a.operations),u=e.props.onEditOperationName;return u&&n!==s&&u(s),i({operationName:s},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,L.getLeft)(t.target),r=function(t){if(0===t.buttons)return i();var r=u.default.findDOMNode(e.editorBarComponent),o=t.clientX-(0,L.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,L.getLeft)(t.target),i=function(t){if(0===t.buttons)return o();var n=u.default.findDOMNode(e),i=t.clientX-(0,L.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:x})},this.handleVariableResizeStart=function(t){t.preventDefault();var n=!1,r=e.state.variableEditorOpen,i=e.state.variableEditorHeight,o=t.clientY-(0,L.getTop)(t.target),a=function(t){if(0===t.buttons)return s();n=!0;var r=u.default.findDOMNode(e.editorBarComponent),a=t.clientY-(0,L.getTop)(r)-o,l=r.clientHeight-a;l<60?e.setState({variableEditorOpen:!1,variableEditorHeight:i}):e.setState({variableEditorOpen:!0,variableEditorHeight:l})},s=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",s),a=null,s=null});document.addEventListener("mousemove",a),document.addEventListener("mouseup",s)}};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=g.VariableEditor,D.ResultViewer=v.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(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utility/CodeMirrorSizer":23,"../utility/StorageAPI":25,"../utility/debounce":26,"../utility/elementPosition":27,"../utility/fillLeafs":28,"../utility/find":29,"../utility/getQueryFacts":30,"../utility/getSelectedOperationName":31,"../utility/introspectionQueries":32,"./DocExplorer":1,"./ExecuteButton":11,"./QueryEditor":14,"./QueryHistory":15,"./ResultViewer":16,"./ToolbarButton":17,"./ToolbarGroup":18,"./ToolbarMenu":19,"./ToolbarSelect":20,"./VariableEditor":21,graphql:95,"prop-types":233}],13:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}var s=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}();s.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},n.default=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"prop-types":233}],14:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=c(e("prop-types")),a=e("graphql"),s=c(e("markdown-it")),u=e("../utility/normalizeWhitespace"),l=c(e("../utility/onHasCompletion"));function c(e){return e&&e.__esModule?e:{default:e}}var f=new s.default,p=/^[a-zA-Z0-9_@(]$/;(n.QueryEditor=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));return t._onKeyUp=function(e,n){p.test(n.key)&&t.editor.execCommand("autocomplete")},t._onEdit=function(){t.ignoreChangeEvent||(t.cachedValue=t.editor.getValue(),t.props.onEdit&&t.props.onEdit(t.cachedValue))},t._onHasCompletion=function(e,n){(0,l.default)(e,n,t.props.onHintInformationRender)},t.cachedValue=e.value||"",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,i.default.Component),r(n,[{key:"componentDidMount",value:function(){var t=this,n=e("codemirror");e("codemirror/addon/hint/show-hint"),e("codemirror/addon/comment/comment"),e("codemirror/addon/edit/matchbrackets"),e("codemirror/addon/edit/closebrackets"),e("codemirror/addon/fold/foldgutter"),e("codemirror/addon/fold/brace-fold"),e("codemirror/addon/search/search"),e("codemirror/addon/search/searchcursor"),e("codemirror/addon/search/jump-to-line"),e("codemirror/addon/dialog/dialog"),e("codemirror/addon/lint/lint"),e("codemirror/keymap/sublime"),e("codemirror-graphql/hint"),e("codemirror-graphql/lint"),e("codemirror-graphql/info"),e("codemirror-graphql/jump"),e("codemirror-graphql/mode"),this.editor=n(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(e){return t.props.onClickReference(e)}},jump:{schema:this.props.schema,onClick:function(e){return t.props.onClickReference(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":function(){return t.editor.showHint({completeSingle:!0})},"Ctrl-Space":function(){return t.editor.showHint({completeSingle:!0})},"Alt-Space":function(){return t.editor.showHint({completeSingle:!0})},"Shift-Space":function(){return t.editor.showHint({completeSingle:!0})},"Cmd-Enter":function(){t.props.onRunQuery&&t.props.onRunQuery()},"Ctrl-Enter":function(){t.props.onRunQuery&&t.props.onRunQuery()},"Shift-Ctrl-P":function(){t.props.onPrettifyQuery&&t.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(t){var n=e("codemirror");this.ignoreChangeEvent=!0,this.props.schema!==t.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,n.signal(this.editor,"change",this.editor)),this.props.value!==t.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(u.normalizeWhitespace);t.update(t.from,t.to,n)}}}]),n}()).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}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utility/normalizeWhitespace":33,"../utility/onHasCompletion":34,codemirror:65,"codemirror-graphql/hint":36,"codemirror-graphql/info":37,"codemirror-graphql/jump":38,"codemirror-graphql/lint":39,"codemirror-graphql/mode":40,"codemirror/addon/comment/comment":52,"codemirror/addon/dialog/dialog":53,"codemirror/addon/edit/closebrackets":54,"codemirror/addon/edit/matchbrackets":55,"codemirror/addon/fold/brace-fold":56,"codemirror/addon/fold/foldgutter":58,"codemirror/addon/hint/show-hint":59,"codemirror/addon/lint/lint":60,"codemirror/addon/search/jump-to-line":61,"codemirror/addon/search/search":62,"codemirror/addon/search/searchcursor":63,"codemirror/keymap/sublime":64,graphql:95,"markdown-it":172,"prop-types":233}],15:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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=e("graphql"),a=c("undefined"!=typeof window?window.React:void 0!==t?t.React:null),s=c(e("prop-types")),u=c(e("../utility/QueryStore")),l=c(e("./HistoryQuery"));function c(e){return e&&e.__esModule?e:{default:e}}(n.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 u.default("queries",e.storage),n.favoriteStore=new u.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(l.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:s.default.string,variables:s.default.string,operationName:s.default.string,queryID:s.default.number,onSelectQuery:s.default.func,storage:s.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,s=e.favoriteStore.items,u=a.concat(s);e.setState({queries:u})}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utility/QueryStore":24,"./HistoryQuery":13,graphql:95,"prop-types":233}],16:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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=s("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=s("undefined"!=typeof window?window.ReactDOM:void 0!==t?t.ReactDOM:null),a=s(e("prop-types"));function s(e){return e&&e.__esModule?e:{default:e}}(n.ResultViewer=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,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,(n.__proto__||Object.getPrototypeOf(n)).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)}(n,i.default.Component),r(n,[{key:"componentDidMount",value:function(){var t=this,n=e("codemirror");if(e("codemirror/addon/fold/foldgutter"),e("codemirror/addon/fold/brace-fold"),e("codemirror/addon/dialog/dialog"),e("codemirror/addon/search/search"),e("codemirror/addon/search/searchcursor"),e("codemirror/addon/search/jump-to-line"),e("codemirror/keymap/sublime"),e("codemirror-graphql/results/mode"),this.props.ResultsTooltip){e("codemirror-graphql/utils/info-addon");var r=document.createElement("div");n.registerHelper("info","graphql-results",function(e,n,a,s){var u=t.props.ResultsTooltip;return o.default.render(i.default.createElement(u,{pos:s}),r),r})}this.viewer=n(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}}]),n}()).propTypes={value:a.default.string,editorTheme:a.default.string,ResultsTooltip:a.default.any}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{codemirror:65,"codemirror-graphql/results/mode":41,"codemirror-graphql/utils/info-addon":46,"codemirror/addon/dialog/dialog":53,"codemirror/addon/fold/brace-fold":56,"codemirror/addon/fold/foldgutter":58,"codemirror/addon/search/jump-to-line":61,"codemirror/addon/search/search":62,"codemirror/addon/search/searchcursor":63,"codemirror/keymap/sublime":64,"prop-types":233}],17:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){e.preventDefault()}(n.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:s,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}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"prop-types":233}],18:[function(e,t,n){(function(e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ToolbarGroup=function(e){var t=e.children;return i.default.createElement("div",{className:"toolbar-button-group"},t)};var t,r="undefined"!=typeof window?window.React:void 0!==e?e.React:null,i=(t=r)&&t.__esModule?t:{default:t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],19:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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}}();n.ToolbarMenuItem=s;var i=a("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}function s(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:u,onMouseUp:t,title:n},r)}function u(e){e.preventDefault()}(n.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){u(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:u,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&&(u(e),this.setState({visible:!1}),this._release())}}]),t}()).propTypes={title:o.default.string,label:o.default.string},s.propTypes={onSelect:o.default.func,title:o.default.string,label:o.default.string}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"prop-types":233}],20:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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}}();n.ToolbarSelectOption=u;var o=s("undefined"!=typeof window?window.React:void 0!==t?t.React:null),a=s(e("prop-types"));function s(e){return e&&e.__esModule?e:{default:e}}function u(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:l,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 l(e){e.preventDefault()}(n.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){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,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(u,r({},n.props,{onSelect:a}))});return o.default.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:l,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&&(l(e),this.setState({visible:!1}),this._release())}}]),t}()).propTypes={title:a.default.string,label:a.default.string,onSelect:a.default.func},u.propTypes={onSelect:a.default.func,selected:a.default.bool,label:a.default.string,value:a.default.any}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"prop-types":233}],21:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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=s("undefined"!=typeof window?window.React:void 0!==t?t.React:null),o=s(e("prop-types")),a=s(e("../utility/onHasCompletion"));function s(e){return e&&e.__esModule?e:{default:e}}(n.VariableEditor=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));return t._onKeyUp=function(e,n){var r=n.keyCode;(r>=65&&r<=90||!n.shiftKey&&r>=48&&r<=57||n.shiftKey&&189===r||n.shiftKey&&222===r)&&t.editor.execCommand("autocomplete")},t._onEdit=function(){t.ignoreChangeEvent||(t.cachedValue=t.editor.getValue(),t.props.onEdit&&t.props.onEdit(t.cachedValue))},t._onHasCompletion=function(e,n){(0,a.default)(e,n,t.props.onHintInformationRender)},t.cachedValue=e.value||"",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,i.default.Component),r(n,[{key:"componentDidMount",value:function(){var t=this,n=e("codemirror");e("codemirror/addon/hint/show-hint"),e("codemirror/addon/edit/matchbrackets"),e("codemirror/addon/edit/closebrackets"),e("codemirror/addon/fold/brace-fold"),e("codemirror/addon/fold/foldgutter"),e("codemirror/addon/lint/lint"),e("codemirror/addon/search/searchcursor"),e("codemirror/addon/search/jump-to-line"),e("codemirror/addon/dialog/dialog"),e("codemirror/keymap/sublime"),e("codemirror-graphql/variables/hint"),e("codemirror-graphql/variables/lint"),e("codemirror-graphql/variables/mode"),this.editor=n(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 t.editor.showHint({completeSingle:!1})},"Ctrl-Space":function(){return t.editor.showHint({completeSingle:!1})},"Alt-Space":function(){return t.editor.showHint({completeSingle:!1})},"Shift-Space":function(){return t.editor.showHint({completeSingle:!1})},"Cmd-Enter":function(){t.props.onRunQuery&&t.props.onRunQuery()},"Ctrl-Enter":function(){t.props.onRunQuery&&t.props.onRunQuery()},"Shift-Ctrl-P":function(){t.props.onPrettifyQuery&&t.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(t){var n=e("codemirror");this.ignoreChangeEvent=!0,this.props.variableToType!==t.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,n.signal(this.editor,"change",this.editor)),this.props.value!==t.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}}]),n}()).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}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utility/onHasCompletion":34,codemirror:65,"codemirror-graphql/variables/hint":49,"codemirror-graphql/variables/lint":50,"codemirror-graphql/variables/mode":51,"codemirror/addon/dialog/dialog":53,"codemirror/addon/edit/closebrackets":54,"codemirror/addon/edit/matchbrackets":55,"codemirror/addon/fold/brace-fold":56,"codemirror/addon/fold/foldgutter":58,"codemirror/addon/hint/show-hint":59,"codemirror/addon/lint/lint":60,"codemirror/addon/search/jump-to-line":61,"codemirror/addon/search/searchcursor":63,"codemirror/keymap/sublime":64,"prop-types":233}],22:[function(e,t,n){"use strict";t.exports=e("./components/GraphiQL").GraphiQL},{"./components/GraphiQL":12}],23:[function(e,t,n){"use strict";Object.defineProperty(n,"__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}();n.default=i},{}],24:[function(e,t,n){"use strict";Object.defineProperty(n,"__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}();n.default=i},{}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__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}();n.default=i},{}],26:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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)}}},{}],27:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getLeft=function(e){var t=0,n=e;for(;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t},n.getTop=function(e){var t=0,n=e;for(;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}},{}],28:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fillLeafs=function(e,t,n){var a=[];if(!e)return{insertions:a,result:t};var s=void 0;try{s=(0,r.parse)(t)}catch(e){return{insertions:a,result:t}}var u=n||i,l=new r.TypeInfo(e);return(0,r.visit)(s,{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);a.push({index:e.loc.end,string:" "+(0,r.print)(n).replace(/\n/g,"\n"+i)})}}}}),{insertions:a,result:o(t,a)}};var r=e("graphql");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 o(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)}},{graphql:95}],29:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},{}],30:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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}},n.collectVariables=i;var r=e("graphql");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}},{graphql:95}],31:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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]}},{}],32:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("graphql");Object.defineProperty(n,"introspectionQuery",{enumerable:!0,get:function(){return r.introspectionQuery}});n.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"},{graphql:95}],33:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.normalizeWhitespace=function(e){return e.replace(i," ")};var r=n.invalidCharacters=Array.from({length:11},function(e,t){return String.fromCharCode(8192+t)}).concat(["\u2028","\u2029"," "]),i=new RegExp("["+r.join("|")+"]","g")},{}],34:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,n,r){var o=e("codemirror"),s=void 0,u=void 0;o.on(n,"select",function(e,t){if(!s){var n=t.parentNode;(s=document.createElement("div")).className="CodeMirror-hint-information",n.appendChild(s),(u=document.createElement("div")).className="CodeMirror-hint-deprecation",n.appendChild(u);var o=void 0;n.addEventListener("DOMNodeRemoved",o=function(e){e.target===n&&(n.removeEventListener("DOMNodeRemoved",o),s=null,u=null,o=null)})}var l=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(s.innerHTML='<div class="content">'+("<p>"===l.slice(0,3)?"<p>"+c+l.slice(3):c+l)+"</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(s)})};var r,i=e("graphql"),o=e("markdown-it");var a=new((r=o)&&r.__esModule?r:{default:r}).default},{codemirror:65,graphql:95,"markdown-it":172}],35:[function(e,t,n){(function(n){"use strict";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 n.Buffer&&"function"==typeof n.Buffer.isBuffer?n.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=e("util/"),a=Object.prototype.hasOwnProperty,s=Array.prototype.slice,u="foo"===function(){}.name;function l(e){return Object.prototype.toString.call(e)}function c(e){return!i(e)&&("function"==typeof n.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var f=t.exports=v,p=/\s*function\s+([^\(\s]*)\s*/;function d(e){if(o.isFunction(e)){if(u)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(u||!o.isFunction(e))return o.inspect(e);var t=d(e);return"[Function"+(t?": "+t:"")+"]"}function g(e,t,n,r,i){throw new f.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function v(e,t){e||g(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)&&l(e)===l(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 u=(a=a||{actual:[],expected:[]}).actual.indexOf(e);return-1!==u&&u===a.expected.indexOf(t)||(a.actual.push(e),a.expected.push(t),function(e,t,n,r){if(null==e||null==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=s.call(e),t=s.call(t),y(e,t,n);var u,l,c=w(e),f=w(t);if(c.length!==f.length)return!1;for(c.sort(),f.sort(),l=c.length-1;l>=0;l--)if(c[l]!==f[l])return!1;for(l=c.length-1;l>=0;l--)if(u=c[l],!y(e[u],t[u],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 T(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 _(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&&g(i,n,"Missing expected exception"+r);var a="string"==typeof r,s=!e&&i&&!n;if((!e&&o.isError(i)&&a&&T(i,n)||s)&&g(i,n,"Got unwanted exception"+r),e&&i&&n&&!T(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||g;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 s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},o.inherits(f.AssertionError,Error),f.fail=g,f.ok=v,f.equal=function(e,t,n){e!=t&&g(e,t,n,"==",f.equal)},f.notEqual=function(e,t,n){e==t&&g(e,t,n,"!=",f.notEqual)},f.deepEqual=function(e,t,n){y(e,t,!1)||g(e,t,n,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,n){y(e,t,!0)||g(e,t,n,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,n){y(e,t,!1)&&g(e,t,n,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function e(t,n,r){y(t,n,!0)&&g(t,n,r,"notDeepStrictEqual",e)},f.strictEqual=function(e,t,n){e!==t&&g(e,t,n,"===",f.strictEqual)},f.notStrictEqual=function(e,t,n){e===t&&g(e,t,n,"!==",f.notStrictEqual)},f.throws=function(e,t,n){_(!0,e,t,n)},f.doesNotThrow=function(e,t,n){_(!1,e,t,n)},f.ifError=function(e){if(e)throw e};var w=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":244}],36:[function(e,t,n){"use strict";var r,i=e("codemirror"),o=(r=i)&&r.__esModule?r:{default:r},a=e("graphql-language-service-interface");o.default.registerHelper("hint","graphql",function(e,t){var n=t.schema;if(n){var r=e.getCursor(),i=e.getTokenAt(r),s=(0,a.getAutocompleteSuggestions)(n,e.getValue(),r,i),u=null!==i.type&&/"|\w/.test(i.string[0])?i.start:i.end,l={list:s.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:u},to:{line:r.line,column:i.end}};return l&&l.list&&l.list.length>0&&(l.from=o.default.Pos(l.from.line,l.from.column),l.to=o.default.Pos(l.to.line,l.to.column),o.default.signal(e,"hasCompletion",e,l,i)),l}})},{codemirror:65,"graphql-language-service-interface":76}],37:[function(e,t,n){"use strict";var r=e("graphql"),i=s(e("codemirror")),o=s(e("./utils/getTypeInfo")),a=e("./utils/SchemaReference");function s(e){return e&&e.__esModule?e:{default:e}}function u(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 l(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))}e("./utils/info-addon"),i.default.registerHelper("info","graphql",function(e,t){if(t.schema&&e.state){var n=e.state,r=n.kind,i=n.step,s=(0,o.default)(t.schema,e.state);if("Field"===r&&0===i&&s.fieldDef||"AliasedField"===r&&2===i&&s.fieldDef){var h=document.createElement("div");return function(e,t,n){u(e,t,n),c(e,t,n,t.type)}(h,s,t),p(h,t,s.fieldDef),h}if("Directive"===r&&1===i&&s.directiveDef){var m=document.createElement("div");return l(m,s,t),p(m,t,s.directiveDef),m}if("Argument"===r&&0===i&&s.argDef){var g=document.createElement("div");return function(e,t,n){t.directiveDef?l(e,t,n):t.fieldDef&&u(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,")")}(g,s,t),p(g,t,s.argDef),g}if("EnumValue"===r&&s.enumValue&&s.enumValue.description){var v=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))}(v,s,t),p(v,t,s.enumValue),v}if("NamedType"===r&&s.type&&s.type.description){var y=document.createElement("div");return f(y,s,t,s.type),p(y,t,s.type),y}}})},{"./utils/SchemaReference":42,"./utils/getTypeInfo":44,"./utils/info-addon":46,codemirror:65,graphql:95}],38:[function(e,t,n){"use strict";var r=a(e("codemirror")),i=a(e("./utils/getTypeInfo")),o=e("./utils/SchemaReference");function a(e){return e&&e.__esModule?e:{default:e}}e("./utils/jump-addon"),r.default.registerHelper("jump","graphql",function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,r=n.kind,a=n.step,s=(0,i.default)(t.schema,n);return"Field"===r&&0===a&&s.fieldDef||"AliasedField"===r&&2===a&&s.fieldDef?(0,o.getFieldReference)(s):"Directive"===r&&1===a&&s.directiveDef?(0,o.getDirectiveReference)(s):"Argument"===r&&0===a&&s.argDef?(0,o.getArgumentReference)(s):"EnumValue"===r&&s.enumValue?(0,o.getEnumValueReference)(s):"NamedType"===r&&s.type?(0,o.getTypeReference)(s):void 0}})},{"./utils/SchemaReference":42,"./utils/getTypeInfo":44,"./utils/jump-addon":48,codemirror:65}],39:[function(e,t,n){"use strict";var r,i=e("codemirror"),o=(r=i)&&r.__esModule?r:{default:r},a=e("graphql-language-service-interface");var s=["error","warning","information","hint"],u={"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:s[e.severity-1],type:u[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)}})})},{codemirror:65,"graphql-language-service-interface":76}],40:[function(e,t,n){"use strict";var r,i=e("codemirror"),o=(r=i)&&r.__esModule?r:{default:r},a=e("graphql-language-service-parser");function s(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:s,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}})},{codemirror:65,"graphql-language-service-parser":80}],41:[function(e,t,n){"use strict";var r,i=e("codemirror"),o=(r=i)&&r.__esModule?r:{default:r},a=e("graphql-language-service-parser");function s(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:u,parseRules:l,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});var u={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},l={Document:[(0,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"]}},{codemirror:65,"graphql-language-service-parser":80}],42:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},n.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},n.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}},n.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue,type:(0,r.getNamedType)(e.inputType)}},n.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}};var r=e("graphql");function i(e){return"__"===e.name.slice(0,2)}},{graphql:95}],43:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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])}},{}],44:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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,s.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?u(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&&u(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 s=(0,i.getNullableType)(n.inputType);n.inputType=s instanceof i.GraphQLList?s.ofType:null;break;case"ObjectValue":var l=(0,i.getNamedType)(n.inputType);n.objectFieldDefs=l instanceof i.GraphQLInputObjectType?l.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=e("graphql"),o=e("graphql/type/introspection"),a=e("./forEachState"),s=(r=a)&&r.__esModule?r:{default:r};function u(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}},{"./forEachState":43,graphql:95,"graphql/type/introspection":118}],45:[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,"")}function o(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 s=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+s),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var a=function(e,t){if(!t)return r(e,function(e){return!e.isDeprecated});return r(r(e.map(function(e){return{proximity:o(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(!a)return;var s=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:a,from:{line:e.line,column:s},to:{line:e.line,column:t.end}}}},{}],46:[function(e,t,n){"use strict";var r,i=e("codemirror"),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(l,a);var s=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(l,a)},u=function t(){o.default.off(document,"mousemove",s),o.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},l=function(){o.default.off(document,"mousemove",s),o.default.off(e.getWrapperElement(),"mouseout",u),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 s=i(a,r,e);s&&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),s=i.right-i.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),u=i.bottom-i.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),l=t.bottom;u>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(l=t.top-u);l<0&&(l=t.bottom);var c=Math.max(0,window.innerWidth-s-15);c>t.left&&(c=t.left);r.style.opacity=1,r.style.top=l+"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,s)}}}(e,i)};o.default.on(document,"mousemove",s),o.default.on(e.getWrapperElement(),"mouseout",u)}.bind(null,e),o.default.on(e.getWrapperElement(),"mouseover",i.onMouseOver)}})},{codemirror:65}],47:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){r=e,i=e.length,o=a=s=-1,v(),y();var t=c();return h("EOF"),t};var r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,u=void 0,l=void 0;function c(){var e=o,t=[];if(h("{"),!g("}")){do{t.push(f())}while(g(","));h("}")}return{kind:"Object",start:e,end:s,members:t}}function f(){var e=o,t="String"===l?d():null;h("String"),h(":");var n=p();return{kind:"Member",start:e,end:s,key:t,value:n}}function p(){switch(l){case"[":return function(){var e=o,t=[];if(h("["),!g("]")){do{t.push(p())}while(g(","));h("]")}return{kind:"Array",start:e,end:s,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:l,start:o,end:a,value:JSON.parse(r.slice(o,a))}}function h(e){if(l!==e){var t=void 0;if("EOF"===l)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 g(e){if(l===e)return y(),!0}function v(){a<i&&(u=++a===i?0:r.charCodeAt(a))}function y(){for(s=a;9===u||10===u||13===u||32===u;)v();if(0!==u){switch(o=a,u){case 34:return l="String",function(){v();for(;34!==u&&u>31;)if(92===u)switch(v(),u){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:v();break;case 117:v(),b(),b(),b(),b();break;default:throw m("Bad character escape sequence.")}else{if(a===i)throw m("Unterminated string.");v()}if(34===u)return void v();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 l="Number",function(){45===u&&v();48===u?v():T();46===u&&(v(),T());69!==u&&101!==u||(v(),43!==u&&45!==u||v(),T())}();case 102:if("false"!==r.slice(o,o+5))break;return a+=4,v(),void(l="Boolean");case 110:if("null"!==r.slice(o,o+4))break;return a+=3,v(),void(l="Null");case 116:if("true"!==r.slice(o,o+4))break;return a+=3,v(),void(l="Boolean")}l=r[o],v()}else l="EOF"}function b(){if(u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102)return v();throw m("Expected hexadecimal digit.")}function T(){if(u<48||u>57)throw m("Expected decimal digit.");do{v()}while(u>=48&&u<=57)}},{}],48:[function(e,t,n){"use strict";var r,i=e("codemirror"),o=(r=i)&&r.__esModule?r:{default:r};function a(e,t){var n=t.target||t.srcElement;if("SPAN"===n.nodeName){var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&c(e)}}function s(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&f(e):e.state.jump.cursor=null}function u(e,t){if(!e.state.jump.isHoldingModifier&&t.key===(l?"Meta":"Control")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&c(e);var n=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},r=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};o.default.on(document,"keyup",function i(a){a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&f(e),o.default.off(document,"keyup",i),o.default.off(document,"click",n),e.off("mousedown",r))}),o.default.on(document,"click",n),e.on("mousedown",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 l=e.state.jump={options:t,onMouseOver:a.bind(null,e),onMouseOut:s.bind(null,e),onKeyDown:u.bind(null,e)};o.default.on(e.getWrapperElement(),"mouseover",l.onMouseOver),o.default.on(e.getWrapperElement(),"mouseout",l.onMouseOut),o.default.on(document,"keydown",l.onKeyDown)}});var l=navigator&&-1!==navigator.appVersion.indexOf("Mac");function c(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){var a=o(r,i,e);if(a){var s=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=s,e.state.jump.destination=a}}}}function f(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},{codemirror:65}],49:[function(e,t,n){"use strict";var r=s(e("codemirror")),i=e("graphql"),o=s(e("../utils/forEachState")),a=s(e("../utils/hintList"));function s(e){return e&&e.__esModule?e:{default:e}}r.default.registerHelper("hint","graphql-variables",function(e,t){var n=e.getCursor(),s=e.getTokenAt(n),u=function(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,s=r.kind,u=r.step;if("Document"===s&&0===u)return(0,a.default)(e,t,[{text:"{"}]);var l=n.variableToType;if(!l)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}(l,t.state);if("Document"===s||"Variable"===s&&0===u){var f=Object.keys(l);return(0,a.default)(e,t,f.map(function(e){return{text:'"'+e+'": ',type:l[e]}}))}if(("ObjectValue"===s||"ObjectField"===s&&0===u)&&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"===s||"NumberValue"===s||"BooleanValue"===s||"NullValue"===s||"ListValue"===s&&1===u||"ObjectField"===s&&2===u||"Variable"===s&&2===u){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,s,t);return u&&u.list&&u.list.length>0&&(u.from=r.default.Pos(u.from.line,u.from.column),u.to=r.default.Pos(u.to.line,u.to.column),r.default.signal(e,"hasCompletion",e,u,s)),u})},{"../utils/forEachState":43,"../utils/hintList":45,codemirror:65,graphql:95}],50:[function(e,t,n){"use strict";var r=a(e("codemirror")),i=e("graphql"),o=a(e("../utils/jsonParse"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function u(e,t){return Array.prototype.concat.apply([],e.map(t))}r.default.registerHelper("lint","graphql-variables",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[s(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?u(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=u(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==(s=t.parseValue(n.value))||s!=s)?[[n,'Expected value of type "'+t+'".']]:[];var s}(a,n.value).forEach(function(t){var n=t[0],i=t[1];r.push(s(e,n,i))}):r.push(s(e,n.key,'Variable "$'+o+'" does not appear in any GraphQL query.'))}),r}(n,a,r):[]})},{"../utils/jsonParse":47,codemirror:65,graphql:95}],51:[function(e,t,n){"use strict";var r,i=e("codemirror"),o=(r=i)&&r.__esModule?r:{default:r},a=e("graphql-language-service-parser");function s(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:u,parseRules:l,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});var u={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},l={Document:[(0,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)}}}},{codemirror:65,"graphql-language-service-parser":80}],52:[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 s=i[a].from(),u=i[a].to();s.line>=n||(u.line>=n&&(u=r(n,0)),n=s.line,null==o?this.uncomment(s,u,e)?o="un":(this.lineComment(s,u,e),o="line"):"un"==o?this.uncomment(s,u,e):this.lineComment(s,u,e))}}),e.defineExtension("lineComment",function(e,a,s){s||(s=t);var u=this,l=o(u,e),c=u.getLine(e.line);if(null!=c&&(f=e,p=c,!/\bstring\b/.test(u.getTokenTypeAt(r(f.line,0)))||/^[\'\"\`]/.test(p))){var f,p,d=s.lineComment||l.lineComment;if(d){var h=Math.min(0!=a.ch||a.line==e.line?a.line+1:a.line,u.lastLine()+1),m=null==s.padding?" ":s.padding,g=s.commentBlankLines||e.line==a.line;u.operation(function(){if(s.indent){for(var t=null,o=e.line;o<h;++o){var a=(l=u.getLine(o)).slice(0,i(l));(null==t||t.length>a.length)&&(t=a)}for(o=e.line;o<h;++o){var l=u.getLine(o),c=t.length;(g||n.test(l))&&(l.slice(0,c)!=t&&(c=i(l)),u.replaceRange(t+d+m,r(o,0),r(o,c)))}}else for(o=e.line;o<h;++o)(g||n.test(u.getLine(o)))&&u.replaceRange(d+m,r(o,0))})}else(s.blockCommentStart||l.blockCommentStart)&&(s.fullLines=!0,u.blockComment(e,a,s))}}),e.defineExtension("blockComment",function(e,i,a){a||(a=t);var s=this,u=o(s,e),l=a.blockCommentStart||u.blockCommentStart,c=a.blockCommentEnd||u.blockCommentEnd;if(l&&c){if(!/\bcomment\b/.test(s.getTokenTypeAt(r(e.line,0)))){var f=Math.min(i.line,s.lastLine());f!=e.line&&0==i.ch&&n.test(s.getLine(f))&&--f;var p=null==a.padding?" ":a.padding;e.line>f||s.operation(function(){if(0!=a.fullLines){var t=n.test(s.getLine(f));s.replaceRange(p+c,r(f)),s.replaceRange(l+p,r(e.line,0));var o=a.blockCommentLead||u.blockCommentLead;if(null!=o)for(var d=e.line+1;d<=f;++d)(d!=f||t)&&s.replaceRange(o+p,r(d,0))}else s.replaceRange(c,i),s.replaceRange(l,e)})}}else(a.lineComment||u.lineComment)&&0!=a.fullLines&&s.lineComment(e,i,a)}),e.defineExtension("uncomment",function(e,i,a){a||(a=t);var s,u=this,l=o(u,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,u.lastLine()),f=Math.min(e.line,c),p=a.lineComment||l.lineComment,d=[],h=null==a.padding?" ":a.padding;e:if(p){for(var m=f;m<=c;++m){var g=u.getLine(m),v=g.indexOf(p);if(v>-1&&!/comment/.test(u.getTokenTypeAt(r(m,v+1)))&&(v=-1),-1==v&&n.test(g))break e;if(v>-1&&n.test(g.slice(0,v)))break e;d.push(g)}if(u.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),s=!0,u.replaceRange("",r(e,n),r(e,i)))}}),s)return!0}var y=a.blockCommentStart||l.blockCommentStart,b=a.blockCommentEnd||l.blockCommentEnd;if(!y||!b)return!1;var T=a.blockCommentLead||l.blockCommentLead,_=u.getLine(f),w=_.indexOf(y);if(-1==w)return!1;var k=c==f?_:u.getLine(c),E=k.indexOf(b,c==f?w+y.length:0);-1==E&&f!=c&&(k=u.getLine(--c),E=k.indexOf(b));var O=r(f,w+1),S=r(c,E+1);if(-1==E||!/comment/.test(u.getTokenTypeAt(O))||!/comment/.test(u.getTokenTypeAt(S))||u.getRange(O,S,"\n").indexOf(b)>-1)return!1;var L=_.lastIndexOf(y,e.ch),C=-1==L?-1:_.slice(0,e.ch).indexOf(b,L+y.length);if(-1!=L&&-1!=C&&C+b.length!=e.ch)return!1;C=k.indexOf(b,i.ch);var N=k.slice(i.ch).lastIndexOf(y,C-i.ch);return L=-1==C||-1==N?-1:i.ch+N,(-1==C||-1==L||L==i.ch)&&(u.operation(function(){u.replaceRange("",r(c,E-(h&&k.slice(E-h.length,E)==h?h.length:0)),r(c,E+b.length));var e=w+y.length;if(h&&_.slice(e,e+h.length)==h&&(e+=h.length),u.replaceRange("",r(f,w),r(f,e)),T)for(var t=f+1;t<=c;++t){var i=u.getLine(t),o=i.indexOf(T);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+T.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),u.replaceRange("",r(t,o),r(t,a))}}}),!0)})})("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":65}],53:[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),s=!1,u=this;function l(e){if("string"==typeof e)f.value=e;else{if(s)return;s=!0,a.parentNode.removeChild(a),u.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,l)}),o.onKeyUp&&e.on(f,"keyup",function(e){o.onKeyUp(e,f.value,l)}),e.on(f,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,l)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),l()),13==t.keyCode&&i(f.value,t))}),!1!==o.closeOnBlur&&e.on(f,"blur",l)):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",function(){l(),u.focus()}),!1!==o.closeOnBlur&&e.on(c,"blur",l),c.focus()),l}),e.defineExtension("openConfirm",function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),u=!1,l=this,c=1;function f(){u||(u=!0,a.parentNode.removeChild(a),l.focus())}s[0].focus();for(var p=0;p<s.length;++p){var d=s[p];!function(t){e.on(d,"click",function(n){e.e_preventDefault(n),f(),t&&t(l)})}(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,l);var o,a=t(this,r,i&&i.bottom),s=!1,u=i&&void 0!==i.duration?i.duration:5e3;function l(){s||(s=!0,clearTimeout(o),a.parentNode.removeChild(a))}return e.on(a,"click",function(t){e.e_preventDefault(t),l()}),u&&(o=setTimeout(l,u)),l})})("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":65}],54:[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,r){r&&r!=e.Init&&(t.removeKeyMap(o),t.state.closeBrackets=null),n&&(t.state.closeBrackets=n,t.addKeyMap(o))});for(var i=t.pairs+"`",o={Backspace:function(t){var i=u(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var l=c(t,a[s].head);if(!l||o.indexOf(l)%2!=0)return e.Pass}for(var s=a.length-1;s>=0;s--){var f=a[s].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 s=c(t,o[a].head);if(!s||i.indexOf(s)%2!=0)return e.Pass}t.operation(function(){t.replaceSelection("\n\n",null),t.execCommand("goCharLeft"),o=t.listSelections();for(var e=0;e<o.length;e++){var n=o[e].head.line;t.indentLine(n,null,!0),t.indentLine(n+1,null,!0)}})}},a=0;a<i.length;a++)o["'"+i.charAt(a)+"'"]=s(i.charAt(a));function s(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 c,d=r(o,"triples"),h=a.charAt(s+1)==i,m=t.listSelections(),g=s%2==0,v=0;v<m.length;v++){var y,b=m[v],T=b.head,_=t.getRange(T,n(T.line,T.ch+1));if(g&&!b.empty())y="surround";else if(!h&&g||_!=i)if(h&&T.ch>1&&d.indexOf(i)>=0&&t.getRange(n(T.line,T.ch-2),T)==i+i&&(T.ch<=2||t.getRange(n(T.line,T.ch-3),n(T.line,T.ch-2))!=i))y="addFour";else if(h){if(e.isWordChar(_)||!f(t,T,i))return e.Pass;y="both"}else{if(!g||t.getLine(T.line).length!=T.ch&&!l(_,a)&&!/\s/.test(_))return e.Pass;y="both"}else y=h&&p(t,T)?"both":d.indexOf(i)>=0&&t.getRange(T,n(T.line,T.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=y)return e.Pass}else c=y}var w=s%2?a.charAt(s-1):i,k=s%2?i:a.charAt(s+1);t.operation(function(){if("skip"==c)t.execCommand("goCharRight");else if("skipThree"==c)for(var r=0;r<3;r++)t.execCommand("goCharRight");else if("surround"==c){for(var i=t.getSelections(),r=0;r<i.length;r++)i[r]=w+i[r]+k;t.replaceSelections(i,"around"),i=t.listSelections().slice();for(var r=0;r<i.length;r++)i[r]=(o=i[r],a=void 0,a=e.cmpPos(o.anchor,o.head)>0,{anchor:new n(o.anchor.line,o.anchor.ch+(a?-1:1)),head:new n(o.head.line,o.head.ch+(a?1:-1))});t.setSelections(i)}else"both"==c?(t.replaceSelection(w+k,null),t.triggerElectric(w+k),t.execCommand("goCharLeft")):"addFour"==c&&(t.replaceSelection(w+w+w+w,"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 c(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 f(t,n,r){var i=t.getLine(n.line),o=t.getTokenAt(n);if(/\bstring2?\b/.test(o.type)||p(t,n))return!1;var a=new e.StringStream(i.slice(0,n.ch)+r+i.slice(n.ch),4);for(a.pos=a.start=o.start;;){var s=t.getMode().token(a,o.state);if(a.pos>=n.ch+1)return/\bstring2?\b/.test(s);a.start=a.pos}}function p(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch}})("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":65}],55:[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),s=t.ch-1,u=i&&i.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var l=!u&&s>=0&&r[a.text.charAt(s)]||r[a.text.charAt(++s)];if(!l)return null;var c=">"==l.charAt(1)?1:-1;if(i&&i.strict&&c>0!=(s==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,s+1)),p=o(e,n(t.line,s+(c>0?1:0)),c,f||null,i);return null==p?null:{from:n(t.line,s),to:p&&p.pos,match:p&&p.ch==l.charAt(0),forward:c>0}}function o(e,t,i,o,a){for(var s=a&&a.maxScanLineLength||1e4,u=a&&a.maxScanLines||1e3,l=[],c=a&&a.bracketRegex?a.bracketRegex:/[(){}[\]]/,f=i>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=i){var d=e.getLine(p);if(d){var h=i>0?0:d.length-1,m=i>0?d.length:-1;if(!(d.length>s))for(p==t.line&&(h=t.ch-(i<0?1:0));h!=m;h+=i){var g=d.charAt(h);if(c.test(g)&&(void 0===o||e.getTokenTypeAt(n(p,h+1))==o))if(">"==r[g].charAt(1)==i>0)l.push(g);else{if(!l.length)return{pos:n(p,h),ch:g};l.pop()}}}}return p-i!=(i>0?e.lastLine():e.firstLine())&&null}function a(e,r,o){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],u=e.listSelections(),l=0;l<u.length;l++){var c=u[l].empty()&&i(e,u[l].head,o);if(c&&e.getLine(c.from.line).length<=a){var f=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(c.from,n(c.from.line,c.from.ch+1),{className:f})),c.to&&e.getLine(c.to.line).length<=a&&s.push(e.markText(c.to,n(c.to.line,c.to.ch+1),{className:f}))}}if(s.length){t&&e.state.focused&&e.focus();var p=function(){e.operation(function(){for(var e=0;e<s.length;e++)s[e].clear()})};if(!r)return p;setTimeout(p,800)}}var s=null;function u(e){e.operation(function(){s&&(s(),s=null),s=a(e,!1,e.state.matchBrackets)})}e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",u),s&&(s(),s=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",u))}),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)})})("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":65}],56:[function(e,t,n){(function(e){"use strict";e.registerHelper("fold","brace",function(t,n){var r,i=n.line,o=t.getLine(i);function a(a){for(var s=n.ch,u=0;;){var l=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=l){if(1==u&&l<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(i,l+1)),!/^(comment|string)/.test(r))return l+1;s=l-1}else{if(1==u)break;u=1,s=o.length}}}var s="{",u="}",l=a("{");if(null==l&&(s="[",u="]",l=a("[")),null!=l){var c,f,p=1,d=t.lastLine();e:for(var h=i;h<=d;++h)for(var m=t.getLine(h),g=h==i?l:0;;){var v=m.indexOf(s,g),y=m.indexOf(u,g);if(v<0&&(v=m.length),y<0&&(y=m.length),(g=Math.min(v,y))==m.length)break;if(t.getTokenTypeAt(e.Pos(h,g+1))==r)if(g==v)++p;else if(!--p){c=h,f=g;break e}++g}if(null!=c&&(i!=c||f!=l))return{from:e.Pos(i,l),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 s=a.end;;){var u=r(s.line+1);if(null==u)break;s=u.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}}),e.registerHelper("fold","include",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;;){if(null==r(a+1))break;++a}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})})("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":65}],57:[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 s=r(t,i,"minFoldSize");function u(e){var r=a(t,n);if(!r||r.to.line-r.from.line<s)return null;for(var i=t.findMarksAt(r.from),u=0;u<i.length;++u)if(i[u].__isFold&&"fold"!==o){if(!e)return null;r.cleared=!0,i[u].clear()}return r}var l=u(!0);if(r(t,i,"scanUp"))for(;!l&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),l=u(!1);if(l&&!l.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"}return n}(t,i);e.on(c,"mousedown",function(t){f.clear(),e.e_preventDefault(t)});var f=t.markText(l.from,l.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,l.from,l.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)})})("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":65}],58:[function(e,t,n){var r;r=function(e){"use strict";e.defineOption("foldGutter",!1,function(t,r,i){i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",s),t.off("change",u),t.off("viewportChange",l),t.off("fold",c),t.off("unfold",c),t.off("swapDoc",u)),r&&(t.state.foldGutter=new n(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}(r)),a(t),t.on("gutterClick",s),t.on("change",u),t.on("viewportChange",l),t.on("fold",c),t.on("unfold",c),t.on("swapDoc",u))});var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold&&r[i].find().from.line==n)return r[i]}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,n,o){var a=e.state.foldGutter.options,s=n,u=e.foldOption(a,"minFoldSize"),l=e.foldOption(a,"rangeFinder");e.eachLine(n,o,function(n){var o=null;if(r(e,s))o=i(a.indicatorFolded);else{var c=t(s,0),f=l&&l(e,c);f&&f.to.line-f.from.line>=u&&(o=i(a.indicatorOpen))}e.setGutterMarker(n,a.gutter,o),++s})}function a(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function s(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a.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(){a(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?a(e):e.operation(function(){n.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function c(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror"),e("./foldcode")):r(CodeMirror)},{"../../lib/codemirror":65,"./foldcode":57}],59:[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 s(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function u(r,i){this.completion=r,this.data=i,this.picked=!1;var o=this,u=r.cm,l=this.hints=document.createElement("ul");l.className="CodeMirror-hints",this.selectedHint=i.selectedHint||0;for(var c=i.list,f=0;f<c.length;++f){var p=l.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=u.cursorCoords(r.options.alignWithWord?i.from:null),g=m.left,v=m.bottom,y=!0;l.style.left=g+"px",l.style.top=v+"px";var b=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),T=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(r.options.container||document.body).appendChild(l);var _=l.getBoundingClientRect(),w=_.bottom-T,k=l.scrollHeight>l.clientHeight+1,E=u.getScrollInfo();if(w>0){var O=_.bottom-_.top;if(m.top-(m.bottom-_.top)-O>0)l.style.top=(v=m.top-O)+"px",y=!1;else if(O>T){l.style.height=T-5+"px",l.style.top=(v=m.bottom-_.top)+"px";var S=u.getCursor();i.from.ch!=S.ch&&(m=u.cursorCoords(S),l.style.left=(g=m.left)+"px",_=l.getBoundingClientRect())}}var L,C=_.right-b;if(C>0&&(_.right-_.left>b&&(l.style.width=b-5+"px",C-=_.right-_.left-b),l.style.left=(g=m.left-C)+"px"),k)for(var N=l.firstChild;N;N=N.nextSibling)N.style.paddingRight=u.display.nativeBarWidth+"px";(u.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 s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[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)&&(u.on("blur",this.onBlur=function(){L=setTimeout(function(){r.close()},100)}),u.on("focus",this.onFocus=function(){clearTimeout(L)}));return u.on("scroll",this.onScroll=function(){var e=u.getScrollInfo(),t=u.getWrapperElement().getBoundingClientRect(),n=v+E.top-e.top,i=n-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(y||(i+=l.offsetHeight),i<=t.top||i>=t.bottom)return r.close();l.style.top=n+"px",l.style.left=g+E.left-e.left+"px"}),e.on(l,"dblclick",function(e){var t=s(l,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(l,"click",function(e){var t=s(l,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),r.options.completeOnSingleClick&&o.pick())}),e.on(l,"mousedown",function(){setTimeout(function(){u.focus()},20)}),e.signal(i,"select",c[0],l.firstChild),!0}function l(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;l(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,i,o=this.widget&&this.widget.picked||n&&this.options.completeSingle;(this.widget&&this.widget.close(),t&&this.data&&(r=this.data,i=t,e.cmpPos(i.from,r.from)>0&&r.to.ch-r.from.ch!=i.to.ch-i.from.ch))||(this.data=t,t&&t.list.length&&(o&&1==t.list.length?this.pick(t,0):(this.widget=new u(this,t),e.signal(t,"shown"))))}},u.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);l(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,s=e.Pos(r.line,i.start);else a="",s=o;for(var u=[],l=0;l<n.words.length;l++){var c=n.words[l];c.slice(0,a.length)==a&&u.push(c)}if(u.length)return{list:u,from:s,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)})("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":65}],60:[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 s=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(s)},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,u=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),l=[],c=0;c<u.length;++c){var f=u[c].__annotation;f&&l.push(f)}l.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(s(a))}r(t,i,n)}(l,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"),s=a;return a.className="CodeMirror-lint-marker-"+n,i&&((s=a.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=o&&e.on(s,"mouseover",function(e){r(e,t,s)}),a}function s(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+t,n.appendChild(document.createTextNode(e.message)),n}function u(t){var n=t.state.lint.options,r=n.options||n,i=n.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(n.async||i.async)!function(t,n,r){var i=t.state.lint,o=++i.waitingFor;function a(){o=-1,t.off("change",a)}t.on("change",a),n(t.getValue(),function(n,r){t.off("change",a),i.waitingFor==o&&(r&&n instanceof e&&(n=r),l(t,n))},r,t)}(t,i,r);else{var o=i(t.getValue(),r,t);if(!o)return;o.then?o.then(function(e){l(t,e)}):l(t,o)}}function l(e,n){o(e);for(var r,i,u=e.state.lint,l=u.options,c=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),f=0;f<c.length;++f){var p=c[f];if(p){for(var d=null,h=u.hasGutter&&document.createDocumentFragment(),m=0;m<p.length;++m){var g=p[m],v=g.severity;v||(v="error"),i=v,d="error"==(r=d)?r:i,l.formatAnnotation&&(g=l.formatAnnotation(g)),u.hasGutter&&h.appendChild(s(g)),g.to&&u.marked.push(e.markText(g.from,g.to,{className:"CodeMirror-lint-mark-"+v,__annotation:g}))}u.hasGutter&&e.setGutterMarker(f,t,a(h,d,p.length>1,u.options.tooltips))}}l.onUpdateLinting&&l.onUpdateLinting(n,c,e)}function c(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){u(e)},t.options.delay||500))}e.defineOption("lint",!1,function(n,r,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",c),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),l=!1,f=0;f<s.length;++f)s[f]==t&&(l=!0);var p=n.state.lint=new i(n,(d=r)instanceof Function?{getAnnotations:d}:(d&&!0!==d||(d={}),d),l);!1!==p.options.lintOnChange&&n.on("change",c),0!=p.options.tooltips&&"gutter"!=p.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",p.onMouseOver),u(n)}var d}),e.defineExtension("performLint",function(){this.state.lint&&u(this)})})("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":65}],61:[function(e,t,n){var r;r=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"},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror"),e("../dialog/dialog")):r(CodeMirror)},{"../../lib/codemirror":65,"../dialog/dialog":53}],62:[function(e,t,n){var r;r=function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function a(e){return e.replace(/\\(.)/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":t})}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}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,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function c(t,r,i,a){var s=n(t);if(s.query)return f(t,r);var c=t.getSelection()||s.lastQuery;if(i&&t.openDialog){var d=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),d&&(d.style.opacity=1),f(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((d=r).style.opacity=.4)}))};!function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(e)},onKeyDown:i})}(t,u,c,h,function(r,i){var o=e.keyName(r),a=e.keyMap[t.getOption("keyMap")][o];a||(a=t.getOption("extraKeys")[o]),"findNext"==a||"findPrev"==a||"findPersistentNext"==a||"findPersistentPrev"==a?(e.e_stop(r),l(t,n(t),i),t.execCommand(a)):"find"!=a&&"findPersistent"!=a||(e.e_stop(r),h(i,r))}),a&&c&&(l(t,s,c),f(t,r))}else o(t,u,"Search for:",c,function(e){e&&!s.query&&t.operation(function(){l(t,s,e),s.posFrom=s.posTo=t.getCursor(),f(t,r)})})}function f(t,r,o){t.operation(function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))})}function p(e){e.operation(function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}var d=' <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>',h='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',m='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';function g(e,t,n){e.operation(function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,function(e,t){return o[t]}))}else r.replace(n)})}function v(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,u='<span class="CodeMirror-search-label">'+(t?"Replace all:":"Replace:")+"</span>";o(e,u+d,u,r,function(n){n&&(n=s(n),o(e,h,"Replace with:","",function(r){if(r=a(r),t)g(e,n,r);else{p(e);var o=i(e,n,e.getCursor("from")),s=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,m,"Replace?",[function(){u(t)},s,function(){g(e,n,r)}]))},u=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,function(t,n){return e[n]})),s()};s()}}))})}}e.commands.find=function(e){p(e),c(e)},e.commands.findPersistent=function(e){p(e),c(e,!1,!0)},e.commands.findPersistentNext=function(e){c(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){c(e,!0,!0,!0)},e.commands.findNext=c,e.commands.findPrev=function(e){c(e,!0)},e.commands.clearSearch=p,e.commands.replace=v,e.commands.replaceAll=function(e){v(e,!0)}},"object"==typeof n&&"object"==typeof t?r(e("../../lib/codemirror"),e("./searchcursor"),e("../dialog/dialog")):r(CodeMirror)},{"../../lib/codemirror":65,"../dialog/dialog":53,"./searchcursor":63}],63:[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,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var u=e.getLine(o),l=t.exec(u);if(l)return{from:r(o,l.index),to:r(o,l.index+l[0].length),match:l}}}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 s(e,t,n){if(e.length==t.length)return n;for(var r=Math.min(n,e.length);;){var i=e.slice(0,r).toLowerCase().length;if(i<n)++r;else{if(!(i>n))return r;--r}}}function u(e,u,l,c){var f;this.atOccurrence=!1,this.doc=e,l=l?e.clipPos(l):r(0,0),this.pos={from:l,to:l},"object"==typeof c?f=c.caseFold:(f=c,c=null),"string"==typeof u?(null==f&&(f=!1),this.matches=function(i,o){return(i?function(e,i,o,a){if(!i.length)return null;var u=a?t:n,l=u(i).split(/\r|\n\r?/);e:for(var c=o.line,f=o.ch,p=e.firstLine()-1+l.length;c>=p;c--,f=-1){var d=e.getLine(c);f>-1&&(d=d.slice(0,f));var h=u(d);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(c,s(d,h,m)),to:r(c,s(d,h,m+l[0].length))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=c-l.length+1;v<l.length-1;v++)if(u(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(c+1-l.length),b=u(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(c+1-l.length,s(y,b,y.length-l[0].length)),to:r(c,s(d,h,g.length))}}}}:function(e,i,o,a){if(!i.length)return null;var u=a?t:n,l=u(i).split(/\r|\n\r?/);e:for(var c=o.line,f=o.ch,p=e.lastLine()+1-l.length;c<=p;c++,f=0){var d=e.getLine(c).slice(f),h=u(d);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=s(d,h,m)+f,{from:r(c,s(d,h,m)+f),to:r(c,s(d,h,m+l[0].length)+f)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(u(e.getLine(c+v))!=l[v])continue e;var y=e.getLine(c+l.length-1),b=u(y),T=l[l.length-1];if(y.slice(0,T.length)==T)return{from:r(c,s(d,h,g)+f),to:r(c+l.length-1,s(y,b,T.length))}}}})(e,u,o,f)}):(u=i(u),c&&!1===c.multiline?this.matches=function(t,n){return(t?function(e,t,n){t=i(t);for(var o=n.line,s=n.ch,u=e.firstLine();o>=u;o--,s=-1){var l=e.getLine(o);s>-1&&(l=l.slice(0,s));var c=a(l,t);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}:o)(e,u,n)}:this.matches=function(t,n){return(t?function(e,t,n){t=i(t);for(var o,s=1,u=n.line,l=e.firstLine();u>=l;){for(var c=0;c<s;c++){var f=e.getLine(u--);o=null==o?f.slice(0,n.ch):f+"\n"+o}s*=2;var p=a(o,t);if(p){var d=o.slice(0,p.index).split("\n"),h=p[0].split("\n"),m=u+d.length,g=d[d.length-1].length;return{from:r(m,g),to:r(m+h.length-1,1==h.length?g+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,s=1,u=n.line,l=e.lastLine();u<=l;){for(var c=0;c<s;c++){var f=e.getLine(u++);a=null==a?f:a+"\n"+f}s*=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,g=d[d.length-1].length;return{from:r(m,g),to:r(m+h.length-1,1==h.length?g+h[0].length:h[h.length-1].length),match:p}}}})(e,u,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}),u.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 u(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new u(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)})})("object"==typeof n&&"object"==typeof t?e("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":65}],64:[function(e,t,n){var r;r=function(e){"use strict";var t=e.keyMap.sublime={fallthrough:"default"},n=e.commands,r=e.Pos,i=e.keyMap.default==e.keyMap.macDefault,o=i?"Cmd-":"Ctrl-";function a(t,n){t.extendSelectionsBy(function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,n,i){if(i<0&&0==n.ch)return t.clipPos(r(n.line-1));var o=t.getLine(n.line);if(i>0&&n.ch>=o.length)return t.clipPos(r(n.line+1,0));for(var a,s="start",u=n.ch,l=i<0?0:o.length,c=0;u!=l;u+=i,c++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p&&(s="in",a=p);else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){a="w";continue}break}}return r(n.line,u)}(t.doc,i.head,n):n<0?i.from():i.to()})}var s=i?"Ctrl-":"Alt-";n[t[s+"Left"]="goSubwordLeft"]=function(e){a(e,-1)},n[t[s+"Right"]="goSubwordRight"]=function(e){a(e,1)},i&&(t["Cmd-Left"]="goLineStartSmart");var u=i?"Ctrl-Alt-":"Ctrl-";function l(t,n){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var u=r(s.line+(n?0:1),0);t.replaceRange("\n",u,null,"+insertLine"),t.indentLine(u.line,null,!0),i.push({head:u,anchor:u}),o=s.line+1}}t.setSelections(i)}),t.execCommand("indentAuto")}function c(t,n){for(var i=n.ch,o=i,a=t.getLine(n.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:r(n.line,i),to:r(n.line,o),word:a.slice(i,o)}}n[t[u+"Up"]="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())},n[t[u+"Down"]="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())},n[t["Shift-"+o+"L"]="splitSelectionByLine"]=function(e){for(var t=e.listSelections(),n=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||n.push({anchor:s==o.line?o:r(s,0),head:s==a.line?a:r(s)});e.setSelections(n,0)},t["Shift-Tab"]="indentLess",n[t.Esc="singleSelectionTop"]=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},n[t[o+"L"]="selectLine"]=function(e){for(var t=e.listSelections(),n=[],i=0;i<t.length;i++){var o=t[i];n.push({anchor:r(o.from().line,0),head:r(o.to().line+1,0)})}e.setSelections(n)},t["Shift-Ctrl-K"]="deleteLine",n[t[o+"Enter"]="insertLineAfter"]=function(e){return l(e,!1)},n[t["Shift-"+o+"Enter"]="insertLineBefore"]=function(e){return l(e,!0)},n[t[o+"D"]="selectNextOccurrence"]=function(t){var n=t.getCursor("from"),i=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(n,i)){var a=c(t,n);if(!a.word)return;t.setSelection(a.from,a.to),o=!0}else{var s=t.getRange(n,i),u=o?new RegExp("\\b"+s+"\\b"):s,l=t.getSearchCursor(u,i),f=l.findNext();if(f||(f=(l=t.getSearchCursor(u,r(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(),l.from(),l.to()))return e.Pass;t.addSelection(l.from(),l.to())}o&&(t.state.sublimeFindFullWord=t.doc.sel)};var f="(){}[]";function p(e){for(var t=e.listSelections(),n=[],i=0;i<t.length;i++){var o=t[i].head,a=e.scanForBracket(o,-1);if(!a)return!1;for(;;){var s=e.scanForBracket(o,1);if(!s)return!1;if(s.ch==f.charAt(f.indexOf(a.ch)+1)){n.push({anchor:r(a.pos.line,a.pos.ch+1),head:s.pos});break}o=r(s.pos.line,s.pos.ch+1)}}return e.setSelections(n),!0}n[t["Shift-"+o+"Space"]="selectScope"]=function(e){p(e)||e.execCommand("selectAll")},n[t["Shift-"+o+"M"]="selectBetweenBrackets"]=function(t){if(!p(t))return e.Pass},n[t[o+"M"]="goToBracket"]=function(t){t.extendSelectionsBy(function(n){var i=t.scanForBracket(n.head,1);if(i&&0!=e.cmpPos(i.pos,n.head))return i.pos;var o=t.scanForBracket(n.head,-1);return o&&r(o.pos.line,o.pos.ch+1)||n.head})};var d=i?"Cmd-Ctrl-":"Shift-Ctrl-";function h(t,n){if(t.isReadOnly())return e.Pass;for(var i,o=t.listSelections(),a=[],s=0;s<o.length;s++){var u=o[s];if(!u.empty()){for(var l=u.from().line,c=u.to().line;s<o.length-1&&o[s+1].from().line==c;)c=o[++s].to().line;o[s].to().ch||c--,a.push(l,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 s=a[o],u=a[o+1],l=r(s,0),c=r(u),f=t.getRange(l,c,!1);n?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,l,c),i&&e.push({anchor:l,head:r(u+1,0)})}i&&t.setSelections(e,0)})}n[t[d+"Up"]="swapLineUp"]=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<n.length;s++){var u=n[s],l=u.from().line-1,c=u.to().line;a.push({anchor:r(u.anchor.line-1,u.anchor.ch),head:r(u.head.line-1,u.head.ch)}),0!=u.to().ch||u.empty()||--c,l>o?i.push(l,c):i.length&&(i[i.length-1]=c),o=c}t.operation(function(){for(var e=0;e<i.length;e+=2){var n=i[e],o=i[e+1],s=t.getLine(n);t.replaceRange("",r(n,0),r(n+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,r(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",r(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()})},n[t[d+"Down"]="swapLineDown"]=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),i=[],o=t.lastLine()+1,a=n.length-1;a>=0;a--){var s=n[a],u=s.to().line+1,l=s.from().line;0!=s.to().ch||s.empty()||u--,u<o?i.push(u,l):i.length&&(i[i.length-1]=l),o=l}t.operation(function(){for(var e=i.length-2;e>=0;e-=2){var n=i[e],o=i[e+1],a=t.getLine(n);n==t.lastLine()?t.replaceRange("",r(n-1),r(n),"+swapLine"):t.replaceRange("",r(n,0),r(n+1,0),"+swapLine"),t.replaceRange(a+"\n",r(o,0),null,"+swapLine")}t.scrollIntoView()})},n[t[o+"/"]="toggleCommentIndented"]=function(e){e.toggleComment({indent:!0})},n[t[o+"J"]="joinLines"]=function(e){for(var t=e.listSelections(),n=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,u=o.to().line;i<t.length-1&&t[i+1].from().line==u;)u=t[++i].to().line;n.push({start:s,end:u,anchor:!o.empty()&&a})}e.operation(function(){for(var t=0,i=[],o=0;o<n.length;o++){for(var a,s=n[o],u=s.anchor&&r(s.anchor.line-t,s.anchor.ch),l=s.start;l<=s.end;l++){var c=l-t;l==s.end&&(a=r(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",r(c),r(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:u||a,head:a})}e.setSelections(i,0)})},n[t["Shift-"+o+"D"]="duplicateLine"]=function(e){e.operation(function(){for(var t=e.listSelections().length,n=0;n<t;n++){var i=e.listSelections()[n];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",r(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()})},i||(t[o+"T"]="transposeChars"),n[t.F9="sortLines"]=function(e){h(e,!0)},n[t[o+"F9"]="sortLinesInsensitive"]=function(e){h(e,!1)},n[t.F2="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)}},n[t["Shift-F2"]="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()}},n[t[o+"F2"]="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),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var u=0;u<n.length;u++)n[u]==a[s]&&n.splice(u--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},n[t["Shift-"+o+"F2"]="clearBookmarks"]=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},n[t["Alt-F2"]="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["Alt-Q"]="wrapLines";var m=o+"K ";function g(t,n){t.operation(function(){for(var r=t.listSelections(),i=[],o=[],a=0;a<r.length;a++){(u=r[a]).empty()?(i.push(a),o.push("")):o.push(n(t.getRange(u.from(),u.to())))}t.replaceSelections(o,"around","case");var s;for(a=i.length-1;a>=0;a--){var u=r[i[a]];if(!(s&&e.cmpPos(u.head,s)>0)){var l=c(t,u.head);s=l.from,t.replaceRange(n(l.word),l.from,l.to)}}})}t[m+o+"Backspace"]="delLineLeft",n[t.Backspace="smartBackspace"]=function(t){if(t.somethingSelected())return e.Pass;t.operation(function(){for(var n=t.listSelections(),i=t.getOption("indentUnit"),o=n.length-1;o>=0;o--){var a=n[o].head,s=t.getRange({line:a.line,ch:0},a),u=e.countColumn(s,null,t.getOption("tabSize")),l=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&u%i==0){var c=new r(a.line,e.findColumn(s,u-i,i));c.ch!=a.ch&&(l=c)}t.replaceRange("",l,a,"+delete")}})},n[t[m+o+"K"]="delLineRight"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange("",t[n].anchor,r(t[n].to().line),"+delete");e.scrollIntoView()})},n[t[m+o+"U"]="upcaseAtCursor"]=function(e){g(e,function(e){return e.toUpperCase()})},n[t[m+o+"L"]="downcaseAtCursor"]=function(e){g(e,function(e){return e.toLowerCase()})},n[t[m+o+"Space"]="setSublimeMark"]=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},n[t[m+o+"A"]="selectToSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},n[t[m+o+"W"]="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)}},n[t[m+o+"X"]="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))},n[t[m+o+"Y"]="sublimeYank"]=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t[m+o+"G"]="clearBookmarks",n[t[m+o+"C"]="showInCenter"]=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)};var v=i?"Ctrl-Shift-":"Ctrl-Alt-";function y(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=c(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 b(e,t){var n=y(e);if(n){var i=n.query,o=e.getSearchCursor(i,t?n.to:n.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?r(e.firstLine(),0):e.clipPos(r(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):n.word&&e.setSelection(n.from,n.to))}}n[t[v+"Up"]="selectLinesUpward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;n<t.length;n++){var i=t[n];i.head.line>e.firstLine()&&e.addSelection(r(i.head.line-1,i.head.ch))}})},n[t[v+"Down"]="selectLinesDownward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;n<t.length;n++){var i=t[n];i.head.line<e.lastLine()&&e.addSelection(r(i.head.line+1,i.head.ch))}})},n[t[o+"F3"]="findUnder"]=function(e){b(e,!0)},n[t["Shift-"+o+"F3"]="findUnderPrevious"]=function(e){b(e,!1)},n[t["Alt-F3"]="findAllUnder"]=function(e){var t=y(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)}},t["Shift-"+o+"["]="fold",t["Shift-"+o+"]"]="unfold",t[m+o+"0"]=t[m+o+"J"]="unfoldAll",t[o+"I"]="findIncremental",t["Shift-"+o+"I"]="findIncrementalReverse",t[o+"H"]="replace",t.F3="findNext",t["Shift-F3"]="findPrev",e.normalizeKeyMap(t)},"object"==typeof n&&"object"==typeof t?r(e("../lib/codemirror"),e("../addon/search/searchcursor"),e("../addon/edit/matchbrackets")):r(CodeMirror)},{"../addon/edit/matchbrackets":55,"../addon/search/searchcursor":63,"../lib/codemirror":65}],65:[function(e,t,n){var r,i;r=this,i=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(e),l=u&&/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),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),T=/win/i.test(t),_=f&&e.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(f=!1,u=!0);var w=y&&(l||f&&(null==_||_<12.11)),k=n||a&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var O,S=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 L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function C(e,t){return L(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 x(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}O=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 s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?j=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(j=function(e){try{e.select()}catch(e){}});var G=function(){this.id=null};function V(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}G.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var Q=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 W=[""];function K(e){for(;W.length<=e;)W.push(Y(W)+" ");return W[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(;;){if(Math.abs(t-n)<=1)return e(t)?t:n;var r=Math.floor((t+n)/2);e(r)?n=r:t=r}}function se(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=x("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=x("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=x("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: "+Q+"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&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),u||n&&v||(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)}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 ce(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function fe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function pe(e){if(null==e.parent)return null;for(var t=e.parent,n=V(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 de(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function he(e,t){return t>=e.first&&t<e.first+e.size}function me(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ge(e,t,n){if(void 0===n&&(n=null),!(this instanceof ge))return new ge(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 ye(e,t){return e.sticky==t.sticky&&0==ve(e,t)}function be(e){return ge(e.line,e.ch)}function Te(e,t){return ve(e,t)<0?t:e}function _e(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 ke(e,t){if(t.line<e.first)return ge(e.first,0);var n=e.first+e.size-1;return t.line>n?ge(n,ue(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?ge(e.line,t):n<0?ge(e.line,0):e}(t,ue(e,t.line).text.length)}function Ee(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ke(e,t[r]);return n}var Oe=!1,Se=!1;function Le(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 Ne(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function xe(e,t){if(t.full)return null;var n=he(e,t.from.line)&&ue(e,t.from.line).markedSpans,r=he(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),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Le(a,o.from,s?null:o.to))}}return r}(n,i,a),u=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Le(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),l=1==t.text.length,c=Y(t.text).length+(l?i:0);if(s)for(var f=0;f<s.length;++f){var p=s[f];if(null==p.to){var d=Ce(u,p.marker);d?l&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(u)for(var h=0;h<u.length;++h){var m=u[h];if(null!=m.to&&(m.to+=c),null==m.from)Ce(s,m.marker)||(m.from=c,l&&(s||(s=[])).push(m));else m.from+=c,l&&(s||(s=[])).push(m)}s&&(s=De(s)),u&&u!=s&&(u=De(u));var g=[s];if(!l){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new Le(s[b].marker,null,null));for(var T=0;T<y;++T)g.push(v);g.push(u)}return g}function De(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 Ae(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ie(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Fe(e){return e.inclusiveLeft?-1:0}function je(e){return e.inclusiveRight?1:0}function Me(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)||Fe(e)-Fe(t);if(o)return-o;var a=ve(r.to,i.to)||je(e)-je(t);return a||t.id-e.id}function Pe(e,t){var n,r=Se&&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||Me(n,i.marker)<0)&&(n=i.marker);return n}function Re(e){return Pe(e,!0)}function Ge(e){return Pe(e,!1)}function Ve(e,t,n,r,i){var o=ue(e,t),a=Se&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var u=a[s];if(u.marker.collapsed){var l=u.marker.find(0),c=ve(l.from,n)||Fe(u.marker)-Fe(i),f=ve(l.to,r)||je(u.marker)-je(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?ve(l.to,n)>=0:ve(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?ve(l.from,r)<=0:ve(l.from,r)<0)))return!0}}}function Qe(e){for(var t;t=Re(e);)e=t.find(-1,!0).line;return e}function qe(e,t){var n=ue(e,t),r=Qe(n);return n==r?t:pe(r)}function Ue(e,t){if(t>e.lastLine())return t;var n,r=ue(e,t);if(!Be(e,r))return t;for(;n=Ge(r);)r=n.find(1,!0).line;return pe(r)+1}function Be(e,t){var n=Se&&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&&ze(e,t,r))return!0}}function ze(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return ze(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)&&ze(e,t,i))return!0}function He(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 s=o.children[a];if(s==n)break;t+=s.height}return t}function We(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Re(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Ge(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=We(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=We(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Ye=null;function Je(e,t,n){var r;Ye=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:Ye=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Ye=i)}return null!=r?r:Ye}var $e=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 s(e,t,n){this.level=e,this.from=t,this.to=n}return function(u,l){var c="ltr"==l?"L":"R";if(0==u.length||"ltr"==l&&!n.test(u))return!1;for(var f,p=u.length,d=[],h=0;h<p;++h)d.push((f=u.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,g=c;m<p;++m){var v=d[m];"m"==v?d[m]=g:g=v}for(var y=0,b=c;y<p;++y){var T=d[y];"1"==T&&"r"==b?d[y]="n":i.test(T)&&(b=T,"r"==T&&(d[y]="R"))}for(var _=1,w=d[0];_<p-1;++_){var k=d[_];"+"==k&&"1"==w&&"1"==d[_+1]?d[_]="1":","!=k||w!=d[_+1]||"1"!=w&&"n"!=w||(d[_]=w),w=k}for(var E=0;E<p;++E){var O=d[E];if(","==O)d[E]="N";else if("%"==O){var S=void 0;for(S=E+1;S<p&&"%"==d[S];++S);for(var L=E&&"!"==d[E-1]||S<p&&"1"==d[S]?"1":"N",C=E;C<S;++C)d[C]=L;E=S-1}}for(var N=0,x=c;N<p;++N){var D=d[N];"L"==x&&"1"==D?d[N]="L":i.test(D)&&(x=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=[],G=0;G<p;)if(o.test(d[G])){var V=G;for(++G;G<p&&o.test(d[G]);++G);R.push(new s(0,V,G))}else{var Q=G,q=R.length;for(++G;G<p&&"L"!=d[G];++G);for(var U=Q;U<G;)if(a.test(d[U])){Q<U&&R.splice(q,0,new s(1,Q,U));var B=U;for(++U;U<G&&a.test(d[U]);++U);R.splice(q,0,new s(2,B,U)),Q=U}else++U;Q<G&&R.splice(q,0,new s(1,Q,G))}return 1==R[0].level&&(P=u.match(/^\s+/))&&(R[0].from=P[0].length,R.unshift(new s(0,0,P[0].length))),1==Y(R).level&&(P=u.match(/\s+$/))&&(Y(R).to-=P[0].length,R.push(new s(0,p-P[0].length,p))),"rtl"==l?R.reverse():R}}();function Ze(e,t){var n=e.order;return null==n&&(n=e.order=$e(e.text,t)),n}function Xe(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function et(e,t,n){var r=Xe(e,t.ch,n);return null==r?null:new ge(t.line,r,n<0?"after":"before")}function tt(e,t,n,r,i){if(e){var o=Ze(n,t.doc.direction);if(o){var a,s=i<0?Y(o):o[0],u=i<0==(1==s.level)?"after":"before";if(s.level>0){var l=Mn(t,n);a=i<0?n.text.length-1:0;var c=Pn(t,l,a).top;a=ae(function(e){return Pn(t,l,e).top==c},i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Xe(n,a,1))}else a=i<0?s.to:s.from;return new ge(r,a,u)}}return new ge(r,i<0?n.text.length:0,i<0?"before":"after")}function nt(e,t,n,r){var i=Ze(t,e.doc.direction);if(!i)return et(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=Je(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 et(t,n,r);var s,u=function(e,n){return Xe(t,e instanceof ge?e.ch:e,n)},l=function(n){return e.options.lineWrapping?(s=s||Mn(e,t),tr(e,t,s,n)):{begin:0,end:t.text.length}},c=l("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,p=u(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 ge(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new ge(n.line,u(e,1),"before"):new ge(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),l=s?r.begin:u(r.end,-1);if(a.from<=l&&l<a.to)return o(l,s);if(l=s?a.from:u(a.to,-1),r.begin<=l&&l<r.end)return o(l,s)}},m=h(o+r,r,c);if(m)return m;var g=r>0?c.end:u(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,l(g)))?null:m}var rt=[],it=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]||rt).concat(n)}};function ot(e,t){return e._handlers&&e._handlers[t]||rt}function at(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=V(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function st(e,t){var n=ot(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 ut(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),st(e,n||t.type,e,t),ht(t)||t.codemirrorIgnore}function lt(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==V(n,t[r])&&n.push(t[r])}function ct(e,t){return ot(e,t).length>0}function ft(e){e.prototype.on=function(e,t){it(this,e,t)},e.prototype.off=function(e,t){at(this,e,t)}}function pt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function dt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ht(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function mt(e){pt(e),dt(e)}function gt(e){return e.target||e.srcElement}function vt(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 yt,bt,Tt=function(){if(a&&s<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function _t(e){if(null==yt){var t=N("span","");C(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(yt=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=yt?N("span",""):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function wt(e){if(null!=bt)return bt;var t=C(e,document.createTextNode("AخA")),n=O(t,0,1).getBoundingClientRect(),r=O(t,1,2).getBoundingClientRect();return L(e),!(!n||n.left==n.right)&&(bt=r.right-n.right<3)}var kt,Et=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/)},Ot=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)},St="oncopy"in(kt=N("div"))||(kt.setAttribute("oncopy","return;"),"function"==typeof kt.oncopy),Lt=null,Ct={},Nt={};function xt(e){if("string"==typeof e&&Nt.hasOwnProperty(e))e=Nt[e];else if(e&&"string"==typeof e.name&&Nt.hasOwnProperty(e.name)){var t=Nt[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 Dt(e,t){t=xt(t);var n=Ct[t.name];if(!n)return Dt(e,"text/plain");var r=n(e,t);if(At.hasOwnProperty(t.name)){var i=At[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 At={};function It(e,t){P(t,At.hasOwnProperty(e)?At[e]:At[e]={})}function Ft(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 jt(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 Mt(e,t,n){return!e.startState||e.startState(t,n)}var Pt=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};Pt.prototype.eol=function(){return this.pos>=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Pt.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},Pt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Pt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Pt.prototype.backUp=function(e){this.pos-=e},Pt.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)},Pt.prototype.indentation=function(){return R(this.string,null,this.tabSize)-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},Pt.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},Pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Pt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)};var Rt=function(e,t){this.state=e,this.lookAhead=t},Gt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0};function Vt(e,t,n,r){var i=[e.state.modeGen],o={};Yt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){var a=e.state.overlays[r],s=1,u=0;n.state=!0,Yt(e,t.text,a.mode,n,function(e,t){for(var n=s;u<e;){var r=i[s];r>e&&i.splice(s,1,e,i[s+1],r),s+=2,u=Math.min(e,r)}if(t)if(a.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o)},u=0;u<e.state.overlays.length;++u)s(u);return n.state=a,{styles:i,classes:o.bgClass||o.textClass?o:null}}function Qt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=qt(e,pe(t)),i=t.text.length>e.options.maxHighlightLength&&Ft(e.doc.mode,r.state),o=Vt(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 qt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Gt(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var u=ue(o,s-1),l=u.stateAfter;if(l&&(!n||s+(l instanceof Rt?l.lookAhead:0)<=o.modeFrontier))return s;var c=R(u.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&ue(r,o-1).stateAfter,s=a?Gt.fromSaved(r,a,o):new Gt(r,Mt(r.mode),o);return r.iter(o,t,function(n){Ut(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function Ut(e,t,n,r){var i=e.doc.mode,o=new Pt(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Bt(i,n.state);!o.eol();)zt(i,o,n.state),o.start=o.pos}function Bt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=jt(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function zt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=jt(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.")}Gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Gt.fromSaved=function(e,t,n){return t instanceof Rt?new Gt(e,Ft(e.mode,t.saved),n,t.lookAhead):new Gt(e,Ft(e.mode,t),n)},Gt.prototype.save=function(e){var t=!1!==e?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Rt(t,this.maxLookAhead):t};var Ht=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Wt(e,t,n,r){var i,o,a=e.doc,s=a.mode,u=ue(a,(t=ke(a,t)).line),l=qt(e,t.line,n),c=new Pt(u.text,e.options.tabSize,l);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=zt(s,c,l.state),r&&o.push(new Ht(c,i,Ft(a.mode,l.state)));return r?o:new Ht(c,i,l.state)}function Kt(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 Yt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var u,l=0,c=null,f=new Pt(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&Kt(Bt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&Ut(e,t,r,f.pos),f.pos=t.length,u=null):u=Kt(zt(n,f,r.state,p),o),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||c!=u){for(;l<f.start;)i(l=Math.min(f.start,l+5e3),c);c=u}f.start=f.pos}for(;l<f.pos;){var h=Math.min(f.pos,l+5e3);i(h,c),l=h}}var Jt=function(e,t,n){this.text=e,Ie(this,t),this.height=n?n(this):1};function $t(e){e.parent=null,Ae(e)}Jt.prototype.lineNo=function(){return pe(this)},ft(Jt);var Zt={},Xt={};function en(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Xt:Zt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function tn(e,t){var n=x("span",null,null,u?"padding-right: .1px":null),r={pre:x("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(a||u)&&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,s=void 0;r.pos=0,r.addToken=rn,wt(e.display.measure)&&(s=Ze(o,e.doc.direction))&&(r.addToken=on(r.addToken,s)),r.map=[],sn(o,r,Qt(e,o,t!=e.display.externalMeasured&&pe(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(_t(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return st(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function nn(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function rn(e,t,n,r,i,o,u){if(t){var l,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)){l=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 g=document.createTextNode(c.slice(d,d+m));a&&s<9?l.appendChild(N("span",[g])):l.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;d+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=l.appendChild(N("span",K(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=l.appendChild(N("span","\r"==h[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?l.appendChild(N("span",[v])):l.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,l=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,l),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||p||u){var T=n||"";r&&(T+=r),i&&(T+=i);var _=N("span",[l],T,u);return o&&(_.title=o),e.content.appendChild(_)}e.content.appendChild(l)}}function on(e,t){return function(n,r,i,o,a,s,u){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,c=l+r.length;;){for(var f=void 0,p=0;p<t.length&&!((f=t[p]).to>l&&f.from<=l);p++);if(f.to>=c)return e(n,r,i,o,a,s,u);e(n,r.slice(0,f.to-l),i,o,null,s,u),o=null,r=r.slice(f.to-l),l=f.to}}}function an(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 sn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,u,l,c,f,p,d=i.length,h=0,m=1,g="",v=0;;){if(v==h){u=l=c=f=s="",p=null,v=1/0;for(var y=[],b=void 0,T=0;T<r.length;++T){var _=r[T],w=_.marker;"bookmark"==w.type&&_.from==h&&w.widgetNode?y.push(w):_.from<=h&&(null==_.to||_.to>h||w.collapsed&&_.to==h&&_.from==h)?(null!=_.to&&_.to!=h&&v>_.to&&(v=_.to,l=""),w.className&&(u+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&_.from==h&&(c+=" "+w.startStyle),w.endStyle&&_.to==v&&(b||(b=[])).push(w.endStyle,_.to),w.title&&!f&&(f=w.title),w.collapsed&&(!p||Me(p.marker,w)<0)&&(p=_)):_.from>h&&v>_.from&&(v=_.from)}if(b)for(var k=0;k<b.length;k+=2)b[k+1]==v&&(l+=" "+b[k]);if(!p||p.from==h)for(var E=0;E<y.length;++E)an(t,0,y[E]);if(p&&(p.from||0)==h){if(an(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 O=Math.min(d,v);;){if(g){var S=h+g.length;if(!p){var L=S>O?g.slice(0,O-h):g;t.addToken(t,L,a?a+u:u,c,h+L.length==v?l:"",f,s)}if(S>=O){g=g.slice(O-h),h=O;break}h=S,c=""}g=i.slice(o,o=n[m++]),a=en(n[m++],t.cm.options)}}else for(var C=1;C<n.length;C+=2)t.addToken(t,i.slice(o,o=n[C]),en(n[C+1],t.cm.options))}function un(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Ge(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?pe(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Be(e,t)}function ln(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new un(e.doc,ue(e.doc,o),o);r=o+a.size,i.push(a)}return i}var cn=null,fn=null;function pn(e,t){var n=ot(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);cn?r=cn.delayedCallbacks:fn?r=fn:(r=fn=[],setTimeout(dn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function dn(){var e=fn;fn=null;for(var t=0;t<e.length;++t)e[t]()}function hn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?vn(e,t):"gutter"==o?bn(e,t,n,r):"class"==o?yn(e,t):"widget"==o&&Tn(e,t,r)}t.changes=null}function mn(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&&s<8&&(e.node.style.zIndex=2)),e.node}function gn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):tn(e,t)}function vn(e,t){var n=t.text.className,r=gn(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,yn(e,t)):n&&(t.text.className=n)}function yn(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=mn(t);t.background=r.insertBefore(N("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?mn(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 bn(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=mn(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=mn(t),s=t.gutter=N("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(N("div",me(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var u=0;u<e.options.gutters.length;++u){var l=e.options.gutters[u],c=o.hasOwnProperty(l)&&o[l];c&&s.appendChild(N("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function Tn(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);wn(e,t,n)}function _n(e,t,n,r){var i=gn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),yn(e,t),bn(e,t,n,r),wn(e,t,r),t.node}function wn(e,t,n){if(kn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)kn(e,t.rest[r],t,n,!1)}function kn(e,t,n,r,i){if(t.widgets)for(var o=mn(n),a=0,s=t.widgets;a<s.length;++a){var u=s[a],l=N("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),En(u,l,n,r),e.display.input.setUneditable(l),i&&u.above?o.insertBefore(l,n.gutter||n.text):o.appendChild(l),pn(u,"redraw")}}function En(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function On(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;"),C(t.display.measure,N("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Sn(e,t){for(var n=gt(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 Ln(e){return e.lineSpace.offsetTop}function Cn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Nn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=C(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 Q-e.display.nativeBarWidth}function Dn(e){return e.display.scroller.clientWidth-xn(e)-e.display.barWidth}function An(e){return e.display.scroller.clientHeight-xn(e)-e.display.barHeight}function In(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(pe(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Fn(e,t,n,r){return Pn(e,Mn(e,t),n,r)}function jn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[cr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Mn(e,t){var n=pe(t),r=jn(e,n);r&&!r.text?r=null:r&&r.changes&&(hn(e,r,n,or(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=pe(t=Qe(t)),r=e.display.externalMeasured=new un(e.doc,t,n);r.lineN=n;var i=r.built=tn(e,r);return r.text=i.pre,C(e.display.lineMeasure,i.pre),r}(e,t));var i=In(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Pn(e,t,n,r,i){t.before&&(n=-1);var o,u=n+(r||"");return t.cache.hasOwnProperty(u)?o=t.cache[u]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,n){var r=e.options.lineWrapping,i=r&&Dn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var u=a[s],l=a[s+1];Math.abs(u.bottom-l.bottom)>2&&o.push((u.bottom+l.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=Vn(t.map,n,r),u=o.node,l=o.start,c=o.end,f=o.collapse;if(3==u.nodeType){for(var p=0;p<4;p++){for(;l&&ie(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+c<o.coverEnd&&ie(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==l&&c==o.coverEnd-o.coverStart?u.parentNode.getBoundingClientRect():Qn(O(u,l,c).getClientRects(),r)).left||i.right||0==l)break;c=l,l-=1,f="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Lt)return Lt;var t=C(e,N("span","x")),n=t.getBoundingClientRect(),r=O(t,0,1).getBoundingClientRect();return Lt=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;l>0&&(f=r="right"),i=e.options.lineWrapping&&(d=u.getClientRects()).length>1?d["right"==r?d.length-1:0]:u.getBoundingClientRect()}if(a&&s<9&&!l&&(!i||!i.left&&!i.right)){var h=u.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:Gn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var T=b?y[b-1]:0,_=y[b],w={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:T,bottom:_};i.left||i.right||(w.bogus=!0);e.options.singleCursorHeightPerLine||(w.rtop=m,w.rbottom=g);return w}(e,t,n,r)).bogus||(t.cache[u]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Rn,Gn={left:0,right:0,top:0,bottom:0};function Vn(e,t,n){for(var r,i,o,a,s,u,l=0;l<e.length;l+=3)if(s=e[l],u=e[l+1],t<s?(i=0,o=1,a="left"):t<u?o=(i=t-s)+1:(l==e.length-3||t==u&&e[l+3]>t)&&(i=(o=u-s)-1,t>=u&&(a="right")),null!=i){if(r=e[l+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==u-s)for(;l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)r=e[(l+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:u}}function Qn(e,t){var n=Gn;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 qn(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 Un(e){e.display.externalMeasure=null,L(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)qn(e.display.view[t])}function Bn(e){Un(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function zn(){return c&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Hn(){return c&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Wn(e,t,n,r,i){if(!i&&t.widgets)for(var o=0;o<t.widgets.length;++o)if(t.widgets[o].above){var a=On(t.widgets[o]);n.top+=a,n.bottom+=a}if("line"==r)return n;r||(r="local");var s=He(t);if("local"==r?s+=Ln(e.display):s-=e.display.viewOffset,"page"==r||"window"==r){var u=e.display.lineSpace.getBoundingClientRect();s+=u.top+("window"==r?0:Hn());var l=u.left+("window"==r?0:zn());n.left+=l,n.right+=l}return n.top+=s,n.bottom+=s,n}function Kn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=zn(),i-=Hn();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 Yn(e,t,n,r,i){return r||(r=ue(e.doc,t.line)),Wn(e,r,Fn(e,r,t.ch,i),n)}function Jn(e,t,n,r,i,o){function a(t,a){var s=Pn(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Wn(e,r,s,n)}r=r||ue(e.doc,t.line),i||(i=Mn(e,r));var s=Ze(r,e.doc.direction),u=t.ch,l=t.sticky;if(u>=r.text.length?(u=r.text.length,l="before"):u<=0&&(u=0,l="after"),!s)return a("before"==l?u-1:u,"before"==l);function c(e,t,n){return a(n?e-1:e,s[t].level%2!=0!=n)}var f=Je(s,u,l),p=Ye,d=c(u,f,"before"==l);return null!=p&&(d.other=c(u,p,"before"!=l)),d}function $n(e,t){var n=0;t=ke(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=ue(e.doc,t.line),i=He(r)+Ln(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Zn(e,t,n,r,i){var o=ge(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function Xn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Zn(r.first,0,null,!0,-1);var i=de(r,n),o=r.first+r.size-1;if(i>o)return Zn(r.first+r.size-1,ue(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=ue(r,i);;){var s=nr(e,a,i,t,n),u=Ge(a),l=u&&u.find(0,!0);if(!u||!(s.ch>l.from.ch||s.ch==l.from.ch&&s.xRel>0))return s;i=pe(a=l.to.line)}}function er(e,t,n,r){var i=function(r){return Wn(e,t,Pn(e,n,r),"line")},o=t.text.length,a=ae(function(e){return i(e-1).bottom<=r},o,0);return{begin:a,end:o=ae(function(e){return i(e).top>r},a,o)}}function tr(e,t,n,r){return er(e,t,n,Wn(e,t,Pn(e,n,r),"line").top)}function nr(e,t,n,r,i){i-=He(t);var o,a=0,s=t.text.length,u=Mn(e,t);if(Ze(t,e.doc.direction)){var l;if(e.options.lineWrapping)a=(l=er(e,t,u,i)).begin,s=l.end;o=new ge(n,Math.floor(a+(s-a)/2));var c,f,p=Jn(e,o,"line",t,u).left,d=p<r?1:-1,h=p-r,m=Math.ceil((s-a)/4);e:do{c=h,f=o;for(var g=0;g<m;++g){var v=o;if(null==(o=nt(e,t,o,d))||o.ch<a||s<=("before"==o.sticky?o.ch-1:o.ch)){o=v;break e}}if(h=Jn(e,o,"line",t,u).left-r,m>1){var y=Math.abs(h-c)/m;m=Math.min(m,Math.ceil(Math.abs(h)/y)),d=h<0?1:-1}}while(0!=h&&(m>1||d<0!=h<0&&Math.abs(h)<=Math.abs(c)));if(Math.abs(h)>Math.abs(c)){if(h<0==c<0)throw new Error("Broke out of infinite loop in coordsCharInner");o=f}}else{var b=ae(function(n){var o=Wn(e,t,Pn(e,u,n),"line");return o.top>i?(s=Math.min(n,s),!0):!(o.bottom<=i)&&(o.left>r||!(o.right<r)&&r-o.left<o.right-r)},a,s);o=new ge(n,b=oe(t.text,b,1),b==s?"before":"after")}var T=Jn(e,o,"line",t,u);return(i<T.top||T.bottom<i)&&(o.outside=!0),o.xRel=r<T.left?-1:r>T.right?1:0,o}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=N("pre");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(N("br"));Rn.appendChild(document.createTextNode("x"))}C(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),L(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t]);C(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Be(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function ur(e){var t=e.doc,n=sr(e);t.iter(function(e){var t=n(e);t!=e.height&&fe(e,t)})}function lr(e,t,n,r){var i=e.display;if(!n&&"true"==gt(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var u,l=Xn(e,o,a);if(r&&1==l.xRel&&(u=ue(e.doc,l.line).text).length==l.ch){var c=R(u,u.length,e.options.tabSize)-u.length;l=ge(l.line,Math.max(0,Math.round((o-Nn(e.display).left)/ir(e.display))-c))}return l}function cr(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 fr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function pr(e,t){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(!1!==t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var u=s.empty();(u||e.options.showCursorWhenSelecting)&&dr(e,s.head,i),u||hr(e,s,o)}}return r}function dr(e,t,n){var r=Jn(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 hr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Nn(e.display),s=a.left,u=Math.max(r.sizerWidth,Dn(e)-r.sizer.offsetLeft)-a.right;function l(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?u-e:n)+"px;\n height: "+(r-t)+"px"))}function c(t,n,r){var o,a,c=ue(i,t),f=c.text.length;function p(n,r){return Yn(e,ge(t,n),"div",c,r)}return function(e,t,n,r){if(!e)return r(t,n,"ltr");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"),i=!0)}i||r(t,n,"ltr")}(Ze(c,i.direction),n||0,null==r?f:r,function(e,t,i){var c,d,h,m=p(e,"left");if(e==t)c=m,d=h=m.left;else{if(c=p(t-1,"right"),"rtl"==i){var g=m;m=c,c=g}d=m.left,h=c.right}null==n&&0==e&&(d=s),c.top-m.top>3&&(l(d,m.top,null,m.bottom),d=s,m.bottom<c.top&&l(d,m.bottom,null,c.top)),null==r&&t==f&&(h=u),(!o||m.top<o.top||m.top==o.top&&m.left<o.left)&&(o=m),(!a||c.bottom>a.bottom||c.bottom==a.bottom&&c.right>a.right)&&(a=c),d<s+1&&(d=s),l(d,c.top,h-d,c.bottom)}),{start:o,end:a}}var f=t.from(),p=t.to();if(f.line==p.line)c(f.line,f.ch,p.ch);else{var d=ue(i,f.line),h=ue(i,p.line),m=Qe(d)==Qe(h),g=c(f.line,f.ch,m?d.text.length+1:null).end,v=c(p.line,m?0:null,p.ch).start;m&&(g.top<v.top-2?(l(g.right,g.top,null,g.bottom),l(s,v.top,v.left,v.bottom)):l(g.right,g.top,v.left-g.right,g.bottom)),g.bottom<v.top&&l(s,g.bottom,null,v.top)}n.appendChild(o)}function mr(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 gr(e){e.state.focused||(e.display.input.focus(),yr(e))}function vr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,br(e))},100)}function yr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(st(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),mr(e))}function br(e,t){e.state.delayingBlurEvent||(e.state.focused&&(st(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Tr(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&&s<8){var u=i.node.offsetTop+i.node.offsetHeight;o=u-n,n=u}else{var l=i.node.getBoundingClientRect();o=l.bottom-l.top}var c=i.line.height-o;if(o<2&&(o=rr(t)),(c>.001||c<-.001)&&(fe(i.line,o),_r(i.line),i.rest))for(var f=0;f<i.rest.length;f++)_r(i.rest[f])}}}function _r(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t)e.widgets[t].height=e.widgets[t].node.parentNode.offsetHeight}function wr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Ln(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=de(t,r),a=de(t,i);if(n&&n.ensure){var s=n.ensure.from.line,u=n.ensure.to.line;s<o?(o=s,a=de(t,He(ue(t,s))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=a&&(o=de(t,He(ue(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function kr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var u=0;u<s.length;u++)s[u].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Er(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=me(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",li(e),!0}return!1}function Or(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=An(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Cn(n),u=t.top<r,l=t.bottom>s-r;if(t.top<i)a.scrollTop=u?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(l?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=Dn(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 Sr(e,t){null!=t&&(Nr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Lr(e){Nr(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?ge(t.line,t.ch-1):t,r=ge(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin}}function Cr(e,t,n){null==t&&null==n||Nr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Nr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,xr(e,$n(e,t.from),$n(e,t.to),t.margin))}function xr(e,t,n,r){var i=Or(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});Cr(e,i.scrollLeft,i.scrollTop)}function Dr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ui(e,{top:t}),Ar(e,t,!0),n&&ui(e),ri(e,100))}function Ar(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 Ir(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,kr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Fr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Cn(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 jr=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),it(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),it(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jr.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}},jr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jr.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 G,this.disableVert=new G},jr.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)})},jr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Mr=function(){};function Pr(e,t){t||(t=Fr(e));var n=e.display.barWidth,r=e.display.barHeight;Rr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Tr(e),Rr(e,Fr(e)),n=e.display.barWidth,r=e.display.barHeight}function Rr(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=""}Mr.prototype.update=function(){return{bottom:0,right:0}},Mr.prototype.setScrollLeft=function(){},Mr.prototype.setScrollTop=function(){},Mr.prototype.clear=function(){};var Gr={native:jr,null:Mr};function Vr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Gr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),it(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?Ir(e,t):Dr(e,t)},e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Qr=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:++Qr},t=e.curOp,cn?cn.ops.push(t):t.ownsGroup=cn={ops:[t],delayedCallbacks:[]}}function Ur(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{cn=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++)Br(t[n]);for(var r=0;r<t.length;r++)(i=t[r]).updatedDisplay=i.mustUpdate&&ai(i.cm,i.update);var i;for(var o=0;o<t.length;o++)zr(t[o]);for(var a=0;a<t.length;a++)Hr(t[a]);for(var s=0;s<t.length;s++)Wr(t[s])}(e)})}function Br(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 oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function zr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Tr(t),e.barMeasure=Fr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Fn(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-Dn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function Hr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Ir(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==A()&&(!document.hasFocus||document.hasFocus());e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Pr(t,e.barMeasure),e.updatedDisplay&&ci(t,e.barMeasure),e.selectionChanged&&mr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&gr(e.cm)}function Wr(e){var t=e.cm,n=t.display,r=t.doc;(e.updatedDisplay&&si(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Ar(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Ir(t,e.scrollLeft,!0,!0),e.scrollToPos)&&function(e,t){if(!ut(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-Ln(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);for(var o=0;o<5;o++){var a=!1,s=Jn(e,t),u=n&&n!=t?Jn(e,n):s,l=Or(e,i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&(Dr(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(Ir(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,ke(r,e.scrollToPos.from),ke(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||st(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&st(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&st(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Kr(e,t){if(e.curOp)return t();qr(e);try{return t()}finally{Ur(e)}}function Yr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);qr(e);try{return t.apply(e,arguments)}finally{Ur(e)}}}function Jr(e){return function(){if(this.curOp)return e.apply(this,arguments);qr(this);try{return e.apply(this,arguments)}finally{Ur(this)}}}function $r(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{Ur(t)}}}function Zr(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)Se&&qe(e.doc,t)<i.viewTo&&ei(e);else if(n<=i.viewFrom)Se&&Ue(e.doc,n+r)>i.viewFrom?ei(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)ei(e);else if(t<=i.viewFrom){var o=ti(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):ei(e)}else if(n>=i.viewTo){var a=ti(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):ei(e)}else{var s=ti(e,t,t,-1),u=ti(e,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(ln(e,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):ei(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function Xr(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[cr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==V(a,n)&&a.push(n)}}}function ei(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ti(e,t,n,r){var i,o=cr(e,t),a=e.display.view;if(!Se||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,u=0;u<o;u++)s+=a[u].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;qe(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 ni(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 ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,M(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=qt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ft(t.mode,r.state):null,u=Vt(e,o,r,!0);s&&(r.state=s),o.styles=u.styles;var l=o.styleClasses,c=u.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.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&&Ut(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Kr(e,function(){for(var t=0;t<i.length;t++)Xr(e,i[t],"text")})}}var oi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=wr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Dn(e),this.force=n,this.dims=or(e),this.events=[]};function ai(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return ei(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==ni(e))return!1;Er(e)&&(ei(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Se&&(o=qe(e.doc,o),a=Ue(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=ln(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=ln(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(cr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(ln(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,cr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=He(ue(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=ni(e);if(!s&&0==l&&!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 l>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return u&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,c=r.viewFrom,f=0;f<l.length;f++){var p=l[f];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var d=i&&null!=t&&t<=c&&p.lineNumber;p.changes&&(V(p.changes,"gutter")>-1&&(d=!1),hn(e,p,c,n)),d&&(L(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(me(e.options,c)))),a=p.node.nextSibling}else{var h=_n(e,p,c,n);o.insertBefore(h,a)}c+=p.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),l>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),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Dn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Cn(e.display)-An(e),n.top)}),t.visible=wr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ai(e,t);r=!1){Tr(e);var i=Fr(e);fr(e),Pr(e,i),ci(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ui(e,t){var n=new oi(e,t);if(ai(e,n)){Tr(e),si(e,n);var r=Fr(e);fr(e),Pr(e,r),ci(e,r),n.finish()}}function li(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function ci(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 fi(e){var t=e.display.gutters,n=e.options.gutters;L(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",li(e)}function pi(e){var t=V(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))}oi.prototype.signal=function(e,t){ct(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)st.apply(null,this.events[e])};var di=0,hi=null;function mi(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 gi(e){var t=mi(e);return t.x*=hi,t.y*=hi,t}function vi(e,t){var r=mi(t),i=r.x,o=r.y,a=e.display,s=a.scroller,l=s.scrollWidth>s.clientWidth,c=s.scrollHeight>s.clientHeight;if(i&&l||o&&c){if(o&&y&&u)e:for(var p=t.target,d=a.view;p!=s;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!=hi)return o&&c&&Dr(e,Math.max(0,s.scrollTop+o*hi)),Ir(e,Math.max(0,s.scrollLeft+i*hi)),(!o||o&&c)&&pt(t),void(a.wheelStartX=null);if(o&&null!=hi){var m=o*hi,g=e.doc.scrollTop,v=g+a.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):v=Math.min(e.doc.height,v+m+50),ui(e,{top:g,bottom:v})}di<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout(function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(hi=(hi*di+n)/(di+1),++di)}},200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?hi=-.53:n?hi=15:c?hi=-.7:p&&(hi=-1/3);var yi=function(e,t){this.ranges=e,this.primIndex=t};yi.prototype.primary=function(){return this.ranges[this.primIndex]},yi.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(!ye(n.anchor,r.anchor)||!ye(n.head,r.head))return!1}return!0},yi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new bi(be(this.ranges[t].anchor),be(this.ranges[t].head));return new yi(e,this.primIndex)},yi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},yi.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 bi=function(e,t){this.anchor=e,this.head=t};function Ti(e,t){var n=e[t];e.sort(function(e,t){return ve(e.from(),t.from())}),t=V(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=_e(o.from(),i.from()),s=Te(o.to(),i.to()),u=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new bi(u?s:a,u?a:s))}}return new yi(e,t)}function _i(e,t){return new yi([new bi(e,t||e)],0)}function wi(e){return e.text?ge(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ki(e,t){if(ve(e,t.from)<0)return e;if(ve(e,t.to)<=0)return wi(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+=wi(t).ch-t.to.ch),ge(n,r)}function Ei(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new bi(ki(i.anchor,t),ki(i.head,t)))}return Ti(n,e.sel.primIndex)}function Oi(e,t,n){return e.line==t.line?ge(n.line,e.ch-t.ch+n.ch):ge(n.line+(e.line-t.line),e.ch)}function Si(e){e.doc.mode=Dt(e.options,e.doc.modeOption),Li(e)}function Li(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ri(e,100),e.state.modeGen++,e.curOp&&Zr(e)}function Ci(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Y(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ni(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),Ae(e),Ie(e,n);var i=r?r(e):1;i!=e.height&&fe(e,i)}(e,n,i,r),pn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Jt(l[o],i(o),r));return n}var s=t.from,u=t.to,l=t.text,c=ue(e,s.line),f=ue(e,u.line),p=Y(l),d=i(l.length-1),h=u.line-s.line;if(t.full)e.insert(0,a(0,l.length)),e.remove(l.length,e.size-l.length);else if(Ci(e,t)){var m=a(0,l.length-1);o(f,f.text,d),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==f)if(1==l.length)o(c,c.text.slice(0,s.ch)+p+c.text.slice(u.ch),d);else{var g=a(1,l.length-1);g.push(new Jt(p+c.text.slice(u.ch),d,r)),o(c,c.text.slice(0,s.ch)+l[0],i(0)),e.insert(s.line+1,g)}else if(1==l.length)o(c,c.text.slice(0,s.ch)+l[0]+f.text.slice(u.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+l[0],i(0)),o(f,p+f.text.slice(u.ch),d);var v=a(1,l.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}pn(e,"change",e,t)}function xi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var u=o&&s.sharedHist;n&&!u||(t(s.doc,u),e(s.doc,r,u))}}}(e,null,!0)}function Di(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,ur(e),Si(e),Ai(e),e.options.lineWrapping||Ke(e),e.options.mode=t.modeOption,Zr(e)}function Ai(e){("rtl"==e.doc.direction?I:S)(e.display.lineDiv,"CodeMirror-rtl")}function Ii(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 Fi(e,t){var n={from:be(t.from),to:wi(t),text:le(e,t.from,t.to)};return Gi(e,n,t.from.line,t.to.line+1),xi(e,function(e){return Gi(e,n,t.from.line,t.to.line+1)},!0),n}function ji(e){for(;e.length;){if(!Y(e).ranges)break;e.pop()}}function Mi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>s-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(ji(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=wi(t):o.changes.push(Fi(e,t));else{var u=Y(i.done);for(u&&u.ranges||Ri(e.sel,i.done),o={changes:[Fi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||st(e,"historyAdded")}function Pi(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:Ri(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&ji(i.undone)}function Ri(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Gi(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 Vi(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 Qi(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(Vi(n[i]));return r}(e,t),r=xe(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var u=a[s],l=0;l<o.length;++l)if(o[l].marker==u.marker)continue e;o.push(u)}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?yi.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var u=0;u<a.length;++u){var l=a[u],c=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),t)for(var f in l)(c=f.match(/^spans_(\d+)$/))&&V(t,Number(c[1]))>-1&&(Y(s)[f]=l[f],delete l[f])}}}return r}function Ui(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 bi(i,t)}return new bi(n||t,t)}function Bi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Yi(e,new yi([Ui(e.sel.primary(),t,n,i)],0),r)}function zi(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]=Ui(e.sel.ranges[o],t[o],null,i);Yi(e,Ti(r,e.sel.primIndex),n)}function Hi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Yi(e,Ti(i,e.sel.primIndex),r)}function Wi(e,t,n,r){Yi(e,_i(t,n),r)}function Ki(e,t,n){var r=e.history.done,i=Y(r);i&&i.ranges?(r[r.length-1]=t,Ji(e,t,n)):Yi(e,t,n)}function Yi(e,t,n){Ji(e,t,n),Pi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ji(e,t,n){(ct(e,"beforeSelectionChange")||e.cm&&ct(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 bi(ke(e,t[n].anchor),ke(e,t[n].head))},origin:n&&n.origin};return st(e,"beforeSelectionChange",e,r),e.cm&&st(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ti(r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(ve(t.primary().head,e.sel.primary().head)<0?-1:1);$i(e,Xi(e,t,r,!0)),n&&!1===n.scroll||!e.cm||Lr(e.cm)}function $i(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,lt(e.cm)),pn(e,"cursorActivity",e))}function Zi(e){$i(e,Xi(e,e.sel,null,!1))}function Xi(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],u=to(e,a.anchor,s&&s.anchor,n,r),l=to(e,a.head,s&&s.head,n,r);(i||u!=a.anchor||l!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new bi(u,l))}return i?Ti(i,t.primIndex):t}function eo(e,t,n,r,i){var o=ue(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],u=s.marker;if((null==s.from||(u.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(st(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var l=u.find(r<0?1:-1),c=void 0;if((r<0?u.inclusiveRight:u.inclusiveLeft)&&(l=no(e,l,-r,l&&l.line==t.line?o:null)),l&&l.line==t.line&&(c=ve(l,n))&&(r<0?c<0:c>0))return eo(e,l,t,r,i)}var f=u.find(r<0?-1:1);return(r<0?u.inclusiveLeft:u.inclusiveRight)&&(f=no(e,f,r,f.line==t.line?o:null)),f?eo(e,f,t,r,i):null}}return t}function to(e,t,n,r,i){var o=r||1,a=eo(e,t,n,o,i)||!i&&eo(e,t,n,o,!0)||eo(e,t,n,-o,i)||!i&&eo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ge(e.first,0))}function no(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ke(e,ge(t.line-1)):null:n>0&&t.ch==(r||ue(e,t.line)).text.length?t.line<e.first+e.size-1?ge(t.line+1,0):null:new ge(t.line,t.ch+n)}function ro(e){e.setSelection(ge(e.firstLine(),0),ge(e.lastLine()),U)}function io(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=ke(e,t)),n&&(r.to=ke(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),st(e,"beforeChange",e,r),e.cm&&st(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function oo(e,t,n){if(e.cm){if(!e.cm.curOp)return Yr(e.cm,oo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ct(e,"beforeChange")||e.cm&&ct(e.cm,"beforeChange"))||(t=io(e,t,!0))){var r=Oe&&!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!=V(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),u=0;u<i.length;++u){var l=i[u];if(!(ve(l.to,s.from)<0||ve(l.from,s.to)>0)){var c=[u,1],f=ve(l.from,s.from),p=ve(l.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:s.to,to:l.to}),i.splice.apply(i,c),u+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ao(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text});else ao(e,t)}}function ao(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ve(t.from,t.to)){var n=Ei(e,t);Mi(e,t,n,e.cm?e.cm.curOp.id:NaN),lo(e,t,n,xe(e,t));var r=[];xi(e,function(e,n){n||-1!=V(r,e.history)||(ho(e.history,t),r.push(e.history)),lo(e,t,null,xe(e,t))})}}function so(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,s="undo"==t?i.undone:i.done,u=0;u<a.length&&(r=a[u],n?!r.ranges||r.equals(e.sel):r.ranges);u++);if(u!=a.length){for(i.lastOrigin=i.lastSelOrigin=null;(r=a.pop()).ranges;){if(Ri(r,s),n&&!r.equals(e.sel))return void Yi(e,r,{clearRedo:!1});o=r}var l=[];Ri(o,s),s.push({changes:l,generation:i.generation}),i.generation=r.generation||++i.maxGeneration;for(var c=ct(e,"beforeChange")||e.cm&&ct(e.cm,"beforeChange"),f=function(n){var i=r.changes[n];if(i.origin=t,c&&!io(e,i,!1))return a.length=0,{};l.push(Fi(e,i));var o=n?Ei(e,i):Y(a);lo(e,i,o,Qi(e,i)),!n&&e.cm&&e.cm.scrollIntoView({from:i.from,to:wi(i)});var s=[];xi(e,function(e,t){t||-1!=V(s,e.history)||(ho(e.history,i),s.push(e.history)),lo(e,i,null,Qi(e,i))})},p=r.changes.length-1;p>=0;--p){var d=f(p);if(d)return d.v}}}}function uo(e,t){if(0!=t&&(e.first+=t,e.sel=new yi(J(e.sel.ranges,function(e){return new bi(ge(e.anchor.line+t,e.anchor.ch),ge(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Zr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Xr(e.cm,r,"gutter")}}function lo(e,t,n,r){if(e.cm&&!e.cm.curOp)return Yr(e.cm,lo)(e,t,n,r);if(t.to.line<e.first)uo(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);uo(e,i),t={from:ge(e.first,0),to:ge(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:ge(o,ue(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=le(e,t.from,t.to),n||(n=Ei(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,u=o.line;e.options.lineWrapping||(u=pe(Qe(ue(r,o.line))),r.iter(u,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0}));r.sel.contains(t.from,t.to)>-1&<(e);Ni(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(u,o.line+t.text.length,function(e){var t=We(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=ue(e,r).stateAfter;if(i&&(!(i instanceof Rt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}})(r,o.line),ri(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?Zr(e):o.line!=a.line||1!=t.text.length||Ci(e.doc,t)?Zr(e,o.line,a.line+1,l):Xr(e,o.line,"text");var c=ct(e,"changes"),f=ct(e,"change");if(f||c){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&pn(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):Ni(e,t,r),Ji(e,n,U)}}function co(e,t,n,r,i){if(r||(r=n),ve(r,n)<0){var o=r;r=n,n=o}"string"==typeof t&&(t=e.splitLines(t)),oo(e,{from:n,to:r,text:t,origin:i})}function fo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function po(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)fo(o.ranges[s].anchor,t,n,r),fo(o.ranges[s].head,t,n,r)}else{for(var u=0;u<o.changes.length;++u){var l=o.changes[u];if(n<l.from.line)l.from=ge(l.from.line+r,l.from.ch),l.to=ge(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ho(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;po(e.done,n,r,i),po(e.undone,n,r,i)}function mo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=ue(e,we(e,t)):i=pe(t),null==i?null:(r(o,i)&&e.cm&&Xr(e.cm,i,n),o)}function go(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 vo(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}bi.prototype.from=function(){return _e(this.anchor,this.head)},bi.prototype.to=function(){return Te(this.anchor,this.head)},bi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},go.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,$t(i),pn(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}},vo.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 go))){var s=[];this.collapse(s),this.children=[new go(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var u=new go(i.lines.slice(s,s+=25));i.height-=u.height,this.children.splice(++r,0,u),u.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new vo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=V(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new vo(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 yo=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 bo(e,t,n){He(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Sr(e,n)}yo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=pe(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=On(this);fe(n,Math.max(0,n.height-o)),e&&(Kr(e,function(){bo(e,n,-o),Xr(e,r,"widget")}),pn(e,"lineWidgetCleared",e,this,r))}},yo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=On(this)-t;i&&(fe(r,r.height+i),n&&Kr(n,function(){n.curOp.forceUpdate=!0,bo(n,r,i),pn(n,"lineWidgetChanged",n,e,pe(r))}))},ft(yo);var To=0,_o=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++To};function wo(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=P(r)).shared=!1;var o=[wo(e,t,n,r,i)],a=o[0],s=r.widgetNode;return xi(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(wo(e,ke(e,t),ke(e,n),r,i));for(var u=0;u<e.linked.length;++u)if(e.linked[u].isParent)return;a=Y(o)}),new ko(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Yr(e.cm,wo)(e,t,n,r,i);var o=new _o(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=x("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");Se=!0}o.addToHistory&&Mi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,l=e.cm;if(e.iter(u,n.line+1,function(e){l&&o.collapsed&&!l.options.lineWrapping&&Qe(e)==l.display.maxLine&&(s=!0),o.collapsed&&u!=t.line&&fe(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Le(o,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Be(e,t)&&fe(t,0)}),o.clearOnEnter&&it(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Oe=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++To,o.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),o.collapsed)Zr(l,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++)Xr(l,c,"text");o.atomic&&Zi(l.doc),pn(l,"markerAdded",l,o)}return o}_o.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&qr(e),ct(this,"clear")){var n=this.find();n&&pn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Ce(a.markedSpans,this);e&&!this.collapsed?Xr(e,pe(a),"text"):e&&(null!=s.to&&(i=pe(a)),null!=s.from&&(r=pe(a))),a.markedSpans=Ne(a.markedSpans,s),null==s.from&&this.collapsed&&!Be(this.doc,a)&&e&&fe(a,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var l=Qe(this.lines[u]),c=We(l);c>e.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Zr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Zi(e.doc)),e&&pn(e,"markerCleared",e,this,r,i),t&&Ur(e),this.parent&&this.parent.clear()}},_o.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Ce(o.markedSpans,this);if(null!=a.from&&(n=ge(t?o:pe(o),a.from),-1==e))return n;if(null!=a.to&&(r=ge(t?o:pe(o),a.to),1==e))return r}return n&&{from:n,to:r}},_o.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Kr(r,function(){var i=t.line,o=pe(t.line),a=jn(r,o);if(a&&(qn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Be(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var u=On(n)-s;u&&fe(i,i.height+u)}pn(r,"markerChanged",r,e)})},_o.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=V(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},_o.prototype.detachLine=function(e){if(this.lines.splice(V(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ft(_o);var ko=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Eo(e){return e.findMarks(ge(e.first,0),e.clipPos(ge(e.lastLine())),function(e){return e.parent})}function Oo(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];xi(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==V(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}ko.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();pn(this,"clear")}},ko.prototype.find=function(e,t){return this.primary.find(e,t)},ft(ko);var So=0,Lo=function(e,t,n,r,i){if(!(this instanceof Lo))return new Lo(e,t,n,r,i);null==n&&(n=0),vo.call(this,[new go([new Jt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ge(n,0);this.sel=_i(o),this.history=new Ii(null),this.id=++So,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ni(this,{from:o,to:o,text:e}),Yi(this,_i(o),U)};Lo.prototype=Z(vo.prototype,{constructor:Lo,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=ce(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:$r(function(e){var t=ge(this.first,0),n=this.first+this.size-1;oo(this,{from:t,to:ge(n,ue(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Cr(this.cm,0,0),Yi(this,_i(t),U)}),replaceRange:function(e,t,n,r){co(this,e,t=ke(this,t),n=n?ke(this,n):t,r)},getRange:function(e,t,n){var r=le(this,ke(this,e),ke(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(he(this,e))return ue(this,e)},getLineNumber:function(e){return pe(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 ke(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:$r(function(e,t,n){Wi(this,ke(this,"number"==typeof e?ge(e,t||0):e),null,n)}),setSelection:$r(function(e,t,n){Wi(this,ke(this,e),ke(this,t||e),n)}),extendSelection:$r(function(e,t,n){Bi(this,ke(this,e),t&&ke(this,t),n)}),extendSelections:$r(function(e,t){zi(this,Ee(this,e),t)}),extendSelectionsBy:$r(function(e,t){zi(this,Ee(this,J(this.sel.ranges,e)),t)}),setSelections:$r(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new bi(ke(this,e[i].anchor),ke(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Yi(this,Ti(r,t),n)}}),addSelection:$r(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new bi(ke(this,e),ke(this,t||e))),Yi(this,Ti(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:$r(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=ge(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],u=Oi(s.from,i,o),l=Oi(wi(s),i,o);if(i=s.to,o=l,"around"==n){var c=e.sel.ranges[a],f=ve(c.head,c.anchor)<0;r[a]=new bi(f?l:u,f?u:l)}else r[a]=new bi(u,u)}return new yi(r,e.sel.primIndex)}(this,r,t),u=r.length-1;u>=0;u--)oo(this,r[u]);s?Ki(this,s):this.cm&&Lr(this.cm)}),undo:$r(function(){so(this,"undo")}),redo:$r(function(){so(this,"redo")}),undoSelection:$r(function(){so(this,"undo",!0)}),redoSelection:$r(function(){so(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 Ii(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 Ii(this.history.maxGeneration);t.done=qi(e.done.slice(0),null,!0),t.undone=qi(e.undone.slice(0),null,!0)},setGutterMarker:$r(function(e,t,n){return mo(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ne(r)&&(e.gutterMarkers=null),!0})}),clearGutter:$r(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&mo(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(!he(this,e))return null;if(t=e,!(e=ue(this,e)))return null}else if(null==(t=pe(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:$r(function(e,t,n){return mo(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:$r(function(e,t,n){return mo(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:$r(function(e,t,n){return function(e,t,n,r){var i=new yo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),mo(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&&!Be(e,t)){var r=He(t)<e.scrollTop;fe(t,t.height+On(i)),r&&Sr(o,i.height),o.curOp.forceUpdate=!0}return!0}),pn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:pe(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return wo(this,ke(this,e),ke(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 wo(this,e=ke(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=ue(this,(e=ke(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=ke(this,e),t=ke(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var u=a[s];null!=u.to&&i==e.line&&e.ch>=u.to||null==u.from&&i!=e.line||null!=u.from&&i==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),ke(this,ge(n,t))},indexFromPos:function(e){var t=(e=ke(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 Lo(ce(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 Lo(ce(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 s=wo(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Eo(this)),r},unlinkDoc:function(e){if(e instanceof Ta&&(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),Oo(Eo(this));break}}if(e.history==this.history){var n=[e.id];xi(e,function(e){return n.push(e.id)},!0),e.history=new Ii(null),e.history.done=qi(this.history.done,n),e.history.undone=qi(this.history.undone,n)}},iterLinkedDocs:function(e){xi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Et(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:$r(function(e){var t;("rtl"!=e&&(e="ltr"),e!=this.direction)&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Kr(t=this.cm,function(){Ai(t),Zr(t)}))})}),Lo.prototype.eachLine=Lo.prototype.iter;var Co=0;function No(e){var t=this;if(xo(t),!ut(t,e)&&!Sn(t.display,e)){pt(e),a&&(Co=+new Date);var n=lr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,u=function(e,r){if(!t.options.allowDropFileTypes||-1!=V(t.options.allowDropFileTypes,e.type)){var a=new FileReader;a.onload=Yr(t,function(){var e=a.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++s==i){var u={from:n=ke(t.doc,n),to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};oo(t.doc,u),Ki(t.doc,_i(n,wi(u)))}}),a.readAsText(e)}},l=0;l<i;++l)u(r[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var c=e.dataTransfer.getData("Text");if(c){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Ji(t.doc,_i(n,n)),f)for(var p=0;p<f.length;++p)co(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(c,"around","paste"),t.display.input.focus()}}catch(e){}}}}function xo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Do(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 Ao=!1;function Io(){var e;Ao||(it(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Do(Fo)},100))}),it(window,"blur",function(){return Do(br)}),Ao=!0)}function Fo(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 jo={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"},Mo=0;Mo<10;Mo++)jo[Mo+48]=jo[Mo+96]=String(Mo);for(var Po=65;Po<=90;Po++)jo[Po]=String.fromCharCode(Po);for(var Ro=1;Ro<=12;Ro++)jo[Ro+111]=jo[Ro+63235]="F"+Ro;var Go={};function Vo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Qo(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(" "),Vo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var u=t[s];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var l in t)e[l]=t[l];return e}function qo(e,t,n,r){var i=(t=Ho(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 Uo(e){var t="string"==typeof e?e:jo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Bo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function zo(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=jo[e.keyCode];return null!=n&&!e.altGraphKey&&Bo(n,e,t)}function Ho(e){return"string"==typeof e?Go[e]:e}function Wo(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)}Kr(e,function(){for(var t=r.length-1;t>=0;t--)co(e.doc,"",r[t].from,r[t].to,"+delete");Lr(e)})}Go.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"},Go.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"},Go.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"},Go.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"]},Go.default=y?Go.macDefault:Go.pcDefault;var Ko={selectAll:ro,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(e){return Wo(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:ge(t.head.line+1,0)}:{from:t.head,to:ge(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Wo(e,function(t){return{from:ge(t.from().line,0),to:ke(e.doc,ge(t.to().line+1,0))}})},delLineLeft:function(e){return Wo(e,function(e){return{from:ge(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Wo(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 Wo(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(ge(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ge(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Yo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Jo(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=Ge(e);)e=t.find(1,!0).line;return e}(n);r!=n&&(t=pe(r));return tt(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.charCoords(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.charCoords(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.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Jo(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(K(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Kr(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 ge(i.line,i.ch-1)),i.ch>0)i=new ge(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ge(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 ge(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ge(i.line-1,a.length-1),i,"+transpose"))}n.push(new bi(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Kr(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);Lr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Yo(e,t){var n=ue(e.doc,t),r=Qe(n);return r!=n&&(t=pe(r)),tt(!0,e,r,t,1)}function Jo(e,t){var n=Yo(e,t.line),r=ue(e.doc,n.line),i=Ze(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 ge(n.line,a?0:o,n.sticky)}return n}function $o(e,t,n){if("string"==typeof t&&!(t=Ko[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 Zo=new G;function Xo(e,t,n,r){var i=e.state.keySeq;if(i){if(Uo(t))return"handled";Zo.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),t=i+" "+t}var o=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"==o&&(e.state.keySeq=t),"handled"==o&&pn(e,"keyHandled",e,t,n),"handled"!=o&&"multi"!=o||(pt(n),mr(e)),i&&!o&&/\'$/.test(t)?(pt(n),!0):!!o}function ea(e,t){var n=zo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?Xo(e,"Shift-"+n,t,function(t){return $o(e,t,!0)})||Xo(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return $o(e,t)}):Xo(e,n,t,function(t){return $o(e,t)}))}var ta=null;function na(e){var t=this;if(t.curOp.focus=A(),!ut(t,e)){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=ea(t,e);f&&(ta=r?n:null,!r&&88==n&&!St&&(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||(S(t,"CodeMirror-crosshair"),at(document,"keyup",n),at(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),it(document,"keyup",n),it(document,"mouseover",n)}(t)}}function ra(e){16==e.keyCode&&(this.doc.sel.shift=!1),ut(this,e)}function ia(e){var t=this;if(!(Sn(t.display,e)||ut(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ta)return ta=null,void pt(e);if(!f||e.which&&!(e.which<10)||!ea(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return Xo(e,"'"+n+"'",t,function(t){return $o(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var oa,aa,sa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ua(e){var t=this,n=t.display;if(!(ut(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Sn(n,e))u||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!fa(t,e)){var r=lr(t,e),i=vt(e),o=r?function(e,t){var n=+new Date;return aa&&aa.compare(n,e,t)?(oa=aa=null,"triple"):oa&&oa.compare(n,e,t)?(aa=new sa(n,e,t),oa=null,"double"):(oa=new sa(n,e,t),aa=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 Xo(e,Bo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=Ko[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(gr,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),l=e.doc.sel;e.options.dragDrop&&Tt&&!e.isReadOnly()&&"single"==n&&(i=l.contains(t))>-1&&(ve((i=l.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,l=Yr(e,function(t){u&&(i.scroller.draggable=!1),e.state.draggingText=!1,at(document,"mouseup",l),at(document,"mousemove",c),at(i.scroller,"dragstart",f),at(i.scroller,"drop",l),o||(pt(t),r.addNew||Bi(e.doc,n,null,null,r.extend),u||a&&9==s?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};u&&(i.scroller.draggable=!0);e.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop();it(document,"mouseup",l),it(document,"mousemove",c),it(i.scroller,"dragstart",f),it(i.scroller,"drop",l),vr(e),setTimeout(function(){return i.input.focus()},20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;pt(t);var a,s,u=o.sel,l=u.ranges;r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?l[s]:new bi(n,n)):(a=o.sel.primary(),s=o.sel.primIndex);if("rectangle"==r.unit)r.addNew||(a=new bi(n,n)),n=lr(e,t,!0,!0),s=-1;else{var c=la(e,n,r.unit);a=r.extend?Ui(a,c.anchor,c.head,r.extend):c}r.addNew?-1==s?(s=l.length,Yi(o,Ti(l.concat([a]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?(Yi(o,Ti(l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Hi(o,s,a,B):(s=0,Yi(o,new yi([a],0),B),u=o.sel);var f=n;var p=i.wrapper.getBoundingClientRect(),d=0;function h(t){var l=++d,c=lr(e,t,!0,"rectangle"==r.unit);if(c)if(0!=ve(c,f)){e.curOp.focus=A(),function(t){if(0==ve(f,t))return;if(f=t,"rectangle"==r.unit){for(var i=[],l=e.options.tabSize,c=R(ue(o,n.line).text,n.ch,l),p=R(ue(o,t.line).text,t.ch,l),d=Math.min(c,p),h=Math.max(c,p),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=ue(o,m).text,y=H(v,d,l);d==h?i.push(new bi(ge(m,y),ge(m,y))):v.length>y&&i.push(new bi(ge(m,y),ge(m,H(v,h,l))))}i.length||i.push(new bi(n,n)),Yi(o,Ti(u.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,T=a,_=la(e,t,r.unit),w=T.anchor;ve(_.anchor,w)>0?(b=_.head,w=_e(T.from(),_.anchor)):(b=_.anchor,w=Te(T.to(),_.head));var k=u.ranges.slice(0);k[s]=new bi(ke(o,w),b),Yi(o,Ti(k,s),B)}}(c);var m=wr(i,o);(c.line>=m.to||c.line<m.from)&&setTimeout(Yr(e,function(){d==l&&h(t)}),150)}else{var g=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;g&&setTimeout(Yr(e,function(){d==l&&(i.scroller.scrollTop+=g,h(t))}),50)}}function m(t){e.state.selectingText=!1,d=1/0,pt(t),i.input.focus(),at(document,"mousemove",g),at(document,"mouseup",v),o.history.lastSelOrigin=null}var g=Yr(e,function(e){vt(e)?h(e):m(e)}),v=Yr(e,m);e.state.selectingText=v,it(document,"mousemove",g),it(document,"mouseup",v)}(e,r,t,o)}(t,r,o,e):gt(e)==n.scroller&&pt(e):2==i?(r&&Bi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(k?pa(t,e):vr(t)))}}function la(e,t,n){if("char"==n)return new bi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new bi(ge(t.line,0),ke(e.doc,ge(t.line+1,0)));var r=n(e,t);return new bi(r.from,r.to)}function ca(e,t,n,r){var i,o;try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&pt(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ct(e,n))return ht(t);o-=s.top-a.viewOffset;for(var u=0;u<e.options.gutters.length;++u){var l=a.gutters.childNodes[u];if(l&&l.getBoundingClientRect().right>=i)return st(e,n,e,de(e.doc,o),e.options.gutters[u],t),ht(t)}}function fa(e,t){return ca(e,t,"gutterClick",!0)}function pa(e,t){Sn(e.display,t)||function(e,t){if(!ct(e,"gutterContextMenu"))return!1;return ca(e,t,"gutterContextMenu",!1)}(e,t)||ut(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function da(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bn(e)}sa.prototype.compare=function(e,t,n){return this.time+400>e&&0==ve(t,this.pos)&&n==this.button};var ha={toString:function(){return"CodeMirror.Init"}},ma={},ga={};function va(e){fi(e),Zr(e),kr(e)}function ya(e,t,n){if(!t!=!(n&&n!=ha)){var r=e.display.dragFunctions,i=t?it:at;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 ba(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Ke(e)),ur(e),Zr(e),Bn(e),setTimeout(function(){return Pr(e)},100)}function Ta(e,t){var n=this;if(!(this instanceof Ta))return new Ta(e,t);this.options=t=t?P(t):{},P(ma,t,!1),pi(t);var r=t.value;"string"==typeof r&&(r=new Lo(r,t.mode,null,t.lineSeparator,t.direction)),this.doc=r;var i=new Ta.inputStyles[t.inputStyle](this),o=this.display=new se(e,r,i);for(var l in o.wrapper.CodeMirror=this,fi(this),da(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Vr(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 G,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;it(t.scroller,"mousedown",Yr(e,ua)),it(t.scroller,"dblclick",a&&s<11?Yr(e,function(t){if(!ut(e,t)){var n=lr(e,t);if(n&&!fa(e,t)&&!Sn(e.display,t)){pt(t);var r=e.findWordAt(n);Bi(e.doc,r.anchor,r.head)}}}):function(t){return ut(e,t)||pt(t)});k||it(t.scroller,"contextmenu",function(t){return pa(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}it(t.scroller,"touchstart",function(i){if(!ut(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(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)}}),it(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),it(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Sn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new bi(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new bi(ge(s.line,0),ke(e.doc,ge(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),pt(n)}i()}),it(t.scroller,"touchcancel",i),it(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Dr(e,t.scroller.scrollTop),Ir(e,t.scroller.scrollLeft,!0),st(e,"scroll",e))}),it(t.scroller,"mousewheel",function(t){return vi(e,t)}),it(t.scroller,"DOMMouseScroll",function(t){return vi(e,t)}),it(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){ut(e,t)||mt(t)},over:function(t){ut(e,t)||(!function(e,t){var n=lr(e,t);if(n){var r=document.createDocumentFragment();dr(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)),C(e.display.dragCursor,r)}}(e,t),mt(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Co<100))mt(t);else if(!ut(e,t)&&!Sn(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:Yr(e,No),leave:function(t){ut(e,t)||xo(e)}};var u=t.input.getField();it(u,"keyup",function(t){return ra.call(e,t)}),it(u,"keydown",Yr(e,na)),it(u,"keypress",Yr(e,ia)),it(u,"focus",function(t){return yr(e,t)}),it(u,"blur",function(t){return br(e,t)})}(this),Io(),qr(this),this.curOp.forceUpdate=!0,Di(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout(M(yr,this),20):br(this),ga)ga.hasOwnProperty(l)&&ga[l](n,t[l],ha);Er(this),t.finishInit&&t.finishInit(this);for(var c=0;c<_a.length;++c)_a[c](n);Ur(this),u&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ta.defaults=ma,Ta.optionHandlers=ga;var _a=[];function wa(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=qt(e,t).state:n="prev");var a=e.options.tabSize,s=ue(o,t),u=R(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=o.mode.indent(i,s.text.slice(c.length),s.text))==q||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?R(ue(o,t-1).text,null,a):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var f="",p=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/a);d;--d)p+=a,f+="\t";if(p<l&&(f+=K(l-p)),f!=c)return co(o,f,ge(t,0),ge(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=ge(t,c.length);Hi(o,h,new bi(g,g));break}}}Ta.defineInitHook=function(e){return _a.push(e)};var ka=null;function Ea(e){ka=e}function Oa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a,s=e.state.pasteIncoming||"paste"==i,u=Et(t),l=null;if(s&&r.ranges.length>1)if(ka&&ka.text.join("\n")==t){if(r.ranges.length%ka.text.length==0){l=[];for(var c=0;c<ka.text.length;c++)l.push(o.splitLines(ka.text[c]))}}else u.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=J(u,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=ge(d.line,d.ch-n):e.state.overwrite&&!s?h=ge(h.line,Math.min(ue(o,h.line).text.length,h.ch+Y(u).length)):ka&&ka.lineWise&&ka.text.join("\n")==t&&(d=h=ge(d.line,0))),a=e.curOp.updateInput;var m={from:d,to:h,text:l?l[f%l.length]:u,origin:i||(s?"paste":e.state.cutIncoming?"cut":"+input")};oo(e.doc,m),pn(e,"inputRead",e,m)}t&&!s&&La(e,t),Lr(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||Kr(t,function(){return Oa(t,n,0,null,"paste")}),!0}function La(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=wa(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=wa(e,i.head.line,"smart"));a&&pn(e,"electricInput",e,i.head.line)}}}function Ca(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:ge(i,0),head:ge(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Na(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function xa(){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 u?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Na(e),t}function Da(e,t,n,r,i){var o=t,a=n,s=ue(e,t.line);function u(r){var o,a;if(null==(o=i?nt(e.cm,s,t,n):et(s,t,n))){if(r||(a=t.line+n)<e.first||a>=e.first+e.size||(t=new ge(a,t.ch,t.sticky),!(s=ue(e,a))))return!1;t=tt(i,e.cm,s,t.line,n)}else t=o;return!0}if("char"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var l=null,c="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var d=s.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"),l&&l!=h){n<0&&(n=1,u(),t.sticky="after");break}if(h&&(l=h),n>0&&!u(!p))break}var m=to(e,t,o,a,!0);return ye(o,m)&&(m.hitSide=!0),m}function Aa(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var u=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(u-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Xn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ia=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new G,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Fa(e,t){var n=jn(e,t.line);if(!n||n.hidden)return null;var r=ue(e.doc,t.line),i=In(n,r,t.line),o=Ze(r,e.doc.direction),a="left";o&&(a=Je(o,t.ch)%2?"right":"left");var s=Vn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function ja(e,t){return t&&(e.bad=!0),e}function Ma(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return ja(e.clipPos(ge(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 Pa(o,t,n)}}function Pa(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return ja(ge(pe(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 ja(ge(pe(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var u=e.measure,l=u.maps;function c(t,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var o=i<0?u.map:l[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=pe(i<0?e.line:e.rest[i]),f=o[a]+r;return(r<0||s!=t)&&(f=o[a+(r?1:0)]),ge(c,f)}}}var f=c(a,s,n);if(f)return ja(f,i);for(var p=s.nextSibling,d=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(f=c(p,p.firstChild,0))return ja(ge(f.line,f.ch-d),i);d+=p.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(f=c(h,h.firstChild,-1))return ja(ge(f.line,f.ch+m),i);m+=h.textContent.length}}Ia.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){if(!ut(r,e)){if(r.somethingSelected())Ea({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ca(r);Ea({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=ka.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=xa(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=ka.text.join("\n");var u=document.activeElement;j(s),setTimeout(function(){r.display.lineSpace.removeChild(a),u.focus(),u==i&&n.showPrimarySelection()},50)}}Na(i,r.options.spellcheck),it(i,"paste",function(e){ut(r,e)||Sa(e,r)||s<=11&&setTimeout(Yr(r,function(){return t.updateFromDOM()}),20)}),it(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),it(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),it(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),it(i,"touchstart",function(){return n.forceCompositionEnd()}),it(i,"input",function(){t.composing||t.readFromDOMSoon()}),it(i,"copy",o),it(i,"cut",o)},Ia.prototype.prepareSelection=function(){var e=pr(this.cm,!1);return e.focus=this.cm.state.focused,e},Ia.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ia.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=Ma(t,e.anchorNode,e.anchorOffset),s=Ma(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ve(_e(a,s),i)||0!=ve(Te(a,s),o)){var u=t.display.view,l=i.line>=t.display.viewFrom&&Fa(t,i)||{node:u[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Fa(t,o);if(!c){var f=u[u.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(l&&c){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=O(l.node,l.offset,c.offset,c.node)}catch(e){}d&&(!n&&t.state.focused?(e.collapse(l.node,l.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()}}},Ia.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)},Ia.prototype.showMultipleSelections=function(e){C(this.cm.display.cursorDiv,e.cursors),C(this.cm.display.selectionDiv,e.selection)},Ia.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ia.prototype.selectionInEditor=function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Ia.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ia.prototype.blur=function(){this.div.blur()},Ia.prototype.getField=function(){return this.div},Ia.prototype.supportsTouch=function(){return!0},Ia.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Kr(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))})},Ia.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ia.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;if(g&&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=Ma(t,e.anchorNode,e.anchorOffset),r=Ma(t,e.focusNode,e.focusOffset);n&&r&&Kr(t,function(){Yi(t.doc,_i(n,r),U),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Ia.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ge(a.line-1,ue(r.doc,a.line-1).length)),s.ch==ue(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ge(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=cr(r,a.line))?(t=pe(i.view[0].line),n=i.view[0].node):(t=pe(i.view[e].line),n=i.view[e-1].node.nextSibling);var u,l,c=cr(r,s.line);if(c==i.view.length-1?(u=i.viewTo-1,l=i.lineDiv.lastChild):(u=pe(i.view[c+1].line)-1,l=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,s=e.doc.lineSeparator();function u(){a&&(o+=s,a=!1)}function l(e){e&&(u(),o+=e)}function c(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void l(n||t.textContent.replace(/\u200b/g,""));var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(ge(r,0),ge(i+1,0),(m=+f,function(e){return e.id==m}));return void(p.length&&(o=p[0].find())&&l(le(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var d=/^(pre|div|p)$/i.test(t.nodeName);d&&u();for(var h=0;h<t.childNodes.length;h++)c(t.childNodes[h]);d&&(a=!0)}else 3==t.nodeType&&l(t.nodeValue);var m}for(;c(t),t!=n;)t=t.nextSibling;return o}(r,n,l,t,u)),p=le(r.doc,ge(t,0),ge(u,ue(r.doc,u).text.length));f.length>1&&p.length>1;)if(Y(f)==Y(p))f.pop(),p.pop(),u--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,m=f[0],g=p[0],v=Math.min(m.length,g.length);d<v&&m.charCodeAt(d)==g.charCodeAt(d);)++d;for(var y=Y(f),b=Y(p),T=Math.min(y.length-(1==f.length?d:0),b.length-(1==p.length?d:0));h<T&&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 _=ge(t,d),w=ge(u,p.length?Y(p).length-h:0);return f.length>1||f[0]||ve(_,w)?(co(r.doc,f,_,w,"+input"),!0):void 0},Ia.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ia.prototype.reset=function(){this.forceCompositionEnd()},Ia.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ia.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))},Ia.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Kr(this.cm,function(){return Zr(e.cm)})},Ia.prototype.setUneditable=function(e){e.contentEditable="false"},Ia.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||Yr(this.cm,Oa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ia.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ia.prototype.onContextMenu=function(){},Ia.prototype.resetPosition=function(){},Ia.prototype.needsContentAttribute=!0;var Ra=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new G,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null};Ra.prototype.init=function(e){var t=this,n=this,r=this.cm,i=this.wrapper=xa(),o=this.textarea=i.firstChild;function u(e){if(!ut(r,e)){if(r.somethingSelected())Ea({lineWise:!1,text:r.getSelections()}),n.inaccurateSelection&&(n.prevInput="",n.inaccurateSelection=!1,o.value=ka.text.join("\n"),j(o));else{if(!r.options.lineWiseCopyCut)return;var t=Ca(r);Ea({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"),it(o,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),it(o,"paste",function(e){ut(r,e)||Sa(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),it(o,"cut",u),it(o,"copy",u),it(e.scroller,"paste",function(t){Sn(e,t)||ut(r,t)||(r.state.pasteIncoming=!0,n.focus())}),it(e.lineSpace,"selectstart",function(t){Sn(e,t)||pt(t)}),it(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"})}}),it(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Ra.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=pr(e);if(e.options.moveInputWithCursor){var i=Jn(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},Ra.prototype.showSelection=function(e){var t=this.cm.display;C(t.cursorDiv,e.cursors),C(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ra.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t,n,r=this.cm,i=r.doc;if(r.somethingSelected()){this.prevInput="";var o=i.sel.primary(),u=(t=St&&(o.to().line-o.from().line>100||(n=r.getSelection()).length>1e3))?"-":n||r.getSelection();this.textarea.value=u,r.state.focused&&j(this.textarea),a&&s>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},Ra.prototype.getField=function(){return this.textarea},Ra.prototype.supportsTouch=function(){return!1},Ra.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||A()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ra.prototype.blur=function(){this.textarea.blur()},Ra.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ra.prototype.receivedFocus=function(){this.slowPoll()},Ra.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ra.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))})},Ra.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ot(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var u=0,l=Math.min(r.length,i.length);u<l&&r.charCodeAt(u)==i.charCodeAt(u);)++u;return Kr(t,function(){Oa(t,i.slice(u),r.length-u,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ra.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ra.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ra.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea,o=lr(n,e),l=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Yr(n,Yi)(n.doc,_i(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);",u&&(d=window.scrollY),r.input.focus(),u&&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&&s>=9&&g(),k){mt(e);var m=function(){at(window,"mouseup",m),setTimeout(v,20)};it(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=c,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?Yr(n,ro)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ra.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Ra.prototype.setUneditable=function(){},Ra.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!=ha&&i(e,t,n)}:i)}e.defineOption=n,e.Init=ha,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Si(e)},!0),n("indentUnit",2,Si,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Li(e),Bn(e),Zr(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(ge(r,o))}r++});for(var i=n.length-1;i>=0;i--)co(e.doc,t,n[i],ge(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!=ha&&e.refresh()}),n("specialCharPlaceholder",nn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",v?"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",!T),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){da(e),va(e)},!0),n("keyMap","default",function(e,t,n){var r=Ho(t),i=n!=ha&&Ho(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,ba,!0),n("gutters",[],function(e){pi(e.options),va(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Pr(e)},!0),n("scrollbarStyle","native",function(e){Vr(e),Pr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e){pi(e.options),va(e)},!0),n("firstLineNumber",1,va,!0),n("lineNumberFormatter",function(e){return e},va,!0),n("showCursorWhenSelecting",!1,fr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("readOnly",!1,function(e,t){"nocursor"==t&&(br(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,ya),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,fr,!0),n("singleCursorHeightPerLine",!0,fr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Li,!0),n("addModeClass",!1,Li,!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,Li,!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)}(Ta),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)&&Yr(this,t[e])(this,n,i),st(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"](Ho(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:Jr(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++,Zr(this)}),removeOverlay:Jr(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 Zr(this)}}),indentLine:Jr(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),he(this.doc,e)&&wa(this,e,t,n)}),indentSelection:Jr(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&&(wa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Lr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=s;u<n;++u)wa(this,u,e);var l=this.doc.sel.ranges;0==o.ch&&t.length==l.length&&l[r].from().ch>0&&Hi(this.doc,r,new bi(o,l[r].to()),U)}}}),getTokenAt:function(e,t){return Wt(this,e,t)},getLineTokens:function(e,t){return Wt(this,ge(e),t,!0)},getTokenTypeAt:function(e){e=ke(this.doc,e);var t,n=Qt(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 s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var u=0;u<i._global.length;u++){var l=i._global[u];l.pred(o,this)&&-1==V(r,l.val)&&r.push(l.val)}return r},getStateAfter:function(e,t){var n=this.doc;return qt(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 Jn(this,null==e?n.head:"object"==typeof e?ke(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Yn(this,ke(this.doc,e),t||"page")},coordsChar:function(e,t){return Xn(this,(e=Kn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Kn(this,{top:e,left:0},t||"page").top,de(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 Wn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-He(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,u=this.display,l=(e=Jn(this,ke(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),u.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var f=Math.max(u.wrapper.clientHeight,this.doc.height),p=Math.max(u.sizer.clientWidth,u.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(l=e.bottom),c+t.offsetWidth>p&&(c=p-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(c=u.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(u.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:l,right:c+t.offsetWidth,bottom:l+t.offsetHeight},null!=(s=Or(o,a)).scrollTop&&Dr(o,s.scrollTop),null!=s.scrollLeft&&Ir(o,s.scrollLeft))},triggerOnKeyDown:Jr(na),triggerOnKeyPress:Jr(ia),triggerOnKeyUp:ra,triggerOnMouseDown:Jr(ua),execCommand:function(e){if(Ko.hasOwnProperty(e))return Ko[e].call(null,this)},triggerElectric:Jr(function(e){La(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ke(this.doc,e),a=0;a<t&&!(o=Da(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Jr(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Da(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},z)}),deleteH:Jr(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Wo(this,function(n){var i=Da(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=ke(this.doc,e),s=0;s<t;++s){var u=Jn(this,a,"div");if(null==o?o=u.left:u.left=o,(a=Aa(this,u,i,n)).hitSide)break}return a},moveV:Jr(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=Jn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var u=Aa(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Sr(n,Yn(n,u,"div").top-s.top),u},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 bi(ge(e.line,n),ge(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),st(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==A()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Jr(function(e,t){Cr(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:An(this),clientWidth:Dn(this)}},scrollIntoView:Jr(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:ge(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){Nr(e),e.curOp.scrollToPos=t}(this,e):xr(this,e.from,e.to,e.margin)}),setSize:Jr(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&&Un(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){Xr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,st(this,"refresh",this)}),operation:function(e){return Kr(this,e)},refresh:Jr(function(){var e=this.display.cachedTextHeight;Zr(this),this.curOp.forceUpdate=!0,Bn(this),Cr(this,this.doc.scrollLeft,this.doc.scrollTop),li(this),(null==e||Math.abs(e-rr(this.display))>.5)&&ur(this),st(this,"refresh",this)}),swapDoc:Jr(function(e){var t=this.doc;return t.cm=null,Di(this,e),Bn(this),this.display.input.reset(),Cr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,pn(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}},ft(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})}}(Ta);var Ga,Va="iter insert remove copy getEditor constructor".split(" ");for(var Qa in Lo.prototype)Lo.prototype.hasOwnProperty(Qa)&&V(Va,Qa)<0&&(Ta.prototype[Qa]=function(e){return function(){return e.apply(this.doc,arguments)}}(Lo.prototype[Qa]));return ft(Lo),Ta.inputStyles={textarea:Ra,contenteditable:Ia},Ta.defineMode=function(e){Ta.defaults.mode||"null"==e||(Ta.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ct[e]=t}.apply(this,arguments)},Ta.defineMIME=function(e,t){Nt[e]=t},Ta.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ta.defineMIME("text/plain","null"),Ta.defineExtension=function(e,t){Ta.prototype[e]=t},Ta.defineDocExtension=function(e,t){Lo.prototype[e]=t},Ta.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=s.getValue()}var i;if(e.form&&(it(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&&(at(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Ta(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},(Ga=Ta).off=at,Ga.on=it,Ga.wheelEventPixels=gi,Ga.Doc=Lo,Ga.splitLines=Et,Ga.countColumn=R,Ga.findColumn=H,Ga.isWordChar=ee,Ga.Pass=q,Ga.signal=st,Ga.Line=Jt,Ga.changeEnd=wi,Ga.scrollbarModel=Gr,Ga.Pos=ge,Ga.cmpPos=ve,Ga.modes=Ct,Ga.mimeModes=Nt,Ga.resolveMode=xt,Ga.getMode=Dt,Ga.modeExtensions=At,Ga.extendMode=It,Ga.copyState=Ft,Ga.startState=Mt,Ga.innerMode=jt,Ga.commands=Ko,Ga.keyMap=Go,Ga.keyName=zo,Ga.isModifierKey=Uo,Ga.lookupKey=qo,Ga.normalizeKeyMap=Qo,Ga.StringStream=Pt,Ga.SharedTextMarker=ko,Ga.TextMarker=_o,Ga.LineWidget=yo,Ga.e_preventDefault=pt,Ga.e_stopPropagation=dt,Ga.e_stop=mt,Ga.addClass=I,Ga.contains=D,Ga.rmClass=S,Ga.keyNames=jo,Ta.version="5.27.2",Ta},"object"==typeof n&&void 0!==t?t.exports=i():r.CodeMirror=i()},{}],66:[function(e,t,n){t.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:""}},{}],67:[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},t.exports=i},{}],68:[function(e,t,n){(function(e){"use strict";var n=function(e){};"production"!==e.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),t.exports=function(e,t,r,i,o,a,s,u){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,i,o,a,s,u],f=0;(l=new Error(t.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}}).call(this,e("_process"))},{_process:229}],69:[function(e,t,n){(function(n){"use strict";var r=e("./emptyFunction");"production"!==n.env.NODE_ENV&&(r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}}).apply(void 0,[t].concat(r))}}),t.exports=r}).call(this,e("_process"))},{"./emptyFunction":67,_process:229}],70:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLLanguageService=void 0;var r=e("graphql/language/kinds"),i=e("graphql"),o=e("./getAutocompleteSuggestions"),a=e("./getDiagnostics"),s=e("./getDefinition"),u=e("graphql-language-service-utils");n.GraphQLLanguageService=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._graphQLCache=e,this._graphQLConfig=e.getGraphQLConfig()}return t.prototype.getDiagnostics=function(t,n){var r,o,s,u,l,c,f,p,d;return regeneratorRuntime.async(function(h){for(;;)switch(h.prev=h.next){case 0:if(r=t,o=this._graphQLConfig.getAppConfigNameByFilePath(n),s=void 0,u=void 0,!this._graphQLConfig.getSchemaPath(o)){h.next=18;break}return h.next=7,regeneratorRuntime.awrap(this._graphQLCache.getSchema(this._graphQLConfig.getSchemaPath(o)));case 7:return s=h.sent,h.next=10,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDefinitions(this._graphQLConfig,o));case 10:return l=h.sent,h.next=13,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDependencies(t,l));case 13:c=h.sent,f=c.reduce(function(e,t){return e+" "+(0,i.print)(t.definition)},""),r=r+" "+f,(p=this._graphQLConfig.getCustomValidationRulesModulePath(o))&&(d=e.resolve(""+p))&&(u=e(""+d)(this._graphQLConfig));case 18:return h.abrupt("return",(0,a.getDiagnostics)(r,s,u));case 19:case"end":return h.stop()}},null,this)},t.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.getAppConfigNameByFilePath(n),i=void 0,!this._graphQLConfig.getSchemaPath(r)){a.next=8;break}return a.next=5,regeneratorRuntime.awrap(this._graphQLCache.getSchema(this._graphQLConfig.getSchemaPath(r)));case 5:if(!(i=a.sent)){a.next=8;break}return a.abrupt("return",(0,o.getAutocompleteSuggestions)(i,e,t));case 8:return a.abrupt("return",[]);case 9:case"end":return a.stop()}},null,this)},t.prototype.getDefinition=function(e,t,n){var o,a,l;return regeneratorRuntime.async(function(c){for(;;)switch(c.prev=c.next){case 0:o=this._graphQLConfig.getAppConfigNameByFilePath(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(!(l=(0,u.getASTNodeAtPosition)(e,a,t))){c.next=16;break}c.t1=l.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,l,n,this._graphQLConfig,o));case 15:return c.abrupt("return",(0,s.getDefinitionQueryResultForDefinitionNode)(n,e,l));case 16:return c.abrupt("return",null);case 17:case"end":return c.stop()}},null,this,[[2,6]])},t.prototype._getDefinitionForFragmentSpread=function(e,t,n,i,o,a){var u,l,c,f,p;return regeneratorRuntime.async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDefinitions(o,a));case 2:return u=d.sent,d.next=5,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDependenciesForAST(t,u));case 5:return l=d.sent,c=t.definitions.filter(function(e){return e.kind===r.FRAGMENT_DEFINITION}),f=c.map(function(t){return{filePath:i,content:e,definition:t}}),d.next=11,regeneratorRuntime.awrap((0,s.getDefinitionQueryResultForFragmentSpread)(e,n,l.concat(f)));case 11:return p=d.sent,d.abrupt("return",p);case 13:case"end":return d.stop()}},null,this)},t}()},{"./getAutocompleteSuggestions":72,"./getDefinition":73,"./getDiagnostics":74,graphql:95,"graphql-language-service-utils":84,"graphql/language/kinds":105}],71:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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},n.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},n.forEachState=o,n.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},n.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:u(s(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,s(e.string))};var r=e("graphql"),i=e("graphql/type/introspection");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 s(e){return e.toLowerCase().replace(/\W/g,"")}function u(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 s=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+s),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}},{graphql:95,"graphql/type/introspection":118}],72:[function(e,t,n){"use strict";Object.defineProperty(n,"__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};n.getAutocompleteSuggestions=function(e,t,n,o){var u=o||function(e,t){var n=null,i=null,o=null,a=s(e,function(e,a,s,u){if(u===t.line&&e.getCurrentPosition()>=t.character)return n=s,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),l="Invalid"===u.state.kind?u.state.prevState:u.state;if(!l)return[];var c=l.kind,f=l.step,p=function(e,t){var n=void 0,r=void 0,o=void 0,s=void 0,u=void 0,l=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?(u=f?(0,a.getFieldDef)(e,f,t.name):null,p=u?u.type:null):u=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=u&&u.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}l=n&&n.type;break;case"EnumValue":var g=(0,i.getNamedType)(l);s=g instanceof i.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}(g.getValues(),function(e){return e.value===t.name}):null;break;case"ListValue":var v=(0,i.getNullableType)(l);l=v instanceof i.GraphQLList?v.ofType:null;break;case"ObjectValue":var y=(0,i.getNamedType)(l);c=y instanceof i.GraphQLInputObjectType?y.getFields():null;break;case"ObjectField":var b=t.name&&c?c[t.name]:null;l=b&&b.type;break;case"NamedType":t.name&&(p=e.getType(t.name))}}),{argDef:n,argDefs:r,directiveDef:o,enumValue:s,fieldDef:u,inputType:l,objectFieldDefs:c,parentType:f,type:p}}(e,u.state);if("Document"===c)return(0,a.hintList)(u,[{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[]}(u,p,e);if("Arguments"===c||"Argument"===c&&0===f){var d=p.argDefs;if(d)return(0,a.hintList)(u,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)(u,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[]}(u,p);if("TypeCondition"===c&&1===f||"NamedType"===c&&null!=l.prevState&&"TypeCondition"===l.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),s=n.getPossibleTypes(o),u=Object.create(null);s.forEach(function(e){e.getInterfaces().forEach(function(e){u[e.name]=e})}),r=s.concat((0,a.objectValues)(u))}else r=[t.parentType];else{var l=n.getTypeMap();r=(0,a.objectValues)(l).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||""}}))}(u,p,e);if("FragmentSpread"===c&&1===f)return function(e,t,n,r){var o=n.getTypeMap(),u=(0,a.getDefinitionState)(e.state),l=function(e){var t=[];return s(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]&&!(u&&"FragmentDefinition"===u.kind&&u.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,l.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}}))}(u,p,e,t);if("VariableDefinition"===c&&2===f||"ListType"===c&&1===f||"NamedType"===c&&l.prevState&&("VariableDefinition"===l.prevState.kind||"ListType"===l.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}}))}(u,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[]}(u,l,e);return[]};var i=e("graphql"),o=e("graphql-language-service-parser"),a=e("./autocompleteUtils");function s(e,t){for(var n=e.split("\n"),r=(0,o.onlineParser)(),i=r.startState(),a="",s=new o.CharacterStream(""),u=0;u<n.length;u++){for(s=new o.CharacterStream(n[u]);!s.eol();){if("BREAK"===t(s,i,a=r.token(s,i),u))break}t(s,i,a,u),i.kind||(i=r.startState())}return{start:s.getStartOfToken(),end:s.getCurrentPosition(),string:s.current(),state:i,style:a}}},{"./autocompleteUtils":71,graphql:95,"graphql-language-service-parser":80}],73:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LANGUAGE=void 0,n.getDefinitionQueryResultForFragmentSpread=function(e,n,r){var i,o,a;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(i=n.name.value,0!==(o=r.filter(function(e){var t=e.definition;return t.name.value===i})).length){s.next=5;break}return t.stderr.write("Definition not found for GraphQL fragment "+i),s.abrupt("return",{queryRange:[],definitions:[]});case 5:return a=o.map(function(e){var t=e.filePath,n=e.content,r=e.definition;return c(t||"",n,r)}),s.abrupt("return",{definitions:a,queryRange:a.map(function(t){return u(e,n)})});case 7:case"end":return s.stop()}},null,this)},n.getDefinitionQueryResultForDefinitionNode=function(e,t,n){return{definitions:[c(e,t,n)],queryRange:n.name?[u(t,n.name)]:[]}};var r,i=e("graphql-language-service-utils"),o=e("assert"),a=(r=o)&&r.__esModule?r:{default:r};var s=n.LANGUAGE="GraphQL";function u(e,t){var n=t.loc;return(0,a.default)(n,"Expected ASTNode to have a location."),(0,i.locToRange)(e,n)}function l(e,t){var n=t.loc;return(0,a.default)(n,"Expected ASTNode to have a location."),(0,i.offsetToPosition)(e,n.start)}function c(e,t,n){var r=n.name;return(0,a.default)(r,"Expected ASTNode to have a Name."),{path:e,position:l(t,r),range:u(t,n),name:r.value||"",language:s,projectRoot:e}}}).call(this,e("_process"))},{_process:229,assert:35,"graphql-language-service-utils":84}],74:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SEVERITY=void 0,n.getDiagnostics=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=null;try{r=(0,a.parse)(e)}catch(t){var i=function(e,t){var n=(0,s.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,l=0;l<e.line;l++)for(a=new s.CharacterStream(i[l]);!a.eol();){var c=n.token(a,r);if("invalidchar"===c)break}(0,o.default)(a,"Expected Parser stream to be available.");var f=e.line-1,p=a.getStartOfToken(),d=a.getCurrentPosition();return new u.Range(new u.Position(f,p),new u.Position(f,d))}(t.locations[0],e);return[{severity:l.ERROR,message:t.message,source:"GraphQL: Syntax",range:i}]}if(!t)return[];var p=c((0,u.validateWithCustomRules)(t,r,n),function(e){return f(e,l.ERROR,"Validation")}),d=a.findDeprecatedUsages?c((0,a.findDeprecatedUsages)(t,r),function(e){return f(e,l.WARNING,"Deprecation")}):[];return p.concat(d)};var r,i=e("assert"),o=(r=i)&&r.__esModule?r:{default:r},a=e("graphql"),s=e("graphql-language-service-parser"),u=e("graphql-language-service-utils");var l=n.SEVERITY={ERROR:1,WARNING:2,INFORMATION:3,HINT:4};function c(e,t){return Array.prototype.concat.apply([],e.map(t))}function f(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],s=function(e){var t=e.loc;return(0,o.default)(t,"Expected ASTNode to have a location."),t}(i),l=a.column+(s.end-s.start);return{source:"GraphQL: "+n,message:e.message,severity:t,range:new u.Range(new u.Position(a.line-1,a.column-1),new u.Position(a.line-1,l))}}):[]}},{assert:35,graphql:95,"graphql-language-service-parser":80,"graphql-language-service-utils":84}],75:[function(e,t,n){"use strict";Object.defineProperty(n,"__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};n.getOutline=function(e){var t=void 0;try{t=(0,i.parse)(e)}catch(e){return null}var n=(l=e,c=function(e){return{representativeName:e.name,startPosition:(0,a.offsetToPosition)(l,e.loc.start),endPosition:(0,a.offsetToPosition)(l,e.loc.end),children:e.selectionSet||[]}},{Field:function(e){var t=e.alias?[u("plain",e.alias),u("plain",": ")]:[];return t.push(u("plain",e.name)),r({tokenizedText:t},c(e))},OperationDefinition:function(e){return r({tokenizedText:[u("keyword",e.operation),u("whitespace"," "),u("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:[u("keyword","fragment"),u("whitespace"," "),u("class-name",e.name)]},c(e))},FragmentSpread:function(e){return r({tokenizedText:[u("plain","..."),u("class-name",e.name)]},c(e))},InlineFragment:function(e){return e.selectionSet}});var l,c;return{outlineTrees:(0,i.visit)(t,{leave:function(e){return s[e.kind]&&n[e.kind]?n[e.kind](e):null}})}};var i=e("graphql"),o=e("graphql/language/kinds"),a=e("graphql-language-service-utils"),s={Field:!0,OperationDefinition:!0,Document:!0,SelectionSet:!0,Name:!0,FragmentDefinition:!0,FragmentSpread:!0,InlineFragment:!0};function u(e,t){return{kind:e,value:t}}},{graphql:95,"graphql-language-service-utils":84,"graphql/language/kinds":105}],76:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./autocompleteUtils");Object.defineProperty(n,"getDefinitionState",{enumerable:!0,get:function(){return r.getDefinitionState}}),Object.defineProperty(n,"getFieldDef",{enumerable:!0,get:function(){return r.getFieldDef}}),Object.defineProperty(n,"forEachState",{enumerable:!0,get:function(){return r.forEachState}}),Object.defineProperty(n,"objectValues",{enumerable:!0,get:function(){return r.objectValues}}),Object.defineProperty(n,"hintList",{enumerable:!0,get:function(){return r.hintList}});var i=e("./getAutocompleteSuggestions");Object.defineProperty(n,"getAutocompleteSuggestions",{enumerable:!0,get:function(){return i.getAutocompleteSuggestions}});var o=e("./getDefinition");Object.defineProperty(n,"LANGUAGE",{enumerable:!0,get:function(){return o.LANGUAGE}}),Object.defineProperty(n,"getDefinitionQueryResultForFragmentSpread",{enumerable:!0,get:function(){return o.getDefinitionQueryResultForFragmentSpread}}),Object.defineProperty(n,"getDefinitionQueryResultForDefinitionNode",{enumerable:!0,get:function(){return o.getDefinitionQueryResultForDefinitionNode}});var a=e("./getDiagnostics");Object.defineProperty(n,"getDiagnostics",{enumerable:!0,get:function(){return a.getDiagnostics}});var s=e("./getOutline");Object.defineProperty(n,"getOutline",{enumerable:!0,get:function(){return s.getOutline}});var u=e("./GraphQLLanguageService");Object.defineProperty(n,"GraphQLLanguageService",{enumerable:!0,get:function(){return u.GraphQLLanguageService}})},{"./GraphQLLanguageService":70,"./autocompleteUtils":71,"./getAutocompleteSuggestions":72,"./getDefinition":73,"./getDiagnostics":74,"./getOutline":75}],77:[function(e,t,n){"use strict";Object.defineProperty(n,"__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}();n.default=r},{}],78:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.opt=function(e){return{ofRule:e}},n.list=function(e,t){return{ofRule:e,isList:!0,separator:t}},n.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},n.t=function(e,t){return{style:t,match:function(t){return t.kind===e}}},n.p=function(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}},{}],79:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ParseRules=n.LexRules=n.isIgnored=void 0;var r,i=e("./RuleHelpers");n.isIgnored=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e},n.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:/^#.*/},n.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}}}},{"./RuleHelpers":78}],80:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./CharacterStream");Object.defineProperty(n,"CharacterStream",{enumerable:!0,get:function(){return s(r).default}});var i=e("./Rules");Object.defineProperty(n,"LexRules",{enumerable:!0,get:function(){return i.LexRules}}),Object.defineProperty(n,"ParseRules",{enumerable:!0,get:function(){return i.ParseRules}}),Object.defineProperty(n,"isIgnored",{enumerable:!0,get:function(){return i.isIgnored}});var o=e("./RuleHelpers");Object.defineProperty(n,"butNot",{enumerable:!0,get:function(){return o.butNot}}),Object.defineProperty(n,"list",{enumerable:!0,get:function(){return o.list}}),Object.defineProperty(n,"opt",{enumerable:!0,get:function(){return o.opt}}),Object.defineProperty(n,"p",{enumerable:!0,get:function(){return o.p}}),Object.defineProperty(n,"t",{enumerable:!0,get:function(){return o.t}});var a=e("./onlineParser");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"onlineParser",{enumerable:!0,get:function(){return s(a).default}})},{"./CharacterStream":77,"./RuleHelpers":78,"./Rules":79,"./onlineParser":81}],81:[function(e,t,n){"use strict";Object.defineProperty(n,"__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};n.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 s(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?u(t):t.needsAdvance&&(t.needsAdvance=!1,l(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+/),s(a,t,"Invalid"),"invalidchar";if("Comment"===h.kind)return s(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 g=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&g.length>0&&g[g.length-1]<t.indentLevel&&(t.indentLevel=g[g.length-1])}for(;t.rule;){var v="function"==typeof t.rule?0===t.step?t.rule(h,e):null:t.rule[t.step];if(t.needsSeperator&&(v=v&&v.separator),v){if(v.ofRule&&(v=v.ofRule),"string"==typeof v){s(i,t,v);continue}if(v.match&&v.match(h))return v.update&&v.update(t,h),"Punctuation"===h.kind?l(t,!0):t.needsAdvance=!0,v.style}f(t)}return o(t,m),s(a,t,"Invalid"),"invalidchar"}(t,n,e)}}};var i=e("./Rules");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 s(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 u(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 l(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);)u(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);)u(e);e.rule&&l(e,!1)}},{"./Rules":79}],82:[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(n,"__esModule",{value:!0}),n.offsetToPosition=a,n.locToRange=function(e,t){var n=a(e,t.start),r=a(e,t.end);return new i(n,r)};var i=n.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=n.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)}},{}],83:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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.start<=o&&o<=e.loc.end))return!1;a=e},leave:function(e){if(e.loc.start<=o&&o<=e.loc.end)return!1}}),a},n.pointToOffset=i;e("./Range");var r=e("graphql");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)}},{"./Range":82,graphql:95}],84:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./getASTNodeAtPosition");Object.defineProperty(n,"getASTNodeAtPosition",{enumerable:!0,get:function(){return r.getASTNodeAtPosition}}),Object.defineProperty(n,"pointToOffset",{enumerable:!0,get:function(){return r.pointToOffset}});var i=e("./Range");Object.defineProperty(n,"Position",{enumerable:!0,get:function(){return i.Position}}),Object.defineProperty(n,"Range",{enumerable:!0,get:function(){return i.Range}}),Object.defineProperty(n,"locToRange",{enumerable:!0,get:function(){return i.locToRange}}),Object.defineProperty(n,"offsetToPosition",{enumerable:!0,get:function(){return i.offsetToPosition}});var o=e("./validateWithCustomRules");Object.defineProperty(n,"validateWithCustomRules",{enumerable:!0,get:function(){return o.validateWithCustomRules}})},{"./Range":82,"./getASTNodeAtPosition":83,"./validateWithCustomRules":85}],85:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.validateWithCustomRules=function(t,n,i){var o=e("graphql/validation/rules/NoUnusedFragments").NoUnusedFragments,a=r.specifiedRules.filter(function(e){return e!==o}),s=new r.TypeInfo(t);i&&Array.prototype.push.apply(a,i);var u=(0,r.validate)(t,n,a,s);if(u.length>0)return u;return[]};var r=e("graphql")},{graphql:95,"graphql/validation/rules/NoUnusedFragments":152}],86:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=i;var r=e("../language/location");function i(e,t,n,o,a,s){var u=n;if(!u&&t&&t.length>0){var l=t[0];u=l&&l.loc&&l.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=u;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:u||void 0},positions:{value:c||void 0},originalError:{value:s}}),s&&s.stack?Object.defineProperty(this,"stack",{value:s.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"}})},{"../language/location":107}],87:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.formatError=function(e){return(0,o.default)(e,"Received null or undefined error."),{message:e.message,locations:e.locations,path:e.path}};var r,i=e("../jsutils/invariant"),o=(r=i)&&r.__esModule?r:{default:r}},{"../jsutils/invariant":97}],88:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./GraphQLError");Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}});var i=e("./syntaxError");Object.defineProperty(n,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var o=e("./locatedError");Object.defineProperty(n,"locatedError",{enumerable:!0,get:function(){return o.locatedError}});var a=e("./formatError");Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return a.formatError}})},{"./GraphQLError":86,"./formatError":87,"./locatedError":89,"./syntaxError":90}],89:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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=e("./GraphQLError")},{"./GraphQLError":86}],90:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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(),s=a.length,u=e.body.split(/\r\n|[\n\r]/g);return(n>=2?o(s,r)+": "+u[n-2]+"\n":"")+o(s,i)+": "+u[n-1]+"\n"+Array(2+s+t.column).join(" ")+"^\n"+(n<u.length?o(s,a)+": "+u[n]+"\n":"")}(e,a),void 0,e,[t])};var r=e("../language/location"),i=e("./GraphQLError");function o(e,t){return Array(e-t.length+1).join(" ")+t}},{"../language/location":107,"./GraphQLError":86}],91:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.defaultFieldResolver=void 0,n.execute=function(e,t,n,r,i,o,a){var s=1===arguments.length?e:void 0,u=s?s.schema:e;return s?m(u,s.document,s.rootValue,s.contextValue,s.variableValues,s.operationName,s.fieldResolver):m(u,t,n,r,i,o,a)},n.responsePathAsArray=g,n.addPath=v,n.assertValidExecutionArguments=y,n.buildExecutionContext=b,n.getOperationRootType=T,n.collectFields=w,n.buildResolveInfo=S,n.resolveFieldValueOrError=L,n.getFieldDef=M;var r=e("iterall"),i=e("../error"),o=h(e("../jsutils/invariant")),a=h(e("../jsutils/isNullish")),s=e("../utilities/typeFromAST"),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}(e("../language/kinds")),l=e("./values"),c=e("../type/definition"),f=e("../type/schema"),p=e("../type/introspection"),d=e("../type/directives");function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n,r,i,o,a){y(e,t,i);var s=void 0;try{s=b(e,t,n,r,i,o,a)}catch(e){return Promise.resolve({errors:[e]})}return Promise.resolve(function(e,t,n){var r=T(e.schema,t),i=w(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 s=i[a],u=v(r,a),l=O(e,t,n,s,u);if(void 0===l)return o;var c=j(l);return c?c.then(function(e){return o[a]=e,o}):(o[a]=l,o)})},Promise.resolve({}))}(e,r,n,o,i):_(e,r,n,o,i),s=j(a);return s?s.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):a}catch(t){return e.errors.push(t),null}}(s,s.operation,n)).then(function(e){return 0===s.errors.length?{data:e}:{errors:s.errors,data:e}})}function g(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function v(e,t){return{prev:e,key:t}}function y(e,t,n){(0,o.default)(e,"Must provide schema"),(0,o.default)(t,"Must provide document"),(0,o.default)(e instanceof f.GraphQLSchema,"Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory."),(0,o.default)(!n||"object"==typeof n,"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 b(e,t,n,r,o,a,s){var c=void 0,f=Object.create(null);if(t.definitions.forEach(function(e){switch(e.kind){case u.OPERATION_DEFINITION:if(!a&&c)throw new i.GraphQLError("Must provide operation name if query contains multiple operations.");(!a||e.name&&e.name.value===a)&&(c=e);break;case u.FRAGMENT_DEFINITION:f[e.name.value]=e;break;default:throw new i.GraphQLError("GraphQL cannot execute a request containing a "+e.kind+".",[e])}}),!c)throw a?new i.GraphQLError('Unknown operation named "'+a+'".'):new i.GraphQLError("Must provide an operation.");var p=(0,l.getVariableValues)(e,c.variableDefinitions||[],o||{});return{schema:e,fragments:f,rootValue:n,contextValue:r,operation:c,variableValues:p,fieldResolver:s||F,errors:[]}}function T(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":var n=e.getMutationType();if(!n)throw new i.GraphQLError("Schema is not configured for mutations",[t]);return n;case"subscription":var r=e.getSubscriptionType();if(!r)throw new i.GraphQLError("Schema is not configured for subscriptions",[t]);return r;default:throw new i.GraphQLError("Can only execute queries, mutations and subscriptions",[t])}}function _(e,t,n,r,i){var o,a,s,u=!1,l=Object.keys(i).reduce(function(o,a){var s=i[a],l=v(r,a),c=O(e,t,n,s,l);return void 0===c?o:(o[a]=c,j(c)&&(u=!0),o)},Object.create(null));return u?(o=l,a=Object.keys(o),s=a.map(function(e){return o[e]}),Promise.all(s).then(function(e){return e.reduce(function(e,t,n){return e[a[n]]=t,e},Object.create(null))})):l}function w(e,t,n,r,i){for(var o=0;o<n.selections.length;o++){var a=n.selections[o];switch(a.kind){case u.FIELD:if(!k(e,a))continue;var s=(f=a).alias?f.alias.value:f.name.value;r[s]||(r[s]=[]),r[s].push(a);break;case u.INLINE_FRAGMENT:if(!k(e,a)||!E(e,a,t))continue;w(e,t,a.selectionSet,r,i);break;case u.FRAGMENT_SPREAD:var l=a.name.value;if(i[l]||!k(e,a))continue;i[l]=!0;var c=e.fragments[l];if(!c||!E(e,c,t))continue;w(e,t,c.selectionSet,r,i)}}var f;return r}function k(e,t){var n=(0,l.getDirectiveValues)(d.GraphQLSkipDirective,t,e.variableValues);if(n&&!0===n.if)return!1;var r=(0,l.getDirectiveValues)(d.GraphQLIncludeDirective,t,e.variableValues);return!r||!1!==r.if}function E(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=(0,s.typeFromAST)(e.schema,r);return i===n||!!(0,c.isAbstractType)(i)&&e.schema.isPossibleType(i,n)}function O(e,t,n,r,i){var o=r[0].name.value,a=M(e.schema,t,o);if(a){var s=a.resolve||e.fieldResolver,u=S(e,a,r,t,i),l=L(e,a,r,s,n,u);return C(e,a.type,r,u,i,l)}}function S(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 L(e,t,n,r,i,o){try{return r(i,(0,l.getArgumentValues)(t,n[0],e.variableValues),e.contextValue,o)}catch(e){return e instanceof Error?e:new Error(e)}}function C(e,t,n,r,i,o){if(t instanceof c.GraphQLNonNull)return N(e,t,n,r,i,o);try{var a=N(e,t,n,r,i,o),s=j(a);return s?s.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):a}catch(t){return e.errors.push(t),null}}function N(e,t,n,s,u,l){try{var f=function e(t,n,i,s,u,l){var f=j(l);if(f)return f.then(function(r){return e(t,n,i,s,u,r)});if(l instanceof Error)throw l;if(n instanceof c.GraphQLNonNull){var p=e(t,n.ofType,i,s,u,l);if(null===p)throw new Error("Cannot return null for non-nullable field "+s.parentType.name+"."+s.fieldName+".");return p}if((0,a.default)(l))return null;if(n instanceof c.GraphQLList)return function(e,t,n,i,a,s){(0,o.default)((0,r.isCollection)(s),"Expected Iterable, but did not find one for field "+i.parentType.name+"."+i.fieldName+".");var u=t.ofType,l=!1,c=[];return(0,r.forEach)(s,function(t,r){var o=v(a,r),s=C(e,u,n,i,o,t);!l&&j(s)&&(l=!0),c.push(s)}),l?Promise.all(c):c}(t,n,i,s,u,l);if((0,c.isLeafType)(n))return function(e,t){(0,o.default)(e.serialize,"Missing serialize method on type");var n=e.serialize(t);if((0,a.default)(n))throw new Error('Expected a value of type "'+String(e)+'" but received: '+String(t));return n}(n,l);if((0,c.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 s=i[a];if(s.isTypeOf){var u=s.isTypeOf(e,t,n),l=j(u);if(l)o[a]=l;else if(u)return s}}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),s=j(a);if(s)return s.then(function(a){return D(e,x(a,e,t,n,r,o),n,r,i,o)});return D(e,x(a,e,t,n,r,o),n,r,i,o)}(t,n,i,s,u,l);if(n instanceof c.GraphQLObjectType)return D(t,n,i,s,u,l);throw new Error('Cannot complete value of unexpected type "'+String(n)+'".')}(e,t,n,s,u,l),p=j(f);return p?p.then(void 0,function(e){return Promise.reject((0,i.locatedError)(e,n,g(u)))}):f}catch(e){throw(0,i.locatedError)(e,n,g(u))}}function x(e,t,n,r,o,a){var s="string"==typeof e?t.schema.getType(e):e;if(!(s instanceof c.GraphQLObjectType))throw new i.GraphQLError("Abstract type "+n.name+" must resolve to an Object type at runtime for field "+o.parentType.name+"."+o.fieldName+' with value "'+String(a)+'", received "'+String(s)+'".',r);if(!t.schema.isPossibleType(n,s))throw new i.GraphQLError('Runtime Object type "'+s.name+'" is not a possible type for "'+n.name+'".',r);return s}function D(e,t,n,r,i,o){if(t.isTypeOf){var a=t.isTypeOf(o,e.contextValue,r),s=j(a);if(s)return s.then(function(a){if(!a)throw A(t,o,n);return I(e,t,n,r,i,o)});if(!a)throw A(t,o,n)}return I(e,t,n,r,i,o)}function A(e,t,n){return new i.GraphQLError('Expected value of type "'+e.name+'" but got: '+String(t)+".",n)}function I(e,t,n,r,i,o){for(var a=Object.create(null),s=Object.create(null),u=0;u<n.length;u++){var l=n[u].selectionSet;l&&(a=w(e,t,l,a,s))}return _(e,t,o,i,a)}var F=n.defaultFieldResolver=function(e,t,n,r){if("object"==typeof e||"function"==typeof e){var i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function j(e){if("object"==typeof e&&null!==e&&"function"==typeof e.then)return e}function M(e,t,n){return n===p.SchemaMetaFieldDef.name&&e.getQueryType()===t?p.SchemaMetaFieldDef:n===p.TypeMetaFieldDef.name&&e.getQueryType()===t?p.TypeMetaFieldDef:n===p.TypeNameMetaFieldDef.name?p.TypeNameMetaFieldDef:t.getFields()[n]}},{"../error":88,"../jsutils/invariant":97,"../jsutils/isNullish":99,"../language/kinds":105,"../type/definition":115,"../type/directives":116,"../type/introspection":118,"../type/schema":120,"../utilities/typeFromAST":138,"./values":93,iterall:169}],92:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./execute");Object.defineProperty(n,"execute",{enumerable:!0,get:function(){return r.execute}}),Object.defineProperty(n,"defaultFieldResolver",{enumerable:!0,get:function(){return r.defaultFieldResolver}}),Object.defineProperty(n,"responsePathAsArray",{enumerable:!0,get:function(){return r.responsePathAsArray}});var i=e("./values");Object.defineProperty(n,"getDirectiveValues",{enumerable:!0,get:function(){return i.getDirectiveValues}})},{"./execute":91,"./values":93}],93:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getVariableValues=function(e,t,n){for(var r=Object.create(null),o=0;o<t.length;o++){var s=t[o],l=s.variable.name.value,d=(0,c.typeFromAST)(e,s.type);if(!(0,g.isInputType)(d))throw new i.GraphQLError('Variable "$'+l+'" expected value of type "'+(0,m.print)(s.type)+'" which cannot be used as an input type.',[s.type]);var h=n[l];if((0,u.default)(h)){var v=s.defaultValue;if(v&&(r[l]=(0,f.valueFromAST)(v,d)),d instanceof g.GraphQLNonNull)throw new i.GraphQLError('Variable "$'+l+'" of required type "'+String(d)+'" was not provided.',[s])}else{var y=(0,p.isValidJSValue)(h,d);if(y.length){var T=y?"\n"+y.join("\n"):"";throw new i.GraphQLError('Variable "$'+l+'" got invalid value '+JSON.stringify(h)+"."+T,[s])}var _=b(d,h);(0,a.default)(!(0,u.default)(_),"Should have reported error."),r[l]=_}}return r},n.getArgumentValues=y,n.getDirectiveValues=function(e,t,n){var r=t.directives&&(0,o.default)(t.directives,function(t){return t.name.value===e.name});if(r)return y(e,r,n)};var r=e("iterall"),i=e("../error"),o=v(e("../jsutils/find")),a=v(e("../jsutils/invariant")),s=v(e("../jsutils/isNullish")),u=v(e("../jsutils/isInvalid")),l=v(e("../jsutils/keyMap")),c=e("../utilities/typeFromAST"),f=e("../utilities/valueFromAST"),p=e("../utilities/isValidJSValue"),d=e("../utilities/isValidLiteralValue"),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}(e("../language/kinds")),m=e("../language/printer"),g=e("../type/definition");function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){var r=e.args,o=t.arguments;if(!r||!o)return{};for(var a=Object.create(null),s=(0,l.default)(o,function(e){return e.name.value}),c=0;c<r.length;c++){var p=r[c],v=p.name,y=p.type,b=s[v],T=p.defaultValue;if(b)if(b.value.kind===h.VARIABLE){var _=b.value.name.value;if(n&&!(0,u.default)(n[_]))a[v]=n[_];else if((0,u.default)(T)){if(y instanceof g.GraphQLNonNull)throw new i.GraphQLError('Argument "'+v+'" of required type "'+String(y)+'" was provided the variable "$'+_+'" which was not provided a runtime value.',[b.value])}else a[v]=T}else{var w=b.value,k=(0,f.valueFromAST)(w,y,n);if((0,u.default)(k)){var E=(0,d.isValidLiteralValue)(y,w),O=E?"\n"+E.join("\n"):"";throw new i.GraphQLError('Argument "'+v+'" got invalid value '+(0,m.print)(w)+"."+O,[b.value])}a[v]=k}else if((0,u.default)(T)){if(y instanceof g.GraphQLNonNull)throw new i.GraphQLError('Argument "'+v+'" of required type "'+String(y)+'" was not provided.',[t])}else a[v]=T}return a}function b(e,t){var n=t;if(!(0,u.default)(n)){if(e instanceof g.GraphQLNonNull){if(null===n)return;return b(e.ofType,n)}if(null===n)return null;if(e instanceof g.GraphQLList){var i=e.ofType;if((0,r.isCollection)(n)){var o=[],l=(0,r.createIterator)(n);if(!l)return;for(var c=void 0;!(c=l.next()).done;){var f=b(i,c.value);if((0,u.default)(f))return;o.push(f)}return o}var p=b(i,n);if((0,u.default)(p))return;return[b(i,n)]}if(e instanceof g.GraphQLInputObjectType){if("object"!=typeof n)return;for(var d=Object.create(null),h=e.getFields(),m=Object.keys(h),v=0;v<m.length;v++){var y=m[v],T=h[y];if((0,u.default)(n[y]))if((0,u.default)(T.defaultValue)){if(T.type instanceof g.GraphQLNonNull)return}else d[y]=T.defaultValue;else{var _=b(T.type,n[y]);if((0,u.default)(_))return;d[y]=_}}return d}(0,a.default)(e instanceof g.GraphQLScalarType||e instanceof g.GraphQLEnumType,"Must be input type");var w=e.parseValue(n);if(!(0,s.default)(w))return w}}},{"../error":88,"../jsutils/find":96,"../jsutils/invariant":97,"../jsutils/isInvalid":98,"../jsutils/isNullish":99,"../jsutils/keyMap":100,"../language/kinds":105,"../language/printer":109,"../type/definition":115,"../utilities/isValidJSValue":133,"../utilities/isValidLiteralValue":134,"../utilities/typeFromAST":138,"../utilities/valueFromAST":139,iterall:169}],94:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.graphql=function(e,t,n,r,i,o,s){var u=1===arguments.length?e:void 0,l=u?u.schema:e;return u?a(l,u.source,u.rootValue,u.contextValue,u.variableValues,u.operationName,u.fieldResolver):a(l,t,n,r,i,o,s)};var r=e("./language/parser"),i=e("./validation/validate"),o=e("./execution/execute");function a(e,t,n,a,s,u,l){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,s,u,l))})}},{"./execution/execute":91,"./language/parser":108,"./validation/validate":168}],95:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./graphql");Object.defineProperty(n,"graphql",{enumerable:!0,get:function(){return r.graphql}});var i=e("./type");Object.defineProperty(n,"GraphQLSchema",{enumerable:!0,get:function(){return i.GraphQLSchema}}),Object.defineProperty(n,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(n,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(n,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(n,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(n,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(n,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(n,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(n,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(n,"GraphQLDirective",{enumerable:!0,get:function(){return i.GraphQLDirective}}),Object.defineProperty(n,"TypeKind",{enumerable:!0,get:function(){return i.TypeKind}}),Object.defineProperty(n,"DirectiveLocation",{enumerable:!0,get:function(){return i.DirectiveLocation}}),Object.defineProperty(n,"GraphQLInt",{enumerable:!0,get:function(){return i.GraphQLInt}}),Object.defineProperty(n,"GraphQLFloat",{enumerable:!0,get:function(){return i.GraphQLFloat}}),Object.defineProperty(n,"GraphQLString",{enumerable:!0,get:function(){return i.GraphQLString}}),Object.defineProperty(n,"GraphQLBoolean",{enumerable:!0,get:function(){return i.GraphQLBoolean}}),Object.defineProperty(n,"GraphQLID",{enumerable:!0,get:function(){return i.GraphQLID}}),Object.defineProperty(n,"specifiedDirectives",{enumerable:!0,get:function(){return i.specifiedDirectives}}),Object.defineProperty(n,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return i.GraphQLIncludeDirective}}),Object.defineProperty(n,"GraphQLSkipDirective",{enumerable:!0,get:function(){return i.GraphQLSkipDirective}}),Object.defineProperty(n,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return i.GraphQLDeprecatedDirective}}),Object.defineProperty(n,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return i.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(n,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return i.SchemaMetaFieldDef}}),Object.defineProperty(n,"TypeMetaFieldDef",{enumerable:!0,get:function(){return i.TypeMetaFieldDef}}),Object.defineProperty(n,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return i.TypeNameMetaFieldDef}}),Object.defineProperty(n,"__Schema",{enumerable:!0,get:function(){return i.__Schema}}),Object.defineProperty(n,"__Directive",{enumerable:!0,get:function(){return i.__Directive}}),Object.defineProperty(n,"__DirectiveLocation",{enumerable:!0,get:function(){return i.__DirectiveLocation}}),Object.defineProperty(n,"__Type",{enumerable:!0,get:function(){return i.__Type}}),Object.defineProperty(n,"__Field",{enumerable:!0,get:function(){return i.__Field}}),Object.defineProperty(n,"__InputValue",{enumerable:!0,get:function(){return i.__InputValue}}),Object.defineProperty(n,"__EnumValue",{enumerable:!0,get:function(){return i.__EnumValue}}),Object.defineProperty(n,"__TypeKind",{enumerable:!0,get:function(){return i.__TypeKind}}),Object.defineProperty(n,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(n,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(n,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(n,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(n,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(n,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(n,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(n,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(n,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(n,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(n,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(n,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(n,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(n,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(n,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(n,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}});var o=e("./language");Object.defineProperty(n,"Source",{enumerable:!0,get:function(){return o.Source}}),Object.defineProperty(n,"getLocation",{enumerable:!0,get:function(){return o.getLocation}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(n,"parseValue",{enumerable:!0,get:function(){return o.parseValue}}),Object.defineProperty(n,"parseType",{enumerable:!0,get:function(){return o.parseType}}),Object.defineProperty(n,"print",{enumerable:!0,get:function(){return o.print}}),Object.defineProperty(n,"visit",{enumerable:!0,get:function(){return o.visit}}),Object.defineProperty(n,"visitInParallel",{enumerable:!0,get:function(){return o.visitInParallel}}),Object.defineProperty(n,"visitWithTypeInfo",{enumerable:!0,get:function(){return o.visitWithTypeInfo}}),Object.defineProperty(n,"getVisitFn",{enumerable:!0,get:function(){return o.getVisitFn}}),Object.defineProperty(n,"Kind",{enumerable:!0,get:function(){return o.Kind}}),Object.defineProperty(n,"TokenKind",{enumerable:!0,get:function(){return o.TokenKind}}),Object.defineProperty(n,"BREAK",{enumerable:!0,get:function(){return o.BREAK}});var a=e("./execution");Object.defineProperty(n,"execute",{enumerable:!0,get:function(){return a.execute}}),Object.defineProperty(n,"defaultFieldResolver",{enumerable:!0,get:function(){return a.defaultFieldResolver}}),Object.defineProperty(n,"responsePathAsArray",{enumerable:!0,get:function(){return a.responsePathAsArray}}),Object.defineProperty(n,"getDirectiveValues",{enumerable:!0,get:function(){return a.getDirectiveValues}});var s=e("./subscription");Object.defineProperty(n,"subscribe",{enumerable:!0,get:function(){return s.subscribe}}),Object.defineProperty(n,"createSourceEventStream",{enumerable:!0,get:function(){return s.createSourceEventStream}});var u=e("./validation");Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return u.validate}}),Object.defineProperty(n,"ValidationContext",{enumerable:!0,get:function(){return u.ValidationContext}}),Object.defineProperty(n,"specifiedRules",{enumerable:!0,get:function(){return u.specifiedRules}}),Object.defineProperty(n,"ArgumentsOfCorrectTypeRule",{enumerable:!0,get:function(){return u.ArgumentsOfCorrectTypeRule}}),Object.defineProperty(n,"DefaultValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return u.DefaultValuesOfCorrectTypeRule}}),Object.defineProperty(n,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return u.FieldsOnCorrectTypeRule}}),Object.defineProperty(n,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return u.FragmentsOnCompositeTypesRule}}),Object.defineProperty(n,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return u.KnownArgumentNamesRule}}),Object.defineProperty(n,"KnownDirectivesRule",{enumerable:!0,get:function(){return u.KnownDirectivesRule}}),Object.defineProperty(n,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return u.KnownFragmentNamesRule}}),Object.defineProperty(n,"KnownTypeNamesRule",{enumerable:!0,get:function(){return u.KnownTypeNamesRule}}),Object.defineProperty(n,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return u.LoneAnonymousOperationRule}}),Object.defineProperty(n,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return u.NoFragmentCyclesRule}}),Object.defineProperty(n,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return u.NoUndefinedVariablesRule}}),Object.defineProperty(n,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return u.NoUnusedFragmentsRule}}),Object.defineProperty(n,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return u.NoUnusedVariablesRule}}),Object.defineProperty(n,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return u.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(n,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return u.PossibleFragmentSpreadsRule}}),Object.defineProperty(n,"ProvidedNonNullArgumentsRule",{enumerable:!0,get:function(){return u.ProvidedNonNullArgumentsRule}}),Object.defineProperty(n,"ScalarLeafsRule",{enumerable:!0,get:function(){return u.ScalarLeafsRule}}),Object.defineProperty(n,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return u.SingleFieldSubscriptionsRule}}),Object.defineProperty(n,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return u.UniqueArgumentNamesRule}}),Object.defineProperty(n,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return u.UniqueDirectivesPerLocationRule}}),Object.defineProperty(n,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return u.UniqueFragmentNamesRule}}),Object.defineProperty(n,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return u.UniqueInputFieldNamesRule}}),Object.defineProperty(n,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return u.UniqueOperationNamesRule}}),Object.defineProperty(n,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return u.UniqueVariableNamesRule}}),Object.defineProperty(n,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return u.VariablesAreInputTypesRule}}),Object.defineProperty(n,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return u.VariablesInAllowedPositionRule}});var l=e("./error");Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return l.GraphQLError}}),Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return l.formatError}});var c=e("./utilities");Object.defineProperty(n,"introspectionQuery",{enumerable:!0,get:function(){return c.introspectionQuery}}),Object.defineProperty(n,"getOperationAST",{enumerable:!0,get:function(){return c.getOperationAST}}),Object.defineProperty(n,"buildClientSchema",{enumerable:!0,get:function(){return c.buildClientSchema}}),Object.defineProperty(n,"buildASTSchema",{enumerable:!0,get:function(){return c.buildASTSchema}}),Object.defineProperty(n,"buildSchema",{enumerable:!0,get:function(){return c.buildSchema}}),Object.defineProperty(n,"extendSchema",{enumerable:!0,get:function(){return c.extendSchema}}),Object.defineProperty(n,"printSchema",{enumerable:!0,get:function(){return c.printSchema}}),Object.defineProperty(n,"printIntrospectionSchema",{enumerable:!0,get:function(){return c.printIntrospectionSchema}}),Object.defineProperty(n,"printType",{enumerable:!0,get:function(){return c.printType}}),Object.defineProperty(n,"typeFromAST",{enumerable:!0,get:function(){return c.typeFromAST}}),Object.defineProperty(n,"valueFromAST",{enumerable:!0,get:function(){return c.valueFromAST}}),Object.defineProperty(n,"astFromValue",{enumerable:!0,get:function(){return c.astFromValue}}),Object.defineProperty(n,"TypeInfo",{enumerable:!0,get:function(){return c.TypeInfo}}),Object.defineProperty(n,"isValidJSValue",{enumerable:!0,get:function(){return c.isValidJSValue}}),Object.defineProperty(n,"isValidLiteralValue",{enumerable:!0,get:function(){return c.isValidLiteralValue}}),Object.defineProperty(n,"concatAST",{enumerable:!0,get:function(){return c.concatAST}}),Object.defineProperty(n,"separateOperations",{enumerable:!0,get:function(){return c.separateOperations}}),Object.defineProperty(n,"isEqualType",{enumerable:!0,get:function(){return c.isEqualType}}),Object.defineProperty(n,"isTypeSubTypeOf",{enumerable:!0,get:function(){return c.isTypeSubTypeOf}}),Object.defineProperty(n,"doTypesOverlap",{enumerable:!0,get:function(){return c.doTypesOverlap}}),Object.defineProperty(n,"assertValidName",{enumerable:!0,get:function(){return c.assertValidName}}),Object.defineProperty(n,"findBreakingChanges",{enumerable:!0,get:function(){return c.findBreakingChanges}}),Object.defineProperty(n,"BreakingChangeType",{enumerable:!0,get:function(){return c.BreakingChangeType}}),Object.defineProperty(n,"DangerousChangeType",{enumerable:!0,get:function(){return c.DangerousChangeType}}),Object.defineProperty(n,"findDeprecatedUsages",{enumerable:!0,get:function(){return c.findDeprecatedUsages}})},{"./error":88,"./execution":92,"./graphql":94,"./language":104,"./subscription":112,"./type":117,"./utilities":131,"./validation":140}],96:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},{}],97:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){if(!e)throw new Error(t)}},{}],98:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return void 0===e||e!=e}},{}],99:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return null==e||e!=e}},{}],100:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},Object.create(null))}},{}],101:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){return e.reduce(function(e,r){return e[t(r)]=n(r),e},Object.create(null))}},{}],102:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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},{}],103:[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 s=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+s),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){for(var n=Object.create(null),i=t.length,o=e.length/2,a=0;a<i;a++){var s=r(e,t[a]),u=Math.max(o,t[a].length/2,1);s<=u&&(n[t[a]]=s)}return Object.keys(n).sort(function(e,t){return n[e]-n[t]})}},{}],104:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.BREAK=n.getVisitFn=n.visitWithTypeInfo=n.visitInParallel=n.visit=n.Source=n.print=n.parseType=n.parseValue=n.parse=n.TokenKind=n.createLexer=n.Kind=n.getLocation=void 0;var r=e("./location");Object.defineProperty(n,"getLocation",{enumerable:!0,get:function(){return r.getLocation}});var i=e("./lexer");Object.defineProperty(n,"createLexer",{enumerable:!0,get:function(){return i.createLexer}}),Object.defineProperty(n,"TokenKind",{enumerable:!0,get:function(){return i.TokenKind}});var o=e("./parser");Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(n,"parseValue",{enumerable:!0,get:function(){return o.parseValue}}),Object.defineProperty(n,"parseType",{enumerable:!0,get:function(){return o.parseType}});var a=e("./printer");Object.defineProperty(n,"print",{enumerable:!0,get:function(){return a.print}});var s=e("./source");Object.defineProperty(n,"Source",{enumerable:!0,get:function(){return s.Source}});var u=e("./visitor");Object.defineProperty(n,"visit",{enumerable:!0,get:function(){return u.visit}}),Object.defineProperty(n,"visitInParallel",{enumerable:!0,get:function(){return u.visitInParallel}}),Object.defineProperty(n,"visitWithTypeInfo",{enumerable:!0,get:function(){return u.visitWithTypeInfo}}),Object.defineProperty(n,"getVisitFn",{enumerable:!0,get:function(){return u.getVisitFn}}),Object.defineProperty(n,"BREAK",{enumerable:!0,get:function(){return u.BREAK}});var 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}(e("./kinds"));n.Kind=l},{"./kinds":105,"./lexer":106,"./location":107,"./parser":108,"./printer":109,"./source":110,"./visitor":111}],105:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.NAME="Name",n.DOCUMENT="Document",n.OPERATION_DEFINITION="OperationDefinition",n.VARIABLE_DEFINITION="VariableDefinition",n.VARIABLE="Variable",n.SELECTION_SET="SelectionSet",n.FIELD="Field",n.ARGUMENT="Argument",n.FRAGMENT_SPREAD="FragmentSpread",n.INLINE_FRAGMENT="InlineFragment",n.FRAGMENT_DEFINITION="FragmentDefinition",n.INT="IntValue",n.FLOAT="FloatValue",n.STRING="StringValue",n.BOOLEAN="BooleanValue",n.NULL="NullValue",n.ENUM="EnumValue",n.LIST="ListValue",n.OBJECT="ObjectValue",n.OBJECT_FIELD="ObjectField",n.DIRECTIVE="Directive",n.NAMED_TYPE="NamedType",n.LIST_TYPE="ListType",n.NON_NULL_TYPE="NonNullType",n.SCHEMA_DEFINITION="SchemaDefinition",n.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",n.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",n.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",n.FIELD_DEFINITION="FieldDefinition",n.INPUT_VALUE_DEFINITION="InputValueDefinition",n.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",n.UNION_TYPE_DEFINITION="UnionTypeDefinition",n.ENUM_TYPE_DEFINITION="EnumTypeDefinition",n.ENUM_VALUE_DEFINITION="EnumValueDefinition",n.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",n.TYPE_EXTENSION_DEFINITION="TypeExtensionDefinition",n.DIRECTIVE_DEFINITION="DirectiveDefinition"},{}],106:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0,n.createLexer=function(e,t){var n=new L(o,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:i}},n.getTokenDesc=function(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind};var r=e("../error");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>",s="!",u="$",l="(",c=")",f="...",p=":",d="=",h="@",m="[",g="]",v="{",y="|",b="}",T="Name",_="Int",w="Float",k="String",E="Comment";n.TokenKind={SOF:o,EOF:a,BANG:s,DOLLAR:u,PAREN_L:l,PAREN_R:c,SPREAD:f,COLON:p,EQUALS:d,AT:h,BRACKET_L:m,BRACKET_R:g,BRACE_L:v,PIPE:y,BRACE_R:b,NAME:T,INT:_,FLOAT:w,STRING:k,COMMENT:E};var O=String.prototype.charCodeAt,S=String.prototype.slice;function L(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 C(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=O.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===O.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 L(a,o,o,A,I,t);var F=O.call(i,N);if(F<32&&9!==F&&10!==F&&13!==F)throw(0,r.syntaxError)(n,N,"Cannot contain the invalid character "+C(F)+".");switch(F){case 33:return new L(s,N,N+1,A,I,t);case 35:return function(e,t,n,r,i){var o=e.body,a=void 0,s=t;do{a=O.call(o,++s)}while(null!==a&&(a>31||9===a));return new L(E,t,s,n,r,i,S.call(o,t+1,s))}(n,N,A,I,t);case 36:return new L(u,N,N+1,A,I,t);case 40:return new L(l,N,N+1,A,I,t);case 41:return new L(c,N,N+1,A,I,t);case 46:if(46===O.call(i,N+1)&&46===O.call(i,N+2))return new L(f,N,N+3,A,I,t);break;case 58:return new L(p,N,N+1,A,I,t);case 61:return new L(d,N,N+1,A,I,t);case 64:return new L(h,N,N+1,A,I,t);case 91:return new L(m,N,N+1,A,I,t);case 93:return new L(g,N,N+1,A,I,t);case 123:return new L(v,N,N+1,A,I,t);case 124:return new L(y,N,N+1,A,I,t);case 125:return new L(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,s=t+1,u=0;for(;s!==a&&null!==(u=O.call(o,s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new L(T,t,s,n,r,i,S.call(o,t,s))}(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 s=e.body,u=n,l=t,c=!1;45===u&&(u=O.call(s,++l));if(48===u){if((u=O.call(s,++l))>=48&&u<=57)throw(0,r.syntaxError)(e,l,"Invalid number, unexpected digit after 0: "+C(u)+".")}else l=x(e,l,u),u=O.call(s,l);46===u&&(c=!0,u=O.call(s,++l),l=x(e,l,u),u=O.call(s,l));69!==u&&101!==u||(c=!0,43!==(u=O.call(s,++l))&&45!==u||(u=O.call(s,++l)),l=x(e,l,u));return new L(c?w:_,t,l,i,o,a,S.call(s,t,l))}(n,N,F,A,I,t);case 34:return function(e,t,n,i,o){var a=e.body,s=t+1,u=s,l=0,c="";for(;s<a.length&&null!==(l=O.call(a,s))&&10!==l&&13!==l&&34!==l;){if(l<32&&9!==l)throw(0,r.syntaxError)(e,s,"Invalid character within String: "+C(l)+".");if(++s,92===l){switch(c+=S.call(a,u,s-1),l=O.call(a,s)){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=O.call(a,s+1),d=O.call(a,s+2),h=O.call(a,s+3),m=O.call(a,s+4),D(p)<<12|D(d)<<8|D(h)<<4|D(m));if(f<0)throw(0,r.syntaxError)(e,s,"Invalid character escape sequence: \\u"+a.slice(s+1,s+5)+".");c+=String.fromCharCode(f),s+=4;break;default:throw(0,r.syntaxError)(e,s,"Invalid character escape sequence: \\"+String.fromCharCode(l)+".")}u=++s}}var p,d,h,m;if(34!==l)throw(0,r.syntaxError)(e,s,"Unterminated string.");return c+=S.call(a,u,s),new L(k,t,s+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 "+C(e)+"."}(F))}function x(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=O.call(i,++o)}while(a>=48&&a<=57);return o}throw(0,r.syntaxError)(e,o,"Invalid number, expected digit but got: "+C(a)+".")}function D(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}L.prototype.toJSON=L.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},{"../error":88}],107:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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}}},{}],108:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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;P(e,o.TokenKind.SOF);var n=[];do{n.push(u(e))}while(!M(e,o.TokenKind.EOF));return{kind:a.DOCUMENT,definitions:n,loc:I(e,t)}}((0,o.createLexer)(n,t||{}))},n.parseValue=function(e,t){var n="string"==typeof e?new r.Source(e):e,i=(0,o.createLexer)(n,t||{});P(i,o.TokenKind.SOF);var a=b(i,!1);return P(i,o.TokenKind.EOF),a},n.parseType=function(e,t){var n="string"==typeof e?new r.Source(e):e,i=(0,o.createLexer)(n,t||{});P(i,o.TokenKind.SOF);var a=O(i);return P(i,o.TokenKind.EOF),a},n.parseConstValue=T,n.parseTypeReference=O,n.parseNamedType=S;var r=e("./source"),i=e("../error"),o=e("./lexer"),a=e("./kinds");function s(e){var t=P(e,o.TokenKind.NAME);return{kind:a.NAME,value:t.value,loc:I(e,t)}}function u(e){if(j(e,o.TokenKind.BRACE_L))return l(e);if(j(e,o.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return l(e);case"fragment":return function(e){var t=e.token;return R(e,"fragment"),{kind:a.FRAGMENT_DEFINITION,name:y(e),typeCondition:(R(e,"on"),S(e)),directives:k(e),selectionSet:h(e),loc:I(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(j(e,o.TokenKind.NAME))switch(e.token.value){case"schema":return function(e){var t=e.token;R(e,"schema");var n=k(e),r=Q(e,o.TokenKind.BRACE_L,L,o.TokenKind.BRACE_R);return{kind:a.SCHEMA_DEFINITION,directives:n,operationTypes:r,loc:I(e,t)}}(e);case"scalar":return function(e){var t=e.token;R(e,"scalar");var n=s(e),r=k(e);return{kind:a.SCALAR_TYPE_DEFINITION,name:n,directives:r,loc:I(e,t)}}(e);case"type":return C(e);case"interface":return function(e){var t=e.token;R(e,"interface");var n=s(e),r=k(e),i=V(e,o.TokenKind.BRACE_L,N,o.TokenKind.BRACE_R);return{kind:a.INTERFACE_TYPE_DEFINITION,name:n,directives:r,fields:i,loc:I(e,t)}}(e);case"union":return function(e){var t=e.token;R(e,"union");var n=s(e),r=k(e);P(e,o.TokenKind.EQUALS);var i=function(e){M(e,o.TokenKind.PIPE);var t=[];do{t.push(S(e))}while(M(e,o.TokenKind.PIPE));return t}(e);return{kind:a.UNION_TYPE_DEFINITION,name:n,directives:r,types:i,loc:I(e,t)}}(e);case"enum":return function(e){var t=e.token;R(e,"enum");var n=s(e),r=k(e),i=Q(e,o.TokenKind.BRACE_L,A,o.TokenKind.BRACE_R);return{kind:a.ENUM_TYPE_DEFINITION,name:n,directives:r,values:i,loc:I(e,t)}}(e);case"input":return function(e){var t=e.token;R(e,"input");var n=s(e),r=k(e),i=V(e,o.TokenKind.BRACE_L,D,o.TokenKind.BRACE_R);return{kind:a.INPUT_OBJECT_TYPE_DEFINITION,name:n,directives:r,fields:i,loc:I(e,t)}}(e);case"extend":return function(e){var t=e.token;R(e,"extend");var n=C(e);return{kind:a.TYPE_EXTENSION_DEFINITION,definition:n,loc:I(e,t)}}(e);case"directive":return function(e){var t=e.token;R(e,"directive"),P(e,o.TokenKind.AT);var n=s(e),r=x(e);R(e,"on");var i=function(e){M(e,o.TokenKind.PIPE);var t=[];do{t.push(s(e))}while(M(e,o.TokenKind.PIPE));return t}(e);return{kind:a.DIRECTIVE_DEFINITION,name:n,arguments:r,locations:i,loc:I(e,t)}}(e)}throw G(e)}(e)}throw G(e)}function l(e){var t=e.token;if(j(e,o.TokenKind.BRACE_L))return{kind:a.OPERATION_DEFINITION,operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:h(e),loc:I(e,t)};var n=c(e),r=void 0;return j(e,o.TokenKind.NAME)&&(r=s(e)),{kind:a.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:f(e),directives:k(e),selectionSet:h(e),loc:I(e,t)}}function c(e){var t=P(e,o.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw G(e,t)}function f(e){return j(e,o.TokenKind.PAREN_L)?Q(e,o.TokenKind.PAREN_L,p,o.TokenKind.PAREN_R):[]}function p(e){var t=e.token;return{kind:a.VARIABLE_DEFINITION,variable:d(e),type:(P(e,o.TokenKind.COLON),O(e)),defaultValue:M(e,o.TokenKind.EQUALS)?b(e,!0):null,loc:I(e,t)}}function d(e){var t=e.token;return P(e,o.TokenKind.DOLLAR),{kind:a.VARIABLE,name:s(e),loc:I(e,t)}}function h(e){var t=e.token;return{kind:a.SELECTION_SET,selections:Q(e,o.TokenKind.BRACE_L,m,o.TokenKind.BRACE_R),loc:I(e,t)}}function m(e){return j(e,o.TokenKind.SPREAD)?function(e){var t=e.token;if(P(e,o.TokenKind.SPREAD),j(e,o.TokenKind.NAME)&&"on"!==e.token.value)return{kind:a.FRAGMENT_SPREAD,name:y(e),directives:k(e),loc:I(e,t)};var n=null;"on"===e.token.value&&(e.advance(),n=S(e));return{kind:a.INLINE_FRAGMENT,typeCondition:n,directives:k(e),selectionSet:h(e),loc:I(e,t)}}(e):function(e){var t=e.token,n=s(e),r=void 0,i=void 0;M(e,o.TokenKind.COLON)?(r=n,i=s(e)):(r=null,i=n);return{kind:a.FIELD,alias:r,name:i,arguments:g(e),directives:k(e),selectionSet:j(e,o.TokenKind.BRACE_L)?h(e):null,loc:I(e,t)}}(e)}function g(e){return j(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:s(e),value:(P(e,o.TokenKind.COLON),b(e,!1)),loc:I(e,t)}}function y(e){if("on"===e.token.value)throw G(e);return s(e)}function b(e,t){var n=e.token;switch(n.kind){case o.TokenKind.BRACKET_L:return function(e,t){var n=e.token,r=t?T:_;return{kind:a.LIST,values:V(e,o.TokenKind.BRACKET_L,r,o.TokenKind.BRACKET_R),loc:I(e,n)}}(e,t);case o.TokenKind.BRACE_L:return function(e,t){var n=e.token;P(e,o.TokenKind.BRACE_L);var r=[];for(;!M(e,o.TokenKind.BRACE_R);)r.push(w(e,t));return{kind:a.OBJECT,fields:r,loc:I(e,n)}}(e,t);case o.TokenKind.INT:return e.advance(),{kind:a.INT,value:n.value,loc:I(e,n)};case o.TokenKind.FLOAT:return e.advance(),{kind:a.FLOAT,value:n.value,loc:I(e,n)};case o.TokenKind.STRING:return e.advance(),{kind:a.STRING,value:n.value,loc:I(e,n)};case o.TokenKind.NAME:return"true"===n.value||"false"===n.value?(e.advance(),{kind:a.BOOLEAN,value:"true"===n.value,loc:I(e,n)}):"null"===n.value?(e.advance(),{kind:a.NULL,loc:I(e,n)}):(e.advance(),{kind:a.ENUM,value:n.value,loc:I(e,n)});case o.TokenKind.DOLLAR:if(!t)return d(e)}throw G(e)}function T(e){return b(e,!0)}function _(e){return b(e,!1)}function w(e,t){var n=e.token;return{kind:a.OBJECT_FIELD,name:s(e),value:(P(e,o.TokenKind.COLON),b(e,t)),loc:I(e,n)}}function k(e){for(var t=[];j(e,o.TokenKind.AT);)t.push(E(e));return t}function E(e){var t=e.token;return P(e,o.TokenKind.AT),{kind:a.DIRECTIVE,name:s(e),arguments:g(e),loc:I(e,t)}}function O(e){var t=e.token,n=void 0;return M(e,o.TokenKind.BRACKET_L)?(n=O(e),P(e,o.TokenKind.BRACKET_R),n={kind:a.LIST_TYPE,type:n,loc:I(e,t)}):n=S(e),M(e,o.TokenKind.BANG)?{kind:a.NON_NULL_TYPE,type:n,loc:I(e,t)}:n}function S(e){var t=e.token;return{kind:a.NAMED_TYPE,name:s(e),loc:I(e,t)}}function L(e){var t=e.token,n=c(e);P(e,o.TokenKind.COLON);var r=S(e);return{kind:a.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:I(e,t)}}function C(e){var t=e.token;R(e,"type");var n=s(e),r=function(e){var t=[];if("implements"===e.token.value){e.advance();do{t.push(S(e))}while(j(e,o.TokenKind.NAME))}return t}(e),i=k(e),u=V(e,o.TokenKind.BRACE_L,N,o.TokenKind.BRACE_R);return{kind:a.OBJECT_TYPE_DEFINITION,name:n,interfaces:r,directives:i,fields:u,loc:I(e,t)}}function N(e){var t=e.token,n=s(e),r=x(e);P(e,o.TokenKind.COLON);var i=O(e),u=k(e);return{kind:a.FIELD_DEFINITION,name:n,arguments:r,type:i,directives:u,loc:I(e,t)}}function x(e){return j(e,o.TokenKind.PAREN_L)?Q(e,o.TokenKind.PAREN_L,D,o.TokenKind.PAREN_R):[]}function D(e){var t=e.token,n=s(e);P(e,o.TokenKind.COLON);var r=O(e),i=null;M(e,o.TokenKind.EQUALS)&&(i=T(e));var u=k(e);return{kind:a.INPUT_VALUE_DEFINITION,name:n,type:r,defaultValue:i,directives:u,loc:I(e,t)}}function A(e){var t=e.token,n=s(e),r=k(e);return{kind:a.ENUM_VALUE_DEFINITION,name:n,directives:r,loc:I(e,t)}}function I(e,t){if(!e.options.noLocation)return new F(t,e.lastToken,e.source)}function F(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function j(e,t){return e.token.kind===t}function M(e,t){var n=e.token.kind===t;return n&&e.advance(),n}function P(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 R(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 G(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){P(e,t);for(var i=[];!M(e,r);)i.push(n(e));return i}function Q(e,t,n,r){P(e,t);for(var i=[n(e)];!M(e,r);)i.push(n(e));return i}F.prototype.toJSON=F.prototype.inspect=function(){return{start:this.start,end:this.end}}},{"../error":88,"./kinds":105,"./lexer":106,"./source":110}],109:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.print=function(e){return(0,r.visit)(e,{leave:i})};var r=e("./visitor");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=s("(",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+s(" = ",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([s("",t,": ")+n+s("(",o(r,", "),")"),o(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+s(" ",o(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return o(["...",s("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+" "+s("",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+s("(",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,s("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+s("(",o(n,", "),")")+": "+r+s(" ",o(i," "))},InputValueDefinition:function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,s("= ",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+s("(",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 s(e,t,n){return t?e+t+(n||""):""}},{"./visitor":111}],110:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.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 request"}},{}],111:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.visit=function(e,t,n){var s=n||r,u=void 0,l=Array.isArray(e),c=[e],f=-1,p=[],d=void 0,h=[],m=[],g=e;do{var v=++f===c.length,y=void 0,b=void 0,T=v&&0!==p.length;if(v){if(y=0===m.length?void 0:h.pop(),b=d,d=m.pop(),T){if(l)b=b.slice();else{var _={};for(var w in b)b.hasOwnProperty(w)&&(_[w]=b[w]);b=_}for(var k=0,E=0;E<p.length;E++){var O=p[E][0],S=p[E][1];l&&(O-=k),l&&null===S?(b.splice(O,1),k++):b[O]=S}}f=u.index,c=u.keys,p=u.edits,l=u.inArray,u=u.prev}else{if(y=d?l?f:c[f]:void 0,null==(b=d?d[y]:g))continue;d&&h.push(y)}var L=void 0;if(!Array.isArray(b)){if(!o(b))throw new Error("Invalid AST Node: "+JSON.stringify(b));var C=a(t,b.kind,v);if(C){if((L=C.call(t,b,y,d,h,m))===i)break;if(!1===L){if(!v){h.pop();continue}}else if(void 0!==L&&(p.push([y,L]),!v)){if(!o(L)){h.pop();continue}b=L}}}void 0===L&&T&&p.push([y,b]),v||(u={inArray:l,index:f,keys:c,edits:p,prev:u},l=Array.isArray(b),c=l?b:s[b.kind]||[],f=-1,p=[],d&&m.push(d),d=b)}while(void 0!==u);0!==p.length&&(g=p[p.length-1][1]);return g},n.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 s=o.apply(e[r],arguments);if(!1===s)t[r]=n;else if(s===i)t[r]=i;else if(void 0!==s)return s}}},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 s=o.apply(e[r],arguments);if(s===i)t[r]=i;else if(void 0!==s&&!1!==s)return s}}}}},n.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}}},n.getVisitFn=a;var r=n.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=n.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}}}},{}],112:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./subscribe");Object.defineProperty(n,"subscribe",{enumerable:!0,get:function(){return r.subscribe}}),Object.defineProperty(n,"createSourceEventStream",{enumerable:!0,get:function(){return r.createSourceEventStream}})},{"./subscribe":114}],113:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n=(0,r.getAsyncIterator)(e),o=void 0,a=void 0;"function"==typeof n.return&&(o=n.return,a=function(e){var t=function(){return Promise.reject(e)};return o.call(n).then(t,t)});function s(e){return e.done?e:function(e,t){return new Promise(function(n){return n(t(e))})}(e.value,t).then(i,a)}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 n.next().then(s)},return:function(){return o?o.call(n).then(s):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof n.throw?n.throw(e).then(s):Promise.reject(e).catch(a)}},r.$$asyncIterator,function(){return this})};var r=e("iterall");function i(e){return{value:e,done:!1}}},{iterall:169}],114:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.subscribe=function(e,t,n,r,i,o,a,s){var l=1===arguments.length?e:void 0,c=l?l.schema:e;return l?u(c,l.document,l.rootValue,l.contextValue,l.variableValues,l.operationName,l.fieldResolver,l.subscribeFieldResolver):u(c,t,n,r,i,o,a,s)},n.createSourceEventStream=l;var r=e("iterall"),i=e("../execution/execute"),o=(e("../type/schema"),s(e("../jsutils/invariant"))),a=s(e("./mapAsyncIterator"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,r,o,s,u,c){var f=l(e,t,n,r,o,s,c);return(0,a.default)(f,function(n){return(0,i.execute)(e,t,n,r,o,s,u)})}function l(e,t,n,a,s,u,l){(0,i.assertValidExecutionArguments)(e,t,s);var c=(0,i.buildExecutionContext)(e,t,n,a,s,u,l),f=(0,i.getOperationRootType)(e,c.operation),p=(0,i.collectFields)(c,f,c.operation.selectionSet,Object.create(null),Object.create(null)),d=Object.keys(p)[0],h=p[d],m=h[0],g=(0,i.getFieldDef)(e,f,m.name.value);(0,o.default)(g,"This subscription is not defined by the schema.");var v=g.subscribe||c.fieldResolver,y=(0,i.buildResolveInfo)(c,g,h,f,(0,i.addPath)(void 0,d)),b=(0,i.resolveFieldValueOrError)(c,g,h,v,n,y);if(b instanceof Error)throw b;if(!(0,r.isAsyncIterable)(b))throw new Error("Subscription must return Async Iterable. Received: "+String(b));return b}},{"../execution/execute":91,"../jsutils/invariant":97,"../type/schema":120,"./mapAsyncIterator":113,iterall:169}],115:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLNonNull=n.GraphQLList=n.GraphQLInputObjectType=n.GraphQLEnumType=n.GraphQLUnionType=n.GraphQLInterfaceType=n.GraphQLObjectType=n.GraphQLScalarType=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};n.isType=c,n.assertType=function(e){return(0,i.default)(c(e),"Expected "+String(e)+" to be a GraphQL type."),e},n.isInputType=f,n.assertInputType=function(e){return(0,i.default)(f(e),"Expected "+String(e)+" to be a GraphQL input type."),e},n.isOutputType=p,n.assertOutputType=function(e){return(0,i.default)(p(e),"Expected "+String(e)+" to be a GraphQL output type."),e},n.isLeafType=d,n.assertLeafType=function(e){return(0,i.default)(d(e),"Expected "+String(e)+" to be a GraphQL leaf type."),e},n.isCompositeType=h,n.assertCompositeType=function(e){return(0,i.default)(h(e),"Expected "+String(e)+" to be a GraphQL composite type."),e},n.isAbstractType=m,n.assertAbstractType=function(e){return(0,i.default)(m(e),"Expected "+String(e)+" to be a GraphQL abstract type."),e},n.getNullableType=function(e){return e instanceof L?e.ofType:e},n.isNamedType=g,n.assertNamedType=function(e){return(0,i.default)(g(e),"Expected "+String(e)+" to be a GraphQL named type."),e},n.getNamedType=function(e){if(e){for(var t=e;t instanceof S||t instanceof L;)t=t.ofType;return t}};var i=u(e("../jsutils/invariant")),o=u(e("../jsutils/isNullish")),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}(e("../language/kinds")),s=e("../utilities/assertValidName");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){return e instanceof y||e instanceof b||e instanceof w||e instanceof k||e instanceof E||e instanceof O||e instanceof S||e instanceof L}function f(e){return e instanceof y||e instanceof E||e instanceof O||e instanceof L&&f(e.ofType)||e instanceof S&&f(e.ofType)}function p(e){return e instanceof y||e instanceof b||e instanceof w||e instanceof k||e instanceof E||e instanceof L&&p(e.ofType)||e instanceof S&&p(e.ofType)}function d(e){return e instanceof y||e instanceof E}function h(e){return e instanceof b||e instanceof w||e instanceof k}function m(e){return e instanceof w||e instanceof k}function g(e){return e instanceof y||e instanceof b||e instanceof w||e instanceof k||e instanceof E||e instanceof O}function v(e){return"function"==typeof e?e():e}var y=n.GraphQLScalarType=function(){function e(t){l(this,e),(0,s.assertValidName)(t.name),this.name=t.name,this.description=t.description,(0,i.default)("function"==typeof t.serialize,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)&&(0,i.default)("function"==typeof t.parseValue&&"function"==typeof t.parseLiteral,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,o.default)(this.parseValue(e))},e.prototype.parseValue=function(e){var t=this._scalarConfig.parseValue;return t&&!(0,o.default)(e)?t(e):void 0},e.prototype.isValidLiteral=function(e){return!(0,o.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}();y.prototype.toJSON=y.prototype.inspect=y.prototype.toString;var b=n.GraphQLObjectType=function(){function e(t){l(this,e),(0,s.assertValidName)(t.name,t.isIntrospection),this.name=t.name,this.description=t.description,t.isTypeOf&&(0,i.default)("function"==typeof t.isTypeOf,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=T(this,this._typeConfig.fields))},e.prototype.getInterfaces=function(){return this._interfaces||(this._interfaces=function(e,t){var n=v(t);if(!n)return[];(0,i.default)(Array.isArray(n),e.name+" interfaces must be an Array or a function which returns an Array.");var r=Object.create(null);return n.forEach(function(t){(0,i.default)(t instanceof w,e.name+" may only implement Interface types, it cannot implement: "+String(t)+"."),(0,i.default)(!r[t.name],e.name+" may declare it implements "+t.name+" only once."),r[t.name]=!0,"function"!=typeof t.resolveType&&(0,i.default)("function"==typeof e.isTypeOf,"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 T(e,t){var n=v(t);(0,i.default)(_(n),e.name+" fields must be an object with field names as keys or a function which returns such an object.");var o=Object.keys(n);(0,i.default)(o.length>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 o.forEach(function(t){(0,s.assertValidName)(t);var o=n[t];(0,i.default)(_(o),e.name+"."+t+" field config must be an object"),(0,i.default)(!o.hasOwnProperty("isDeprecated"),e.name+"."+t+' should provide "deprecationReason" instead of "isDeprecated".');var u,l=r({},o,{isDeprecated:Boolean(o.deprecationReason),name:t});(0,i.default)(p(l.type),e.name+"."+t+" field type must be Output Type but got: "+String(l.type)+"."),(0,i.default)(null==(u=l.resolve)||"function"==typeof u,e.name+"."+t+" field resolver must be a function if provided, but got: "+String(l.resolve)+".");var c=o.args;c?((0,i.default)(_(c),e.name+"."+t+" args must be an object with argument names as keys."),l.args=Object.keys(c).map(function(n){(0,s.assertValidName)(n);var r=c[n];return(0,i.default)(f(r.type),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}})):l.args=[],a[t]=l}),a}function _(e){return e&&"object"==typeof e&&!Array.isArray(e)}b.prototype.toJSON=b.prototype.inspect=b.prototype.toString;var w=n.GraphQLInterfaceType=function(){function e(t){l(this,e),(0,s.assertValidName)(t.name),this.name=t.name,this.description=t.description,t.resolveType&&(0,i.default)("function"==typeof t.resolveType,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=T(this,this._typeConfig.fields))},e.prototype.toString=function(){return this.name},e}();w.prototype.toJSON=w.prototype.inspect=w.prototype.toString;var k=n.GraphQLUnionType=function(){function e(t){l(this,e),(0,s.assertValidName)(t.name),this.name=t.name,this.description=t.description,t.resolveType&&(0,i.default)("function"==typeof t.resolveType,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=v(t);(0,i.default)(Array.isArray(n)&&n.length>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){(0,i.default)(t instanceof b,e.name+" may only contain Object types, it cannot contain: "+String(t)+"."),(0,i.default)(!r[t.name],e.name+" can include "+t.name+" type only once."),r[t.name]=!0,"function"!=typeof e.resolveType&&(0,i.default)("function"==typeof t.isTypeOf,'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}();k.prototype.toJSON=k.prototype.inspect=k.prototype.toString;var E=n.GraphQLEnumType=function(){function e(t){l(this,e),this.name=t.name,(0,s.assertValidName)(t.name,t.isIntrospection),this.description=t.description,this._values=function(e,t){(0,i.default)(_(t),e.name+" values must be an object with value names as keys.");var n=Object.keys(t);return(0,i.default)(n.length>0,e.name+" values must be an object with value names as keys."),n.map(function(n){(0,s.assertValidName)(n),(0,i.default)(-1===["true","false","null"].indexOf(n),'Name "'+n+'" can not be used as an Enum value.');var r=t[n];return(0,i.default)(_(r),e.name+"."+n+' must refer to an object with a "value" key representing an internal value but got: '+String(r)+"."),(0,i.default)(!r.hasOwnProperty("isDeprecated"),e.name+"."+n+' should provide "deprecationReason" instead of "isDeprecated".'),{name:n,description:r.description,isDeprecated:Boolean(r.deprecationReason),deprecationReason:r.deprecationReason,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===a.ENUM&&void 0!==this._getNameLookup()[e.value]},e.prototype.parseLiteral=function(e){if(e.kind===a.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}();E.prototype.toJSON=E.prototype.inspect=E.prototype.toString;var O=n.GraphQLInputObjectType=function(){function e(t){l(this,e),(0,s.assertValidName)(t.name),this.name=t.name,this.description=t.description,this._typeConfig=t}return e.prototype.getFields=function(){return this._fields||(this._fields=this._defineFieldMap())},e.prototype._defineFieldMap=function(){var e=this,t=v(this._typeConfig.fields);(0,i.default)(_(t),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);(0,i.default)(n.length>0,this.name+" fields must be an object with field names as keys or a function which returns such an object.");var o=Object.create(null);return n.forEach(function(n){(0,s.assertValidName)(n);var a=r({},t[n],{name:n});(0,i.default)(f(a.type),e.name+"."+n+" field type must be Input Type but got: "+String(a.type)+"."),(0,i.default)(null==a.resolve,e.name+"."+n+" field type has a resolve property, but Input Types cannot define resolvers."),o[n]=a}),o},e.prototype.toString=function(){return this.name},e}();O.prototype.toJSON=O.prototype.inspect=O.prototype.toString;var S=n.GraphQLList=function(){function e(t){l(this,e),(0,i.default)(c(t),"Can only create List of a GraphQLType but got: "+String(t)+"."),this.ofType=t}return e.prototype.toString=function(){return"["+String(this.ofType)+"]"},e}();S.prototype.toJSON=S.prototype.inspect=S.prototype.toString;var L=n.GraphQLNonNull=function(){function e(t){l(this,e),(0,i.default)(c(t)&&!(t instanceof e),"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}();L.prototype.toJSON=L.prototype.inspect=L.prototype.toString},{"../jsutils/invariant":97,"../jsutils/isNullish":99,"../language/kinds":105,"../utilities/assertValidName":122}],116:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.specifiedDirectives=n.GraphQLDeprecatedDirective=n.DEFAULT_DEPRECATION_REASON=n.GraphQLSkipDirective=n.GraphQLIncludeDirective=n.GraphQLDirective=n.DirectiveLocation=void 0;var r,i=e("./definition"),o=e("./scalars"),a=e("../jsutils/invariant"),s=(r=a)&&r.__esModule?r:{default:r},u=e("../utilities/assertValidName");var l=n.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=n.GraphQLDirective=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,s.default)(t.name,"Directive must be named."),(0,u.assertValidName)(t.name),(0,s.default)(Array.isArray(t.locations),"Must provide locations for directive."),this.name=t.name,this.description=t.description,this.locations=t.locations;var n=t.args;n?((0,s.default)(!Array.isArray(n),"@"+t.name+" args must be an object with argument names as keys."),this.args=Object.keys(n).map(function(e){(0,u.assertValidName)(e);var r=n[e];return(0,s.default)((0,i.isInputType)(r.type),"@"+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}})):this.args=[]},f=n.GraphQLIncludeDirective=new c({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[l.FIELD,l.FRAGMENT_SPREAD,l.INLINE_FRAGMENT],args:{if:{type:new i.GraphQLNonNull(o.GraphQLBoolean),description:"Included when true."}}}),p=n.GraphQLSkipDirective=new c({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[l.FIELD,l.FRAGMENT_SPREAD,l.INLINE_FRAGMENT],args:{if:{type:new i.GraphQLNonNull(o.GraphQLBoolean),description:"Skipped when true."}}}),d=n.DEFAULT_DEPRECATION_REASON="No longer supported",h=n.GraphQLDeprecatedDirective=new c({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[l.FIELD_DEFINITION,l.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}}});n.specifiedDirectives=[f,p,h]},{"../jsutils/invariant":97,"../utilities/assertValidName":122,"./definition":115,"./scalars":119}],117:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./schema");Object.defineProperty(n,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}});var i=e("./definition");Object.defineProperty(n,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(n,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(n,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(n,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(n,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(n,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(n,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(n,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(n,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(n,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(n,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(n,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(n,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(n,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(n,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(n,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(n,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(n,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(n,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(n,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(n,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(n,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(n,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(n,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}});var o=e("./directives");Object.defineProperty(n,"DirectiveLocation",{enumerable:!0,get:function(){return o.DirectiveLocation}}),Object.defineProperty(n,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(n,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(n,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(n,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(n,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(n,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}});var a=e("./scalars");Object.defineProperty(n,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(n,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(n,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(n,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(n,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}});var s=e("./introspection");Object.defineProperty(n,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(n,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(n,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(n,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(n,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(n,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(n,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(n,"__EnumValue",{enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(n,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(n,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(n,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(n,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}})},{"./definition":115,"./directives":116,"./introspection":118,"./scalars":119,"./schema":120}],118:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TypeNameMetaFieldDef=n.TypeMetaFieldDef=n.SchemaMetaFieldDef=n.__TypeKind=n.TypeKind=n.__EnumValue=n.__InputValue=n.__Field=n.__Type=n.__DirectiveLocation=n.__Directive=n.__Schema=void 0;var r,i=e("../jsutils/isInvalid"),o=(r=i)&&r.__esModule?r:{default:r},a=e("../utilities/astFromValue"),s=e("../language/printer"),u=e("./definition"),l=e("./scalars"),c=e("./directives");var f=n.__Schema=new u.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 u.GraphQLNonNull(new u.GraphQLList(new u.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 u.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 u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(p))),resolve:function(e){return e.getDirectives()}}}}}),p=n.__Directive=new u.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 u.GraphQLNonNull(l.GraphQLString)},description:{type:l.GraphQLString},locations:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(d)))},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(g))),resolve:function(e){return e.args||[]}},onOperation:{deprecationReason:"Use `locations`.",type:new u.GraphQLNonNull(l.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 u.GraphQLNonNull(l.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 u.GraphQLNonNull(l.GraphQLBoolean),resolve:function(e){return-1!==e.locations.indexOf(c.DirectiveLocation.FIELD)}}}}}),d=n.__DirectiveLocation=new u.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=n.__Type=new u.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 u.GraphQLNonNull(b),resolve:function(e){if(e instanceof u.GraphQLScalarType)return y.SCALAR;if(e instanceof u.GraphQLObjectType)return y.OBJECT;if(e instanceof u.GraphQLInterfaceType)return y.INTERFACE;if(e instanceof u.GraphQLUnionType)return y.UNION;if(e instanceof u.GraphQLEnumType)return y.ENUM;if(e instanceof u.GraphQLInputObjectType)return y.INPUT_OBJECT;if(e instanceof u.GraphQLList)return y.LIST;if(e instanceof u.GraphQLNonNull)return y.NON_NULL;throw new Error("Unknown kind of type: "+e)}},name:{type:l.GraphQLString},description:{type:l.GraphQLString},fields:{type:new u.GraphQLList(new u.GraphQLNonNull(m)),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(e instanceof u.GraphQLObjectType||e instanceof u.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 u.GraphQLList(new u.GraphQLNonNull(h)),resolve:function(e){if(e instanceof u.GraphQLObjectType)return e.getInterfaces()}},possibleTypes:{type:new u.GraphQLList(new u.GraphQLNonNull(h)),resolve:function(e,t,n,r){var i=r.schema;if((0,u.isAbstractType)(e))return i.getPossibleTypes(e)}},enumValues:{type:new u.GraphQLList(new u.GraphQLNonNull(v)),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(e instanceof u.GraphQLEnumType){var r=e.getValues();return n||(r=r.filter(function(e){return!e.deprecationReason})),r}}},inputFields:{type:new u.GraphQLList(new u.GraphQLNonNull(g)),resolve:function(e){if(e instanceof u.GraphQLInputObjectType){var t=e.getFields();return Object.keys(t).map(function(e){return t[e]})}}},ofType:{type:h}}}}),m=n.__Field=new u.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 u.GraphQLNonNull(l.GraphQLString)},description:{type:l.GraphQLString},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(g))),resolve:function(e){return e.args||[]}},type:{type:new u.GraphQLNonNull(h)},isDeprecated:{type:new u.GraphQLNonNull(l.GraphQLBoolean)},deprecationReason:{type:l.GraphQLString}}}}),g=n.__InputValue=new u.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 u.GraphQLNonNull(l.GraphQLString)},description:{type:l.GraphQLString},type:{type:new u.GraphQLNonNull(h)},defaultValue:{type:l.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,s.print)((0,a.astFromValue)(e.defaultValue,e.type))}}}}}),v=n.__EnumValue=new u.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 u.GraphQLNonNull(l.GraphQLString)},description:{type:l.GraphQLString},isDeprecated:{type:new u.GraphQLNonNull(l.GraphQLBoolean)},deprecationReason:{type:l.GraphQLString}}}}),y=n.TypeKind={SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"},b=n.__TypeKind=new u.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."}}});n.SchemaMetaFieldDef={name:"__schema",type:new u.GraphQLNonNull(f),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema}},n.TypeMetaFieldDef={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",type:new u.GraphQLNonNull(l.GraphQLString)}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)}},n.TypeNameMetaFieldDef={name:"__typename",type:new u.GraphQLNonNull(l.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name}}},{"../jsutils/isInvalid":98,"../language/printer":109,"../utilities/astFromValue":123,"./definition":115,"./directives":116,"./scalars":119}],119:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLID=n.GraphQLBoolean=n.GraphQLString=n.GraphQLFloat=n.GraphQLInt=void 0;var r=e("./definition"),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}(e("../language/kinds"));var o=2147483647,a=-2147483648;function s(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}n.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:s,parseValue:s,parseLiteral:function(e){if(e.kind===i.INT){var t=parseInt(e.value,10);if(t<=o&&t>=a)return t}return null}});function u(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))}n.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:u,parseValue:u,parseLiteral:function(e){return e.kind===i.FLOAT||e.kind===i.INT?parseFloat(e.value):null}}),n.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:String,parseValue:String,parseLiteral:function(e){return e.kind===i.STRING?e.value:null}}),n.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}}),n.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}})},{"../language/kinds":105,"./definition":115}],120:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLSchema=void 0;var r=e("./definition"),i=e("./directives"),o=e("./introspection"),a=l(e("../jsutils/find")),s=l(e("../jsutils/invariant")),u=e("../utilities/typeComparators");function l(e){return e&&e.__esModule?e:{default:e}}n.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),(0,s.default)("object"==typeof t,"Must provide configuration object."),(0,s.default)(t.query instanceof r.GraphQLObjectType,"Schema query must be Object Type but got: "+String(t.query)+"."),this._queryType=t.query,(0,s.default)(!t.mutation||t.mutation instanceof r.GraphQLObjectType,"Schema mutation must be Object Type if provided but got: "+String(t.mutation)+"."),this._mutationType=t.mutation,(0,s.default)(!t.subscription||t.subscription instanceof r.GraphQLObjectType,"Schema subscription must be Object Type if provided but got: "+String(t.subscription)+"."),this._subscriptionType=t.subscription,(0,s.default)(!t.types||Array.isArray(t.types),"Schema types must be Array if provided but got: "+String(t.types)+"."),(0,s.default)(!t.directives||Array.isArray(t.directives)&&t.directives.every(function(e){return e instanceof i.GraphQLDirective}),"Schema directives must be Array<GraphQLDirective> if provided but got: "+String(t.directives)+"."),this._directives=t.directives||i.specifiedDirectives;var l=[this.getQueryType(),this.getMutationType(),this.getSubscriptionType(),o.__Schema],f=t.types;f&&(l=l.concat(f)),this._typeMap=l.reduce(c,Object.create(null)),this._implementations=Object.create(null),Object.keys(this._typeMap).forEach(function(e){var t=n._typeMap[e];t instanceof r.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 r.GraphQLObjectType&&t.getInterfaces().forEach(function(e){return function(e,t,n){var i=t.getFields(),o=n.getFields();Object.keys(o).forEach(function(l){var c=i[l],f=o[l];(0,s.default)(c,'"'+n.name+'" expects field "'+l+'" but "'+t.name+'" does not provide it.'),(0,s.default)((0,u.isTypeSubTypeOf)(e,c.type,f.type),n.name+"."+l+' expects type "'+String(f.type)+'" but '+t.name+"."+l+' provides type "'+String(c.type)+'".'),f.args.forEach(function(e){var r=e.name,i=(0,a.default)(c.args,function(e){return e.name===r});(0,s.default)(i,n.name+"."+l+' expects argument "'+r+'" but '+t.name+"."+l+" does not provide it."),(0,s.default)((0,u.isEqualType)(e.type,i.type),n.name+"."+l+"("+r+':) expects type "'+String(e.type)+'" but '+t.name+"."+l+"("+r+':) provides type "'+String(i.type)+'".')}),c.args.forEach(function(e){var i=e.name,o=(0,a.default)(f.args,function(e){return e.name===i});o||(0,s.default)(!(e.type instanceof r.GraphQLNonNull),t.name+"."+l+"("+i+':) is of required type "'+String(e.type)+'" but is not also provided by the interface '+n.name+"."+l+".")})})}(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 r.GraphQLUnionType?e.getTypes():((0,s.default)(e instanceof r.GraphQLInterfaceType),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);(0,s.default)(Array.isArray(r),"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,a.default)(this.getDirectives(),function(t){return t.name===e})},e}();function c(e,t){if(!t)return e;if(t instanceof r.GraphQLList||t instanceof r.GraphQLNonNull)return c(e,t.ofType);if(e[t.name])return(0,s.default)(e[t.name]===t,'Schema must contain unique named types but contains multiple types named "'+t.name+'".'),e;e[t.name]=t;var n=e;if(t instanceof r.GraphQLUnionType&&(n=t.getTypes().reduce(c,n)),t instanceof r.GraphQLObjectType&&(n=t.getInterfaces().reduce(c,n)),t instanceof r.GraphQLObjectType||t instanceof r.GraphQLInterfaceType){var i=t.getFields();Object.keys(i).forEach(function(e){var t=i[e];if(t.args){var r=t.args.map(function(e){return e.type});n=r.reduce(c,n)}n=c(n,t.type)})}if(t instanceof r.GraphQLInputObjectType){var o=t.getFields();Object.keys(o).forEach(function(e){var t=o[e];n=c(n,t.type)})}return n}},{"../jsutils/find":96,"../jsutils/invariant":97,"../utilities/typeComparators":137,"./definition":115,"./directives":116,"./introspection":118}],121:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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}(e("../language/kinds")),o=e("../type/definition"),a=e("../type/introspection"),s=e("./typeFromAST"),u=e("../jsutils/find"),l=(r=u)&&r.__esModule?r:{default:r};n.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 u=void 0;"query"===e.operation?u=t.getQueryType():"mutation"===e.operation?u=t.getMutationType():"subscription"===e.operation&&(u=t.getSubscriptionType()),this._typeStack.push(u);break;case i.INLINE_FRAGMENT:case i.FRAGMENT_DEFINITION:var c=e.typeCondition,f=c?(0,s.typeFromAST)(t,c):this.getType();this._typeStack.push((0,o.isOutputType)(f)?f:void 0);break;case i.VARIABLE_DEFINITION:var p=(0,s.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,l.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 g=(0,o.getNullableType)(this.getInputType());this._inputTypeStack.push(g instanceof o.GraphQLList?g.ofType:void 0);break;case i.OBJECT_FIELD:var v=(0,o.getNamedType)(this.getInputType()),y=void 0;if(v instanceof o.GraphQLInputObjectType){var b=v.getFields()[e.name.value];y=b?b.type:void 0}this._inputTypeStack.push(y);break;case i.ENUM:var T=(0,o.getNamedType)(this.getInputType()),_=void 0;T instanceof o.GraphQLEnumType&&(_=T.getValue(e.value)),this._enumValue=_}},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}},{"../jsutils/find":96,"../language/kinds":105,"../type/definition":115,"../type/introspection":118,"./typeFromAST":138}],122:[function(e,t,n){(function(e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assertValidName=function(e,n){if(!e||"string"!=typeof e)throw new Error("Must be named. Unexpected name: "+e+".");if(!n&&!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(!t.test(e))throw new Error('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'+e+'" does not.')},n.formatWarning=a;var t=/^[_a-zA-Z][_a-zA-Z0-9]*$/,r=/^Error: /,i=Boolean(e&&e.env&&e.env.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(this,e("_process"))},{_process:229}],123:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.astFromValue=function e(t,n){var c=t;if(n instanceof u.GraphQLNonNull){var f=e(c,n.ofType);return f&&f.kind===s.NULL?null:f}if(null===c)return{kind:s.NULL};if((0,a.default)(c))return null;if(n instanceof u.GraphQLList){var p=n.ofType;if((0,r.isCollection)(c)){var d=[];return(0,r.forEach)(c,function(t){var n=e(t,p);n&&d.push(n)}),{kind:s.LIST,values:d}}return e(c,p)}if(n instanceof u.GraphQLInputObjectType){if(null===c||"object"!=typeof c)return null;var h=n.getFields(),m=[];return Object.keys(h).forEach(function(t){var n=h[t].type,r=e(c[t],n);r&&m.push({kind:s.OBJECT_FIELD,name:{kind:s.NAME,value:t},value:r})}),{kind:s.OBJECT,fields:m}}(0,i.default)(n instanceof u.GraphQLScalarType||n instanceof u.GraphQLEnumType,"Must provide Input Type, cannot use: "+String(n));var g=n.serialize(c);if((0,o.default)(g))return null;if("boolean"==typeof g)return{kind:s.BOOLEAN,value:g};if("number"==typeof g){var v=String(g);return/^[0-9]+$/.test(v)?{kind:s.INT,value:v}:{kind:s.FLOAT,value:v}}if("string"==typeof g)return n instanceof u.GraphQLEnumType?{kind:s.ENUM,value:g}:n===l.GraphQLID&&/^[0-9]+$/.test(g)?{kind:s.INT,value:g}:{kind:s.STRING,value:JSON.stringify(g).slice(1,-1)};throw new TypeError("Cannot convert value to AST: "+String(g))};var r=e("iterall"),i=c(e("../jsutils/invariant")),o=c(e("../jsutils/isNullish")),a=c(e("../jsutils/isInvalid")),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}(e("../language/kinds")),u=e("../type/definition"),l=e("../type/scalars");function c(e){return e&&e.__esModule?e:{default:e}}},{"../jsutils/invariant":97,"../jsutils/isInvalid":98,"../jsutils/isNullish":99,"../language/kinds":105,"../type/definition":115,"../type/scalars":119,iterall:169}],124:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.buildASTSchema=g,n.getDeprecationReason=v,n.getDescription=y,n.buildSchema=function(e){return g((0,s.parse)(e))};var r=m(e("../jsutils/invariant")),i=m(e("../jsutils/keyValMap")),o=e("./valueFromAST"),a=e("../language/lexer"),s=e("../language/parser"),u=e("../execution/values"),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}(e("../language/kinds")),c=e("../type/schema"),f=e("../type/scalars"),p=e("../type/definition"),d=e("../type/directives"),h=e("../type/introspection");function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if(!e||e.kind!==l.DOCUMENT)throw new Error("Must provide a document ast.");for(var t=void 0,n=[],a=Object.create(null),s=[],u=0;u<e.definitions.length;u++){var m=e.definitions[u];switch(m.kind){case l.SCHEMA_DEFINITION:if(t)throw new Error("Must provide only one schema definition.");t=m;break;case l.SCALAR_TYPE_DEFINITION:case l.OBJECT_TYPE_DEFINITION:case l.INTERFACE_TYPE_DEFINITION:case l.ENUM_TYPE_DEFINITION:case l.UNION_TYPE_DEFINITION:case l.INPUT_OBJECT_TYPE_DEFINITION:var g=m.name.value;if(a[g])throw new Error('Type "'+g+'" was defined more than once.');n.push(m),a[g]=m;break;case l.DIRECTIVE_DEFINITION:s.push(m)}}var b=void 0,_=void 0,w=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(_)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.');_=t}else if("subscription"===e.operation){if(w)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.');w=t}}):(a.Query&&(b="Query"),a.Mutation&&(_="Mutation"),a.Subscription&&(w="Subscription")),!b)throw new Error("Must provide schema definition with query type or a type named Query.");var k={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 C(e.name.value)}),O=s.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&&x(e.arguments)})});return O.some(function(e){return"skip"===e.name})||O.push(d.GraphQLSkipDirective),O.some(function(e){return"include"===e.name})||O.push(d.GraphQLIncludeDirective),O.some(function(e){return"deprecated"===e.name})||O.push(d.GraphQLDeprecatedDirective),new c.GraphQLSchema({query:S(a[b]),mutation:_?S(a[_]):null,subscription:w?S(a[w]):null,types:E,directives:O});function S(e){var t=C(e.name.value);return(0,r.default)(t instanceof p.GraphQLObjectType,"AST must provide object type."),t}function L(e){return function e(t,n){if(n.kind===l.LIST_TYPE)return new p.GraphQLList(e(t,n.type));if(n.kind===l.NON_NULL_TYPE){var i=e(t,n.type);return(0,r.default)(!(i instanceof p.GraphQLNonNull),"No nesting nonnull."),new p.GraphQLNonNull(i)}return t}(C(function(e){for(var t=e;t.kind===l.LIST_TYPE||t.kind===l.NON_NULL_TYPE;)t=t.type;return t}(e).name.value),e)}function C(e){if(k[e])return k[e];if(!a[e])throw new Error('Type "'+e+'" not found in document.');var t=function(e){if(!e)throw new Error("def must be defined");switch(e.kind){case l.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=L(e),(0,r.default)(t instanceof p.GraphQLInterfaceType,"Expected Interface type."),t;var t})}(e)}})}(e);case l.INTERFACE_TYPE_DEFINITION:return function(e){var t=e.name.value;return new p.GraphQLInterfaceType({name:t,description:y(e),fields:function(){return N(e)},resolveType:T})}(e);case l.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:v(e)}})})}(e);case l.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=L(e),(0,r.default)(t instanceof p.GraphQLObjectType,"Expected Object type."),t;var t}),resolveType:T})}(e);case l.SCALAR_TYPE_DEFINITION:return function(e){return new p.GraphQLScalarType({name:e.name.value,description:y(e),serialize:function(){return null},parseValue:function(){return!1},parseLiteral:function(){return!1}})}(e);case l.INPUT_OBJECT_TYPE_DEFINITION:return function(e){return new p.GraphQLInputObjectType({name:e.name.value,description:y(e),fields:function(){return x(e.fields)}})}(e);default:throw new Error('Type kind "'+e.kind+'" not supported.')}}(a[e]);if(!t)throw new Error('Nothing constructed for "'+e+'".');return k[e]=t,t}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)(L(t))),description:y(e),args:x(e.arguments),deprecationReason:v(e)};var t})}function x(e){return(0,i.default)(e,function(e){return e.name.value},function(e){var t,n=(t=e.type,(0,p.assertInputType)(L(t)));return{type:n,description:y(e),defaultValue:(0,o.valueFromAST)(e.defaultValue,n)}})}}function v(e){var t=(0,u.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),s=b(o);(void 0===r||s<r)&&(r=s),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 T(){throw new Error("Generated Schema cannot use Interface or Union types for execution.")}},{"../execution/values":93,"../jsutils/invariant":97,"../jsutils/keyValMap":101,"../language/kinds":105,"../language/lexer":106,"../language/parser":108,"../type/definition":115,"../type/directives":116,"../type/introspection":118,"../type/scalars":119,"../type/schema":120,"./valueFromAST":139}],125:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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 l.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(0,r.default)(!(i instanceof l.GraphQLNonNull),"No nesting nonnull."),new l.GraphQLNonNull(i)}return g(e.name)}function g(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 s=e,new l.GraphQLScalarType({name:s.name,description:s.description,serialize:function(e){return e},parseValue:function(){return!1},parseLiteral:function(){return!1}});case c.TypeKind.OBJECT:return a=e,new l.GraphQLObjectType({name:a.name,description:a.description,interfaces:a.interfaces.map(b),fields:function(){return T(a)}});case c.TypeKind.INTERFACE:return i=e,new l.GraphQLInterfaceType({name:i.name,description:i.description,fields:function(){return T(i)},resolveType:h});case c.TypeKind.UNION:return r=e,new l.GraphQLUnionType({name:r.name,description:r.description,types:r.possibleTypes.map(y),resolveType:h});case c.TypeKind.ENUM:return n=e,new l.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 l.GraphQLInputObjectType({name:t.name,description:t.description,fields:function(){return _(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 s}(t);return d[e]=r,r}function v(e){var t=m(e);return(0,r.default)((0,l.isOutputType)(t),"Introspection must provide output type for fields."),t}function y(e){var t=m(e);return(0,r.default)(t instanceof l.GraphQLObjectType,"Introspection must provide object type for possibleTypes."),t}function b(e){var t=m(e);return(0,r.default)(t instanceof l.GraphQLInterfaceType,"Introspection must provide interface type for interfaces."),t}function T(e){return(0,o.default)(e.fields,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason,type:v(e.type),args:_(e.args)}})}function _(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,r.default)((0,l.isInputType)(t),"Introspection must provide input type for arguments."),t}(e.type),n=e.defaultValue?(0,a.valueFromAST)((0,s.parseValue)(e.defaultValue),t):void 0;return{name:e.name,description:e.description,type:t,defaultValue:n}}var k=t.types.map(function(e){return g(e.name)}),E=y(t.queryType),O=t.mutationType?y(t.mutationType):null,S=t.subscriptionType?y(t.subscriptionType):null,L=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:_(e.args)})}):[];return new u.GraphQLSchema({query:E,mutation:O,subscription:S,types:k,directives:L})};var r=d(e("../jsutils/invariant")),i=d(e("../jsutils/keyMap")),o=d(e("../jsutils/keyValMap")),a=e("./valueFromAST"),s=e("../language/parser"),u=e("../type/schema"),l=e("../type/definition"),c=e("../type/introspection"),f=e("../type/scalars"),p=e("../type/directives");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.")}},{"../jsutils/invariant":97,"../jsutils/keyMap":100,"../jsutils/keyValMap":101,"../language/parser":108,"../type/definition":115,"../type/directives":116,"../type/introspection":118,"../type/scalars":119,"../type/schema":120,"./valueFromAST":139}],126:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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}}},{}],127:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.extendSchema=function(e,t){(0,r.default)(e instanceof l.GraphQLSchema,"Must provide valid GraphQLSchema"),(0,r.default)(t&&t.kind===h.DOCUMENT,"Must provide valid Document AST");for(var n=Object.create(null),m=Object.create(null),v=[],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 T=b.name.value;if(e.getType(T))throw new u.GraphQLError('Type "'+T+'" already exists in the schema. It cannot also be defined in this type definition.',[b]);n[T]=b;break;case h.TYPE_EXTENSION_DEFINITION:var _=b.definition.name.value,w=e.getType(_);if(!w)throw new u.GraphQLError('Cannot extend type "'+_+'" because it does not exist in the existing schema.',[b.definition]);if(!(w instanceof c.GraphQLObjectType))throw new u.GraphQLError('Cannot extend non-object type "'+_+'".',[b.definition]);var k=m[_];k?k.push(b):k=[b],m[_]=k;break;case h.DIRECTIVE_DEFINITION:var E=b.name.value,O=e.getDirective(E);if(O)throw new u.GraphQLError('Directive "'+E+'" already exists in the schema. It cannot be redefined.',[b]);v.push(b)}}if(0===Object.keys(m).length&&0===Object.keys(n).length&&0===v.length)return e;var S={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},L=F(e.getQueryType()),C=e.getMutationType(),N=C?F(C):null,x=e.getSubscriptionType(),D=x?F(x):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 l.GraphQLSchema({query:L,mutation:N,subscription:D,types:I,directives:function(){var t=e.getDirectives();(0,r.default)(t,"schema must have default directives");var n=v.map(function(e){return function(e){return new f.GraphQLDirective({name:e.name.value,locations:e.locations.map(function(e){return e.value}),args:e.arguments&&q(e.arguments)})}(e)});return t.concat(n)}()});function F(e){var t=R(e.name);return(0,r.default)(t,"Missing type from schema"),t}function j(e){var t=R(e.name.value);if(!t)throw new u.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(0,r.default)(t instanceof c.GraphQLObjectType,"Must be Object type."),t}function P(e){var t=j(e);return(0,r.default)(t instanceof c.GraphQLInterfaceType,"Must be Interface type."),t}function R(t){var r=S[t];if(r)return r;var i=e.getType(t);if(i){var s=function(e){if(e instanceof c.GraphQLObjectType)return function(e){return new c.GraphQLObjectType({name:e.name,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 u.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 G(e)},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 G(e)},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),resolveType:e.resolveType})}(e);return e}(i);return S[t]=s,s}var l=n[t];if(l){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)}})}(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)},resolveType:g})}(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),resolveType:g})}(e);case h.SCALAR_TYPE_DEFINITION:return function(e){return new c.GraphQLScalarType({name:e.name.value,description:(0,a.getDescription)(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)}})})}(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 q(e.fields)}})}(e)}throw new TypeError("Unknown type kind "+e.kind)}(l);return S[t]=f,f}}function G(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:V(r.type),args:(0,i.default)(r.args,function(e){return e.name}),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 u.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:U(r.type),args:q(r.arguments),deprecationReason:(0,a.getDeprecationReason)(r)}})}),t}function V(e){return e instanceof c.GraphQLList?new c.GraphQLList(V(e.ofType)):e instanceof c.GraphQLNonNull?new c.GraphQLNonNull(V(e.ofType)):F(e)}function Q(e){return(0,o.default)(e.fields,function(e){return e.name.value},function(e){return{type:U(e.type),description:(0,a.getDescription)(e),args:q(e.arguments),deprecationReason:(0,a.getDeprecationReason)(e)}})}function q(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(0,r.default)(!(n instanceof c.GraphQLNonNull),"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,s.valueFromAST)(e.defaultValue,t)}})}function U(e){if(e.kind===h.LIST_TYPE)return new c.GraphQLList(U(e.type));if(e.kind===h.NON_NULL_TYPE){var t=U(e.type);return(0,r.default)(!(t instanceof c.GraphQLNonNull),"Must be nullable"),new c.GraphQLNonNull(t)}return n=e,(0,c.assertOutputType)(j(n));var n}};var r=m(e("../jsutils/invariant")),i=m(e("../jsutils/keyMap")),o=m(e("../jsutils/keyValMap")),a=e("./buildASTSchema"),s=e("./valueFromAST"),u=e("../error/GraphQLError"),l=e("../type/schema"),c=e("../type/definition"),f=e("../type/directives"),p=e("../type/introspection"),d=e("../type/scalars"),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}(e("../language/kinds"));function m(e){return e&&e.__esModule?e:{default:e}}function g(){throw new Error("Extended Schema cannot use Interface or Union types for execution.")}},{"../error/GraphQLError":86,"../jsutils/invariant":97,"../jsutils/keyMap":100,"../jsutils/keyValMap":101,"../language/kinds":105,"../type/definition":115,"../type/directives":116,"../type/introspection":118,"../type/scalars":119,"../type/schema":120,"./buildASTSchema":124,"./valueFromAST":139}],128:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DangerousChangeType=n.BreakingChangeType=void 0,n.findBreakingChanges=function(e,t){return[].concat(a(e,t),s(e,t),c(e,t),d(e,t),h(e,t),u(e,t).breakingChanges,m(e,t))},n.findDangerousChanges=function(e,t){return[].concat(u(e,t).dangerousChanges)},n.findRemovedTypes=a,n.findTypesThatChangedKind=s,n.findArgChanges=u,n.findFieldsThatChangedType=c,n.findFieldsThatChangedTypeOnInputObjectTypes=f,n.findTypesRemovedFromUnions=d,n.findValuesRemovedFromEnums=h,n.findInterfacesRemovedFromObjectTypes=m;var r=e("../type/definition"),i=(e("../type/schema"),n.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=n.DangerousChangeType={ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"};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 s(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 "+l(t)+" to "+l(a)+"."})}}),o}function u(e,t){var n=e.getTypeMap(),a=t.getTypeMap(),s=[],u=[];return Object.keys(n).forEach(function(e){var t=n[e],l=a[e];if((t instanceof r.GraphQLObjectType||t instanceof r.GraphQLInterfaceType)&&l instanceof t.constructor){var c=t.getFields(),f=l.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&&u.push({type:o.ARG_DEFAULT_VALUE_CHANGE,description:t.name+"."+e+" arg "+n.name+" has changed defaultValue"}):s.push({type:i.ARG_CHANGED_KIND,description:t.name+"."+e+" arg "+n.name+" has changed type from "+n.type.toString()+" to "+r.type.toString()}):s.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&&s.push({type:i.NON_NULL_ARG_ADDED,description:"A non-null arg "+t.name+" on "+l.name+"."+e+" was added"})}))})}}),{breakingChanges:s,dangerousChanges:u}}function l(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],s=o[e];if((t instanceof r.GraphQLObjectType||t instanceof r.GraphQLInterfaceType)&&s instanceof t.constructor){var u=t.getFields(),l=s.getFields();Object.keys(u).forEach(function(t){if(t in l){var n=u[t].type,o=l[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 s=(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 "+s+" 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],s=o[e];if(t instanceof r.GraphQLInputObjectType&&s instanceof r.GraphQLInputObjectType){var u=t.getFields(),l=s.getFields();Object.keys(u).forEach(function(t){if(t in l){var n=u[t].type,o=l[t].type;if(!p(n,o)){var s=(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 "+s+" to "+c+"."})}}else a.push({type:i.FIELD_REMOVED,description:e+"."+t+" was removed."})}),Object.keys(l).forEach(function(e){!(e in u)&&l[e].type instanceof r.GraphQLNonNull&&a.push({type:i.NON_NULL_INPUT_FIELD_ADDED,description:"A non-null field "+e+" on input type "+s.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],s=o[e];if(t instanceof r.GraphQLUnionType&&s instanceof r.GraphQLUnionType){var u=Object.create(null);s.getTypes().forEach(function(e){u[e.name]=!0}),t.getTypes().forEach(function(t){u[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(),o=t.getTypeMap(),a=[];return Object.keys(n).forEach(function(e){var t=n[e],s=o[e];if(t instanceof r.GraphQLEnumType&&s instanceof r.GraphQLEnumType){var u=Object.create(null);s.getValues().forEach(function(e){u[e.name]=!0}),t.getValues().forEach(function(t){u[t.name]||a.push({type:i.VALUE_REMOVED_FROM_ENUM,description:t.name+" was removed from enum 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],s=o[e];if(t instanceof r.GraphQLObjectType&&s instanceof r.GraphQLObjectType){var u=t.getInterfaces(),l=s.getInterfaces();u.forEach(function(t){l.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}},{"../type/definition":115,"../type/schema":120}],129:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.findDeprecatedUsages=function(e,t){var n=[],s=new a.TypeInfo(e);return(0,i.visit)(t,(0,i.visitWithTypeInfo)(s,{Field:function(e){var t=s.getFieldDef();if(t&&t.isDeprecated){var i=s.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=s.getEnumValue();if(t&&t.isDeprecated){var i=(0,o.getNamedType)(s.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=e("../error/GraphQLError"),i=e("../language/visitor"),o=e("../type/definition"),a=(e("../type/schema"),e("./TypeInfo"))},{"../error/GraphQLError":86,"../language/visitor":111,"../type/definition":115,"../type/schema":120,"./TypeInfo":121}],130:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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=e("../language/kinds")},{"../language/kinds":105}],131:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./introspectionQuery");Object.defineProperty(n,"introspectionQuery",{enumerable:!0,get:function(){return r.introspectionQuery}});var i=e("./getOperationAST");Object.defineProperty(n,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}});var o=e("./buildClientSchema");Object.defineProperty(n,"buildClientSchema",{enumerable:!0,get:function(){return o.buildClientSchema}});var a=e("./buildASTSchema");Object.defineProperty(n,"buildASTSchema",{enumerable:!0,get:function(){return a.buildASTSchema}}),Object.defineProperty(n,"buildSchema",{enumerable:!0,get:function(){return a.buildSchema}});var s=e("./extendSchema");Object.defineProperty(n,"extendSchema",{enumerable:!0,get:function(){return s.extendSchema}});var u=e("./schemaPrinter");Object.defineProperty(n,"printSchema",{enumerable:!0,get:function(){return u.printSchema}}),Object.defineProperty(n,"printType",{enumerable:!0,get:function(){return u.printType}}),Object.defineProperty(n,"printIntrospectionSchema",{enumerable:!0,get:function(){return u.printIntrospectionSchema}});var l=e("./typeFromAST");Object.defineProperty(n,"typeFromAST",{enumerable:!0,get:function(){return l.typeFromAST}});var c=e("./valueFromAST");Object.defineProperty(n,"valueFromAST",{enumerable:!0,get:function(){return c.valueFromAST}});var f=e("./astFromValue");Object.defineProperty(n,"astFromValue",{enumerable:!0,get:function(){return f.astFromValue}});var p=e("./TypeInfo");Object.defineProperty(n,"TypeInfo",{enumerable:!0,get:function(){return p.TypeInfo}});var d=e("./isValidJSValue");Object.defineProperty(n,"isValidJSValue",{enumerable:!0,get:function(){return d.isValidJSValue}});var h=e("./isValidLiteralValue");Object.defineProperty(n,"isValidLiteralValue",{enumerable:!0,get:function(){return h.isValidLiteralValue}});var m=e("./concatAST");Object.defineProperty(n,"concatAST",{enumerable:!0,get:function(){return m.concatAST}});var g=e("./separateOperations");Object.defineProperty(n,"separateOperations",{enumerable:!0,get:function(){return g.separateOperations}});var v=e("./typeComparators");Object.defineProperty(n,"isEqualType",{enumerable:!0,get:function(){return v.isEqualType}}),Object.defineProperty(n,"isTypeSubTypeOf",{enumerable:!0,get:function(){return v.isTypeSubTypeOf}}),Object.defineProperty(n,"doTypesOverlap",{enumerable:!0,get:function(){return v.doTypesOverlap}});var y=e("./assertValidName");Object.defineProperty(n,"assertValidName",{enumerable:!0,get:function(){return y.assertValidName}});var b=e("./findBreakingChanges");Object.defineProperty(n,"BreakingChangeType",{enumerable:!0,get:function(){return b.BreakingChangeType}}),Object.defineProperty(n,"DangerousChangeType",{enumerable:!0,get:function(){return b.DangerousChangeType}}),Object.defineProperty(n,"findBreakingChanges",{enumerable:!0,get:function(){return b.findBreakingChanges}});var T=e("./findDeprecatedUsages");Object.defineProperty(n,"findDeprecatedUsages",{enumerable:!0,get:function(){return T.findDeprecatedUsages}})},{"./TypeInfo":121,"./assertValidName":122,"./astFromValue":123,"./buildASTSchema":124,"./buildClientSchema":125,"./concatAST":126,"./extendSchema":127,"./findBreakingChanges":128,"./findDeprecatedUsages":129,"./getOperationAST":130,"./introspectionQuery":132,"./isValidJSValue":133,"./isValidLiteralValue":134,"./schemaPrinter":135,"./separateOperations":136,"./typeComparators":137,"./typeFromAST":138,"./valueFromAST":139}],132:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.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"},{}],133:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isValidJSValue=function e(t,n){if(n instanceof a.GraphQLNonNull)return(0,o.default)(t)?['Expected "'+String(n)+'", found null.']:e(t,n.ofType);if((0,o.default)(t))return[];if(n instanceof a.GraphQLList){var s=n.ofType;if((0,r.isCollection)(t)){var u=[];return(0,r.forEach)(t,function(t,n){u.push.apply(u,e(t,s).map(function(e){return"In element #"+n+": "+e}))}),u}return e(t,s)}if(n instanceof a.GraphQLInputObjectType){if("object"!=typeof t||null===t)return['Expected "'+n.name+'", found not an object.'];var l=n.getFields(),c=[];return Object.keys(t).forEach(function(e){l[e]||c.push('In field "'+e+'": Unknown field.')}),Object.keys(l).forEach(function(n){var r=e(t[n],l[n].type);c.push.apply(c,r.map(function(e){return'In field "'+n+'": '+e}))}),c}(0,i.default)(n instanceof a.GraphQLScalarType||n instanceof a.GraphQLEnumType,"Must be input type");try{var f=n.parseValue(t);if((0,o.default)(f)&&!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 r=e("iterall"),i=s(e("../jsutils/invariant")),o=s(e("../jsutils/isNullish")),a=e("../type/definition");function s(e){return e&&e.__esModule?e:{default:e}}},{"../jsutils/invariant":97,"../jsutils/isNullish":99,"../type/definition":115,iterall:169}],134:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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 u=t.ofType;return n.kind===i.LIST?n.values.reduce(function(t,n,r){var i=e(u,n);return t.concat(i.map(function(e){return"In element #"+r+": "+e}))},[]):e(u,n)}if(t instanceof o.GraphQLInputObjectType){if(n.kind!==i.OBJECT)return['Expected "'+t.name+'", found not an object.'];var l=t.getFields(),c=[],f=n.fields;f.forEach(function(e){l[e.name.value]||c.push('In field "'+e.name.value+'": Unknown field.')});var p=(0,s.default)(f,function(e){return e.name.value});return Object.keys(l).forEach(function(t){var n=e(l[t].type,p[t]&&p[t].value);c.push.apply(c,n.map(function(e){return'In field "'+t+'": '+e}))}),c}(0,a.default)(t instanceof o.GraphQLScalarType||t instanceof o.GraphQLEnumType,"Must be input type");if(!t.isValidLiteral(n))return['Expected type "'+t.name+'", found '+(0,r.print)(n)+"."];return[]};var r=e("../language/printer"),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}(e("../language/kinds")),o=e("../type/definition"),a=u(e("../jsutils/invariant")),s=u(e("../jsutils/keyMap"));function u(e){return e&&e.__esModule?e:{default:e}}},{"../jsutils/invariant":97,"../jsutils/keyMap":100,"../language/kinds":105,"../language/printer":109,"../type/definition":115}],135:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.printSchema=function(e){return m(e,function(e){return!p(e)},d)},n.printIntrospectionSchema=function(e){return m(e,p,h)},n.printType=v;var r=f(e("../jsutils/invariant")),i=f(e("../jsutils/isNullish")),o=f(e("../jsutils/isInvalid")),a=e("../utilities/astFromValue"),s=e("../language/printer"),u=e("../type/definition"),l=e("../type/scalars"),c=e("../type/directives");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[g(e)].concat(r.map(_),o.map(v)).filter(Boolean).join("\n\n")+"\n"}function g(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)){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();return i&&t.push(" subscription: "+i.name),"schema {\n"+t.join("\n")+"\n}"}}function v(e){return e instanceof u.GraphQLScalarType?function(e){return k(e)+"scalar "+e.name}(e):e instanceof u.GraphQLObjectType?function(e){var t=e.getInterfaces(),n=t.length?" implements "+t.map(function(e){return e.name}).join(", "):"";return k(e)+"type "+e.name+n+" {\n"+y(e)+"\n}"}(e):e instanceof u.GraphQLInterfaceType?function(e){return k(e)+"interface "+e.name+" {\n"+y(e)+"\n}"}(e):e instanceof u.GraphQLUnionType?function(e){return k(e)+"union "+e.name+" = "+e.getTypes().join(" | ")}(e):e instanceof u.GraphQLEnumType?function(e){return k(e)+"enum "+e.name+" {\n"+(t=e.getValues(),t.map(function(e,t){return k(e," ",!t)+" "+e.name+w(e)}).join("\n"))+"\n}";var t}(e):((0,r.default)(e instanceof u.GraphQLInputObjectType),function(e){var t=e.getFields(),n=Object.keys(t).map(function(e){return t[e]});return k(e)+"input "+e.name+" {\n"+n.map(function(e,t){return k(e," ",!t)+" "+T(e)}).join("\n")+"\n}"}(e))}function y(e){var t=e.getFields();return Object.keys(t).map(function(e){return t[e]}).map(function(e,t){return k(e," ",!t)+" "+e.name+b(e.args," ")+": "+String(e.type)+w(e)}).join("\n")}function b(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(T).join(", ")+")":"(\n"+e.map(function(e,n){return k(e," "+t,!n)+" "+t+T(e)}).join("\n")+"\n"+t+")"}function T(e){var t=e.name+": "+String(e.type);return(0,o.default)(e.defaultValue)||(t+=" = "+(0,s.print)((0,a.astFromValue)(e.defaultValue,e.type))),t}function _(e){return k(e)+"directive @"+e.name+b(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,s.print)((0,a.astFromValue)(t,l.GraphQLString))+")"}function k(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=E(r[o],120-t.length),s=0;s<a.length;s++)i+=t+"# "+a[s]+"\n";return i}function E(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}},{"../jsutils/invariant":97,"../jsutils/isInvalid":98,"../jsutils/isNullish":99,"../language/printer":109,"../type/definition":115,"../type/directives":116,"../type/scalars":119,"../utilities/astFromValue":123}],136:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.separateOperations=function(e){var t=[],n=Object.create(null),o=new Map,a=Object.create(null),s=void 0,u=0;(0,r.visit)(e,{OperationDefinition:function(e){s=i(e),t.push(e),o.set(e,u++)},FragmentDefinition:function(e){s=e.name.value,n[s]=e,o.set(e,u++)},FragmentSpread:function(e){var t=e.name.value;(a[s]||(a[s]=Object.create(null)))[t]=!0}});var l=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 s=[e];Object.keys(r).forEach(function(e){s.push(n[e])}),s.sort(function(e,t){return(o.get(e)||0)-(o.get(t)||0)}),l[t]={kind:"Document",definitions:s}}),l};var r=e("../language/visitor");function i(e){return e.name?e.name.value:""}},{"../language/visitor":111}],137:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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},n.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},n.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=e("../type/definition")},{"../type/definition":115}],138:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.typeFromAST=void 0;var r,i=e("../jsutils/invariant"),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}(e("../language/kinds")),s=e("../type/definition");var u=n.typeFromAST=function(e,t){var n=void 0;return t.kind===a.LIST_TYPE?(n=u(e,t.type))&&new s.GraphQLList(n):t.kind===a.NON_NULL_TYPE?(n=u(e,t.type))&&new s.GraphQLNonNull(n):((0,o.default)(t.kind===a.NAMED_TYPE,"Must be a named type."),e.getType(t.name.value))}},{"../jsutils/invariant":97,"../language/kinds":105,"../type/definition":115}],139:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.valueFromAST=function e(t,n,l){if(!t)return;if(n instanceof u.GraphQLNonNull){if(t.kind===s.NULL)return;return e(t,n.ofType,l)}if(t.kind===s.NULL)return null;if(t.kind===s.VARIABLE){var f=t.name.value;if(!l||(0,a.default)(l[f]))return;return l[f]}if(n instanceof u.GraphQLList){var p=n.ofType;if(t.kind===s.LIST){for(var d=[],h=t.values,m=0;m<h.length;m++)if(c(h[m],l)){if(p instanceof u.GraphQLNonNull)return;d.push(null)}else{var g=e(h[m],p,l);if((0,a.default)(g))return;d.push(g)}return d}var v=e(t,p,l);if((0,a.default)(v))return;return[v]}if(n instanceof u.GraphQLInputObjectType){if(t.kind!==s.OBJECT)return;for(var y=Object.create(null),b=n.getFields(),T=(0,r.default)(t.fields,function(e){return e.name.value}),_=Object.keys(b),w=0;w<_.length;w++){var k=_[w],E=b[k],O=T[k];if(O&&!c(O.value,l)){var S=e(O.value,E.type,l);if((0,a.default)(S))return;y[k]=S}else if((0,a.default)(E.defaultValue)){if(E.type instanceof u.GraphQLNonNull)return}else y[k]=E.defaultValue}return y}(0,i.default)(n instanceof u.GraphQLScalarType||n instanceof u.GraphQLEnumType,"Must be input type");var L=n.parseLiteral(t);if((0,o.default)(L)&&!n.isValidLiteral(t))return;return L};var r=l(e("../jsutils/keyMap")),i=l(e("../jsutils/invariant")),o=l(e("../jsutils/isNullish")),a=l(e("../jsutils/isInvalid")),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}(e("../language/kinds")),u=e("../type/definition");function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return e.kind===s.VARIABLE&&(!t||(0,a.default)(t[e.name.value]))}},{"../jsutils/invariant":97,"../jsutils/isInvalid":98,"../jsutils/isNullish":99,"../jsutils/keyMap":100,"../language/kinds":105,"../type/definition":115}],140:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./validate");Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return r.validate}}),Object.defineProperty(n,"ValidationContext",{enumerable:!0,get:function(){return r.ValidationContext}});var i=e("./specifiedRules");Object.defineProperty(n,"specifiedRules",{enumerable:!0,get:function(){return i.specifiedRules}});var o=e("./rules/ArgumentsOfCorrectType");Object.defineProperty(n,"ArgumentsOfCorrectTypeRule",{enumerable:!0,get:function(){return o.ArgumentsOfCorrectType}});var a=e("./rules/DefaultValuesOfCorrectType");Object.defineProperty(n,"DefaultValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return a.DefaultValuesOfCorrectType}});var s=e("./rules/FieldsOnCorrectType");Object.defineProperty(n,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return s.FieldsOnCorrectType}});var u=e("./rules/FragmentsOnCompositeTypes");Object.defineProperty(n,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return u.FragmentsOnCompositeTypes}});var l=e("./rules/KnownArgumentNames");Object.defineProperty(n,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return l.KnownArgumentNames}});var c=e("./rules/KnownDirectives");Object.defineProperty(n,"KnownDirectivesRule",{enumerable:!0,get:function(){return c.KnownDirectives}});var f=e("./rules/KnownFragmentNames");Object.defineProperty(n,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return f.KnownFragmentNames}});var p=e("./rules/KnownTypeNames");Object.defineProperty(n,"KnownTypeNamesRule",{enumerable:!0,get:function(){return p.KnownTypeNames}});var d=e("./rules/LoneAnonymousOperation");Object.defineProperty(n,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return d.LoneAnonymousOperation}});var h=e("./rules/NoFragmentCycles");Object.defineProperty(n,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return h.NoFragmentCycles}});var m=e("./rules/NoUndefinedVariables");Object.defineProperty(n,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return m.NoUndefinedVariables}});var g=e("./rules/NoUnusedFragments");Object.defineProperty(n,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return g.NoUnusedFragments}});var v=e("./rules/NoUnusedVariables");Object.defineProperty(n,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return v.NoUnusedVariables}});var y=e("./rules/OverlappingFieldsCanBeMerged");Object.defineProperty(n,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return y.OverlappingFieldsCanBeMerged}});var b=e("./rules/PossibleFragmentSpreads");Object.defineProperty(n,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return b.PossibleFragmentSpreads}});var T=e("./rules/ProvidedNonNullArguments");Object.defineProperty(n,"ProvidedNonNullArgumentsRule",{enumerable:!0,get:function(){return T.ProvidedNonNullArguments}});var _=e("./rules/ScalarLeafs");Object.defineProperty(n,"ScalarLeafsRule",{enumerable:!0,get:function(){return _.ScalarLeafs}});var w=e("./rules/SingleFieldSubscriptions");Object.defineProperty(n,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return w.SingleFieldSubscriptions}});var k=e("./rules/UniqueArgumentNames");Object.defineProperty(n,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return k.UniqueArgumentNames}});var E=e("./rules/UniqueDirectivesPerLocation");Object.defineProperty(n,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return E.UniqueDirectivesPerLocation}});var O=e("./rules/UniqueFragmentNames");Object.defineProperty(n,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return O.UniqueFragmentNames}});var S=e("./rules/UniqueInputFieldNames");Object.defineProperty(n,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return S.UniqueInputFieldNames}});var L=e("./rules/UniqueOperationNames");Object.defineProperty(n,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return L.UniqueOperationNames}});var C=e("./rules/UniqueVariableNames");Object.defineProperty(n,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return C.UniqueVariableNames}});var N=e("./rules/VariablesAreInputTypes");Object.defineProperty(n,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return N.VariablesAreInputTypes}});var x=e("./rules/VariablesInAllowedPosition");Object.defineProperty(n,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return x.VariablesInAllowedPosition}})},{"./rules/ArgumentsOfCorrectType":141,"./rules/DefaultValuesOfCorrectType":142,"./rules/FieldsOnCorrectType":143,"./rules/FragmentsOnCompositeTypes":144,"./rules/KnownArgumentNames":145,"./rules/KnownDirectives":146,"./rules/KnownFragmentNames":147,"./rules/KnownTypeNames":148,"./rules/LoneAnonymousOperation":149,"./rules/NoFragmentCycles":150,"./rules/NoUndefinedVariables":151,"./rules/NoUnusedFragments":152,"./rules/NoUnusedVariables":153,"./rules/OverlappingFieldsCanBeMerged":154,"./rules/PossibleFragmentSpreads":155,"./rules/ProvidedNonNullArguments":156,"./rules/ScalarLeafs":157,"./rules/SingleFieldSubscriptions":158,"./rules/UniqueArgumentNames":159,"./rules/UniqueDirectivesPerLocation":160,"./rules/UniqueFragmentNames":161,"./rules/UniqueInputFieldNames":162,"./rules/UniqueOperationNames":163,"./rules/UniqueVariableNames":164,"./rules/VariablesAreInputTypes":165,"./rules/VariablesInAllowedPosition":166,"./specifiedRules":167,"./validate":168}],141:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.badValueMessage=a,n.ArgumentsOfCorrectType=function(e){return{Argument:function(t){var n=e.getArgument();if(n){var s=(0,o.isValidLiteralValue)(n.type,t.value);s&&s.length>0&&e.reportError(new r.GraphQLError(a(t.name.value,n.type,(0,i.print)(t.value),s),[t.value]))}return!1}}};var r=e("../../error"),i=e("../../language/printer"),o=e("../../utilities/isValidLiteralValue");function a(e,t,n,r){return'Argument "'+e+'" has invalid value '+n+"."+(r?"\n"+r.join("\n"):"")}},{"../../error":88,"../../language/printer":109,"../../utilities/isValidLiteralValue":134}],142:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.defaultForNonNullArgMessage=s,n.badValueForDefaultArgMessage=u,n.DefaultValuesOfCorrectType=function(e){return{VariableDefinition:function(t){var n=t.variable.name.value,l=t.defaultValue,c=e.getInputType();if(c instanceof o.GraphQLNonNull&&l&&e.reportError(new r.GraphQLError(s(n,c,c.ofType),[l])),c&&l){var f=(0,a.isValidLiteralValue)(c,l);f&&f.length>0&&e.reportError(new r.GraphQLError(u(n,c,(0,i.print)(l),f),[l]))}return!1},SelectionSet:function(){return!1},FragmentDefinition:function(){return!1}}};var r=e("../../error"),i=e("../../language/printer"),o=e("../../type/definition"),a=e("../../utilities/isValidLiteralValue");function s(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 u(e,t,n,r){var i=r?"\n"+r.join("\n"):"";return'Variable "$'+e+'" of type "'+String(t)+'" has invalid default value '+n+"."+i}},{"../../error":88,"../../language/printer":109,"../../type/definition":115,"../../utilities/isValidLiteralValue":134}],143:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.undefinedFieldMessage=u,n.FieldsOnCorrectType=function(e){return{Field:function(t){var n=e.getParentType();if(n){var o=e.getFieldDef();if(!o){var s=e.getSchema(),l=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[]}(s,n,l),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,l);e.reportError(new r.GraphQLError(u(l,n.name,c,f),[t]))}}}}};var r=e("../../error"),i=s(e("../../jsutils/suggestionList")),o=s(e("../../jsutils/quotedOrList")),a=e("../../type/definition");function s(e){return e&&e.__esModule?e:{default:e}}function u(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}},{"../../error":88,"../../jsutils/quotedOrList":102,"../../jsutils/suggestionList":103,"../../type/definition":115}],144:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.inlineFragmentOnNonCompositeErrorMessage=s,n.fragmentOnNonCompositeErrorMessage=u,n.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(s((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(u(t.name.value,(0,i.print)(t.typeCondition)),[t.typeCondition]))}}};var r=e("../../error"),i=e("../../language/printer"),o=e("../../type/definition"),a=e("../../utilities/typeFromAST");function s(e){return'Fragment cannot condition on non composite type "'+String(e)+'".'}function u(e,t){return'Fragment "'+e+'" cannot condition on non composite type "'+String(t)+'".'}},{"../../error":88,"../../language/printer":109,"../../type/definition":115,"../../utilities/typeFromAST":138}],145:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unknownArgMessage=c,n.unknownDirectiveArgMessage=f,n.KnownArgumentNames=function(e){return{Argument:function(t,n,s,l,p){var d=p[p.length-1];if(d.kind===u.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 g=e.getParentType();(0,o.default)(g),e.reportError(new r.GraphQLError(c(t.name.value,h.name,g.name,(0,a.default)(t.name.value,h.args.map(function(e){return e.name}))),[t]))}}}else if(d.kind===u.DIRECTIVE){var v=e.getDirective();if(v){var y=(0,i.default)(v.args,function(e){return e.name===t.name.value});y||e.reportError(new r.GraphQLError(f(t.name.value,v.name,(0,a.default)(t.name.value,v.args.map(function(e){return e.name}))),[t]))}}}}};var r=e("../../error"),i=l(e("../../jsutils/find")),o=l(e("../../jsutils/invariant")),a=l(e("../../jsutils/suggestionList")),s=l(e("../../jsutils/quotedOrList")),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}(e("../../language/kinds"));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r){var i='Unknown argument "'+e+'" on field "'+t+'" of type "'+String(n)+'".';return r.length&&(i+=" Did you mean "+(0,s.default)(r)+"?"),i}function f(e,t,n){var r='Unknown argument "'+e+'" on directive "@'+t+'".';return n.length&&(r+=" Did you mean "+(0,s.default)(n)+"?"),r}},{"../../error":88,"../../jsutils/find":96,"../../jsutils/invariant":97,"../../jsutils/quotedOrList":102,"../../jsutils/suggestionList":103,"../../language/kinds":105}],146:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unknownDirectiveMessage=l,n.misplacedDirectiveMessage=c,n.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 s.OPERATION_DEFINITION:switch(t.operation){case"query":return u.DirectiveLocation.QUERY;case"mutation":return u.DirectiveLocation.MUTATION;case"subscription":return u.DirectiveLocation.SUBSCRIPTION}break;case s.FIELD:return u.DirectiveLocation.FIELD;case s.FRAGMENT_SPREAD:return u.DirectiveLocation.FRAGMENT_SPREAD;case s.INLINE_FRAGMENT:return u.DirectiveLocation.INLINE_FRAGMENT;case s.FRAGMENT_DEFINITION:return u.DirectiveLocation.FRAGMENT_DEFINITION;case s.SCHEMA_DEFINITION:return u.DirectiveLocation.SCHEMA;case s.SCALAR_TYPE_DEFINITION:return u.DirectiveLocation.SCALAR;case s.OBJECT_TYPE_DEFINITION:return u.DirectiveLocation.OBJECT;case s.FIELD_DEFINITION:return u.DirectiveLocation.FIELD_DEFINITION;case s.INTERFACE_TYPE_DEFINITION:return u.DirectiveLocation.INTERFACE;case s.UNION_TYPE_DEFINITION:return u.DirectiveLocation.UNION;case s.ENUM_TYPE_DEFINITION:return u.DirectiveLocation.ENUM;case s.ENUM_VALUE_DEFINITION:return u.DirectiveLocation.ENUM_VALUE;case s.INPUT_OBJECT_TYPE_DEFINITION:return u.DirectiveLocation.INPUT_OBJECT;case s.INPUT_VALUE_DEFINITION:var n=e[e.length-3];return n.kind===s.INPUT_OBJECT_TYPE_DEFINITION?u.DirectiveLocation.INPUT_FIELD_DEFINITION:u.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(l(t.name.value),[t]))}}};var r,i=e("../../error"),o=e("../../jsutils/find"),a=(r=o)&&r.__esModule?r:{default:r},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}(e("../../language/kinds")),u=e("../../type/directives");function l(e){return'Unknown directive "'+e+'".'}function c(e,t){return'Directive "'+e+'" may not be used on '+t+"."}},{"../../error":88,"../../jsutils/find":96,"../../language/kinds":105,"../../type/directives":116}],147:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unknownFragmentMessage=i,n.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=e("../../error");function i(e){return'Unknown fragment "'+e+'".'}},{"../../error":88}],148:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unknownTypeMessage=s,n.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(s(o,(0,i.default)(o,Object.keys(n.getTypeMap()))),[t]))}}};var r=e("../../error"),i=a(e("../../jsutils/suggestionList")),o=a(e("../../jsutils/quotedOrList"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n='Unknown type "'+String(e)+'".';return t.length&&(n+=" Did you mean "+(0,o.default)(t)+"?"),n}},{"../../error":88,"../../jsutils/quotedOrList":102,"../../jsutils/suggestionList":103}],149:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.anonOperationNotAloneMessage=o,n.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=e("../../error"),i=e("../../language/kinds");function o(){return"This anonymous operation must be the only defined operation."}},{"../../error":88,"../../language/kinds":105}],150:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cycleErrorMessage=i,n.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(s){var u=s.name.value;t[u]=!0;var l=e.getFragmentSpreads(s.selectionSet);if(0===l.length)return;o[u]=n.length;for(var c=0;c<l.length;c++){var f=l[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[u]=void 0}(a),!1}}};var r=e("../../error");function i(e,t){return'Cannot spread fragment "'+e+'" within itself'+(t.length?" via "+t.join(", "):"")+"."}},{"../../error":88}],151:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.undefinedVarMessage=i,n.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,s=a.name.value;!0!==t[s]&&e.reportError(new r.GraphQLError(i(s,n.name&&n.name.value),[a,n]))})}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}};var r=e("../../error");function i(e,t){return t?'Variable "$'+e+'" is not defined by operation "'+t+'".':'Variable "$'+e+'" is not defined.'}},{"../../error":88}],152:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unusedFragMessage=i,n.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=e("../../error");function i(e){return'Fragment "'+e+'" is never used.'}},{"../../error":88}],153:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unusedVariableMessage=i,n.NoUnusedVariables=function(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){var o=Object.create(null),a=e.getRecursiveVariableUsages(n),s=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,s),[t]))})}},VariableDefinition:function(e){t.push(e)}}};var r=e("../../error");function i(e,t){return t?'Variable "$'+e+'" is never used in operation "'+t+'".':'Variable "$'+e+'" is never used.'}},{"../../error":88}],154:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fieldsConflictMessage=f,n.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=g(e,t,r,i),s=a[0],u=a[1];!function(e,t,n,r,i){Object.keys(i).forEach(function(o){var a=i[o];if(a.length>1)for(var s=0;s<a.length;s++)for(var u=s+1;u<a.length;u++){var l=m(e,n,r,!1,o,a[s],a[u]);l&&t.push(l)}})}(e,o,t,n,s);for(var l=0;l<u.length;l++){p(e,o,t,n,!1,s,u[l]);for(var c=l+1;c<u.length;c++)d(e,o,t,n,!1,u[l],u[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],s=t[2];return e.reportError(new i.GraphQLError(f(r,o),a.concat(s)))})}}};var r,i=e("../../error"),o=e("../../jsutils/find"),a=(r=o)&&r.__esModule?r:{default:r},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}(e("../../language/kinds")),u=e("../../language/printer"),l=e("../../type/definition"),c=e("../../utilities/typeFromAST");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 s=e.getFragment(a);if(s){var u=v(e,n,s),l=u[0],c=u[1];h(e,t,n,r,i,o,l);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 s=e.getFragment(o),u=e.getFragment(a);if(s&&u&&s!==u&&!r.has(o,a,i)){r.add(o,a,i);var l=v(e,n,s),c=l[0],f=l[1],p=v(e,n,u),m=p[0],g=p[1];h(e,t,n,r,i,c,m);for(var y=0;y<g.length;y++)d(e,t,n,r,i,o,g[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(s){var u=a[s];if(u)for(var l=o[s],c=0;c<l.length;c++)for(var f=0;f<u.length;f++){var p=m(e,n,r,i,s,l[c],u[f]);p&&t.push(p)}})}function m(e,t,n,r,i,o,s){var c=o[0],f=o[1],m=o[2],v=s[0],y=s[1],b=s[2],T=r||c!==v&&c instanceof l.GraphQLObjectType&&v instanceof l.GraphQLObjectType,_=m&&m.type,w=b&&b.type;if(!T){var k=f.name.value,E=y.name.value;if(k!==E)return[[i,k+" 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,u.print)(n)===(0,u.print)(r))})}(f.arguments||[],y.arguments||[]))return[[i,"they have differing arguments"],[f],[y]]}if(_&&w&&function e(t,n){if(t instanceof l.GraphQLList)return!(n instanceof l.GraphQLList)||e(t.ofType,n.ofType);if(n instanceof l.GraphQLList)return!(t instanceof l.GraphQLList)||e(t.ofType,n.ofType);if(t instanceof l.GraphQLNonNull)return!(n instanceof l.GraphQLNonNull)||e(t.ofType,n.ofType);if(n instanceof l.GraphQLNonNull)return!(t instanceof l.GraphQLNonNull)||e(t.ofType,n.ofType);if((0,l.isLeafType)(t)||(0,l.isLeafType)(n))return t!==n;return!1}(_,w))return[[i,"they return conflicting types "+String(_)+" and "+String(w)],[f],[y]];var O=f.selectionSet,S=y.selectionSet;return O&&S?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,s){var u=[],l=g(e,t,i,o),c=l[0],f=l[1],m=g(e,t,a,s),v=m[0],y=m[1];h(e,u,t,n,r,c,v);for(var b=0;b<y.length;b++)p(e,u,t,n,r,c,y[b]);for(var T=0;T<f.length;T++)p(e,u,t,n,r,v,f[T]);for(var _=0;_<f.length;_++)for(var w=0;w<y.length;w++)d(e,u,t,n,r,f[_],y[w]);return u}(e,t,n,T,(0,l.getNamedType)(_),O,(0,l.getNamedType)(w),S),i,f,y):void 0}function g(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 u=r.selections[a];switch(u.kind){case s.FIELD:var f=u.name.value,p=void 0;(n instanceof l.GraphQLObjectType||n instanceof l.GraphQLInterfaceType)&&(p=n.getFields()[f]);var d=u.alias?u.alias.value:f;i[d]||(i[d]=[]),i[d].push([n,u,p]);break;case s.FRAGMENT_SPREAD:o[u.name.value]=!0;break;case s.INLINE_FRAGMENT:var h=u.typeCondition,m=h?(0,c.typeFromAST)(t.getSchema(),h):n;e(t,m,u.selectionSet,i,o)}}}(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function v(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=(0,c.typeFromAST)(e.getSchema(),n.typeCondition);return g(e,t,i,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}},{"../../error":88,"../../jsutils/find":96,"../../language/kinds":105,"../../language/printer":109,"../../type/definition":115,"../../utilities/typeFromAST":138}],155:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.typeIncompatibleSpreadMessage=a,n.typeIncompatibleAnonSpreadMessage=s,n.PossibleFragmentSpreads=function(e){return{InlineFragment:function(t){var n=e.getType(),o=e.getParentType();n&&o&&!(0,i.doTypesOverlap)(e.getSchema(),n,o)&&e.reportError(new r.GraphQLError(s(o,n),[t]))},FragmentSpread:function(t){var n=t.name.value,s=function(e,t){var n=e.getFragment(t);return n&&(0,o.typeFromAST)(e.getSchema(),n.typeCondition)}(e,n),u=e.getParentType();s&&u&&!(0,i.doTypesOverlap)(e.getSchema(),s,u)&&e.reportError(new r.GraphQLError(a(n,u,s),[t]))}}};var r=e("../../error"),i=e("../../utilities/typeComparators"),o=e("../../utilities/typeFromAST");function a(e,t,n){return'Fragment "'+e+'" cannot be spread here as objects of type "'+String(t)+'" can never be of type "'+String(n)+'".'}function s(e,t){return'Fragment cannot be spread here as objects of type "'+String(e)+'" can never be of type "'+String(t)+'".'}},{"../../error":88,"../../utilities/typeComparators":137,"../../utilities/typeFromAST":138}],156:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.missingFieldArgMessage=u,n.missingDirectiveArgMessage=l,n.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 s.GraphQLNonNull&&e.reportError(new i.GraphQLError(u(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 s.GraphQLNonNull&&e.reportError(new i.GraphQLError(l(t.name.value,n.name,n.type),[t]))})}}}};var r,i=e("../../error"),o=e("../../jsutils/keyMap"),a=(r=o)&&r.__esModule?r:{default:r},s=e("../../type/definition");function u(e,t,n){return'Field "'+e+'" argument "'+t+'" of type "'+String(n)+'" is required but not provided.'}function l(e,t,n){return'Directive "@'+e+'" argument "'+t+'" of type "'+String(n)+'" is required but not provided.'}},{"../../error":88,"../../jsutils/keyMap":100,"../../type/definition":115}],157:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.noSubselectionAllowedMessage=o,n.requiredSubselectionMessage=a,n.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=e("../../error"),i=e("../../type/definition");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+' { ... }"?'}},{"../../error":88,"../../type/definition":115}],158:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.singleFieldOnlyMessage=i,n.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=e("../../error");function i(e){return(e?'Subscription "'+e+'" ':"Anonymous Subscription ")+"must select only one top level field."}},{"../../error":88}],159:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateArgMessage=i,n.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=e("../../error");function i(e){return'There can be only one argument named "'+e+'".'}},{"../../error":88}],160:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateDirectiveMessage=i,n.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=e("../../error");function i(e){return'The directive "'+e+'" can only be used once at this location.'}},{"../../error":88}],161:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateFragmentNameMessage=i,n.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=e("../../error");function i(e){return'There can be only one fragment named "'+e+'".'}},{"../../error":88}],162:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateInputFieldMessage=i,n.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=e("../../error");function i(e){return'There can be only one input field named "'+e+'".'}},{"../../error":88}],163:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateOperationNameMessage=i,n.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=e("../../error");function i(e){return'There can be only one operation named "'+e+'".'}},{"../../error":88}],164:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateVariableMessage=i,n.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=e("../../error");function i(e){return'There can be only one variable named "'+e+'".'}},{"../../error":88}],165:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.nonInputTypeOnVarMessage=s,n.VariablesAreInputTypes=function(e){return{VariableDefinition:function(t){var n=(0,a.typeFromAST)(e.getSchema(),t.type);if(n&&!(0,o.isInputType)(n)){var u=t.variable.name.value;e.reportError(new r.GraphQLError(s(u,(0,i.print)(t.type)),[t.type]))}}}};var r=e("../../error"),i=e("../../language/printer"),o=e("../../type/definition"),a=e("../../utilities/typeFromAST");function s(e,t){return'Variable "$'+e+'" cannot be non-input type "'+t+'".'}},{"../../error":88,"../../language/printer":109,"../../type/definition":115,"../../utilities/typeFromAST":138}],166:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.badVarPosMessage=s,n.VariablesInAllowedPosition=function(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var u=e.getRecursiveVariableUsages(n);u.forEach(function(n){var u=n.node,l=n.type,c=u.name.value,f=t[c];if(f&&l){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),l)&&e.reportError(new r.GraphQLError(s(c,d,l),[f,u]))}})}},VariableDefinition:function(e){t[e.variable.name.value]=e}}};var r=e("../../error"),i=e("../../type/definition"),o=e("../../utilities/typeComparators"),a=e("../../utilities/typeFromAST");function s(e,t,n){return'Variable "$'+e+'" of type "'+String(t)+'" used in position expecting type "'+String(n)+'".'}},{"../../error":88,"../../type/definition":115,"../../utilities/typeComparators":137,"../../utilities/typeFromAST":138}],167:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.specifiedRules=void 0;var r=e("./rules/UniqueOperationNames"),i=e("./rules/LoneAnonymousOperation"),o=e("./rules/SingleFieldSubscriptions"),a=e("./rules/KnownTypeNames"),s=e("./rules/FragmentsOnCompositeTypes"),u=e("./rules/VariablesAreInputTypes"),l=e("./rules/ScalarLeafs"),c=e("./rules/FieldsOnCorrectType"),f=e("./rules/UniqueFragmentNames"),p=e("./rules/KnownFragmentNames"),d=e("./rules/NoUnusedFragments"),h=e("./rules/PossibleFragmentSpreads"),m=e("./rules/NoFragmentCycles"),g=e("./rules/UniqueVariableNames"),v=e("./rules/NoUndefinedVariables"),y=e("./rules/NoUnusedVariables"),b=e("./rules/KnownDirectives"),T=e("./rules/UniqueDirectivesPerLocation"),_=e("./rules/KnownArgumentNames"),w=e("./rules/UniqueArgumentNames"),k=e("./rules/ArgumentsOfCorrectType"),E=e("./rules/ProvidedNonNullArguments"),O=e("./rules/DefaultValuesOfCorrectType"),S=e("./rules/VariablesInAllowedPosition"),L=e("./rules/OverlappingFieldsCanBeMerged"),C=e("./rules/UniqueInputFieldNames");n.specifiedRules=[r.UniqueOperationNames,i.LoneAnonymousOperation,o.SingleFieldSubscriptions,a.KnownTypeNames,s.FragmentsOnCompositeTypes,u.VariablesAreInputTypes,l.ScalarLeafs,c.FieldsOnCorrectType,f.UniqueFragmentNames,p.KnownFragmentNames,d.NoUnusedFragments,h.PossibleFragmentSpreads,m.NoFragmentCycles,g.UniqueVariableNames,v.NoUndefinedVariables,y.NoUnusedVariables,b.KnownDirectives,T.UniqueDirectivesPerLocation,_.KnownArgumentNames,w.UniqueArgumentNames,k.ArgumentsOfCorrectType,E.ProvidedNonNullArguments,O.DefaultValuesOfCorrectType,S.VariablesInAllowedPosition,L.OverlappingFieldsCanBeMerged,C.UniqueInputFieldNames]},{"./rules/ArgumentsOfCorrectType":141,"./rules/DefaultValuesOfCorrectType":142,"./rules/FieldsOnCorrectType":143,"./rules/FragmentsOnCompositeTypes":144,"./rules/KnownArgumentNames":145,"./rules/KnownDirectives":146,"./rules/KnownFragmentNames":147,"./rules/KnownTypeNames":148,"./rules/LoneAnonymousOperation":149,"./rules/NoFragmentCycles":150,"./rules/NoUndefinedVariables":151,"./rules/NoUnusedFragments":152,"./rules/NoUnusedVariables":153,"./rules/OverlappingFieldsCanBeMerged":154,"./rules/PossibleFragmentSpreads":155,"./rules/ProvidedNonNullArguments":156,"./rules/ScalarLeafs":157,"./rules/SingleFieldSubscriptions":158,"./rules/UniqueArgumentNames":159,"./rules/UniqueDirectivesPerLocation":160,"./rules/UniqueFragmentNames":161,"./rules/UniqueInputFieldNames":162,"./rules/UniqueOperationNames":163,"./rules/UniqueVariableNames":164,"./rules/VariablesAreInputTypes":165,"./rules/VariablesInAllowedPosition":166}],168:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ValidationContext=void 0,n.validate=function(e,t,n,r){return(0,o.default)(e,"Must provide schema"),(0,o.default)(t,"Must provide document"),(0,o.default)(e instanceof u.GraphQLSchema,"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 l.TypeInfo(e),t,n||c.specifiedRules)};var r,i=e("../jsutils/invariant"),o=(r=i)&&r.__esModule?r:{default:r},a=(e("../error"),e("../language/visitor")),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}(e("../language/kinds")),u=e("../type/schema"),l=e("../utilities/TypeInfo"),c=e("./specifiedRules");var f=n.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===s.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===s.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 s=o[a].name.value;if(!0!==n[s]){n[s]=!0;var u=this.getFragment(s);u&&(t.push(u),r.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e.prototype.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new l.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}()},{"../error":88,"../jsutils/invariant":97,"../language/kinds":105,"../language/visitor":111,"../type/schema":120,"../utilities/TypeInfo":121,"./specifiedRules":167}],169:[function(e,t,n){var r="function"==typeof Symbol&&Symbol.iterator,i=r||"@@iterator";function o(e){return!!u(e)}function a(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function s(e){var t=u(e);if(t)return t.call(e)}function u(e){if(null!=e){var t=r&&e[r]||e["@@iterator"];if("function"==typeof t)return t}}function l(e){if(null!=e){var t=s(e);if(t)return t;if(a(e))return new c(e)}}function c(e){this._o=e,this._i=0}n.$$iterator=i,n.isIterable=o,n.isArrayLike=a,n.isCollection=function(e){return Object(e)===e&&(a(e)||o(e))},n.getIterator=s,n.getIteratorMethod=u,n.createIterator=l,c.prototype[i]=function(){return this},c.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}},n.forEach=function(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,i=s(e);if(i){for(var o;!(o=i.next()).done;)if(t.call(n,o.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(a(e))for(;r<e.length;r++)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}};var f="function"==typeof Symbol&&Symbol.asyncIterator,p=f||"@@asyncIterator";function d(e){var t=h(e);if(t)return t.call(e)}function h(e){if(null!=e){var t=f&&e[f]||e["@@asyncIterator"];if("function"==typeof t)return t}}function m(e){if(null!=e){var t=d(e);if(t)return t;var n=l(e);if(n)return new g(n)}}function g(e){this._i=e}n.$$asyncIterator=p,n.isAsyncIterable=function(e){return!!h(e)},n.getAsyncIterator=d,n.getAsyncIteratorMethod=h,n.createAsyncIterator=m,g.prototype[p]=function(){return this},g.prototype.next=function(){var e=this._i.next();return Promise.resolve(e.value).then(function(t){return{value:t,done:e.done}})},n.forAwaitEach=function(e,t,n){var r=m(e);if(r){var i=0;return function o(){return r.next().then(function(r){if(!r.done)return Promise.resolve(t.call(n,r.value,i++,e)).then(o)})}()}}},{}],170:[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 s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var u={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?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}}},l="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(t){var n=t.re=e("./lib/re")(t.__opts__),r=t.__tlds__.slice();function s(e){return e.replace("%TLDS%",n.src_tlds)}t.onCompile(),t.__tlds_replaced__||r.push(l),r.push(n.src_xn),n.src_tlds=r.join("|"),n.email_fuzzy=RegExp(s(n.tpl_email_fuzzy),"i"),n.link_fuzzy=RegExp(s(n.tpl_link_fuzzy),"i"),n.link_no_ip_fuzzy=RegExp(s(n.tpl_link_no_ip_fuzzy),"i"),n.host_fuzzy_test=RegExp(s(n.tpl_host_fuzzy_test),"i");var u=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}t.__compiled__={},Object.keys(t.__schemas__).forEach(function(e){var n=t.__schemas__[e];if(null!==n){var r,a={validate:null,link:null};if(t.__compiled__[e]=a,"[object Object]"===i(n))return!function(e){return"[object RegExp]"===i(e)}(n.validate)?o(n.validate)?a.validate=n.validate:c(e,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(e,n):a.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?c(e,n):u.push(e)}}),u.forEach(function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)}),t.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var f=Object.keys(t.__compiled__).filter(function(e){return e.length>0&&t.__compiled__[e]}).map(a).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+f+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+f+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(t)}function p(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||s.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},u,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},f(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,f(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,u;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),f(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,f(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},t.exports=h},{"./lib/re":171}],171:[function(e,t,n){"use strict";t.exports=function(t){var n={};n.src_Any=e("uc.micro/properties/Any/regex").source,n.src_Cc=e("uc.micro/categories/Cc/regex").source,n.src_Z=e("uc.micro/categories/Z/regex").source,n.src_P=e("uc.micro/categories/P/regex").source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");return n.src_pseudo_letter="(?:(?![><|]|"+n.src_ZPCc+")"+n.src_Any+")",n.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]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|[><|]|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+n.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+n.src_ZCc+").|\\!(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-(?!-)|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|[><|]|\\(|"+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}},{"uc.micro/categories/Cc/regex":236,"uc.micro/categories/P/regex":238,"uc.micro/categories/Z/regex":239,"uc.micro/properties/Any/regex":241}],172:[function(e,t,n){"use strict";t.exports=e("./lib/")},{"./lib/":181}],173:[function(e,t,n){"use strict";t.exports=e("entities/maps/entities.json")},{"entities/maps/entities.json":66}],174:[function(e,t,n){"use strict";t.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"]},{}],175:[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+")");t.exports.HTML_TAG_RE=o,t.exports.HTML_OPEN_CLOSE_TAG_RE=a},{}],176:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=e("./entities");var f=/[&<>"]/,p=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function h(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var g=e("uc.micro/categories/P/regex");n.lib={},n.lib.mdurl=e("mdurl"),n.lib.ucmicro=e("uc.micro"),n.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},n.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},n.has=i,n.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},n.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,function(e,t,n){return t||function(e,t){var n=0;return i(c,t)?c[t]:35===t.charCodeAt(0)&&l.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)})},n.isValidEntityCode=o,n.fromCodePoint=a,n.escapeHtml=function(e){return f.test(e)?e.replace(p,h):e},n.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},n.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},n.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},n.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}},n.isPunctChar=function(e){return g.test(e)},n.escapeRE=function(e){return e.replace(m,"\\$&")},n.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},{"./entities":173,mdurl:227,"uc.micro":240,"uc.micro/categories/P/regex":238}],177:[function(e,t,n){"use strict";n.parseLinkLabel=e("./parse_link_label"),n.parseLinkDestination=e("./parse_link_destination"),n.parseLinkTitle=e("./parse_link_title")},{"./parse_link_destination":178,"./parse_link_label":179,"./parse_link_title":180}],178:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace,i=e("../common/utils").unescapeAll;t.exports=function(e,t,n){var o,a,s=t,u={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 u;if(62===o)return u.pos=t+1,u.str=i(e.slice(s+1,t)),u.ok=!0,u;92===o&&t+1<n?t+=2:t++}return u}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 s===t?u:0!==a?u:(u.str=i(e.slice(s,t)),u.lines=0,u.pos=t,u.ok=!0,u)}},{"../common/utils":176}],179:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r,i,o,a,s=-1,u=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<u;){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=l,-1}return i&&(s=e.pos),e.pos=l,s}},{}],180:[function(e,t,n){"use strict";var r=e("../common/utils").unescapeAll;t.exports=function(e,t,n){var i,o,a=0,s=t,u={ok:!1,pos:0,lines:0,str:""};if(t>=n)return u;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return u;for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return u.pos=t+1,u.lines=a,u.str=r(e.slice(s+1,t)),u.ok=!0,u;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return u}},{"../common/utils":176}],181:[function(e,t,n){"use strict";var r=e("./common/utils"),i=e("./helpers"),o=e("./renderer"),a=e("./parser_core"),s=e("./parser_block"),u=e("./parser_inline"),l=e("linkify-it"),c=e("mdurl"),f=e("punycode"),p={default:e("./presets/default"),zero:e("./presets/zero"),commonmark:e("./presets/commonmark")},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 g=["http:","https:","mailto:"];function v(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=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||g.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 u,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new l,this.validateLink=m,this.normalizeLink=v,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)},t.exports=b},{"./common/utils":176,"./helpers":177,"./parser_block":182,"./parser_core":183,"./parser_inline":184,"./presets/commonmark":185,"./presets/default":186,"./presets/zero":187,"./renderer":188,"linkify-it":170,mdurl:227,punycode:235}],182:[function(e,t,n){"use strict";var r=e("./ruler"),i=[["table",e("./rules_block/table"),["paragraph","reference"]],["code",e("./rules_block/code")],["fence",e("./rules_block/fence"),["paragraph","reference","blockquote","list"]],["blockquote",e("./rules_block/blockquote"),["paragraph","reference","blockquote","list"]],["hr",e("./rules_block/hr"),["paragraph","reference","blockquote","list"]],["list",e("./rules_block/list"),["paragraph","reference","blockquote"]],["reference",e("./rules_block/reference")],["heading",e("./rules_block/heading"),["paragraph","reference","blockquote"]],["lheading",e("./rules_block/lheading")],["html_block",e("./rules_block/html_block"),["paragraph","reference","blockquote"]],["paragraph",e("./rules_block/paragraph")]];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,s=!1,u=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=u){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!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=e("./rules_block/state_block"),t.exports=o},{"./ruler":189,"./rules_block/blockquote":190,"./rules_block/code":191,"./rules_block/fence":192,"./rules_block/heading":193,"./rules_block/hr":194,"./rules_block/html_block":195,"./rules_block/lheading":196,"./rules_block/list":197,"./rules_block/paragraph":198,"./rules_block/reference":199,"./rules_block/state_block":200,"./rules_block/table":201}],183:[function(e,t,n){"use strict";var r=e("./ruler"),i=[["normalize",e("./rules_core/normalize")],["block",e("./rules_core/block")],["inline",e("./rules_core/inline")],["linkify",e("./rules_core/linkify")],["replacements",e("./rules_core/replacements")],["smartquotes",e("./rules_core/smartquotes")]];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=e("./rules_core/state_core"),t.exports=o},{"./ruler":189,"./rules_core/block":202,"./rules_core/inline":203,"./rules_core/linkify":204,"./rules_core/normalize":205,"./rules_core/replacements":206,"./rules_core/smartquotes":207,"./rules_core/state_core":208}],184:[function(e,t,n){"use strict";var r=e("./ruler"),i=[["text",e("./rules_inline/text")],["newline",e("./rules_inline/newline")],["escape",e("./rules_inline/escape")],["backticks",e("./rules_inline/backticks")],["strikethrough",e("./rules_inline/strikethrough").tokenize],["emphasis",e("./rules_inline/emphasis").tokenize],["link",e("./rules_inline/link")],["image",e("./rules_inline/image")],["autolink",e("./rules_inline/autolink")],["html_inline",e("./rules_inline/html_inline")],["entity",e("./rules_inline/entity")]],o=[["balance_pairs",e("./rules_inline/balance_pairs")],["strikethrough",e("./rules_inline/strikethrough").postProcess],["emphasis",e("./rules_inline/emphasis").postProcess],["text_collapse",e("./rules_inline/text_collapse")]];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,s=e.cache;if(void 0===s[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++,s[r]=e.pos}else e.pos=s[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,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},a.prototype.State=e("./rules_inline/state_inline"),t.exports=a},{"./ruler":189,"./rules_inline/autolink":209,"./rules_inline/backticks":210,"./rules_inline/balance_pairs":211,"./rules_inline/emphasis":212,"./rules_inline/entity":213,"./rules_inline/escape":214,"./rules_inline/html_inline":215,"./rules_inline/image":216,"./rules_inline/link":217,"./rules_inline/newline":218,"./rules_inline/state_inline":219,"./rules_inline/strikethrough":220,"./rules_inline/text":221,"./rules_inline/text_collapse":222}],185:[function(e,t,n){"use strict";t.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"]}}}},{}],186:[function(e,t,n){"use strict";t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},{}],187:[function(e,t,n){"use strict";t.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"]}}}},{}],188:[function(e,t,n){"use strict";var r=e("./common/utils").assign,i=e("./common/utils").unescapeAll,o=e("./common/utils").escapeHtml,a={};function s(){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 s,u,l,c,f=e[t],p=f.info?i(f.info).trim():"",d="";return p&&(d=p.split(/\s+/g)[0]),0===(s=n.highlight&&n.highlight(f.content,d)||o(f.content)).indexOf("<pre")?s+"\n":p?(u=f.attrIndex("class"),l=f.attrs?f.attrs.slice():[],u<0?l.push(["class",n.langPrefix+d]):l[u][1]+=" "+n.langPrefix+d,c={attrs:l},"<pre><code"+a.renderAttrs(c)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(f)+">"+s+"</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},s.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},s.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":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},s.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},s.prototype.render=function(e,t,n){var r,i,o,a="",s=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!==s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},t.exports=s},{"./common/utils":176}],189:[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]||[]},t.exports=r},{}],190:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.exports=function(e,t,n,i){var o,a,s,u,l,c,f,p,d,h,m,g,v,y,b,T,_,w,k,E,O=e.lineMax,S=e.bMarks[t]+e.tShift[t],L=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(S++))return!1;if(i)return!0;for(u=d=e.sCount[t]+S-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(S)?(S++,u++,d++,o=!1,T=!0):9===e.src.charCodeAt(S)?(T=!0,(e.bsCount[t]+d)%4==3?(S++,u++,d++,o=!1):o=!0):T=!1,h=[e.bMarks[t]],e.bMarks[t]=S;S<L&&(a=e.src.charCodeAt(S),r(a));)9===a?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,S++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(T?1:0),c=S>=L,y=[e.sCount[t]],e.sCount[t]=d-u,b=[e.tShift[t]],e.tShift[t]=S-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",E=!1,p=t+1;p<n&&(e.sCount[p]<e.blkIndent&&(E=!0),!((S=e.bMarks[p]+e.tShift[p])>=(L=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(S++)||E){if(c)break;for(_=!1,s=0,l=w.length;s<l;s++)if(w[s](e,p,n,!0)){_=!0;break}if(_){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(u=d=e.sCount[p]+S-(e.bMarks[p]+e.tShift[p]),32===e.src.charCodeAt(S)?(S++,u++,d++,o=!1,T=!0):9===e.src.charCodeAt(S)?(T=!0,(e.bsCount[p]+d)%4==3?(S++,u++,d++,o=!1):o=!0):T=!1,h.push(e.bMarks[p]),e.bMarks[p]=S;S<L&&(a=e.src.charCodeAt(S),r(a));)9===a?d+=4-(d+e.bsCount[p]+(o?1:0))%4:d++,S++;c=S>=L,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(T?1:0),y.push(e.sCount[p]),e.sCount[p]=d-u,b.push(e.tShift[p]),e.tShift[p]=S-e.bMarks[p]}for(g=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=f=[t,0],e.md.block.tokenize(e,t,p),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=O,e.parentType=v,f[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=h[s],e.tShift[s+t]=b[s],e.sCount[s+t]=y[s],e.bsCount[s+t]=m[s];return e.blkIndent=g,!0}},{"../common/utils":176}],191:[function(e,t,n){"use strict";t.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}},{}],192:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i,o,a,s,u,l,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(u=p,(o=(p=e.skipChars(p,i))-u)<3)return!1;if(c=e.src.slice(u,p),(a=e.src.slice(p,d)).indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((p=u=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[s]-e.blkIndent>=4||(p=e.skipChars(p,i))-u<o||(p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=s+(f?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,s,o,!0),l.markup=c,l.map=[t,e.line],!0}},{}],193:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.exports=function(e,t,n,i){var o,a,s,u,l=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(l))||l>=c)return!1;for(a=1,o=e.src.charCodeAt(++l);35===o&&l<c&&a<=6;)a++,o=e.src.charCodeAt(++l);return!(a>6||l<c&&!r(o))&&(!!i||(c=e.skipSpacesBack(c,l),(s=e.skipCharsBack(c,35,l))>l&&r(e.src.charCodeAt(s-1))&&(c=s),e.line=t+1,(u=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),u.map=[t,e.line],(u=e.push("inline","",0)).content=e.src.slice(l,c).trim(),u.map=[t,e.line],u.children=[],(u=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a),!0))}},{"../common/utils":176}],194:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.exports=function(e,t,n,i){var o,a,s,u,l=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(l++))&&45!==o&&95!==o)return!1;for(a=1;l<c;){if((s=e.src.charCodeAt(l++))!==o&&!r(s))return!1;s===o&&a++}return!(a<3)&&(!!i||(e.line=t+1,(u=e.push("hr","hr",0)).map=[t,e.line],u.markup=Array(a+1).join(String.fromCharCode(o)),!0))}},{"../common/utils":176}],195:[function(e,t,n){"use strict";var r=e("../common/html_blocks"),i=e("../common/html_re").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]];t.exports=function(e,t,n,r){var i,a,s,u,l=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(l))return!1;for(u=e.src.slice(l,c),i=0;i<o.length&&!o[i][0].test(u);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(u))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(l=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],u=e.src.slice(l,c),o[i][1].test(u)){0!==u.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},{"../common/html_blocks":174,"../common/html_re":175}],196:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r,i,o,a,s,u,l,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&&(u=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(f=e.src.charCodeAt(u))||61===f)&&(u=e.skipChars(u,f),(u=e.skipSpaces(u))>=l)){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,(s=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(f),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}},{}],197:[function(e,t,n){"use strict";var r=e("../common/utils").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}t.exports=function(e,t,n,r){var a,s,u,l,c,f,p,d,h,m,g,v,y,b,T,_,w,k,E,O,S,L,C,N,x,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),(C=o(e,t))>=0){if(p=!0,x=e.bMarks[t]+e.tShift[t],y=Number(e.src.substr(x,C-x-1)),F&&1!==y)return!1}else{if(!((C=i(e,t))>=0))return!1;p=!1}if(F&&e.skipSpaces(C)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(C-1),r)return!0;for(g=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(v),T=t,N=!1,A=e.md.block.ruler.getRules("list"),E=e.parentType,e.parentType="list";T<n;){for(L=C,b=e.eMarks[T],f=_=e.sCount[T]+C-(e.bMarks[t]+e.tShift[t]);L<b;){if(9===(a=e.src.charCodeAt(L)))_+=4-(_+e.bsCount[T])%4;else{if(32!==a)break;_++}L++}if((c=(s=L)>=b?1:_-f)>4&&(c=1),l=f+c,(I=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),I.map=d=[t,0],w=e.blkIndent,S=e.tight,O=e.tShift[t],k=e.sCount[t],e.blkIndent=l,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=_,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(j=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=w,e.tShift[t]=O,e.sCount[t]=k,e.tight=S,(I=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),T=t=e.line,d[1]=T,s=e.bMarks[t],T>=n)break;if(e.sCount[T]<e.blkIndent)break;for(D=!1,u=0,h=A.length;u<h;u++)if(A[u](e,T,n,!0)){D=!0;break}if(D)break;if(p){if((C=o(e,T))<0)break}else if((C=i(e,T))<0)break;if(v!==e.src.charCodeAt(C-1))break}return(I=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),m[1]=T,e.line=T,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,g),!0}},{"../common/utils":176}],198:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,u=t+1,l=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(s=e.parentType,e.parentType="paragraph";u<c&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3||e.sCount[u]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](e,u,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,(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=s,!0}},{}],199:[function(e,t,n){"use strict";var r=e("../common/utils").normalizeReference,i=e("../common/utils").isSpace;t.exports=function(e,t,n,o){var a,s,u,l,c,f,p,d,h,m,g,v,y,b,T,_,w=0,k=e.bMarks[t]+e.tShift[t],E=e.eMarks[t],O=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(k))return!1;for(;++k<E;)if(93===e.src.charCodeAt(k)&&92!==e.src.charCodeAt(k-1)){if(k+1===E)return!1;if(58!==e.src.charCodeAt(k+1))return!1;break}for(l=e.lineMax,T=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";O<l&&!e.isEmpty(O);O++)if(!(e.sCount[O]-e.blkIndent>3||e.sCount[O]<0)){for(b=!1,f=0,p=T.length;f<p;f++)if(T[f](e,O,l,!0)){b=!0;break}if(b)break}for(E=(y=e.getLines(t,O,e.blkIndent,!1).trim()).length,k=1;k<E;k++){if(91===(a=y.charCodeAt(k)))return!1;if(93===a){h=k;break}10===a?w++:92===a&&++k<E&&10===y.charCodeAt(k)&&w++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(k=h+2;k<E;k++)if(10===(a=y.charCodeAt(k)))w++;else if(!i(a))break;if(!(g=e.md.helpers.parseLinkDestination(y,k,E)).ok)return!1;if(c=e.md.normalizeLink(g.str),!e.md.validateLink(c))return!1;for(s=k=g.pos,u=w+=g.lines,v=k;k<E;k++)if(10===(a=y.charCodeAt(k)))w++;else if(!i(a))break;for(g=e.md.helpers.parseLinkTitle(y,k,E),k<E&&v!==k&&g.ok?(_=g.str,k=g.pos,w+=g.lines):(_="",k=s,w=u);k<E&&(a=y.charCodeAt(k),i(a));)k++;if(k<E&&10!==y.charCodeAt(k)&&_)for(_="",k=s,w=u;k<E&&(a=y.charCodeAt(k),i(a));)k++;return!(k<E&&10!==y.charCodeAt(k))&&(!!(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:_,href:c}),e.parentType=m,e.line=t+w+1,!0)))}},{"../common/utils":176}],200:[function(e,t,n){"use strict";var r=e("../token"),i=e("../common/utils").isSpace;function o(e,t,n,r){var o,a,s,u,l,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,s=u=c=f=0,l=(a=this.src).length;u<l;u++){if(o=a.charCodeAt(u),!p){if(i(o)){c++,9===o?f+=4-f%4:f++;continue}p=!0}10!==o&&u!==l-1||(10!==o&&u++,this.bMarks.push(s),this.eMarks.push(u),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),p=!1,c=0,f=0,s=u+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,s,u,l,c,f,p=e;if(e>=t)return"";for(c=new Array(t-e),o=0;p<t;p++,o++){for(a=0,f=u=this.bMarks[p],l=p+1<t||r?this.eMarks[p]+1:this.eMarks[p];u<l&&a<n;){if(s=this.src.charCodeAt(u),i(s))9===s?a+=4-(a+this.bsCount[p])%4:a++;else{if(!(u-f<this.tShift[p]))break;a++}u++}c[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return c.join("")},o.prototype.Token=r,t.exports=o},{"../common/utils":176,"../token":223}],201:[function(e,t,n){"use strict";var r=e("../common/utils").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,s=!1,u=0;for(t=e.charCodeAt(r);r<i;)96===t?s?(s=!1,u=r):o%2==0&&(s=!0,u=r):124!==t||o%2!=0||s||(n.push(e.substring(a,r)),a=r+1),92===t?o++:o=0,++r===i&&s&&(s=!1,r=u+1),t=e.charCodeAt(r);return n.push(e.substring(a)),n}t.exports=function(e,t,n,a){var s,u,l,c,f,p,d,h,m,g,v,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((l=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(s=e.src.charCodeAt(l++))&&45!==s&&58!==s)return!1;for(;l<e.eMarks[f];){if(124!==(s=e.src.charCodeAt(l))&&45!==s&&58!==s&&!r(s))return!1;l++}for(p=(u=i(e,t+1)).split("|"),m=[],c=0;c<p.length;c++){if(!(g=p[c].trim())){if(0===c||c===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;58===g.charCodeAt(g.length-1)?m.push(58===g.charCodeAt(0)?"center":"right"):58===g.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(u=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((d=(p=o(u.replace(/^\||\|$/g,""))).length)>m.length)return!1;if(a)return!0;for((h=e.push("table_open","table",1)).map=v=[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!==(u=i(e,f).trim()).indexOf("|")&&!(e.sCount[f]-e.blkIndent>=4);f++){for(p=o(u.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),v[1]=y[1]=f,e.line=f,!0}},{"../common/utils":176}],202:[function(e,t,n){"use strict";t.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)}},{}],203:[function(e,t,n){"use strict";t.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)}},{}],204:[function(e,t,n){"use strict";var r=e("../common/utils").arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}t.exports=function(e){var t,n,o,a,s,u,l,c,f,p,d,h,m,g,v,y,b,T,_=e.tokens;if(e.md.options.linkify)for(n=0,o=_.length;n<o;n++)if("inline"===_[n].type&&e.md.linkify.pretest(_[n].content))for(m=0,t=(a=_[n].children).length-1;t>=0;t--)if("link_close"!==(u=a[t]).type){if("html_inline"===u.type&&(T=u.content,/^<a[>\s]/i.test(T)&&m>0&&m--,i(u.content)&&m++),!(m>0)&&"text"===u.type&&e.md.linkify.test(u.content)){for(f=u.content,b=e.md.linkify.match(f),l=[],h=u.level,d=0,c=0;c<b.length;c++)g=b[c].url,v=e.md.normalizeLink(g),e.md.validateLink(v)&&(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&&((s=new e.Token("text","",0)).content=f.slice(d,p),s.level=h,l.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",v]],s.level=h++,s.markup="linkify",s.info="auto",l.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,l.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",l.push(s),d=b[c].lastIndex);d<f.length&&((s=new e.Token("text","",0)).content=f.slice(d),s.level=h,l.push(s)),_[n].children=a=r(a,t,l)}}else for(t--;a[t].level!==u.level&&"link_open"!==a[t].type;)t--}},{"../common/utils":176}],205:[function(e,t,n){"use strict";var r=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,i=/\u0000/g;t.exports=function(e){var t;t=(t=e.src.replace(r,"\n")).replace(i,"<22>"),e.src=t}},{}],206:[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 s(e,t){return a[t.toLowerCase()]}function u(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,s)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function l(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++}t.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)&&u(e.tokens[t].children),r.test(e.tokens[t].content)&&l(e.tokens[t].children))}},{}],207:[function(e,t,n){"use strict";var r=e("../common/utils").isWhiteSpace,i=e("../common/utils").isPunctChar,o=e("../common/utils").isMdAsciiPunct,a=/['"]/,s=/['"]/g,u="’";function l(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,g,v,y,b,T,_,w,k,E,O,S,L,C;for(S=[],n=0;n<e.length;n++){for(a=e[n],h=e[n].level,E=S.length-1;E>=0&&!(S[E].level<=h);E--);if(S.length=E+1,"text"===a.type){p=0,d=(c=a.content).length;e:for(;p<d&&(s.lastIndex=p,f=s.exec(c));){if(w=k=!0,p=f.index+1,O="'"===f[0],g=32,f.index-1>=0)g=c.charCodeAt(f.index-1);else for(E=n-1;E>=0;E--)if("text"===e[E].type){g=e[E].content.charCodeAt(e[E].content.length-1);break}if(v=32,p<d)v=c.charCodeAt(p);else for(E=n+1;E<e.length;E++)if("text"===e[E].type){v=e[E].content.charCodeAt(0);break}if(y=o(g)||i(String.fromCharCode(g)),b=o(v)||i(String.fromCharCode(v)),T=r(g),(_=r(v))?w=!1:b&&(T||y||(w=!1)),T?k=!1:y&&(_||b||(k=!1)),34===v&&'"'===f[0]&&g>=48&&g<=57&&(k=w=!1),w&&k&&(w=!1,k=b),w||k){if(k)for(E=S.length-1;E>=0&&(m=S[E],!(S[E].level<h));E--)if(m.single===O&&S[E].level===h){m=S[E],O?(L=t.md.options.quotes[2],C=t.md.options.quotes[3]):(L=t.md.options.quotes[0],C=t.md.options.quotes[1]),a.content=l(a.content,f.index,C),e[m.token].content=l(e[m.token].content,m.pos,L),p+=C.length-1,m.token===n&&(p+=L.length-1),d=(c=a.content).length,S.length=E;continue e}w?S.push({token:n,pos:f.index,single:O,level:h}):k&&O&&(a.content=l(a.content,f.index,u))}else O&&(a.content=l(a.content,f.index,u))}}}}t.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)}},{"../common/utils":176}],208:[function(e,t,n){"use strict";var r=e("../token");function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,t.exports=i},{"../token":223}],209:[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]*)>/;t.exports=function(e,t){var n,o,a,s,u,l,c=e.pos;return 60===e.src.charCodeAt(c)&&(!((n=e.src.slice(c)).indexOf(">")<0)&&(i.test(n)?(s=(o=n.match(i))[0].slice(1,-1),u=e.md.normalizeLink(s),!!e.md.validateLink(u)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",u]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(s),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=o[0].length,!0)):!!r.test(n)&&(s=(a=n.match(r))[0].slice(1,-1),u=e.md.normalizeLink("mailto:"+s),!!e.md.validateLink(u)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",u]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(s),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=a[0].length,!0))))}},{}],210:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;for(i=e.src.slice(n,u),o=a=u;-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||((s=e.push("code_inline","code",0)).markup=i,s.content=e.src.slice(u,o).replace(/[ \n]+/g," ").trim()),e.pos=a,!0}return t||(e.pending+=i),e.pos+=i.length,!0}},{}],211:[function(e,t,n){"use strict";t.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}}},{}],212:[function(e,t,n){"use strict";t.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},t.exports.postProcess=function(e){var t,n,r,i,o,a,s=e.delimiters;for(t=e.delimiters.length-1;t>=0;t--)95!==(n=s[t]).marker&&42!==n.marker||-1!==n.end&&(r=s[n.end],a=t>0&&s[t-1].end===n.end+1&&s[t-1].token===n.token-1&&s[n.end+1].token===r.token+1&&s[t-1].marker===n.marker,o=String.fromCharCode(n.marker),(i=e.tokens[n.token]).type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?o+o:o,i.content="",(i=e.tokens[r.token]).type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?o+o:o,i.content="",a&&(e.tokens[s[t-1].token].content="",e.tokens[s[n.end+1].token].content="",t--))}},{}],213:[function(e,t,n){"use strict";var r=e("../common/entities"),i=e("../common/utils").has,o=e("../common/utils").isValidEntityCode,a=e("../common/utils").fromCodePoint,s=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,u=/^&([a-z][a-z0-9]{1,31});/i;t.exports=function(e,t){var n,l,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(l=e.src.slice(c).match(s))return t||(n="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),e.pending+=o(n)?a(n):a(65533)),e.pos+=l[0].length,!0}else if((l=e.src.slice(c).match(u))&&i(r,l[1]))return t||(e.pending+=r[l[1]]),e.pos+=l[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},{"../common/entities":173,"../common/utils":176}],214:[function(e,t,n){"use strict";for(var r=e("../common/utils").isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){i[e.charCodeAt(0)]=1}),t.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}},{"../common/utils":176}],215:[function(e,t,n){"use strict";var r=e("../common/html_re").HTML_TAG_RE;t.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))))}},{"../common/html_re":175}],216:[function(e,t,n){"use strict";var r=e("../common/utils").normalizeReference,i=e("../common/utils").isSpace;t.exports=function(e,t){var n,o,a,s,u,l,c,f,p,d,h,m,g,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(u=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=u+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(g=c,(p=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(v=e.md.normalizeLink(p.str),e.md.validateLink(v)?c=p.pos:v=""),g=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&&g!==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)?(g=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?s=e.src.slice(g,c++):c=u+1):c=u+1,s||(s=e.src.slice(l,u)),!(f=e.env.references[r(s)]))return e.pos=y,!1;v=f.href,d=f.title}return t||(a=e.src.slice(l,u),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],h.children=m,h.content=a,d&&n.push(["title",d])),e.pos=c,e.posMax=b,!0}},{"../common/utils":176}],217:[function(e,t,n){"use strict";var r=e("../common/utils").normalizeReference,i=e("../common/utils").isSpace;t.exports=function(e,t){var n,o,a,s,u,l,c,f,p,d="",h=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(u=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=s+1)<m&&40===e.src.charCodeAt(l)){for(v=!1,l++;l<m&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(l>=m)return!1;for(g=l,(c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?l=c.pos:d=""),g=l;l<m&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(c=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&g!==l&&c.ok)for(p=c.str,l=c.pos;l<m&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);else p="";(l>=m||41!==e.src.charCodeAt(l))&&(v=!0),l++}if(v){if(void 0===e.env.references)return!1;if(l<m&&91===e.src.charCodeAt(l)?(g=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?a=e.src.slice(g,l++):l=s+1):l=s+1,a||(a=e.src.slice(u,s)),!(f=e.env.references[r(a)]))return e.pos=h,!1;d=f.href,p=f.title}return t||(e.pos=u,e.posMax=s,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=l,e.posMax=m,!0}},{"../common/utils":176}],218:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.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}},{"../common/utils":176}],219:[function(e,t,n){"use strict";var r=e("../token"),i=e("../common/utils").isWhiteSpace,o=e("../common/utils").isPunctChar,a=e("../common/utils").isMdAsciiPunct;function s(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=[]}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var 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},s.prototype.scanDelims=function(e,t){var n,r,s,u,l,c,f,p,d,h=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<v&&this.src.charCodeAt(h)===y;)h++;return s=h-e,r=h<v?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?g=!1:f&&(p||d||(g=!1)),t?(u=m,l=g):(u=m&&(!g||f),l=g&&(!m||d)),{can_open:u,can_close:l,length:s}},s.prototype.Token=r,t.exports=s},{"../common/utils":176,"../token":223}],220:[function(e,t,n){"use strict";t.exports.tokenize=function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},t.exports.postProcess=function(e){var t,n,r,i,o,a=[],s=e.delimiters,u=e.delimiters.length;for(t=0;t<u;t++)126===(r=s[t]).marker&&-1!==r.end&&(i=s[r.end],(o=e.tokens[r.token]).type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",(o=e.tokens[i.token]).type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&a.push(i.token-1));for(;a.length;){for(n=(t=a.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;t!==--n&&(o=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=o)}}},{}],221:[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}}t.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)}},{}],222:[function(e,t,n){"use strict";t.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)}},{}],223:[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},t.exports=r},{}],224:[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,s,u,l="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(u=i<<6&1984|63&o)<128?"<22><>":String.fromCharCode(u),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))?(l+=(u=i<<12&61440|o<<6&4032|63&a)<2048||u>=55296&&u<=57343?"<22><><EFBFBD>":String.fromCharCode(u),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),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((u=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||u>1114111?l+="<22><><EFBFBD><EFBFBD>":(u-=65536,l+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),t+=9):l+="<22>";return l})}i.defaultChars=";/?:@&=+$,#",i.componentChars="",t.exports=i},{}],225:[function(e,t,n){"use strict";var r={};function i(e,t,n){var o,a,s,u,l,c="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),l=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(s=e.charCodeAt(o),n&&37===s&&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(s<128)c+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=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="-_.!~*'()",t.exports=i},{}],226:[function(e,t,n){"use strict";t.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||""}},{}],227:[function(e,t,n){"use strict";t.exports.encode=e("./encode"),t.exports.decode=e("./decode"),t.exports.format=e("./format"),t.exports.parse=e("./parse")},{"./decode":224,"./encode":225,"./format":226,"./parse":228}],228:[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]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),l=["%","/","?",";","#"].concat(u),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,s,u,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=a.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var v=i.exec(m);if(v&&(o=(v=v[0]).toLowerCase(),this.protocol=v,m=m.substr(v.length)),(t||v||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(u="//"===m.substr(0,2))||v&&d[v]||(m=m.substr(2),this.slashes=!0)),!d[v]&&(u||v&&!h[v])){var y,b,T=-1;for(n=0;n<c.length;n++)-1!==(s=m.indexOf(c[n]))&&(-1===T||s<T)&&(T=s);for(-1!==(b=-1===T?m.lastIndexOf("@"):m.lastIndexOf("@",T))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),T=-1,n=0;n<l.length;n++)-1!==(s=m.indexOf(l[n]))&&(-1===T||s<T)&&(T=s);-1===T&&(T=m.length),":"===m[T-1]&&T--;var _=m.slice(0,T);m=m.slice(T),this.parseHost(_),this.hostname=this.hostname||"";var w="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!w){var k=this.hostname.split(/\./);for(n=0,r=k.length;n<r;n++){var E=k[n];if(E&&!E.match(f)){for(var O="",S=0,L=E.length;S<L;S++)E.charCodeAt(S)>127?O+="x":O+=E[S];if(!O.match(f)){var C=k.slice(0,n),N=k.slice(n+1),x=E.match(p);x&&(C.push(x[1]),N.unshift(x[2])),N.length&&(m=N.join(".")+m),this.hostname=C.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),w&&(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)},t.exports=function(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}},{}],229:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],f=!1,p=-1;function d(){f&&l&&(f=!1,l.length?c=l.concat(c):p=-1,c.length&&h())}function h(){if(!f){var e=u(d);f=!0;for(var t=c.length;t;){for(l=c,c=[];++p<t;)l&&l[p].run();p=-1,t=c.length}l=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||f||u(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],230:[function(e,t,n){(function(n){"use strict";if("production"!==n.env.NODE_ENV)var r=e("fbjs/lib/invariant"),i=e("fbjs/lib/warning"),o=e("./lib/ReactPropTypesSecret"),a={};t.exports=function(e,t,s,u,l){if("production"!==n.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var f;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",u||"React class",s,c),f=e[c](t,c,u,s,null,o)}catch(e){f=e}if(i(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",s,c,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var p=l?l():"";i(!1,"Failed %s type: %s%s",s,f.message,null!=p?p:"")}}}}).call(this,e("_process"))},{"./lib/ReactPropTypesSecret":234,_process:229,"fbjs/lib/invariant":68,"fbjs/lib/warning":69}],231:[function(e,t,n){"use strict";var r=e("fbjs/lib/emptyFunction"),i=e("fbjs/lib/invariant");t.exports=function(){function e(){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};return n.checkPropTypes=r,n.PropTypes=n,n}},{"fbjs/lib/emptyFunction":67,"fbjs/lib/invariant":68}],232:[function(e,t,n){(function(n){"use strict";var r=e("fbjs/lib/emptyFunction"),i=e("fbjs/lib/invariant"),o=e("fbjs/lib/warning"),a=e("./lib/ReactPropTypesSecret"),s=e("./checkPropTypes");t.exports=function(e,t){var u="function"==typeof Symbol&&Symbol.iterator,l="@@iterator";var c="<<anonymous>>",f={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(r.thatReturnsNull),arrayOf:function(e){return h(function(t,n,r,i,o){if("function"!=typeof e)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var u=v(s);return new d("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected an array.")}for(var l=0;l<s.length;l++){var c=e(s,l,r,i,o+"["+l+"]",a);if(c instanceof Error)return c}return null})},element:function(){return h(function(t,n,r,i,o){var a=t[n];if(!e(a)){var s=v(a);return new d("Invalid "+i+" `"+o+"` of type `"+s+"` supplied to `"+r+"`, expected a single ReactElement.")}return null})}(),instanceOf:function(e){return h(function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||c,s=function(e){if(!e.constructor||!e.constructor.name)return c;return e.constructor.name}(t[n]);return new d("Invalid "+i+" `"+o+"` of type `"+s+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null})},node:function(){return h(function(e,t,n,r,i){if(!g(e[t]))return new d("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.");return null})}(),objectOf:function(e){return h(function(t,n,r,i,o){if("function"!=typeof e)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],u=v(s);if("object"!==u)return new d("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var l in s)if(s.hasOwnProperty(l)){var c=e(s,l,r,i,o+"."+l,a);if(c instanceof Error)return c}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==n.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull;return h(function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var u=JSON.stringify(e);return new d("Invalid "+i+" `"+o+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+u+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==n.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;return h(function(t,n,r,i,o){for(var s=0;s<e.length;s++){var u=e[s];if(null==u(t,n,r,i,o,a))return null}return new d("Invalid "+i+" `"+o+"` supplied to `"+r+"`.")})},shape:function(e){return h(function(t,n,r,i,o){var s=t[n],u=v(s);if("object"!==u)return new d("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var c=e[l];if(c){var f=c(s,l,r,i,o+"."+l,a);if(f)return f}}return null})}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){this.message=e,this.stack=""}function h(e){if("production"!==n.env.NODE_ENV)var r={},s=0;function u(u,l,f,p,h,m,g){if(p=p||c,m=m||f,g!==a)if(t)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");else if("production"!==n.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+f;!r[v]&&s<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,p),r[v]=!0,s++)}return null==l[f]?u?null===l[f]?new d("The "+h+" `"+m+"` is marked as required in `"+p+"`, but its value is `null`."):new d("The "+h+" `"+m+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:e(l,f,p,h,m)}var l=u.bind(null,!1);return l.isRequired=u.bind(null,!0),l}function m(e){return h(function(t,n,r,i,o,a){var s=t[n];return v(s)!==e?new d("Invalid "+i+" `"+o+"` of type `"+function(e){var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null})}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var n=function(e){var t=e&&(u&&e[u]||e[l]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!g(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}return d.prototype=Error.prototype,f.checkPropTypes=s,f.PropTypes=f,f}}).call(this,e("_process"))},{"./checkPropTypes":230,"./lib/ReactPropTypesSecret":234,_process:229,"fbjs/lib/emptyFunction":67,"fbjs/lib/invariant":68,"fbjs/lib/warning":69}],233:[function(e,t,n){(function(n){if("production"!==n.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=e("./factoryWithTypeCheckers")(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},!0)}else t.exports=e("./factoryWithThrowingShims")()}).call(this,e("_process"))},{"./factoryWithThrowingShims":231,"./factoryWithTypeCheckers":232,_process:229}],234:[function(e,t,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}],235:[function(e,t,n){(function(e){!function(r){var i="object"==typeof n&&n&&!n.nodeType&&n,o="object"==typeof t&&t&&!t.nodeType&&t,a="object"==typeof e&&e;a.global!==a&&a.window!==a&&a.self!==a||(r=a);var s,u,l=2147483647,c=36,f=1,p=26,d=38,h=700,m=72,g=128,v="-",y=/^xn--/,b=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-f,k=Math.floor,E=String.fromCharCode;function O(e){throw new RangeError(_[e])}function S(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function L(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+S((e=e.replace(T,".")).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 N(e){return S(e,function(e){var t="";return e>65535&&(t+=E((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=E(e)}).join("")}function x(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function D(e,t,n){var r=0;for(e=n?k(e/h):e>>1,e+=k(e/t);e>w*p>>1;r+=c)e=k(e/w);return k(r+(w+1)*e/(e+d))}function A(e){var t,n,r,i,o,a,s,u,d,h,y,b=[],T=e.length,_=0,w=g,E=m;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&O("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<T;){for(o=_,a=1,s=c;i>=T&&O("invalid-input"),((u=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:c)>=c||u>k((l-_)/a))&&O("overflow"),_+=u*a,!(u<(d=s<=E?f:s>=E+p?p:s-E));s+=c)a>k(l/(h=c-d))&&O("overflow"),a*=h;E=D(_-o,t=b.length+1,0==o),k(_/t)>l-w&&O("overflow"),w+=k(_/t),_%=t,b.splice(_++,0,w)}return N(b)}function I(e){var t,n,r,i,o,a,s,u,d,h,y,b,T,_,w,S=[];for(b=(e=C(e)).length,t=g,n=0,o=m,a=0;a<b;++a)(y=e[a])<128&&S.push(E(y));for(r=i=S.length,i&&S.push(v);r<b;){for(s=l,a=0;a<b;++a)(y=e[a])>=t&&y<s&&(s=y);for(s-t>k((l-n)/(T=r+1))&&O("overflow"),n+=(s-t)*T,t=s,a=0;a<b;++a)if((y=e[a])<t&&++n>l&&O("overflow"),y==t){for(u=n,d=c;!(u<(h=d<=o?f:d>=o+p?p:d-o));d+=c)w=u-h,_=c-h,S.push(E(x(h+w%_,0))),u=k(w/_);S.push(E(x(u,0))),o=D(n,T,r==i),n=0,++r}++n,++t}return S.join("")}if(s={version:"1.4.1",ucs2:{decode:C,encode:N},decode:A,encode:I,toASCII:function(e){return L(e,function(e){return b.test(e)?"xn--"+I(e):e})},toUnicode:function(e){return L(e,function(e){return y.test(e)?A(e.slice(4).toLowerCase()):e})}},i&&o)if(t.exports==i)o.exports=s;else for(u in s)s.hasOwnProperty(u)&&(i[u]=s[u]);else r.punycode=s}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],236:[function(e,t,n){t.exports=/[\0-\x1F\x7F-\x9F]/},{}],237:[function(e,t,n){t.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]/},{}],238:[function(e,t,n){t.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]/},{}],239:[function(e,t,n){t.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},{}],240:[function(e,t,n){"use strict";n.Any=e("./properties/Any/regex"),n.Cc=e("./categories/Cc/regex"),n.Cf=e("./categories/Cf/regex"),n.P=e("./categories/P/regex"),n.Z=e("./categories/Z/regex")},{"./categories/Cc/regex":236,"./categories/Cf/regex":237,"./categories/P/regex":238,"./categories/Z/regex":239,"./properties/Any/regex":241}],241:[function(e,t,n){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},{}],242:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],243:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],244:[function(e,t,n){(function(t,r){var i=/%[sdj%]/g;n.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(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}}),u=r[n];n<o;u=r[++n])m(u)||!T(u)?a+=" "+u:a+=" "+s(u);return a},n.deprecate=function(e,i){if(y(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,a={};function s(e,t){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(t)?r.showHidden=t:t&&n._extend(r,t),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=u),c(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,t,r){if(e.customInspect&&t&&k(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return v(i)||(i=c(e,i,r)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,t);if(o)return o;var a=Object.keys(t),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),w(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(t);if(0===a.length){if(k(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(b(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(w(t))return f(t)}var l,T="",E=!1,O=["{","}"];(d(t)&&(E=!0,O=["[","]"]),k(t))&&(T=" [Function"+(t.name?": "+t.name:"")+"]");return b(t)&&(T=" "+RegExp.prototype.toString.call(t)),_(t)&&(T=" "+Date.prototype.toUTCString.call(t)),w(t)&&(T=" "+f(t)),0!==a.length||E&&0!=t.length?r<0?b(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=E?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)L(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,t,r,s,a):a.map(function(n){return p(e,t,r,s,n,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]}(l,T,O)):O[0]+T+O[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),L(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=m(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(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+": "+s}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return T(e)&&"[object RegExp]"===E(e)}function T(e){return"object"==typeof e&&null!==e}function _(e){return T(e)&&"[object Date]"===E(e)}function w(e){return T(e)&&("[object Error]"===E(e)||e instanceof Error)}function k(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(y(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var r=t.pid;a[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else a[e]=function(){};return a[e]},n.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=d,n.isBoolean=h,n.isNull=m,n.isNullOrUndefined=function(e){return null==e},n.isNumber=g,n.isString=v,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=y,n.isRegExp=b,n.isObject=T,n.isDate=_,n.isError=w,n.isFunction=k,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),S[e.getMonth()],t].join(" ")),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!T(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":243,_process:229,inherits:242}]},{},[22])(22)});
|