text: (window.webpackJsonpeditor=window.webpackJsonpeditor||[]).push([[2],[function(e,t,n){"use strict";var i=n(36),r=n(3),o=n(24),s=n(43),a=n(26),c=n(6),l=n(20),u=n(39),h=n(18);function d(e){return e}var f=n(31),p=n(30),g=n(1),m=n(107);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(n,!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){return A(e)||F(e)||S(e)||x(e)||_(e)||R(e)||L(e)||N(e)}function w(e){if(!E(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL type."));return e}function A(e){return Object(u.a)(e,se)}function C(e){if(!A(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL Scalar type."));return e}function F(e){return Object(u.a)(e,ae)}function T(e){if(!F(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL Object type."));return e}function S(e){return Object(u.a)(e,pe)}function O(e){if(!S(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL Interface type."));return e}function x(e){return Object(u.a)(e,ge)}function k(e){if(!x(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL Union type."));return e}function _(e){return Object(u.a)(e,ve)}function D(e){if(!_(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL Enum type."));return e}function R(e){return Object(u.a)(e,ye)}function B(e){if(!R(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL Input Object type."));return e}function L(e){return Object(u.a)(e,q)}function M(e){if(!L(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL List type."));return e}function N(e){return Object(u.a)(e,Q)}function $(e){if(!N(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL Non-Null type."));return e}function I(e){return A(e)||_(e)||R(e)||Y(e)&&I(e.ofType)}function j(e){if(!I(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL input type."));return e}function P(e){return A(e)||F(e)||S(e)||x(e)||_(e)||Y(e)&&P(e.ofType)}function V(e){if(!P(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL output type."));return e}function U(e){return A(e)||_(e)}function z(e){if(!U(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL leaf type."));return e}function W(e){return F(e)||S(e)||x(e)}function H(e){if(!W(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL composite type."));return e}function G(e){return S(e)||x(e)}function K(e){if(!G(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL abstract type."));return e}function q(e){if(!(this instanceof q))return new q(e);this.ofType=w(e)}function Q(e){if(!(this instanceof Q))return new Q(e);this.ofType=Z(e)}function Y(e){return L(e)||N(e)}function X(e){if(!Y(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL wrapping type."));return e}function J(e){return E(e)&&!N(e)}function Z(e){if(!J(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL nullable type."));return e}function ee(e){if(e)return N(e)?e.ofType:e}function te(e){return A(e)||F(e)||S(e)||x(e)||_(e)||R(e)}function ne(e){if(!te(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL named type."));return e}function ie(e){if(e){for(var t=e;Y(t);)t=t.ofType;return t}}function re(e){return"function"===typeof e?e():e}function oe(e){return e&&e.length>0?e:void 0}n.d(t,"S",function(){return E}),n.d(t,"x",function(){return w}),n.d(t,"R",function(){return A}),n.d(t,"w",function(){return C}),n.d(t,"N",function(){return F}),n.d(t,"u",function(){return T}),n.d(t,"H",function(){return S}),n.d(t,"o",function(){return O}),n.d(t,"T",function(){return x}),n.d(t,"y",function(){return k}),n.d(t,"E",function(){return _}),n.d(t,"l",function(){return D}),n.d(t,"F",function(){return R}),n.d(t,"m",function(){return B}),n.d(t,"J",function(){return L}),n.d(t,"q",function(){return M}),n.d(t,"L",function(){return N}),n.d(t,"s",function(){return $}),n.d(t,"G",function(){return I}),n.d(t,"n",function(){return j}),n.d(t,"O",function(){return P}),n.d(t,"v",function(){return V}),n.d(t,"I",function(){return U}),n.d(t,"p",function(){return z}),n.d(t,"D",function(){return W}),n.d(t,"k",function(){return H}),n.d(t,"C",function(){return G}),n.d(t,"j",function(){return K}),n.d(t,"d",function(){return q}),n.d(t,"e",function(){return Q}),n.d(t,"U",function(){return Y}),n.d(t,"z",function(){return X}),n.d(t,"M",function(){return J}),n.d(t,"t",function(){return Z}),n.d(t,"B",function(){return ee}),n.d(t,"K",function(){return te}),n.d(t,"r",function(){return ne}),n.d(t,"A",function(){return ie}),n.d(t,"g",function(){return se}),n.d(t,"f",function(){return ae}),n.d(t,"i",function(){return de}),n.d(t,"P",function(){return fe}),n.d(t,"c",function(){return pe}),n.d(t,"h",function(){return ge}),n.d(t,"a",function(){return ve}),n.d(t,"b",function(){return ye}),n.d(t,"Q",function(){return Ee}),q.prototype.toString=function(){return"["+String(this.ofType)+"]"},Object(p.a)(q),Object(f.a)(q),Q.prototype.toString=function(){return String(this.ofType)+"!"},Object(p.a)(Q),Object(f.a)(Q);var se=function(){function e(e){var t=e.parseValue||d;this.name=e.name,this.description=e.description,this.serialize=e.serialize||d,this.parseValue=t,this.parseLiteral=e.parseLiteral||function(e){return t(Object(m.a)(e))},this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.serialize||"function"===typeof e.serialize||Object(c.a)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||Object(c.a)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){return{name:this.name,description:this.description,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(p.a)(se),Object(f.a)(se);var ae=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=le.bind(void 0,e),this._interfaces=ce.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.isTypeOf||"function"===typeof e.isTypeOf||Object(c.a)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(Object(r.a)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function ce(e){var t=re(e.interfaces)||[];return Array.isArray(t)||Object(c.a)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function le(e){var t=re(e.fields)||{};return ue(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(s.a)(t,function(t,n){ue(t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field config must be an object")),!("isDeprecated"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"===typeof t.resolve||Object(c.a)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(Object(r.a)(t.resolve),"."));var o=t.args||{};ue(o)||Object(c.a)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=Object(i.a)(o).map(function(e){var t=e[0],n=e[1];return{name:t,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&Object(a.a)(n.extensions),astNode:n.astNode}});return y({},t,{name:n,description:t.description,type:t.type,args:s,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,extensions:t.extensions&&Object(a.a)(t.extensions),astNode:t.astNode})})}function ue(e){return Object(h.a)(e)&&!Array.isArray(e)}function he(e){return Object(s.a)(e,function(e){return{description:e.description,type:e.type,args:de(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function de(e){return Object(l.a)(e,function(e){return e.name},function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}})}function fe(e){return N(e.type)&&void 0===e.defaultValue}Object(p.a)(ae),Object(f.a)(ae);var pe=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=le.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(r.a)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){return{name:this.name,description:this.description,fields:he(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(p.a)(pe),Object(f.a)(pe);var ge=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._types=me.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(r.a)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"===typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function me(e){var t=re(e.types)||[];return Array.isArray(t)||Object(c.a)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}Object(p.a)(ge),Object(f.a)(ge);var ve=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._values=(t=this.name,ue(n=e.values)||Object(c.a)(0,"".concat(t," values must be an object with value names as keys.")),Object(i.a)(n).map(function(e){var n=e[0],i=e[1];return ue(i)||Object(c.a)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(Object(r.a)(i),".")),!("isDeprecated"in i)||Object(c.a)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:i.description,value:"value"in i?i.value:n,isDeprecated:Boolean(i.deprecationReason),deprecationReason:i.deprecationReason,extensions:i.extensions&&Object(a.a)(i.extensions),astNode:i.astNode}})),this._valueLookup=new Map(this._values.map(function(e){return[e.value,e]})),this._nameLookup=Object(o.a)(this._values,function(e){return e.name}),"string"===typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(t)return t.name},t.parseValue=function(e){if("string"===typeof e){var t=this.getValue(e);if(t)return t.value}},t.parseLiteral=function(e,t){if(e.kind===g.a.ENUM){var n=this.getValue(e.value);if(n)return n.value}},t.toConfig=function(){var e=Object(l.a)(this.getValues(),function(e){return e.name},function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}});return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(p.a)(ve),Object(f.a)(ve);var ye=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=be.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e=Object(s.a)(this.getFields(),function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}});return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function be(e){var t=re(e.fields)||{};return ue(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(s.a)(t,function(t,n){return!("resolve"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),y({},t,{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Object(a.a)(t.extensions),astNode:t.astNode})})}function Ee(e){return N(e.type)&&void 0===e.defaultValue}Object(p.a)(ye),Object(f.a)(ye)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(136)),i(n(158)),i(n(56)),i(n(165))},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(64);function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=10,s=2;function a(e){return c(e,[])}function c(e,t){switch(r(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(i.a)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==r){var a=r.call(e);if(a!==e)return"string"===typeof a?a:c(a,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>s)return"[Array]";for(var n=Math.min(o,e.length),i=e.length-n,r=[],a=0;a<n;++a)r.push(c(e[a],t));1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items"));return"["+r.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>s)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map(function(n){return n+": "+c(e[n],t)}).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return a});var i=n(18),r=n(65),o=n(81);function s(e,t,n,o,a,c,l){var u=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,h=n;if(!h&&u){var d=u[0];h=d&&d.loc&&d.loc.source}var f,p=o;!p&&u&&(p=u.reduce(function(e,t){return t.loc&&e.push(t.loc.start),e},[])),p&&0===p.length&&(p=void 0),o&&n?f=o.map(function(e){return Object(r.a)(n,e)}):u&&(f=u.reduce(function(e,t){return t.loc&&e.push(Object(r.a)(t.loc.source,t.loc.start)),e},[]));var g=l;if(null==g&&null!=c){var m=c.extensions;Object(i.a)(m)&&(g=m)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:f||void 0,enumerable:Boolean(f)},path:{value:a||void 0,enumerable:Boolean(a)},nodes:{value:u||void 0},source:{value:h||void 0},positions:{value:p||void 0},originalError:{value:c},extensions:{value:g||void 0,enumerable:Boolean(g)}}),c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function a(e){var t=e.message;if(e.nodes)for(var n=0,i=e.nodes;n<i.length;n++){var r=i[n];r.loc&&(t+="\n\n"+Object(o.a)(r.loc))}else if(e.source&&e.locations)for(var s=0,a=e.locations;s<a.length;s++){var c=a[s];t+="\n\n"+Object(o.b)(e.source,c)}return t}s.prototype=Object.create(Error.prototype,{constructor:{value:s},name:{value:"GraphQLError"},toString:{value:function(){return a(this)}}})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},function(e,t,n){"use strict";function i(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";var i=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})};t.a=i},function(e,t,n){"use strict";n.d(t,"j",function(){return h}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return f}),n.d(t,"k",function(){return p}),n.d(t,"h",function(){return g}),n.d(t,"i",function(){return m}),n.d(t,"g",function(){return v}),n.d(t,"b",function(){return y}),n.d(t,"l",function(){return b}),n.d(t,"a",function(){return E}),n.d(t,"c",function(){return w}),n.d(t,"d",function(){return A}),n.d(t,"m",function(){return C}),n.d(t,"n",function(){return F});var i=n(9),r=n(3),o=n(16),s=n(15),a=n(7),c=n(54),l=n(11),u=n(0),h=new u.f({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{types:{description:"A list of all types supported by this server.",type:Object(u.e)(Object(u.d)(Object(u.e)(p))),resolve:function(e){return Object(i.a)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:Object(u.e)(p),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:Object(u.e)(Object(u.d)(Object(u.e)(d))),resolve:function(e){return e.getDirectives()}}}}}),d=new u.f({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:Object(u.e)(l.e),resolve:function(e){return e.name}},description:{type:l.e,resolve:function(e){return e.description}},locations:{type:Object(u.e)(Object(u.d)(Object(u.e)(f))),resolve:function(e){return e.locations}},args:{type:Object(u.e)(Object(u.d)(Object(u.e)(m))),resolve:function(e){return e.args}}}}}),f=new u.a({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:a.a.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:a.a.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:a.a.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:a.a.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:a.a.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:a.a.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:a.a.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:a.a.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:a.a.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:a.a.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:a.a.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:a.a.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:a.a.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:a.a.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:a.a.UNION,description:"Location adjacent to a union definition."},ENUM:{value:a.a.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:a.a.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:a.a.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:a.a.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),p=new u.f({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name 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:Object(u.e)(b),resolve:function(e){return Object(u.R)(e)?y.SCALAR:Object(u.N)(e)?y.OBJECT:Object(u.H)(e)?y.INTERFACE:Object(u.T)(e)?y.UNION:Object(u.E)(e)?y.ENUM:Object(u.F)(e)?y.INPUT_OBJECT:Object(u.J)(e)?y.LIST:Object(u.L)(e)?y.NON_NULL:void Object(o.a)(!1,'Unexpected type: "'.concat(Object(r.a)(e),'".'))}},name:{type:l.e,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:l.e,resolve:function(e){return void 0!==e.description?e.description:void 0}},fields:{type:Object(u.d)(Object(u.e)(g)),args:{includeDeprecated:{type:l.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(u.N)(e)||Object(u.H)(e)){var r=Object(i.a)(e.getFields());return n||(r=r.filter(function(e){return!e.deprecationReason})),r}return null}},interfaces:{type:Object(u.d)(Object(u.e)(p)),resolve:function(e){if(Object(u.N)(e))return e.getInterfaces()}},possibleTypes:{type:Object(u.d)(Object(u.e)(p)),resolve:function(e,t,n,i){var r=i.schema;if(Object(u.C)(e))return r.getPossibleTypes(e)}},enumValues:{type:Object(u.d)(Object(u.e)(v)),args:{includeDeprecated:{type:l.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(u.E)(e)){var i=e.getValues();return n||(i=i.filter(function(e){return!e.deprecationReason})),i}}},inputFields:{type:Object(u.d)(Object(u.e)(m)),resolve:function(e){if(Object(u.F)(e))return Object(i.a)(e.getFields())}},ofType:{type:p,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),g=new u.f({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:Object(u.e)(l.e),resolve:function(e){return e.name}},description:{type:l.e,resolve:function(e){return e.description}},args:{type:Object(u.e)(Object(u.d)(Object(u.e)(m))),resolve:function(e){return e.args}},type:{type:Object(u.e)(p),resolve:function(e){return e.type}},isDeprecated:{type:Object(u.e)(l.a),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:l.e,resolve:function(e){return e.deprecationReason}}}}}),m=new u.f({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:Object(u.e)(l.e),resolve:function(e){return e.name}},description:{type:l.e,resolve:function(e){return e.description}},type:{type:Object(u.e)(p),resolve:function(e){return e.type}},defaultValue:{type:l.e,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=Object(c.a)(e.defaultValue,e.type);return t?Object(s.a)(t):null}}}}}),v=new u.f({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:Object(u.e)(l.e),resolve:function(e){return e.name}},description:{type:l.e,resolve:function(e){return e.description}},isDeprecated:{type:Object(u.e)(l.a),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:l.e,resolve:function(e){return e.deprecationReason}}}}}),y=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),b=new u.a({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields` 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."}}}),E={name:"__schema",type:Object(u.e)(h),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,i){return i.schema},deprecationReason:void 0,extensions:void 0,astNode:void 0},w={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:Object(u.e)(l.e),defaultValue:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,i){var r=t.name;return i.schema.getType(r)},deprecationReason:void 0,extensions:void 0,astNode:void 0},A={name:"__typename",type:Object(u.e)(l.e),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,i){return i.parentType.name},deprecationReason:void 0,extensions:void 0,astNode:void 0},C=Object.freeze([h,d,f,p,g,m,v,b]);function F(e){return Object(u.K)(e)&&C.some(function(t){var n=t.name;return e.name===n})}},function(e,t,n){"use strict";var i=Number.isFinite||function(e){return"number"===typeof e&&isFinite(e)},r=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},o=n(3),s=n(18),a=n(1),c=n(0);n.d(t,"d",function(){return h}),n.d(t,"b",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"a",function(){return g}),n.d(t,"c",function(){return m}),n.d(t,"g",function(){return v}),n.d(t,"f",function(){return y});var l=2147483647,u=-2147483648;var h=new c.g({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){if("boolean"===typeof e)return e?1:0;var t=e;if("string"===typeof e&&""!==e&&(t=Number(e)),!r(t))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(o.a)(e)));if(t>l||t<u)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(o.a)(e)));return t},parseValue:function(e){if(!r(e))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(o.a)(e)));if(e>l||e<u)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){if(e.kind===a.a.INT){var t=parseInt(e.value,10);if(t<=l&&t>=u)return t}}});var d=new c.g({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){if("boolean"===typeof e)return e?1:0;var t=e;if("string"===typeof e&&""!==e&&(t=Number(e)),!i(t))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(o.a)(e)));return t},parseValue:function(e){if(!i(e))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===a.a.FLOAT||e.kind===a.a.INT?parseFloat(e.value):void 0}});function f(e){if(Object(s.a)(e)){if("function"===typeof e.valueOf){var t=e.valueOf();if(!Object(s.a)(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}var p=new c.g({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=f(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if(i(t))return t.toString();throw new TypeError("String cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"!==typeof e)throw new TypeError("String cannot represent a non string value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===a.a.STRING?e.value:void 0}});var g=new c.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"===typeof e)return e;if(i(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("boolean"!==typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===a.a.BOOLEAN?e.value:void 0}});var m=new c.g({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=f(e);if("string"===typeof t)return t;if(r(t))return String(t);throw new TypeError("ID cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"===typeof e)return e;if(r(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat(Object(o.a)(e)))},parseLiteral:function(e){return e.kind===a.a.STRING||e.kind===a.a.INT?e.value:void 0}}),v=Object.freeze([p,h,d,g,m]);function y(e){return Object(c.R)(e)&&v.some(function(t){var n=t.name;return e.name===n})}},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";e.exports=n(131)},function(e,t,n){"use strict";n.d(t,"g",function(){return p}),n.d(t,"f",function(){return g}),n.d(t,"c",function(){return m}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return y}),n.d(t,"a",function(){return b}),n.d(t,"b",function(){return E}),n.d(t,"i",function(){return w}),n.d(t,"h",function(){return A});var i=n(36),r=n(3),o=n(26),s=n(6),a=n(39),c=n(31),l=n(18),u=n(30),h=n(7),d=n(11),f=n(0);function p(e){return Object(a.a)(e,m)}function g(e){if(!p(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL directive."));return e}var m=function(){function e(e){this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=e.isRepeatable&&e.isRepeatable,this.extensions=e.extensions&&Object(o.a)(e.extensions),this.astNode=e.astNode,e.name||Object(s.a)(0,"Directive must be named."),Array.isArray(e.locations)||Object(s.a)(0,"@".concat(e.name," locations must be an Array."));var t=e.args||{};Object(l.a)(t)&&!Array.isArray(t)||Object(s.a)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object(i.a)(t).map(function(e){var t=e[0],n=e[1];return{name:t,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&Object(o.a)(n.extensions),astNode:n.astNode}})}var t=e.prototype;return t.toString=function(){return"@"+this.name},t.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Object(f.i)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},e}();Object(u.a)(m),Object(c.a)(m);var v=new m({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[h.a.FIELD,h.a.FRAGMENT_SPREAD,h.a.INLINE_FRAGMENT],args:{if:{type:Object(f.e)(d.a),description:"Included when true."}}}),y=new m({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[h.a.FIELD,h.a.FRAGMENT_SPREAD,h.a.INLINE_FRAGMENT],args:{if:{type:Object(f.e)(d.a),description:"Skipped when true."}}}),b="No longer supported",E=new m({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[h.a.FIELD_DEFINITION,h.a.ENUM_VALUE],args:{reason:{type:d.e,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:b}}}),w=Object.freeze([v,y,E]);function A(e){return p(e)&&w.some(function(t){return t.name===e.name})}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(23),r=n(41);function o(e){return Object(i.c)(e,{leave:s})}var s={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return c(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,i=u("(",c(e.variableDefinitions,", "),")"),r=c(e.directives," "),o=e.selectionSet;return n||r||i||"query"!==t?c([t,c([n,i]),r,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,i=e.defaultValue,r=e.directives;return t+": "+n+u(" = ",i)+u(" ",c(r," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,n=e.name,i=e.arguments,r=e.directives,o=e.selectionSet;return c([u("",t,": ")+n+u("(",c(i,", "),")"),c(r," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",c(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,i=e.selectionSet;return c(["...",u("on ",t),c(n," "),i]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,i=e.variableDefinitions,r=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",c(i,", "),")")," ")+"on ".concat(n," ").concat(u("",c(r," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Object(r.c)(n,"description"===t?"":"  "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+c(e.values,", ")+"]"},ObjectValue:function(e){return"{"+c(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",c(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 c(["schema",c(t," "),l(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a(function(e){return c(["scalar",e.name,c(e.directives," ")]," ")}),ObjectTypeDefinition:a(function(e){var t=e.name,n=e.interfaces,i=e.directives,r=e.fields;return c(["type",t,u("implements ",c(n," & ")),c(i," "),l(r)]," ")}),FieldDefinition:a(function(e){var t=e.name,n=e.arguments,i=e.type,r=e.directives;return t+(f(n)?u("(\n",h(c(n,"\n")),"\n)"):u("(",c(n,", "),")"))+": "+i+u(" ",c(r," "))}),InputValueDefinition:a(function(e){var t=e.name,n=e.type,i=e.defaultValue,r=e.directives;return c([t+": "+n,u("= ",i),c(r," ")]," ")}),InterfaceTypeDefinition:a(function(e){var t=e.name,n=e.directives,i=e.fields;return c(["interface",t,c(n," "),l(i)]," ")}),UnionTypeDefinition:a(function(e){var t=e.name,n=e.directives,i=e.types;return c(["union",t,c(n," "),i&&0!==i.length?"= "+c(i," | "):""]," ")}),EnumTypeDefinition:a(function(e){var t=e.name,n=e.directives,i=e.values;return c(["enum",t,c(n," "),l(i)]," ")}),EnumValueDefinition:a(function(e){return c([e.name,c(e.directives," ")]," ")}),InputObjectTypeDefinition:a(function(e){var t=e.name,n=e.directives,i=e.fields;return c(["input",t,c(n," "),l(i)]," ")}),DirectiveDefinition:a(function(e){var t=e.name,n=e.arguments,i=e.repeatable,r=e.locations;return"directive @"+t+(f(n)?u("(\n",h(c(n,"\n")),"\n)"):u("(",c(n,", "),")"))+(i?" repeatable":"")+" on "+c(r," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return c(["extend schema",c(t," "),l(n)]," ")},ScalarTypeExtension:function(e){return c(["extend scalar",e.name,c(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,i=e.directives,r=e.fields;return c(["extend type",t,u("implements ",c(n," & ")),c(i," "),l(r)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.directives,i=e.fields;return c(["extend interface",t,c(n," "),l(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,i=e.types;return c(["extend union",t,c(n," "),i&&0!==i.length?"= "+c(i," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,i=e.values;return c(["extend enum",t,c(n," "),l(i)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,i=e.fields;return c(["extend input",t,c(n," "),l(i)]," ")}};function a(e){return function(t){return c([t.description,e(t)],"\n")}}function c(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function l(e){return e&&0!==e.length?"{\n"+h(c(e,"\n"))+"\n}":""}function u(e,t,n){return t?e+t+(n||""):""}function h(e){return e&&"  "+e.replace(/\n/g,"\n  ")}function d(e){return-1!==e.indexOf("\n")}function f(e){return e&&e.some(d)}},function(e,t,n){"use strict";function i(e,t){if(!Boolean(e))throw new Error(t||"Unexpected invariant triggered")}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return"object"==i(e)&&null!==e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var r=n(171);t.Diagram=r.Diagram,i(n(40)),i(n(201)),i(n(204)),i(n(96)),i(n(32)),i(n(68))},function(e,t,n){"use strict";function i(e,t,n){return e.reduce(function(e,i){return e[t(i)]=n(i),e},Object.create(null))}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function i(e,t){return{prev:e,key:t}}function r(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(3),r=n(16),o=n(1),s=n(0);function a(e,t){var n;return t.kind===o.a.LIST_TYPE?(n=a(e,t.type))&&Object(s.d)(n):t.kind===o.a.NON_NULL_TYPE?(n=a(e,t.type))&&Object(s.e)(n):t.kind===o.a.NAMED_TYPE?e.getType(t.name.value):void Object(r.a)(!1,"Unexpected type node: "+Object(i.a)(t))}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return l}),n.d(t,"b",function(){return u});var i=n(3),r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,s=void 0,c=Array.isArray(e),l=[e],h=-1,d=[],f=void 0,p=void 0,g=void 0,m=[],v=[],y=e;do{var b=++h===l.length,E=b&&0!==d.length;if(b){if(p=0===v.length?void 0:m[m.length-1],f=g,g=v.pop(),E){if(c)f=f.slice();else{for(var w={},A=0,C=Object.keys(f);A<C.length;A++){var F=C[A];w[F]=f[F]}f=w}for(var T=0,S=0;S<d.length;S++){var O=d[S][0],x=d[S][1];c&&(O-=T),c&&null===x?(f.splice(O,1),T++):f[O]=x}}h=s.index,l=s.keys,d=s.edits,c=s.inArray,s=s.prev}else{if(p=g?c?h:l[h]:void 0,null===(f=g?g[p]:y)||void 0===f)continue;g&&m.push(p)}var k=void 0;if(!Array.isArray(f)){if(!a(f))throw new Error("Invalid AST Node: "+Object(i.a)(f));var _=u(t,f.kind,b);if(_){if((k=_.call(t,f,p,g,m,v))===o)break;if(!1===k){if(!b){m.pop();continue}}else if(void 0!==k&&(d.push([p,k]),!b)){if(!a(k)){m.pop();continue}f=k}}}void 0===k&&E&&d.push([p,f]),b?m.pop():(s={inArray:c,index:h,keys:l,edits:d,prev:s},l=(c=Array.isArray(f))?f:n[f.kind]||[],h=-1,d=[],g&&v.push(g),g=f)}while(void 0!==s);return 0!==d.length&&(y=d[d.length-1][1]),y}function a(e){return Boolean(e&&"string"===typeof e.kind)}function c(e){var t=new Array(e.length);return{enter:function(n){for(var i=0;i<e.length;i++)if(!t[i]){var r=u(e[i],n.kind,!1);if(r){var s=r.apply(e[i],arguments);if(!1===s)t[i]=n;else if(s===o)t[i]=o;else if(void 0!==s)return s}}},leave:function(n){for(var i=0;i<e.length;i++)if(t[i])t[i]===n&&(t[i]=null);else{var r=u(e[i],n.kind,!0);if(r){var s=r.apply(e[i],arguments);if(s===o)t[i]=o;else if(void 0!==s&&!1!==s)return s}}}}}function l(e,t){return{enter:function(n){e.enter(n);var i=u(t,n.kind,!1);if(i){var r=i.apply(t,arguments);return void 0!==r&&(e.leave(n),a(r)&&e.enter(r)),r}},leave:function(n){var i,r=u(t,n.kind,!0);return r&&(i=r.apply(t,arguments)),e.leave(n),i}}}function u(e,t,n){var i=e[t];if(i){if(!n&&"function"===typeof i)return i;var r=n?i.leave:i.enter;if("function"===typeof r)return r}else{var o=n?e.leave:e.enter;if(o){if("function"===typeof o)return o;var s=o[t];if("function"===typeof s)return s}}}},function(e,t,n){"use strict";function i(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},Object.create(null))}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=5;function r(e,t){var n="string"===typeof e?[e,t]:[void 0,e],r=n[0],o=n[1],s=" Did you mean ";switch(r&&(s+=r+" "),o.length){case 0:return"";case 1:return s+o[0]+"?";case 2:return s+o[0]+" or "+o[1]+"?"}var a=o.slice(0,i),c=a.pop();return s+a.join(", ")+", or "+c+"?"}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(36);function r(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=Object(i.a)(e);n<r.length;n++){var o=r[n],s=o[0],a=o[1];t[s]=a}return t}},function(e,t,n){"use strict";function i(e,t){for(var n=Object.create(null),i=e.length/2,o=0;o<t.length;o++){var s=t[o],a=r(e,s);a<=Math.max(i,s.length/2,1)&&(n[s]=a)}return Object.keys(n).sort(function(e,t){return n[e]-n[t]})}function r(e,t){if(e===t)return 0;var n=[],i=e.toLowerCase(),r=t.toLowerCase(),o=i.length,s=r.length;if(i===r)return 1;for(var a=0;a<=o;a++)n[a]=[a];for(var c=1;c<=s;c++)n[0][c]=c;for(var l=1;l<=o;l++)for(var u=1;u<=s;u++){var h=i[l-1]===r[u-1]?0:1;n[l][u]=Math.min(n[l-1][u]+1,n[l][u-1]+1,n[l-1][u-1]+h),l>1&&u>1&&i[l-1]===r[u-2]&&i[l-2]===r[u-1]&&(n[l][u]=Math.min(n[l][u],n[l-2][u-2]+h))}return n[o][s]}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function i(e){return void 0===e||e!==e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"e",function(){return a}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return f}),n.d(t,"d",function(){return p}),n.d(t,"c",function(){return g});var i="function"===typeof Symbol?Symbol:void 0,r=i&&i.iterator,o=r||"@@iterator";function s(e){var t=null!=e&&e.length;return"number"===typeof t&&t>=0&&t%1===0}function a(e){return Object(e)===e&&(s(e)||function(e){return!!l(e)}(e))}function c(e){var t=l(e);if(t)return t.call(e)}function l(e){if(null!=e){var t=r&&e[r]||e["@@iterator"];if("function"===typeof t)return t}}function u(e){this._o=e,this._i=0}function h(e,t,n){if(null!=e){if("function"===typeof e.forEach)return e.forEach(t,n);var i=0,r=c(e);if(r){for(var o;!(o=r.next()).done;)if(t.call(n,o.value,i++,e),i>9999999)throw new TypeError("Near-infinite iteration.")}else if(s(e))for(;i<e.length;i++)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}}u.prototype[o]=function(){return this},u.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}};var d=i&&i.asyncIterator,f=d||"@@asyncIterator";function p(e){return!!m(e)}function g(e){var t=m(e);if(t)return t.call(e)}function m(e){if(null!=e){var t=d&&e[d]||e["@@asyncIterator"];if("function"===typeof t)return t}}function v(e){this._i=e}v.prototype[f]=function(){return this},v.prototype.next=function(){var e=this._i.next();return Promise.resolve(e.value).then(function(t){return{value:t,done:e.done}})}},function(e,t,n){"use strict";function i(e){"function"===typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(64);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,i.a&&(e.prototype[i.a]=t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(181);t.IOEvents=i.IOEvents;var r=n(182);t.DiagramEvents=r.DiagramEvents},function(e,t,n){"use strict";var i=n(73);function r(e){var t={},n="";for(var o in e){var s=e[o];if("$unique"===o)t[i.IS_UNIQUE]=s;else if("$nest"===o){var a=s;for(var c in a){var l=a[c];t[c]=r(l).result}}else"$debugName"===o?n=s:t[o]=s}return{result:t,debugName:n}}var o="undefined"===typeof requestAnimationFrame?function(e){return setTimeout(e)}:"undefined"===typeof window?requestAnimationFrame:requestAnimationFrame.bind(window);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},i=0,r=e;i<r.length;i++){var o=r[i];if(null!=o&&!1!==o)for(var a in o){var c=o[a];(c||0===c)&&("$nest"===a&&c?n[a]=n.$nest?s(n.$nest,c):c:-1!==a.indexOf("&")||0===a.indexOf("@media")?n[a]=n[a]?s(n[a],c):c:n[a]=c)}}return n}var a=function(){return i.create(void 0,!0)},c=function(){function e(e){var t=e.autoGenerateTag,n=this;this.cssRaw=function(e){e&&(n._raw+=e||"",n._pendingRawChange=!0,n._styleUpdated())},this.cssRule=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var o=r(s.apply(void 0,t)).result;n._freeStyle.registerRule(e,o),n._styleUpdated()},this.forceRenderStyles=function(){var e=n._getTag();e&&(e.textContent=n.getStyles())},this.fontFace=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i=n._freeStyle,r=0,o=e;r<o.length;r++){var s=o[r];i.registerRule("@font-face",s)}n._styleUpdated()},this.getStyles=function(){return(n._raw||"")+n._freeStyle.getStyles()},this.keyframes=function(e){var t=function(e){var t={$debugName:void 0,keyframes:{}};for(var n in e){var i=e[n];"$debugName"===n?t.$debugName=i:t.keyframes[n]=i}return t}(e),i=t.keyframes,r=t.$debugName,o=n._freeStyle.registerKeyframes(i,r);return n._styleUpdated(),o},this.reinit=function(){var e=a();n._freeStyle=e,n._lastFreeStyleChangeId=e.changeId,n._raw="",n._pendingRawChange=!1;var t=n._getTag();t&&(t.textContent="")},this.setStylesTarget=function(e){n._tag&&(n._tag.textContent=""),n._tag=e,n.forceRenderStyles()},this.stylesheet=function(e){for(var t={},i=0,r=Object.getOwnPropertyNames(e);i<r.length;i++){var o=r[i],s=e[o];s&&(s.$debugName=o,t[o]=n.style(s))}return t};var i=a();this._autoGenerateTag=t,this._freeStyle=i,this._lastFreeStyleChangeId=i.changeId,this._pending=0,this._pendingRawChange=!1,this._raw="",this._tag=void 0,this.style=this.style.bind(this)}return e.prototype._afterAllSync=function(e){var t=this;this._pending++;var n=this._pending;o(function(){n===t._pending&&e()})},e.prototype._getTag=function(){if(this._tag)return this._tag;if(this._autoGenerateTag){var e="undefined"===typeof window?{textContent:""}:document.createElement("style");return"undefined"!==typeof document&&document.head.appendChild(e),this._tag=e,e}},e.prototype._styleUpdated=function(){var e=this,t=this._freeStyle.changeId,n=this._lastFreeStyleChangeId;(this._pendingRawChange||t!==n)&&(this._lastFreeStyleChangeId=t,this._pendingRawChange=!1,this._afterAllSync(function(){return e.forceRenderStyles()}))},e.prototype.style=function(){var e=this._freeStyle,t=r(s.apply(void 0,arguments)),n=t.result,i=t.debugName,o=i?e.registerStyle(n,i):e.registerStyle(n);return this._styleUpdated(),o},e}();n(99);n.d(t,"a",function(){return u});var l=new c({autoGenerateTag:!0}),u=(l.setStylesTarget,l.cssRaw,l.cssRule,l.forceRenderStyles,l.fontFace,l.getStyles,l.keyframes,l.reinit,l.style);l.stylesheet},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(4);function r(e,t,n){return new i.a("Syntax Error: ".concat(n),void 0,e,[t])}},function(e,t,n){"use strict";n.d(t,"c",function(){return p}),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return m});var i=n(42),r=n(9),o=n(3),s=n(26),a=n(6),c=n(39),l=n(18),u=n(30),h=n(10),d=n(14),f=n(0);function p(e){return Object(c.a)(e,m)}function g(e){if(!p(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL schema."));return e}var m=function(){function e(e){e&&e.assumeValid?this.__validationErrors=[]:(this.__validationErrors=void 0,Object(l.a)(e)||Object(a.a)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Object(a.a)(0,'"types" must be Array if provided but got: '.concat(Object(o.a)(e.types),".")),!e.directives||Array.isArray(e.directives)||Object(a.a)(0,'"directives" must be Array if provided but got: '+"".concat(Object(o.a)(e.directives),".")),!e.allowedLegacyNames||Array.isArray(e.allowedLegacyNames)||Object(a.a)(0,'"allowedLegacyNames" must be Array if provided but got: '+"".concat(Object(o.a)(e.allowedLegacyNames),"."))),this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.__allowedLegacyNames=e.allowedLegacyNames||[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives||d.i;var t=[this._queryType,this._mutationType,this._subscriptionType,h.j].concat(e.types),n=Object.create(null);n=t.reduce(v,n),n=this._directives.reduce(y,n),this._typeMap=n,this._possibleTypeMap=Object.create(null),this._implementations=Object.create(null);for(var i=0,c=Object(r.a)(this._typeMap);i<c.length;i++){var u=c[i];if(Object(f.N)(u))for(var p=0,g=u.getInterfaces();p<g.length;p++){var m=g[p];if(Object(f.H)(m)){var b=this._implementations[m.name];b?b.push(u):this._implementations[m.name]=[u]}}}}var t=e.prototype;return t.getQueryType=function(){return this._queryType},t.getMutationType=function(){return this._mutationType},t.getSubscriptionType=function(){return this._subscriptionType},t.getTypeMap=function(){return this._typeMap},t.getType=function(e){return this.getTypeMap()[e]},t.getPossibleTypes=function(e){return Object(f.T)(e)?e.getTypes():this._implementations[e.name]||[]},t.isPossibleType=function(e,t){if(null==this._possibleTypeMap[e.name]){for(var n=Object.create(null),i=0,r=this.getPossibleTypes(e);i<r.length;i++){n[r[i].name]=!0}this._possibleTypeMap[e.name]=n}return Boolean(this._possibleTypeMap[e.name][t.name])},t.getDirectives=function(){return this._directives},t.getDirective=function(e){return Object(i.a)(this.getDirectives(),function(t){return t.name===e})},t.toConfig=function(){return{query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object(r.a)(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[],assumeValid:void 0!==this.__validationErrors,allowedLegacyNames:this.__allowedLegacyNames}},e}();function v(e,t){if(!t)return e;var n=Object(f.A)(t),i=e[n.name];if(i){if(i!==n)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(n.name,'".'));return e}e[n.name]=n;var o=e;if(Object(f.T)(n)&&(o=n.getTypes().reduce(v,o)),Object(f.N)(n)&&(o=n.getInterfaces().reduce(v,o)),Object(f.N)(n)||Object(f.H)(n))for(var s=0,a=Object(r.a)(n.getFields());s<a.length;s++){var c=a[s];o=v(o=c.args.map(function(e){return e.type}).reduce(v,o),c.type)}if(Object(f.F)(n))for(var l=0,u=Object(r.a)(n.getFields());l<u.length;l++){o=v(o,u[l].type)}return o}function y(e,t){return Object(d.g)(t)?t.args.reduce(function(e,t){return v(e,t.type)},e):e}Object(u.a)(m)},function(e,t,n){"use strict";var i=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})};t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"i",function(){return a}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"h",function(){return h}),n.d(t,"e",function(){return d});var i=n(1);function r(e){return o(e)||l(e)||h(e)}function o(e){return e.kind===i.a.OPERATION_DEFINITION||e.kind===i.a.FRAGMENT_DEFINITION}function s(e){return e.kind===i.a.FIELD||e.kind===i.a.FRAGMENT_SPREAD||e.kind===i.a.INLINE_FRAGMENT}function a(e){return e.kind===i.a.VARIABLE||e.kind===i.a.INT||e.kind===i.a.FLOAT||e.kind===i.a.STRING||e.kind===i.a.BOOLEAN||e.kind===i.a.NULL||e.kind===i.a.ENUM||e.kind===i.a.LIST||e.kind===i.a.OBJECT}function c(e){return e.kind===i.a.NAMED_TYPE||e.kind===i.a.LIST_TYPE||e.kind===i.a.NON_NULL_TYPE}function l(e){return e.kind===i.a.SCHEMA_DEFINITION||u(e)||e.kind===i.a.DIRECTIVE_DEFINITION}function u(e){return e.kind===i.a.SCALAR_TYPE_DEFINITION||e.kind===i.a.OBJECT_TYPE_DEFINITION||e.kind===i.a.INTERFACE_TYPE_DEFINITION||e.kind===i.a.UNION_TYPE_DEFINITION||e.kind===i.a.ENUM_TYPE_DEFINITION||e.kind===i.a.INPUT_OBJECT_TYPE_DEFINITION}function h(e){return e.kind===i.a.SCHEMA_EXTENSION||d(e)}function d(e){return e.kind===i.a.SCALAR_TYPE_EXTENSION||e.kind===i.a.OBJECT_TYPE_EXTENSION||e.kind===i.a.INTERFACE_TYPE_EXTENSION||e.kind===i.a.UNION_TYPE_EXTENSION||e.kind===i.a.ENUM_TYPE_EXTENSION||e.kind===i.a.INPUT_OBJECT_TYPE_EXTENSION}},function(e,t,n){"use strict";var i=Array.prototype.flatMap,r=i?function(e,t){return i.call(e,t)}:function(e,t){for(var n=[],i=0;i<e.length;i++){var r=t(e[i]);Array.isArray(r)?n=n.concat(r):n.push(r)}return n};t.a=r},function(e,t,n){"use strict";t.a=function(e,t){return e instanceof t}},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(52),o=n(178);t.MinimapUtils=o.MinimapUtils;var s=n(77);t.NodeUtils=s.NodeUtils;var a=function(){function e(){}return e.debounce=function(e,t){var n;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];clearTimeout(n);var o=this;n=window.setTimeout(function(){e.apply(o,i)},t)}},e.generateId=function(){return r.ConfigurationManager.instance.getOption("generateIdFn")()},e.getUniquePrefix=function(e){return void 0===e&&(e=""),""+e+Math.floor(9999999*Math.random())},e.between=function(e,t){return function(n){return n>=e&&n<=t}},e.clamp=function(e,t,n){return Math.max(Math.min(e,n),t)},e.dedupe=function(e){return e.filter(function(t,n){return e.indexOf(t)===n})},e.deepCopy=function(e){return JSON.parse(JSON.stringify(e))},e.snap=function(e,t){return i({},e,{x:Math.floor(e.x/t)*t,y:Math.floor(e.y/t)*t})},e.componentToHex=function(e){var t=e.toString(16);return 1==t.length?"0"+t:t},e.rgbToHex=function(t,n,i){return"#"+e.componentToHex(t)+e.componentToHex(n)+e.componentToHex(i)},e}();t.Utils=a},function(e,t,n){"use strict";function i(e){var t=e.split(/\r\n|[\n\r]/g),n=r(t);if(0!==n)for(var i=1;i<t.length;i++)t[i]=t[i].slice(n);for(;t.length>0&&s(t[0]);)t.shift();for(;t.length>0&&s(t[t.length-1]);)t.pop();return t.join("\n")}function r(e){for(var t=null,n=1;n<e.length;n++){var i=e[n],r=o(i);if(r!==i.length&&((null===t||r<t)&&0===(t=r)))break}return null===t?0:t}function o(e){for(var t=0;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function s(e){return o(e)===e.length}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),r=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],s=!i||o||n,a="";return!s||i&&r||(a+="\n"+t),a+=t?e.replace(/\n/g,"\n"+t):e,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return a})},function(e,t,n){"use strict";var i=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t(i))return i}};t.a=i},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(36);function r(e,t){for(var n=Object.create(null),r=0,o=Object(i.a)(e);r<o.length;r++){var s=o[r],a=s[0],c=s[1];n[a]=t(c,a)}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Boolean="Boolean",e.Float="Float",e.ID="ID",e.Int="Int",e.String="String"}(t.ScalarTypes||(t.ScalarTypes={})),function(e){e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(t.Directive||(t.Directive={})),function(e){e.Variable="Variable",e.IntValue="IntValue",e.FloatValue="FloatValue",e.StringValue="StringValue",e.BooleanValue="BooleanValue",e.NullValue="NullValue",e.EnumValue="EnumValue",e.ListValue="ListValue",e.ObjectValue="ObjectValue"}(t.Value||(t.Value={})),function(e){e.NamedType="NamedType",e.ListType="ListType",e.NonNullType="NonNullType"}(t.Type||(t.Type={})),function(e){e.SchemaDefinition="SchemaDefinition",e.TypeDefinition="TypeDefinition",e.DirectiveDefinition="DirectiveDefinition",e.FieldDefinition="FieldDefinition",e.UnionMemberDefinition="UnionMemberDefinition"}(t.TypeSystemDefinition||(t.TypeSystemDefinition={})),function(e){e.SchemaExtension="SchemaExtension",e.TypeExtension="TypeExtension"}(t.TypeSystemExtension||(t.TypeSystemExtension={})),function(e){e.ScalarTypeDefinition="ScalarTypeDefinition",e.ObjectTypeDefinition="ObjectTypeDefinition",e.InterfaceTypeDefinition="InterfaceTypeDefinition",e.UnionTypeDefinition="UnionTypeDefinition",e.EnumTypeDefinition="EnumTypeDefinition",e.InputObjectTypeDefinition="InputObjectTypeDefinition"}(t.TypeDefinition||(t.TypeDefinition={})),function(e){e.EnumValueDefinition="EnumValueDefinition",e.InputValueDefinition="InputValueDefinition"}(t.ValueDefinition||(t.ValueDefinition={})),function(e){e.TypeExtension="TypeExtension",e.ScalarTypeExtension="ScalarTypeExtension",e.ObjectTypeExtension="ObjectTypeExtension",e.InterfaceTypeExtension="InterfaceTypeExtension",e.UnionTypeExtension="UnionTypeExtension",e.EnumTypeExtension="EnumTypeExtension",e.InputObjectTypeExtension="InputObjectTypeExtension"}(t.TypeExtension||(t.TypeExtension={})),function(e){e.query="query",e.mutation="mutation",e.subscription="subscription"}(t.OperationType||(t.OperationType={})),function(e){e.Argument="Argument",e.Directive="Directive"}(t.Instances||(t.Instances={})),function(e){e.Directives="Directives",e.Implements="Implements"}(t.Helpers||(t.Helpers={}))},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return s});var i=n(0);function r(e,t){return e===t||(Object(i.L)(e)&&Object(i.L)(t)?r(e.ofType,t.ofType):!(!Object(i.J)(e)||!Object(i.J)(t))&&r(e.ofType,t.ofType))}function o(e,t,n){return t===n||(Object(i.L)(n)?!!Object(i.L)(t)&&o(e,t.ofType,n.ofType):Object(i.L)(t)?o(e,t.ofType,n):Object(i.J)(n)?!!Object(i.J)(t)&&o(e,t.ofType,n.ofType):!Object(i.J)(t)&&!!(Object(i.C)(n)&&Object(i.N)(t)&&e.isPossibleType(n,t)))}function s(e,t,n){return t===n||(Object(i.C)(t)?Object(i.C)(n)?e.getPossibleTypes(t).some(function(t){return e.isPossibleType(n,t)}):e.isPossibleType(t,n):!!Object(i.C)(n)&&e.isPossibleType(n,t))}},function(e,t,n){"use strict";function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"c",function(){return f}),n.d(t,"b",function(){return p});var i=n(3),r=n(6),o=n(31),s=n(34),a=n(1),c=n(61),l=n(66),u=n(7),h=n(5);function d(e,t){return new g(e,t).parseDocument()}function f(e,t){var n=new g(e,t);n.expectToken(h.a.SOF);var i=n.parseValueLiteral(!1);return n.expectToken(h.a.EOF),i}function p(e,t){var n=new g(e,t);n.expectToken(h.a.SOF);var i=n.parseTypeReference();return n.expectToken(h.a.EOF),i}var g=function(){function e(e,t){var n="string"===typeof e?new c.a(e):e;n instanceof c.a||Object(r.a)(0,"Must provide Source. Received: ".concat(Object(i.a)(n))),this._lexer=Object(l.a)(n),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(h.a.NAME);return{kind:a.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:a.a.DOCUMENT,definitions:this.many(h.a.SOF,this.parseDefinition,h.a.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(h.a.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(h.a.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(h.a.BRACE_L))return{kind:a.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(h.a.NAME)&&(t=this.parseName()),{kind:a.a.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(h.a.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(h.a.PAREN_L,this.parseVariableDefinition,h.a.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:a.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(h.a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(h.a.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(h.a.DOLLAR),{kind:a.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:a.a.SELECTION_SET,selections:this.many(h.a.BRACE_L,this.parseSelection,h.a.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(h.a.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(h.a.COLON)?(e=i,t=this.parseName()):t=i,{kind:a.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(h.a.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(h.a.PAREN_L,t,h.a.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(h.a.COLON),{kind:a.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:a.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(h.a.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(h.a.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(h.a.NAME)?{kind:a.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:a.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:a.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:a.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case h.a.BRACKET_L:return this.parseList(e);case h.a.BRACE_L:return this.parseObject(e);case h.a.INT:return this._lexer.advance(),{kind:a.a.INT,value:t.value,loc:this.loc(t)};case h.a.FLOAT:return this._lexer.advance(),{kind:a.a.FLOAT,value:t.value,loc:this.loc(t)};case h.a.STRING:case h.a.BLOCK_STRING:return this.parseStringLiteral();case h.a.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:a.a.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:a.a.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:a.a.ENUM,value:t.value,loc:this.loc(t)});case h.a.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:a.a.STRING,value:e.value,block:e.kind===h.a.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:a.a.LIST,values:this.any(h.a.BRACKET_L,function(){return t.parseValueLiteral(e)},h.a.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:a.a.OBJECT,fields:this.any(h.a.BRACE_L,function(){return t.parseObjectField(e)},h.a.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(h.a.COLON),{kind:a.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(h.a.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(h.a.AT),{kind:a.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(h.a.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(h.a.BRACKET_R),e={kind:a.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(h.a.BANG)?{kind:a.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:a.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===h.a.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(h.a.STRING)||this.peek(h.a.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.many(h.a.BRACE_L,this.parseOperationTypeDefinition,h.a.BRACE_R);return{kind:a.a.SCHEMA_DEFINITION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(h.a.COLON);var n=this.parseNamedType();return{kind:a.a.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:a.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:a.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(h.a.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(h.a.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(h.a.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(h.a.BRACE_L)&&this._lexer.lookahead().kind===h.a.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(h.a.BRACE_L,this.parseFieldDefinition,h.a.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(h.a.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:a.a.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(h.a.PAREN_L,this.parseInputValueDef,h.a.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(h.a.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(h.a.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:a.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();return{kind:a.a.INTERFACE_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:a.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(h.a.EQUALS)){this.expectOptionalToken(h.a.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(h.a.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:a.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(h.a.BRACE_L,this.parseEnumValueDefinition,h.a.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:a.a.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:a.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(h.a.BRACE_L,this.parseInputValueDef,h.a.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===h.a.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(h.a.BRACE_L,this.parseOperationTypeDefinition,h.a.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:a.a.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:a.a.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:a.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:a.a.INTERFACE_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:a.a.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:a.a.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:a.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(h.a.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:a.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(h.a.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(h.a.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==u.a[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new m(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw Object(s.a)(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(v(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==h.a.NAME||t.value!==e)throw Object(s.a)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(v(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===h.a.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return Object(s.a)(this._lexer.source,t.start,"Unexpected ".concat(v(t)))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i},e}();function m(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function v(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}Object(o.a)(m,function(){return{start:this.start,end:this.end}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(42),r=n(1),o=n(0),s=n(10),a=n(22),c=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=t||l,n&&(Object(o.G)(n)&&this._inputTypeStack.push(n),Object(o.D)(n)&&this._parentTypeStack.push(n),Object(o.O)(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case r.a.SELECTION_SET:var n=Object(o.A)(this.getType());this._parentTypeStack.push(Object(o.D)(n)?n:void 0);break;case r.a.FIELD:var s,c,l=this.getParentType();l&&(s=this._getFieldDef(t,l,e))&&(c=s.type),this._fieldDefStack.push(s),this._typeStack.push(Object(o.O)(c)?c:void 0);break;case r.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case r.a.OPERATION_DEFINITION:var u;"query"===e.operation?u=t.getQueryType():"mutation"===e.operation?u=t.getMutationType():"subscription"===e.operation&&(u=t.getSubscriptionType()),this._typeStack.push(Object(o.N)(u)?u:void 0);break;case r.a.INLINE_FRAGMENT:case r.a.FRAGMENT_DEFINITION:var h=e.typeCondition,d=h?Object(a.a)(t,h):Object(o.A)(this.getType());this._typeStack.push(Object(o.O)(d)?d:void 0);break;case r.a.VARIABLE_DEFINITION:var f=Object(a.a)(t,e.type);this._inputTypeStack.push(Object(o.G)(f)?f:void 0);break;case r.a.ARGUMENT:var p,g,m=this.getDirective()||this.getFieldDef();m&&(p=Object(i.a)(m.args,function(t){return t.name===e.name.value}))&&(g=p.type),this._argument=p,this._defaultValueStack.push(p?p.defaultValue:void 0),this._inputTypeStack.push(Object(o.G)(g)?g:void 0);break;case r.a.LIST:var v=Object(o.B)(this.getInputType()),y=Object(o.J)(v)?v.ofType:v;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Object(o.G)(y)?y:void 0);break;case r.a.OBJECT_FIELD:var b,E,w=Object(o.A)(this.getInputType());Object(o.F)(w)&&(E=w.getFields()[e.name.value])&&(b=E.type),this._defaultValueStack.push(E?E.defaultValue:void 0),this._inputTypeStack.push(Object(o.G)(b)?b:void 0);break;case r.a.ENUM:var A,C=Object(o.A)(this.getInputType());Object(o.E)(C)&&(A=C.getValue(e.value)),this._enumValue=A}},t.leave=function(e){switch(e.kind){case r.a.SELECTION_SET:this._parentTypeStack.pop();break;case r.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case r.a.DIRECTIVE:this._directive=null;break;case r.a.OPERATION_DEFINITION:case r.a.INLINE_FRAGMENT:case r.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case r.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case r.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.a.LIST:case r.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.a.ENUM:this._enumValue=null}},e}();function l(e,t,n){var i=n.name.value;return i===s.a.name&&e.getQueryType()===t?s.a:i===s.c.name&&e.getQueryType()===t?s.c:i===s.d.name&&Object(o.D)(t)?s.d:Object(o.N)(t)||Object(o.H)(t)?t.getFields()[i]:void 0}},function(e,t,n){"use strict";function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return(r="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)})(e)}function o(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(9),r=n(24),o=n(3),s=n(16),a=n(28),c=n(1),l=n(0);function u(e,t,n){if(e){if(Object(l.L)(t)){if(e.kind===c.a.NULL)return;return u(e,t.ofType,n)}if(e.kind===c.a.NULL)return null;if(e.kind===c.a.VARIABLE){var d=e.name.value;if(!n||Object(a.a)(n[d]))return;var f=n[d];if(null===f&&Object(l.L)(t))return;return f}if(Object(l.J)(t)){var p=t.ofType;if(e.kind===c.a.LIST){for(var g=[],m=0,v=e.values;m<v.length;m++){var y=v[m];if(h(y,n)){if(Object(l.L)(p))return;g.push(null)}else{var b=u(y,p,n);if(Object(a.a)(b))return;g.push(b)}}return g}var E=u(e,p,n);if(Object(a.a)(E))return;return[E]}if(Object(l.F)(t)){if(e.kind!==c.a.OBJECT)return;for(var w=Object.create(null),A=Object(r.a)(e.fields,function(e){return e.name.value}),C=0,F=Object(i.a)(t.getFields());C<F.length;C++){var T=F[C],S=A[T.name];if(S&&!h(S.value,n)){var O=u(S.value,T.type,n);if(Object(a.a)(O))return;w[T.name]=O}else if(void 0!==T.defaultValue)w[T.name]=T.defaultValue;else if(Object(l.L)(T.type))return}return w}if(Object(l.E)(t)){if(e.kind!==c.a.ENUM)return;var x=t.getValue(e.value);if(!x)return;return x.value}if(Object(l.R)(t)){var k;try{k=t.parseLiteral(e,n)}catch(_){return}if(Object(a.a)(k))return;return k}Object(s.a)(!1,"Unexpected input type: "+Object(o.a)(t))}}function h(e,t){return e.kind===c.a.VARIABLE&&(!t||Object(a.a)(t[e.name.value]))}},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(174),s=n(68),a={autosizeWatcher:!0,autosizeInterval:1e3,autosizeOnWindowResize:!0,disableLinkOperations:!1,connectionFunction:function(e,t){return!0},generateIdFn:o.v4,height:void 0,theme:s.DefaultDiagramTheme,width:void 0,autoPanSmoothing:4,drawingDistance:{nodeTitle:0,nodeOptions:0,nodeType:0,nodeArrows:0,detailedLinks:.7,simplifiedLinks:0}},c=function(){function e(e){this.options=a,r=this,e.width&&e.height&&(this.options.autosizeWatcher=!1,this.options.autosizeOnWindowResize=!1),this.options=i({},this.options,e,{drawingDistance:i({},this.options.drawingDistance,e.drawingDistance)})}return Object.defineProperty(e,"instance",{get:function(){return r},enumerable:!0,configurable:!0}),e.prototype.getOption=function(e){return this.options[e]},e.prototype.getDistance=function(e){return this.options.drawingDistance[e]?this.options.drawingDistance[e]:0},e}();t.ConfigurationManager=c},function(e,t,n){e.exports=n(130)},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n(29),r=n(9),o=n(3),s=n(16),a=n(70),c=n(28),l=n(18),u=n(1),h=n(11),d=n(0);function f(e,t){if(Object(d.L)(t)){var n=f(e,t.ofType);return n&&n.kind===u.a.NULL?null:n}if(null===e)return{kind:u.a.NULL};if(Object(c.a)(e))return null;if(Object(d.J)(t)){var g=t.ofType;if(Object(i.e)(e)){var m=[];return Object(i.b)(e,function(e){var t=f(e,g);t&&m.push(t)}),{kind:u.a.LIST,values:m}}return f(e,g)}if(Object(d.F)(t)){if(!Object(l.a)(e))return null;for(var v=[],y=0,b=Object(r.a)(t.getFields());y<b.length;y++){var E=b[y],w=f(e[E.name],E.type);w&&v.push({kind:u.a.OBJECT_FIELD,name:{kind:u.a.NAME,value:E.name},value:w})}return{kind:u.a.OBJECT,fields:v}}if(Object(d.I)(t)){var A=t.serialize(e);if(Object(a.a)(A))return null;if("boolean"===typeof A)return{kind:u.a.BOOLEAN,value:A};if("number"===typeof A){var C=String(A);return p.test(C)?{kind:u.a.INT,value:C}:{kind:u.a.FLOAT,value:C}}if("string"===typeof A)return Object(d.E)(t)?{kind:u.a.ENUM,value:A}:t===h.c&&p.test(A)?{kind:u.a.INT,value:A}:{kind:u.a.STRING,value:A};throw new TypeError("Cannot convert value to AST: ".concat(Object(o.a)(A)))}Object(s.a)(!1,"Unexpected input type: "+Object(o.a)(t))}var p=/^-?(?:0|[1-9][0-9]*)$/},function(e,t,n){"use strict";n.d(t,"c",function(){return p}),n.d(t,"a",function(){return g}),n.d(t,"b",function(){return m});var i=n(42),r=n(24),o=n(3),s=n(60),a=n(4),c=n(1),l=n(15),u=n(0),h=n(22),d=n(51),f=n(72);function p(e,t,n,i){var r=i&&i.maxErrors,c=[];try{var p=function(e,t,n,i){for(var r={},c=function(c){var p=t[c],g=p.variable.name.value,m=Object(h.a)(e,p.type);if(!Object(u.G)(m)){var y=Object(l.a)(p.type);return i(new a.a('Variable "$'.concat(g,'" expected value of type "').concat(y,'" which cannot be used as an input type.'),p.type)),"continue"}if(!v(n,g)){if(p.defaultValue&&(r[g]=Object(d.a)(p.defaultValue,m)),Object(u.L)(m)){var b=Object(o.a)(m);i(new a.a('Variable "$'.concat(g,'" of required type "').concat(b,'" was not provided.'),p))}return"continue"}var E=n[g];if(null===E&&Object(u.L)(m)){var w=Object(o.a)(m);return i(new a.a('Variable "$'.concat(g,'" of non-null type "').concat(w,'" must not be null.'),p)),"continue"}r[g]=Object(f.a)(E,m,function(e,t,n){var r='Variable "$'.concat(g,'" got invalid value ')+Object(o.a)(t);e.length>0&&(r+=' at "'.concat(g).concat(Object(s.a)(e),'"')),i(new a.a(r+"; "+n.message,p,void 0,void 0,void 0,n.originalError))})},p=0;p<t.length;p++)c(p);return r}(e,t,n,function(e){if(null!=r&&c.length>=r)throw new a.a("Too many errors processing variables, error limit reached. Execution aborted.");c.push(e)});if(0===c.length)return{coerced:p}}catch(g){c.push(g)}return{errors:c}}function g(e,t,n){for(var i={},s=Object(r.a)(t.arguments||[],function(e){return e.name.value}),h=0,f=e.args;h<f.length;h++){var p=f[h],g=p.name,m=p.type,y=s[g];if(y){var b=y.value,E=b.kind===c.a.NULL;if(b.kind===c.a.VARIABLE){var w=b.name.value;if(null==n||!v(n,w)){if(void 0!==p.defaultValue)i[g]=p.defaultValue;else if(Object(u.L)(m))throw new a.a('Argument "'.concat(g,'" of required type "').concat(Object(o.a)(m),'" ')+'was provided the variable "$'.concat(w,'" which was not provided a runtime value.'),b);continue}E=null==n[w]}if(E&&Object(u.L)(m))throw new a.a('Argument "'.concat(g,'" of non-null type "').concat(Object(o.a)(m),'" ')+"must not be null.",b);var A=Object(d.a)(b,m,n);if(void 0===A)throw new a.a('Argument "'.concat(g,'" has invalid value ').concat(Object(l.a)(b),"."),b);i[g]=A}else if(void 0!==p.defaultValue)i[g]=p.defaultValue;else if(Object(u.L)(m))throw new a.a('Argument "'.concat(g,'" of required type "').concat(Object(o.a)(m),'" ')+"was not provided.",t)}return i}function m(e,t,n){var r=t.directives&&Object(i.a)(t.directives,function(t){return t.name.value===e.name});if(r)return g(e,r,n)}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(143)),i(n(144)),i(n(44)),i(n(145))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(52);var r=function(){function e(){var e=this;this.classes=[],this.addClass=function(t,n,r){void 0===r&&(r=""),e.classes.push(function(e,t,n){var r;r="function"===typeof e?e(i.ConfigurationManager.instance.getOption("theme")):e;var o=new Option;return Object.keys(r).forEach(function(e){o.style[e]=r[e]}),n?"."+t+n+"{\ncontent:'';"+o.getAttribute("style")+"\n}":"."+t+n+"{\n"+o.getAttribute("style")+"\n}"}(t,n,r))},this.compile=function(){var t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");t.appendChild(n),n.type="text/css",n.appendChild(document.createTextNode(e.classes.join("\n")))}}return Object.defineProperty(e,"instance",{get:function(){return o},enumerable:!0,configurable:!0}),e}();t.CSSMiniEngine=r;var o=new r},function(e,t,n){"use strict";n.d(t,"b",function(){return g}),n.d(t,"a",function(){return m});var i=n(42),r=n(38),o=n(9),s=n(36),a=n(3),c=n(4),l=n(108),u=n(45),h=n(14),d=n(10),f=n(35),p=n(0);function g(e){if(Object(f.b)(e),e.__validationErrors)return e.__validationErrors;var t=new v(e);!function(e){var t=e.schema,n=t.getQueryType();n?Object(p.N)(n)||e.reportError("Query root type must be Object type, it cannot be ".concat(Object(a.a)(n),"."),y(t,n,"query")):e.reportError("Query root type must be provided.",t.astNode);var i=t.getMutationType();i&&!Object(p.N)(i)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(Object(a.a)(i),"."),y(t,i,"mutation"));var r=t.getSubscriptionType();r&&!Object(p.N)(r)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(Object(a.a)(r),"."),y(t,r,"subscription"))}(t),function(e){for(var t=0,n=e.schema.getDirectives();t<n.length;t++){var i=n[t];if(Object(h.g)(i)){b(e,i);for(var r=Object.create(null),o=function(t,n){var o=n[t],s=o.name;if(b(e,o),r[s])return e.reportError("Argument @".concat(i.name,"(").concat(s,":) can only be defined once."),i.astNode&&i.args.filter(function(e){return e.name===s}).map(function(e){return e.astNode})),"continue";r[s]=!0,Object(p.G)(o.type)||e.reportError("The type of @".concat(i.name,"(").concat(s,":) must be Input Type ")+"but got: ".concat(Object(a.a)(o.type),"."),o.astNode)},s=0,c=i.args;s<c.length;s++)o(s,c)}else e.reportError("Expected directive but got: ".concat(Object(a.a)(i),"."),i&&i.astNode)}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],i=Object.create(null);return function r(s){if(t[s.name])return;t[s.name]=!0;i[s.name]=n.length;var a=Object(o.a)(s.getFields());for(var c=0;c<a.length;c++){var l=a[c];if(Object(p.L)(l.type)&&Object(p.F)(l.type.ofType)){var u=l.type.ofType,h=i[u.name];if(n.push(l),void 0===h)r(u);else{var d=n.slice(h),f=d.map(function(e){return e.name}).join(".");e.reportError('Cannot reference Input Object "'.concat(u.name,'" within itself through a series of non-null fields: "').concat(f,'".'),d.map(function(e){return e.astNode}))}n.pop()}}i[s.name]=void 0}}(e),n=e.schema.getTypeMap(),i=0,r=Object(o.a)(n);i<r.length;i++){var s=r[i];Object(p.K)(s)?(Object(d.n)(s)||b(e,s),Object(p.N)(s)?(E(e,s),w(e,s)):Object(p.H)(s)?E(e,s):Object(p.T)(s)?C(e,s):Object(p.E)(s)?F(e,s):Object(p.F)(s)&&(T(e,s),t(s))):e.reportError("Expected GraphQL named type but got: ".concat(Object(a.a)(s),"."),s&&s.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function m(e){var t=g(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))}var v=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this.addError(new c.a(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function y(e,t,n){for(var i=O(e,function(e){return e.operationTypes}),r=0;r<i.length;r++){var o=i[r];if(o.operation===n)return o.type}return t.astNode}function b(e,t){if(-1===e.schema.__allowedLegacyNames.indexOf(t.name)){var n=Object(l.b)(t.name,t.astNode||void 0);n&&e.addError(n)}}function E(e,t){var n=Object(o.a)(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),S(t));for(var i=0;i<n.length;i++){var r=n[i];b(e,r),Object(p.O)(r.type)||e.reportError("The type of ".concat(t.name,".").concat(r.name," must be Output Type ")+"but got: ".concat(Object(a.a)(r.type),"."),r.astNode&&r.astNode.type);for(var s=Object.create(null),c=function(n,i){var o=i[n],c=o.name;b(e,o),s[c]&&e.reportError("Field argument ".concat(t.name,".").concat(r.name,"(").concat(c,":) can only be defined once."),r.args.filter(function(e){return e.name===c}).map(function(e){return e.astNode})),s[c]=!0,Object(p.G)(o.type)||e.reportError("The type of ".concat(t.name,".").concat(r.name,"(").concat(c,":) must be Input ")+"Type but got: ".concat(Object(a.a)(o.type),"."),o.astNode&&o.astNode.type)},l=0,u=r.args;l<u.length;l++)c(l,u)}}function w(e,t){for(var n=Object.create(null),i=0,r=t.getInterfaces();i<r.length;i++){var o=r[i];Object(p.H)(o)?n[o.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),x(t,o)):(n[o.name]=!0,A(e,t,o)):e.reportError("Type ".concat(Object(a.a)(t)," must only implement Interface types, ")+"it cannot implement ".concat(Object(a.a)(o),"."),x(t,o))}}function A(e,t,n){for(var r=t.getFields(),o=n.getFields(),c=0,l=Object(s.a)(o);c<l.length;c++){var h=l[c],d=h[0],f=h[1],g=r[d];if(g){Object(u.c)(e.schema,g.type,f.type)||e.reportError("Interface field ".concat(n.name,".").concat(d," expects type ")+"".concat(Object(a.a)(f.type)," but ").concat(t.name,".").concat(d," ")+"is type ".concat(Object(a.a)(g.type),"."),[f.astNode&&f.astNode.type,g.astNode&&g.astNode.type]);for(var m=function(r,o){var s=o[r],c=s.name,l=Object(i.a)(g.args,function(e){return e.name===c});if(!l)return e.reportError("Interface field argument ".concat(n.name,".").concat(d,"(").concat(c,":) expected but ").concat(t.name,".").concat(d," does not provide it."),[s.astNode,g.astNode]),"continue";Object(u.b)(s.type,l.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(d,"(").concat(c,":) ")+"expects type ".concat(Object(a.a)(s.type)," but ")+"".concat(t.name,".").concat(d,"(").concat(c,":) is type ")+"".concat(Object(a.a)(l.type),"."),[s.astNode&&s.astNode.type,l.astNode&&l.astNode.type])},v=0,y=f.args;v<y.length;v++)m(v,y);for(var b=function(r,o){var s=o[r],a=s.name;!Object(i.a)(f.args,function(e){return e.name===a})&&Object(p.P)(s)&&e.reportError("Object field ".concat(t.name,".").concat(d," includes required argument ").concat(a," that is missing from the Interface field ").concat(n.name,".").concat(d,"."),[s.astNode,f.astNode])},E=0,w=g.args;E<w.length;E++)b(E,w)}else e.reportError("Interface field ".concat(n.name,".").concat(d," expected but ").concat(t.name," does not provide it."),[f.astNode].concat(S(t)))}}function C(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),S(t));for(var i=Object.create(null),r=0;r<n.length;r++){var o=n[r];i[o.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(o.name," once."),k(t,o.name)):(i[o.name]=!0,Object(p.N)(o)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat(Object(a.a)(o),"."),k(t,String(o))))}}function F(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),S(t));for(var i=0;i<n.length;i++){var r=n[i],o=r.name;b(e,r),"true"!==o&&"false"!==o&&"null"!==o||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),r.astNode)}}function T(e,t){var n=Object(o.a)(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),S(t));for(var i=0;i<n.length;i++){var r=n[i];b(e,r),Object(p.G)(r.type)||e.reportError("The type of ".concat(t.name,".").concat(r.name," must be Input Type ")+"but got: ".concat(Object(a.a)(r.type),"."),r.astNode&&r.astNode.type)}}function S(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:n||[]}function O(e,t){return Object(r.a)(S(e),function(e){return t(e)||[]})}function x(e,t){return O(e,function(e){return e.interfaces}).filter(function(e){return e.name.value===t.name})}function k(e,t){return O(e,function(e){return e.types}).filter(function(e){return e.name.value===t})}},function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return f});var i=n(6),r=n(4),o=n(23),s=n(58),a=n(48),c=n(89),l=n(67);Object.freeze({});function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new a.a(e),h=arguments.length>4?arguments[4]:void 0;t||Object(i.a)(0,"Must provide document"),Object(s.a)(e);var d=Object.freeze({}),f=[],p=h&&h.maxErrors,g=new l.b(e,t,u,function(e){if(null!=p&&f.length>=p)throw f.push(new r.a("Too many validation errors, error limit reached. Validation aborted.")),d;f.push(e)}),m=Object(o.d)(n.map(function(e){return e(g)}));try{Object(o.c)(t,Object(o.e)(u,m))}catch(v){if(v!==d)throw v}return f}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.b,i=[],r=new l.a(e,t,function(e){i.push(e)}),s=n.map(function(e){return e(r)});return Object(o.c)(e,Object(o.d)(s)),i}function d(e){var t=h(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))}function f(e,t){var n=h(e,t);if(0!==n.length)throw new Error(n.map(function(e){return e.message}).join("\n\n"))}},function(e,t,n){"use strict";function i(e){return e.map(function(e){return"number"===typeof e?"["+e.toString()+"]":"."+e}).join("")}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(6),r=n(30),o=function(e,t,n){this.body=e,this.name=t||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||Object(i.a)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||Object(i.a)(0,"column in locationOffset is 1-indexed and must be positive")};Object(r.a)(o)},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return i})},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";var i="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=i},function(e,t,n){"use strict";function i(e,t){for(var n,i=/\r\n|[\n\r]/g,r=1,o=t+1;(n=i.exec(e.body))&&n.index<t;)r+=1,o=t+1-(n.index+n[0].length);return{line:r,column:o}}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u});var i=n(31),r=n(34),o=n(41),s=n(5);function a(e,t){var n=new h(s.a.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:c,lookahead:l}}function c(){return this.lastToken=this.token,this.token=this.lookahead()}function l(){var e=this.token;if(e.kind!==s.a.EOF)do{e=e.next||(e.next=f(this,e))}while(e.kind===s.a.COMMENT);return e}function u(e){var t=e.kind;return t===s.a.BANG||t===s.a.DOLLAR||t===s.a.AMP||t===s.a.PAREN_L||t===s.a.PAREN_R||t===s.a.SPREAD||t===s.a.COLON||t===s.a.EQUALS||t===s.a.AT||t===s.a.BRACKET_L||t===s.a.BRACKET_R||t===s.a.BRACE_L||t===s.a.PIPE||t===s.a.BRACE_R}function h(e,t,n,i,r,o,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,this.prev=o,this.next=null}function d(e){return isNaN(e)?s.a.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function f(e,t){var n=e.source,i=n.body,a=i.length,c=function(e,t,n){var i=e.length,r=t;for(;r<i;){var o=e.charCodeAt(r);if(9===o||32===o||44===o||65279===o)++r;else if(10===o)++r,++n.line,n.lineStart=r;else{if(13!==o)break;10===e.charCodeAt(r+1)?r+=2:++r,++n.line,n.lineStart=r}}return r}(i,t.end,e),l=e.line,u=1+c-e.lineStart;if(c>=a)return new h(s.a.EOF,a,a,l,u,t);var f=i.charCodeAt(c);switch(f){case 33:return new h(s.a.BANG,c,c+1,l,u,t);case 35:return function(e,t,n,i,r){var o,a=e.body,c=t;do{o=a.charCodeAt(++c)}while(!isNaN(o)&&(o>31||9===o));return new h(s.a.COMMENT,t,c,n,i,r,a.slice(t+1,c))}(n,c,l,u,t);case 36:return new h(s.a.DOLLAR,c,c+1,l,u,t);case 38:return new h(s.a.AMP,c,c+1,l,u,t);case 40:return new h(s.a.PAREN_L,c,c+1,l,u,t);case 41:return new h(s.a.PAREN_R,c,c+1,l,u,t);case 46:if(46===i.charCodeAt(c+1)&&46===i.charCodeAt(c+2))return new h(s.a.SPREAD,c,c+3,l,u,t);break;case 58:return new h(s.a.COLON,c,c+1,l,u,t);case 61:return new h(s.a.EQUALS,c,c+1,l,u,t);case 64:return new h(s.a.AT,c,c+1,l,u,t);case 91:return new h(s.a.BRACKET_L,c,c+1,l,u,t);case 93:return new h(s.a.BRACKET_R,c,c+1,l,u,t);case 123:return new h(s.a.BRACE_L,c,c+1,l,u,t);case 124:return new h(s.a.PIPE,c,c+1,l,u,t);case 125:return new h(s.a.BRACE_R,c,c+1,l,u,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,i,r){var o=e.body,a=o.length,c=t+1,l=0;for(;c!==a&&!isNaN(l=o.charCodeAt(c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new h(s.a.NAME,t,c,n,i,r,o.slice(t,c))}(n,c,l,u,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 c=e.body,l=n,u=t,f=!1;45===l&&(l=c.charCodeAt(++u));if(48===l){if((l=c.charCodeAt(++u))>=48&&l<=57)throw Object(r.a)(e,u,"Invalid number, unexpected digit after 0: ".concat(d(l),"."))}else u=p(e,u,l),l=c.charCodeAt(u);46===l&&(f=!0,l=c.charCodeAt(++u),u=p(e,u,l),l=c.charCodeAt(u));69!==l&&101!==l||(f=!0,43!==(l=c.charCodeAt(++u))&&45!==l||(l=c.charCodeAt(++u)),u=p(e,u,l));return new h(f?s.a.FLOAT:s.a.INT,t,u,i,o,a,c.slice(t,u))}(n,c,f,l,u,t);case 34:return 34===i.charCodeAt(c+1)&&34===i.charCodeAt(c+2)?function(e,t,n,i,a,c){var l=e.body,u=t+3,f=u,p=0,g="";for(;u<l.length&&!isNaN(p=l.charCodeAt(u));){if(34===p&&34===l.charCodeAt(u+1)&&34===l.charCodeAt(u+2))return g+=l.slice(f,u),new h(s.a.BLOCK_STRING,t,u+3,n,i,a,Object(o.a)(g));if(p<32&&9!==p&&10!==p&&13!==p)throw Object(r.a)(e,u,"Invalid character within String: ".concat(d(p),"."));10===p?(++u,++c.line,c.lineStart=u):13===p?(10===l.charCodeAt(u+1)?u+=2:++u,++c.line,c.lineStart=u):92===p&&34===l.charCodeAt(u+1)&&34===l.charCodeAt(u+2)&&34===l.charCodeAt(u+3)?(g+=l.slice(f,u)+'"""',f=u+=4):++u}throw Object(r.a)(e,u,"Unterminated string.")}(n,c,l,u,t,e):function(e,t,n,i,o){var a=e.body,c=t+1,l=c,u=0,f="";for(;c<a.length&&!isNaN(u=a.charCodeAt(c))&&10!==u&&13!==u;){if(34===u)return f+=a.slice(l,c),new h(s.a.STRING,t,c+1,n,i,o,f);if(u<32&&9!==u)throw Object(r.a)(e,c,"Invalid character within String: ".concat(d(u),"."));if(++c,92===u){switch(f+=a.slice(l,c-1),u=a.charCodeAt(c)){case 34:f+='"';break;case 47:f+="/";break;case 92:f+="\\";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+="\n";break;case 114:f+="\r";break;case 116:f+="\t";break;case 117:var p=(v=a.charCodeAt(c+1),y=a.charCodeAt(c+2),b=a.charCodeAt(c+3),E=a.charCodeAt(c+4),g(v)<<12|g(y)<<8|g(b)<<4|g(E));if(p<0){var m=a.slice(c+1,c+5);throw Object(r.a)(e,c,"Invalid character escape sequence: \\u".concat(m,"."))}f+=String.fromCharCode(p),c+=4;break;default:throw Object(r.a)(e,c,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}l=++c}}var v,y,b,E;throw Object(r.a)(e,c,"Unterminated string.")}(n,c,l,u,t)}throw Object(r.a)(n,c,function(e){if(e<32&&9!==e&&10!==e&&13!==e)return"Cannot contain the invalid character ".concat(d(e),".");if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character ".concat(d(e),".")}(f))}function p(e,t,n){var i=e.body,o=t,s=n;if(s>=48&&s<=57){do{s=i.charCodeAt(++o)}while(s>=48&&s<=57);return o}throw Object(r.a)(e,o,"Invalid number, expected digit but got: ".concat(d(s),"."))}function g(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Object(i.a)(h,function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var i=n(1),r=n(23),o=n(48);function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=function(){function e(e,t){this._ast=e,this._errors=[],this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._errors.push(e),this._onError&&this._onError(e)},t.getErrors=function(){return this._errors},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce(function(e,t){return t.kind===i.a.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e},Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=0,o=n.pop().selections;r<o.length;r++){var s=o[r];s.kind===i.a.FRAGMENT_SPREAD?t.push(s):s.selectionSet&&n.push(s.selectionSet)}this._fragmentSpreads.set(e,t)}return t},t.getRecursivelyReferencedFragments=function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n=Object.create(null),i=[e.selectionSet];0!==i.length;)for(var r=i.pop(),o=0,s=this.getFragmentSpreads(r);o<s.length;o++){var a=s[o].name.value;if(!0!==n[a]){n[a]=!0;var c=this.getFragment(a);c&&(t.push(c),i.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e}(),c=function(e){function t(t,n,i){var r;return(r=e.call(this,t,i)||this)._schema=n,r}return s(t,e),t.prototype.getSchema=function(){return this._schema},t}(a),l=function(e){function t(t,n,i,r){var o;return(o=e.call(this,n,r)||this)._schema=t,o._typeInfo=i,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}s(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],i=new o.a(this._schema);Object(r.c)(e,Object(r.e)(i,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t},n.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=0,i=this.getRecursivelyReferencedFragments(e);n<i.length;n++){var r=i[n];t=t.concat(this.getVariableUsages(r))}this._recursiveVariableUsages.set(e,t)}return t},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},t}(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(177);t.DefaultDiagramTheme={snappingGridSize:20,autoBeuatify:!0,node:{width:200,height:110,nameSize:24,typeSize:20,maxCharacters:12,spacing:{x:100,y:100},options:{fontSize:18}},graph:{spacing:{x:300,y:350}},minimap:{alpha:.8,hoverAlpha:.9,size:500,margin:20},description:{width:200,paddingHorizontal:20,paddingVertical:20,fontSize:12,triangleHeight:10,triangleWidth:10,triangleDistance:20,lineHeight:18,placeholder:"Put your description here"},port:{width:40,gap:2},link:{cornerRadius:5,defaultCenterPoint:.5,strokeWidth:3},help:{lineHeight:21,text:14,padding:20,title:{text:14}},menu:{maxWidth:300,maxHeight:300,padding:"15px",borderRadius:"5px",category:{padding:"5px",fontSize:"11px",fontWeight:"bold"},spacing:{x:20,y:10}},colors:{background:i.Colors.grey[8],node:{background:i.Colors.grey[6],selected:i.Colors.green[0],name:i.Colors.grey[0],type:i.Colors.grey[0],types:{string:i.Colors.green[0],type:i.Colors.main[0]},options:{required:i.Colors.red[0],array:i.Colors.yellow[0]},hover:{type:i.Colors.yellow[0]}},minimap:{background:i.Colors.grey[7],visibleArea:i.Colors.grey[5],node:i.Colors.grey[0],borders:i.Colors.grey[4]},description:{background:i.Colors.grey[8],text:i.Colors.grey[1]},port:{background:i.Colors.grey[5],backgroundActive:i.Colors.grey[4],button:i.Colors.grey[0]},link:{main:i.Colors.grey[3],hover:i.Colors.yellow[0],active:i.Colors.green[0]},menu:{background:i.Colors.grey[7],text:i.Colors.grey[3],hover:i.Colors.grey[1]},help:{background:i.Colors.grey[7],text:i.Colors.grey[2],title:i.Colors.main[0]}}}},function(e,t,n){"use strict";n.r(t);var i=Object.freeze({major:14,minor:5,patch:4,preReleaseTag:null});function r(e){return Boolean(e&&"function"===typeof e.then)}var o=n(47),s=n(59),a=n(58),c=n(29),l=n(3);var u=n(16),h=n(6),d=n(28),f=n(70),p=n(18);var g=n(21),m=n(4);function v(e,t,n){return e&&Array.isArray(e.path)?e:new m.a(e&&e.message,e&&e.nodes||t,e&&e.source,e&&e.positions,n,e)}var y=n(1),b=n(10),E=n(14),w=n(0),A=n(22);function C(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new m.a("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){var i=e.getMutationType();if(!i)throw new m.a("Schema is not configured for mutations.",t);return i}if("subscription"===t.operation){var r=e.getSubscriptionType();if(!r)throw new m.a("Schema is not configured for subscriptions.",t);return r}throw new m.a("Can only have query, mutation and subscription operations.",t)}var F=n(55);function T(e,t,n,i,r,o,s,a){return 1===arguments.length?S(e):S({schema:e,document:t,rootValue:n,contextValue:i,variableValues:r,operationName:o,fieldResolver:s,typeResolver:a})}function S(e){var t=e.schema,n=e.document,i=e.rootValue,o=e.contextValue,s=e.variableValues,a=e.operationName,c=e.fieldResolver,l=e.typeResolver;O(t,n,s);var u=x(t,n,i,o,s,a,c,l);if(Array.isArray(u))return{errors:u};var h=function(e,t,n){var i=C(e.schema,t),o=_(e,i,t.selectionSet,Object.create(null),Object.create(null));try{var s="mutation"===t.operation?function(e,t,n,i,o){return s=Object.keys(o),a=function(s,a){var c=o[a],l=Object(g.a)(i,a),u=B(e,t,n,c,l);return void 0===u?s:r(u)?u.then(function(e){return s[a]=e,s}):(s[a]=u,s)},c=Object.create(null),s.reduce(function(e,t){return r(e)?e.then(function(e){return a(e,t)}):a(e,t)},c);var s,a,c}(e,i,n,void 0,o):k(e,i,n,void 0,o);return r(s)?s.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):s}catch(a){return e.errors.push(a),null}}(u,u.operation,i);return function e(t,n){if(r(n))return n.then(function(n){return e(t,n)});return 0===t.errors.length?{data:n}:{errors:t.errors,data:n}}(u,h)}function O(e,t,n){t||Object(h.a)(0,"Must provide document"),Object(a.a)(e),null==n||Object(p.a)(n)||Object(h.a)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function x(e,t,n,i,r,o,s,a){for(var c,l=!1,u=Object.create(null),h=0,d=t.definitions;h<d.length;h++){var f=d[h];switch(f.kind){case y.a.OPERATION_DEFINITION:!o&&c?l=!0:(!o||f.name&&f.name.value===o)&&(c=f);break;case y.a.FRAGMENT_DEFINITION:u[f.name.value]=f}}if(!c)return o?[new m.a('Unknown operation named "'.concat(o,'".'))]:[new m.a("Must provide an operation.")];if(l)return[new m.a("Must provide operation name if query contains multiple operations.")];var p=Object(F.c)(e,c.variableDefinitions||[],r||{},{maxErrors:50});return p.errors?p.errors:{schema:e,fragments:u,rootValue:n,contextValue:i,operation:c,variableValues:p.coerced,fieldResolver:s||G,typeResolver:a||H,errors:[]}}function k(e,t,n,i,o){for(var s=Object.create(null),a=!1,c=0,l=Object.keys(o);c<l.length;c++){var u=l[c],h=B(e,t,n,o[u],Object(g.a)(i,u));void 0!==h&&(s[u]=h,!a&&r(h)&&(a=!0))}return a?function(e){var t=Object.keys(e),n=t.map(function(t){return e[t]});return Promise.all(n).then(function(e){return e.reduce(function(e,n,i){return e[t[i]]=n,e},Object.create(null))})}(s):s}function _(e,t,n,i,r){for(var o=0,s=n.selections;o<s.length;o++){var a=s[o];switch(a.kind){case y.a.FIELD:if(!D(e,a))continue;var c=(h=a).alias?h.alias.value:h.name.value;i[c]||(i[c]=[]),i[c].push(a);break;case y.a.INLINE_FRAGMENT:if(!D(e,a)||!R(e,a,t))continue;_(e,t,a.selectionSet,i,r);break;case y.a.FRAGMENT_SPREAD:var l=a.name.value;if(r[l]||!D(e,a))continue;r[l]=!0;var u=e.fragments[l];if(!u||!R(e,u,t))continue;_(e,t,u.selectionSet,i,r)}}var h;return i}function D(e,t){var n=Object(F.b)(E.e,t,e.variableValues);if(n&&!0===n.if)return!1;var i=Object(F.b)(E.d,t,e.variableValues);return!i||!1!==i.if}function R(e,t,n){var i=t.typeCondition;if(!i)return!0;var r=Object(A.a)(e.schema,i);return r===n||!!Object(w.C)(r)&&e.schema.isPossibleType(r,n)}function B(e,t,n,i,r){var o=i[0].name.value,s=K(e.schema,t,o);if(s){var a=s.resolve||e.fieldResolver,c=L(e,s,i,t,r),l=M(e,s,i,a,n,c);return $(e,s.type,i,c,r,l)}}function L(e,t,n,i,r){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:i,path:r,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function M(e,t,n,i,o,s){try{var a=i(o,Object(F.a)(t,n[0],e.variableValues),e.contextValue,s);return r(a)?a.then(void 0,N):a}catch(c){return N(c)}}function N(e){return e instanceof Error?e:new Error("Unexpected error value: "+Object(l.a)(e))}function $(e,t,n,i,o,s){try{var a;return a=r(s)?s.then(function(r){return j(e,t,n,i,o,r)}):j(e,t,n,i,o,s),r(a)?a.then(void 0,function(i){return I(i,n,o,t,e)}):a}catch(c){return I(c,n,o,t,e)}}function I(e,t,n,i,r){var o=v(N(e),t,Object(g.b)(n));if(Object(w.L)(i))throw o;return r.errors.push(o),null}function j(e,t,n,i,o,s){if(s instanceof Error)throw s;if(Object(w.L)(t)){var a=j(e,t.ofType,n,i,o,s);if(null===a)throw new Error("Cannot return null for non-nullable field ".concat(i.parentType.name,".").concat(i.fieldName,"."));return a}return Object(f.a)(s)?null:Object(w.J)(t)?function(e,t,n,i,o,s){if(!Object(c.e)(s))throw new m.a("Expected Iterable, but did not find one for field ".concat(i.parentType.name,".").concat(i.fieldName,"."));var a=t.ofType,l=!1,u=[];return Object(c.b)(s,function(t,s){var c=Object(g.a)(o,s),h=$(e,a,n,i,c,t);!l&&r(h)&&(l=!0),u.push(h)}),l?Promise.all(u):u}(e,t,n,i,o,s):Object(w.I)(t)?function(e,t){var n=e.serialize(t);if(Object(d.a)(n))throw new Error('Expected a value of type "'.concat(Object(l.a)(e),'" but ')+"received: ".concat(Object(l.a)(t)));return n}(t,s):Object(w.C)(t)?function(e,t,n,i,o,s){var a=t.resolveType||e.typeResolver,c=e.contextValue,l=a(s,c,i,t);if(r(l))return l.then(function(r){return V(e,P(r,e,t,n,i,s),n,i,o,s)});return V(e,P(l,e,t,n,i,s),n,i,o,s)}(e,t,n,i,o,s):Object(w.N)(t)?V(e,t,n,i,o,s):void Object(u.a)(!1,"Cannot complete value of unexpected output type: "+Object(l.a)(t))}function P(e,t,n,i,r,o){var s="string"===typeof e?t.schema.getType(e):e;if(!Object(w.N)(s))throw new m.a("Abstract type ".concat(n.name," must resolve to an Object type at runtime for field ").concat(r.parentType.name,".").concat(r.fieldName," with ")+"value ".concat(Object(l.a)(o),', received "').concat(Object(l.a)(s),'". ')+"Either the ".concat(n.name,' type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),i);if(!t.schema.isPossibleType(n,s))throw new m.a('Runtime Object type "'.concat(s.name,'" is not a possible type for "').concat(n.name,'".'),i);return s}function V(e,t,n,i,o,s){if(t.isTypeOf){var a=t.isTypeOf(s,e.contextValue,i);if(r(a))return a.then(function(i){if(!i)throw U(t,s,n);return z(e,t,n,o,s)});if(!a)throw U(t,s,n)}return z(e,t,n,o,s)}function U(e,t,n){return new m.a('Expected value of type "'.concat(e.name,'" but got: ').concat(Object(l.a)(t),"."),n)}function z(e,t,n,i,r){return k(e,t,r,i,W(e,t,n))}var W=function(e){var t;return function(n,i,r){t||(t=new WeakMap);var o,s=t.get(n);if(s){if(o=s.get(i)){var a=o.get(r);if(void 0!==a)return a}}else s=new WeakMap,t.set(n,s);o||(o=new WeakMap,s.set(i,o));var c=e(n,i,r);return o.set(r,c),c}}(function(e,t,n){for(var i=Object.create(null),r=Object.create(null),o=0;o<n.length;o++){var s=n[o];s.selectionSet&&(i=_(e,t,s.selectionSet,i,r))}return i});var H=function(e,t,n,i){if(Object(p.a)(e)&&"string"===typeof e.__typename)return e.__typename;for(var o=n.schema.getPossibleTypes(i),s=[],a=0;a<o.length;a++){var c=o[a];if(c.isTypeOf){var l=c.isTypeOf(e,t,n);if(r(l))s[a]=l;else if(l)return c}}return s.length?Promise.all(s).then(function(e){for(var t=0;t<e.length;t++)if(e[t])return o[t]}):void 0},G=function(e,t,n,i){if(Object(p.a)(e)||"function"===typeof e){var r=e[i.fieldName];return"function"===typeof r?e[i.fieldName](t,n,i):r}};function K(e,t,n){return n===b.a.name&&e.getQueryType()===t?b.a:n===b.c.name&&e.getQueryType()===t?b.c:n===b.d.name?b.d:t.getFields()[n]}function q(e,t,n,i,r,o,s,a){var c=arguments;return new Promise(function(l){return l(1===c.length?Y(e):Y({schema:e,source:t,rootValue:n,contextValue:i,variableValues:r,operationName:o,fieldResolver:s,typeResolver:a}))})}function Q(e,t,n,i,o,s,a,c){var l=1===arguments.length?Y(e):Y({schema:e,source:t,rootValue:n,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:c});if(r(l))throw new Error("GraphQL execution failed to complete synchronously.");return l}function Y(e){var t,n=e.schema,i=e.source,r=e.rootValue,c=e.contextValue,l=e.variableValues,u=e.operationName,h=e.fieldResolver,d=e.typeResolver,f=Object(a.b)(n);if(f.length>0)return{errors:f};try{t=Object(o.a)(i)}catch(Ue){return{errors:[Ue]}}var p=Object(s.c)(n,t);return p.length>0?{errors:p}:T({schema:n,document:t,rootValue:r,contextValue:c,variableValues:l,operationName:u,fieldResolver:h,typeResolver:d})}var X=n(35),J=n(11),Z=n(61),ee=n(65),te=n(81),ne=n(66),ie=n(5),re=n(15),oe=n(23),se=n(7),ae=n(37);function ce(e,t,n){var i,r,o,s,a,l,u=Object(c.c)(e);function h(e){return e.done?e:le(e.value,t).then(ue,r)}if("function"===typeof u.return&&(i=u.return,r=function(e){var t=function(){return Promise.reject(e)};return i.call(u).then(t,t)}),n){var d=n;o=function(e){return le(e,d).then(ue,r)}}return s={next:function(){return u.next().then(h,o)},return:function(){return i?i.call(u).then(h,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"===typeof u.throw?u.throw(e).then(h,o):Promise.reject(e).catch(r)}},a=c.a,l=function(){return this},a in s?Object.defineProperty(s,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[a]=l,s}function le(e,t){return new Promise(function(n){return n(t(e))})}function ue(e){return{value:e,done:!1}}function he(e,t,n,i,r,o,s,a){return 1===arguments.length?fe(e):fe({schema:e,document:t,rootValue:n,contextValue:i,variableValues:r,operationName:o,fieldResolver:s,subscribeFieldResolver:a})}function de(e){if(e instanceof m.a)return{errors:[e]};throw e}function fe(e){var t=e.schema,n=e.document,i=e.rootValue,r=e.contextValue,o=e.variableValues,s=e.operationName,a=e.fieldResolver,l=e.subscribeFieldResolver,u=pe(t,n,i,r,o,s,l),h=function(e){return T(t,n,e,r,o,s,a)};return u.then(function(e){return Object(c.d)(e)?ce(e,h,de):e})}function pe(e,t,n,i,r,o,s){O(e,t,r);try{var a=x(e,t,n,i,r,o,s);if(Array.isArray(a))return Promise.resolve({errors:a});var u=C(e,a.operation),h=_(a,u,a.operation.selectionSet,Object.create(null),Object.create(null)),d=Object.keys(h)[0],f=h[d],p=f[0].name.value,y=K(e,u,p);if(!y)throw new m.a('The subscription field "'.concat(p,'" is not defined.'),f);var b=y.subscribe||a.fieldResolver,E=Object(g.a)(void 0,d),w=L(a,y,f,u,E),A=M(a,y,f,b,n,w);return Promise.resolve(A).then(function(e){if(e instanceof Error)return{errors:[v(e,f,Object(g.b)(E))]};if(Object(c.d)(e))return e;throw new Error("Subscription field must return Async Iterable. Received: "+Object(l.a)(e))})}catch(F){return F instanceof m.a?Promise.resolve({errors:[F]}):Promise.reject(F)}}var ge=n(67),me=n(89),ve=n(115),ye=n(112),be=n(85),Ee=n(83),we=n(117),Ae=n(82),Ce=n(110),Fe=n(120),Te=n(122),Se=n(118),Oe=n(123),xe=n(125),ke=n(119),_e=n(87),De=n(114),Re=n(111),Be=n(86),Le=n(84),Me=n(116),Ne=n(88),$e=n(109),Ie=n(121),je=n(71),Pe=n(113),Ve=n(124),Ue=n(34);function ze(e){e||Object(h.a)(0,"Received null or undefined error.");var t=e.message||"An unknown error occurred.",n=e.locations,i=e.path,r=e.extensions;return r?{message:t,locations:n,path:i,extensions:r}:{message:t,locations:n,path:i}}function We(e){var t=!(e&&!1===e.descriptions);return"\n    query IntrospectionQuery {\n      __schema {\n        queryType { name }\n        mutationType { name }\n        subscriptionType { name }\n        types {\n          ...FullType\n        }\n        directives {\n          name\n          ".concat(t?"description":"","\n          locations\n          args {\n            ...InputValue\n          }\n        }\n      }\n    }\n\n    fragment FullType on __Type {\n      kind\n      name\n      ").concat(t?"description":"","\n      fields(includeDeprecated: true) {\n        name\n        ").concat(t?"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        ").concat(t?"description":"","\n        isDeprecated\n        deprecationReason\n      }\n      possibleTypes {\n        ...TypeRef\n      }\n    }\n\n    fragment InputValue on __InputValue {\n      name\n      ").concat(t?"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  ")}var He=We();function Ge(e,t){for(var n=null,i=0,r=e.definitions;i<r.length;i++){var o=r[i];if(o.kind===y.a.OPERATION_DEFINITION)if(t){if(o.name&&o.name.value===t)return o}else{if(n)return null;n=o}}return n}function Ke(e,t){var n=T(e,Object(o.a)(We(t)));return!r(n)&&!n.errors&&n.data||Object(u.a)(0),n.data}var qe=n(9),Qe=n(20),Ye=n(51);function Xe(e,t){Object(p.a)(e)&&Object(p.a)(e.__schema)||Object(h.a)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '+Object(l.a)(e));for(var n=e.__schema,i=Object(Qe.a)(n.types,function(e){return e.name},function(e){return function(e){if(e&&e.name&&e.kind)switch(e.kind){case b.b.SCALAR:return n=e,new w.g({name:n.name,description:n.description});case b.b.OBJECT:return function(e){if(!e.interfaces)throw new Error("Introspection result missing interfaces: "+Object(l.a)(e));return new w.f({name:e.name,description:e.description,interfaces:function(){return e.interfaces.map(y)},fields:function(){return A(e)}})}(e);case b.b.INTERFACE:return t=e,new w.c({name:t.name,description:t.description,fields:function(){return A(t)}});case b.b.UNION:return function(e){if(!e.possibleTypes)throw new Error("Introspection result missing possibleTypes: "+Object(l.a)(e));return new w.h({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(v)}})}(e);case b.b.ENUM:return function(e){if(!e.enumValues)throw new Error("Introspection result missing enumValues: "+Object(l.a)(e));return new w.a({name:e.name,description:e.description,values:Object(Qe.a)(e.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})})}(e);case b.b.INPUT_OBJECT:return function(e){if(!e.inputFields)throw new Error("Introspection result missing inputFields: "+Object(l.a)(e));return new w.b({name:e.name,description:e.description,fields:function(){return C(e.inputFields)}})}(e)}var t;var n;throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema:"+Object(l.a)(e))}(e)}),r=0,s=[].concat(J.g,b.m);r<s.length;r++){var a=s[r];i[a.name]&&(i[a.name]=a)}var c=n.queryType?v(n.queryType):null,u=n.mutationType?v(n.mutationType):null,d=n.subscriptionType?v(n.subscriptionType):null,f=n.directives?n.directives.map(function(e){if(!e.args)throw new Error("Introspection result missing directive args: "+Object(l.a)(e));if(!e.locations)throw new Error("Introspection result missing directive locations: "+Object(l.a)(e));return new E.c({name:e.name,description:e.description,locations:e.locations.slice(),args:C(e.args)})}):[];return new X.a({query:c,mutation:u,subscription:d,types:Object(qe.a)(i),directives:f,assumeValid:t&&t.assumeValid,allowedLegacyNames:t&&t.allowedLegacyNames});function g(e){if(e.kind===b.b.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return Object(w.d)(g(t))}if(e.kind===b.b.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");var r=g(n);return Object(w.e)(Object(w.t)(r))}if(!e.name)throw new Error("Unknown type reference: "+Object(l.a)(e));return function(e){var t=i[e];if(!t)throw new Error("Invalid or incomplete schema, unknown type: ".concat(e,". Ensure that a full introspection query is used in order to build a client schema."));return t}(e.name)}function m(e){var t=g(e);if(Object(w.O)(t))return t;throw new Error("Introspection must provide output type for fields, but received: "+Object(l.a)(t)+".")}function v(e){var t=g(e);return Object(w.u)(t)}function y(e){var t=g(e);return Object(w.o)(t)}function A(e){if(!e.fields)throw new Error("Introspection result missing fields: "+Object(l.a)(e));return Object(Qe.a)(e.fields,function(e){return e.name},function(e){if(!e.args)throw new Error("Introspection result missing field args: "+Object(l.a)(e));return{description:e.description,deprecationReason:e.deprecationReason,type:m(e.type),args:C(e.args)}})}function C(e){return Object(Qe.a)(e,function(e){return e.name},F)}function F(e){var t=function(e){var t=g(e);if(Object(w.G)(t))return t;throw new Error("Introspection must provide input type for arguments, but received: "+Object(l.a)(t)+".")}(e.type),n=e.defaultValue?Object(Ye.a)(Object(o.c)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n}}}var Je=n(126),Ze=n(38),et=n(43);function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(n,!0).forEach(function(t){it(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e,t,n){Object(X.b)(e),t&&t.kind===y.a.DOCUMENT||Object(h.a)(0,"Must provide valid Document AST"),n&&(n.assumeValid||n.assumeValidSDL)||Object(s.b)(t,e);for(var i,r=[],o=Object.create(null),a=[],c=[],d=0,f=t.definitions;d<f.length;d++){var p=f[d];if(p.kind===y.a.SCHEMA_DEFINITION)i=p;else if(p.kind===y.a.SCHEMA_EXTENSION)c.push(p);else if(Object(ae.d)(p))r.push(p);else if(Object(ae.e)(p)){var g=p.name.value,m=o[g];o[g]=m?m.concat([p]):[p]}else p.kind===y.a.DIRECTIVE_DEFINITION&&a.push(p)}if(0===Object.keys(o).length&&0===r.length&&0===a.length&&0===c.length&&!i)return e;for(var v=e.toConfig(),A=new Je.a(n,function(e){var t=C[e];if(void 0===t)throw new Error('Unknown type: "'.concat(e,'".'));return t}),C=Object(Qe.a)(r,function(e){return e.name.value},function(e){return A.buildType(e)}),F=0,T=v.types;F<T.length;F++){var S=T[F];C[S.name]=W(S)}var O={query:v.query&&v.query.name,mutation:v.mutation&&v.mutation.name,subscription:v.subscription&&v.subscription.name};if(i)for(var x=0,k=i.operationTypes;x<k.length;x++){var _=k[x],D=_.operation,R=_.type;O[D]=R.name.value}for(var B=0;B<c.length;B++){var L=c[B];if(L.operationTypes)for(var M=0,N=L.operationTypes;M<N.length;M++){var $=N[M],I=$.operation,j=$.type;O[I]=j.name.value}}var P=v.allowedLegacyNames.concat(n&&n.allowedLegacyNames||[]);return new X.a({query:z(O.query),mutation:z(O.mutation),subscription:z(O.subscription),types:Object(qe.a)(C),directives:function(){var t=e.getDirectives().map(H);return t||Object(h.a)(0,"schema must have default directives"),t.concat(a.map(function(e){return A.buildDirective(e)}))}(),astNode:i||v.astNode,extensionASTNodes:v.extensionASTNodes.concat(c),allowedLegacyNames:P});function V(e){return Object(w.J)(e)?new w.d(V(e.ofType)):Object(w.L)(e)?new w.e(V(e.ofType)):U(e)}function U(e){return C[e.name]}function z(e){return e?C[e]:null}function W(e){return Object(b.n)(e)||Object(J.f)(e)?e:Object(w.R)(e)?function(e){var t=e.toConfig(),n=o[t.name]||[];return new w.g(nt({},t,{extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):Object(w.N)(e)?function(e){var t=e.toConfig(),n=o[t.name]||[],i=Object(Ze.a)(n,function(e){return e.interfaces||[]}),r=Object(Ze.a)(n,function(e){return e.fields||[]});return new w.f(nt({},t,{interfaces:function(){return[].concat(e.getInterfaces().map(U),i.map(function(e){return A.getNamedType(e)}))},fields:function(){return nt({},Object(et.a)(t.fields,G),{},Object(Qe.a)(r,function(e){return e.name.value},function(e){return A.buildField(e)}))},extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):Object(w.H)(e)?function(e){var t=e.toConfig(),n=o[t.name]||[],i=Object(Ze.a)(n,function(e){return e.fields||[]});return new w.c(nt({},t,{fields:function(){return nt({},Object(et.a)(t.fields,G),{},Object(Qe.a)(i,function(e){return e.name.value},function(e){return A.buildField(e)}))},extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):Object(w.T)(e)?function(e){var t=e.toConfig(),n=o[t.name]||[],i=Object(Ze.a)(n,function(e){return e.types||[]});return new w.h(nt({},t,{types:function(){return[].concat(e.getTypes().map(U),i.map(function(e){return A.getNamedType(e)}))},extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):Object(w.E)(e)?function(e){var t=e.toConfig(),n=o[e.name]||[],i=Object(Ze.a)(n,function(e){return e.values||[]});return new w.a(nt({},t,{values:nt({},t.values,{},Object(Qe.a)(i,function(e){return e.name.value},function(e){return A.buildEnumValue(e)})),extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):Object(w.F)(e)?function(e){var t=e.toConfig(),n=o[t.name]||[],i=Object(Ze.a)(n,function(e){return e.fields||[]});return new w.b(nt({},t,{fields:function(){return nt({},Object(et.a)(t.fields,function(e){return nt({},e,{type:V(e.type)})}),{},Object(Qe.a)(i,function(e){return e.name.value},function(e){return A.buildInputField(e)}))},extensionASTNodes:t.extensionASTNodes.concat(n)}))}(e):void Object(u.a)(!1,"Unexpected type: "+Object(l.a)(e))}function H(e){var t=e.toConfig();return new E.c(nt({},t,{args:Object(et.a)(t.args,K)}))}function G(e){return nt({},e,{type:V(e.type),args:Object(et.a)(e.args,K)})}function K(e){return nt({},e,{type:V(e.type)})}}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(n,!0).forEach(function(t){at(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ct(e){var t=e.toConfig(),n=Object(Qe.a)(ut(t.types),function(e){return e.name},function(e){if(Object(w.R)(e)||Object(b.n)(e))return e;if(Object(w.N)(e)){var t=e.toConfig();return new w.f(st({},t,{interfaces:function(){return c(t.interfaces)},fields:function(){return a(t.fields)}}))}if(Object(w.H)(e)){var n=e.toConfig();return new w.c(st({},n,{fields:function(){return a(n.fields)}}))}if(Object(w.T)(e)){var r=e.toConfig();return new w.h(st({},r,{types:function(){return c(r.types)}}))}if(Object(w.E)(e)){var o=e.toConfig();return new w.a(st({},o,{values:lt(o.values)}))}if(Object(w.F)(e)){var s=e.toConfig();return new w.b(st({},s,{fields:function(){return lt(s.fields,function(e){return st({},e,{type:i(e.type)})})}}))}Object(u.a)(!1,"Unexpected type: "+Object(l.a)(e))});return new X.a(st({},t,{types:Object(qe.a)(n),directives:ut(t.directives).map(function(e){var t=e.toConfig();return new E.c(st({},t,{locations:ht(t.locations,function(e){return e}),args:s(t.args)}))}),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function i(e){return Object(w.J)(e)?new w.d(i(e.ofType)):Object(w.L)(e)?new w.e(i(e.ofType)):r(e)}function r(e){return n[e.name]}function o(e){return e&&r(e)}function s(e){return lt(e,function(e){return st({},e,{type:i(e.type)})})}function a(e){return lt(e,function(e){return st({},e,{type:i(e.type),args:s(e.args)})})}function c(e){return ut(e).map(r)}}function lt(e,t){for(var n=Object.create(null),i=ht(Object.keys(e),function(e){return e}),r=0;r<i.length;r++){var o=i[r],s=e[o];n[o]=t?t(s):s}return n}function ut(e){return ht(e,function(e){return e.name})}function ht(e,t){return e.slice().sort(function(e,n){var i=t(e),r=t(n);return i.localeCompare(r)})}var dt=n(41),ft=n(54);function pt(e,t){return vt(e,function(e){return!Object(E.h)(e)},mt,t)}function gt(e,t){return vt(e,E.h,b.n,t)}function mt(e){return!Object(J.f)(e)&&!Object(b.n)(e)}function vt(e,t,n,i){var r=e.getDirectives().filter(t),o=e.getTypeMap(),s=Object(qe.a)(o).sort(function(e,t){return e.name.localeCompare(t.name)}).filter(n);return[yt(e)].concat(r.map(function(e){return function(e,t){return Tt(t,e)+"directive @"+e.name+At(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,i)}),s.map(function(e){return bt(e,i)})).filter(Boolean).join("\n\n")+"\n"}function yt(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 i=e.getSubscriptionType();if(i&&"Subscription"!==i.name)return!1;return!0}(e)){var t=[],n=e.getQueryType();n&&t.push("  query: ".concat(n.name));var i=e.getMutationType();i&&t.push("  mutation: ".concat(i.name));var r=e.getSubscriptionType();return r&&t.push("  subscription: ".concat(r.name)),"schema {\n".concat(t.join("\n"),"\n}")}}function bt(e,t){return Object(w.R)(e)?function(e,t){return Tt(t,e)+"scalar ".concat(e.name)}(e,t):Object(w.N)(e)?function(e,t){var n=e.getInterfaces(),i=n.length?" implements "+n.map(function(e){return e.name}).join(" & "):"";return Tt(t,e)+"type ".concat(e.name).concat(i)+Et(t,e)}(e,t):Object(w.H)(e)?function(e,t){return Tt(t,e)+"interface ".concat(e.name)+Et(t,e)}(e,t):Object(w.T)(e)?function(e,t){var n=e.getTypes(),i=n.length?" = "+n.join(" | "):"";return Tt(t,e)+"union "+e.name+i}(e,t):Object(w.E)(e)?function(e,t){var n=e.getValues().map(function(e,n){return Tt(t,e,"  ",!n)+"  "+e.name+Ft(e)});return Tt(t,e)+"enum ".concat(e.name)+wt(n)}(e,t):Object(w.F)(e)?function(e,t){var n=Object(qe.a)(e.getFields()).map(function(e,n){return Tt(t,e,"  ",!n)+"  "+Ct(e)});return Tt(t,e)+"input ".concat(e.name)+wt(n)}(e,t):void Object(u.a)(!1,"Unexpected type: "+Object(l.a)(e))}function Et(e,t){return wt(Object(qe.a)(t.getFields()).map(function(t,n){return Tt(e,t,"  ",!n)+"  "+t.name+At(e,t.args,"  ")+": "+String(t.type)+Ft(t)}))}function wt(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function At(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every(function(e){return!e.description})?"("+t.map(Ct).join(", ")+")":"(\n"+t.map(function(t,i){return Tt(e,t,"  "+n,!i)+"  "+n+Ct(t)}).join("\n")+"\n"+n+")"}function Ct(e){var t=Object(ft.a)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat(Object(re.a)(t))),n}function Ft(e){if(!e.isDeprecated)return"";var t=e.deprecationReason,n=Object(ft.a)(t,J.e);return n&&""!==t&&t!==E.a?" @deprecated(reason: "+Object(re.a)(n)+")":" @deprecated"}function Tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t.description)return"";var r=function(e,t){var n=e.split("\n");return Object(Ze.a)(n,function(e){return e.length<t+5?e:function(e,t){var n=e.split(new RegExp("((?: |^).{15,".concat(t-40,"}(?= |$))")));if(n.length<4)return[e];for(var i=[n[0]+n[1]+n[2]],r=3;r<n.length;r+=2)i.push(n[r].slice(1)+n[r+1]);return i}(e,t)})}(t.description,120-n.length);if(e&&e.commentDescriptions)return function(e,t,n){for(var i=t&&!n?"\n":"",r=0;r<e.length;r++){var o=e[r];i+=""===o?t+"#\n":t+"# "+o+"\n"}return i}(r,n,i);var o=r.join("\n"),s=o.length>70;return(n&&!i?"\n"+n:n)+Object(dt.c)(o,"",s).replace(/\n/g,"\n"+n)+"\n"}var St=n(107),Ot=n(48),xt=n(72),kt=n(60);function _t(e,t,n,i){var r=[],o=Object(xt.a)(e,t,function(e,t,o){var s="Invalid value "+Object(l.a)(t),a=[].concat(Object(g.b)(i),e);a.length>0&&(s+=' at "value'.concat(Object(kt.a)(a),'"')),r.push(new m.a(s+": "+o.message,n,void 0,void 0,void 0,o.originalError))});return r.length>0?{errors:r,value:void 0}:{errors:void 0,value:o}}function Dt(e,t){var n=_t(e,t).errors;return n?n.map(function(e){return e.message}):[]}function Rt(e,t){var n=new X.a({}),i={kind:y.a.DOCUMENT,definitions:[]},r=new Ot.a(n,void 0,e),o=new ge.b(n,i,r),s=Object(je.a)(o);return Object(oe.c)(t,Object(oe.e)(r,s)),o.getErrors()}function Bt(e){return{kind:"Document",definitions:Object(Ze.a)(e,function(e){return e.definitions})}}function Lt(e){var t,n=[],i=Object.create(null),r=new Map,o=Object.create(null),s=0;Object(oe.c)(e,{OperationDefinition:function(e){t=Mt(e),n.push(e),r.set(e,s++)},FragmentDefinition:function(e){t=e.name.value,i[t]=e,r.set(e,s++)},FragmentSpread:function(e){var n=e.name.value;(o[t]||(o[t]=Object.create(null)))[n]=!0}});for(var a=Object.create(null),c=0;c<n.length;c++){var l=n[c],u=Mt(l),h=Object.create(null);Nt(h,o,u);for(var d=[l],f=0,p=Object.keys(h);f<p.length;f++){var g=p[f];d.push(i[g])}d.sort(function(e,t){return(r.get(e)||0)-(r.get(t)||0)}),a[u]={kind:"Document",definitions:d}}return a}function Mt(e){return e.name?e.name.value:""}function Nt(e,t,n){var i=t[n];if(i)for(var r=0,o=Object.keys(i);r<o.length;r++){var s=o[r];e[s]||(e[s]=!0,Nt(e,t,s))}}function $t(e){var t="string"===typeof e?new Z.a(e):e;if(!(t instanceof Z.a))throw new TypeError("Must provide string or Source. Received: ".concat(Object(l.a)(t)));for(var n=t.body,i=Object(ne.a)(t),r="",o=!1;i.advance().kind!==ie.a.EOF;){var s=i.token,a=s.kind,c=!Object(ne.b)(s);o&&(c||s.kind===ie.a.SPREAD)&&(r+=" ");var u=n.slice(s.start,s.end);a===ie.a.BLOCK_STRING?r+=It(u):r+=u,o=c}return r}function It(e){var t=e.slice(3,-3),n=Object(dt.a)(t),i=n.split(/\r\n|[\n\r]/g);Object(dt.b)(i)>0&&(n="\n"+n);var r=n[n.length-1];return('"'===r&&'\\"""'!==n.slice(-4)||"\\"===r)&&(n+="\n"),'"""'+n+'"""'}var jt=n(45),Pt=n(108),Vt=n(24),Ut=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",INTERFACE_REMOVED_FROM_OBJECT:"INTERFACE_REMOVED_FROM_OBJECT",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),zt=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",INTERFACE_ADDED_TO_OBJECT:"INTERFACE_ADDED_TO_OBJECT",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Wt(e,t){return Gt(e,t).filter(function(e){return e.type in Ut})}function Ht(e,t){return Gt(e,t).filter(function(e){return e.type in zt})}function Gt(e,t){return[].concat(function(e,t){for(var n=[],i=rn(Object(qe.a)(e.getTypeMap()),Object(qe.a)(t.getTypeMap())),r=0,o=i.removed;r<o.length;r++){var s=o[r];n.push({type:Ut.TYPE_REMOVED,description:"".concat(s.name," was removed.")})}for(var a=0,c=i.persisted;a<c.length;a++){var l=c[a],u=l[0],h=l[1];Object(w.E)(u)&&Object(w.E)(h)?n.push.apply(n,Qt(u,h)):Object(w.T)(u)&&Object(w.T)(h)?n.push.apply(n,qt(u,h)):Object(w.F)(u)&&Object(w.F)(h)?n.push.apply(n,Kt(u,h)):Object(w.N)(u)&&Object(w.N)(h)?n.push.apply(n,Yt(u,h)):Object(w.H)(u)&&Object(w.H)(h)?n.push.apply(n,Xt(u,h)):u.constructor!==h.constructor&&n.push({type:Ut.TYPE_CHANGED_KIND,description:"".concat(u.name," changed from ")+"".concat(tn(u)," to ").concat(tn(h),".")})}return n}(e,t),function(e,t){for(var n=[],i=rn(e.getDirectives(),t.getDirectives()),r=0,o=i.removed;r<o.length;r++){var s=o[r];n.push({type:Ut.DIRECTIVE_REMOVED,description:"".concat(s.name," was removed.")})}for(var a=0,c=i.persisted;a<c.length;a++){for(var l=c[a],u=l[0],h=l[1],d=rn(u.args,h.args),f=0,p=d.added;f<p.length;f++){var g=p[f];Object(w.P)(g)&&n.push({type:Ut.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(g.name," on directive ").concat(u.name," was added.")})}for(var m=0,v=d.removed;m<v.length;m++){var y=v[m];n.push({type:Ut.DIRECTIVE_ARG_REMOVED,description:"".concat(y.name," was removed from ").concat(u.name,".")})}for(var b=0,E=u.locations;b<E.length;b++){var A=E[b];-1===h.locations.indexOf(A)&&n.push({type:Ut.DIRECTIVE_LOCATION_REMOVED,description:"".concat(A," was removed from ").concat(u.name,".")})}}return n}(e,t))}function Kt(e,t){for(var n=[],i=rn(Object(qe.a)(e.getFields()),Object(qe.a)(t.getFields())),r=0,o=i.added;r<o.length;r++){var s=o[r];Object(w.Q)(s)?n.push({type:Ut.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(s.name," on input type ").concat(e.name," was added.")}):n.push({type:zt.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(s.name," on input type ").concat(e.name," was added.")})}for(var a=0,c=i.removed;a<c.length;a++){var l=c[a];n.push({type:Ut.FIELD_REMOVED,description:"".concat(e.name,".").concat(l.name," was removed.")})}for(var u=0,h=i.persisted;u<h.length;u++){var d=h[u],f=d[0],p=d[1];en(f.type,p.type)||n.push({type:Ut.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(f.name," changed type from ")+"".concat(String(f.type)," to ").concat(String(p.type),".")})}return n}function qt(e,t){for(var n=[],i=rn(e.getTypes(),t.getTypes()),r=0,o=i.added;r<o.length;r++){var s=o[r];n.push({type:zt.TYPE_ADDED_TO_UNION,description:"".concat(s.name," was added to union type ").concat(e.name,".")})}for(var a=0,c=i.removed;a<c.length;a++){var l=c[a];n.push({type:Ut.TYPE_REMOVED_FROM_UNION,description:"".concat(l.name," was removed from union type ").concat(e.name,".")})}return n}function Qt(e,t){for(var n=[],i=rn(e.getValues(),t.getValues()),r=0,o=i.added;r<o.length;r++){var s=o[r];n.push({type:zt.VALUE_ADDED_TO_ENUM,description:"".concat(s.name," was added to enum type ").concat(e.name,".")})}for(var a=0,c=i.removed;a<c.length;a++){var l=c[a];n.push({type:Ut.VALUE_REMOVED_FROM_ENUM,description:"".concat(l.name," was removed from enum type ").concat(e.name,".")})}return n}function Yt(e,t){for(var n=Xt(e,t),i=rn(e.getInterfaces(),t.getInterfaces()),r=0,o=i.added;r<o.length;r++){var s=o[r];n.push({type:zt.INTERFACE_ADDED_TO_OBJECT,description:"".concat(s.name," added to interfaces implemented by ").concat(e.name,".")})}for(var a=0,c=i.removed;a<c.length;a++){var l=c[a];n.push({type:Ut.INTERFACE_REMOVED_FROM_OBJECT,description:"".concat(e.name," no longer implements interface ").concat(l.name,".")})}return n}function Xt(e,t){for(var n=[],i=rn(Object(qe.a)(e.getFields()),Object(qe.a)(t.getFields())),r=0,o=i.removed;r<o.length;r++){var s=o[r];n.push({type:Ut.FIELD_REMOVED,description:"".concat(e.name,".").concat(s.name," was removed.")})}for(var a=0,c=i.persisted;a<c.length;a++){var l=c[a],u=l[0],h=l[1];n.push.apply(n,Jt(e,u,h)),Zt(u.type,h.type)||n.push({type:Ut.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(u.name," changed type from ")+"".concat(String(u.type)," to ").concat(String(h.type),".")})}return n}function Jt(e,t,n){for(var i=[],r=rn(t.args,n.args),o=0,s=r.removed;o<s.length;o++){var a=s[o];i.push({type:Ut.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(a.name," was removed.")})}for(var c=0,l=r.persisted;c<l.length;c++){var u=l[c],h=u[0],d=u[1];if(en(h.type,d.type)){if(void 0!==h.defaultValue)if(void 0===d.defaultValue)i.push({type:zt.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(h.name," defaultValue was removed.")});else{var f=nn(h.defaultValue,h.type),p=nn(d.defaultValue,d.type);f!==p&&i.push({type:zt.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(h.name," has changed defaultValue from ").concat(f," to ").concat(p,".")})}}else i.push({type:Ut.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(h.name," has changed type from ")+"".concat(String(h.type)," to ").concat(String(d.type),".")})}for(var g=0,m=r.added;g<m.length;g++){var v=m[g];Object(w.P)(v)?i.push({type:Ut.REQUIRED_ARG_ADDED,description:"A required arg ".concat(v.name," on ").concat(e.name,".").concat(t.name," was added.")}):i.push({type:zt.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(v.name," on ").concat(e.name,".").concat(t.name," was added.")})}return i}function Zt(e,t){return Object(w.J)(e)?Object(w.J)(t)&&Zt(e.ofType,t.ofType)||Object(w.L)(t)&&Zt(e,t.ofType):Object(w.L)(e)?Object(w.L)(t)&&Zt(e.ofType,t.ofType):Object(w.K)(t)&&e.name===t.name||Object(w.L)(t)&&Zt(e,t.ofType)}function en(e,t){return Object(w.J)(e)?Object(w.J)(t)&&en(e.ofType,t.ofType):Object(w.L)(e)?Object(w.L)(t)&&en(e.ofType,t.ofType)||!Object(w.L)(t)&&en(e.ofType,t):Object(w.K)(t)&&e.name===t.name}function tn(e){return Object(w.R)(e)?"a Scalar type":Object(w.N)(e)?"an Object type":Object(w.H)(e)?"an Interface type":Object(w.T)(e)?"a Union type":Object(w.E)(e)?"an Enum type":Object(w.F)(e)?"an Input type":void Object(u.a)(!1,"Unexpected type: "+Object(l.a)(e))}function nn(e,t){var n=Object(ft.a)(e,t);return null!=n||Object(u.a)(0),Object(re.a)(n)}function rn(e,t){for(var n=[],i=[],r=[],o=Object(Vt.a)(e,function(e){return e.name}),s=Object(Vt.a)(t,function(e){return e.name}),a=0;a<e.length;a++){var c=e[a],l=s[c.name];void 0===l?i.push(c):r.push([c,l])}for(var u=0;u<t.length;u++){var h=t[u];void 0===o[h.name]&&n.push(h)}return{added:n,persisted:r,removed:i}}function on(e,t){var n=[],i=new Ot.a(e);return Object(oe.c)(t,Object(oe.e)(i,{Field:function(e){var t=i.getFieldDef();if(t&&t.isDeprecated){var r=i.getParentType();if(r){var o=t.deprecationReason;n.push(new m.a("The field ".concat(r.name,".").concat(t.name," is deprecated.")+(o?" "+o:""),e))}}},EnumValue:function(e){var t=i.getEnumValue();if(t&&t.isDeprecated){var r=Object(w.A)(i.getInputType());if(r){var o=t.deprecationReason;n.push(new m.a("The enum value ".concat(r.name,".").concat(t.name," is deprecated.")+(o?" "+o:""),e))}}}})),n}n.d(t,"version",function(){return"14.5.4"}),n.d(t,"versionInfo",function(){return i}),n.d(t,"graphql",function(){return q}),n.d(t,"graphqlSync",function(){return Q}),n.d(t,"GraphQLSchema",function(){return X.a}),n.d(t,"GraphQLDirective",function(){return E.c}),n.d(t,"GraphQLScalarType",function(){return w.g}),n.d(t,"GraphQLObjectType",function(){return w.f}),n.d(t,"GraphQLInterfaceType",function(){return w.c}),n.d(t,"GraphQLUnionType",function(){return w.h}),n.d(t,"GraphQLEnumType",function(){return w.a}),n.d(t,"GraphQLInputObjectType",function(){return w.b}),n.d(t,"GraphQLList",function(){return w.d}),n.d(t,"GraphQLNonNull",function(){return w.e}),n.d(t,"specifiedScalarTypes",function(){return J.g}),n.d(t,"GraphQLInt",function(){return J.d}),n.d(t,"GraphQLFloat",function(){return J.b}),n.d(t,"GraphQLString",function(){return J.e}),n.d(t,"GraphQLBoolean",function(){return J.a}),n.d(t,"GraphQLID",function(){return J.c}),n.d(t,"specifiedDirectives",function(){return E.i}),n.d(t,"GraphQLIncludeDirective",function(){return E.d}),n.d(t,"GraphQLSkipDirective",function(){return E.e}),n.d(t,"GraphQLDeprecatedDirective",function(){return E.b}),n.d(t,"TypeKind",function(){return b.b}),n.d(t,"DEFAULT_DEPRECATION_REASON",function(){return E.a}),n.d(t,"introspectionTypes",function(){return b.m}),n.d(t,"__Schema",function(){return b.j}),n.d(t,"__Directive",function(){return b.e}),n.d(t,"__DirectiveLocation",function(){return b.f}),n.d(t,"__Type",function(){return b.k}),n.d(t,"__Field",function(){return b.h}),n.d(t,"__InputValue",function(){return b.i}),n.d(t,"__EnumValue",function(){return b.g}),n.d(t,"__TypeKind",function(){return b.l}),n.d(t,"SchemaMetaFieldDef",function(){return b.a}),n.d(t,"TypeMetaFieldDef",function(){return b.c}),n.d(t,"TypeNameMetaFieldDef",function(){return b.d}),n.d(t,"isSchema",function(){return X.c}),n.d(t,"isDirective",function(){return E.g}),n.d(t,"isType",function(){return w.S}),n.d(t,"isScalarType",function(){return w.R}),n.d(t,"isObjectType",function(){return w.N}),n.d(t,"isInterfaceType",function(){return w.H}),n.d(t,"isUnionType",function(){return w.T}),n.d(t,"isEnumType",function(){return w.E}),n.d(t,"isInputObjectType",function(){return w.F}),n.d(t,"isListType",function(){return w.J}),n.d(t,"isNonNullType",function(){return w.L}),n.d(t,"isInputType",function(){return w.G}),n.d(t,"isOutputType",function(){return w.O}),n.d(t,"isLeafType",function(){return w.I}),n.d(t,"isCompositeType",function(){return w.D}),n.d(t,"isAbstractType",function(){return w.C}),n.d(t,"isWrappingType",function(){return w.U}),n.d(t,"isNullableType",function(){return w.M}),n.d(t,"isNamedType",function(){return w.K}),n.d(t,"isRequiredArgument",function(){return w.P}),n.d(t,"isRequiredInputField",function(){return w.Q}),n.d(t,"isSpecifiedScalarType",function(){return J.f}),n.d(t,"isIntrospectionType",function(){return b.n}),n.d(t,"isSpecifiedDirective",function(){return E.h}),n.d(t,"assertSchema",function(){return X.b}),n.d(t,"assertDirective",function(){return E.f}),n.d(t,"assertType",function(){return w.x}),n.d(t,"assertScalarType",function(){return w.w}),n.d(t,"assertObjectType",function(){return w.u}),n.d(t,"assertInterfaceType",function(){return w.o}),n.d(t,"assertUnionType",function(){return w.y}),n.d(t,"assertEnumType",function(){return w.l}),n.d(t,"assertInputObjectType",function(){return w.m}),n.d(t,"assertListType",function(){return w.q}),n.d(t,"assertNonNullType",function(){return w.s}),n.d(t,"assertInputType",function(){return w.n}),n.d(t,"assertOutputType",function(){return w.v}),n.d(t,"assertLeafType",function(){return w.p}),n.d(t,"assertCompositeType",function(){return w.k}),n.d(t,"assertAbstractType",function(){return w.j}),n.d(t,"assertWrappingType",function(){return w.z}),n.d(t,"assertNullableType",function(){return w.t}),n.d(t,"assertNamedType",function(){return w.r}),n.d(t,"getNullableType",function(){return w.B}),n.d(t,"getNamedType",function(){return w.A}),n.d(t,"validateSchema",function(){return a.b}),n.d(t,"assertValidSchema",function(){return a.a}),n.d(t,"Source",function(){return Z.a}),n.d(t,"getLocation",function(){return ee.a}),n.d(t,"printLocation",function(){return te.a}),n.d(t,"printSourceLocation",function(){return te.b}),n.d(t,"createLexer",function(){return ne.a}),n.d(t,"TokenKind",function(){return ie.a}),n.d(t,"parse",function(){return o.a}),n.d(t,"parseValue",function(){return o.c}),n.d(t,"parseType",function(){return o.b}),n.d(t,"print",function(){return re.a}),n.d(t,"visit",function(){return oe.c}),n.d(t,"visitInParallel",function(){return oe.d}),n.d(t,"visitWithTypeInfo",function(){return oe.e}),n.d(t,"getVisitFn",function(){return oe.b}),n.d(t,"BREAK",function(){return oe.a}),n.d(t,"Kind",function(){return y.a}),n.d(t,"DirectiveLocation",function(){return se.a}),n.d(t,"isDefinitionNode",function(){return ae.a}),n.d(t,"isExecutableDefinitionNode",function(){return ae.b}),n.d(t,"isSelectionNode",function(){return ae.c}),n.d(t,"isValueNode",function(){return ae.i}),n.d(t,"isTypeNode",function(){return ae.f}),n.d(t,"isTypeSystemDefinitionNode",function(){return ae.g}),n.d(t,"isTypeDefinitionNode",function(){return ae.d}),n.d(t,"isTypeSystemExtensionNode",function(){return ae.h}),n.d(t,"isTypeExtensionNode",function(){return ae.e}),n.d(t,"execute",function(){return T}),n.d(t,"defaultFieldResolver",function(){return G}),n.d(t,"defaultTypeResolver",function(){return H}),n.d(t,"responsePathAsArray",function(){return g.b}),n.d(t,"getDirectiveValues",function(){return F.b}),n.d(t,"subscribe",function(){return he}),n.d(t,"createSourceEventStream",function(){return pe}),n.d(t,"validate",function(){return s.c}),n.d(t,"ValidationContext",function(){return ge.b}),n.d(t,"specifiedRules",function(){return me.a}),n.d(t,"FieldsOnCorrectTypeRule",function(){return ve.a}),n.d(t,"FragmentsOnCompositeTypesRule",function(){return ye.a}),n.d(t,"KnownArgumentNamesRule",function(){return be.a}),n.d(t,"KnownDirectivesRule",function(){return Ee.a}),n.d(t,"KnownFragmentNamesRule",function(){return we.a}),n.d(t,"KnownTypeNamesRule",function(){return Ae.a}),n.d(t,"LoneAnonymousOperationRule",function(){return Ce.a}),n.d(t,"NoFragmentCyclesRule",function(){return Fe.a}),n.d(t,"NoUndefinedVariablesRule",function(){return Te.a}),n.d(t,"NoUnusedFragmentsRule",function(){return Se.a}),n.d(t,"NoUnusedVariablesRule",function(){return Oe.a}),n.d(t,"OverlappingFieldsCanBeMergedRule",function(){return xe.a}),n.d(t,"PossibleFragmentSpreadsRule",function(){return ke.a}),n.d(t,"ProvidedRequiredArgumentsRule",function(){return _e.a}),n.d(t,"ScalarLeafsRule",function(){return De.a}),n.d(t,"SingleFieldSubscriptionsRule",function(){return Re.a}),n.d(t,"UniqueArgumentNamesRule",function(){return Be.a}),n.d(t,"UniqueDirectivesPerLocationRule",function(){return Le.a}),n.d(t,"UniqueFragmentNamesRule",function(){return Me.a}),n.d(t,"UniqueInputFieldNamesRule",function(){return Ne.a}),n.d(t,"UniqueOperationNamesRule",function(){return $e.a}),n.d(t,"UniqueVariableNamesRule",function(){return Ie.a}),n.d(t,"ValuesOfCorrectTypeRule",function(){return je.a}),n.d(t,"VariablesAreInputTypesRule",function(){return Pe.a}),n.d(t,"VariablesInAllowedPositionRule",function(){return Ve.a}),n.d(t,"GraphQLError",function(){return m.a}),n.d(t,"syntaxError",function(){return Ue.a}),n.d(t,"locatedError",function(){return v}),n.d(t,"printError",function(){return m.b}),n.d(t,"formatError",function(){return ze}),n.d(t,"getIntrospectionQuery",function(){return We}),n.d(t,"introspectionQuery",function(){return He}),n.d(t,"getOperationAST",function(){return Ge}),n.d(t,"getOperationRootType",function(){return C}),n.d(t,"introspectionFromSchema",function(){return Ke}),n.d(t,"buildClientSchema",function(){return Xe}),n.d(t,"buildASTSchema",function(){return Je.b}),n.d(t,"buildSchema",function(){return Je.c}),n.d(t,"getDescription",function(){return Je.d}),n.d(t,"extendSchema",function(){return rt}),n.d(t,"lexicographicSortSchema",function(){return ct}),n.d(t,"printSchema",function(){return pt}),n.d(t,"printType",function(){return bt}),n.d(t,"printIntrospectionSchema",function(){return gt}),n.d(t,"typeFromAST",function(){return A.a}),n.d(t,"valueFromAST",function(){return Ye.a}),n.d(t,"valueFromASTUntyped",function(){return St.a}),n.d(t,"astFromValue",function(){return ft.a}),n.d(t,"TypeInfo",function(){return Ot.a}),n.d(t,"coerceInputValue",function(){return xt.a}),n.d(t,"coerceValue",function(){return _t}),n.d(t,"isValidJSValue",function(){return Dt}),n.d(t,"isValidLiteralValue",function(){return Rt}),n.d(t,"concatAST",function(){return Bt}),n.d(t,"separateOperations",function(){return Lt}),n.d(t,"stripIgnoredCharacters",function(){return $t}),n.d(t,"isEqualType",function(){return jt.b}),n.d(t,"isTypeSubTypeOf",function(){return jt.c}),n.d(t,"doTypesOverlap",function(){return jt.a}),n.d(t,"assertValidName",function(){return Pt.a}),n.d(t,"isValidNameError",function(){return Pt.b}),n.d(t,"BreakingChangeType",function(){return Ut}),n.d(t,"DangerousChangeType",function(){return zt}),n.d(t,"findBreakingChanges",function(){return Wt}),n.d(t,"findDangerousChanges",function(){return Ht}),n.d(t,"findDeprecatedUsages",function(){return on})},function(e,t,n){"use strict";function i(e){return null===e||void 0===e||e!==e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n(9),r=n(24),o=n(3),s=n(28),a=n(25),c=n(27),l=n(4),u=n(15),h=n(0);function d(e,t,n){return"Expected type ".concat(e,", found ").concat(t)+(n?"; ".concat(n):".")}function f(e,t,n){return"Expected type ".concat(e,", found ").concat(t,".")+Object(a.a)("the enum value",n)}function p(e){return{NullValue:function(t){var n=e.getInputType();Object(h.L)(n)&&e.reportError(new l.a(d(Object(o.a)(n),Object(u.a)(t)),t))},ListValue:function(t){var n=Object(h.B)(e.getParentInputType());if(!Object(h.J)(n))return g(e,t),!1},ObjectValue:function(t){var n=Object(h.A)(e.getInputType());if(!Object(h.F)(n))return g(e,t),!1;for(var s,a,c,u=Object(r.a)(t.fields,function(e){return e.name.value}),d=0,f=Object(i.a)(n.getFields());d<f.length;d++){var p=f[d];if(!u[p.name]&&Object(h.Q)(p)){var m=Object(o.a)(p.type);e.reportError(new l.a((s=n.name,a=p.name,c=m,"Field ".concat(s,".").concat(a," of required type ").concat(c," was not provided.")),t))}}},ObjectField:function(t){var n,i,r,o=Object(h.A)(e.getParentInputType());if(!e.getInputType()&&Object(h.F)(o)){var s=Object(c.a)(t.name.value,Object.keys(o.getFields()));e.reportError(new l.a((n=o.name,i=t.name.value,r=s,'Field "'.concat(i,'" is not defined by type ').concat(n,".")+Object(a.a)(r)),t))}},EnumValue:function(t){var n=Object(h.A)(e.getInputType());Object(h.E)(n)?n.getValue(t.value)||e.reportError(new l.a(f(n.name,Object(u.a)(t),m(n,t)),t)):g(e,t)},IntValue:function(t){return g(e,t)},FloatValue:function(t){return g(e,t)},StringValue:function(t){return g(e,t)},BooleanValue:function(t){return g(e,t)}}}function g(e,t){var n=e.getInputType();if(n){var i=Object(h.A)(n);if(Object(h.R)(i))try{var r=i.parseLiteral(t,void 0);Object(s.a)(r)&&e.reportError(new l.a(d(Object(o.a)(n),Object(u.a)(t)),t))}catch(c){e.reportError(new l.a(d(Object(o.a)(n),Object(u.a)(t),c.message),t,void 0,void 0,void 0,c))}else{var a=Object(h.E)(i)?f(Object(o.a)(n),Object(u.a)(t),m(i,t)):d(Object(o.a)(n),Object(u.a)(t));e.reportError(new l.a(a,t))}}}function m(e,t){var n=e.getValues().map(function(e){return e.name});return Object(c.a)(Object(u.a)(t),n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n(29),r=n(9),o=n(3),s=n(16),a=n(25),c=n(18),l=n(27),u=n(60),h=n(21),d=n(4),f=n(0);function p(e,t){return function e(t,n,u,p){if(Object(f.L)(n))return null!=t?e(t,n.ofType,u,p):void u(Object(h.b)(p),t,new d.a("Expected non-nullable type ".concat(Object(o.a)(n)," not to be null.")));if(null==t)return null;if(Object(f.J)(n)){var g=n.ofType;if(Object(i.e)(t)){var m=[];return Object(i.b)(t,function(t,n){m.push(e(t,g,u,Object(h.a)(p,n)))}),m}return[e(t,g,u,p)]}if(Object(f.F)(n)){if(!Object(c.a)(t))return void u(Object(h.b)(p),t,new d.a("Expected type ".concat(n.name," to be an object.")));for(var v={},y=n.getFields(),b=0,E=Object(r.a)(y);b<E.length;b++){var w=E[b],A=t[w.name];if(void 0!==A)v[w.name]=e(A,w.type,u,Object(h.a)(p,w.name));else if(void 0!==w.defaultValue)v[w.name]=w.defaultValue;else if(Object(f.L)(w.type)){var C=Object(o.a)(w.type);u(Object(h.b)(p),t,new d.a("Field ".concat(w.name," of required type ").concat(C," was not provided.")))}}for(var F=0,T=Object.keys(t);F<T.length;F++){var S=T[F];if(!y[S]){var O=Object(l.a)(S,Object.keys(n.getFields()));u(Object(h.b)(p),t,new d.a('Field "'.concat(S,'" is not defined by type ').concat(n.name,".")+Object(a.a)(O)))}}return v}if(Object(f.R)(n)){var x;try{x=n.parseValue(t)}catch(D){return void u(Object(h.b)(p),t,new d.a("Expected type ".concat(n.name,". ")+D.message,void 0,void 0,void 0,void 0,D))}return void 0===x&&u(Object(h.b)(p),t,new d.a("Expected type ".concat(n.name,"."))),x}if(Object(f.E)(n)){if("string"===typeof t){var k=n.getValue(t);if(k)return k.value}var _=Object(l.a)(String(t),n.getValues().map(function(e){return e.name}));return void u(Object(h.b)(p),t,new d.a("Expected type ".concat(n.name,".")+Object(a.a)(_)))}Object(s.a)(!1,"Unexpected input type: "+Object(o.a)(n))}(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:g)}function g(e,t,n){var i="Invalid value "+Object(o.a)(t);throw e.length>0&&(i+=' at "value'.concat(Object(u.a)(e),'": ')),n.message=i+": "+n.message,n}},function(e,t,n){"use strict";(function(e){var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=0;t.IS_UNIQUE="__DO_NOT_DEDUPE_STYLE__";for(var r=/[A-Z]/g,o=/^ms-/,s=/&/g,a=/[ !#$%&()*+,.\/;<=>?@[\]^`{|}~"'\\]/g,c=function(e){return"-"+e.toLowerCase()},l={"animation-iteration-count":!0,"border-image-outset":!0,"border-image-slice":!0,"border-image-width":!0,"box-flex":!0,"box-flex-group":!0,"box-ordinal-group":!0,"column-count":!0,columns:!0,"counter-increment":!0,"counter-reset":!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"flex-order":!0,"font-weight":!0,"grid-area":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-span":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-span":!0,"grid-row-start":!0,"line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"flood-opacity":!0,"stop-opacity":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0},u=0,h=Object.keys(l);u<h.length;u++)for(var d=h[u],f=0,p=["-webkit-","-ms-","-moz-","-o-",""];f<p.length;f++){l[p[f]+d]=!0}function g(e){return e.replace(r,c).replace(o,"-ms-")}function m(e){for(var t=5381,n=e.length;n--;)t=33*t^e.charCodeAt(n);return(t>>>0).toString(36)}function v(e,t){return"number"!==typeof t||0===t||l.hasOwnProperty(e)?e+":"+t:e+":"+t+"px"}function y(e){return e.sort(function(e,t){return e[0]>t[0]?1:-1})}function b(e){return e.map(function(e){var t=e[0],n=e[1];return Array.isArray(n)?n.map(function(e){return v(t,e)}).join(";"):v(t,n)}).join(";")}function E(e,t){return-1===e.indexOf("&")?t+" "+e:e.replace(s,t)}function w(e,n,i,r,o){var s=function(e,n){for(var i=[],r=[],o=!1,s=0,a=Object.keys(e);s<a.length;s++){var c=a[s],l=e[c];null!==l&&void 0!==l&&(c===t.IS_UNIQUE?o=!0:"object"!==typeof l||Array.isArray(l)?i.push([g(c.trim()),l]):r.push([c.trim(),l]))}return{style:b(y(i)),nested:n?r:y(r),isUnique:o}}(n,""!==e),a=s.style,c=s.nested,l=s.isUnique,u=a;if(64===e.charCodeAt(0)){var h={selector:e,styles:[],rules:[],style:o?"":a};i.push(h),a&&o&&h.styles.push({selector:o,style:a,isUnique:l});for(var d=0,f=c;d<f.length;d++){var p=f[d];u+=(C=p[0])+w(C,p[1],h.rules,h.styles,o)}}else{var m=o?E(e,o):e;a&&r.push({selector:m,style:a,isUnique:l});for(var v=0,A=c;v<A.length;v++){var C,F=A[v];u+=(C=F[0])+w(C,F[1],i,r,m)}}return u}function A(e,t,n,r,o,s){for(var a=0,c=r;a<c.length;a++){var l=c[a],u=l.selector,h=l.style,d=l.isUnique,f=s?E(u,o):u,p=d?"u\0"+(++i).toString(36):"s\0"+t+"\0"+h;(v=new O(h,p)).add(new S(f,"k\0"+t+"\0"+f)),e.add(v)}for(var g=0,m=n;g<m.length;g++){var v,y=m[g],b=(u=y.selector,h=y.style,y.rules),w=y.styles;A(v=new x(u,h,"r\0"+t+"\0"+u+"\0"+h),t,b,w,o,s),e.add(v)}}function C(e){for(var t="",n=0;n<e.length;n++)t+=e[n];return t}t.escape=function(e){return e.replace(a,"\\$&")},t.hyphenate=g,t.stringHash=m;var F={add:function(){},change:function(){},remove:function(){}},T=function(){function e(e){void 0===e&&(e=F),this.changes=e,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}return e.prototype.add=function(t){var n=this._counters[t.id]||0,i=this._children[t.id]||t.clone();if(this._counters[t.id]=n+1,0===n)this._children[i.id]=i,this._keys.push(i.id),this.sheet.push(i.getStyles()),this.changeId++,this.changes.add(i,this._keys.length-1);else if(i instanceof e&&t instanceof e){var r=this._keys.indexOf(t.id),o=i.changeId;i.merge(t),i.changeId!==o&&(this.sheet.splice(r,1,i.getStyles()),this.changeId++,this.changes.change(i,r,r))}return i},e.prototype.remove=function(t){var n=this._counters[t.id];if(void 0!==n&&n>0){this._counters[t.id]=n-1;var i=this._children[t.id],r=this._keys.indexOf(i.id);if(1===n)delete this._counters[t.id],delete this._children[t.id],this._keys.splice(r,1),this.sheet.splice(r,1),this.changeId++,this.changes.remove(i,r);else if(i instanceof e&&t instanceof e){var o=i.changeId;i.unmerge(t),i.changeId!==o&&(this.sheet.splice(r,1,i.getStyles()),this.changeId++,this.changes.change(i,r,r))}}},e.prototype.values=function(){var e=this;return this._keys.map(function(t){return e._children[t]})},e.prototype.merge=function(e){for(var t=0,n=e.values();t<n.length;t++){var i=n[t];this.add(i)}return this},e.prototype.unmerge=function(e){for(var t=0,n=e.values();t<n.length;t++){var i=n[t];this.remove(i)}return this},e.prototype.clone=function(){return(new e).merge(this)},e}();t.Cache=T;var S=function(){function e(e,t){this.selector=e,this.id=t}return e.prototype.getStyles=function(){return this.selector},e.prototype.clone=function(){return new e(this.selector,this.id)},e}();t.Selector=S;var O=function(e){function t(t,n){var i=e.call(this)||this;return i.style=t,i.id=n,i}return n(t,e),t.prototype.getStyles=function(){return this.sheet.join(",")+"{"+this.style+"}"},t.prototype.clone=function(){return new t(this.style,this.id).merge(this)},t}(T);t.Style=O;var x=function(e){function t(t,n,i){var r=e.call(this)||this;return r.rule=t,r.style=n,r.id=i,r}return n(t,e),t.prototype.getStyles=function(){return this.rule+"{"+this.style+C(this.sheet)+"}"},t.prototype.clone=function(){return new t(this.rule,this.style,this.id).merge(this)},t}(T);t.Rule=x;var k=function(e){function i(t,n,i,r){var o=e.call(this,r)||this;return o.hash=t,o.debug=n,o.id=i,o}return n(i,e),i.prototype.registerStyle=function(e,n){var i=[],r=[],o=w("&",e,i,r),s="f"+this.hash(o),a=this.debug&&n?n+"_"+s:s;return A(this,o,i,r,"."+t.escape(a),!0),a},i.prototype.registerKeyframes=function(e,t){return this.registerHashRule("@keyframes",e,t)},i.prototype.registerHashRule=function(e,n,i){var r=[],o=[],s=w("",n,r,o),a="f"+this.hash(s),c=this.debug&&i?i+"_"+a:a,l=new x(e+" "+t.escape(c),"","h\0"+s+"\0"+e);return A(l,s,r,o,"",!1),this.add(l),c},i.prototype.registerRule=function(e,t){var n=[],i=[];A(this,w(e,t,n,i),n,i,"",!1)},i.prototype.registerCss=function(e){return this.registerRule("",e)},i.prototype.getStyles=function(){return C(this.sheet)},i.prototype.clone=function(){return new i(this.hash,this.debug,this.id,this.changes).merge(this)},i}(T);t.FreeStyle=k,t.create=function(t,n,r){return void 0===t&&(t=m),void 0===n&&(n="undefined"!==typeof e&&!1),void 0===r&&(r=F),new k(t,n,"f"+(++i).toString(36),r)}}).call(this,n(205))},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(132)},function(e,t,n){var i;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)&&i.length){var s=r.apply(null,i);s&&e.push(s)}else if("object"===o)for(var a in i)n.call(i,a)&&i[a]&&e.push(a)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(i=function(){return r}.apply(t,[]))||(e.exports=i)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(56),r=n(44);t.VALUETYPES="ValueTypes";var o=function(e){return"".concat(t.VALUETYPES,'["').concat(e,'"]')},s={Int:"number",Float:"number",Boolean:"boolean",ID:"string",String:"string"},a=function(e){return s[e]||e},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?"".concat(t,"/** ").concat(e," */\n"):""},l=function(e){return e.type.name===r.TypeDefinition.ScalarTypeDefinition?function(e){var t={Date:"Date",File:"File",Buffer:"Buffer"};return e in t?t[e]:void 0}(e.name)?"":"".concat(c(e.description),'["').concat(e.name,'"]:any'):e.args&&e.args.length?e.data.type===r.TypeDefinition.UnionTypeDefinition?"".concat(c(e.description),'["').concat(e.name,'"]: {').concat(e.args.map(function(e){return'\t\t["...on '.concat(e.type.name,'"] : ').concat(o(e.type.name))}).join(",\n"),"\n}"):e.data.type===r.TypeDefinition.EnumTypeDefinition?"".concat(c(e.description),'["').concat(e.name,'"]:').concat(e.name):"".concat(c(e.description),'["').concat(e.name,'"]: {\n').concat(e.args.map(function(e){return function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.type.options,l=t.args,u=!(!r||!r.find(function(e){return e===i.Options.array})),h=!(!r||!r.find(function(e){return e===i.Options.arrayRequired})),d=!(!r||!r.find(function(e){return e===i.Options.required})),f=function(e){return u?h?e:"".concat(e,"?"):d?e:"".concat(e,"?")},p=function(e){return u?d?"".concat(e,"[]"):"(".concat(e," | undefined)[]"):e},g=function(t){return n&&l&&l.length?"".concat(t,":(props:{").concat(l.map(function(t){return e(t,!1)}),"}) => "):f(t)+":"};return"".concat(c(t.description,"\t"),"\t").concat(g(t.name)).concat(p(t.type.name in s?a(t.type.name):o(t.type.name)))}(e)}).join(",\n"),"\n}"):void 0};t.resolveValueTypes=function(e){return"export type ".concat(t.VALUETYPES," = {\n    ").concat(e.filter(function(e){return e.args&&e.args.length}).map(l).join(",\n\t"),"\n  }")}},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(40),o=n(68),s=n(96),a=function(){function e(){}return e.createObjectDefinition=function(e,t){return e.instances?e.instances.map(function(n){return i({},e,{type:t,root:void 0,main:void 0,parent:e,id:r.Utils.generateId()},n,{node:i({},e.node,{inputs:[],outputs:[]},n&&n.node||{})})}):[]},e.createBasicNode=function(e,t,n){void 0===n&&(n={});var o=r.Utils.deepCopy(t.node);return i({name:t.type||"Node",id:r.Utils.generateId(),description:"Enter your description",x:e.x,y:e.y,inputs:[],outputs:[],options:[],definition:t},o,n)},e.createNode=function(t,n,i){var o=n.node,s=r.Utils.deepCopy(o),a=e.createBasicNode(t,n);if(n.instances){var c=e.createObjectDefinition(n,s.name||""+n.type+i.length);a.editsDefinitions=c;for(var l=0,u=c;l<u.length;l++){var h=u[l];i.push(h)}}return a},e.AcceptedNodeDefinitionsToDefinitions=function(e){var t=[];return function e(n){n.forEach(function(n){n.definition&&t.push(n.definition),n.category&&e(n.category.definitions)})}(e),t},e.getDefinitionAcceptedInputs=function(t,n,i,r,o){return e.AcceptedNodeDefinitionsToDefinitions(e.getDefinitionAcceptedInputCategories(t,n,i,r,o))},e.getDefinitionAcceptedOutputs=function(t,n,i,r,o){return e.AcceptedNodeDefinitionsToDefinitions(e.getDefinitionAcceptedOutputCategories(t,n,i,r,o))},e.getDefinitionAcceptedOutputCategories=function(e,t,n,i,o){var s=[];return e.acceptsOutputs&&(s=s.concat(e.acceptsOutputs(e,t,n,i,o))),r.Utils.dedupe(s)},e.getDefinitionAcceptedInputCategories=function(e,t,n,i,o){var s=[];return e.acceptsInputs&&(s=s.concat(e.acceptsInputs(e,t,n,i,o))),r.Utils.dedupe(s)},e.graphFromNode=function(e){var t=[];!function e(n){t.find(function(e){return e===n})||(t.push(n),n.inputs&&n.inputs.map(e),n.outputs&&n.outputs.map(e))}(e);var n=t.map(function(e){return e.x}),i=t.map(function(e){return e.y}),r={x:Math.min.apply(Math,n),y:Math.min.apply(Math,i)},o={x:Math.max.apply(Math,n),y:Math.max.apply(Math,i)},s=Math.abs(r.x-o.x),a=Math.abs(r.y-o.y);return{nodes:t,width:s,height:a,center:{x:r.x+s/2,y:r.y+a/2}}},e.graphsFromNodes=function(t){for(var n=[],i=[],r=function(t){if(n.find(function(e){return e===t}))return"continue";var r=e.graphFromNode(t);n=n.concat(r.nodes),i.push(r)},o=0,s=t;o<s.length;o++){r(s[o])}return i},e.positionGraph=function(t,n){if(void 0===n&&(n=o.DefaultDiagramTheme),0===t.nodes.length)return t;var i={},r=[],s=t.center;!function e(t,n){void 0===n&&(n=0),r.find(function(e){return e===t})||(i[n]=i[n]||[],r.push(t),i[n].push(t),t.inputs&&t.inputs.forEach(function(t){return e(t,n-1)}))}(t.nodes.find(function(e){return!e.outputs||0===e.outputs.length}));var a=Object.keys(i).map(function(e){return parseInt(e)});a.sort(function(e,t){return e-t});var c=n.node,l=n.port,u=a.length*(c.width+c.spacing.x+2*l.width)-c.spacing.x;a.forEach(function(e,t){var n=0;0===t?i[e].sort(function(e,t){var n=e.outputs[0].id,i=t.outputs[0].id;return n===i?0:n>i?1:-1}):i[e].sort(function(e,t){return t.inputs&&0!==t.inputs.length?e.inputs===t.inputs?0:(e.inputs?e.inputs.length:0)>(t.inputs?t.inputs.length:0)?1:-1:-2}),i[e].forEach(function(e,i,r){if(e.x=t*u/a.length,e.inputs&&e.inputs.length>0){var o=e.inputs.map(function(e){return e.y}),s=[Math.min.apply(Math,o),Math.max.apply(Math,o)],c=s[0],l=s[1];e.y=(c+l)/2,n=n>e.y?n:e.y}}),i[e].forEach(function(e,i,r){e.x=t*u/a.length,e.inputs&&e.inputs.length>0||(e.y=n+c.height+c.spacing.y,n=e.y)})});var h=e.graphFromNode(t.nodes[0]),d=s.x-h.center.x,f=s.y-h.center.y;return h.nodes.forEach(function(e){e.x+=d,e.y+=f}),e.graphFromNode(t.nodes[0])},e.beautifyDiagram=function(t,n){var i=e.graphsFromNodes(t);s.RectanglePacker.pack(i.map(function(t){return e.positionGraph(t)}),n)},e.createTreeNode=function(e,t){return void 0===t&&(t=o.DefaultDiagramTheme),{data:e,bb:{min:{x:e.x-t.port.width,y:e.y-t.node.typeSize},max:{x:e.x+t.node.width+t.port.width,y:e.y+t.node.height}}}},e}();t.NodeUtils=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(68),r=function(){function e(){}return e.linkToTree=function(t,n){void 0===n&&(n=i.DefaultDiagramTheme);var r=t.o,o=t.i,s=e.calculateLinkXCenter(t,n);return{data:t,bb:{min:{x:s-15,y:(r.y<=o.y?r.y:o.y)+n.node.height/2},max:{x:s+15,y:(r.y>o.y?r.y:o.y)+n.node.height/2}}}},e.calculateLinkCenterPoint=function(e,t,n){void 0===n&&(n=i.DefaultDiagramTheme);var r=e.o.x+n.node.width;return(t.x-r)/(e.i.x-r)},e.calculateLinkXCenter=function(t,n){return void 0===n&&(n=i.DefaultDiagramTheme),e.calculateLinkXCenterMath(t.o.x+n.node.width,t.i.x,t.centerPoint)},e.calculateLinkXCenterMath=function(e,t,n){return e-(e-t)*n},e}();t.LinkUtils=r},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(98),o=function(){return function e(t,n,o,s){void 0===t&&(t=new r.Region),void 0===n&&(n=50),void 0===o&&(o=10),void 0===s&&(s=0);var a=this;this.bb=t,this.capacity=n,this.maxDepth=o,this.depth=s,this.objects=[],this.insert=function(e){if(!a.bb.intersect(e.bb))return!1;if(a.objects.length<a.capacity&&!a.sides||a.depth===a.maxDepth)return a.objects.push(e),!0;a.sides||a.subdivide();var t=!1;return a.sides.nw.insert(e)&&(t=!0),a.sides.ne.insert(e)&&(t=!0),a.sides.sw.insert(e)&&(t=!0),a.sides.se.insert(e)&&(t=!0),t},this.delete=function(e,t){for(var n=a.pickTree(i({},t)),r=0,o=0,s=n.objects;o<s.length;o++){s[o].data===e&&n.objects.splice(r,1)[0].data,r++}},this.update=function(e,t,n){a.delete(e,t),a.insert({data:e,bb:n})},this.subdivide=function(){var t=a.bb.center();a.sides={nw:new e(new r.Region(a.bb.min,t),a.capacity,a.maxDepth,a.depth+1),ne:new e(new r.Region({x:t.x,y:a.bb.min.y},{x:a.bb.max.x,y:t.y}),a.capacity,a.maxDepth,a.depth+1),sw:new e(new r.Region({x:a.bb.min.x,y:t.y},{x:t.x,y:a.bb.max.y}),a.capacity,a.maxDepth,a.depth+1),se:new e(new r.Region(t,a.bb.max),a.capacity,a.maxDepth,a.depth+1)};for(var n=0,i=a.objects;n<i.length;n++){var o=i[n];a.insert(o)}},this.queryRange=function(e){var t=[];if(!a.bb.intersect(e))return t;for(var n=0,i=a.objects;n<i.length;n++){var r=i[n];e.intersect(r.bb)&&t.push(r.data)}if(!a.sides)return t;var o=a.sides,s=o.nw,c=o.ne,l=o.sw,u=o.se,h=t.concat(s.queryRange(e)).concat(c.queryRange(e)).concat(u.queryRange(e)).concat(l.queryRange(e));return h.filter(function(e,t){return h.indexOf(e)===t})},this.pick=function(e){var t=a.pickTree(e).objects.filter(function(t){return r.Region.regionContains(t.bb,e)});if(t.length>0)return t[t.length-1].data},this.pickTree=function(e){return a.sides?a.sides.ne.pickTree(e)||a.sides.nw.pickTree(e)||a.sides.se.pickTree(e)||a.sides.sw.pickTree(e):a.bb.contains(e)?a:void 0}}}();t.QuadTree=o},function(e,t,n){e.exports=n(207)()},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i=n(65);function r(e){return o(e.source,Object(i.a)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,i=a(n)+e.body,r=t.line-1,o=e.locationOffset.line-1,c=t.line+o,l=1===t.line?n:0,u=t.column+l,h="".concat(e.name,":").concat(c,":").concat(u,"\n"),d=i.split(/\r\n|[\n\r]/g),f=d[r];if(f.length>120){for(var p=Math.floor(u/80),g=u%80,m=[],v=0;v<f.length;v+=80)m.push(f.slice(v,v+80));return h+s([["".concat(c),m[0]]].concat(m.slice(1,p+1).map(function(e){return["",e]}),[[" ",a(g-1)+"^"],["",m[p+1]]]))}return h+s([["".concat(c-1),d[r-1]],["".concat(c),f],["",a(u-1)+"^"],["".concat(c+1),d[r+1]]])}function s(e){var t=e.filter(function(e){e[0];return void 0!==e[1]}),n=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,i=e[0],r=e[1];return a(n-(t=i).length)+t+" | "+r}).join("\n")}function a(e){return Array(e+1).join(" ")}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(25),r=n(27),o=n(4),s=n(37);function a(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),a=Object.create(null),l=0,u=e.getDocument().definitions;l<u.length;l++){var h=u[l];Object(s.d)(h)&&(a[h.name.value]=!0)}var d=Object.keys(n).concat(Object.keys(a));return{NamedType:function(t,l,u,h,f){var p,g=t.name.value;if(!n[g]&&!a[g]){var m=f[2]||u,v=(p=m,Boolean(p&&!Array.isArray(p)&&(Object(s.g)(p)||Object(s.h)(p))));if(v&&function(e){return-1!==c.indexOf(e)}(g))return;var y=Object(r.a)(g,v?c.concat(d):d);e.reportError(new o.a(function(e,t){return'Unknown type "'.concat(e,'".')+Object(i.a)(t.map(function(e){return'"'.concat(e,'"')}))}(g,y),t))}}}}var c=n(11).g.map(function(e){return e.name})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(4),r=n(1),o=n(7),s=n(14);function a(e){for(var t=Object.create(null),n=e.getSchema(),a=n?n.getDirectives():s.i,c=0;c<a.length;c++){var l=a[c];t[l.name]=l.locations}for(var u=e.getDocument().definitions,h=0;h<u.length;h++){var d=u[h];d.kind===r.a.DIRECTIVE_DEFINITION&&(t[d.name.value]=d.locations.map(function(e){return e.value}))}return{Directive:function(n,s,a,c,l){var u=n.name.value,h=t[u];if(h){var d=function(e){var t=e[e.length-1];if(!Array.isArray(t))switch(t.kind){case r.a.OPERATION_DEFINITION:switch(t.operation){case"query":return o.a.QUERY;case"mutation":return o.a.MUTATION;case"subscription":return o.a.SUBSCRIPTION}break;case r.a.FIELD:return o.a.FIELD;case r.a.FRAGMENT_SPREAD:return o.a.FRAGMENT_SPREAD;case r.a.INLINE_FRAGMENT:return o.a.INLINE_FRAGMENT;case r.a.FRAGMENT_DEFINITION:return o.a.FRAGMENT_DEFINITION;case r.a.VARIABLE_DEFINITION:return o.a.VARIABLE_DEFINITION;case r.a.SCHEMA_DEFINITION:case r.a.SCHEMA_EXTENSION:return o.a.SCHEMA;case r.a.SCALAR_TYPE_DEFINITION:case r.a.SCALAR_TYPE_EXTENSION:return o.a.SCALAR;case r.a.OBJECT_TYPE_DEFINITION:case r.a.OBJECT_TYPE_EXTENSION:return o.a.OBJECT;case r.a.FIELD_DEFINITION:return o.a.FIELD_DEFINITION;case r.a.INTERFACE_TYPE_DEFINITION:case r.a.INTERFACE_TYPE_EXTENSION:return o.a.INTERFACE;case r.a.UNION_TYPE_DEFINITION:case r.a.UNION_TYPE_EXTENSION:return o.a.UNION;case r.a.ENUM_TYPE_DEFINITION:case r.a.ENUM_TYPE_EXTENSION:return o.a.ENUM;case r.a.ENUM_VALUE_DEFINITION:return o.a.ENUM_VALUE;case r.a.INPUT_OBJECT_TYPE_DEFINITION:case r.a.INPUT_OBJECT_TYPE_EXTENSION:return o.a.INPUT_OBJECT;case r.a.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===r.a.INPUT_OBJECT_TYPE_DEFINITION?o.a.INPUT_FIELD_DEFINITION:o.a.ARGUMENT_DEFINITION}}(l);d&&-1===h.indexOf(d)&&e.reportError(new i.a(function(e,t){return'Directive "'.concat(e,'" may not be used on ').concat(t,".")}(u,d),n))}else e.reportError(new i.a('Unknown directive "'.concat(u,'".'),n))}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(4),r=n(1),o=n(14);function s(e){return'The directive "'.concat(e,'" can only be used once at this location.')}function a(e){for(var t=Object.create(null),n=e.getSchema(),a=n?n.getDirectives():o.i,c=0;c<a.length;c++){var l=a[c];t[l.name]=!l.isRepeatable}for(var u=e.getDocument().definitions,h=0;h<u.length;h++){var d=u[h];d.kind===r.a.DIRECTIVE_DEFINITION&&(t[d.name.value]=!d.repeatable)}return{enter:function(n){var r=n.directives;if(r)for(var o=Object.create(null),a=0;a<r.length;a++){var c=r[a],l=c.name.value;t[l]&&(o[l]?e.reportError(new i.a(s(l),[o[l],c])):o[l]=c)}}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return d});var i=n(25),r=n(27),o=n(4),s=n(1),a=n(14);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){return'Unknown argument "'.concat(e,'" on directive "@').concat(t,'".')+Object(i.a)(n.map(function(e){return'"'.concat(e,'"')}))}function h(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},d(e),{Argument:function(t){var n=e.getArgument(),s=e.getFieldDef(),a=e.getParentType();if(!n&&s&&a){var c=t.name.value,l=s.args.map(function(e){return e.name});e.reportError(new o.a(function(e,t,n,r){return'Unknown argument "'.concat(e,'" on field "').concat(t,'" of type "').concat(n,'".')+Object(i.a)(r.map(function(e){return'"'.concat(e,'"')}))}(c,s.name,a.name,Object(r.a)(c,l)),t))}}})}function d(e){for(var t=Object.create(null),n=e.getSchema(),i=n?n.getDirectives():a.i,c=0;c<i.length;c++){var l=i[c];t[l.name]=l.args.map(function(e){return e.name})}for(var h=e.getDocument().definitions,d=0;d<h.length;d++){var f=h[d];f.kind===s.a.DIRECTIVE_DEFINITION&&(t[f.name.value]=f.arguments?f.arguments.map(function(e){return e.name.value}):[])}return{Directive:function(n){var i=n.name.value,s=t[i];if(n.arguments&&s)for(var a=0,c=n.arguments;a<c.length;a++){var l=c[a],h=l.name.value;if(-1===s.indexOf(h)){var d=Object(r.a)(h,s);e.reportError(new o.a(u(h,i,d),l))}}return!1}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(4);function r(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var r=n.name.value;return t[r]?e.reportError(new i.a(function(e){return'There can be only one argument named "'.concat(e,'".')}(r),[t[r],n.name])):t[r]=n.name,!1}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return p});var i=n(3),r=n(24),o=n(4),s=n(1),a=n(15),c=n(14),l=n(0);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t,n){return'Directive "@'.concat(e,'" argument "').concat(t,'" of type "').concat(n,'" is required, but it was not provided.')}function f(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(n,!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},p(e),{Field:{leave:function(t){var n=e.getFieldDef();if(!n)return!1;for(var s,a,c,u=t.arguments||[],h=Object(r.a)(u,function(e){return e.name.value}),d=0,f=n.args;d<f.length;d++){var p=f[d];!h[p.name]&&Object(l.P)(p)&&e.reportError(new o.a((s=n.name,a=p.name,c=Object(i.a)(p.type),'Field "'.concat(s,'" argument "').concat(a,'" of type "').concat(c,'" is required, but it was not provided.')),t))}}}})}function p(e){for(var t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():c.i,h=0;h<u.length;h++){var f=u[h];t[f.name]=Object(r.a)(f.args.filter(l.P),function(e){return e.name})}for(var p=e.getDocument().definitions,m=0;m<p.length;m++){var v=p[m];v.kind===s.a.DIRECTIVE_DEFINITION&&(t[v.name.value]=Object(r.a)(v.arguments?v.arguments.filter(g):[],function(e){return e.name.value}))}return{Directive:{leave:function(n){var s=n.name.value,c=t[s];if(c)for(var u=n.arguments||[],h=Object(r.a)(u,function(e){return e.name.value}),f=0,p=Object.keys(c);f<p.length;f++){var g=p[f];if(!h[g]){var m=c[g].type;e.reportError(new o.a(d(s,g,Object(l.S)(m)?Object(i.a)(m):Object(a.a)(m)),n))}}}}}}function g(e){return e.type.kind===s.a.NON_NULL_TYPE&&null==e.defaultValue}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(4);function r(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 r=t.name.value;n[r]?e.reportError(new i.a(function(e){return'There can be only one input field named "'.concat(e,'".')}(r),[n[r],t.name])):n[r]=t.name}}}},function(e,t,n){"use strict";var i=n(4),r=n(1),o=n(37);var s=n(109),a=n(110),c=n(111),l=n(82),u=n(112),h=n(113),d=n(114),f=n(115),p=n(116),g=n(117),m=n(118),v=n(119),y=n(120),b=n(121),E=n(122),w=n(123),A=n(83),C=n(84),F=n(85),T=n(86),S=n(71),O=n(87),x=n(124),k=n(125),_=n(88);function D(e){return"There can be only one ".concat(e," type in schema.")}function R(e){return"Type for ".concat(e," already defined in the schema. It cannot be redefined.")}var B=n(0);function L(e,t){return'Enum value "'.concat(e,".").concat(t,'" can only be defined once.')}function M(e,t){return'Enum value "'.concat(e,".").concat(t,'" already exists in the schema. It cannot also be defined in this type extension.')}function N(e,t){return'Field "'.concat(e,".").concat(t,'" can only be defined once.')}function $(e,t){return'Field "'.concat(e,".").concat(t,'" already exists in the schema. It cannot also be defined in this type extension.')}function I(e,t){return!!(Object(B.N)(e)||Object(B.H)(e)||Object(B.F)(e))&&e.getFields()[t]}var j,P=n(25),V=n(27);function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){return"Cannot extend non-".concat(t,' type "').concat(e,'".')}var W=(U(j={},r.a.SCALAR_TYPE_DEFINITION,r.a.SCALAR_TYPE_EXTENSION),U(j,r.a.OBJECT_TYPE_DEFINITION,r.a.OBJECT_TYPE_EXTENSION),U(j,r.a.INTERFACE_TYPE_DEFINITION,r.a.INTERFACE_TYPE_EXTENSION),U(j,r.a.UNION_TYPE_DEFINITION,r.a.UNION_TYPE_EXTENSION),U(j,r.a.ENUM_TYPE_DEFINITION,r.a.ENUM_TYPE_EXTENSION),U(j,r.a.INPUT_OBJECT_TYPE_DEFINITION,r.a.INPUT_OBJECT_TYPE_EXTENSION),j);function H(e){switch(e){case r.a.SCALAR_TYPE_EXTENSION:return"scalar";case r.a.OBJECT_TYPE_EXTENSION:return"object";case r.a.INTERFACE_TYPE_EXTENSION:return"interface";case r.a.UNION_TYPE_EXTENSION:return"union";case r.a.ENUM_TYPE_EXTENSION:return"enum";case r.a.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:return"unknown type"}}n.d(t,"a",function(){return G}),n.d(t,"b",function(){return K});var G=Object.freeze([function(e){return{Document:function(t){for(var n=0,s=t.definitions;n<s.length;n++){var a=s[n];Object(o.b)(a)||e.reportError(new i.a((c=a.kind===r.a.SCHEMA_DEFINITION||a.kind===r.a.SCHEMA_EXTENSION?"schema":a.name.value,"The ".concat(c," definition is not executable.")),a))}var c;return!1}}},s.a,a.a,c.a,l.a,u.a,h.a,d.a,f.a,p.a,g.a,m.a,v.a,y.a,b.a,E.a,w.a,A.a,C.a,F.a,T.a,S.a,O.a,x.a,k.a,_.a]),K=Object.freeze([function(e){var t=e.getSchema(),n=t&&(t.astNode||t.getQueryType()||t.getMutationType()||t.getSubscriptionType()),r=0;return{SchemaDefinition:function(t){n?e.reportError(new i.a("Cannot define a new schema within a schema extension.",t)):(r>0&&e.reportError(new i.a("Must provide only one schema definition.",t)),++r)}}},function(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){if(t.operationTypes)for(var o=0,s=t.operationTypes||[];o<s.length;o++){var a=s[o],c=a.operation,l=n[c];r[c]?e.reportError(new i.a(R(c),a)):l?e.reportError(new i.a(D(c),[l,a])):n[c]=a}return!1}},function(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){var o=r.name.value;if(!n||!n.getType(o))return t[o]?e.reportError(new i.a(function(e){return'There can be only one type named "'.concat(e,'".')}(o),[t[o],r.name])):t[o]=r.name,!1;e.reportError(new i.a(function(e){return'Type "'.concat(e,'" already exists in the schema. It cannot also be defined in this type definition.')}(o),r.name))}},function(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(t){var o=t.name.value;if(r[o]||(r[o]=Object.create(null)),t.values)for(var s=r[o],a=0,c=t.values;a<c.length;a++){var l=c[a],u=l.name.value,h=n[o];Object(B.E)(h)&&h.getValue(u)?e.reportError(new i.a(M(o,u),l.name)):s[u]?e.reportError(new i.a(L(o,u),[s[u],l.name])):s[u]=l.name}return!1}},function(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(t){var o=t.name.value;if(r[o]||(r[o]=Object.create(null)),t.fields)for(var s=r[o],a=0,c=t.fields;a<c.length;a++){var l=c[a],u=l.name.value;I(n[o],u)?e.reportError(new i.a($(o,u),l.name)):s[u]?e.reportError(new i.a(N(o,u),[s[u],l.name])):s[u]=l.name}return!1}},function(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(r){var o=r.name.value;if(!n||!n.getDirective(o))return t[o]?e.reportError(new i.a(function(e){return'There can be only one directive named "'.concat(e,'".')}(o),[t[o],r.name])):t[o]=r.name,!1;e.reportError(new i.a(function(e){return'Directive "'.concat(e,'" already exists in the schema. It cannot be redefined.')}(o),r.name))}}},l.a,A.a,C.a,function(e){for(var t=e.getSchema(),n=Object.create(null),s=0,a=e.getDocument().definitions;s<a.length;s++){var c=a[s];Object(o.d)(c)&&(n[c.name.value]=c)}return{ScalarTypeExtension:l,ObjectTypeExtension:l,InterfaceTypeExtension:l,UnionTypeExtension:l,EnumTypeExtension:l,InputObjectTypeExtension:l};function l(o){var s=o.name.value,a=n[s],c=t&&t.getType(s);if(a){var l=W[a.kind];l!==o.kind&&e.reportError(new i.a(z(s,H(l)),[a,o]))}else if(c){var u=function(e){if(Object(B.R)(e))return r.a.SCALAR_TYPE_EXTENSION;if(Object(B.N)(e))return r.a.OBJECT_TYPE_EXTENSION;if(Object(B.H)(e))return r.a.INTERFACE_TYPE_EXTENSION;if(Object(B.T)(e))return r.a.UNION_TYPE_EXTENSION;if(Object(B.E)(e))return r.a.ENUM_TYPE_EXTENSION;if(Object(B.F)(e))return r.a.INPUT_OBJECT_TYPE_EXTENSION}(c);u!==o.kind&&e.reportError(new i.a(z(s,H(u)),o))}else{var h=Object.keys(n);t&&(h=h.concat(Object.keys(t.getTypeMap())));var d=Object(V.a)(s,h);e.reportError(new i.a(function(e,t){return'Cannot extend type "'.concat(e,'" because it is not defined.')+Object(P.a)(t.map(function(e){return'"'.concat(e,'"')}))}(s,d),o.name))}}},F.b,T.a,_.a,O.b])},function(e,t,n){"use strict";var i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(r){return!1}}()?Object.assign:function(e,t){for(var n,a,c=s(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))r.call(n,u)&&(c[u]=n[u]);if(i){a=i(n);for(var h=0;h<a.length;h++)o.call(n,a[h])&&(c[a[h]]=n[a[h]])}}return c}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(137)),i(n(141)),i(n(142)),i(n(147))},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(151)),i(n(155)),i(n(156)),i(n(157))},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);e.exports=function(){return n(i),i}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0,r=n;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].join("")}},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(179),o=function(){function e(){}return e.pack=function(e,t){r.packBoxes(e.map(function(e,n){return{dimensions:[e.width+t.graph.spacing.x,e.height+t.graph.spacing.y],index:n}})).forEach(function(t){var n=e[t.index],r={x:t.box.position[0]+n.width/2,y:t.box.position[1]+n.height/2};n.nodes.forEach(function(e){var t=e.x-n.center.x,i=e.y-n.center.y;e.x=r.x+t,e.y=r.y+i}),n.center=i({},r)})},e}();t.RectanglePacker=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(78);t.QuadraticPath=function(e,t,n,r,o,s,a,c,l){void 0===l&&(l=.5);var u=i.LinkUtils.calculateLinkXCenterMath(t,r,l),h=Math.abs(o-n),d=h>2*s?s:Math.floor(h/2),f=r>t?d:-d,p=o>n?d:-d;e.beginPath(),e.moveTo(t,n),e.lineTo(u-f,n),e.arcTo(u,n,u,n+p,d),e.lineTo(u,o-p),e.arcTo(u,o,u+f,o,d),e.lineTo(r,o),e.lineWidth=a,e.strokeStyle=c,e.stroke()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=1e20,r=function(){function e(t,n){void 0===t&&(t={x:-i,y:-i}),void 0===n&&(n={x:i,y:i});var r=this;this.min=t,this.max=n,this.center=function(){return{x:(r.min.x+r.max.x)/2,y:(r.min.y+r.max.y)/2}},this.intersect=function(e){return!(r.max.x<e.min.x||e.max.x<r.min.x||r.max.y<e.min.y||e.max.y<r.min.y)},this.contains=function(t){return e.regionContains(r,t)}}return e.regionContains=function(e,t){return e.min.x<=t.x&&t.x<=e.max.x&&e.min.y<=t.y&&t.y<=e.max.y},e}();t.Region=r},function(e,t){},function(e,t,n){(function(e,n){var i=200,r="__lodash_hash_undefined__",o=1,s=2,a=9007199254740991,c="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",h="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",v="[object Number]",y="[object Null]",b="[object Object]",E="[object Proxy]",w="[object RegExp]",A="[object Set]",C="[object String]",F="[object Symbol]",T="[object Undefined]",S="[object ArrayBuffer]",O="[object DataView]",x=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[c]=_[l]=_[S]=_[h]=_[O]=_[d]=_[f]=_[p]=_[m]=_[v]=_[b]=_[w]=_[A]=_[C]=_["[object WeakMap]"]=!1;var D="object"==typeof e&&e&&e.Object===Object&&e,R="object"==typeof self&&self&&self.Object===Object&&self,B=D||R||Function("return this")(),L=t&&!t.nodeType&&t,M=L&&"object"==typeof n&&n&&!n.nodeType&&n,N=M&&M.exports===L,$=N&&D.process,I=function(){try{return $&&$.binding&&$.binding("util")}catch(e){}}(),j=I&&I.isTypedArray;function P(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function U(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var z,W,H=Array.prototype,G=Function.prototype,K=Object.prototype,q=B["__core-js_shared__"],Q=G.toString,Y=K.hasOwnProperty,X=function(){var e=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Z=RegExp("^"+Q.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=N?B.Buffer:void 0,te=B.Symbol,ne=B.Uint8Array,ie=K.propertyIsEnumerable,re=H.splice,oe=te?te.toStringTag:void 0,se=Object.getOwnPropertySymbols,ae=ee?ee.isBuffer:void 0,ce=(z=Object.keys,W=Object,function(e){return z(W(e))}),le=$e(B,"DataView"),ue=$e(B,"Map"),he=$e(B,"Promise"),de=$e(B,"Set"),fe=$e(B,"WeakMap"),pe=$e(Object,"create"),ge=Ve(le),me=Ve(ue),ve=Ve(he),ye=Ve(de),be=Ve(fe),Ee=te?te.prototype:void 0,we=Ee?Ee.valueOf:void 0;function Ae(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ce(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Te(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Fe;++t<n;)this.add(e[t])}function Se(e){var t=this.__data__=new Ce(e);this.size=t.size}function Oe(e,t){var n=We(e),i=!n&&ze(e),r=!n&&!i&&He(e),o=!n&&!i&&!r&&Ye(e),s=n||i||r||o,a=s?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],c=a.length;for(var l in e)!t&&!Y.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Pe(l,c))||a.push(l);return a}function xe(e,t){for(var n=e.length;n--;)if(Ue(e[n][0],t))return n;return-1}function ke(e){return null==e?void 0===e?T:y:oe&&oe in Object(e)?function(e){var t=Y.call(e,oe),n=e[oe];try{e[oe]=void 0;var i=!0}catch(o){}var r=J.call(e);i&&(t?e[oe]=n:delete e[oe]);return r}(e):function(e){return J.call(e)}(e)}function _e(e){return Qe(e)&&ke(e)==c}function De(e,t,n,i,r){return e===t||(null==e||null==t||!Qe(e)&&!Qe(t)?e!==e&&t!==t:function(e,t,n,i,r,a){var u=We(e),p=We(t),g=u?l:je(e),y=p?l:je(t),E=(g=g==c?b:g)==b,T=(y=y==c?b:y)==b,x=g==y;if(x&&He(e)){if(!He(t))return!1;u=!0,E=!1}if(x&&!E)return a||(a=new Se),u||Ye(e)?Le(e,t,n,i,r,a):function(e,t,n,i,r,a,c){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!a(new ne(e),new ne(t)));case h:case d:case v:return Ue(+e,+t);case f:return e.name==t.name&&e.message==t.message;case w:case C:return e==t+"";case m:var l=V;case A:var u=i&o;if(l||(l=U),e.size!=t.size&&!u)return!1;var p=c.get(e);if(p)return p==t;i|=s,c.set(e,t);var g=Le(l(e),l(t),i,r,a,c);return c.delete(e),g;case F:if(we)return we.call(e)==we.call(t)}return!1}(e,t,g,n,i,r,a);if(!(n&o)){var k=E&&Y.call(e,"__wrapped__"),_=T&&Y.call(t,"__wrapped__");if(k||_){var D=k?e.value():e,R=_?t.value():t;return a||(a=new Se),r(D,R,n,i,a)}}if(!x)return!1;return a||(a=new Se),function(e,t,n,i,r,s){var a=n&o,c=Me(e),l=c.length,u=Me(t).length;if(l!=u&&!a)return!1;var h=l;for(;h--;){var d=c[h];if(!(a?d in t:Y.call(t,d)))return!1}var f=s.get(e);if(f&&s.get(t))return f==t;var p=!0;s.set(e,t),s.set(t,e);var g=a;for(;++h<l;){d=c[h];var m=e[d],v=t[d];if(i)var y=a?i(v,m,d,t,e,s):i(m,v,d,e,t,s);if(!(void 0===y?m===v||r(m,v,n,i,s):y)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var b=e.constructor,E=t.constructor;b!=E&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E)&&(p=!1)}return s.delete(e),s.delete(t),p}(e,t,n,i,r,a)}(e,t,n,i,De,r))}function Re(e){return!(!qe(e)||function(e){return!!X&&X in e}(e))&&(Ge(e)?Z:x).test(Ve(e))}function Be(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||K;return e===n}(e))return ce(e);var t=[];for(var n in Object(e))Y.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Le(e,t,n,i,r,a){var c=n&o,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var h=a.get(e);if(h&&a.get(t))return h==t;var d=-1,f=!0,p=n&s?new Te:void 0;for(a.set(e,t),a.set(t,e);++d<l;){var g=e[d],m=t[d];if(i)var v=c?i(m,g,d,t,e,a):i(g,m,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!P(t,function(e,t){if(o=t,!p.has(o)&&(g===e||r(g,e,n,i,a)))return p.push(t);var o})){f=!1;break}}else if(g!==m&&!r(g,m,n,i,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function Me(e){return function(e,t,n){var i=t(e);return We(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,Xe,Ie)}function Ne(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function $e(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Re(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=pe?pe(null):{},this.size=0},Ae.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ae.prototype.get=function(e){var t=this.__data__;if(pe){var n=t[e];return n===r?void 0:n}return Y.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return pe?void 0!==t[e]:Y.call(t,e)},Ae.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pe&&void 0===t?r:t,this},Ce.prototype.clear=function(){this.__data__=[],this.size=0},Ce.prototype.delete=function(e){var t=this.__data__,n=xe(t,e);return!(n<0)&&(n==t.length-1?t.pop():re.call(t,n,1),--this.size,!0)},Ce.prototype.get=function(e){var t=this.__data__,n=xe(t,e);return n<0?void 0:t[n][1]},Ce.prototype.has=function(e){return xe(this.__data__,e)>-1},Ce.prototype.set=function(e,t){var n=this.__data__,i=xe(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Fe.prototype.clear=function(){this.size=0,this.__data__={hash:new Ae,map:new(ue||Ce),string:new Ae}},Fe.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},Fe.prototype.get=function(e){return Ne(this,e).get(e)},Fe.prototype.has=function(e){return Ne(this,e).has(e)},Fe.prototype.set=function(e,t){var n=Ne(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Te.prototype.add=Te.prototype.push=function(e){return this.__data__.set(e,r),this},Te.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.clear=function(){this.__data__=new Ce,this.size=0},Se.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ce){var r=n.__data__;if(!ue||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fe(r)}return n.set(e,t),this.size=n.size,this};var Ie=se?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}(se(e),function(t){return ie.call(e,t)}))}:function(){return[]},je=ke;function Pe(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function Ve(e){if(null!=e){try{return Q.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ue(e,t){return e===t||e!==e&&t!==t}(le&&je(new le(new ArrayBuffer(1)))!=O||ue&&je(new ue)!=m||he&&"[object Promise]"!=je(he.resolve())||de&&je(new de)!=A||fe&&"[object WeakMap]"!=je(new fe))&&(je=function(e){var t=ke(e),n=t==b?e.constructor:void 0,i=n?Ve(n):"";if(i)switch(i){case ge:return O;case me:return m;case ve:return"[object Promise]";case ye:return A;case be:return"[object WeakMap]"}return t});var ze=_e(function(){return arguments}())?_e:function(e){return Qe(e)&&Y.call(e,"callee")&&!ie.call(e,"callee")},We=Array.isArray;var He=ae||function(){return!1};function Ge(e){if(!qe(e))return!1;var t=ke(e);return t==p||t==g||t==u||t==E}function Ke(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function qe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qe(e){return null!=e&&"object"==typeof e}var Ye=j?function(e){return function(t){return e(t)}}(j):function(e){return Qe(e)&&Ke(e.length)&&!!_[ke(e)]};function Xe(e){return null!=(t=e)&&Ke(t.length)&&!Ge(t)?Oe(e):Be(e);var t}n.exports=function(e,t){return De(e,t)}}).call(this,n(101),n(209)(e))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAceInstance=t.debounce=t.editorEvents=t.editorOptions=void 0;t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];t.getAceInstance=function(){var e;return window.ace?(e=window.ace).acequire=window.ace.require||window.ace.acequire:e=n(103),e};t.debounce=function(e,t){var n=null;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(i,r)},t)}}},function(e,t,n){!function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function e(t,n,i){"string"===typeof t?(2==arguments.length&&(i=n),e.modules[t]||(e.payloads[t]=i,e.modules[t]=null)):e.original?e.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n=function(e,t,n){if("string"===typeof t){var o=r(e,t);if(void 0!=o)return n&&n(),o}else if("[object Array]"===Object.prototype.toString.call(t)){for(var s=[],a=0,c=t.length;a<c;++a){var l=r(e,t[a]);if(void 0==l&&i.original)return;s.push(l)}return n&&n.apply(null,s)||!0}},i=function e(t,i){var r=n("",t,i);return void 0==r&&e.original?e.original.apply(this,arguments):r},r=function(e,i){i=function e(t,n){if(-1!==n.indexOf("!")){var i=n.split("!");return e(t,i[0])+"!"+e(t,i[1])}if("."==n.charAt(0))for(n=t.split("/").slice(0,-1).join("/")+"/"+n;-1!==n.indexOf(".")&&r!=n;){var r=n;n=n.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return n}(e,i);var r=t.modules[i];if(!r){if("function"===typeof(r=t.payloads[i])){var o={},s={id:i,uri:"",exports:o,packaged:!0};o=r(function(e,t){return n(i,e,t)},o,s)||s.exports,t.modules[i]=o,delete t.payloads[i]}r=t.modules[i]=o||r}return r};!function(n){var r=e;n&&(e[n]||(e[n]={}),r=e[n]),r.define&&r.define.packaged||(t.original=r.define,r.define=t,r.define.packaged=!0),r.acequire&&r.acequire.packaged||(i.original=r.acequire,r.acequire=i,r.acequire.packaged=!0)}("ace")}(),ace.define("ace/lib/regexp",["require","exports","module"],function(e,t,n){"use strict";var i={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},r=void 0===i.exec.call(/()??/,"")[1],o=function(){var e=/^/g;return i.test.call(e,""),!e.lastIndex}();function s(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}function a(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var i=n||0;i<e.length;i++)if(e[i]===t)return i;return-1}o&&r||(RegExp.prototype.exec=function(e){var t,n,c=i.exec.apply(this,arguments);if("string"==typeof e&&c){if(!r&&c.length>1&&a(c,"")>-1&&(n=RegExp(this.source,i.replace.call(s(this),"g","")),i.replace.call(e.slice(c.index),n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(c[e]=void 0)})),this._xregexp&&this._xregexp.captureNames)for(var l=1;l<c.length;l++)(t=this._xregexp.captureNames[l-1])&&(c[t]=c[l]);!o&&this.global&&!c[0].length&&this.lastIndex>c.index&&this.lastIndex--}return c},o||(RegExp.prototype.test=function(e){var t=i.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(e,t,n){function i(){}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=d.call(arguments,1),r=function i(){if(this instanceof i){var r=t.apply(this,n.concat(d.call(arguments)));return Object(r)===r?r:this}return t.apply(e,n.concat(d.call(arguments)))};return t.prototype&&(i.prototype=t.prototype,r.prototype=new i,i.prototype=null),r});var r,o,s,a,c,l=Function.prototype.call,u=Array.prototype,h=Object.prototype,d=u.slice,f=l.bind(h.toString),p=l.bind(h.hasOwnProperty);if((c=p(h,"__defineGetter__"))&&(r=l.bind(h.__defineGetter__),o=l.bind(h.__defineSetter__),s=l.bind(h.__lookupGetter__),a=l.bind(h.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var g=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?g.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(d.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):void 0==e?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var i=this.slice(e,e+t),r=d.call(arguments,2),o=r.length;if(e===n)o&&this.push.apply(this,r);else{var s=Math.min(t,n-e),a=e+s,c=a+o-s,l=n-a,u=n-s;if(c<a)for(var h=0;h<l;++h)this[c+h]=this[a+h];else if(c>a)for(h=l;h--;)this[c+h]=this[a+h];if(o&&e===u)this.length=u,this.push.apply(this,r);else for(this.length=u+o,h=0;h<o;++h)this[e+h]=r[h]}return i};Array.isArray||(Array.isArray=function(e){return"[object Array]"==f(e)});var m,v,y=Object("a"),b="a"!=y[0]||!(0 in y);if(Array.prototype.forEach||(Array.prototype.forEach=function(e){var t=R(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=arguments[1],r=-1,o=n.length>>>0;if("[object Function]"!=f(e))throw new TypeError;for(;++r<o;)r in n&&e.call(i,n[r],r,t)}),Array.prototype.map||(Array.prototype.map=function(e){var t=R(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=n.length>>>0,r=Array(i),o=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var s=0;s<i;s++)s in n&&(r[s]=e.call(o,n[s],s,t));return r}),Array.prototype.filter||(Array.prototype.filter=function(e){var t,n=R(this),i=b&&"[object String]"==f(this)?this.split(""):n,r=i.length>>>0,o=[],s=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var a=0;a<r;a++)a in i&&(t=i[a],e.call(s,t,a,n)&&o.push(t));return o}),Array.prototype.every||(Array.prototype.every=function(e){var t=R(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=n.length>>>0,r=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var o=0;o<i;o++)if(o in n&&!e.call(r,n[o],o,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){var t=R(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=n.length>>>0,r=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var o=0;o<i;o++)if(o in n&&e.call(r,n[o],o,t))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e){var t=R(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=n.length>>>0;if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");if(!i&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var r,o=0;if(arguments.length>=2)r=arguments[1];else for(;;){if(o in n){r=n[o++];break}if(++o>=i)throw new TypeError("reduce of empty array with no initial value")}for(;o<i;o++)o in n&&(r=e.call(void 0,r,n[o],o,t));return r}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){var t=R(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=n.length>>>0;if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");if(!i&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var r,o=i-1;if(arguments.length>=2)r=arguments[1];else for(;;){if(o in n){r=n[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}do{o in this&&(r=e.call(void 0,r,n[o],o,t))}while(o--);return r}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=b&&"[object String]"==f(this)?this.split(""):R(this),n=t.length>>>0;if(!n)return-1;var i=0;for(arguments.length>1&&(i=D(arguments[1])),i=i>=0?i:Math.max(0,n+i);i<n;i++)if(i in t&&t[i]===e)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e){var t=b&&"[object String]"==f(this)?this.split(""):R(this),n=t.length>>>0;if(!n)return-1;var i=n-1;for(arguments.length>1&&(i=Math.min(i,D(arguments[1]))),i=i>=0?i:n-Math.abs(i);i>=0;i--)if(i in t&&e===t[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:h)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(p(e,t)){var n;if(n={enumerable:!0,configurable:!0},c){var i=e.__proto__;e.__proto__=h;var r=s(e,t),o=a(e,t);if(e.__proto__=i,r||o)return r&&(n.get=r),o&&(n.set=o),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(m=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=m();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var i=function(){};i.prototype=e,(n=new i).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});function E(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){}}if(Object.defineProperty){var w=E({}),A="undefined"==typeof document||E(document.createElement("div"));if(!w||!A)var C=Object.defineProperty}if(!Object.defineProperty||C){Object.defineProperty=function(e,t,n){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(C)try{return C.call(Object,e,t,n)}catch(l){}if(p(n,"value"))if(c&&(s(e,t)||a(e,t))){var i=e.__proto__;e.__proto__=h,delete e[t],e[t]=n.value,e.__proto__=i}else e[t]=n.value;else{if(!c)throw new TypeError("getters & setters can not be defined on this javascript engine");p(n,"get")&&r(e,t,n.get),p(n,"set")&&o(e,t,n.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)p(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze(function(){})}catch(B){Object.freeze=(v=Object.freeze,function(e){return"function"==typeof e?e:v(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";p(e,t);)t+="?";e[t]=!0;var n=p(e,t);return delete e[t],n}),!Object.keys){var F=!0,T=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],S=T.length;for(var O in{toString:null})F=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)p(e,n)&&t.push(n);if(F)for(var i=0,r=S;i<r;i++){var o=T[i];p(e,o)&&t.push(o)}return t}}Date.now||(Date.now=function(){return(new Date).getTime()});var x="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||x.trim()){x="["+x+"]";var k=new RegExp("^"+x+x+"*"),_=new RegExp(x+x+"*$");String.prototype.trim=function(){return String(this).replace(k,"").replace(_,"")}}function D(e){return(e=+e)!==e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}var R=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(e,t,n){"use strict";e("./regexp"),e("./es5-shim")}),ace.define("ace/lib/dom",["require","exports","module"],function(e,t,n){"use strict";t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var i=n.indexOf(t);if(-1==i)break;n.splice(i,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),i=!0;;){var r=n.indexOf(t);if(-1==r)break;i=!1,n.splice(r,1)}return i&&n.push(t),e.className=n.join(" "),i},t.setCssClass=function(e,n,i){i?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,i=0;if((t=t||document).createStyleSheet&&(n=t.styleSheets)){for(;i<n.length;)if(n[i++].owningElement.id===e)return!0}else if(n=t.getElementsByTagName("style"))for(;i<n.length;)if(n[i++].id===e)return!0;return!1},t.importCssString=function(e,n,i){if(i=i||document,n&&t.hasCssString(n,i))return null;var r;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */"),i.createStyleSheet?((r=i.createStyleSheet()).cssText=e,n&&(r.owningElement.id=n)):((r=t.createElement("style")).appendChild(i.createTextNode(e)),n&&(r.id=n),t.getDocumentHead(i).appendChild(r))},t.importCssStylsheet=function(e,n){if(n.createStyleSheet)n.createStyleSheet(e);else{var i=t.createElement("link");i.rel="stylesheet",i.href=e,t.getDocumentHead(n).appendChild(i)}},t.getInnerWidth=function(e){return parseInt(t.computedStyle(e,"paddingLeft"),10)+parseInt(t.computedStyle(e,"paddingRight"),10)+e.clientWidth},t.getInnerHeight=function(e){return parseInt(t.computedStyle(e,"paddingTop"),10)+parseInt(t.computedStyle(e,"paddingBottom"),10)+e.clientHeight},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var i=t.createElement("ace_outer"),r=i.style;r.position="absolute",r.left="-10000px",r.overflow="hidden",r.width="200px",r.minWidth="0px",r.height="150px",r.display="block",i.appendChild(n);var o=e.documentElement;o.appendChild(i);var s=n.offsetWidth;r.overflow="scroll";var a=n.offsetWidth;return s==a&&(a=i.clientWidth),o.removeChild(i),s-a},"undefined"!=typeof document?(void 0!==window.pageYOffset?(t.getPageScrollTop=function(){return window.pageYOffset},t.getPageScrollLeft=function(){return window.pageXOffset}):(t.getPageScrollTop=function(){return document.body.scrollTop},t.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?t.computedStyle=function(e,t){return t?(window.getComputedStyle(e,"")||{})[t]||"":window.getComputedStyle(e,"")||{}}:t.computedStyle=function(e,t){return t?e.currentStyle[t]:e.currentStyle},t.setInnerHtml=function(e,t){var n=e.cloneNode(!1);return n.innerHTML=t,e.parentNode.replaceChild(n,e),n},"textContent"in document.documentElement?(t.setInnerText=function(e,t){e.textContent=t},t.getInnerText=function(e){return e.textContent}):(t.setInnerText=function(e,t){e.innerText=t},t.getInnerText=function(e){return e.innerText}),t.getParentWindow=function(e){return e.defaultView||e.parentWindow}):t.importCssString=function(){}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],function(e,t,n){"use strict";e("./fixoldbrowsers");var i=e("./oop"),r=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return i.mixin(n,n.MODIFIER_KEYS),i.mixin(n,n.PRINTABLE_KEYS),i.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter(function(e){return t&n.KEY_MODS[e]}).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();i.mixin(t,r),t.keyCodeToString=function(e){var t=r[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,t,n){"use strict";if(t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS},"object"==typeof navigator){var i=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),r=navigator.userAgent;t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==navigator.appName||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((r.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((r.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,t.isOldGecko=t.isGecko&&parseInt((r.match(/rv:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,t.isAIR=r.indexOf("AdobeAIR")>=0,t.isIPad=r.indexOf("iPad")>=0,t.isChromeOS=r.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,t.isIOS&&(t.isMac=!0)}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){"use strict";var i=e("./keys"),r=e("./useragent"),o=null,s=0;t.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var i=function(){n.call(e,window.event)};n._wrapper=i,e.attachEvent("on"+t,i)}},t.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||r.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},t.capture=function(e,n,i){function r(e){n&&n(e),i&&i(e),t.removeListener(document,"mousemove",n,!0),t.removeListener(document,"mouseup",r,!0),t.removeListener(document,"dragstart",r,!0)}return t.addListener(document,"mousemove",n,!0),t.addListener(document,"mouseup",r,!0),t.addListener(document,"dragstart",r,!0),r},t.addTouchMoveListener=function(e,n){var i,r;t.addListener(e,"touchstart",function(e){var t=e.touches[0];i=t.clientX,r=t.clientY}),t.addListener(e,"touchmove",function(e){var t=e.touches;if(!(t.length>1)){var o=t[0];e.wheelX=i-o.clientX,e.wheelY=r-o.clientY,i=o.clientX,r=o.clientY,n(e)}})},t.addMouseWheelListener=function(e,n){"onmousewheel"in e?t.addListener(e,"mousewheel",function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),n(e)}):"onwheel"in e?t.addListener(e,"wheel",function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}n(e)}):t.addListener(e,"DOMMouseScroll",function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)})},t.addMultiMouseDownListener=function(e,n,i,o){var s,a,c,l=0,u={2:"dblclick",3:"tripleclick",4:"quadclick"};function h(e){if(0!==t.getButton(e)?l=0:e.detail>1?++l>4&&(l=1):l=1,r.isIE){var h=Math.abs(e.clientX-s)>5||Math.abs(e.clientY-a)>5;c&&!h||(l=1),c&&clearTimeout(c),c=setTimeout(function(){c=null},n[l-1]||600),1==l&&(s=e.clientX,a=e.clientY)}if(e._clicks=l,i[o]("mousedown",e),l>4)l=0;else if(l>1)return i[o](u[l],e)}function d(e){l=2,c&&clearTimeout(c),c=setTimeout(function(){c=null},n[l-1]||600),i[o]("mousedown",e),i[o](u[l],e)}Array.isArray(e)||(e=[e]),e.forEach(function(e){t.addListener(e,"mousedown",h),r.isOldIE&&t.addListener(e,"dblclick",d)})};var a=!r.isMac||!r.isOpera||"KeyboardEvent"in window?function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}:function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)};function c(e,t,n){var c=a(t);if(!r.isMac&&o){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(c|=8),o.altGr){if(3==(3&c))return;o.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==o[n]&&(s=t.timeStamp);else if(18===n&&3===c&&2===l){t.timeStamp-s<50&&(o.altGr=!0)}}}if((n in i.MODIFIER_KEYS&&(n=-1),8&c&&n>=91&&n<=93&&(n=-1),!c&&13===n)&&(3===(l="location"in t?t.location:t.keyLocation)&&(e(t,c,-n),t.defaultPrevented)))return;if(r.isChromeOS&&8&c){if(e(t,c,n),t.defaultPrevented)return;c&=-9}return!!(c||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,c,n)}function l(){o=Object.create(null)}if(t.getModifierString=function(e){return i.KEY_MODS[a(e)]},t.addCommandKeyListener=function(e,n){var i=t.addListener;if(r.isOldGecko||r.isOpera&&!("KeyboardEvent"in window)){var s=null;i(e,"keydown",function(e){s=e.keyCode}),i(e,"keypress",function(e){return c(n,e,s)})}else{var a=null;i(e,"keydown",function(e){o[e.keyCode]=(o[e.keyCode]||0)+1;var t=c(n,e,e.keyCode);return a=e.defaultPrevented,t}),i(e,"keypress",function(e){a&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),a=null)}),i(e,"keyup",function(e){o[e.keyCode]=null}),o||(l(),i(window,"focus",l))}},"object"==typeof window&&window.postMessage&&!r.isOldIE){t.nextTick=function(e,n){n=n||window;t.addListener(n,"message",function i(r){"zero-timeout-message-1"==r.data&&(t.stopPropagation(r),t.removeListener(n,"message",i),e())}),n.postMessage("zero-timeout-message-1","*")}}t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var i=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(i,"")},t.stringTrimRight=function(e){return e.replace(r,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!==typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n[i]=e(t[i]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var i in n={},t)n[i]=e(t[i]);return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return e.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},i=function e(i){return e.cancel(),t=setTimeout(n,i||0),e};return i.schedule=i,i.call=function(){return this.cancel(),e(),i},i.cancel=function(){return clearTimeout(t),t=null,i},i.isPending=function(){return t},i},t.delayedCall=function(e,t){var n=null,i=function(){n=null,e()},r=function(e){null==n&&(n=setTimeout(i,e||t))};return r.delay=function(e){n&&clearTimeout(n),n=setTimeout(i,e||t)},r.schedule=r,r.call=function(){this.cancel(),e()},r.cancel=function(){n&&clearTimeout(n),n=null},r.isPending=function(){return n},r}}),ace.define("ace/keyboard/textinput_ios",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/lib/keys"],function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),o=e("../lib/dom"),s=e("../lib/lang"),a=e("../lib/keys"),c=a.KEY_MODS,l=r.isChrome<18,u=r.isIE;t.TextInput=function(e,t){var n=o.createElement("textarea");n.className=r.isIOS?"ace_text-input ace_text-input-ios":"ace_text-input",r.isTouchPad&&n.setAttribute("x-palm-disable-auto-cap",!0),n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var h="\n aaaa a\n",d=!1,f=!1,p=!1,g=!1,m="",v=!0;try{var y=document.activeElement===n}catch(I){}i.addListener(n,"blur",function(e){t.onBlur(e),y=!1}),i.addListener(n,"focus",function(e){y=!0,t.onFocus(e),w()}),this.focus=function(){if(m)return n.focus();n.style.position="fixed",n.focus()},this.blur=function(){n.blur()},this.isFocused=function(){return y};var b=s.delayedCall(function(){y&&w(v)}),E=s.delayedCall(function(){g||(n.value=h,y&&w())});function w(e){if(!g){if(g=!0,C)t=0,i=e?0:n.value.length-1;else var t=4,i=5;try{n.setSelectionRange(t,i)}catch(I){}g=!1}}function A(){g||(n.value=h,r.isWebKit&&E.schedule())}r.isWebKit||t.addEventListener("changeSelection",function(){t.selection.isEmpty()!=v&&(v=!v,b.schedule())}),A(),y&&t.onFocus();var C=null;this.setInputHandler=function(e){C=e},this.getInputHandler=function(){return C};var F=!1,T=function(e){4===n.selectionStart&&5===n.selectionEnd||(C&&(e=C(e),C=null),p?(w(),e&&t.onPaste(e),p=!1):e==h.substr(0)&&4===n.selectionStart?F?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):d||(e.substring(0,9)==h&&e.length>h.length?e=e.substr(9):e.substr(0,4)==h.substr(0,4)?e=e.substr(4,e.length-h.length+1):e.charAt(e.length-1)==h.charAt(0)&&(e=e.slice(0,-1)),e==h.charAt(0)||e.charAt(e.length-1)==h.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),d&&(d=!1),F&&(F=!1))},S=function(e){if(!g){var t=n.value;T(t),A()}},O=function e(t,n,i){var r=t.clipboardData||window.clipboardData;if(r&&!l){var o=u||i?"Text":"text/plain";try{return n?!1!==r.setData(o,n):r.getData(o)}catch(t){if(!i)return e(t,n,!0)}}},x=function(e,o){var s=t.getCopyText();if(!s)return i.preventDefault(e);O(e,s)?(r.isIOS&&(f=o,n.value="\n aa"+s+"a a\n",n.setSelectionRange(4,4+s.length),d={value:s}),o?t.onCut():t.onCopy(),r.isIOS||i.preventDefault(e)):(d=!0,n.value=s,n.select(),setTimeout(function(){d=!1,A(),w(),o?t.onCut():t.onCopy()}))};i.addCommandKeyListener(n,t.onCommandKey.bind(t)),i.addListener(n,"select",function(e){!function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length}(n)?C&&w(t.selection.isEmpty()):(t.selectAll(),w())}),i.addListener(n,"input",S),i.addListener(n,"cut",function(e){x(e,!0)}),i.addListener(n,"copy",function(e){x(e,!1)}),i.addListener(n,"paste",function(e){var o=O(e);"string"==typeof o?(o&&t.onPaste(o,e),r.isIE&&setTimeout(w),i.preventDefault(e)):(n.value="",p=!0)});var k,_=function(){if(g&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\x01/g,"");if(g.lastValue!==e&&(t.onCompositionUpdate(e),g.lastValue&&t.undo(),g.canUndo&&(g.lastValue=e),g.lastValue)){var i=t.selection.getRange();t.insert(g.lastValue),t.session.markUndoGroup(),g.range=t.selection.getRange(),t.selection.setRange(i),t.selection.clearSelection()}}},D=function e(i){if(t.onCompositionEnd&&!t.$readOnly){var o=g;g=!1;var s=setTimeout(function(){s=null;var e=n.value.replace(/\x01/g,"");g||(e==o.lastValue?A():!o.lastValue&&e&&(A(),T(e)))});C=function(e){return s&&clearTimeout(s),(e=e.replace(/\x01/g,""))==o.lastValue?"":(o.lastValue&&s&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",e),"compositionend"==i.type&&o.range&&t.selection.setRange(o.range),(!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603)&&S()}},R=s.delayedCall(_,50);function B(){clearTimeout(k),k=setTimeout(function(){m&&(n.style.cssText=m,m=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())},0)}i.addListener(n,"compositionstart",function(e){g||!t.onCompositionStart||t.$readOnly||((g={}).canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(_,0),t.on("mousedown",D),g.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())}),r.isGecko?i.addListener(n,"text",function(){R.schedule()}):(i.addListener(n,"keyup",function(){R.schedule()}),i.addListener(n,"keydown",function(){R.schedule()})),i.addListener(n,"compositionend",D),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){F=!0,w(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,s){m||(m=n.style.cssText),n.style.cssText=(s?"z-index:100000;":"")+"height:"+n.style.height+";"+(r.isIE?"opacity:0.1;":"");var a=t.container.getBoundingClientRect(),c=o.computedStyle(t.container),l=a.top+(parseInt(c.borderTopWidth)||0),u=a.left+(parseInt(a.borderLeftWidth)||0),h=a.bottom-l-n.clientHeight-2,d=function(e){n.style.left=e.clientX-u-2+"px",n.style.top=Math.min(e.clientY-l-2,h)+"px"};d(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(k),r.isWin&&i.capture(t.container,d,B))},this.onContextMenuClose=B;var L=function(e){t.textInput.onContextMenu(e),B()};if(i.addListener(n,"mouseup",L),i.addListener(n,"mousedown",function(e){e.preventDefault(),B()}),i.addListener(t.renderer.scroller,"contextmenu",L),i.addListener(n,"contextmenu",L),r.isIOS){var M=null,N=!1;e.addEventListener("keydown",function(e){M&&clearTimeout(M),N=!0}),e.addEventListener("keyup",function(e){M=setTimeout(function(){N=!1},100)});var $=function(e){if(document.activeElement===n&&!N){if(f)return setTimeout(function(){f=!1},100);var i=n.selectionStart,r=n.selectionEnd;if(n.setSelectionRange(4,5),i==r)switch(i){case 0:t.onCommandKey(null,0,a.up);break;case 1:t.onCommandKey(null,0,a.home);break;case 2:t.onCommandKey(null,c.option,a.left);break;case 4:t.onCommandKey(null,0,a.left);break;case 5:t.onCommandKey(null,0,a.right);break;case 7:t.onCommandKey(null,c.option,a.right);break;case 8:t.onCommandKey(null,0,a.end);break;case 9:t.onCommandKey(null,0,a.down)}else{switch(r){case 6:t.onCommandKey(null,c.shift,a.right);break;case 7:t.onCommandKey(null,c.shift|c.option,a.right);break;case 8:t.onCommandKey(null,c.shift,a.end);break;case 9:t.onCommandKey(null,c.shift,a.down)}switch(i){case 0:t.onCommandKey(null,c.shift,a.up);break;case 1:t.onCommandKey(null,c.shift,a.home);break;case 2:t.onCommandKey(null,c.shift|c.option,a.left);break;case 3:t.onCommandKey(null,c.shift,a.left)}}}};document.addEventListener("selectionchange",$),t.on("destroy",function(){document.removeEventListener("selectionchange",$)})}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),o=e("../lib/dom"),s=e("../lib/lang"),a=r.isChrome<18,c=r.isIE,l=e("./textinput_ios").TextInput;t.TextInput=function(e,t){if(r.isIOS)return l.call(this,e,t);var n=o.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var u="\u2028\u2028",h=!1,d=!1,f=!1,p="",g=!0;try{var m=document.activeElement===n}catch(N){}i.addListener(n,"blur",function(e){t.onBlur(e),m=!1}),i.addListener(n,"focus",function(e){m=!0,t.onFocus(e),b()}),this.focus=function(){if(p)return n.focus();var e=n.style.top;n.style.position="fixed",n.style.top="0px",n.focus(),setTimeout(function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)},0)},this.blur=function(){n.blur()},this.isFocused=function(){return m};var v=s.delayedCall(function(){m&&b(g)}),y=s.delayedCall(function(){f||(n.value=u,m&&b())});function b(e){if(!f){if(f=!0,w)var t=0,i=e?0:n.value.length-1;else t=e?2:1,i=2;try{n.setSelectionRange(t,i)}catch(N){}f=!1}}function E(){f||(n.value=u,r.isWebKit&&y.schedule())}r.isWebKit||t.addEventListener("changeSelection",function(){t.selection.isEmpty()!=g&&(g=!g,v.schedule())}),E(),m&&t.onFocus();var w=null;this.setInputHandler=function(e){w=e},this.getInputHandler=function(){return w};var A=!1,C=function(e){w&&(e=w(e),w=null),d?(b(),e&&t.onPaste(e),d=!1):e==u.charAt(0)?A?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):(e.substring(0,2)==u?e=e.substr(2):e.charAt(0)==u.charAt(0)?e=e.substr(1):e.charAt(e.length-1)==u.charAt(0)&&(e=e.slice(0,-1)),e.charAt(e.length-1)==u.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),A&&(A=!1)},F=function(e){if(!f){var t=n.value;C(t),E()}},T=function e(t,n,i){var r=t.clipboardData||window.clipboardData;if(r&&!a){var o=c||i?"Text":"text/plain";try{return n?!1!==r.setData(o,n):r.getData(o)}catch(t){if(!i)return e(t,n,!0)}}},S=function(e,r){var o=t.getCopyText();if(!o)return i.preventDefault(e);T(e,o)?(r?t.onCut():t.onCopy(),i.preventDefault(e)):(h=!0,n.value=o,n.select(),setTimeout(function(){h=!1,E(),b(),r?t.onCut():t.onCopy()}))},O=function(e){S(e,!0)},x=function(e){S(e,!1)},k=function(e){var o=T(e);"string"==typeof o?(o&&t.onPaste(o,e),r.isIE&&setTimeout(b),i.preventDefault(e)):(n.value="",d=!0)};i.addCommandKeyListener(n,t.onCommandKey.bind(t)),i.addListener(n,"select",function(e){h?h=!1:!function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length}(n)?w&&b(t.selection.isEmpty()):(t.selectAll(),b())}),i.addListener(n,"input",F),i.addListener(n,"cut",O),i.addListener(n,"copy",x),i.addListener(n,"paste",k),"oncut"in n&&"oncopy"in n&&"onpaste"in n||i.addListener(e,"keydown",function(e){if((!r.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:x(e);break;case 86:k(e);break;case 88:O(e)}});var _,D=function(){if(f&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\u2028/g,"");if(f.lastValue!==e&&(t.onCompositionUpdate(e),f.lastValue&&t.undo(),f.canUndo&&(f.lastValue=e),f.lastValue)){var i=t.selection.getRange();t.insert(f.lastValue),t.session.markUndoGroup(),f.range=t.selection.getRange(),t.selection.setRange(i),t.selection.clearSelection()}}},R=function e(i){if(t.onCompositionEnd&&!t.$readOnly){var o=f;f=!1;var s=setTimeout(function(){s=null;var e=n.value.replace(/\u2028/g,"");f||(e==o.lastValue?E():!o.lastValue&&e&&(E(),C(e)))});w=function(e){return s&&clearTimeout(s),(e=e.replace(/\u2028/g,""))==o.lastValue?"":(o.lastValue&&s&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",e),"compositionend"==i.type&&o.range&&t.selection.setRange(o.range),(!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603)&&F()}},B=s.delayedCall(D,50);function L(){clearTimeout(_),_=setTimeout(function(){p&&(n.style.cssText=p,p=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())},0)}i.addListener(n,"compositionstart",function(e){f||!t.onCompositionStart||t.$readOnly||((f={}).canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(D,0),t.on("mousedown",R),f.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())}),r.isGecko?i.addListener(n,"text",function(){B.schedule()}):(i.addListener(n,"keyup",function(){B.schedule()}),i.addListener(n,"keydown",function(){B.schedule()})),i.addListener(n,"compositionend",R),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){A=!0,b(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,s){p||(p=n.style.cssText),n.style.cssText=(s?"z-index:100000;":"")+"height:"+n.style.height+";"+(r.isIE?"opacity:0.1;":"");var a=t.container.getBoundingClientRect(),c=o.computedStyle(t.container),l=a.top+(parseInt(c.borderTopWidth)||0),u=a.left+(parseInt(a.borderLeftWidth)||0),h=a.bottom-l-n.clientHeight-2,d=function(e){n.style.left=e.clientX-u-2+"px",n.style.top=Math.min(e.clientY-l-2,h)+"px"};d(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(_),r.isWin&&i.capture(t.container,d,L))},this.onContextMenuClose=L;var M=function(e){t.textInput.onContextMenu(e),L()};i.addListener(n,"mouseup",M),i.addListener(n,"mousedown",function(e){e.preventDefault(),L()}),i.addListener(t.renderer.scroller,"contextmenu",M),i.addListener(n,"contextmenu",M)}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,n){"use strict";e("../lib/dom"),e("../lib/event");var i=e("../lib/useragent");function r(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),t.setDefaultHandler("touchmove",this.onTouchMove.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(t){e[t]=this[t]},this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function o(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var r=this.editor,o=e.getButton();if(0!==o){var s=r.getSelectionRange().isEmpty();return r.$blockScrolling++,(s||1==o)&&r.selection.moveToPosition(n),r.$blockScrolling--,void(2==o&&(r.textInput.onContextMenu(e.domEvent),i.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||r.isFocused()||(r.focus(),!this.$focusTimout||this.$clickSelection||r.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;n.$blockScrolling++,this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"),n.$blockScrolling--},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(t.$blockScrolling++,this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var r=o(this.$clickSelection,n);n=r.cursor,e=r.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.$blockScrolling--,t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),r=n.selection[e](i.row,i.column);if(n.$blockScrolling++,this.$clickSelection){var s=this.$clickSelection.comparePoint(r.start),a=this.$clickSelection.comparePoint(r.end);if(-1==s&&a<=0)t=this.$clickSelection.end,r.end.row==i.row&&r.end.column==i.column||(i=r.start);else if(1==a&&s>=0)t=this.$clickSelection.start,r.start.row==i.row&&r.start.column==i.column||(i=r.end);else if(-1==s&&1==a)i=r.end,t=r.start;else{var c=o(this.$clickSelection,i);i=c.cursor,t=c.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(i),n.$blockScrolling--,n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,n,i,r=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,i=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))),o=Date.now();(r>0||o-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,i=n.session.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var i=n.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=e.domEvent.timeStamp,r=i-n.t,o=e.wheelX/r,s=e.wheelY/r;r<250&&(o=(o+n.vx)/2,s=(s+n.vy)/2);var a=Math.abs(o/s),c=!1;if(a>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(c=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(c=!0),c)n.allowed=i;else if(i-n.allowed<250){Math.abs(o)<=1.1*Math.abs(n.vx)&&Math.abs(s)<=1.1*Math.abs(n.vy)?(c=!0,n.allowed=i):n.allowed=0}return n.t=i,n.vx=o,n.vy=s,c?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){this.editor._emit("mousewheel",e)}}).call(r.prototype),t.DefaultHandlers=r}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom");function r(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){i.setInnerText(this.getElement(),e)},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(r.prototype),t.Tooltip=r}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(e,t,n){"use strict";var i=e("../lib/dom"),r=e("../lib/oop"),o=e("../lib/event"),s=e("../tooltip").Tooltip;function a(e){s.call(this,e)}r.inherits(a,s),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,r=this.getWidth(),o=this.getHeight();(e+=15)+r>n&&(e-=e+r-n),(t+=15)+o>i&&(t-=20+o),s.prototype.setPosition.call(this,e,t)}}.call(a.prototype),t.GutterHandler=function(e){var t,n,r,s=e.editor,c=s.renderer.$gutterLayer,l=new a(s.container);function u(){t&&(t=clearTimeout(t)),r&&(l.hide(),r=null,s._signal("hideGutterTooltip",l),s.removeEventListener("mousewheel",u))}function h(e){l.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",function(t){if(s.isFocused()&&0==t.getButton()&&"foldWidgets"!=c.getRegion(t)){var n=t.getDocumentPosition().row,i=s.session.selection;if(t.getShiftKey())i.selectTo(n,0);else{if(2==t.domEvent.detail)return s.selectAll(),t.preventDefault();e.$clickSelection=s.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}),e.editor.setDefaultHandler("guttermousemove",function(o){var a=o.domEvent.target||o.domEvent.srcElement;if(i.hasCssClass(a,"ace_fold-widget"))return u();r&&e.$tooltipFollowsMouse&&h(o),n=o,t||(t=setTimeout(function(){t=null,n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row,i=c.$annotations[t];if(!i)return u();if(t==s.session.getLength()){var o=s.renderer.pixelToScreenCoordinates(0,n.y).row,a=n.$pos;if(o>s.session.documentToScreenRow(a.row,a.column))return u()}if(r!=i)if(r=i.text.join("<br/>"),l.setHtml(r),l.show(),s._signal("showGutterTooltip",l),s.on("mousewheel",u),e.$tooltipFollowsMouse)h(n);else{var d=n.domEvent.target.getBoundingClientRect(),f=l.getElement().style;f.left=d.right+"px",f.top=d.bottom+"px"}}():u()},50))}),o.addListener(s.renderer.$gutter,"mouseout",function(e){n=null,r&&!t&&(t=setTimeout(function(){t=null,u()},50))}),s.on("changeSession",u)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,n){"use strict";var i=e("../lib/dom"),r=e("../lib/event"),o=e("../lib/useragent"),s=200,a=200,c=5;function l(e){var t=e.editor,n=i.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(t){e[t]=this[t]},this),t.addEventListener("mousedown",this.onMouseDown.bind(e));var l,h,d,f,p,g,m,v,y,b,E,w=t.container,A=0;function C(){var e=g;(function(e,n){var i=Date.now(),r=!n||e.row!=n.row,o=!n||e.column!=n.column;!b||r||o?(t.$blockScrolling+=1,t.moveCursorToPosition(e),t.$blockScrolling-=1,b=i,E={x:h,y:d}):u(E.x,E.y,h,d)>c?b=null:i-b>=a&&(t.renderer.scrollCursorIntoView(),b=null)})(g=t.renderer.screenToTextCoordinates(h,d),e),function(e,n){var i=Date.now(),r=t.renderer.layerConfig.lineHeight,o=t.renderer.layerConfig.characterWidth,a=t.renderer.scroller.getBoundingClientRect(),c={x:{left:h-a.left,right:a.right-h},y:{top:d-a.top,bottom:a.bottom-d}},l=Math.min(c.x.left,c.x.right),u=Math.min(c.y.top,c.y.bottom),f={row:e.row,column:e.column};l/o<=2&&(f.column+=c.x.left<c.x.right?-3:2),u/r<=1&&(f.row+=c.y.top<c.y.bottom?-1:1);var p=e.row!=f.row,g=e.column!=f.column,m=!n||e.row!=n.row;p||g&&!m?y?i-y>=s&&t.renderer.scrollCursorIntoView(f):y=i:y=null}(g,e)}function F(){p=t.selection.toOrientedRange(),l=t.session.addMarker(p,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(f),C(),f=setInterval(C,20),A=0,r.addListener(document,"mousemove",O)}function T(){clearInterval(f),t.session.removeMarker(l),l=null,t.$blockScrolling+=1,t.selection.fromOrientedRange(p),t.$blockScrolling-=1,t.isFocused()&&!v&&t.renderer.$cursorLayer.setBlinking(!t.getReadOnly()),p=null,g=null,A=0,y=null,b=null,r.removeListener(document,"mousemove",O)}this.onDragStart=function(e){if(this.cancelDrag||!w.draggable){var i=this;return setTimeout(function(){i.startSelect(),i.captureMouse(e)},0),e.preventDefault()}p=t.getSelectionRange();var r=e.dataTransfer;r.effectAllowed=t.getReadOnly()?"copy":"copyMove",o.isOpera&&(t.container.appendChild(n),n.scrollTop=0),r.setDragImage&&r.setDragImage(n,0,0),o.isOpera&&t.container.removeChild(n),r.clearData(),r.setData("Text",t.session.getTextRange()),v=!0,this.setState("drag")},this.onDragEnd=function(e){if(w.draggable=!1,v=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;m||"move"!=n||t.session.remove(t.getSelectionRange()),t.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&x(e.dataTransfer))return h=e.clientX,d=e.clientY,l||F(),A++,e.dataTransfer.dropEffect=m=k(e),r.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&x(e.dataTransfer))return h=e.clientX,d=e.clientY,l||(F(),A++),null!==S&&(S=null),e.dataTransfer.dropEffect=m=k(e),r.preventDefault(e)},this.onDragLeave=function(e){if(--A<=0&&l)return T(),m=null,r.preventDefault(e)},this.onDrop=function(e){if(g){var n=e.dataTransfer;if(v)switch(m){case"move":p=p.contains(g.row,g.column)?{start:g,end:g}:t.moveText(p,g);break;case"copy":p=t.moveText(p,g,!0)}else{var i=n.getData("Text");p={start:g,end:t.session.insert(g,i)},t.focus(),m=null}return T(),r.preventDefault(e)}},r.addListener(w,"dragstart",this.onDragStart.bind(e)),r.addListener(w,"dragend",this.onDragEnd.bind(e)),r.addListener(w,"dragenter",this.onDragEnter.bind(e)),r.addListener(w,"dragover",this.onDragOver.bind(e)),r.addListener(w,"dragleave",this.onDragLeave.bind(e)),r.addListener(w,"drop",this.onDrop.bind(e));var S=null;function O(){null==S&&(S=setTimeout(function(){null!=S&&l&&T()},20))}function x(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return"text/plain"==e||"Text"==e})}function k(e){var t=["copy","copymove","all","uninitialized"],n=o.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var r="none";return n&&t.indexOf(i)>=0?r="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(i)>=0?r="move":t.indexOf(i)>=0&&(r="copy"),r}}function u(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=o.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;o.isIE&&"dragReady"==this.state&&(u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton();if(1===(e.domEvent.detail||1)&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var r=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in r&&(r.unselectable="on"),t.getDragDelay()){if(o.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(l.prototype),t.DragdropHandler=l}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var i=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=i.getDocumentHead(),r=document.createElement("script");r.src=e,n.appendChild(r),r.onload=r.onreadystatechange=function(e,n){!n&&r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(r=r.onload=r.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t,n){"use strict";var i={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};i._emit=i._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(n.length||i){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=r),t.preventDefault||(t.preventDefault=o),n=n.slice();for(var s=0;s<n.length&&(n[s](t,this),!t.propagationStopped);s++);return i&&!t.defaultPrevented?i(t,this):void 0}},i._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var i=0;i<n.length;i++)n[i](t,this)}},i.once=function(e,t){var n=this;t&&this.addEventListener(e,function i(){n.removeEventListener(e,i),t.apply(null,arguments)})},i.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var i=n[e],r=n._disabled_[e];r||(n._disabled_[e]=r=[]),r.push(i);var o=r.indexOf(t);-1!=o&&r.splice(o,1)}n[e]=t},i.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var i=n._disabled_[e];if(n[e]==t){n[e];i&&this.setDefaultHandler(e,i.pop())}else if(i){var r=i.indexOf(t);-1!=r&&i.splice(r,1)}}},i.on=i.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[e];return i||(i=this._eventRegistry[e]=[]),-1==i.indexOf(t)&&i[n?"unshift":"push"](t),t},i.off=i.removeListener=i.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}},i.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=i}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){var i=e("./oop"),r=e("./event_emitter").EventEmitter,o={setOptions:function(e){Object.keys(e).forEach(function(t){this.setOption(t,e[t])},this)},getOptions:function(e){var t={};return e?Array.isArray(e)||(t=e,e=Object.keys(t)):e=Object.keys(this.$options),e.forEach(function(e){t[e]=this.getOption(e)},this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return s('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:s('misspelled option "'+e+'"')}};function s(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function a(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout(function(){throw n})}var c=function(){this.$defaultOptions={}};(function(){i.implement(this,r),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach(function(t){var i=n[t];"string"==typeof i&&(i={forwardTo:i}),i.name||(i.name=t),e.$options[i.name]=i,"initialValue"in i&&(e["$"+i.name]=i.initialValue)}),i.implement(e,o),this},this.resetOptions=function(e){Object.keys(e.$options).forEach(function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)})},this.setDefaultValue=function(e,t,n){var i=this.$defaultOptions[e]||(this.$defaultOptions[e]={});i[t]&&(i.forwardTo?this.setDefaultValue(i.forwardTo,t,n):i[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach(function(n){this.setDefaultValue(e,n,t[n])},this)},this.warn=s,this.reportError=a}).call(c.prototype),t.AppConfig=c}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],function(e,t,i){var r=e("./lib/lang"),o=(e("./lib/oop"),e("./lib/net")),s=e("./lib/app_config").AppConfig;i.exports=t=new s;var a=function(){return this||"undefined"!=typeof window&&window}(),c={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{}};function l(r){if(a&&a.document){c.packaged=r||e.packaged||i.packaged||a.define&&n(104).packaged;for(var o,s={},l="",u=document.currentScript||document._currentScript,h=(u&&u.ownerDocument||document).getElementsByTagName("script"),d=0;d<h.length;d++){var f=h[d],p=f.src||f.getAttribute("src");if(p){for(var g=f.attributes,m=0,v=g.length;m<v;m++){var y=g[m];0===y.name.indexOf("data-ace-")&&(s[(o=y.name.replace(/^data-ace-/,""),o.replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=y.value)}var b=p.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);b&&(l=b[1])}}for(var E in l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base,s)"undefined"!==typeof s[E]&&t.set(E,s[E])}}t.get=function(e){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return c[e]},t.set=function(e,t){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);c[e]=t},t.all=function(){return r.copyObject(c)},t.moduleUrl=function(e,t){if(c.$moduleUrls[e])return c.$moduleUrls[e];var n=e.split("/"),i="snippets"==(t=t||n[n.length-2]||"")?"/":"-",r=n[n.length-1];if("worker"==t&&"-"==i){var o=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");r=r.replace(o,"")}(!r||r==t)&&n.length>1&&(r=n[n.length-2]);var s=c[t+"Path"];return null==s?s=c.basePath:"/"==i&&(t=i=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+t+i+r+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,i){var r,s;Array.isArray(n)&&(s=n[0],n=n[1]);try{r=e(n)}catch(c){}if(r&&!t.$loading[n])return i&&i(r);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(i),!(t.$loading[n].length>1)){var a=function(){e([n],function(e){t._emit("load.module",{name:n,module:e});var i=t.$loading[n];t.$loading[n]=null,i.forEach(function(t){t&&t(e)})})};if(!t.get("packaged"))return a();o.loadScript(t.moduleUrl(n,s),a)}},l(!0),t.init=l}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),o=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,a=e("./mouse_event").MouseEvent,c=e("./dragdrop_handler").DragdropHandler,l=e("../config"),u=function(e){var t=this;this.editor=e,new o(this),new s(this),new c(this);var n=function(t){(!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement()))&&window.focus(),e.focus()},a=e.renderer.getMouseEventTarget();i.addListener(a,"click",this.onMouseEvent.bind(this,"click")),i.addListener(a,"mousemove",this.onMouseMove.bind(this,"mousemove")),i.addMultiMouseDownListener([a,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent"),i.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel")),i.addTouchMoveListener(e.container,this.onTouchMove.bind(this,"touchmove"));var l=e.renderer.$gutter;i.addListener(l,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),i.addListener(l,"click",this.onMouseEvent.bind(this,"gutterclick")),i.addListener(l,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),i.addListener(l,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),i.addListener(a,"mousedown",n),i.addListener(l,"mousedown",n),r.isIE&&e.renderer.scrollBarV&&(i.addListener(e.renderer.scrollBarV.element,"mousedown",n),i.addListener(e.renderer.scrollBarH.element,"mousedown",n)),e.on("mousemove",function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var i=e.renderer.screenToTextCoordinates(n.x,n.y),r=e.session.selection.getRange(),o=e.renderer;!r.isEmpty()&&r.insideStart(i.row,i.column)?o.setCursorStyle("default"):o.setCursorStyle("")}})};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new a(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new a(t,this.editor))},this.onMouseWheel=function(e,t){var n=new a(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.onTouchMove=function(e,t){var n=new a(t,this.editor);n.speed=1,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor.renderer;n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=null);var o=this,s=function(e){if(e){if(r.isWebKit&&!e.which&&o.releaseMouse)return o.releaseMouse();o.x=e.clientX,o.y=e.clientY,t&&t(e),o.mouseEvent=new a(e,o.editor),o.$mouseMoved=!0}},c=function(e){clearInterval(u),l(),o[o.state+"End"]&&o[o.state+"End"](e),o.state="",null==n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=!0,n.$moveTextAreaToCursor()),o.isMousePressed=!1,o.$onCaptureMouseMove=o.releaseMouse=null,e&&o.onMouseEvent("mouseup",e)},l=function(){o[o.state]&&o[o.state](),o.$mouseMoved=!1};if(r.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout(function(){c(e)});o.$onCaptureMouseMove=s,o.releaseMouse=i.capture(this.editor.container,s,c);var u=setInterval(l,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&i.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)}}).call(u.prototype),l.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:r.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u}),ace.define("ace/mouse/fold_handler",["require","exports","module"],function(e,t,n){"use strict";t.FoldHandler=function(e){e.on("click",function(t){var n=t.getDocumentPosition(),i=e.session,r=i.getFoldAt(n.row,n.column,1);r&&(t.getAccelKey()?i.removeFold(r):i.expandFold(r),t.stop())}),e.on("gutterclick",function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,i=e.session;i.foldWidgets&&i.foldWidgets[n]&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop()}}),e.on("gutterdblclick",function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,i=e.session,r=i.getParentFoldRangeData(n,!0),o=r.range||r.firstRange;if(o){n=o.start.row;var s=i.getFoldAt(n,i.getLine(n).length,1);s?i.removeFold(s):(i.addFold("...",o),e.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}t.stop()}})}}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,t,n){"use strict";var i=e("../lib/keys"),r=e("../lib/event"),o=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),void 0==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map(function(n){return n.getStatusText&&n.getStatusText(t,e)||""}).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,i){for(var o,s=!1,a=this.$editor.commands,c=this.$handlers.length;c--&&!((o=this.$handlers[c].handleKeyboard(this.$data,e,t,n,i))&&o.command&&((s="null"==o.command||a.exec(o.command,this.$editor,o.args,i))&&i&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&r.stopEvent(i),s)););return s||-1!=e||(o={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),s},this.onCommandKey=function(e,t,n){var r=i.keyCodeToString(n);this.$callKeyboardHandlers(t,r,n,e)},this.onTextInput=function(e){this.$callKeyboardHandlers(-1,e)}}).call(o.prototype),t.KeyBinding=o}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,t,n){"use strict";var i=0,r=0,o=!1,s=!1,a=!1,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=1,h=0,d=1,f=2,p=3,g=4,m=5,v=6,y=7,b=8,E=9,w=10,A=11,C=12,F=13,T=14,S=15,O=16,x=17,k=18,_=[k,k,k,k,k,k,k,k,k,v,m,v,b,m,k,k,k,k,k,k,k,k,k,k,k,k,k,k,m,m,m,v,b,g,g,A,A,A,g,g,g,g,g,w,E,w,E,E,f,f,f,f,f,f,f,f,f,f,E,g,g,g,g,g,g,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,g,g,g,g,g,g,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,g,g,g,g,k,k,k,k,k,k,m,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,E,g,A,A,A,A,g,g,g,g,h,g,g,k,g,g,A,A,f,f,g,h,g,g,g,f,h,g,g,g,g,g],D=[b,b,b,b,b,b,b,b,b,b,b,k,k,k,h,d,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,b,m,F,T,S,O,x,E,A,A,A,A,A,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,E,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,b];function R(e,t,n){if(!(r<e))if(1!=e||i!=u||s)for(var o,a,c,l,h=n.length,d=0;d<h;){if(t[d]>=e){for(o=d+1;o<h&&t[o]>=e;)o++;for(a=d,c=o-1;a<c;a++,c--)l=n[a],n[a]=n[c],n[c]=l;d=o}d++}else n.reverse()}function B(e,t,n,r){var c,l,u,_,D=t[r];switch(D){case h:case d:o=!1;case g:case p:return D;case f:return o?p:f;case y:return o=!0,!0,d;case b:return g;case E:return r<1||r+1>=t.length||(c=n[r-1])!=f&&c!=p||(l=t[r+1])!=f&&l!=p?g:(o&&(l=p),l==c?l:g);case w:return(c=r>0?n[r-1]:m)==f&&r+1<t.length&&t[r+1]==f?f:g;case A:if(r>0&&n[r-1]==f)return f;if(o)return g;for(_=r+1,u=t.length;_<u&&t[_]==A;)_++;return _<u&&t[_]==f?f:g;case C:for(u=t.length,_=r+1;_<u&&t[_]==C;)_++;if(_<u){var R=e[r],B=R>=1425&&R<=2303||64286==R;if(c=t[_],B&&(c==d||c==y))return d}return r<1||(c=t[r-1])==m?g:n[r-1];case m:return o=!1,s=!0,i;case v:return a=!0,g;case F:case T:case O:case x:case S:o=!1;case k:return g}}function L(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?h:_[t]:5==n?/[\u0591-\u05f4]/.test(e)?d:h:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?C:/[\u0660-\u0669\u066b-\u066c]/.test(e)?p:1642==t?A:/[\u06f0-\u06f9]/.test(e)?f:y:32==n&&t<=8287?D[255&t]:254==n&&t>=65136?y:g}t.L=h,t.R=d,t.EN=f,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.DOT="\xb7",t.doBidiReorder=function(e,n,h){if(e.length<2)return{};var f=e.split(""),E=new Array(f.length),w=new Array(f.length),A=[];i=h?u:0,function(e,t,n,u){var h=i?l:c,d=null,f=null,p=null,g=0,y=null,E=-1,w=null,A=null,C=[];if(!u)for(w=0,u=[];w<n;w++)u[w]=L(e[w]);for(r=i,o=!1,!1,s=!1,a=!1,A=0;A<n;A++){if(d=g,C[A]=f=B(e,u,C,A),y=240&(g=h[d][f]),g&=15,t[A]=p=h[g][5],y>0)if(16==y){for(w=E;w<A;w++)t[w]=1;E=-1}else E=-1;if(h[g][6])-1==E&&(E=A);else if(E>-1){for(w=E;w<A;w++)t[w]=p;E=-1}u[A]==m&&(t[A]=0),r|=p}if(a)for(w=0;w<n;w++)if(u[w]==v){t[w]=i;for(var F=w-1;F>=0&&u[F]==b;F--)t[F]=i}}(f,A,f.length,n);for(var C=0;C<E.length;E[C]=C,C++);R(2,A,E),R(1,A,E);for(C=0;C<E.length-1;C++)n[C]===p?A[C]=t.AN:A[C]===d&&(n[C]>y&&n[C]<F||n[C]===g||n[C]===k)?A[C]=t.ON_R:C>0&&"\u0644"===f[C-1]&&/\u0622|\u0623|\u0625|\u0627/.test(f[C])&&(A[C-1]=A[C]=t.R_H,C++);f[f.length-1]===t.DOT&&(A[f.length-1]=t.B);for(C=0;C<E.length;C++)w[C]=A[E[C]];return{logicalFromVisual:E,bidiLevels:w}},t.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t[i]=L(e.charAt(i)),n||t[i]!=d&&t[i]!=y||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang","ace/lib/useragent"],function(e,t,n){"use strict";var i=e("./lib/bidiutil"),r=e("./lib/lang"),o=e("./lib/useragent"),s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=i,this.charWidths=[],this.EOL="\xac",this.showInvisibles=!0,this.isRtlDir=!1,this.line="",this.wrapIndent=0,this.isLastRow=!1,this.EOF="\xb6",this.seenBidi=!1};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&s.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,i=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===i;)i=n,e++;return e},this.updateRowLine=function(e,t){if(void 0===e&&(e=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=e===this.session.getLength()-1,this.line=this.session.getLine(e),this.session.$useWrapMode){var n=this.session.$wrapData[e];n&&(void 0===t&&(t=this.getSplitIndex()),t>0&&n.length?(this.wrapIndent=n.indent,this.line=t<n.length?this.line.substring(n[t-1],n[n.length-1]):this.line.substring(n[n.length-1])):this.line=this.line.substring(0,n[t]))}var o,s=this.session,a=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(e,t){return"\t"===e||s.isFullWidth(e.charCodeAt(0))?(o="\t"===e?s.getScreenTabSize(t+a):2,a+=o-1,r.stringRepeat(i.DOT,o)):e})},this.updateBidiMap=function(){var e=[],t=this.isLastRow?this.EOF:this.EOL,n=this.line+(this.showInvisibles?t:i.DOT);i.hasBidiCharacters(n,e)?this.bidiMap=i.doBidiReorder(n,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.seenBidi&&this.characterWidth!==e.$characterSize.width){var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("\u05d4");this.charWidths[i.L]=this.charWidths[i.EN]=this.charWidths[i.ON_R]=t,this.charWidths[i.R]=this.charWidths[i.AN]=n,this.charWidths[i.R_H]=o.isChrome?n:.45*n,this.charWidths[i.B]=0,this.currentRow=null}},this.getShowInvisibles=function(){return this.showInvisibles},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setTextDir=function(e){this.isRtlDir=e},this.getPosLeft=function(e){e-=this.wrapIndent;var t=i.getVisualFromLogicalIdx(e>0?e-1:0,this.bidiMap),n=this.bidiMap.bidiLevels,r=0;0===e&&n[t]%2!==0&&t++;for(var o=0;o<t;o++)r+=this.charWidths[n[o]];return 0!==e&&n[t]%2===0&&(r+=this.charWidths[n[t]]),this.wrapIndent&&(r+=this.wrapIndent*this.charWidths[i.L]),r},this.getSelections=function(e,t){for(var n,r,o=this.bidiMap,s=o.bidiLevels,a=this.wrapIndent*this.charWidths[i.L],c=[],l=Math.min(e,t)-this.wrapIndent,u=Math.max(e,t)-this.wrapIndent,h=!1,d=!1,f=0,p=0;p<s.length;p++)r=o.logicalFromVisual[p],n=s[p],(h=r>=l&&r<u)&&!d?f=a:!h&&d&&c.push({left:f,width:a-f}),a+=this.charWidths[n],d=h;return h&&p===s.length&&c.push({left:f,width:a-f}),c},this.offsetToCol=function(e){var t=0,n=(e=Math.max(e,0),0),r=0,o=this.bidiMap.bidiLevels,s=this.charWidths[o[r]];for(this.wrapIndent&&(e-=this.wrapIndent*this.charWidths[i.L]);e>n+s/2;){if(n+=s,r===o.length-1){s=0;break}s=this.charWidths[o[++r]]}return r>0&&o[r-1]%2!==0&&o[r]%2===0?(e<n&&r--,t=this.bidiMap.logicalFromVisual[r]):r>0&&o[r-1]%2===0&&o[r]%2!==0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===o.length-1&&0===s&&o[r-1]%2===0||!this.isRtlDir&&0===r&&o[r]%2!==0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&o[r-1]%2!==0&&0!==s&&r--,t=this.bidiMap.logicalFromVisual[r]),t+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a}),ace.define("ace/range",["require","exports","module"],function(e,t,n){"use strict";var i=function(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,i=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(i.row,i.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(i.row,i.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var r={row:e,column:t};else var o={row:e,column:t};return i.fromPoints(r||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.lead=this.selectionLead=this.doc.createAnchor(0,0),this.anchor=this.selectionAnchor=this.doc.createAnchor(0,0);var t=this;this.lead.on("change",function(e){t._emit("changeCursor"),t.$isEmpty||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.selectionAnchor.on("change",function(){t.$isEmpty||t._emit("changeSelection")})};(function(){i.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.isEmpty()&&this.getRange().isMultiLine()},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.anchor.setPosition(e,t),this.$isEmpty&&(this.$isEmpty=!1,this._emit("changeSelection"))},this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.shiftSelection=function(e){if(this.$isEmpty)this.moveCursorTo(this.lead.row,this.lead.column+e);else{var t=this.getSelectionAnchor(),n=this.getSelectionLead(),i=this.isBackwards();i&&0===t.column||this.setSelectionAnchor(t.row,t.column+e),(i||0!==n.column)&&this.$moveSelection(function(){this.moveCursorTo(n.row,n.column+e)})}},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.isEmpty()?s.fromPoints(t,t):this.isBackwards()?s.fromPoints(t,e):s.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(e,this.doc.getLine(e).length)},this.setRange=this.setSelectionRange=function(e,t){t?(this.setSelectionAnchor(e.end.row,e.end.column),this.selectTo(e.start.row,e.start.column)):(this.setSelectionAnchor(e.start.row,e.start.column),this.selectTo(e.end.row,e.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if("undefined"==typeof t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,i="number"==typeof e?e:this.lead.row,r=this.session.getFoldLine(i);return r?(i=r.start.row,n=r.end.row):n=i,!0===t?new s(i,0,n,this.session.getLine(n).length):new s(i,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,r=e.column+t;return n<0&&(i=e.column-t,r=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,r).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(n,0),r=this.session.getDisplayLine(e,null,i.row,i.column).match(/^\s*/);r[0].length==t||this.session.$useEmacsStyleLineStart||(i.column+=r[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var i=n.search(/\s+$/);i>0&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var r=this.session.getFoldAt(e,t,1);if(r)this.moveCursorTo(r.end.row,r.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var i=this.session.getFoldStringAt(t,n,-1);null==i&&(i=this.doc.getLine(t).substring(0,n));var o=r.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(o)&&(n-=this.session.nonTokenRe.lastIndex,o=o.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,r=this.session.tokenRe;if(r.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&i.test(t);)n++;if(n<1)for(r.lastIndex=0;(t=e[n])&&!r.test(t);)if(r.lastIndex=0,n++,i.test(t)){if(n>2){n--;break}for(;(t=e[n])&&i.test(t);)n++;if(n>2)break}}return r.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),r=this.session.getFoldAt(e,t,1);if(r)return this.moveCursorTo(r.end.row,r.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,i=this.doc.getLine(e)}while(e<o&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),t=0}var s=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+s)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var i=this.session.getLine(t).substring(0,n);if(0===n){do{t--,i=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(i));n=i.length,/\s+$/.test(i)||(i="")}var o=r.stringReverse(i),s=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-s)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column);var r=this.session.screenToDocumentPosition(i.row+e,i.column,n);0!==e&&0===t&&r.row===this.lead.row&&r.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[r.row]&&(r.row>0||e>0)&&r.row++,this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var r=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(r.charAt(t))&&r.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return s.fromPoints(t,n)}catch(i){return s.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(void 0==e.start){if(this.rangeList){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=s.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(e,t,n){"use strict";var i=e("./config"),r=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],r=0,o=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],c=0;c<n.length;c++){var l=n[c];if(l.defaultToken&&(o.defaultToken=l.defaultToken),l.caseInsensitive&&(s="gi"),null!=l.regex){l.regex instanceof RegExp&&(l.regex=l.regex.toString().slice(1,-1));var u=l.regex,h=new RegExp("(?:("+u+")|(.))").exec("a").length-2;Array.isArray(l.token)?1==l.token.length||1==h?l.token=l.token[0]:h-1!=l.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:l,groupCount:h-1}),l.token=l.token[0]):(l.tokenArray=l.token,l.token=null,l.onMatch=this.$arrayTokens):"function"!=typeof l.token||l.onMatch||(l.onMatch=h>1?this.$applyToken:l.token),h>1&&(/\\\d/.test(l.regex)?u=l.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+r+1)}):(h=1,u=this.removeCapturingGroups(l.regex)),l.splitRegex||"string"==typeof l.token||a.push(l)),o[r]=c,r+=h,i.push(u),l.onMatch||(l.onMatch=null)}}i.length||(o[0]=0,i.push("$")),a.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",s)}};(function(){this.$setMaxTokenCount=function(e){r=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"===typeof n)return[{type:n,value:e}];for(var i=[],r=0,o=n.length;r<o;r++)t[r]&&(i[i.length]={type:n[r],value:t[r]});return i},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],i=this.tokenArray,r=0,o=i.length;r<o;r++)t[r+1]&&(n[n.length]={type:i[r],value:t[r+1]});return n},this.removeCapturingGroups=function(e){return e.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,function(e,t){return t?"(?:":e})},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,i=!1,r={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(e,t,o,s,a,c){return i?i="]"!=a:a?i=!0:s?(n==r.stack&&(r.end=c+1,r.stack=-1),n--):o&&(n++,1!=o.length&&(r.stack=n,r.start=c)),e}),null!=r.end&&/^\)*$/.test(e.substr(r.end))&&(e=e.substring(0,r.start)+e.substr(r.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);"#tmp"===(t=n[0])&&(n.shift(),t=n.shift())}else n=[];var i=t||"start",o=this.states[i];o||(i="start",o=this.states[i]);var s=this.matchMappings[i],a=this.regExps[i];a.lastIndex=0;for(var c,l=[],u=0,h=0,d={type:null,value:""};c=a.exec(e);){var f=s.defaultToken,p=null,g=c[0],m=a.lastIndex;if(m-g.length>u){var v=e.substring(u,m-g.length);d.type==f?d.value+=v:(d.type&&l.push(d),d={type:f,value:v})}for(var y=0;y<c.length-2;y++)if(void 0!==c[y+1]){f=(p=o[s[y]]).onMatch?p.onMatch(g,i,n,e):p.token,p.next&&(i="string"==typeof p.next?p.next:p.next(i,n),(o=this.states[i])||(this.reportError("state doesn't exist",i),i="start",o=this.states[i]),s=this.matchMappings[i],u=m,(a=this.regExps[i]).lastIndex=m),p.consumeLineEnd&&(u=m);break}if(g)if("string"===typeof f)p&&!1===p.merge||d.type!==f?(d.type&&l.push(d),d={type:f,value:g}):d.value+=g;else if(f){d.type&&l.push(d),d={type:null,value:""};for(y=0;y<f.length;y++)l.push(f[y])}if(u==e.length)break;if(u=m,h++>r){for(h>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});u<e.length;)d.type&&l.push(d),d={value:e.substring(u,u+=2e3),type:"overflow"};i="start",n=[];break}}return d.type&&l.push(d),n.length>1&&n[0]!==i&&n.unshift("#tmp",i),{tokens:l,state:n.length?n:i}},this.reportError=i.reportError}).call(o.prototype),t.Tokenizer=o}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t,n){"use strict";var i=e("../lib/lang"),r=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],r=0;r<i.length;r++){var o=i[r];(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(t)&&(o.next=t+o.next),o.nextState&&0!==o.nextState.indexOf(t)&&(o.nextState=t+o.nextState))}this.$rules[t+n]=i}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,r,o){var s="function"==typeof e?(new e).getRules():e;if(r)for(var a=0;a<r.length;a++)r[a]=t+r[a];else for(var c in r=[],s)r.push(t+c);if(this.addRules(s,t),n){var l=Array.prototype[o?"push":"unshift"];for(a=0;a<r.length;a++)l.apply(this.$rules[r[a]],i.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,i=this.$rules;Object.keys(i).forEach(function r(o){var s=i[o];s.processed=!0;for(var a=0;a<s.length;a++){var c=s[a],l=null;Array.isArray(c)&&(l=c,c={}),!c.regex&&c.start&&(c.regex=c.start,c.next||(c.next=[]),c.next.push({defaultToken:c.token},{token:c.token+".end",regex:c.end||c.start,next:"pop"}),c.token=c.token+".start",c.push=!0);var u=c.next||c.push;if(u&&Array.isArray(u)){var h=c.stateName;h||("string"!=typeof(h=c.token)&&(h=h[0]||""),i[h]&&(h+=n++)),i[h]=u,c.next=h,r(h)}else"pop"==u&&(c.next=t);if(c.push&&(c.nextState=c.next||c.push,c.next=e,delete c.push),c.rules)for(var d in c.rules)i[d]?i[d].push&&i[d].push.apply(i[d],c.rules[d]):i[d]=c.rules[d];var f="string"==typeof c?c:c.include;if(f&&(l=Array.isArray(f)?f.map(function(e){return i[e]}):i[f]),l){var p=[a,1].concat(l);c.noEscape&&(p=p.filter(function(e){return!e.next})),s.splice.apply(s,p),a--}c.keywordMap&&(c.token=this.createKeywordMapper(c.keywordMap,c.defaultToken||"text",c.caseInsensitive),delete c.defaultToken)}},this)},this.createKeywordMapper=function(e,t,n,i){var r=Object.create(null);return Object.keys(e).forEach(function(t){var o=e[t];n&&(o=o.toLowerCase());for(var s=o.split(i||"|"),a=s.length;a--;)r[s[a]]=t}),Object.getPrototypeOf(r)&&(r.__proto__=null),this.$keywordList=Object.keys(r),e=null,n?function(e){return r[e.toLowerCase()]||t}:function(e){return r[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(r.prototype),t.TextHighlightRules=r}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,t,n){"use strict";var i=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"===typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(i.prototype),t.Behaviour=i}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,t,n){"use strict";var i=e("./range").Range,r=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var i=e.getTokenAt(t,n);this.$tokenIndex=i?i.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new i(this.$row,t,this.$row,t+e.value.length)}}).call(r.prototype),t.TokenIterator=r}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,n){"use strict";var i,r=e("../../lib/oop"),o=e("../behaviour").Behaviour,s=e("../../token_iterator").TokenIterator,a=e("../../lib/lang"),c=["text","paren.rparen","punctuation.operator"],l=["text","paren.rparen","punctuation.operator","comment"],u={},h={'"':'"',"'":"'"},d=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return i=u[t];i=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(e,t,n,i){var r=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,r,e.end.column+(r?0:1)]}},p=function e(t){this.add("braces","insertion",function(n,r,o,s,c){var l=o.getCursorPosition(),u=s.doc.getLine(l.row);if("{"==c){d(o);var h=o.getSelectionRange(),p=s.doc.getTextRange(h);if(""!==p&&"{"!==p&&o.getWrapBehavioursEnabled())return f(h,p,"{","}");if(e.isSaneInsertion(o,s))return/[\]\}\)]/.test(u[l.column])||o.inMultiSelectMode||t&&t.braces?(e.recordAutoInsert(o,s,"}"),{text:"{}",selection:[1,1]}):(e.recordMaybeInsert(o,s,"{"),{text:"{",selection:[1,1]})}else if("}"==c){if(d(o),"}"==u.substring(l.column,l.column+1))if(null!==s.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&e.isAutoInsertedClosing(l,u,c))return e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==c||"\r\n"==c){d(o);var g="";if(e.isMaybeInsertedClosing(l,u)&&(g=a.stringRepeat("}",i.maybeInsertedBrackets),e.clearMaybeInsertedClosing()),"}"===u.substring(l.column,l.column+1)){var m=s.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!m)return null;var v=this.$getIndent(s.getLine(m.row))}else{if(!g)return void e.clearMaybeInsertedClosing();v=this.$getIndent(u)}var y=v+s.getTabString();return{text:"\n"+y+"\n"+v+g,selection:[1,y.length,1,y.length]}}e.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,t,n,r,o){var s=r.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==s){if(d(n),"}"==r.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;i.maybeInsertedBrackets--}}),this.add("parens","insertion",function(t,n,i,r,o){if("("==o){d(i);var s=i.getSelectionRange(),a=r.doc.getTextRange(s);if(""!==a&&i.getWrapBehavioursEnabled())return f(s,a,"(",")");if(e.isSaneInsertion(i,r))return e.recordAutoInsert(i,r,")"),{text:"()",selection:[1,1]}}else if(")"==o){d(i);var c=i.getCursorPosition(),l=r.doc.getLine(c.row);if(")"==l.substring(c.column,c.column+1))if(null!==r.$findOpeningBracket(")",{column:c.column+1,row:c.row})&&e.isAutoInsertedClosing(c,l,o))return e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(e,t,n,i,r){var o=i.doc.getTextRange(r);if(!r.isMultiLine()&&"("==o&&(d(n),")"==i.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r}),this.add("brackets","insertion",function(t,n,i,r,o){if("["==o){d(i);var s=i.getSelectionRange(),a=r.doc.getTextRange(s);if(""!==a&&i.getWrapBehavioursEnabled())return f(s,a,"[","]");if(e.isSaneInsertion(i,r))return e.recordAutoInsert(i,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){d(i);var c=i.getCursorPosition(),l=r.doc.getLine(c.row);if("]"==l.substring(c.column,c.column+1))if(null!==r.$findOpeningBracket("]",{column:c.column+1,row:c.row})&&e.isAutoInsertedClosing(c,l,o))return e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(e,t,n,i,r){var o=i.doc.getTextRange(r);if(!r.isMultiLine()&&"["==o&&(d(n),"]"==i.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r}),this.add("string_dquotes","insertion",function(e,t,n,i,r){var o=i.$mode.$quotes||h;if(1==r.length&&o[r]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(r))return;d(n);var s=r,a=n.getSelectionRange(),c=i.doc.getTextRange(a);if(!(""===c||1==c.length&&o[c])&&n.getWrapBehavioursEnabled())return f(a,c,s,s);if(!c){var l=n.getCursorPosition(),u=i.doc.getLine(l.row),p=u.substring(l.column-1,l.column),g=u.substring(l.column,l.column+1),m=i.getTokenAt(l.row,l.column),v=i.getTokenAt(l.row,l.column+1);if("\\"==p&&m&&/escape/.test(m.type))return null;var y,b=m&&/string|escape/.test(m.type),E=!v||/string|escape/.test(v.type);if(g==s)(y=b!==E)&&/string\.end/.test(v.type)&&(y=!1);else{if(b&&!E)return null;if(b&&E)return null;var w=i.$mode.tokenRe;w.lastIndex=0;var A=w.test(p);w.lastIndex=0;var C=w.test(p);if(A||C)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;y=!0}return{text:y?s+s:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,n,i,r){var o=i.doc.getTextRange(r);if(!r.isMultiLine()&&('"'==o||"'"==o)&&(d(n),i.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)==o))return r.end.column++,r})};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new s(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",c)){var r=new s(t,n.row,n.column+1);if(!this.$matchTokenType(r.getCurrentToken()||"text",c))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",l)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var r=e.getCursorPosition(),o=t.doc.getLine(r.row);this.isAutoInsertedClosing(r,o,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=r.row,i.autoInsertedLineEnd=n+o.substr(r.column),i.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var r=e.getCursorPosition(),o=t.doc.getLine(r.row);this.isMaybeInsertedClosing(r,o)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=r.row,i.maybeInsertedLineStart=o.substr(0,r.column)+n,i.maybeInsertedLineEnd=o.substr(r.column),i.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return i.autoInsertedBrackets>0&&e.row===i.autoInsertedRow&&n===i.autoInsertedLineEnd[0]&&t.substr(e.column)===i.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return i.maybeInsertedBrackets>0&&e.row===i.maybeInsertedRow&&t.substr(e.column)===i.maybeInsertedLineEnd&&t.substr(0,e.column)==i.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},r.inherits(p,o),t.CstyleBehaviour=p}),ace.define("ace/unicode",["require","exports","module"],function(e,t,n){"use strict";t.packages={},function(e){var n=/\w{4}/g;for(var i in e)t.packages[i]=e[i].replace(n,"\\u$&")}({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})}),ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,t,n){"use strict";var i=e("../tokenizer").Tokenizer,r=e("./text_highlight_rules").TextHighlightRules,o=e("./behaviour/cstyle").CstyleBehaviour,s=e("../unicode"),a=e("../lib/lang"),c=e("../token_iterator").TokenIterator,l=e("../range").Range,u=function(){this.HighlightRules=r};(function(){this.$defaultBehaviour=new o,this.tokenRe=new RegExp("^["+s.packages.L+s.packages.Mn+s.packages.Mc+s.packages.Nd+s.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+s.packages.L+s.packages.Mn+s.packages.Mc+s.packages.Nd+s.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,i){var r=t.doc,o=!0,s=!0,c=1/0,l=t.getTabSize(),u=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))g=this.lineCommentStart.map(a.escapeRegExp).join("|"),f=this.lineCommentStart[0];else g=a.escapeRegExp(this.lineCommentStart),f=this.lineCommentStart;g=new RegExp("^(\\s*)(?:"+g+") ?"),u=t.getUseSoftTabs();y=function(e,t){var n=e.match(g);if(n){var i=n[1].length,o=n[0].length;d(e,i,o)||" "!=n[0][o-1]||o--,r.removeInLine(t,i,o)}};var h=f+" ",d=(v=function(e,t){o&&!/\S/.test(e)||(d(e,c,c)?r.insertInLine({row:t,column:c},h):r.insertInLine({row:t,column:c},f))},b=function(e,t){return g.test(e)},function(e,t,n){for(var i=0;t--&&" "==e.charAt(t);)i++;if(i%l!=0)return!1;for(i=0;" "==e.charAt(n++);)i++;return l>2?i%l!=l-1:i%l==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,p=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+a.escapeRegExp(f)+")"),m=new RegExp("(?:"+a.escapeRegExp(p)+")\\s*$"),v=function(e,t){b(e,t)||o&&!/\S/.test(e)||(r.insertInLine({row:t,column:e.length},p),r.insertInLine({row:t,column:c},f))},y=function(e,t){var n;(n=e.match(m))&&r.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&r.removeInLine(t,n[1].length,n[0].length)},b=function(e,n){if(g.test(e))return!0;for(var i=t.getTokens(n),r=0;r<i.length;r++)if("comment"===i[r].type)return!0}}function E(e){for(var t=n;t<=i;t++)e(r.getLine(t),t)}var w=1/0;E(function(e,t){var n=e.search(/\S/);-1!==n?(n<c&&(c=n),s&&!b(e,t)&&(s=!1)):w>e.length&&(w=e.length)}),c==1/0&&(c=w,o=!1,s=!1),u&&c%l!=0&&(c=Math.floor(c/l)*l),E(s?y:v)},this.toggleBlockComment=function(e,t,n,i){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var o,s,a=(g=new c(t,i.row,i.column)).getCurrentToken(),u=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var h,d;a&&/comment/.test(a.type);){if(-1!=(m=a.value.indexOf(r.start))){var f=g.getCurrentTokenRow(),p=g.getCurrentTokenColumn()+m;h=new l(f,p,f,p+r.start.length);break}a=g.stepBackward()}var g;for(a=(g=new c(t,i.row,i.column)).getCurrentToken();a&&/comment/.test(a.type);){var m;if(-1!=(m=a.value.indexOf(r.end))){f=g.getCurrentTokenRow(),p=g.getCurrentTokenColumn()+m;d=new l(f,p,f,p+r.end.length);break}a=g.stepForward()}d&&t.remove(d),h&&(t.remove(h),o=h.start.row,s=-r.start.length)}else s=r.start.length,o=n.start.row,t.insert(n.end,r.end),t.insert(n.start,r.start);u.start.row==o&&(u.start.column+=s),u.end.row==o&&(u.end.column+=s),t.selection.fromOrientedRange(u)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)e[t]&&(this.$embeds.push(t),this.$modes[t]=new e[t]);var n=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<n.length;t++)!function(e){var i=n[t],r=e[i];e[n[t]]=function(){return this.$delegator(i,arguments,r)}}(this)},this.$delegator=function(e,t,n){var i=t[0];"string"!=typeof i&&(i=i[0]);for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds[r]]){var o=i.split(this.$embeds[r]);if(!o[0]&&o[1]){t[0]=o[1];var s=this.$modes[this.$embeds[r]];return s[e].apply(s,t)}}var a=n.apply(this,t);return n?a:void 0},this.transformAction=function(e,t,n,i,r){if(this.$behaviour){var o=this.$behaviour.getBehaviours();for(var s in o)if(o[s][t]){var a=o[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var r=t[i],o=0,s=r.length;o<s;o++)if("string"===typeof r[o].token)/keyword|support|storage/.test(r[o].token)&&n.push(r[o].regex);else if("object"===typeof r[o].token)for(var a=0,c=r[o].token.length;a<c;a++)if(/keyword|support|storage/.test(r[o].token[a])){i=r[o].regex.match(/\(.+?\)/g)[a];n.push(i.substr(1,i.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,i){return(this.$keywordList||this.$createKeywordList()).map(function(e){return{name:e,value:e,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(u.prototype),t.Mode=u}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var i=t.start.row,r=t.start.column,o=e[i]||"";switch(t.action){case"insert":if(1===t.lines.length)e[i]=o.substring(0,r)+t.lines[0]+o.substring(r);else{var s=[i,1].concat(t.lines);e.splice.apply(e,s),e[i]=o.substring(0,r)+e[i],e[i+t.lines.length-1]+=o.substring(r)}break;case"remove":var a=t.end.column,c=t.end.row;i===c?e[i]=o.substring(0,r)+o.substring(a):e.splice(i,c-i+1,o.substring(0,r)+e[c].substring(a))}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"undefined"==typeof n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var i=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}i.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if((t.start.row!=t.end.row||t.start.row==this.row)&&!(t.start.row>this.row)){var n=function(t,n,i){var r="insert"==t.action,o=(r?1:-1)*(t.end.row-t.start.row),s=(r?1:-1)*(t.end.column-t.start.column),a=t.start,c=r?a:t.end;if(e(n,a,i))return{row:n.row,column:n.column};if(e(c,n,!i))return{row:n.row+o,column:n.column+(n.row==c.row?s:0)};return{row:a.row,column:a.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var i;if(i=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var r={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:r,value:i})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,c=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){i.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new a(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:i,action:"insert",lines:[t]},!0),this.clonePos(i)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var i=this.getLine(e);return void 0==t&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),i={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:i,action:"insert",lines:t}),this.clonePos(i)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var i=this.clippedPos(e,t),r=this.clippedPos(e,n);return this.applyDelta({start:i,end:r,action:"remove",lines:this.getLinesForRange({start:i,end:r})},!0),this.clonePos(i)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,i=t<this.getLength()-1,r=n?e-1:e,o=n?this.getLine(r).length:0,a=i?t+1:t,c=i?0:this.getLine(a).length,l=new s(r,o,a,c),u=this.$lines.slice(e,t+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),u},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4&&this.$splitAndapplyLargeDelta(e,2e4),r(this.$lines,e,t),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length,r=e.start.row,o=e.start.column,s=0,a=0;;){s=a,a+=t-1;var c=n.slice(s,a);if(a>i){e.lines=c,e.start.row=r+s,e.start.column=o;break}c.push(""),this.applyDelta({start:this.pos(r+s,o),end:this.pos(r+a,o=0),action:e.action,lines:c},!0)}},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,r=t||0,o=n.length;r<o;r++)if((e-=n[r].length+i)<0)return{row:r,column:e+n[r].length+i};return{row:o-1,column:n[o-1].length}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,r=0,o=Math.min(e.row,n.length),s=t||0;s<o;++s)r+=n[s].length+i;return r+e.column}}).call(c.prototype),t.Document=c}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){for(var e=new Date,t=n.currentLine,i=-1,r=n.doc,o=t;n.lines[t];)t++;var s=r.getLength(),a=0;for(n.running=!1;t<s;){n.$tokenizeRow(t),i=t;do{t++}while(n.lines[t]);if(++a%5===0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==i&&(i=t),o<=i&&n.fireUpdateEvent(o,i)}}};(function(){i.implement(this,r),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],i=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!==i.state+""?(this.states[e]=i.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=i.tokens}}).call(o.prototype),t.BackgroundTokenizer=o}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,n){"use strict";var i=e("./lib/lang"),r=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,o){if(this.regExp)for(var s=o.firstRow,a=o.lastRow,c=s;c<=a;c++){var l=this.cache[c];null==l&&((l=i.getMatchOffsets(n.getLine(c),this.regExp)).length>this.MAX_RANGES&&(l=l.slice(0,this.MAX_RANGES)),l=l.map(function(e){return new r(c,e.offset,c,e.offset+e.length)}),this.cache[c]=l.length?l:"");for(var u=l.length;u--;)t.drawSingleLineMarker(e,l[u].toScreenRange(n),this.clazz,o)}}}).call(o.prototype),t.SearchHighlight=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,n){"use strict";var i=e("../range").Range;function r(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var i,r,o=0,s=this.folds,a=!0;null==t&&(t=this.end.row,n=this.end.column);for(var c=0;c<s.length;c++){if(-1==(r=(i=s[c]).range.compareStart(t,n)))return void e(null,t,n,o,a);if(!e(null,i.start.row,i.start.column,o,a)&&e(i.placeholder,i.start.row,i.start.column,o)||0===r)return;a=!i.sameRow,o=i.end.column}e(null,t,n,o,a)},this.getNextFoldTo=function(e,t){for(var n,i,r=0;r<this.folds.length;r++){if(-1==(i=(n=this.folds[r]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var i,r,o=this.getNextFoldTo(e,t);if(o)if(i=o.fold,"inside"==o.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){var s=(r=this.folds).indexOf(i);for(0===s&&(this.start.column+=n);s<r.length;s++){if((i=r[s]).start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var i=n.fold,o=this.folds,s=this.foldData,a=o.indexOf(i),c=o[a-1];this.end.row=c.end.row,this.end.column=c.end.column;var l=new r(s,o=o.splice(a,o.length-a));return s.splice(s.indexOf(this)+1,0,l),l},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var i=this.foldData;i.splice(i.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach(function(t){e.push("  "+t.toString())}),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if((e-=i.start.column-t)<0)return{row:i.start.row,column:i.start.column+e};if((e-=i.placeholder.length)<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(r.prototype),t.FoldLine=r}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,t,n){"use strict";var i=e("./range").Range.comparePoints,r=function(){this.ranges=[]};(function(){this.comparePoints=i,this.pointIndex=function(e,t,n){for(var r=this.ranges,o=n||0;o<r.length;o++){var s=r[o],a=i(e,s.end);if(!(a>0)){var c=i(e,s.start);return 0===a?t&&0!==c?-o-2:o:c>0||0===c&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var i=this.pointIndex(e.end,t,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,r=(n=n.sort(function(e,t){return i(e.start,t.start)}))[0],o=1;o<n.length;o++){e=r,r=n[o];var s=i(e.end,r.start);s<0||(0!=s||e.isEmpty()||r.isEmpty())&&(i(e.end,r.end)<0&&(e.end.row=r.end.row,e.end.column=r.end.column),n.splice(o,1),t.push(r),r=e,o--)}return this.ranges=n,t},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var i=this.pointIndex({row:e,column:0});i<0&&(i=-i-1);var r=this.pointIndex({row:t,column:0},i);r<0&&(r=-r-1);for(var o=[],s=i;s<r;s++)o.push(n[s]);return o},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){if("insert"==e.action)var t=e.start,n=e.end;else n=e.start,t=e.end;for(var i=t.row,r=n.row-i,o=-t.column+n.column,s=this.ranges,a=0,c=s.length;a<c;a++){if(!((l=s[a]).end.row<i)){if(l.start.row>i)break;if(l.start.row==i&&l.start.column>=t.column&&(l.start.column==t.column&&this.$insertRight||(l.start.column+=o,l.start.row+=r)),l.end.row==i&&l.end.column>=t.column){if(l.end.column==t.column&&this.$insertRight)continue;l.end.column==t.column&&o>0&&a<c-1&&l.end.column>l.start.column&&l.end.column==s[a+1].start.column&&(l.end.column-=o),l.end.column+=o,l.end.row+=r}}}if(0!=r&&a<c)for(;a<c;a++){var l;(l=s[a]).start.row+=r,l.end.row+=r}}}).call(r.prototype),t.RangeList=r}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],function(e,t,n){"use strict";e("../range").Range;var i=e("../range_list").RangeList,r=e("../lib/oop"),o=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function s(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function a(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}r.inherits(o,i),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach(function(t){t.setFoldLine(e)})},this.clone=function(){var e=this.range.clone(),t=new o(e,this.placeholder);return this.subFolds.forEach(function(e){t.subFolds.push(e.clone())}),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){if(!this.range.containsRange(e))throw new Error("A fold can't intersect already existing fold"+e.range+this.range);var t,n;t=e,n=this.start,s(t.start,n),s(t.end,n);for(var i=e.start.row,r=e.start.column,o=0,a=-1;o<this.subFolds.length&&1==(a=this.subFolds[o].range.compare(i,r));o++);var c=this.subFolds[o];if(0==a)return c.addSubFold(e);i=e.range.end.row,r=e.range.end.column;var l=o;for(a=-1;l<this.subFolds.length&&1==(a=this.subFolds[l].range.compare(i,r));l++);this.subFolds[l];if(0==a)throw new Error("A fold can't intersect already existing fold"+e.range+this.range);this.subFolds.splice(o,l-o,e);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return function(e,t){a(e.start,t),a(e.end,t)}(e,this.start)}}.call(o.prototype)}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],function(e,t,n){"use strict";var i=e("../range").Range,r=e("./fold_line").FoldLine,o=e("./fold").Fold,s=e("../token_iterator").TokenIterator;t.Folding=function(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var r=i.folds,o=0;o<r.length;o++){var s=r[o];if(s.range.contains(e,t)){if(1==n&&s.range.isEnd(e,t))continue;if(-1==n&&s.range.isStart(e,t))continue;return s}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,r=[];t.column+=1,n.column-=1;for(var o=0;o<i.length;o++){var s=i[o].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=i[o].folds,c=0;c<a.length;c++){var l=a[c];if(-2==(s=l.range.compareRange(e)))break;if(2!=s){if(42==s)break;r.push(l)}}}}return t.column-=1,n.column+=1,r},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach(function(e){t=t.concat(this.getFoldsInRange(e))},this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t[n].folds.length;i++)e.push(t[n].folds[i]);return e},this.getFoldStringAt=function(e,t,n,i){if(!(i=i||this.getFoldLine(e)))return null;for(var r,o,s={end:{column:0}},a=0;a<i.folds.length;a++){var c=(o=i.folds[a]).range.compareEnd(e,t);if(-1==c){r=this.getLine(o.start.row).substring(s.end.column,o.start.column);break}if(0===c)return null;s=o}return r||(r=this.getLine(o.start.row).substring(s.end.column)),-1==n?r.substring(0,t-s.end.column):1==n?r.substring(t-s.end.column):r},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i<n.length;i++){var r=n[i];if(r.start.row<=e&&r.end.row>=e)return r;if(r.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i<n.length;i++){var r=n[i];if(r.end.row>=e)return r}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,r=0;r<n.length;r++){var o=n[r],s=o.end.row,a=o.start.row;if(s>=t){a<t&&(a>=e?i-=t-a:i=0);break}s>=e&&(i-=a>=e?s-a:s-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var n,i=this.$foldData,s=!1;e instanceof o?n=e:(n=new o(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var a=n.start.row,c=n.start.column,l=n.end.row,u=n.end.column;if(!(a<l||a==l&&c<=u-2))throw new Error("The range has to be at least 2 characters width");var h=this.getFoldAt(a,c,1),d=this.getFoldAt(l,u,-1);if(h&&d==h)return h.addSubFold(n);h&&!h.range.isStart(a,c)&&this.removeFold(h),d&&!d.range.isEnd(l,u)&&this.removeFold(d);var f=this.getFoldsInRange(n.range);f.length>0&&(this.removeFolds(f),f.forEach(function(e){n.addSubFold(e)}));for(var p=0;p<i.length;p++){var g=i[p];if(l==g.start.row){g.addFold(n),s=!0;break}if(a==g.end.row){if(g.addFold(n),s=!0,!n.sameRow){var m=i[p+1];if(m&&m.start.row==l){g.merge(m);break}}break}if(l<=g.start.row)break}return s||(g=this.$addFoldLine(new r(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,r=this.$foldData,o=t.folds;if(1==o.length)r.splice(r.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))o.pop(),t.end.row=o[o.length-1].end.row,t.end.column=o[o.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))o.shift(),t.start.row=o[0].start.row,t.start.column=o[0].start.column;else if(e.sameRow)o.splice(o.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);(o=s.folds).shift(),s.start.row=o[0].start.row,s.start.column=o[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach(function(t){e.restoreRange(t),this.addFold(t)},this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var n,r;if(null==e?(n=new i(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new i(e,0,e,this.getLine(e).length):"row"in e?i.fromPoints(e,e):e,r=this.getFoldsInRangeList(n),t)this.removeFolds(r);else for(var o=r;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(r.length)return r},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,i,r){null==i&&(i=e.start.row),null==r&&(r=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,s="";return e.walk(function(e,t,n,a){if(!(t<i)){if(t==i){if(n<r)return;a=Math.max(r,a)}s+=null!=e?e:o.getLine(t).substring(a,n)}},t,n),s},this.getDisplayLine=function(e,t,n,i){var r,o=this.getFoldLine(e);return o?this.getFoldDisplayLine(o,e,t,n,i):(r=this.doc.getLine(e)).substring(i||0,t||r.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map(function(t){var n=t.folds.map(function(e){return e.clone()});return new r(e,n)})},this.toggleFold=function(e){var t,n,i=this.selection.getRange();if(i.isEmpty()){var r=i.start;if(t=this.getFoldAt(r.row,r.column))return void this.expandFold(t);(n=this.findMatchingBracket(r))?1==i.comparePoint(n)?i.end=n:(i.start=n,i.start.column++,i.end.column--):(n=this.findMatchingBracket({row:r.row,column:r.column+1}))?(1==i.comparePoint(n)?i.end=n:i.start=n,i.start.column++):i=this.getCommentFoldRange(r.row,r.column)||i}else{var o=this.getFoldsInRange(i);if(e&&o.length)return void this.expandFolds(o);1==o.length&&(t=o[0])}if(t||(t=this.getFoldAt(i.start.row,i.start.column)),t&&t.range.toString()==i.toString())this.expandFold(t);else{var s="...";if(!i.isMultiLine()){if((s=this.getTextRange(i)).length<4)return;s=s.trim().substring(0,2)+".."}this.addFold(s,i)}},this.getCommentFoldRange=function(e,t,n){var r=new s(this,e,t),o=r.getCurrentToken(),a=o.type;if(o&&/^comment|string/.test(a)){"comment"==(a=a.match(/comment|string/)[0])&&(a+="|doc-start");var c=new RegExp(a),l=new i;if(1!=n){do{o=r.stepBackward()}while(o&&c.test(o.type));r.stepForward()}if(l.start.row=r.getCurrentTokenRow(),l.start.column=r.getCurrentTokenColumn()+2,r=new s(this,e,t),-1!=n){var u=-1;do{if(o=r.stepForward(),-1==u){var h=this.getState(r.$row);c.test(h)||(u=r.$row)}else if(r.$row>u)break}while(o&&c.test(o.type));o=r.stepBackward()}else o=r.getCurrentToken();return l.end.row=r.getCurrentTokenRow(),l.end.column=r.getCurrentTokenColumn()+o.value.length-2,l}},this.foldAll=function(e,t,n){void 0==n&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength();for(var r=e=e||0;r<t;r++)if(null==i[r]&&(i[r]=this.getFoldWidget(r)),"start"==i[r]){var o=this.getFoldWidgetRange(r);if(o&&o.isMultiLine()&&o.end.row<=t&&o.start.row>=e){r=o.end.row;try{var s=this.addFold("...",o);s&&(s.collapseChildren=n)}catch(a){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var i,r=e-1;r>=0;){var o=n[r];if(null==o&&(o=n[r]=this.getFoldWidget(r)),"start"==o){var s=this.getFoldWidgetRange(r);if(i||(i=s),s&&s.end.row>=e)break}r--}return{range:-1!==r&&s,firstRange:i}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),i=this.getLine(e),r="end"===n?-1:1,o=this.getFoldAt(e,-1===r?0:i.length,r);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(o=this.getFoldAt(s.start.row,s.start.column,1))&&s.isEqual(o.range))return this.removeFold(o),o;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var c=a.range.start.row+1,l=a.range.end.row;this.foldAll(c,l,t.all?1e4:0)}else t.children?(l=s?s.end.row:this.getLength(),this.foldAll(e+1,l,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var i=this.getParentFoldRangeData(t,!0);if(n=i.range||i.firstRange){t=n.start.row;var r=this.getFoldAt(t,this.getLine(t).length,1);r?this.removeFold(r):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,n){"use strict";var i=e("../token_iterator").TokenIterator,r=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var i=n.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),i=!0,o=n.charAt(e.column-1),s=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(s||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},s=o&&o.match(/([\(\[\{])|([\)\]\}])/),i=!1),!s)return null;if(s[1]){if(!(a=this.$findClosingBracket(s[1],e)))return null;t=r.fromPoints(e,a),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{var a;if(!(a=this.$findOpeningBracket(s[2],e)))return null;t=r.fromPoints(a,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(e,t,n){var r=this.$brackets[e],o=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-s.getCurrentTokenColumn()-2,l=a.value;;){for(;c>=0;){var u=l.charAt(c);if(u==r){if(0==(o-=1))return{row:s.getCurrentTokenRow(),column:c+s.getCurrentTokenColumn()}}else u==e&&(o+=1);c-=1}do{a=s.stepBackward()}while(a&&!n.test(a.type));if(null==a)break;c=(l=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var r=this.$brackets[e],o=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-s.getCurrentTokenColumn();;){for(var l=a.value,u=l.length;c<u;){var h=l.charAt(c);if(h==r){if(0==(o-=1))return{row:s.getCurrentTokenRow(),column:c+s.getCurrentTokenColumn()}}else h==e&&(o+=1);c+=1}do{a=s.stepForward()}while(a&&!n.test(a.type));if(null==a)break;c=0}return null}}}}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/lang"),o=e("./bidihandler").BidiHandler,s=e("./config"),a=e("./lib/event_emitter").EventEmitter,c=e("./selection").Selection,l=e("./mode/text").Mode,u=e("./range").Range,h=e("./document").Document,d=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,p=function e(t,n){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++e.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof t&&t.getLine||(t=new h(t)),this.$bidiHandler=new o(this),this.setDocument(t),this.selection=new c(this),s.resetOptions(this),this.setMode(n),s._signal("session",this)};p.$uid=0,function(){i.implement(this,a),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=e,e.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,i=e.length-1;n<=i;){var r=n+i>>1,o=e[r];if(t>o)n=r+1;else{if(!(t<o))return r;i=r-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);this.$fromUndo||!this.$undoManager||e.ignore||(this.$deltasDoc.push(e),t&&0!=t.length&&this.$deltasFold.push({action:"removeFolds",folds:t}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,i=this.bgTokenizer.getTokens(e),r=0;if(null==t){var o=i.length-1;r=this.getLine(e).length}else for(o=0;o<i.length&&!((r+=i[o].value.length)>=t);o++);return(n=i[o])?(n.index=o,n.start=r-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.$deltasFold.length&&(t.$deltas.push({group:"fold",deltas:t.$deltasFold}),t.$deltasFold=[]),t.$deltasDoc.length&&(t.$deltas.push({group:"doc",deltas:t.$deltasDoc}),t.$deltasDoc=[]),t.$deltas.length>0&&e.execute({action:"aceupdate",args:[t.$deltas,t],merge:t.mergeUndoDeltas}),t.mergeUndoDeltas=!1,t.$deltas=[]},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?r.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,i){var r=this.$markerId++,o={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!i,id:r};return i?(this.$frontMarkers[r]=o,this._signal("changeFrontMarker")):(this.$backMarkers[r]=o,this._signal("changeBackMarker")),r},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;t&&(delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,i){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var r=new u(e,0,t,1/0);return r.id=this.addMarker(r,n,"fullLine",i),r},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),i=!1;if(t>0&&(i=!!n.charAt(t-1).match(this.tokenRe)),i||(i=!!n.charAt(t).match(this.tokenRe)),i)var r=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))r=/\s/;else r=this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(r));o++}for(var s=t;s<n.length&&n.charAt(s).match(r);)s++;return new u(e,o,e,s)},this.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),i=this.getLine(n.end.row);i.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"===typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,s.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[i]=e,e.$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var n=e.getTokenizer();if(void 0!==n.addEventListener){var i=this.onReloadTokenizer.bind(this);n.addEventListener("update",i)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=new d(n);var r=this;this.bgTokenizer.addEventListener("update",function(e){r._signal("tokenizerUpdate",e)})}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach(function(t){t&&t.screenWidth>e&&(e=t.screenWidth)}),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,r=0,o=this.$foldData[r],s=o?o.start.row:1/0,a=t.length,c=0;c<a;c++){if(c>s){if((c=o.end.row+1)>=a)break;s=(o=this.$foldData[r++])?o.start.row:1/0}null==n[c]&&(n[c]=this.$getStringScreenWidth(t[c])[0]),n[c]>i&&(i=n[c])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,i=e.length-1;-1!=i;i--){var r=e[i];"doc"==r.group?(this.doc.revertDeltas(r.deltas),n=this.$getUndoSelection(r.deltas,!0,n)):r.deltas.forEach(function(e){this.addFolds(e.folds)},this)}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,i=0;i<e.length;i++){var r=e[i];"doc"==r.group&&(this.doc.applyDeltas(r.deltas),n=this.$getUndoSelection(r.deltas,!1,n))}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,n){function i(e){return t?"insert"!==e.action:"insert"===e.action}var r,o,s=e[0];i(s)?r=u.fromPoints(s.start,s.end):r=u.fromPoints(s.start,s.start);for(var a=1;a<e.length;a++)i(s=e[a])?(o=s.start,-1==r.compare(o.row,o.column)&&r.setStart(o),o=s.end,1==r.compare(o.row,o.column)&&r.setEnd(o),!0):(o=s.start,-1==r.compare(o.row,o.column)&&(r=u.fromPoints(s.start,s.start)),!1);if(null!=n){0===u.comparePoints(n.start,r.start)&&(n.start.column+=r.end.column-r.start.column,n.end.column+=r.end.column-r.start.column);var c=n.compareRange(r);1==c?r.setStart(n.start):-1==c&&r.setEnd(n.end)}return r},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var i=this.getTextRange(e),r=this.getFoldsInRange(e),o=u.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row;(l=s?-e.end.column:e.start.column-e.end.column)&&(o.start.row==e.end.row&&o.start.column>e.end.column&&(o.start.column+=l),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=l)),s&&o.start.row>=e.end.row&&(o.start.row+=s,o.end.row+=s)}if(o.end=this.insert(o.start,i),r.length){var a=e.start,c=o.start,l=(s=c.row-a.row,c.column-a.column);this.addFolds(r.map(function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=l),e.end.row==a.row&&(e.end.column+=l),e.start.row+=s,e.end.row+=s,e}))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),i=this.getTabSize(),r=t.start.row;r<=t.end.row;++r){var o=this.getLine(r);n.start.row=r,n.end.row=r;for(var s=0;s<i&&" "==o.charAt(s);++s);s<i&&"\t"==o.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((r=this.getRowFoldStart(e+n))<0)return 0;var i=r-e}else if(n>0){var r;if((r=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;i=r-t}else{e=this.$clipRowToDocument(e);i=(t=this.$clipRowToDocument(t))-e+1}var o=new u(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(o).map(function(e){return(e=e.clone()).start.row+=i,e.end.row+=i,e}),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,a),s.length&&this.addFolds(s),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var i=this.$constrainWrapLimit(e,n.min,n.max);return i!=this.$wrapLimit&&i>1&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,r=e.end,o=i.row,s=r.row,a=s-o,c=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,a);var l=this.$foldData;c=this.getFoldsInRange(e),this.removeFolds(c);var u=0;if(g=this.getFoldLine(r.row)){g.addRemoveChars(r.row,r.column,i.column-r.column),g.shiftRow(-a);var h=this.getFoldLine(o);h&&h!==g&&(h.merge(g),g=h),u=l.indexOf(g)+1}for(;u<l.length;u++){(g=l[u]).start.row>=r.row&&g.shiftRow(-a)}s=o}else{var d=Array(a);d.unshift(o,0);var f=t?this.$wrapData:this.$rowLengthCache;f.splice.apply(f,d);l=this.$foldData,u=0;if(g=this.getFoldLine(o)){var p=g.range.compareInside(i.row,i.column);0==p?(g=g.split(i.row,i.column))&&(g.shiftRow(a),g.addRemoveChars(s,0,r.column-i.column)):-1==p&&(g.addRemoveChars(o,0,r.column-i.column),g.shiftRow(a)),u=l.indexOf(g)+1}for(;u<l.length;u++){var g;(g=l[u]).start.row>=o&&g.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===n&&(c=this.getFoldsInRange(e),this.removeFolds(c),a=-a),(g=this.getFoldLine(o))&&g.addRemoveChars(o,i.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,s):this.$updateRowLengthCache(o,s),c},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(n,i){var r,o,s=this.doc.getAllLines(),a=this.getTabSize(),c=this.$wrapData,l=this.$wrapLimit,u=n;for(i=Math.min(i,s.length-1);u<=i;)(o=this.getFoldLine(u,o))?(r=[],o.walk(function(n,i,o,a){var c;if(null!=n){(c=this.$getDisplayTokens(n,r.length))[0]=e;for(var l=1;l<c.length;l++)c[l]=t}else c=this.$getDisplayTokens(s[i].substring(a,o),r.length);r=r.concat(c)}.bind(this),o.end.row,s[o.end.row].length+1),c[o.start.row]=this.$computeWrapSplits(r,l,a),u=o.end.row+1):(r=this.$getDisplayTokens(s[u]),c[u]=this.$computeWrapSplits(r,l,a),u++)};var e=3,t=4,n=10,o=11,c=12;function h(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(i,r,s){if(0==i.length)return[];var a=[],l=i.length,u=0,h=0,d=this.$wrapAsCode,f=this.$indentedSoftWrap,p=r<=Math.max(2*s,8)||!1===f?0:Math.floor(r/2);function g(e){var t=i.slice(u,e),r=t.length;t.join("").replace(/12/g,function(){r-=1}).replace(/2/g,function(){r-=1}),a.length||(m=function(){var e=0;if(0===p)return e;if(f)for(var t=0;t<i.length;t++){var r=i[t];if(r==n)e+=1;else{if(r!=o){if(r==c)continue;break}e+=s}}return d&&!1!==f&&(e+=s),Math.min(e,p)}(),a.indent=m),h+=r,a.push(h),u=e}for(var m=0;l-u>r-m;){var v=u+r-m;if(i[v-1]>=n&&i[v]>=n)g(v);else if(i[v]!=e&&i[v]!=t){for(var y=Math.max(v-(r-(r>>2)),u-1);v>y&&i[v]<e;)v--;if(d){for(;v>y&&i[v]<e;)v--;for(;v>y&&9==i[v];)v--}else for(;v>y&&i[v]<n;)v--;v>y?g(++v):(2==i[v=u+r]&&v--,g(v-m))}else{for(;v!=u-1&&i[v]!=e;v--);if(v>u){g(v);continue}for(v=u+r;v<i.length&&i[v]==t;v++);if(v==i.length)break;g(v)}}return a},this.$getDisplayTokens=function(e,t){var i,r=[];t=t||0;for(var s=0;s<e.length;s++){var a=e.charCodeAt(s);if(9==a){i=this.getScreenTabSize(r.length+t),r.push(o);for(var l=1;l<i;l++)r.push(c)}else 32==a?r.push(n):a>39&&a<48||a>57&&a<64?r.push(9):a>=4352&&h(a)?r.push(1,2):r.push(1)}return r},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var i,r;for(null==t&&(t=1/0),n=n||0,r=0;r<e.length&&(9==(i=e.charCodeAt(r))?n+=this.getScreenTabSize(n):i>=4352&&h(i)?n+=2:n+=1,!(n>t));r++);return[n,r]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-e%this.$tabSize},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var i,r,o=0,s=0,a=0,c=0,l=this.$screenRowCache,u=this.$getRowCacheIndex(l,e),h=l.length;if(h&&u>=0){a=l[u],o=this.$docRowCache[u];var d=e>l[h-1]}else d=!h;for(var f=this.getLength()-1,p=this.getNextFoldLine(o),g=p?p.start.row:1/0;a<=e&&!(a+(c=this.getRowLength(o))>e||o>=f);)a+=c,++o>g&&(o=p.end.row+1,g=(p=this.getNextFoldLine(o,p))?p.start.row:1/0),d&&(this.$docRowCache.push(o),this.$screenRowCache.push(a));if(p&&p.start.row<=o)i=this.getFoldDisplayLine(p),o=p.start.row;else{if(a+c<=e||o>f)return{row:f,column:this.getLine(f).length};i=this.getLine(o),p=null}var m=0,v=Math.floor(e-a);if(this.$useWrapMode){var y=this.$wrapData[o];y&&(r=y[v],v>0&&y.length&&(m=y.indent,s=y[v-1]||y[y.length-1],i=i.substring(s)))}return void 0!==n&&this.$bidiHandler.isBidiRow(a+v,o,v)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(i,t-m)[1],this.$useWrapMode&&s>=r&&(s=r-1),p?p.idxToPosition(s):{row:o,column:s}},this.documentToScreenPosition=function(e,t){if("undefined"===typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var i,r=0,o=null;(i=this.getFoldAt(e,t,1))&&(e=i.start.row,t=i.start.column);var s,a=0,c=this.$docRowCache,l=this.$getRowCacheIndex(c,e),u=c.length;if(u&&l>=0){a=c[l],r=this.$screenRowCache[l];var h=e>c[u-1]}else h=!u;for(var d=this.getNextFoldLine(a),f=d?d.start.row:1/0;a<e;){if(a>=f){if((s=d.end.row+1)>e)break;f=(d=this.getNextFoldLine(s,d))?d.start.row:1/0}else s=a+1;r+=this.getRowLength(a),a=s,h&&(this.$docRowCache.push(a),this.$screenRowCache.push(r))}var p="";d&&a>=f?(p=this.getFoldDisplayLine(d,e,t),o=d.start.row):(p=this.getLine(e).substring(0,t),o=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[o];if(m){for(var v=0;p.length>=m[v];)r++,v++;p=p.substring(m[v-1]||0,p.length),g=v>0?m.indent:0}}return{row:r,column:g+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,i=0,r=(a=0,(t=this.$foldData[a++])?t.start.row:1/0);i<n;){var o=this.$wrapData[i];e+=o?o.length+1:1,++i>r&&(i=t.end.row+1,r=(t=this.$foldData[a++])?t.start.row:1/0)}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)e-=(t=s[a]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,i){if(0===n)return[0,0];var r,o;for(n||(n=1/0),i=i||0,o=0;o<t.length&&!((i+="\t"===(r=t.charAt(o))?this.getScreenTabSize(i):e.getCharacterWidth(r))>n);o++);return[i,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=h}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),s.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}}),t.EditSession=p}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,n){"use strict";var i=e("./lib/lang"),r=e("./lib/oop"),o=e("./range").Range,s=function(){this.$options={}};(function(){this.set=function(e){return r.mixin(this.$options,e),this},this.getOptions=function(){return i.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var i=null;return n.forEach(function(e,n,r,s){return i=new o(e,n,r,s),!(n==s&&t.start&&t.start.start&&0!=t.skipCurrent&&i.isEqual(t.start))||(i=null,!1)}),i},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,r=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),s=[],a=t.re;if(t.$isMultiLine){var c,l=a.length,u=r.length-l;e:for(var h=a.offset||0;h<=u;h++){for(var d=0;d<l;d++)if(-1==r[h+d].search(a[d]))continue e;var f=r[h],p=r[h+l-1],g=f.length-f.match(a[0])[0].length,m=p.match(a[l-1])[0].length;c&&c.end.row===h&&c.end.column>g||(s.push(c=new o(h,g,h+l-1,m)),l>2&&(h=h+l-2))}}else for(var v=0;v<r.length;v++){var y=i.getMatchOffsets(r[v],a);for(d=0;d<y.length;d++){var b=y[d];s.push(new o(v,b.offset,v,b.offset+b.length))}}if(n){var E=n.start.column,w=n.start.column;for(v=0,d=s.length-1;v<d&&s[v].start.column<E&&s[v].start.row==n.start.row;)v++;for(;v<d&&s[d].end.column>w&&s[d].end.row==n.end.row;)d--;for(s=s.slice(v,d+1),v=0,d=s.length;v<d;v++)s[v].start.row+=n.start.row,s[v].end.row+=n.start.row}return s},this.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var r=i.exec(e);if(!r||r[0].length!=e.length)return null;if(t=e.replace(i,t),n.preserveCase){t=t.split("");for(var o=Math.min(e.length,e.length);o--;){var s=e[o];s&&s.toLowerCase()!=s?t[o]=t[o].toUpperCase():t[o]=t[o].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=i.escapeRegExp(n)),e.wholeWord&&(n=function(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(n,e));var r=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,r);try{var o=new RegExp(n,r)}catch(s){o=!1}return e.re=o},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],r=0;r<n.length;r++)try{i.push(new RegExp(n[r],t))}catch(o){return!1}return i},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var i=1==t.backwards,r=0!=t.skipCurrent,o=t.range,s=t.start;s||(s=o?o[i?"end":"start"]:e.selection.getRange()),s.start&&(s=s[r!=i?"end":"start"]);var a=o?o.start.row:0,c=o?o.end.row:e.getLength()-1;if(i)var l=function(e){var n=s.row;if(!h(n,s.column,e)){for(n--;n>=a;n--)if(h(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=c,a=s.row;n>=a;n--)if(h(n,Number.MAX_VALUE,e))return}};else l=function(e){var n=s.row;if(!h(n,s.column,e)){for(n+=1;n<=c;n++)if(h(n,0,e))return;if(0!=t.wrap)for(n=a,c=s.row;n<=c;n++)if(h(n,0,e))return}};if(t.$isMultiLine)var u=n.length,h=function(t,r,o){var s=i?t-u+1:t;if(!(s<0)){var a=e.getLine(s),c=a.search(n[0]);if(!(!i&&c<r||-1===c)){for(var l=1;l<u;l++)if(-1==(a=e.getLine(s+l)).search(n[l]))return;var h=a.match(n[u-1])[0].length;if(!(i&&h>r))return!!o(s,c,s+u-1,h)||void 0}}};else if(i)h=function(t,i,r){var o,s=e.getLine(t),a=[],c=0;for(n.lastIndex=0;o=n.exec(s);){var l=o[0].length;if(c=o.index,!l){if(c>=s.length)break;n.lastIndex=c+=1}if(o.index+l>i)break;a.push(o.index,l)}for(var u=a.length-1;u>=0;u-=2){var h=a[u-1];if(r(t,h,t,h+(l=a[u])))return!0}};else h=function(t,i,r){var o,s=e.getLine(t),a=i;for(n.lastIndex=i;o=n.exec(s);){var c=o[0].length;if(r(t,a=o.index,t,a+c))return!0;if(!c&&(n.lastIndex=a+=1,a>=s.length))return!1}};return{forEach:l}}}).call(s.prototype),t.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){"use strict";var i=e("../lib/keys"),r=e("../lib/useragent"),o=i.KEY_MODS;function s(e,t){this.platform=t||(r.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function a(e,t){s.call(this,e,t),this.$singleCommand=!1}a.prototype=s.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"===typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var i=this.commandKeyBinding;for(var r in i){var o=i[r];if(o==e)delete i[r];else if(Array.isArray(o)){var s=o.indexOf(e);-1!=s&&(o.splice(s,1),1==o.length&&(i[r]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(void 0==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach(function(e){var i="";if(-1!=e.indexOf(" ")){var r=e.split(/\s+/);e=r.pop(),r.forEach(function(e){var t=this.parseKeys(e),n=o[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")},this),i+=" "}var s=this.parseKeys(e),a=o[s.hashId]+s.key;this._addCommandToBinding(i+a,t,n)},this)},this._addCommandToBinding=function(t,n,i){var r,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(r=o[t].indexOf(n))&&o[t].splice(r,1):o[t]=[o[t]],"number"!=typeof i&&(i=e(n));var s=o[t];for(r=0;r<s.length;r++){if(e(s[r])>i)break}s.splice(r,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];if(n){if("string"===typeof n)return this.bindKey(n,t);"function"===typeof n&&(n={exec:n}),"object"===typeof n&&(n.name||(n.name=t),this.addCommand(n))}},this)},this.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)},this.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),n=t.pop(),r=i[n];if(i.FUNCTION_KEYS[r])n=i.FUNCTION_KEYS[r].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,s=t.length;s--;){var a=i.KEY_MODS[t[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[s]+" in "+e),!1;o|=a}return{key:n,hashId:o}},this.findKeyCommand=function(e,t){var n=o[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,i){if(!(i<0)){var r=o[t]+n,s=this.commandKeyBinding[r];return e.$keyChain&&(e.$keyChain+=" "+r,s=this.commandKeyBinding[e.$keyChain]||s),!s||"chainKeys"!=s&&"chainKeys"!=s[s.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||i>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-r.length-1)),{command:s}):(e.$keyChain=e.$keyChain||r,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(s.prototype),t.HashHandler=s,t.MultiHashHandler=a}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,s=function(e,t){r.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})};i.inherits(s,r),function(){i.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if("string"===typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(e.isAvailable&&!e.isAvailable(t))return!1;var r={editor:t,command:e,args:n};return r.returnValue=this._emit("exec",r),this._signal("afterExec",r),!1!==r.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach(function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e})}}.call(s.prototype),t.CommandManager=s}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,n){"use strict";var i=e("../lib/lang"),r=e("../config"),o=e("../range").Range;function s(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:s("Ctrl-,","Command-,"),exec:function(e){r.loadModule("ace/ext/settings_menu",function(t){t.init(e),e.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:s("Alt-E","F4"),exec:function(e){r.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(e,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(e){r.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(e,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:s("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:s(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:s("Ctrl-L","Command-L"),exec:function(e){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:s("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:s("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:s("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:s("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:s("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:s("Ctrl-F","Command-F"),exec:function(e){r.loadModule("ace/ext/searchbox",function(t){t.Search(e)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:s("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:s("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:s("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:s("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:s("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:s("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:s("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:s(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:s(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:s("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:s("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",bindKey:s("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:s("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(e){},readOnly:!0},{name:"cut",exec:function(e){var t=e.getSelectionRange();e._emit("cut",t),e.selection.isEmpty()||(e.session.remove(t),e.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:s("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:s("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(e){r.loadModule("ace/ext/searchbox",function(t){t.Search(e,!0)})}},{name:"undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:s("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:s("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:s("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:s("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(e,t){e.insert(i.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:s(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:s(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),r=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),s=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,c=e.session.doc.getLine(n.row),l=n.row+1;l<=r.row+1;l++){var u=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine(l)));0!==u.length&&(u=" "+u),c+=u}r.row+1<e.session.doc.getLength()-1&&(c+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new o(n.row,0,r.row+2,0),c),a>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+a)):(s=e.session.doc.getLine(n.row).length>s?s+1:s,e.selection.moveCursorTo(n.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:s(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,r=[];i.length<1&&(i=[e.selection.getRange()]);for(var s=0;s<i.length;s++)s==i.length-1&&(i[s].end.row===t&&i[s].end.column===n||r.push(new o(i[s].end.row,i[s].end.column,t,n))),0===s?0===i[s].start.row&&0===i[s].start.column||r.push(new o(0,0,i[s].start.row,i[s].start.column)):r.push(new o(i[s-1].end.row,i[s-1].end.column,i[s].start.row,i[s].start.column));e.exitMultiSelectMode(),e.clearSelection();for(s=0;s<r.length;s++)e.selection.addRange(r[s],!1)},readOnly:!0,scrollIntoView:"none"}]}),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator"],function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/oop"),r=e("./lib/dom"),o=e("./lib/lang"),s=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,l=e("./mouse/fold_handler").FoldHandler,u=e("./keyboard/keybinding").KeyBinding,h=e("./edit_session").EditSession,d=e("./search").Search,f=e("./range").Range,p=e("./lib/event_emitter").EventEmitter,g=e("./commands/command_manager").CommandManager,m=e("./commands/default_commands").commands,v=e("./config"),y=e("./token_iterator").TokenIterator,b=function e(t,n){var i=t.getContainerElement();this.container=i,this.renderer=t,this.id="editor"+ ++e.$uid,this.commands=new g(s.isMac?"mac":"win",m),"object"==typeof document&&(this.textInput=new a(t.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new l(this)),this.keyBinding=new u(this),this.$blockScrolling=0,this.$search=(new d).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(n||new h("")),v.resetOptions(this),v._signal("editor",this)};b.$uid=0,function(){i.implement(this,p),this.$initOperationListeners=function(){this.selections=[],this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=o.delayedCall(this.endOperation.bind(this)),this.on("change",function(){this.curOp||this.startOperation(),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||this.startOperation(),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.command.name&&void 0!==this.curOp.command.scrollIntoView&&this.$blockScrolling++},this.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null;this._signal("beforeEndOperation");var t=this.curOp.command;t.name&&this.$blockScrolling>0&&this.$blockScrolling--;var n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),r=this.renderer.layerConfig;(i.start.row>=r.lastRow||i.end.row<=r.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var r=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"===typeof e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],function(i){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(i&&i.handler),t&&t()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container,"fontSize")},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout(function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=t.findMatchingBracket(e.getCursorPosition());if(n)var i=new f(n.row,n.column,n.row,n.column+1);else if(t.$mode.getMatching)i=t.$mode.getMatching(e.session);i&&(t.$bracketHighlight=t.addMarker(i,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout(function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),i=new y(e.session,n.row,n.column),r=i.getCurrentToken();if(!r||!/\b(?:tag-open|tag-name)/.test(r.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==r.type.indexOf("tag-open")||(r=i.stepForward())){var o=r.value,s=0,a=i.stepBackward();if("<"==a.value)do{a=r,(r=i.stepForward())&&r.value===o&&-1!==r.type.indexOf("tag-name")&&("<"===a.value?s++:"</"===a.value&&s--)}while(r&&s>=0);else{do{r=a,a=i.stepBackward(),r&&r.value===o&&-1!==r.type.indexOf("tag-name")&&("<"===a.value?s++:"</"===a.value&&s--)}while(a&&s<=0);i.stepForward()}if(!r)return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);var c=i.getCurrentTokenRow(),l=i.getCurrentTokenColumn(),u=new f(c,l,c,l+r.value.length),h=t.$backMarkers[t.$tagHighlight];t.$tagHighlight&&void 0!=h&&0!==u.compareRange(h.range)&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),u&&!t.$tagHighlight&&(t.$tagHighlight=t.addMarker(u,"ace_bracket","text"))}}},50)}},this.focus=function(){var e=this;setTimeout(function(){e.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(v.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new f(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),i=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",i)}var r=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(r),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column-1,i=t.end.column+1,r=e.getLine(t.start.row),o=r.length,s=r.substring(Math.max(n,0),Math.min(i,o));if(!(n>=0&&/^[\w\d]/.test(s)||i<=o&&/[\w\d]$/.test(s)))if(s=r.substring(t.start.column,t.end.column),/^[\w\d]+$/.test(s))return this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:s})}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText();return this._signal("copy",e),e},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(t);else{var n=t.split(/\r\n|\r|\n/),i=this.selection.rangeList.ranges;if(n.length>i.length||n.length<2||!n[1])return this.commands.exec("insertstring",this,t);for(var r=i.length;r--;){var o=i[r];o.isEmpty()||this.session.remove(o),this.session.insert(o.start,n[r])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,i=n.getMode(),r=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var o=i.transformAction(n.getState(r.row),"insertion",this,n,e);o&&(e!==o.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),e=o.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(s=new f.fromPoints(r,r)).end.column+=e.length,this.session.remove(s)}}else{var s=this.getSelectionRange();r=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(r.row);if(r.column>a.search(/\S|$/)){var c=a.substr(r.column).search(/\S|$/);n.doc.removeInLine(r.row,r.column,r.column+c)}}this.clearSelection();var l=r.column,u=n.getState(r.row),h=(a=n.getLine(r.row),i.checkOutdent(u,a,e));n.insert(r,e);if(o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new f(r.row,l+o.selection[0],r.row,l+o.selection[1])):this.selection.setSelectionRange(new f(r.row+o.selection[0],o.selection[1],r.row+o.selection[2],o.selection[3]))),n.getDocument().isNewLine(e)){var d=i.getNextLineIndent(u,a.slice(0,r.column),n.getTabString());n.insert({row:r.row+1,column:0},d)}h&&i.autoOutdent(u,n,r.row)},this.onTextInput=function(e){this.keyBinding.onTextInput(e)},this.onCommandKey=function(e,t,n){this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),r=n.getMode().transformAction(i,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var s=n.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}r&&(t=r)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,r=this.session.getLine(e.row);t<r.length?(n=r.charAt(t)+r.charAt(t-1),i=new f(e.row,t-1,e.row,t+1)):(n=r.charAt(t-1)+r.charAt(t-2),i=new f(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){u=this.$getSelectedRows();return void e.indentRows(u.first,u.last,"\t")}}var i=e.getLine(t.start.row),r=t.start,s=e.getTabSize(),a=e.documentToScreenColumn(r.row,r.column);if(this.session.getUseSoftTabs())var c=s-a%s,l=o.stringRepeat(" ",c);else{for(c=a%s;" "==i[t.start.column-1]&&c;)t.start.column--,c--;this.selection.setSelectionRange(t),l="\t"}return this.insert(l)}var u=this.$getSelectedRows();e.indentRows(u.first,u.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0});var r=new f(0,0,0,0);for(i=e.first;i<=e.last;i++){var o=t.getLine(i);r.start.row=i,r.end.row=i,r.end.column=o.length,t.replace(r,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var i=this.session.getLine(e);n.lastIndex<t;){var r=n.exec(i);if(r.index<=t&&r.index+r[0].length>=t)return{value:r[0],start:r.index,end:r.index+r[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new f(t,n-1,t,n),r=this.session.getTextRange(i);if(!isNaN(parseFloat(r))&&isFinite(r)){var o=this.getNumberAt(t,n);if(o){var s=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,a=o.start+o.value.length-s,c=parseFloat(o.value);c*=Math.pow(10,a),s!==o.end&&n<s?e*=Math.pow(10,o.end-n-1):e*=Math.pow(10,o.end-n),c+=e;var l=(c/=Math.pow(10,a)).toFixed(a),u=new f(t,o.start,t,o.end);this.session.replace(u,l),this.moveCursorTo(t,Math.max(o.start+1,n+l.length-o.value.length))}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),i=e.isBackwards();if(n.isEmpty()){var r=n.start.row;t.duplicateLines(r,r)}else{var o=i?n.start:n.end,s=t.insert(o,t.getTextRange(n),!1);n.start=o,n.end=s,e.setSelectionRange(n,i)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,i,r=this.selection;if(!r.inMultiSelectMode||this.inVirtualSelectionMode){var o=r.toOrientedRange();n=this.$getSelectedRows(o),i=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(i=0),o.moveBy(i,0),r.fromOrientedRange(o)}else{var s=r.rangeList.ranges;r.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,c=0,l=s.length,u=0;u<l;u++){var h=u;s[u].moveBy(a,0);for(var d=(n=this.$getSelectedRows(s[u])).first,f=n.last;++u<l;){c&&s[u].moveBy(c,0);var p=this.$getSelectedRows(s[u]);if(t&&p.first!=f)break;if(!t&&p.first>f+1)break;f=p.last}for(u--,a=this.session.$moveLines(d,f,t?0:e),t&&-1==e&&(h=u+1);h<=u;)s[h].moveBy(a,0),h++;t||(a=0),c+=a}r.fromOrientedRange(r.ranges[0]),r.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,r=e*Math.floor(i.height/i.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(r,0)}):!1===t&&(this.selection.moveCursorBy(r,0),this.selection.clearSelection()),this.$blockScrolling--;var o=n.scrollTop;n.scrollBy(0,r*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new y(this.session,n.row,n.column),r=i.getCurrentToken(),o=r||i.stepForward();if(o){var s,a,c=!1,l={},u=n.column-o.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;u<o.value.length&&!c;u++)if(h[o.value[u]])switch(a=h[o.value[u]]+"."+o.type.replace("rparen","lparen"),isNaN(l[a])&&(l[a]=0),o.value[u]){case"(":case"[":case"{":l[a]++;break;case")":case"]":case"}":l[a]--,-1===l[a]&&(s="bracket",c=!0)}}else o&&-1!==o.type.indexOf("tag-name")&&(isNaN(l[o.value])&&(l[o.value]=0),"<"===r.value?l[o.value]++:"</"===r.value&&l[o.value]--,-1===l[o.value]&&(s="tag",c=!0));c||(r=o,o=i.stepForward(),u=0)}while(o&&!c);if(s){var d,p;if("bracket"===s)(d=this.session.getBracketRange(n))||(p=(d=new f(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1)).start,(t||p.row===n.row&&Math.abs(p.column-n.column)<2)&&(d=this.session.getBracketRange(p)));else if("tag"===s){if(!o||-1===o.type.indexOf("tag-name"))return;var g=o.value;if(0===(d=new f(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2)).compare(n.row,n.column)){c=!1;do{o=r,(r=i.stepBackward())&&(-1!==r.type.indexOf("tag-close")&&d.setEnd(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+1),o.value===g&&-1!==o.type.indexOf("tag-name")&&("<"===r.value?l[g]++:"</"===r.value&&l[g]--,0===l[g]&&(c=!0)))}while(r&&!c)}o&&o.type.indexOf("tag-name")&&(p=d.start).row==n.row&&Math.abs(p.column-n.column)<2&&(p=d.end)}(p=d&&d.cursor||p)&&(e?d&&t?this.selection.setRange(d):d&&d.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(p.row,p.column):this.selection.moveTo(p.row,p.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.$blockScrolling-=1,this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),i=0;return n?(this.$tryReplace(n,e)&&(i=1),null!==n&&(this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end)),i):i},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;this.$blockScrolling+=1;var r=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=n.length-1;o>=0;--o)this.$tryReplace(n[o],e)&&i++;return this.selection.setSelectionRange(r),this.$blockScrolling-=1,i},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&i.mixin(t,e);var r=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(r)||this.$search.$options.needle)||(r=this.session.getWordRange(r.start.row,r.start.column),e=this.session.getTextRange(r)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:r});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.$blockScrolling+=1,this.session.unfold(e),this.selection.setSelectionRange(e),this.$blockScrolling-=1;var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,i=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var r=this.$scrollAnchor;r.style.cssText="position:absolute",this.container.insertBefore(r,this.container.firstChild);var o=this.on("changeSelection",function(){i=!0}),s=this.renderer.on("beforeRender",function(){i&&(t=n.renderer.container.getBoundingClientRect())}),a=this.renderer.on("afterRender",function(){if(i&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,s=e.layerConfig,a=o.top-s.offset;null!=(i=o.top>=0&&a+t.top<0||!(o.top<s.height&&o.top+t.top+s.lineHeight>window.innerHeight)&&null)&&(r.style.top=a+"px",r.style.left=o.left+"px",r.style.height=s.lineHeight+"px",r.scrollIntoView(i)),i=t=null}});this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,r.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))}}.call(b.prototype),v.defineOptions(b.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=b}),ace.define("ace/undomanager",["require","exports","module"],function(e,t,n){"use strict";var i=function(){this.reset()};(function(){function e(e){return{action:e.action,start:e.start,end:e.end,lines:1==e.lines.length?null:e.lines,text:1==e.lines.length?e.lines[0]:null}}function t(e){return{action:e.action,start:e.start,end:e.end,lines:e.lines||[e.text]}}function n(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++){for(var r=e[i],o={group:r.group,deltas:new Array(r.length)},s=0;s<r.deltas.length;s++){var a=r.deltas[s];o.deltas[s]=t(a)}n[i]=o}return n}this.execute=function(e){var t=e.args[0];this.$doc=e.args[1],e.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(e){var t=this.$undoStack.pop(),n=null;return t&&(n=this.$doc.undoChanges(t,e),this.$redoStack.push(t),this.dirtyCounter--),n},this.redo=function(e){var t=this.$redoStack.pop(),n=null;return t&&(n=this.$doc.redoChanges(this.$deserializeDeltas(t),e),this.$undoStack.push(t),this.dirtyCounter++),n},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(t){return n(t,e)},this.$deserializeDeltas=function(e){return n(e,t)}}).call(i.prototype),t.UndoManager=i}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],function(e,t,n){"use strict";var i=e("../lib/dom"),r=e("../lib/oop"),o=e("../lib/lang"),s=e("../lib/event_emitter").EventEmitter,a=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$cells=[]};(function(){r.implement(this,s),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.row,r=this.$annotations[i];r||(r=this.$annotations[i]={text:[]});var s=n.text;s=s?o.escapeHTML(s):n.html||"",-1===r.text.indexOf(s)&&r.text.push(s);var a=n.type;"error"==a?r.className=" ace_error":"warning"==a&&" ace_error"!=r.className?r.className=" ace_warning":"info"!=a||r.className||(r.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var i=new Array(n+1);i.unshift(t,1),this.$annotations.splice.apply(this.$annotations,i)}}},this.update=function(e){for(var t=this.session,n=e.firstRow,r=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),o=t.getNextFoldLine(n),s=o?o.start.row:1/0,a=this.$showFoldWidgets&&t.foldWidgets,c=t.$breakpoints,l=t.$decorations,u=t.$firstLineNumber,h=0,d=t.gutterRenderer||this.$renderer,f=null,p=-1,g=n;;){if(g>s&&(g=o.end.row+1,s=(o=t.getNextFoldLine(g,o))?o.start.row:1/0),g>r){for(;this.$cells.length>p+1;)f=this.$cells.pop(),this.element.removeChild(f.element);break}(f=this.$cells[++p])||((f={element:null,textNode:null,foldWidget:null}).element=i.createElement("div"),f.textNode=document.createTextNode(""),f.element.appendChild(f.textNode),this.element.appendChild(f.element),this.$cells[p]=f);var m="ace_gutter-cell ";if(c[g]&&(m+=c[g]),l[g]&&(m+=l[g]),this.$annotations[g]&&(m+=this.$annotations[g].className),f.element.className!=m&&(f.element.className=m),(y=t.getRowLength(g)*e.lineHeight+"px")!=f.element.style.height&&(f.element.style.height=y),a){var v=a[g];null==v&&(v=a[g]=t.getFoldWidget(g))}if(v){f.foldWidget||(f.foldWidget=i.createElement("span"),f.element.appendChild(f.foldWidget));m="ace_fold-widget ace_"+v;"start"==v&&g==s&&g<o.end.row?m+=" ace_closed":m+=" ace_open",f.foldWidget.className!=m&&(f.foldWidget.className=m);var y=e.lineHeight+"px";f.foldWidget.style.height!=y&&(f.foldWidget.style.height=y)}else f.foldWidget&&(f.element.removeChild(f.foldWidget),f.foldWidget=null);var b=h=d?d.getText(t,g):g+u;b!==f.textNode.data&&(f.textNode.data=b),g++}this.element.style.height=e.minHeight+"px",(this.$fixedWidth||t.$useWrapMode)&&(h=t.getLength()+u);var E=d?d.getWidth(t,h,e):h.toString().length*e.characterWidth,w=this.$padding||this.$computePadding();(E+=w.left+w.right)===this.gutterWidth||isNaN(E)||(this.gutterWidth=E,this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._emit("changeGutterWidth",E))},this.$fixedWidth=!1,this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return""},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?i.addCssClass(this.element,"ace_folding-enabled"):i.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=i.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=parseInt(e.paddingLeft)+1||0,this.$padding.right=parseInt(e.paddingRight)||0,this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(a.prototype),t.Gutter=a}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,n){"use strict";var i=e("../range").Range,r=e("../lib/dom"),o=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.update=function(e){if(e){this.config=e;var t=[];for(var n in this.markers){var i=this.markers[n];if(i.range){var r=i.range.clipRows(e.firstRow,e.lastRow);if(!r.isEmpty())if(r=r.toScreenRange(this.session),i.renderer){var o=this.$getTop(r.start.row,e),s=this.$padding+(this.session.$bidiHandler.isBidiRow(r.start.row)?this.session.$bidiHandler.getPosLeft(r.start.column):r.start.column*e.characterWidth);i.renderer(t,r,s,o,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,r,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,r,i.clazz,e):r.isMultiLine()?"text"==i.type?this.drawTextMarker(t,r,i.clazz,e):this.drawMultiLineMarker(t,r,i.clazz,e):this.session.$bidiHandler.isBidiRow(r.start.row)?this.drawBidiSingleLineMarker(t,r,i.clazz+" ace_start ace_br15",e):this.drawSingleLineMarker(t,r,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}this.element.innerHTML=t.join("")}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,n,r,o){for(var s=this.session,a=t.start.row,c=t.end.row,l=a,u=0,h=0,d=s.getScreenLastRowColumn(l),f=null,p=new i(l,t.start.column,l,h);l<=c;l++)p.start.row=p.end.row=l,p.start.column=l==a?t.start.column:s.getRowWrapIndent(l),p.end.column=d,u=h,h=d,d=l+1<c?s.getScreenLastRowColumn(l+1):l==c?0:t.end.column,f=n+(l==a?" ace_start":"")+" ace_br"+((l==a||l==a+1&&t.start.column?1:0)|(u<h?2:0)|(h>d?4:0)|(l==c?8:0)),this.session.$bidiHandler.isBidiRow(l)?this.drawBidiSingleLineMarker(e,p,f,r,l==c?0:1,o):this.drawSingleLineMarker(e,p,f,r,l==c?0:1,o)},this.drawMultiLineMarker=function(e,t,n,i,r){var o,s,a,c=this.$padding;(r=r||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((l=t.clone()).end.row=l.start.row,l.end.column=this.session.getLine(l.start.row).length,this.drawBidiSingleLineMarker(e,l,n+" ace_br1 ace_start",i,null,r)):(o=i.lineHeight,s=this.$getTop(t.start.row,i),a=c+t.start.column*i.characterWidth,e.push("<div class='",n," ace_br1 ace_start' style='","height:",o,"px;","right:0;","top:",s,"px;","left:",a,"px;",r,"'></div>"));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var l;(l=t.clone()).start.row=l.end.row,l.start.column=0,this.drawBidiSingleLineMarker(e,l,n+" ace_br12",i,null,r)}else{var u=t.end.column*i.characterWidth;o=i.lineHeight,s=this.$getTop(t.end.row,i),e.push("<div class='",n," ace_br12' style='","height:",o,"px;","width:",u,"px;","top:",s,"px;","left:",c,"px;",r,"'></div>")}if(!((o=(t.end.row-t.start.row-1)*i.lineHeight)<=0)){s=this.$getTop(t.start.row+1,i);var h=(t.start.column?1:0)|(t.end.column?0:8);e.push("<div class='",n,h?" ace_br"+h:"","' style='","height:",o,"px;","right:0;","top:",s,"px;","left:",c,"px;",r,"'></div>")}},this.drawSingleLineMarker=function(e,t,n,i,r,o){var s=i.lineHeight,a=(t.end.column+(r||0)-t.start.column)*i.characterWidth,c=this.$getTop(t.start.row,i),l=this.$padding+t.start.column*i.characterWidth;e.push("<div class='",n,"' style='","height:",s,"px;","width:",a,"px;","top:",c,"px;","left:",l,"px;",o||"","'></div>")},this.drawBidiSingleLineMarker=function(e,t,n,i,r,o){var s=i.lineHeight,a=this.$getTop(t.start.row,i),c=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach(function(t){e.push("<div class='",n,"' style='","height:",s,"px;","width:",t.width+(r||0),"px;","top:",a,"px;","left:",c+t.left,"px;",o||"","'></div>")})},this.drawFullLineMarker=function(e,t,n,i,r){var o=this.$getTop(t.start.row,i),s=i.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,i)-o),e.push("<div class='",n,"' style='","height:",s,"px;","top:",o,"px;","left:0;right:0;",r||"","'></div>")},this.drawScreenLineMarker=function(e,t,n,i,r){var o=this.$getTop(t.start.row,i),s=i.lineHeight;e.push("<div class='",n,"' style='","height:",s,"px;","top:",o,"px;","left:0;right:0;",r||"","'></div>")}}).call(o.prototype),t.Marker=o}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("../lib/dom"),o=e("../lib/lang"),s=(e("../lib/useragent"),e("../lib/event_emitter").EventEmitter),a=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){i.implement(this,s),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xb7",this.$padding=0,this.$updateEolChar=function(){var e="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)this.showInvisibles?t.push("<span class='ace_invisible ace_invisible_tab'>"+o.stringRepeat(this.TAB_CHAR,n)+"</span>"):t.push(o.stringRepeat(" ",n));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var i="ace_indent-guide",r="",s="";if(this.showInvisibles){i+=" ace_invisible",r=" ace_invisible_space",s=" ace_invisible_tab";var a=o.stringRepeat(this.SPACE_CHAR,this.tabSize),c=o.stringRepeat(this.TAB_CHAR,this.tabSize)}else c=a=o.stringRepeat(" ",this.tabSize);this.$tabStrings[" "]="<span class='"+i+r+"'>"+a+"</span>",this.$tabStrings["\t"]="<span class='"+i+s+"'>"+c+"</span>"}},this.updateLines=function(e,t,n){this.config.lastRow==e.lastRow&&this.config.firstRow==e.firstRow||this.scrollLines(e),this.config=e;for(var i=Math.max(t,e.firstRow),r=Math.min(n,e.lastRow),o=this.element.childNodes,s=0,a=e.firstRow;a<i;a++){if(c=this.session.getFoldLine(a)){if(c.containsRow(i)){i=c.start.row;break}a=c.end.row}s++}a=i;for(var c,l=(c=this.session.getNextFoldLine(a))?c.start.row:1/0;a>l&&(a=c.end.row+1,l=(c=this.session.getNextFoldLine(a,c))?c.start.row:1/0),!(a>r);){var u=o[s++];if(u){var h=[];this.$renderLine(h,a,!this.$useLineGroups(),a==l&&c),u.style.height=e.lineHeight*this.session.getRowLength(a)+"px",u.innerHTML=h.join("")}a++}},this.scrollLines=function(e){var t=this.config;if(this.config=e,!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);var n=this.element;if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)n.removeChild(n.firstChild);if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)n.removeChild(n.lastChild);if(e.firstRow<t.firstRow){var r=this.$renderLinesFragment(e,e.firstRow,t.firstRow-1);n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r)}if(e.lastRow>t.lastRow){r=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);n.appendChild(r)}},this.$renderLinesFragment=function(e,t,n){for(var i=this.element.ownerDocument.createDocumentFragment(),o=t,s=this.session.getNextFoldLine(o),a=s?s.start.row:1/0;o>a&&(o=s.end.row+1,a=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(o>n);){var c=r.createElement("div"),l=[];if(this.$renderLine(l,o,!1,o==a&&s),c.innerHTML=l.join(""),this.$useLineGroups())c.className="ace_line_group",i.appendChild(c),c.style.height=e.lineHeight*this.session.getRowLength(o)+"px";else for(;c.firstChild;)i.appendChild(c.firstChild);o++}return i},this.update=function(e){this.config=e;for(var t=[],n=e.firstRow,i=e.lastRow,r=n,o=this.session.getNextFoldLine(r),s=o?o.start.row:1/0;r>s&&(r=o.end.row+1,s=(o=this.session.getNextFoldLine(r,o))?o.start.row:1/0),!(r>i);)this.$useLineGroups()&&t.push("<div class='ace_line_group' style='height:",e.lineHeight*this.session.getRowLength(r),"px'>"),this.$renderLine(t,r,!1,r==s&&o),this.$useLineGroups()&&t.push("</div>"),r++;this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,i){var r=this,s=i.replace(/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,function(e,n,i,s,a){if(n)return r.showInvisibles?"<span class='ace_invisible ace_invisible_space'>"+o.stringRepeat(r.SPACE_CHAR,e.length)+"</span>":e;if("&"==e)return"&#38;";if("<"==e)return"&#60;";if(">"==e)return"&#62;";if("\t"==e){var c=r.session.getScreenTabSize(t+s);return t+=c-1,r.$tabStrings[c]}if("\u3000"==e){var l=r.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",u=r.showInvisibles?r.SPACE_CHAR:"";return t+=1,"<span class='"+l+"' style='width:"+2*r.config.characterWidth+"px'>"+u+"</span>"}return i?"<span class='ace_invisible ace_invisible_space ace_invalid'>"+r.SPACE_CHAR+"</span>":(t+=1,"<span class='ace_cjk' style='width:"+2*r.config.characterWidth+"px'>"+e+"</span>")});if(this.$textToken[n.type])e.push(s);else{var a="ace_"+n.type.replace(/\./g," ace_"),c="";"fold"==n.type&&(c=" style='width:"+n.value.length*this.config.characterWidth+"px;' "),e.push("<span class='",a,"'",c,">",s,"</span>")}return t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);return i<=0||i>=n?t:" "==t[0]?(i-=i%this.tabSize,e.push(o.stringRepeat(this.$tabStrings[" "],i/this.tabSize)),t.substr(i)):"\t"==t[0]?(e.push(o.stringRepeat(this.$tabStrings["\t"],i)),t.substr(i)):t},this.$renderWrappedLine=function(e,t,n,i){for(var r=0,s=0,a=n[0],c=0,l=0;l<t.length;l++){var u=t[l],h=u.value;if(0==l&&this.displayIndentGuides){if(r=h.length,!(h=this.renderIndentGuide(e,h,a)))continue;r-=h.length}if(r+h.length<a)c=this.$renderToken(e,c,u,h),r+=h.length;else{for(;r+h.length>=a;)c=this.$renderToken(e,c,u,h.substring(0,a-r)),h=h.substring(a-r),r=a,i||e.push("</div>","<div class='ace_line' style='height:",this.config.lineHeight,"px'>"),e.push(o.stringRepeat("\xa0",n.indent)),c=0,a=n[++s]||Number.MAX_VALUE;0!=h.length&&(r+=h.length,c=this.$renderToken(e,c,u,h))}}},this.$renderSimpleLine=function(e,t){var n=0,i=t[0],r=i.value;this.displayIndentGuides&&(r=this.renderIndentGuide(e,r)),r&&(n=this.$renderToken(e,n,i,r));for(var o=1;o<t.length;o++)r=(i=t[o]).value,n=this.$renderToken(e,n,i,r)},this.$renderLine=function(e,t,n,i){if(i||0==i||(i=this.session.getFoldLine(t)),i)var r=this.$getFoldLineTokens(t,i);else r=this.session.getTokens(t);if(n||e.push("<div class='ace_line' style='height:",this.config.lineHeight*(this.$useLineGroups()?1:this.session.getRowLength(t)),"px'>"),r.length){var o=this.session.getRowSplitData(t);o&&o.length?this.$renderWrappedLine(e,r,o,n):this.$renderSimpleLine(e,r)}this.showInvisibles&&(i&&(t=i.end.row),e.push("<span class='ace_invisible ace_invisible_eol'>",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"</span>")),n||e.push("</div>")},this.$getFoldLineTokens=function(e,t){var n=this.session,i=[];var r=n.getTokens(e);return t.walk(function(e,t,o,s,a){null!=e?i.push({type:"fold",value:e}):(a&&(r=n.getTokens(t)),r.length&&function(e,t,n){for(var r=0,o=0;o+e[r].value.length<t;)if(o+=e[r].value.length,++r==e.length)return;for(o!=t&&((s=e[r].value.substring(t-o)).length>n-t&&(s=s.substring(0,n-t)),i.push({type:e[r].type,value:s}),o=t+s.length,r+=1);o<n&&r<e.length;){var s;(s=e[r].value).length+o>n?i.push({type:e[r].type,value:s.substring(0,n-o)}):i.push(e[r]),o+=s.length,r+=1}}(r,s,o))},t.end.row,this.session.getLine(t.end.row).length),i},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(a.prototype),t.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var i,r=e("../lib/dom"),o=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===i&&(i=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(i?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e==this.smoothBlinking||i||(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){e(!0),t()},this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var r=t.length;n<r;n++){var o=this.getPixelPosition(t[n].cursor,!0);if(!((o.top>e.height+e.offset||o.top<0)&&n>1)){var s=(this.cursors[i++]||this.addCursor()).style;this.drawCursor?this.drawCursor(s,o,e,t[n],this.session):(s.left=o.left+"px",s.top=o.top+"px",s.width=e.characterWidth+"px",s.height=e.lineHeight+"px")}}for(;this.cursors.length>i;)this.removeCursor();var a=this.session.getOverwrite();this.$setOverwrite(a),this.$pixelPos=o,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/dom"),o=e("./lib/event"),s=e("./lib/event_emitter").EventEmitter,a=function(e){this.element=r.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=r.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){i.implement(this,s),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var c=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=r.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};i.inherits(c,a),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>32768?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(c.prototype);var l=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};i.inherits(l,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(l.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=l,t.VScrollBar=c,t.HScrollBar=l}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,n){"use strict";var i=e("./lib/event"),r=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;i.nextFrame(function(){var e;for(t.pending=!1;e=t.changes;)t.changes=0,t.onRender(e)},this.window)}}}).call(r.prototype),t.RenderLoop=r}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,n){var i=e("../lib/oop"),r=e("../lib/dom"),o=e("../lib/lang"),s=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,c=0,l=t.FontMetrics=function(e){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),c||this.$testFractionalRect(),this.$measureNode.innerHTML=o.stringRepeat("X",c),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){i.implement(this,a),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=r.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;c=t>0&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval(function(){e.checkForSizeChanges()},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===c){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(n){e={width:0,height:0}}var t={height:e.height,width:e.width/c}}else t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.innerHTML=o.stringRepeat(e,c),this.$main.getBoundingClientRect().width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(l.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/dom"),o=e("./config"),s=e("./lib/useragent"),a=e("./layer/gutter").Gutter,c=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,h=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,f=e("./renderloop").RenderLoop,p=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter;r.importCssString('.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block;   }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius    : 3px;}.ace_br2 {border-top-right-radius   : 3px;}.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}',"ace_editor.css");var m=function(e,t){var n=this;this.container=e||r.createElement("div"),this.$keepTextAreaAtCursor=!s.isOldIE,r.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new c(this.content);var i=this.$textLayer=new l(this.content);this.canvas=i.element,this.$markerFront=new c(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new f(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,i.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var r=this.container;i||(i=r.clientHeight||r.scrollHeight),n||(n=r.clientWidth||r.scrollWidth);var o=this.$updateCachedSize(e,t,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var r=0,o=this.$size,s={width:o.width,height:o.height,scrollerHeight:o.scrollerHeight,scrollerWidth:o.scrollerWidth};return i&&(e||o.height!=i)&&(o.height=i,r|=this.CHANGE_SIZE,o.scrollerHeight=o.height,this.$horizScroll&&(o.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(e||o.width!=n)&&(r|=this.CHANGE_SIZE,o.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",o.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)),o.$dirty=!n||!i,r&&this._signal("resize",s),r},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var n=this.session.selection.getCursor();n.column=0,e=this.$cursorLayer.getPixelPosition(n,!0),t*=this.session.getRowLength(n.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=r.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,n=this.$cursorLayer.$pixelPos.left;t-=e.offset;var i=this.textarea.style,r=this.lineHeight;if(t<0||t>e.height-r)i.top=i.left="0";else{var o=this.characterWidth;if(this.$composition){var s=this.textarea.value.replace(/^\x01+/,"");o*=this.session.$getStringScreenWidth(s)[0]+2,r+=2}(n-=this.scrollLeft)>this.$size.scrollerWidth-o&&(n=this.$size.scrollerWidth-o),n+=this.gutterWidth,i.height=r+"px",i.width=o+"px",i.left=Math.min(n,this.$size.scrollerWidth-o)+"px",i.top=Math.min(t,this.$size.height-r)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var r=this.scrollMargin;r.top=0|e,r.bottom=0|t,r.right=0|i,r.left=0|n,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;i>0&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-n.offset+"px",this.content.style.marginTop=-n.offset+"px",this.content.style.width=n.width+2*this.$padding+"px",this.content.style.height=n.minHeight+"px"}if(e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var r=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength()*this.lineHeight,r=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-r-2*this.$padding<0),s=this.$horizScroll!==o;s&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=this.scrollTop%this.lineHeight,l=t.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=u;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,i-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,r+2*this.$padding-t.scrollerWidth+h.right)));var d=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+u<0||this.scrollTop>h.top),f=a!==d;f&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var p,g,m=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-c)/this.lineHeight)),y=v+m,b=this.lineHeight;v=e.screenToDocumentRow(v,0);var E=e.getFoldLine(v);E&&(v=E.start.row),p=e.documentToScreenRow(v,0),g=e.getRowLength(v)*b,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(y)*b+g,c=this.scrollTop-p*b;var w=0;return this.layerConfig.width!=r&&(w=this.CHANGE_H_SCROLL),(s||f)&&(w=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),f&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:v,firstRowScreen:p,lastRow:y,lineHeight:b,characterWidth:this.characterWidth,minHeight:l,maxHeight:i,offset:c,gutterOffset:b?Math.max(0,Math.ceil((c+t.height-t.scrollerHeight)/b)):0,height:this.$size.scrollerHeight},w},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1)&&!(t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),r=i.left,o=i.top,s=n&&n.top||0,a=n&&n.bottom||0,c=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;c+s>o?(t&&c+s>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):c+this.$size.scrollerHeight-a<o+this.lineHeight&&(t&&c+this.$size.scrollerHeight-a<o-this.lineHeight&&(o+=t*this.$size.scrollerHeight),this.session.setScrollTop(o+this.lineHeight-this.$size.scrollerHeight));var l=this.scrollLeft;l>r?(r<this.$padding+2*this.layerConfig.characterWidth&&(r=-this.scrollMargin.left),this.session.setScrollLeft(r)):l+this.$size.scrollerWidth<r+this.characterWidth?this.session.setScrollLeft(Math.round(r+this.characterWidth-this.$size.scrollerWidth)):l<=this.$padding&&r-l<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),i=this.$size.scrollerHeight-this.lineHeight,r=n.top-i*(t||0);return this.session.setScrollTop(r),r},this.STEPS=8,this.$calcSteps=function(e,t){var n,i,r=0,o=this.STEPS,s=[];for(r=0;r<o;++r)s.push((n=r/this.STEPS,i=e,(t-e)*(Math.pow(n-1,3)+1)+i));return s},this.scrollToLine=function(e,t,n,i){var r=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(r-=this.$size.scrollerHeight/2);var o=this.scrollTop;this.session.setScrollTop(r),!1!==n&&this.animateScrolling(o,i)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var i=this;if(e!=n){if(this.$scrollAnimation){var r=this.$scrollAnimation.steps;if(r.length&&(e=r[0])==n)return}var o=i.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:o},clearInterval(this.$timer),i.session.setScrollTop(o.shift()),i.session.$scrollTop=n,this.$timer=setInterval(function(){o.length?(i.session.setScrollTop(o.shift()),i.session.$scrollTop=n):null!=n?(i.session.$scrollTop=-1,i.session.setScrollTop(n),n=null):(i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,t&&t())},10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-n.left-this.$padding,r=i/this.characterWidth,o=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=Math.round(r);return{row:o,column:s,side:r-s>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-n.left-this.$padding,r=Math.round(i/this.characterWidth),o=(t+this.scrollTop-n.top)/this.lineHeight;return this.session.screenToDocumentPosition(o,Math.max(r,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),r=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),o=i.row*this.lineHeight;return{pageX:n.left+r-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,r.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(r.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)s(e);else{var i=e||this.$options.theme.initialValue;o.loadModule(["theme",i],s)}function s(i){if(n.$themeId!=e)return t&&t();if(!i||!i.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.importCssString(i.cssText,i.cssClass,n.container.ownerDocument),n.theme&&r.removeCssClass(n.container,n.theme.cssClass);var o="padding"in i?i.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&o!=n.$padding&&n.setPadding(o),n.$theme=i.cssClass,n.theme=i,r.addCssClass(n.container,i.cssClass),r.setCssClass(n.container,"ace_dark",i.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:i}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){r.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){r.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(m.prototype),o.defineOptions(m.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){r.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=r.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=m}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("../lib/net"),o=e("../lib/event_emitter").EventEmitter,s=e("../config");function a(e,t){var n=function(e,t){var n=t.src;r.qualifyURL(e);try{return new Blob([n],{type:"application/javascript"})}catch(o){var i=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return i.append(n),i.getBlob("application/javascript")}}(e,t),i=(window.URL||window.webkitURL).createObjectURL(n);return new Worker(i)}var c=function(t,n,i,r,o){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),s.get("packaged")||!e.toUrl)r=r||s.moduleUrl(n.id,"worker");else{var c=this.$normalizePath;r=r||c(e.toUrl("ace/worker/worker.js",null,"_"));var l={};t.forEach(function(t){l[t]=c(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}this.$worker=a(r,n),o&&this.send("importScripts",o),this.$worker.postMessage({init:!0,tlns:l,module:n.id,classname:i}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,o),this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return r.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);var l=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var i=null,r=!1,a=Object.create(o),c=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){c.messageBuffer.push(e),i&&(r?setTimeout(l):l())},this.setEmitSync=function(e){r=e};var l=function(){var e=c.messageBuffer.shift();e.command?i[e.command].apply(i,e.args):e.event&&a._signal(e.event,e.data)};a.postMessage=function(e){c.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],function(e){for(i=new e[n](a);c.messageBuffer.length;)l()})};l.prototype=c.prototype,t.UIWorkerClient=l,t.WorkerClient=c,t.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,n){"use strict";var i=e("./range").Range,r=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),s=function(e,t,n,i,r,o){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=r,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){s.onCursorChange()})},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,r),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=n.addMarker(new i(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(n){var i=t.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),e.others.push(i)}),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach(function(n){n.markerId=e.addMarker(new i(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,r=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),r&&(this.length+=n),r&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;s>=0;s--){var a={row:(c=this.others[s]).row,column:c.column+o};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;s>=0;s--){var c;a={row:(c=this.others[s]).row,column:c.column+o};this.doc.remove(new i(a.row,a.column,a.row,a.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,r){t.removeMarker(n.markerId),n.markerId=t.addMarker(new i(n.row,n.column,n.row,n.column+e.length),r,null,!1)};n(this.pos,this.mainClass);for(var r=this.others.length;r--;)n(this.others[r],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(s.prototype),t.PlaceHolder=s}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,n){var i=e("../lib/event"),r=e("../lib/useragent");function o(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,s=t.shiftKey,a=t.ctrlKey,c=e.getAccelKey(),l=e.getButton();if(a&&r.isMac&&(l=t.button),e.editor.inMultiSelectMode&&2==l)e.editor.textInput.onContextMenu(e.domEvent);else if(a||n||c){if(0===l){var u,h=e.editor,d=h.selection,f=h.inMultiSelectMode,p=e.getDocumentPosition(),g=d.getCursor(),m=e.inSelection()||d.isEmpty()&&o(p,g),v=e.x,y=e.y,b=h.session,E=h.renderer.pixelToScreenCoordinates(v,y),w=E;if(h.$mouseHandler.$enableJumpToDef)a&&n||c&&n?u=s?"block":"add":n&&h.$blockSelectEnabled&&(u="block");else if(c&&!n){if(u="add",!f&&s)return}else n&&h.$blockSelectEnabled&&(u="block");if(u&&r.isMac&&t.ctrlKey&&h.$mouseHandler.cancelContextMenu(),"add"==u){if(!f&&m)return;if(!f){var A=d.toOrientedRange();h.addSelectionMarker(A)}var C=d.rangeList.rangeAtPoint(p);h.$blockScrolling++,h.inVirtualSelectionMode=!0,s&&(C=null,A=d.ranges[0]||A,h.removeSelectionMarker(A)),h.once("mouseup",function(){var e=d.toOrientedRange();C&&e.isEmpty()&&o(C.cursor,e.cursor)?d.substractPoint(e.cursor):(s?d.substractPoint(A.cursor):A&&(h.removeSelectionMarker(A),d.addRange(A)),d.addRange(e)),h.$blockScrolling--,h.inVirtualSelectionMode=!1})}else if("block"==u){var F;e.stop(),h.inVirtualSelectionMode=!0;var T=[];h.$blockScrolling++,f&&!c?d.toSingleRange():!f&&c&&(F=d.toOrientedRange(),h.addSelectionMarker(F)),s?E=b.documentToScreenPosition(d.lead):d.moveToPosition(p),h.$blockScrolling--,w={row:-1,column:-1};var S=function(){var e=h.renderer.pixelToScreenCoordinates(v,y),t=b.screenToDocumentPosition(e.row,e.column,e.offsetX);o(w,e)&&o(t,d.lead)||(w=e,h.$blockScrolling++,h.selection.moveToPosition(t),h.renderer.scrollCursorIntoView(),h.removeSelectionMarkers(T),T=d.rectangularRangeBlock(w,E),h.$mouseHandler.$clickSelection&&1==T.length&&T[0].isEmpty()&&(T[0]=h.$mouseHandler.$clickSelection.clone()),T.forEach(h.addSelectionMarker,h),h.updateSelectionMarkers(),h.$blockScrolling--)};i.capture(h.container,function(e){v=e.clientX,y=e.clientY},function(e){clearInterval(O),h.removeSelectionMarkers(T),T.length||(T=[d.toOrientedRange()]),h.$blockScrolling++,F&&(h.removeSelectionMarker(F),d.toSingleRange(F));for(var t=0;t<T.length;t++)d.addRange(T[t]);h.inVirtualSelectionMode=!1,h.$mouseHandler.$clickSelection=null,h.$blockScrolling--});var O=setInterval(function(){S()},20);return e.preventDefault()}}}else 0===l&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",exec:function(e){e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var i=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new i(t.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,t,n){var i=e("./range_list").RangeList,r=e("./range").Range,o=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),c=e("./lib/lang"),l=e("./commands/multi_select_commands");t.commands=l.defaultCommands.concat(l.multiSelectCommands);var u=new(0,e("./search").Search);var h=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var i=this.isBackwards(),o=n.start.row,s=n.end.row;if(o==s){if(i)var a=n.end,c=n.start;else a=n.start,c=n.end;return this.addRange(r.fromPoints(c,c)),void this.addRange(r.fromPoints(a,a))}var l=[],u=this.getLineRange(o,!0);u.start.column=n.start.column,l.push(u);for(var h=o+1;h<s;h++)l.push(this.getLineRange(h,!0));(u=this.getLineRange(s,!0)).end.column=n.end.column,l.push(u),l.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.selectionLead),o=this.session.documentToScreenPosition(this.selectionAnchor);this.rectangularRangeBlock(i,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],o=e.column<t.column;if(o)var s=e.column,a=t.column,c=e.offsetX,l=t.offsetX;else s=t.column,a=e.column,c=t.offsetX,l=e.offsetX;var u,h,d=e.row<t.row;if(d)var f=e.row,p=t.row;else f=t.row,p=e.row;s<0&&(s=0),f<0&&(f=0),f==p&&(n=!0);for(var g=f;g<=p;g++){var m=r.fromPoints(this.session.screenToDocumentPosition(g,s,c),this.session.screenToDocumentPosition(g,a,l));if(m.isEmpty()){if(v&&(u=m.end,h=v,u.row==h.row&&u.column==h.column))break;var v=m.end}m.cursor=o?m.start:m.end,i.push(m)}if(d&&i.reverse(),!n){for(var y=i.length-1;i[y].isEmpty()&&y>0;)y--;if(y>0)for(var b=0;i[b].isEmpty();)b++;for(var E=y;E>=b;E--)i[E].isEmpty()&&i.splice(E,1)}return i}}.call(o.prototype);var d=e("./editor").Editor;function f(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(l.defaultCommands),function(e){var t=e.textInput.getElement(),n=!1;function i(t){n&&(e.renderer.setMouseCursor(""),n=!1)}a.addListener(t,"keydown",function(t){var r=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&r?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&i()}),a.addListener(t,"keyup",i),a.addListener(t,"blur",i)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var r=t.indexOf(i);-1!=r&&t.splice(r,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,r=n&&n.keepOrder,s=1==n||n&&n.$byLines,a=this.session,c=this.selection,l=c.rangeList,u=(r?c:l).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=c._eventRegistry;c._eventRegistry={};var d=new o(a);this.inVirtualSelectionMode=!0;for(var f=u.length;f--;){if(s)for(;f>0&&u[f].start.row==u[f-1].end.row;)f--;d.fromOrientedRange(u[f]),d.index=f,this.selection=a.selection=d;var p=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===p||(i=p),d.toOrientedRange(u[f])}d.detach(),this.selection=a.selection=c,this.inVirtualSelectionMode=!1,c._eventRegistry=h,c.mergeOverlappingRanges();var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t[i]));var r=this.session.getDocument().getNewLineCharacter();(e=n.join(r)).length==(n.length-1)*r.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var i=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;i.row==t.row&&this.session.$clipPositionToDocument(i.row,i.column).column==t.column||this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,void 0==t.needle){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(i)}this.$search.set(t);var r=this.$search.findAll(this.session);if(!r.length)return 0;this.$blockScrolling+=1;var o=this.multiSelect;n||o.toSingleRange(r[0]);for(var s=r.length;s--;)o.addRange(r[s],!0);return i&&o.rangeList.rangeAtPoint(i.start)&&o.addRange(i,!0),this.$blockScrolling-=1,r.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),i=n.cursor==n.end,o=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn);var s,a=this.session.screenToDocumentPosition(o.row+e,o.column);if(n.isEmpty())l=a;else var c=this.session.documentToScreenPosition(i?n.end:n.start),l=this.session.screenToDocumentPosition(c.row+e,c.column);i?(s=r.fromPoints(a,l)).cursor=s.start:(s=r.fromPoints(l,a)).cursor=s.end;if(s.desiredColumn=o.column,this.selection.inMultiSelectMode){if(t)var u=n.cursor}else this.selection.addRange(n);this.selection.addRange(s),u&&this.selection.substractPoint(u)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,i=n.ranges,r=i.length;r--;){if((a=i[r]).isEmpty()){var o=t.getWordRange(a.start.row,a.start.column);a.start.row=o.start.row,a.start.column=o.start.column,a.end.row=o.end.row,a.end.column=o.end.column}}n.mergeOverlappingRanges();var s=[];for(r=i.length;r--;){var a=i[r];s.unshift(t.getTextRange(a))}e<0?s.unshift(s.pop()):s.push(s.shift());for(r=i.length;r--;){o=(a=i[r]).clone();t.replace(a,s[r]),a.start.row=o.start.row,a.start.column=o.start.column}},this.selectMore=function(e,t,n){var i=this.session,r=i.multiSelect.toOrientedRange();if(!r.isEmpty()||((r=i.getWordRange(r.start.row,r.start.column)).cursor=-1==e?r.start:r.end,this.multiSelect.addRange(r),!n)){var o=i.getTextRange(r),s=function(e,t,n){return u.$options.wrap=!0,u.$options.needle=t,u.$options.backwards=-1==n,u.find(e)}(i,o,e);s&&(s.cursor=-1==e?s.start:s.end,this.$blockScrolling+=1,this.session.unfold(s),this.multiSelect.addRange(s),this.$blockScrolling-=1,this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(r.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,i=-1,o=n.filter(function(e){if(e.cursor.row==i)return!0;i=e.cursor.row});if(n.length&&o.length!=n.length-1){o.forEach(function(e){t.substractPoint(e.cursor)});var s=0,a=1/0,l=n.map(function(t){var n=t.cursor,i=e.getLine(n.row).substr(n.column).search(/\S/g);return-1==i&&(i=0),n.column>s&&(s=n.column),i<a&&(a=i),i});n.forEach(function(t,n){var i=t.cursor,o=s-i.column,u=l[n]-a;o>u?e.insert(i,c.stringRepeat(" ",o-u)):e.remove(new r(i.row,i.column,i.row,i.column-o+u)),t.start.column=t.end.column=s,t.start.row=t.end.row=i.row,t.cursor=t.end}),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),h=u.start.row,d=u.end.row,f=h==d;if(f){var p,g=this.session.getLength();do{p=this.session.getLine(d)}while(/[=:]/.test(p)&&++d<g);do{p=this.session.getLine(h)}while(/[=:]/.test(p)&&--h>0);h<0&&(h=0),d>=g&&(d=g-1)}var m=this.session.removeFullLines(h,d);m=this.$reAlignText(m,f),this.session.insert({row:h,column:0},m.join("\n")+"\n"),f||(u.start.column=0,u.end.column=m[m.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,i,r,o=!0,s=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,i=t[2].length,r=t[3].length,t):(n+i+r!=t[1].length+t[2].length+t[3].length&&(s=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),i<t[2].length&&(i=t[2].length),r>t[3].length&&(r=t[3].length),t):[e]}).map(t?l:o?s?function(e){return e[2]?a(n+i-e[2].length)+e[2]+a(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:l:function(e){return e[2]?a(n)+e[2]+a(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return c.stringRepeat(" ",e)}function l(e){return e[2]?a(n)+e[2]+a(i-e[2].length+r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(d.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=f,e("./config").defineOptions(d.prototype,"editor",{enableMultiselect:{set:function(e){f(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,n){"use strict";var i=e("../../range").Range,r=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var r=/\S/,o=e.getLine(t),s=o.search(r);if(-1!=s){for(var a=n||o.length,c=e.getLength(),l=t,u=t;++t<c;){var h=e.getLine(t).search(r);if(-1!=h){if(h<=s)break;u=t}}if(u>l){var d=e.getLine(u).length;return new i(l,a,u,d)}}},this.openingBracketBlock=function(e,t,n,r,o){var s={row:n,column:r+1},a=e.$findClosingBracket(t,s,o);if(a){var c=e.foldWidgets[a.row];return null==c&&(c=e.getFoldWidget(a.row)),"start"==c&&a.row>s.row&&(a.row--,a.column=e.getLine(a.row).length),i.fromPoints(s,a)}},this.closingBracketBlock=function(e,t,n,r,o){var s={row:n,column:r},a=e.$findOpeningBracket(t,s);if(a)return a.column++,s.column--,i.fromPoints(a,s)}}).call(r.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom");e("./range").Range;function r(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach(function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)}),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,r=i.start.row,o=i.end.row,s="add"==e.action,a=r+1;a<o;a++)n[a]&&(n[a].hidden=s);n[o]&&(s?n[r]?n[o].hidden=s:n[r]=n[o]:(n[r]==n[o]&&(n[r]=void 0),n[o].hidden=s))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,i=e.end.row-n;if(0===i);else if("remove"==e.action){t.splice(n+1,i).forEach(function(e){e&&this.removeLineWidget(e)},this),this.$updateRows()}else{var r=new Array(i);r.unshift(n,0),t.splice.apply(t,r),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach(function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget}),t&&(this.session.lineWidgets=null)}},this.addLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e.session=this.session;var n=this.editor.renderer;e.html&&!e.el&&(e.el=i.createElement("div"),e.el.innerHTML=e.html),e.el&&(i.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,n.container.appendChild(e.el),e._inDocument=!0),e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/n.layerConfig.lineHeight);var r=this.session.getFoldAt(e.row,0);if(e.$fold=r,r){var o=this.session.lineWidgets;e.row!=r.end.row||o[r.start.row]?e.hidden=!0:o[r.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(n){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],i=[];n;)i.push(n),n=n.$oldWidget;return i},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var r=1/0,o=0;o<n.length;o++){var s=n[o];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/i.characterWidth));var a=s.h/i.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<r&&(r=s.row))}}r!=1/0&&(this.session._emit("changeFold",{data:{start:{row:r}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){for(var r=Math.min(this.firstRow,n.firstRow),o=Math.max(this.lastRow,n.lastRow,i.length);r>0&&!i[r];)r--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=r;s<=o;s++){var a=i[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var c=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(c+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=c-n.offset+"px";var l=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(l-=t.scrollLeft),a.el.style.left=l+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(r.prototype),t.LineWidgets=r}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(e,t,n){"use strict";var i=e("../line_widgets").LineWidgets,r=e("../lib/dom"),o=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new i(n),n.widgetManager.attach(e));var s=e.getCursorPosition(),a=s.row,c=n.widgetManager.getWidgetsAtRow(a).filter(function(e){return"errorMarker"==e.type})[0];c?c.destroy():a-=t;var l,u=function(e,t,n){var i=e.getAnnotations().sort(o.comparePoints);if(i.length){var r=function(e,t,n){for(var i=0,r=e.length-1;i<=r;){var o=i+r>>1,s=n(t,e[o]);if(s>0)i=o+1;else{if(!(s<0))return o;r=o-1}}return-(i+1)}(i,{row:t,column:-1},o.comparePoints);r<0&&(r=-r-1),r>=i.length?r=n>0?0:i.length-1:0===r&&n<0&&(r=i.length-1);var s=i[r];if(s&&n){if(s.row===t){do{s=i[r+=n]}while(s&&s.row===t);if(!s)return i.slice()}var a=[];t=s.row;do{a[n<0?"unshift":"push"](s),s=i[r+=n]}while(s&&s.row==t);return a.length&&a}}}(n,a,t);if(u){var h=u[0];s.column=(h.pos&&"number"!=typeof h.column?h.pos.sc:h.column)||0,s.row=h.row,l=e.renderer.$gutterLayer.$annotations[s.row]}else{if(c)return;l={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(s.row),e.selection.moveToPosition(s);var d={row:s.row,fixedWidth:!0,coverGutter:!0,el:r.createElement("div"),type:"errorMarker"},f=d.el.appendChild(r.createElement("div")),p=d.el.appendChild(r.createElement("div"));p.className="error_widget_arrow "+l.className;var g=e.renderer.$cursorLayer.getPixelPosition(s).left;p.style.left=g+e.renderer.gutterWidth-5+"px",d.el.className="error_widget_wrapper",f.className="error_widget "+l.className,f.innerHTML=l.text.join("<br>"),f.appendChild(r.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return d.destroy(),{command:"null"}};d.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(d),e.off("changeSelection",d.destroy),e.off("changeSession",d.destroy),e.off("mouseup",d.destroy),e.off("change",d.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",d.destroy),e.on("changeSession",d.destroy),e.on("mouseup",d.destroy),e.on("change",d.destroy),e.session.widgetManager.addLineWidget(d),d.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:d.el.offsetHeight})},r.importCssString("    .error_widget_wrapper {        background: inherit;        color: inherit;        border:none    }    .error_widget {        border-top: solid 2px;        border-bottom: solid 2px;        margin: 5px 0;        padding: 10px 40px;        white-space: pre-wrap;    }    .error_widget.ace_error, .error_widget_arrow.ace_error{        border-color: #ff5a5a    }    .error_widget.ace_warning, .error_widget_arrow.ace_warning{        border-color: #F1D817    }    .error_widget.ace_info, .error_widget_arrow.ace_info{        border-color: #5a5a5a    }    .error_widget.ace_ok, .error_widget_arrow.ace_ok{        border-color: #5aaa5a    }    .error_widget_arrow {        position: absolute;        border: solid 5px;        border-top-color: transparent!important;        border-right-color: transparent!important;        border-left-color: transparent!important;        top: -5px;    }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,t,i){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/dom"),o=e("./lib/event"),s=e("./editor").Editor,a=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.acequire=e,t.define=n(104),t.edit=function(e){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof s)return e.env.editor;var i="";if(e&&/input|textarea/i.test(e.tagName)){var a=e;i=a.value,e=r.createElement("pre"),a.parentNode.replaceChild(e,a)}else e&&(i=r.getInnerText(e),e.innerHTML="");var c=t.createEditSession(i),u=new s(new l(e));u.setSession(c);var h={document:c,editor:u,onResize:u.resize.bind(u,null)};return a&&(h.textarea=a),o.addListener(window,"resize",h.onResize),u.on("destroy",function(){o.removeListener(window,"resize",h.onResize),h.editor.container.env=null}),u.container.env=u.env=h,u},t.createEditSession=function(e,t){var n=new a(e,t);return n.setUndoManager(new c),n},t.EditSession=a,t.UndoManager=c,t.version="1.2.9"}),ace.acequire(["ace/ace"],function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])}),e.exports=window.ace.acequire("ace/ace")},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(102);n(103);var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};i.get||i.set?Object.defineProperty(t,n,i):t[n]=e[n]}return t.default=e,t}(n(13)),o=c(n(80)),s=c(n(100)),a=c(n(210));function c(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(211);var g=(0,i.getAceInstance)(),m=g.acequire("ace/range").Range,v=g.acequire("ace/split").Split,y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?f(e):t}(this,d(t).call(this,e)),i.editorEvents.forEach(function(e){n[e]=n[e].bind(f(n))}),n.debounce=i.debounce,n}var n,o,c;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,r.Component),n=t,(o=[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.className,r=t.onBeforeLoad,o=t.mode,s=t.focus,c=t.theme,l=t.fontSize,u=t.value,h=t.defaultValue,d=t.cursorStart,f=t.showGutter,p=t.wrapEnabled,m=t.showPrintMargin,y=t.scrollMargin,b=void 0===y?[0,0,0,0]:y,E=t.keyboardHandler,w=t.onLoad,A=t.commands,C=t.annotations,F=t.markers,T=t.splits;this.editor=g.edit(this.refEditor),r&&r(g);var S=Object.keys(this.props.editorProps),O=new v(this.editor.container,"ace/theme/".concat(c),T);this.editor.env.split=O,this.splitEditor=O.getEditor(0),this.split=O,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var x=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),O.forEach(function(t,n){for(var r=0;r<S.length;r++)t[S[r]]=e.props.editorProps[S[r]];var s=(0,a.default)(h,n),v=(0,a.default)(u,n,"");t.session.setUndoManager(new g.UndoManager),t.setTheme("ace/theme/".concat(c)),t.renderer.setScrollMargin(b[0],b[1],b[2],b[3]),t.getSession().setMode("ace/mode/".concat(o)),t.setFontSize(l),t.renderer.setShowGutter(f),t.getSession().setUseWrapMode(p),t.setShowPrintMargin(m),t.on("focus",e.onFocus),t.on("blur",e.onBlur),t.on("input",e.onInput),t.on("copy",e.onCopy),t.on("paste",e.onPaste),t.on("change",e.onChange),t.getSession().selection.on("changeSelection",e.onSelectionChange),t.getSession().selection.on("changeCursor",e.onCursorChange),t.session.on("changeScrollTop",e.onScroll),t.setValue(void 0===s?v:s,d);var y=(0,a.default)(C,n,[]),w=(0,a.default)(F,n,[]);t.getSession().setAnnotations(y),w&&w.length>0&&e.handleMarkers(w,t);for(var T=0;T<i.editorOptions.length;T++){var O=i.editorOptions[T];x.hasOwnProperty(O)?t.setOption(O,e.props[O]):e.props[O]&&console.warn("ReaceAce: editor option ".concat(O," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}e.handleOptions(e.props,t),Array.isArray(A)&&A.forEach(function(e){"string"==typeof e.exec?t.commands.bindKey(e.bindKey,e.exec):t.commands.addCommand(e)}),E&&t.setKeyboardHandler("ace/keyboard/"+E)}),n&&(this.refEditor.className+=" "+n),s&&this.splitEditor.focus();var k=this.editor.env.split;k.setOrientation("below"===this.props.orientation?k.BELOW:k.BESIDE),k.resize(!0),w&&w(k)}},{key:"componentDidUpdate",value:function(e){var t=this,n=e,r=this.props,o=this.editor.env.split;if(r.splits!==n.splits&&o.setSplits(r.splits),r.orientation!==n.orientation&&o.setOrientation("below"===r.orientation?o.BELOW:o.BESIDE),o.forEach(function(e,o){r.mode!==n.mode&&e.getSession().setMode("ace/mode/"+r.mode),r.keyboardHandler!==n.keyboardHandler&&(r.keyboardHandler?e.setKeyboardHandler("ace/keyboard/"+r.keyboardHandler):e.setKeyboardHandler(null)),r.fontSize!==n.fontSize&&e.setFontSize(r.fontSize),r.wrapEnabled!==n.wrapEnabled&&e.getSession().setUseWrapMode(r.wrapEnabled),r.showPrintMargin!==n.showPrintMargin&&e.setShowPrintMargin(r.showPrintMargin),r.showGutter!==n.showGutter&&e.renderer.setShowGutter(r.showGutter);for(var c=0;c<i.editorOptions.length;c++){var l=i.editorOptions[c];r[l]!==n[l]&&e.setOption(l,r[l])}(0,s.default)(r.setOptions,n.setOptions)||t.handleOptions(r,e);var u=(0,a.default)(r.value,o,"");if(e.getValue()!==u){t.silent=!0;var h=e.session.selection.toJSON();e.setValue(u,r.cursorStart),e.session.selection.fromJSON(h),t.silent=!1}var d=(0,a.default)(r.annotations,o,[]),f=(0,a.default)(n.annotations,o,[]);(0,s.default)(d,f)||e.getSession().setAnnotations(d);var p=(0,a.default)(r.markers,o,[]),g=(0,a.default)(n.markers,o,[]);!(0,s.default)(p,g)&&Array.isArray(p)&&t.handleMarkers(p,e)}),r.className!==n.className){var c=this.refEditor.className.trim().split(" ");n.className.trim().split(" ").forEach(function(e){var t=c.indexOf(e);c.splice(t,1)}),this.refEditor.className=" "+r.className+" "+c.join(" ")}r.theme!==n.theme&&o.setTheme("ace/theme/"+r.theme),r.focus&&!n.focus&&this.splitEditor.focus(),r.height===this.props.height&&r.width===this.props.width||this.editor.resize()}},{key:"componentWillUnmount",value:function(){this.editor.destroy(),this.editor=null}},{key:"onChange",value:function(e){if(this.props.onChange&&!this.silent){var t=[];this.editor.env.split.forEach(function(e){t.push(e.getValue())}),this.props.onChange(t,e)}}},{key:"onSelectionChange",value:function(e){if(this.props.onSelectionChange){var t=[];this.editor.env.split.forEach(function(e){t.push(e.getSelection())}),this.props.onSelectionChange(t,e)}}},{key:"onCursorChange",value:function(e){if(this.props.onCursorChange){var t=[];this.editor.env.split.forEach(function(e){t.push(e.getSelection())}),this.props.onCursorChange(t,e)}}},{key:"onFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e)}},{key:"onInput",value:function(e){this.props.onInput&&this.props.onInput(e)}},{key:"onBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e)}},{key:"onCopy",value:function(e){this.props.onCopy&&this.props.onCopy(e)}},{key:"onPaste",value:function(e){this.props.onPaste&&this.props.onPaste(e)}},{key:"onScroll",value:function(){this.props.onScroll&&this.props.onScroll(this.editor)}},{key:"handleOptions",value:function(e,t){for(var n=Object.keys(e.setOptions),i=0;i<n.length;i++)t.setOption(n[i],e.setOptions[n[i]])}},{key:"handleMarkers",value:function(e,t){var n=t.getSession().getMarkers(!0);for(var i in n)n.hasOwnProperty(i)&&t.getSession().removeMarker(n[i].id);for(var r in n=t.getSession().getMarkers(!1))n.hasOwnProperty(r)&&t.getSession().removeMarker(n[r].id);e.forEach(function(e){var n=e.startRow,i=e.startCol,r=e.endRow,o=e.endCol,s=e.className,a=e.type,c=e.inFront,l=void 0!==c&&c,u=new m(n,i,r,o);t.getSession().addMarker(u,s,a,l)})}},{key:"updateRef",value:function(e){this.refEditor=e}},{key:"render",value:function(){var e=this.props,t=e.name,n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){u(e,t,n[t])})}return e}({width:e.width,height:e.height},e.style);return r.default.createElement("div",{ref:this.updateRef,id:t,style:n})}}])&&h(n.prototype,o),c&&h(n,c),t}();t.default=y,y.propTypes={mode:o.default.string,splits:o.default.number,orientation:o.default.string,focus:o.default.bool,theme:o.default.string,name:o.default.string,className:o.default.string,height:o.default.string,width:o.default.string,fontSize:o.default.oneOfType([o.default.number,o.default.string]),showGutter:o.default.bool,onChange:o.default.func,onCopy:o.default.func,onPaste:o.default.func,onFocus:o.default.func,onInput:o.default.func,onBlur:o.default.func,onScroll:o.default.func,value:o.default.arrayOf(o.default.string),defaultValue:o.default.arrayOf(o.default.string),debounceChangePeriod:o.default.number,onLoad:o.default.func,onSelectionChange:o.default.func,onCursorChange:o.default.func,onBeforeLoad:o.default.func,minLines:o.default.number,maxLines:o.default.number,readOnly:o.default.bool,highlightActiveLine:o.default.bool,tabSize:o.default.number,showPrintMargin:o.default.bool,cursorStart:o.default.number,editorProps:o.default.object,setOptions:o.default.object,style:o.default.object,scrollMargin:o.default.array,annotations:o.default.array,markers:o.default.array,keyboardHandler:o.default.string,wrapEnabled:o.default.bool,enableBasicAutocompletion:o.default.oneOfType([o.default.bool,o.default.array]),enableLiveAutocompletion:o.default.oneOfType([o.default.bool,o.default.array]),commands:o.default.array},y.defaultProps={name:"brace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1}},function(e,t,n){"use strict";function i(e,t,n,i,r,o,s){try{var a=e[o](s),c=a.value}catch(l){return void n(l)}a.done?t(c):Promise.resolve(c).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,c,"next",e)}function c(e){i(s,r,o,a,c,"throw",e)}a(void 0)})}}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(3),r=n(16),o=n(20),s=n(28),a=n(1);function c(e,t){switch(e.kind){case a.a.NULL:return null;case a.a.INT:return parseInt(e.value,10);case a.a.FLOAT:return parseFloat(e.value);case a.a.STRING:case a.a.ENUM:case a.a.BOOLEAN:return e.value;case a.a.LIST:return e.values.map(function(e){return c(e,t)});case a.a.OBJECT:return Object(o.a)(e.fields,function(e){return e.name.value},function(e){return c(e.value,t)});case a.a.VARIABLE:var n=e.name.value;return t&&!Object(s.a)(t[n])?t[n]:void 0}Object(r.a)(!1,"Unexpected value node: "+Object(i.a)(e))}},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return a});var i=n(6),r=n(4),o=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function s(e){var t=a(e);if(t)throw t;return e}function a(e,t){return"string"===typeof e||Object(i.a)(0,"Expected string"),e.length>1&&"_"===e[0]&&"_"===e[1]?new r.a('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'),t):o.test(e)?void 0:new r.a('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'),t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(4);function r(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new i.a(function(e){return'There can be only one operation named "'.concat(e,'".')}(r.value),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(4),r=n(1);function o(e){var t=0;return{Document:function(e){t=e.definitions.filter(function(e){return e.kind===r.a.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new i.a("This anonymous operation must be the only defined operation.",n))}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(4);function r(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new i.a(function(e){return e?'Subscription "'.concat(e,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field."}(t.name&&t.name.value),t.selectionSet.selections.slice(1)))}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(4),r=n(15),o=n(0),s=n(22);function a(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var a=Object(s.a)(e.getSchema(),n);a&&!Object(o.D)(a)&&e.reportError(new i.a(function(e){return'Fragment cannot condition on non composite type "'.concat(e,'".')}(Object(r.a)(n)),n))}},FragmentDefinition:function(t){var n=Object(s.a)(e.getSchema(),t.typeCondition);n&&!Object(o.D)(n)&&e.reportError(new i.a(function(e,t){return'Fragment "'.concat(e,'" cannot condition on non composite type "').concat(t,'".')}(t.name.value,Object(r.a)(t.typeCondition)),t.typeCondition))}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(4),r=n(15),o=n(0),s=n(22);function a(e){return{VariableDefinition:function(t){var n=Object(s.a)(e.getSchema(),t.type);if(n&&!Object(o.G)(n)){var a=t.variable.name.value;e.reportError(new i.a(function(e,t){return'Variable "$'.concat(e,'" cannot be non-input type "').concat(t,'".')}(a,Object(r.a)(t.type)),t.type))}}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(3),r=n(4),o=n(0);function s(e){return{Field:function(t){var n=e.getType(),s=t.selectionSet;n&&(Object(o.I)(Object(o.A)(n))?s&&e.reportError(new r.a(function(e,t){return'Field "'.concat(e,'" must not have a selection since type "').concat(t,'" has no subfields.')}(t.name.value,Object(i.a)(n)),s)):s||e.reportError(new r.a(function(e,t){return'Field "'.concat(e,'" of type "').concat(t,'" must have a selection of subfields. Did you mean "').concat(e,' { ... }"?')}(t.name.value,Object(i.a)(n)),t)))}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(25),r=n(27),o=n(4),s=n(0);function a(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var a=e.getSchema(),c=t.name.value,l=function(e,t,n){if(Object(s.C)(t)){for(var i=[],r=Object.create(null),o=0,a=e.getPossibleTypes(t);o<a.length;o++){var c=a[o];if(c.getFields()[n]){i.push(c.name);for(var l=0,u=c.getInterfaces();l<u.length;l++){var h=u[l];h.getFields()[n]&&(r[h.name]=(r[h.name]||0)+1)}}}return Object.keys(r).sort(function(e,t){return r[t]-r[e]}).concat(i)}return[]}(a,n,c),u=0!==l.length?[]:function(e,t,n){if(Object(s.N)(t)||Object(s.H)(t)){var i=Object.keys(t.getFields());return Object(r.a)(n,i)}return[]}(0,n,c);e.reportError(new o.a(function(e,t,n,r){var o=n.map(function(e){return'"'.concat(e,'"')}),s=r.map(function(e){return'"'.concat(e,'"')});return'Cannot query field "'.concat(e,'" on type "').concat(t,'".')+(Object(i.a)("to use an inline fragment on",o)||Object(i.a)(s))}(c,n.name,l,u),t))}}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(4);function r(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new i.a('There can be only one fragment named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(4);function r(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new i.a('Unknown fragment "'.concat(n,'".'),t.name))}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(4);function r(e){return'Fragment "'.concat(e,'" is never used.')}function o(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var o=Object.create(null),s=0;s<t.length;s++)for(var a=t[s],c=0,l=e.getRecursivelyReferencedFragments(a);c<l.length;c++){o[l[c].name.value]=!0}for(var u=0;u<n.length;u++){var h=n[u],d=h.name.value;!0!==o[d]&&e.reportError(new i.a(r(d),h))}}}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(3),r=n(4),o=n(0),s=n(22),a=n(45);function c(e){return{InlineFragment:function(t){var n=e.getType(),s=e.getParentType();Object(o.D)(n)&&Object(o.D)(s)&&!Object(a.a)(e.getSchema(),n,s)&&e.reportError(new r.a(function(e,t){return'Fragment cannot be spread here as objects of type "'.concat(e,'" can never be of type "').concat(t,'".')}(Object(i.a)(s),Object(i.a)(n)),t))},FragmentSpread:function(t){var n=t.name.value,c=function(e,t){var n=e.getFragment(t);if(n){var i=Object(s.a)(e.getSchema(),n.typeCondition);if(Object(o.D)(i))return i}}(e,n),l=e.getParentType();c&&l&&!Object(a.a)(e.getSchema(),c,l)&&e.reportError(new r.a(function(e,t,n){return'Fragment "'.concat(e,'" cannot be spread here as objects of type "').concat(t,'" can never be of type "').concat(n,'".')}(n,Object(i.a)(l),Object(i.a)(c)),t))}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(4);function r(e,t){var n=t.length?" via "+t.join(", "):"";return'Cannot spread fragment "'.concat(e,'" within itself').concat(n,".")}function o(e){var t=Object.create(null),n=[],o=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(s){return function s(a){if(t[a.name.value])return;var c=a.name.value;t[c]=!0;var l=e.getFragmentSpreads(a.selectionSet);if(0===l.length)return;o[c]=n.length;for(var u=0;u<l.length;u++){var h=l[u],d=h.name.value,f=o[d];if(n.push(h),void 0===f){var p=e.getFragment(d);p&&s(p)}else{var g=n.slice(f),m=g.slice(0,-1).map(function(e){return e.name.value});e.reportError(new i.a(r(d,m),g))}n.pop()}o[c]=void 0}(s),!1}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(4);function r(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var r=n.variable.name.value;t[r]?e.reportError(new i.a(function(e){return'There can be only one variable named "'.concat(e,'".')}(r),[t[r],n.variable.name])):t[r]=n.variable.name}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(4);function r(e,t){return t?'Variable "$'.concat(e,'" is not defined by operation "').concat(t,'".'):'Variable "$'.concat(e,'" is not defined.')}function o(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var o=e.getRecursiveVariableUsages(n),s=0;s<o.length;s++){var a=o[s].node,c=a.name.value;!0!==t[c]&&e.reportError(new i.a(r(c,n.name&&n.name.value),[a,n]))}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(4);function r(e,t){return t?'Variable "$'.concat(e,'" is never used in operation "').concat(t,'".'):'Variable "$'.concat(e,'" is never used.')}function o(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var o=Object.create(null),s=e.getRecursiveVariableUsages(n),a=n.name?n.name.value:null,c=0;c<s.length;c++){o[s[c].node.name.value]=!0}for(var l=0,u=t;l<u.length;l++){var h=u[l],d=h.variable.name.value;!0!==o[d]&&e.reportError(new i.a(r(d,a),h))}}},VariableDefinition:function(e){t.push(e)}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(3),r=n(4),o=n(1),s=n(0),a=n(22),c=n(45);function l(e,t,n){return'Variable "$'.concat(e,'" of type "').concat(t,'" used in position expecting type "').concat(n,'".')}function u(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var o=e.getRecursiveVariableUsages(n),s=0;s<o.length;s++){var c=o[s],u=c.node,d=c.type,f=c.defaultValue,p=u.name.value,g=t[p];if(g&&d){var m=e.getSchema(),v=Object(a.a)(m,g.type);v&&!h(m,v,g.defaultValue,d,f)&&e.reportError(new r.a(l(p,Object(i.a)(v),Object(i.a)(d)),[g,u]))}}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function h(e,t,n,i,r){if(Object(s.L)(i)&&!Object(s.L)(t)){if(!(null!=n&&n.kind!==o.a.NULL)&&!(void 0!==r))return!1;var a=i.ofType;return Object(c.c)(e,t,a)}return Object(c.c)(e,t,i)}},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n(42),r=n(36),o=n(3),s=n(4),a=n(1),c=n(15),l=n(0),u=n(22);function h(e,t){return'Fields "'.concat(e,'" conflict because ').concat(function e(t){if(Array.isArray(t))return t.map(function(t){var n=t[0],i=t[1];return'subfields "'.concat(n,'" conflict because ').concat(e(i))}).join(" and ");return t}(t),". ")+"Use different aliases on the fields to fetch both if this was intentional."}function d(e){var t=new b,n=new Map;return{SelectionSet:function(i){for(var o=function(e,t,n,i,o){var s=[],a=v(e,t,i,o),c=a[0],l=a[1];if(function(e,t,n,i,o){for(var s=0,a=Object(r.a)(o);s<a.length;s++){var c=a[s],l=c[0],u=c[1];if(u.length>1)for(var h=0;h<u.length;h++)for(var d=h+1;d<u.length;d++){var f=m(e,n,i,!1,l,u[h],u[d]);f&&t.push(f)}}}(e,s,t,n,c),0!==l.length)for(var u=Object.create(null),h=0;h<l.length;h++){f(e,s,t,u,n,!1,c,l[h]);for(var d=h+1;d<l.length;d++)p(e,s,t,n,!1,l[h],l[d])}return s}(e,n,t,e.getParentType(),i),a=0;a<o.length;a++){var c=o[a],l=c[0],u=l[0],d=l[1],g=c[1],y=c[2];e.reportError(new s.a(h(u,d),g.concat(y)))}}}}function f(e,t,n,i,r,o,s,a){if(!i[a]){i[a]=!0;var c=e.getFragment(a);if(c){var l=y(e,n,c),u=l[0],h=l[1];if(s!==u){g(e,t,n,r,o,s,u);for(var d=0;d<h.length;d++)f(e,t,n,i,r,o,s,h[d])}}}}function p(e,t,n,i,r,o,s){if(o!==s&&!i.has(o,s,r)){i.add(o,s,r);var a=e.getFragment(o),c=e.getFragment(s);if(a&&c){var l=y(e,n,a),u=l[0],h=l[1],d=y(e,n,c),f=d[0],m=d[1];g(e,t,n,i,r,u,f);for(var v=0;v<m.length;v++)p(e,t,n,i,r,o,m[v]);for(var b=0;b<h.length;b++)p(e,t,n,i,r,h[b],s)}}}function g(e,t,n,i,r,o,s){for(var a=0,c=Object.keys(o);a<c.length;a++){var l=c[a],u=s[l];if(u)for(var h=o[l],d=0;d<h.length;d++)for(var f=0;f<u.length;f++){var p=m(e,n,i,r,l,h[d],u[f]);p&&t.push(p)}}}function m(e,t,n,r,s,a,u){var h=a[0],d=a[1],m=a[2],y=u[0],b=u[1],E=u[2],w=r||h!==y&&Object(l.N)(h)&&Object(l.N)(y),A=m&&m.type,C=E&&E.type;if(!w){var F=d.name.value,T=b.name.value;if(F!==T)return[[s,"".concat(F," and ").concat(T," are different fields")],[d],[b]];if(!function(e,t){if(e.length!==t.length)return!1;return e.every(function(e){var n,r,o=Object(i.a)(t,function(t){return t.name.value===e.name.value});return!!o&&(n=e.value,r=o.value,!n&&!r||Object(c.a)(n)===Object(c.a)(r))})}(d.arguments||[],b.arguments||[]))return[[s,"they have differing arguments"],[d],[b]]}if(A&&C&&function e(t,n){if(Object(l.J)(t))return!Object(l.J)(n)||e(t.ofType,n.ofType);if(Object(l.J)(n))return!0;if(Object(l.L)(t))return!Object(l.L)(n)||e(t.ofType,n.ofType);if(Object(l.L)(n))return!0;if(Object(l.I)(t)||Object(l.I)(n))return t!==n;return!1}(A,C))return[[s,"they return conflicting types ".concat(Object(o.a)(A)," and ").concat(Object(o.a)(C))],[d],[b]];var S=d.selectionSet,O=b.selectionSet;return S&&O?function(e,t,n,i){if(e.length>0)return[[t,e.map(function(e){return e[0]})],e.reduce(function(e,t){var n=t[1];return e.concat(n)},[n]),e.reduce(function(e,t){var n=t[2];return e.concat(n)},[i])]}(function(e,t,n,i,r,o,s,a){var c=[],l=v(e,t,r,o),u=l[0],h=l[1],d=v(e,t,s,a),m=d[0],y=d[1];if(g(e,c,t,n,i,u,m),0!==y.length)for(var b=Object.create(null),E=0;E<y.length;E++)f(e,c,t,b,n,i,u,y[E]);if(0!==h.length)for(var w=Object.create(null),A=0;A<h.length;A++)f(e,c,t,w,n,i,m,h[A]);for(var C=0;C<h.length;C++)for(var F=0;F<y.length;F++)p(e,c,t,n,i,h[C],y[F]);return c}(e,t,n,w,Object(l.A)(A),S,Object(l.A)(C),O),s,d,b):void 0}function v(e,t,n,i){var r=t.get(i);if(!r){var o=Object.create(null),s=Object.create(null);!function e(t,n,i,r,o){for(var s=0,c=i.selections;s<c.length;s++){var h=c[s];switch(h.kind){case a.a.FIELD:var d=h.name.value,f=void 0;(Object(l.N)(n)||Object(l.H)(n))&&(f=n.getFields()[d]);var p=h.alias?h.alias.value:d;r[p]||(r[p]=[]),r[p].push([n,h,f]);break;case a.a.FRAGMENT_SPREAD:o[h.name.value]=!0;break;case a.a.INLINE_FRAGMENT:var g=h.typeCondition,m=g?Object(u.a)(t.getSchema(),g):n;e(t,m,h.selectionSet,r,o)}}}(e,n,i,o,s),r=[o,Object.keys(s)],t.set(i,r)}return r}function y(e,t,n){var i=t.get(n.selectionSet);if(i)return i;var r=Object(u.a)(e.getSchema(),n.typeCondition);return v(e,t,r,n.selectionSet)}var b=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(e,t,n){var i=this._data[e],r=i&&i[t];return void 0!==r&&(!1!==n||!1===r)},t.add=function(e,t,n){E(this._data,e,t,n),E(this._data,t,e,n)},e}();function E(e,t,n,i){var r=e[t];r||(r=Object.create(null),e[t]=r),r[n]=i}},function(e,t,n){"use strict";n.d(t,"b",function(){return A}),n.d(t,"a",function(){return F}),n.d(t,"d",function(){return O}),n.d(t,"c",function(){return x});var i=n(9),r=n(24),o=n(3),s=n(16),a=n(6),c=n(20),l=n(1),u=n(5),h=n(47),d=n(37),f=n(41),p=n(59),g=n(55),m=n(11),v=n(10),y=n(35),b=n(14),E=n(0),w=n(51);function A(e,t){var n;e&&e.kind===l.a.DOCUMENT||Object(a.a)(0,"Must provide valid Document AST"),t&&(t.assumeValid||t.assumeValidSDL)||Object(p.a)(e);for(var r=[],o=[],s=0,c=e.definitions;s<c.length;s++){var u=c[s];u.kind===l.a.SCHEMA_DEFINITION?n=u:Object(d.d)(u)?r.push(u):u.kind===l.a.DIRECTIVE_DEFINITION&&o.push(u)}var h=new F(t,function(e){var t=f[e];if(void 0===t)throw new Error('Type "'.concat(e,'" not found in document.'));return t}),f=T(r,function(e){return h.buildType(e)}),g=n?function(e){for(var t={},n=0,i=e.operationTypes;n<i.length;n++){var r=i[n];t[r.operation]=r.type.name.value}return t}(n):{query:"Query",mutation:"Mutation",subscription:"Subscription"},m=o.map(function(e){return h.buildDirective(e)});return m.some(function(e){return"skip"===e.name})||m.push(b.e),m.some(function(e){return"include"===e.name})||m.push(b.d),m.some(function(e){return"deprecated"===e.name})||m.push(b.b),new y.a({query:g.query?f[g.query]:null,mutation:g.mutation?f[g.mutation]:null,subscription:g.subscription?f[g.subscription]:null,types:Object(i.a)(f),directives:m,astNode:n,assumeValid:t&&t.assumeValid,allowedLegacyNames:t&&t.allowedLegacyNames})}var C=Object(r.a)(m.g.concat(v.m),function(e){return e.name}),F=function(){function e(e,t){this._options=e,this._resolveType=t}var t=e.prototype;return t.getNamedType=function(e){var t=e.name.value;return C[t]||this._resolveType(t)},t.getWrappedType=function(e){return e.kind===l.a.LIST_TYPE?new E.d(this.getWrappedType(e.type)):e.kind===l.a.NON_NULL_TYPE?new E.e(this.getWrappedType(e.type)):this.getNamedType(e)},t.buildDirective=function(e){var t=this,n=e.locations.map(function(e){return e.value});return new b.c({name:e.name.value,description:O(e,this._options),locations:n,isRepeatable:e.repeatable,args:T(e.arguments||[],function(e){return t.buildArg(e)}),astNode:e})},t.buildField=function(e){var t=this;return{type:this.getWrappedType(e.type),description:O(e,this._options),args:T(e.arguments||[],function(e){return t.buildArg(e)}),deprecationReason:S(e),astNode:e}},t.buildArg=function(e){var t=this.getWrappedType(e.type);return{type:t,description:O(e,this._options),defaultValue:Object(w.a)(e.defaultValue,t),astNode:e}},t.buildInputField=function(e){var t=this.getWrappedType(e.type);return{type:t,description:O(e,this._options),defaultValue:Object(w.a)(e.defaultValue,t),astNode:e}},t.buildEnumValue=function(e){return{description:O(e,this._options),deprecationReason:S(e),astNode:e}},t.buildType=function(e){var t=e.name.value;if(C[t])return C[t];switch(e.kind){case l.a.OBJECT_TYPE_DEFINITION:return this._makeTypeDef(e);case l.a.INTERFACE_TYPE_DEFINITION:return this._makeInterfaceDef(e);case l.a.ENUM_TYPE_DEFINITION:return this._makeEnumDef(e);case l.a.UNION_TYPE_DEFINITION:return this._makeUnionDef(e);case l.a.SCALAR_TYPE_DEFINITION:return this._makeScalarDef(e);case l.a.INPUT_OBJECT_TYPE_DEFINITION:return this._makeInputObjectDef(e)}Object(s.a)(!1,"Unexpected type definition node: "+Object(o.a)(e))},t._makeTypeDef=function(e){var t=this,n=e.interfaces,i=e.fields,r=n&&n.length>0?function(){return n.map(function(e){return t.getNamedType(e)})}:[],o=i&&i.length>0?function(){return T(i,function(e){return t.buildField(e)})}:Object.create(null);return new E.f({name:e.name.value,description:O(e,this._options),interfaces:r,fields:o,astNode:e})},t._makeInterfaceDef=function(e){var t=this,n=e.fields,i=n&&n.length>0?function(){return T(n,function(e){return t.buildField(e)})}:Object.create(null);return new E.c({name:e.name.value,description:O(e,this._options),fields:i,astNode:e})},t._makeEnumDef=function(e){var t=this,n=e.values||[];return new E.a({name:e.name.value,description:O(e,this._options),values:T(n,function(e){return t.buildEnumValue(e)}),astNode:e})},t._makeUnionDef=function(e){var t=this,n=e.types,i=n&&n.length>0?function(){return n.map(function(e){return t.getNamedType(e)})}:[];return new E.h({name:e.name.value,description:O(e,this._options),types:i,astNode:e})},t._makeScalarDef=function(e){return new E.g({name:e.name.value,description:O(e,this._options),astNode:e})},t._makeInputObjectDef=function(e){var t=this,n=e.fields;return new E.b({name:e.name.value,description:O(e,this._options),fields:n?function(){return T(n,function(e){return t.buildInputField(e)})}:Object.create(null),astNode:e})},e}();function T(e,t){return Object(c.a)(e,function(e){return e.name.value},t)}function S(e){var t=Object(g.b)(b.b,e);return t&&t.reason}function O(e,t){if(e.description)return e.description.value;if(t&&t.commentDescriptions){var n=function(e){var t=e.loc;if(!t)return;var n=[],i=t.startToken.prev;for(;i&&i.kind===u.a.COMMENT&&i.next&&i.prev&&i.line+1===i.next.line&&i.line!==i.prev.line;){var r=String(i.value);n.push(r),i=i.prev}return n.reverse().join("\n")}(e);if(void 0!==n)return Object(f.a)("\n"+n)}}function x(e,t){return A(Object(h.a)(e,t),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"split",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"diff",{enumerable:!0,get:function(){return o.default}}),t.default=void 0;var i=s(n(206)),r=s(n(105)),o=s(n(212));function s(e){return e&&e.__esModule?e:{default:e}}var a=i.default;t.default=a},function(e,t,n){"use strict";function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(c){r=!0,o=c}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",function(){return i})},,function(e,t,n){var i=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n,i){var r=t&&t.prototype instanceof g?t:g,o=Object.create(r.prototype),s=new O(i||[]);return o._invoke=function(e,t,n){var i=u;return function(r,o){if(i===d)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return k()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=F(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var c=l(e,t,n);if("normal"===c.type){if(i=n.done?f:h,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=f,n.method="throw",n.arg=c.arg)}}}(e,n,s),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(i){return{type:"throw",arg:i}}}e.wrap=c;var u="suspendedStart",h="suspendedYield",d="executing",f="completed",p={};function g(){}function m(){}function v(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,E=b&&b(b(x([])));E&&E!==n&&i.call(E,o)&&(y=E);var w=v.prototype=g.prototype=Object.create(y);function A(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(e){var t;this._invoke=function(n,r){function o(){return new Promise(function(t,o){!function t(n,r,o,s){var a=l(e[n],e,r);if("throw"!==a.type){var c=a.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,o,s)},function(e){t("throw",e,o,s)}):Promise.resolve(u).then(function(e){c.value=e,o(c)},function(e){return t("throw",e,o,s)})}s(a.arg)}(n,r,t,o)})}return t=t?t.then(o,o):o()}}function F(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,F(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=l(i,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,p;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function x(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,s=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:k}}function k(){return{value:t,done:!0}}return m.prototype=w.constructor=v,v.constructor=m,v[a]=m.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},A(C.prototype),C.prototype[s]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,i,r){var o=new C(c(t,n,i,r));return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},A(w),w[a]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=x,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return a.type="throw",a.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:x(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=i}catch(r){Function("r","regeneratorRuntime = r")(i)}},function(e,t,n){"use strict";var i=n(90),r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,s=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,h=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116;r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder");var v="function"===typeof Symbol&&Symbol.iterator;function y(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=1;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E={};function w(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||b}function A(){}function C(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||b}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw y(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},A.prototype=w.prototype;var F=C.prototype=new A;F.constructor=C,i(F,w.prototype),F.isPureReactComponent=!0;var T={current:null},S={suspense:null},O={current:null},x=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var i=void 0,r={},s=null,a=null;if(null!=t)for(i in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)x.call(t,i)&&!k.hasOwnProperty(i)&&(r[i]=t[i]);var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps)void 0===r[i]&&(r[i]=c[i]);return{$$typeof:o,type:e,key:s,ref:a,props:r,_owner:O.current}}function D(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var R=/\/+/g,B=[];function L(e,t,n,i){if(B.length){var r=B.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=i,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:i,count:0}}function M(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>B.length&&B.push(e)}function N(e,t,n){return null==e?0:function e(t,n,i,r){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var c=!1;if(null===t)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case o:case s:c=!0}}if(c)return i(r,t,""===n?"."+$(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var u=n+$(a=t[l],l);c+=e(a,u,i,r)}else if(null===t||"object"!==typeof t?u=null:u="function"===typeof(u=v&&t[v]||t["@@iterator"])?u:null,"function"===typeof u)for(t=u.call(t),l=0;!(a=t.next()).done;)c+=e(a=a.value,u=n+$(a,l++),i,r);else if("object"===a)throw i=""+t,y(Error(31),"[object Object]"===i?"object with keys {"+Object.keys(t).join(", ")+"}":i,"");return c}(e,"",t,n)}function $(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function j(e,t,n){var i=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?P(e,i,n,function(e){return e}):null!=e&&(D(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(R,"$&/")+"/")+n)),i.push(e))}function P(e,t,n,i,r){var o="";null!=n&&(o=(""+n).replace(R,"$&/")+"/"),N(e,j,t=L(t,o,i,r)),M(t)}function V(){var e=T.current;if(null===e)throw y(Error(321));return e}var U={Children:{map:function(e,t,n){if(null==e)return e;var i=[];return P(e,i,null,t,n),i},forEach:function(e,t,n){if(null==e)return e;N(e,I,t=L(null,null,t,n)),M(t)},count:function(e){return N(e,function(){return null},null)},toArray:function(e){var t=[];return P(e,t,null,function(e){return e}),t},only:function(e){if(!D(e))throw y(Error(143));return e}},createRef:function(){return{current:null}},Component:w,PureComponent:C,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:h,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:g,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return V().useCallback(e,t)},useContext:function(e,t){return V().useContext(e,t)},useEffect:function(e,t){return V().useEffect(e,t)},useImperativeHandle:function(e,t,n){return V().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return V().useLayoutEffect(e,t)},useMemo:function(e,t){return V().useMemo(e,t)},useReducer:function(e,t,n){return V().useReducer(e,t,n)},useRef:function(e){return V().useRef(e)},useState:function(e){return V().useState(e)},Fragment:a,Profiler:l,StrictMode:c,Suspense:f,unstable_SuspenseList:p,createElement:_,cloneElement:function(e,t,n){if(null===e||void 0===e)throw y(Error(267),e);var r=void 0,s=i({},e.props),a=e.key,c=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,l=O.current),void 0!==t.key&&(a=""+t.key);var u=void 0;for(r in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)x.call(t,r)&&!k.hasOwnProperty(r)&&(s[r]=void 0===t[r]&&void 0!==u?u[r]:t[r])}if(1===(r=arguments.length-2))s.children=n;else if(1<r){u=Array(r);for(var h=0;h<r;h++)u[h]=arguments[h+2];s.children=u}return{$$typeof:o,type:e.type,key:a,ref:c,props:s,_owner:l}},createFactory:function(e){var t=_.bind(null,e);return t.type=e,t},isValidElement:D,version:"16.9.0",unstable_withSuspenseConfig:function(e,t){var n=S.suspense;S.suspense=void 0===t?null:t;try{e()}finally{S.suspense=n}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:T,ReactCurrentBatchConfig:S,ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:i}},z={default:U},W=z&&U||z;e.exports=W.default||W},function(e,t,n){"use strict";var i=n(13),r=n(90),o=n(133);function s(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=1;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}if(!i)throw s(Error(227));var a=null,c={};function l(){if(a)for(var e in c){var t=c[e],n=a.indexOf(e);if(!(-1<n))throw s(Error(96),e);if(!h[n]){if(!t.extractEvents)throw s(Error(97),e);for(var i in h[n]=t,n=t.eventTypes){var r=void 0,o=n[i],l=t,f=i;if(d.hasOwnProperty(f))throw s(Error(99),f);d[f]=o;var p=o.phasedRegistrationNames;if(p){for(r in p)p.hasOwnProperty(r)&&u(p[r],l,f);r=!0}else o.registrationName?(u(o.registrationName,l,f),r=!0):r=!1;if(!r)throw s(Error(98),i,e)}}}}function u(e,t,n){if(f[e])throw s(Error(100),e);f[e]=t,p[e]=t.eventTypes[n].dependencies}var h=[],d={},f={},p={};function g(e,t,n,i,r,o,s,a,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(u){this.onError(u)}}var m=!1,v=null,y=!1,b=null,E={onError:function(e){m=!0,v=e}};function w(e,t,n,i,r,o,s,a,c){m=!1,v=null,g.apply(E,arguments)}var A=null,C=null,F=null;function T(e,t,n){var i=e.type||"unknown-event";e.currentTarget=F(n),function(e,t,n,i,r,o,a,c,l){if(w.apply(this,arguments),m){if(!m)throw s(Error(198));var u=v;m=!1,v=null,y||(y=!0,b=u)}}(i,t,void 0,e),e.currentTarget=null}function S(e,t){if(null==t)throw s(Error(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function O(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var x=null;function k(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var i=0;i<t.length&&!e.isPropagationStopped();i++)T(e,t[i],n[i]);else t&&T(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function _(e){if(null!==e&&(x=S(x,e)),e=x,x=null,e){if(O(e,k),x)throw s(Error(95));if(y)throw e=b,y=!1,b=null,e}}var D={injectEventPluginOrder:function(e){if(a)throw s(Error(101));a=Array.prototype.slice.call(e),l()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var i=e[t];if(!c.hasOwnProperty(t)||c[t]!==i){if(c[t])throw s(Error(102),t);c[t]=i,n=!0}}n&&l()}};function R(e,t){var n=e.stateNode;if(!n)return null;var i=A(n);if(!i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw s(Error(231),t,typeof n);return n}var B=Math.random().toString(36).slice(2),L="__reactInternalInstance$"+B,M="__reactEventHandlers$"+B;function N(e){if(e[L])return e[L];for(;!e[L];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[L]).tag||6===e.tag?e:null}function $(e){return!(e=e[L])||5!==e.tag&&6!==e.tag?null:e}function I(e){if(5===e.tag||6===e.tag)return e.stateNode;throw s(Error(33))}function j(e){return e[M]||null}function P(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function V(e,t,n){(t=R(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function U(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=P(t);for(t=n.length;0<t--;)V(n[t],"captured",e);for(t=0;t<n.length;t++)V(n[t],"bubbled",e)}}function z(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=R(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function W(e){e&&e.dispatchConfig.registrationName&&z(e._targetInst,null,e)}function H(e){O(e,U)}var G=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement);function K(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var q={animationend:K("Animation","AnimationEnd"),animationiteration:K("Animation","AnimationIteration"),animationstart:K("Animation","AnimationStart"),transitionend:K("Transition","TransitionEnd")},Q={},Y={};function X(e){if(Q[e])return Q[e];if(!q[e])return e;var t,n=q[e];for(t in n)if(n.hasOwnProperty(t)&&t in Y)return Q[e]=n[t];return e}G&&(Y=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);var J=X("animationend"),Z=X("animationiteration"),ee=X("animationstart"),te=X("transitionend"),ne="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ie=null,re=null,oe=null;function se(){if(oe)return oe;var e,t,n=re,i=n.length,r="value"in ie?ie.value:ie.textContent,o=r.length;for(e=0;e<i&&n[e]===r[e];e++);var s=i-e;for(t=1;t<=s&&n[i-t]===r[o-t];t++);return oe=r.slice(e,1<t?1-t:void 0)}function ae(){return!0}function ce(){return!1}function le(e,t,n,i){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=i:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:ce,this.isPropagationStopped=ce,this}function ue(e,t,n,i){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,i),r}return new this(e,t,n,i)}function he(e){if(!(e instanceof this))throw s(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function de(e){e.eventPool=[],e.getPooled=ue,e.release=he}r(le.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:ce,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ce,this._dispatchInstances=this._dispatchListeners=null}}),le.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},le.extend=function(e){function t(){}function n(){return i.apply(this,arguments)}var i=this;t.prototype=i.prototype;var o=new t;return r(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=r({},i.Interface,e),n.extend=i.extend,de(n),n},de(le);var fe=le.extend({data:null}),pe=le.extend({data:null}),ge=[9,13,27,32],me=G&&"CompositionEvent"in window,ve=null;G&&"documentMode"in document&&(ve=document.documentMode);var ye=G&&"TextEvent"in window&&!ve,be=G&&(!me||ve&&8<ve&&11>=ve),Ee=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ae=!1;function Ce(e,t){switch(e){case"keyup":return-1!==ge.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Fe(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Te=!1;var Se={eventTypes:we,extractEvents:function(e,t,n,i){var r=void 0,o=void 0;if(me)e:{switch(e){case"compositionstart":r=we.compositionStart;break e;case"compositionend":r=we.compositionEnd;break e;case"compositionupdate":r=we.compositionUpdate;break e}r=void 0}else Te?Ce(e,n)&&(r=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=we.compositionStart);return r?(be&&"ko"!==n.locale&&(Te||r!==we.compositionStart?r===we.compositionEnd&&Te&&(o=se()):(re="value"in(ie=i)?ie.value:ie.textContent,Te=!0)),r=fe.getPooled(r,t,n,i),o?r.data=o:null!==(o=Fe(n))&&(r.data=o),H(r),o=r):o=null,(e=ye?function(e,t){switch(e){case"compositionend":return Fe(t);case"keypress":return 32!==t.which?null:(Ae=!0,Ee);case"textInput":return(e=t.data)===Ee&&Ae?null:e;default:return null}}(e,n):function(e,t){if(Te)return"compositionend"===e||!me&&Ce(e,t)?(e=se(),oe=re=ie=null,Te=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return be&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=pe.getPooled(we.beforeInput,t,n,i)).data=e,H(t)):t=null,null===o?t:null===t?o:[o,t]}},Oe=null,xe=null,ke=null;function _e(e){if(e=C(e)){if("function"!==typeof Oe)throw s(Error(280));var t=A(e.stateNode);Oe(e.stateNode,e.type,t)}}function De(e){xe?ke?ke.push(e):ke=[e]:xe=e}function Re(){if(xe){var e=xe,t=ke;if(ke=xe=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Be(e,t){return e(t)}function Le(e,t,n,i){return e(t,n,i)}function Me(){}var Ne=Be,$e=!1;function Ie(){null===xe&&null===ke||(Me(),Re())}var je={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!je[e.type]:"textarea"===t}function Ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Ue(e){if(!G)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}function ze(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function We(e){e._valueTracker||(e._valueTracker=function(e){var t=ze(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=ze(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}var Ge=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ge.hasOwnProperty("ReactCurrentDispatcher")||(Ge.ReactCurrentDispatcher={current:null}),Ge.hasOwnProperty("ReactCurrentBatchConfig")||(Ge.ReactCurrentBatchConfig={suspense:null});var Ke=/^(.*)[\\\/]/,qe="function"===typeof Symbol&&Symbol.for,Qe=qe?Symbol.for("react.element"):60103,Ye=qe?Symbol.for("react.portal"):60106,Xe=qe?Symbol.for("react.fragment"):60107,Je=qe?Symbol.for("react.strict_mode"):60108,Ze=qe?Symbol.for("react.profiler"):60114,et=qe?Symbol.for("react.provider"):60109,tt=qe?Symbol.for("react.context"):60110,nt=qe?Symbol.for("react.concurrent_mode"):60111,it=qe?Symbol.for("react.forward_ref"):60112,rt=qe?Symbol.for("react.suspense"):60113,ot=qe?Symbol.for("react.suspense_list"):60120,st=qe?Symbol.for("react.memo"):60115,at=qe?Symbol.for("react.lazy"):60116;qe&&Symbol.for("react.fundamental"),qe&&Symbol.for("react.responder");var ct="function"===typeof Symbol&&Symbol.iterator;function lt(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=ct&&e[ct]||e["@@iterator"])?e:null}function ut(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case Xe:return"Fragment";case Ye:return"Portal";case Ze:return"Profiler";case Je:return"StrictMode";case rt:return"Suspense";case ot:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case it:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case st:return ut(e.type);case at:if(e=1===e._status?e._result:null)return ut(e)}return null}function ht(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var i=e._debugOwner,r=e._debugSource,o=ut(e.type);n=null,i&&(n=ut(i.type)),i=o,o="",r?o=" (at "+r.fileName.replace(Ke,"")+":"+r.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(i||"Unknown")+o}t+=n,e=e.return}while(e);return t}var dt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ft=Object.prototype.hasOwnProperty,pt={},gt={};function mt(e,t,n,i,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vt[e]=new mt(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vt[t]=new mt(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){vt[e]=new mt(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vt[e]=new mt(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){vt[e]=new mt(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){vt[e]=new mt(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){vt[e]=new mt(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){vt[e]=new mt(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){vt[e]=new mt(e,5,!1,e.toLowerCase(),null,!1)});var yt=/[\-:]([a-z])/g;function bt(e){return e[1].toUpperCase()}function Et(e,t,n,i){var r=vt.hasOwnProperty(t)?vt[t]:null;(null!==r?0===r.type:!i&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,i){if(null===t||"undefined"===typeof t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,i)&&(n=null),i||null===r?function(e){return!!ft.call(gt,e)||!ft.call(pt,e)&&(dt.test(e)?gt[e]=!0:(pt[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}function wt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function At(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ct(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=wt(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ft(e,t){null!=(t=t.checked)&&Et(e,"checked",t,!1)}function Tt(e,t){Ft(e,t);var n=wt(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ot(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ot(e,t.type,wt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function St(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ot(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yt,bt);vt[t]=new mt(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yt,bt);vt[t]=new mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yt,bt);vt[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){vt[e]=new mt(e,1,!1,e.toLowerCase(),null,!1)}),vt.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){vt[e]=new mt(e,1,!1,e.toLowerCase(),null,!0)});var xt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function kt(e,t,n){return(e=le.getPooled(xt.change,e,t,n)).type="change",De(n),H(e),e}var _t=null,Dt=null;function Rt(e){_(e)}function Bt(e){if(He(I(e)))return e}function Lt(e,t){if("change"===e)return t}var Mt=!1;function Nt(){_t&&(_t.detachEvent("onpropertychange",$t),Dt=_t=null)}function $t(e){if("value"===e.propertyName&&Bt(Dt))if(e=kt(Dt,e,Ve(e)),$e)_(e);else{$e=!0;try{Be(Rt,e)}finally{$e=!1,Ie()}}}function It(e,t,n){"focus"===e?(Nt(),Dt=n,(_t=t).attachEvent("onpropertychange",$t)):"blur"===e&&Nt()}function jt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bt(Dt)}function Pt(e,t){if("click"===e)return Bt(t)}function Vt(e,t){if("input"===e||"change"===e)return Bt(t)}G&&(Mt=Ue("input")&&(!document.documentMode||9<document.documentMode));var Ut={eventTypes:xt,_isInputEventSupported:Mt,extractEvents:function(e,t,n,i){var r=t?I(t):window,o=void 0,s=void 0,a=r.nodeName&&r.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===r.type?o=Lt:Pe(r)?Mt?o=Vt:(o=jt,s=It):(a=r.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(o=Pt),o&&(o=o(e,t)))return kt(o,n,i);s&&s(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Ot(r,"number",r.value)}},zt=le.extend({view:null,detail:null}),Wt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ht(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Wt[e])&&!!t[e]}function Gt(){return Ht}var Kt=0,qt=0,Qt=!1,Yt=!1,Xt=zt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Gt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Kt;return Kt=e.screenX,Qt?"mousemove"===e.type?e.screenX-t:0:(Qt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=qt;return qt=e.screenY,Yt?"mousemove"===e.type?e.screenY-t:0:(Yt=!0,0)}}),Jt=Xt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Zt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},en={eventTypes:Zt,extractEvents:function(e,t,n,i){var r="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(r&&(n.relatedTarget||n.fromElement)||!o&&!r)return null;if(r=i.window===i?i:(r=i.ownerDocument)?r.defaultView||r.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?N(t):null):o=null,o===t)return null;var s=void 0,a=void 0,c=void 0,l=void 0;"mouseout"===e||"mouseover"===e?(s=Xt,a=Zt.mouseLeave,c=Zt.mouseEnter,l="mouse"):"pointerout"!==e&&"pointerover"!==e||(s=Jt,a=Zt.pointerLeave,c=Zt.pointerEnter,l="pointer");var u=null==o?r:I(o);if(r=null==t?r:I(t),(e=s.getPooled(a,o,n,i)).type=l+"leave",e.target=u,e.relatedTarget=r,(n=s.getPooled(c,t,n,i)).type=l+"enter",n.target=r,n.relatedTarget=u,i=t,o&&i)e:{for(r=i,l=0,s=t=o;s;s=P(s))l++;for(s=0,c=r;c;c=P(c))s++;for(;0<l-s;)t=P(t),l--;for(;0<s-l;)r=P(r),s--;for(;l--;){if(t===r||t===r.alternate)break e;t=P(t),r=P(r)}t=null}else t=null;for(r=t,t=[];o&&o!==r&&(null===(l=o.alternate)||l!==r);)t.push(o),o=P(o);for(o=[];i&&i!==r&&(null===(l=i.alternate)||l!==r);)o.push(i),i=P(i);for(i=0;i<t.length;i++)z(t[i],"bubbled",e);for(i=o.length;0<i--;)z(o[i],"captured",n);return[e,n]}};function tn(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}var nn=Object.prototype.hasOwnProperty;function rn(e,t){if(tn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!nn.call(t,n[i])||!tn(e[n[i]],t[n[i]]))return!1;return!0}function on(e,t){return{responder:e,props:t}}function sn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!==(2&t.effectTag))return 1;for(;t.return;)if(0!==(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function an(e){if(2!==sn(e))throw s(Error(188))}function cn(e){if(!(e=function(e){var t=e.alternate;if(!t){if(3===(t=sn(e)))throw s(Error(188));return 1===t?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(i=r.return)){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return an(r),e;if(o===i)return an(r),t;o=o.sibling}throw s(Error(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,c=r.child;c;){if(c===n){a=!0,n=r,i=o;break}if(c===i){a=!0,i=r,n=o;break}c=c.sibling}if(!a){for(c=o.child;c;){if(c===n){a=!0,n=o,i=r;break}if(c===i){a=!0,i=o,n=r;break}c=c.sibling}if(!a)throw s(Error(189))}}if(n.alternate!==i)throw s(Error(190))}if(3!==n.tag)throw s(Error(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}new Map,new Map,new Set,new Map;var ln=le.extend({animationName:null,elapsedTime:null,pseudoElement:null}),un=le.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hn=zt.extend({relatedTarget:null});function dn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}for(var fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gn=zt.extend({key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=dn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Gt,charCode:function(e){return"keypress"===e.type?dn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?dn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),mn=Xt.extend({dataTransfer:null}),vn=zt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Gt}),yn=le.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),bn=Xt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),En=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[J,"animationEnd",2],[Z,"animationIteration",2],[ee,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[te,"transitionEnd",2],["waiting","waiting",2]],wn={},An={},Cn=0;Cn<En.length;Cn++){var Fn=En[Cn],Tn=Fn[0],Sn=Fn[1],On=Fn[2],xn="on"+(Sn[0].toUpperCase()+Sn.slice(1)),kn={phasedRegistrationNames:{bubbled:xn,captured:xn+"Capture"},dependencies:[Tn],eventPriority:On};wn[Sn]=kn,An[Tn]=kn}var _n={eventTypes:wn,getEventPriority:function(e){return void 0!==(e=An[e])?e.eventPriority:2},extractEvents:function(e,t,n,i){var r=An[e];if(!r)return null;switch(e){case"keypress":if(0===dn(n))return null;case"keydown":case"keyup":e=gn;break;case"blur":case"focus":e=hn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Xt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=vn;break;case J:case Z:case ee:e=ln;break;case te:e=yn;break;case"scroll":e=zt;break;case"wheel":e=bn;break;case"copy":case"cut":case"paste":e=un;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Jt;break;default:e=le}return H(t=e.getPooled(r,t,n,i)),t}},Dn=_n.getEventPriority,Rn=[];function Bn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var i;for(i=n;i.return;)i=i.return;if(!(i=3!==i.tag?null:i.stateNode.containerInfo))break;e.ancestors.push(n),n=N(i)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=Ve(e.nativeEvent);i=e.topLevelType;for(var o=e.nativeEvent,s=null,a=0;a<h.length;a++){var c=h[a];c&&(c=c.extractEvents(i,t,o,r))&&(s=S(s,c))}_(s)}}var Ln=!0;function Mn(e,t){Nn(t,e,!1)}function Nn(e,t,n){switch(Dn(t)){case 0:var i=$n.bind(null,t,1);break;case 1:i=In.bind(null,t,1);break;default:i=jn.bind(null,t,1)}n?e.addEventListener(t,i,!0):e.addEventListener(t,i,!1)}function $n(e,t,n){$e||Me();var i=jn,r=$e;$e=!0;try{Le(i,e,t,n)}finally{($e=r)||Ie()}}function In(e,t,n){jn(e,t,n)}function jn(e,t,n){if(Ln){if(null===(t=N(t=Ve(n)))||"number"!==typeof t.tag||2===sn(t)||(t=null),Rn.length){var i=Rn.pop();i.topLevelType=e,i.nativeEvent=n,i.targetInst=t,e=i}else e={topLevelType:e,nativeEvent:n,targetInst:t,ancestors:[]};try{if(n=e,$e)Bn(n);else{$e=!0;try{Ne(Bn,n,void 0)}finally{$e=!1,Ie()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Rn.length&&Rn.push(e)}}}var Pn=new("function"===typeof WeakMap?WeakMap:Map);function Vn(e){var t=Pn.get(e);return void 0===t&&(t=new Set,Pn.set(e,t)),t}function Un(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function zn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wn(e,t){var n,i=zn(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=zn(i)}}function Hn(){for(var e=window,t=Un();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(i){n=!1}if(!n)break;t=Un((e=t.contentWindow).document)}return t}function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Kn=G&&"documentMode"in document&&11>=document.documentMode,qn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Qn=null,Yn=null,Xn=null,Jn=!1;function Zn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Jn||null==Qn||Qn!==Un(n)?null:("selectionStart"in(n=Qn)&&Gn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Xn&&rn(Xn,n)?null:(Xn=n,(e=le.getPooled(qn.select,Yn,e,t)).type="select",e.target=Qn,H(e),e))}var ei={eventTypes:qn,extractEvents:function(e,t,n,i){var r,o=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;if(!(r=!o)){e:{o=Vn(o),r=p.onSelect;for(var s=0;s<r.length;s++)if(!o.has(r[s])){o=!1;break e}o=!0}r=!o}if(r)return null;switch(o=t?I(t):window,e){case"focus":(Pe(o)||"true"===o.contentEditable)&&(Qn=o,Yn=t,Xn=null);break;case"blur":Xn=Yn=Qn=null;break;case"mousedown":Jn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Jn=!1,Zn(n,i);case"selectionchange":if(Kn)break;case"keydown":case"keyup":return Zn(n,i)}return null}};function ti(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function ni(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+wt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function ii(e,t){if(null!=t.dangerouslySetInnerHTML)throw s(Error(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ri(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw s(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw s(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:wt(n)}}function oi(e,t){var n=wt(t.value),i=wt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function si(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}D.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),A=j,C=$,F=I,D.injectEventPluginsByName({SimpleEventPlugin:_n,EnterLeaveEventPlugin:en,ChangeEventPlugin:Ut,SelectEventPlugin:ei,BeforeInputEventPlugin:Se});var ai={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ci(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function li(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ci(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ui=void 0,hi=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==ai.svg||"innerHTML"in e)e.innerHTML=t;else{for((ui=ui||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function di(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pi=["Webkit","ms","Moz","O"];function gi(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fi.hasOwnProperty(e)&&fi[e]?(""+t).trim():t+"px"}function mi(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=gi(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}Object.keys(fi).forEach(function(e){pi.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fi[t]=fi[e]})});var vi=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yi(e,t){if(t){if(vi[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw s(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw s(Error(60));if(!("object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw s(Error(61))}if(null!=t.style&&"object"!==typeof t.style)throw s(Error(62),"")}}function bi(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ei(e,t){var n=Vn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=p[t];for(var i=0;i<t.length;i++){var r=t[i];if(!n.has(r)){switch(r){case"scroll":Nn(e,"scroll",!0);break;case"focus":case"blur":Nn(e,"focus",!0),Nn(e,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Ue(r)&&Nn(e,r,!0);break;case"invalid":case"submit":case"reset":break;default:-1===ne.indexOf(r)&&Mn(r,e)}n.add(r)}}}function wi(){}var Ai=null,Ci=null;function Fi(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ti(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Si="function"===typeof setTimeout?setTimeout:void 0,Oi="function"===typeof clearTimeout?clearTimeout:void 0;function xi(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}new Set;var ki=[],_i=-1;function Di(e){0>_i||(e.current=ki[_i],ki[_i]=null,_i--)}function Ri(e,t){ki[++_i]=e.current,e.current=t}var Bi={},Li={current:Bi},Mi={current:!1},Ni=Bi;function $i(e,t){var n=e.type.contextTypes;if(!n)return Bi;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ji(e){Di(Mi),Di(Li)}function Pi(e){Di(Mi),Di(Li)}function Vi(e,t,n){if(Li.current!==Bi)throw s(Error(168));Ri(Li,t),Ri(Mi,n)}function Ui(e,t,n){var i=e.stateNode;if(e=t.childContextTypes,"function"!==typeof i.getChildContext)return n;for(var o in i=i.getChildContext())if(!(o in e))throw s(Error(108),ut(t)||"Unknown",o);return r({},n,i)}function zi(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Bi,Ni=Li.current,Ri(Li,t),Ri(Mi,Mi.current),!0}function Wi(e,t,n){var i=e.stateNode;if(!i)throw s(Error(169));n?(t=Ui(e,t,Ni),i.__reactInternalMemoizedMergedChildContext=t,Di(Mi),Di(Li),Ri(Li,t)):Di(Mi),Ri(Mi,n)}var Hi=o.unstable_runWithPriority,Gi=o.unstable_scheduleCallback,Ki=o.unstable_cancelCallback,qi=o.unstable_shouldYield,Qi=o.unstable_requestPaint,Yi=o.unstable_now,Xi=o.unstable_getCurrentPriorityLevel,Ji=o.unstable_ImmediatePriority,Zi=o.unstable_UserBlockingPriority,er=o.unstable_NormalPriority,tr=o.unstable_LowPriority,nr=o.unstable_IdlePriority,ir={},rr=void 0!==Qi?Qi:function(){},or=null,sr=null,ar=!1,cr=Yi(),lr=1e4>cr?Yi:function(){return Yi()-cr};function ur(){switch(Xi()){case Ji:return 99;case Zi:return 98;case er:return 97;case tr:return 96;case nr:return 95;default:throw s(Error(332))}}function hr(e){switch(e){case 99:return Ji;case 98:return Zi;case 97:return er;case 96:return tr;case 95:return nr;default:throw s(Error(332))}}function dr(e,t){return e=hr(e),Hi(e,t)}function fr(e,t,n){return e=hr(e),Gi(e,t,n)}function pr(e){return null===or?(or=[e],sr=Gi(Ji,mr)):or.push(e),ir}function gr(){null!==sr&&Ki(sr),mr()}function mr(){if(!ar&&null!==or){ar=!0;var e=0;try{var t=or;dr(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),or=null}catch(n){throw null!==or&&(or=or.slice(e+1)),Gi(Ji,gr),n}finally{ar=!1}}}function vr(e,t){return 1073741823===t?99:1===t?95:0>=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function yr(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var br={current:null},Er=null,wr=null,Ar=null;function Cr(){Ar=wr=Er=null}function Fr(e,t){var n=e.type._context;Ri(br,n._currentValue),n._currentValue=t}function Tr(e){var t=br.current;Di(br),e.type._context._currentValue=t}function Sr(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function Or(e,t){Er=e,Ar=wr=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(hs=!0),e.firstContext=null)}function xr(e,t){if(Ar!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Ar=e,t=1073741823),t={context:e,observedBits:t,next:null},null===wr){if(null===Er)throw s(Error(308));wr=t,Er.dependencies={expirationTime:0,firstContext:t,responders:null}}else wr=wr.next=t;return e._currentValue}var kr=!1;function _r(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Dr(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Rr(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Br(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Lr(e,t){var n=e.alternate;if(null===n){var i=e.updateQueue,r=null;null===i&&(i=e.updateQueue=_r(e.memoizedState))}else i=e.updateQueue,r=n.updateQueue,null===i?null===r?(i=e.updateQueue=_r(e.memoizedState),r=n.updateQueue=_r(n.memoizedState)):i=e.updateQueue=Dr(r):null===r&&(r=n.updateQueue=Dr(i));null===r||i===r?Br(i,t):null===i.lastUpdate||null===r.lastUpdate?(Br(i,t),Br(r,t)):(Br(i,t),r.lastUpdate=t)}function Mr(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=_r(e.memoizedState):Nr(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Nr(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Dr(t)),t}function $r(e,t,n,i,o,s){switch(n.tag){case 1:return"function"===typeof(e=n.payload)?e.call(s,i,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null===(o="function"===typeof(e=n.payload)?e.call(s,i,o):e)||void 0===o)break;return r({},i,o);case 2:kr=!0}return i}function Ir(e,t,n,i,r){kr=!1;for(var o=(t=Nr(e,t)).baseState,s=null,a=0,c=t.firstUpdate,l=o;null!==c;){var u=c.expirationTime;u<r?(null===s&&(s=c,o=l),a<u&&(a=u)):(Ua(u,c.suspenseConfig),l=$r(e,0,c,l,n,i),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=c:(t.lastEffect.nextEffect=c,t.lastEffect=c))),c=c.next}for(u=null,c=t.firstCapturedUpdate;null!==c;){var h=c.expirationTime;h<r?(null===u&&(u=c,null===s&&(o=l)),a<h&&(a=h)):(l=$r(e,0,c,l,n,i),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=c:(t.lastCapturedEffect.nextEffect=c,t.lastCapturedEffect=c))),c=c.next}null===s&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===s&&null===u&&(o=l),t.baseState=o,t.firstUpdate=s,t.firstCapturedUpdate=u,e.expirationTime=a,e.memoizedState=l}function jr(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Pr(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Pr(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Pr(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var i=t;if("function"!==typeof n)throw s(Error(191),n);n.call(i)}e=e.nextEffect}}var Vr=Ge.ReactCurrentBatchConfig,Ur=(new i.Component).refs;function zr(e,t,n,i){n=null===(n=n(i,t=e.memoizedState))||void 0===n?t:r({},t,n),e.memoizedState=n,null!==(i=e.updateQueue)&&0===e.expirationTime&&(i.baseState=n)}var Wr={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===sn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var i=ka(),r=Vr.suspense;(r=Rr(i=_a(i,e,r),r)).payload=t,void 0!==n&&null!==n&&(r.callback=n),Lr(e,r),Ra(e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var i=ka(),r=Vr.suspense;(r=Rr(i=_a(i,e,r),r)).tag=1,r.payload=t,void 0!==n&&null!==n&&(r.callback=n),Lr(e,r),Ra(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ka(),i=Vr.suspense;(i=Rr(n=_a(n,e,i),i)).tag=2,void 0!==t&&null!==t&&(i.callback=t),Lr(e,i),Ra(e,n)}};function Hr(e,t,n,i,r,o,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,o,s):!t.prototype||!t.prototype.isPureReactComponent||(!rn(n,i)||!rn(r,o))}function Gr(e,t,n){var i=!1,r=Bi,o=t.contextType;return"object"===typeof o&&null!==o?o=xr(o):(r=Ii(t)?Ni:Li.current,o=(i=null!==(i=t.contextTypes)&&void 0!==i)?$i(e,r):Bi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wr,e.stateNode=t,t._reactInternalFiber=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function Kr(e,t,n,i){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Wr.enqueueReplaceState(t,t.state,null)}function qr(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Ur;var o=t.contextType;"object"===typeof o&&null!==o?r.context=xr(o):(o=Ii(t)?Ni:Li.current,r.context=$i(e,o)),null!==(o=e.updateQueue)&&(Ir(e,o,n,r,i),r.state=e.memoizedState),"function"===typeof(o=t.getDerivedStateFromProps)&&(zr(e,t,o,n),r.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof r.getSnapshotBeforeUpdate||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||(t=r.state,"function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Wr.enqueueReplaceState(r,r.state,null),null!==(o=e.updateQueue)&&(Ir(e,o,n,r,i),r.state=e.memoizedState)),"function"===typeof r.componentDidMount&&(e.effectTag|=4)}var Qr=Array.isArray;function Yr(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){n=n._owner;var i=void 0;if(n){if(1!==n.tag)throw s(Error(309));i=n.stateNode}if(!i)throw s(Error(147),e);var r=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=i.refs;t===Ur&&(t=i.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!==typeof e)throw s(Error(284));if(!n._owner)throw s(Error(290),e)}return e}function Xr(e,t){if("textarea"!==e.type)throw s(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Jr(e){function t(t,n){if(e){var i=t.lastEffect;null!==i?(i.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t,n){return(e=oc(e,t)).index=0,e.sibling=null,e}function o(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.effectTag=2,n):i:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,i){return null===t||6!==t.tag?((t=cc(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function l(e,t,n,i){return null!==t&&t.elementType===n.type?((i=r(t,n.props)).ref=Yr(e,t,n),i.return=e,i):((i=sc(n.type,n.key,n.props,null,e.mode,i)).ref=Yr(e,t,n),i.return=e,i)}function u(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=lc(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function h(e,t,n,i,o){return null===t||7!==t.tag?((t=ac(n,e.mode,i,o)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=cc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case Qe:return(n=sc(t.type,t.key,t.props,null,e.mode,n)).ref=Yr(e,null,t),n.return=e,n;case Ye:return(t=lc(t,e.mode,n)).return=e,t}if(Qr(t)||lt(t))return(t=ac(t,e.mode,n,null)).return=e,t;Xr(e,t)}return null}function f(e,t,n,i){var r=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==r?null:c(e,t,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case Qe:return n.key===r?n.type===Xe?h(e,t,n.props.children,i,r):l(e,t,n,i):null;case Ye:return n.key===r?u(e,t,n,i):null}if(Qr(n)||lt(n))return null!==r?null:h(e,t,n,i,null);Xr(e,n)}return null}function p(e,t,n,i,r){if("string"===typeof i||"number"===typeof i)return c(t,e=e.get(n)||null,""+i,r);if("object"===typeof i&&null!==i){switch(i.$$typeof){case Qe:return e=e.get(null===i.key?n:i.key)||null,i.type===Xe?h(t,e,i.props.children,r,i.key):l(t,e,i,r);case Ye:return u(t,e=e.get(null===i.key?n:i.key)||null,i,r)}if(Qr(i)||lt(i))return h(t,e=e.get(n)||null,i,r,null);Xr(t,i)}return null}function g(r,s,a,c){for(var l=null,u=null,h=s,g=s=0,m=null;null!==h&&g<a.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var v=f(r,h,a[g],c);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(r,h),s=o(v,s,g),null===u?l=v:u.sibling=v,u=v,h=m}if(g===a.length)return n(r,h),l;if(null===h){for(;g<a.length;g++)null!==(h=d(r,a[g],c))&&(s=o(h,s,g),null===u?l=h:u.sibling=h,u=h);return l}for(h=i(r,h);g<a.length;g++)null!==(m=p(h,r,g,a[g],c))&&(e&&null!==m.alternate&&h.delete(null===m.key?g:m.key),s=o(m,s,g),null===u?l=m:u.sibling=m,u=m);return e&&h.forEach(function(e){return t(r,e)}),l}function m(r,a,c,l){var u=lt(c);if("function"!==typeof u)throw s(Error(150));if(null==(c=u.call(c)))throw s(Error(151));for(var h=u=null,g=a,m=a=0,v=null,y=c.next();null!==g&&!y.done;m++,y=c.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=f(r,g,y.value,l);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(r,g),a=o(b,a,m),null===h?u=b:h.sibling=b,h=b,g=v}if(y.done)return n(r,g),u;if(null===g){for(;!y.done;m++,y=c.next())null!==(y=d(r,y.value,l))&&(a=o(y,a,m),null===h?u=y:h.sibling=y,h=y);return u}for(g=i(r,g);!y.done;m++,y=c.next())null!==(y=p(g,r,m,y.value,l))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),a=o(y,a,m),null===h?u=y:h.sibling=y,h=y);return e&&g.forEach(function(e){return t(r,e)}),u}return function(e,i,o,c){var l="object"===typeof o&&null!==o&&o.type===Xe&&null===o.key;l&&(o=o.props.children);var u="object"===typeof o&&null!==o;if(u)switch(o.$$typeof){case Qe:e:{for(u=o.key,l=i;null!==l;){if(l.key===u){if(7===l.tag?o.type===Xe:l.elementType===o.type){n(e,l.sibling),(i=r(l,o.type===Xe?o.props.children:o.props)).ref=Yr(e,l,o),i.return=e,e=i;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===Xe?((i=ac(o.props.children,e.mode,c,o.key)).return=e,e=i):((c=sc(o.type,o.key,o.props,null,e.mode,c)).ref=Yr(e,i,o),c.return=e,e=c)}return a(e);case Ye:e:{for(l=o.key;null!==i;){if(i.key===l){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(e,i.sibling),(i=r(i,o.children||[])).return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}(i=lc(o,e.mode,c)).return=e,e=i}return a(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==i&&6===i.tag?(n(e,i.sibling),(i=r(i,o)).return=e,e=i):(n(e,i),(i=cc(o,e.mode,c)).return=e,e=i),a(e);if(Qr(o))return g(e,i,o,c);if(lt(o))return m(e,i,o,c);if(u&&Xr(e,o),"undefined"===typeof o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,s(Error(152),e.displayName||e.name||"Component")}return n(e,i)}}var Zr=Jr(!0),eo=Jr(!1),to={},no={current:to},io={current:to},ro={current:to};function oo(e){if(e===to)throw s(Error(174));return e}function so(e,t){Ri(ro,t),Ri(io,e),Ri(no,to);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:li(null,"");break;default:t=li(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Di(no),Ri(no,t)}function ao(e){Di(no),Di(io),Di(ro)}function co(e){oo(ro.current);var t=oo(no.current),n=li(t,e.type);t!==n&&(Ri(io,e),Ri(no,n))}function lo(e){io.current===e&&(Di(no),Di(io))}var uo=1,ho=1,fo=2,po={current:0};function go(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mo=0,vo=2,yo=4,bo=8,Eo=16,wo=32,Ao=64,Co=128,Fo=Ge.ReactCurrentDispatcher,To=0,So=null,Oo=null,xo=null,ko=null,_o=null,Do=null,Ro=0,Bo=null,Lo=0,Mo=!1,No=null,$o=0;function Io(){throw s(Error(321))}function jo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function Po(e,t,n,i,r,o){if(To=o,So=t,xo=null!==e?e.memoizedState:null,Fo.current=null===xo?Zo:es,t=n(i,r),Mo){do{Mo=!1,$o+=1,xo=null!==e?e.memoizedState:null,Do=ko,Bo=_o=Oo=null,Fo.current=es,t=n(i,r)}while(Mo);No=null,$o=0}if(Fo.current=Jo,(e=So).memoizedState=ko,e.expirationTime=Ro,e.updateQueue=Bo,e.effectTag|=Lo,e=null!==Oo&&null!==Oo.next,To=0,Do=_o=ko=xo=Oo=So=null,Ro=0,Bo=null,Lo=0,e)throw s(Error(300));return t}function Vo(){Fo.current=Jo,To=0,Do=_o=ko=xo=Oo=So=null,Ro=0,Bo=null,Lo=0,Mo=!1,No=null,$o=0}function Uo(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===_o?ko=_o=e:_o=_o.next=e,_o}function zo(){if(null!==Do)Do=(_o=Do).next,xo=null!==(Oo=xo)?Oo.next:null;else{if(null===xo)throw s(Error(310));var e={memoizedState:(Oo=xo).memoizedState,baseState:Oo.baseState,queue:Oo.queue,baseUpdate:Oo.baseUpdate,next:null};_o=null===_o?ko=e:_o.next=e,xo=Oo.next}return _o}function Wo(e,t){return"function"===typeof t?t(e):t}function Ho(e){var t=zo(),n=t.queue;if(null===n)throw s(Error(311));if(n.lastRenderedReducer=e,0<$o){var i=n.dispatch;if(null!==No){var r=No.get(n);if(void 0!==r){No.delete(n);var o=t.memoizedState;do{o=e(o,r.action),r=r.next}while(null!==r);return tn(o,t.memoizedState)||(hs=!0),t.memoizedState=o,t.baseUpdate===n.last&&(t.baseState=o),n.lastRenderedState=o,[o,i]}}return[t.memoizedState,i]}i=n.last;var a=t.baseUpdate;if(o=t.baseState,null!==a?(null!==i&&(i.next=null),i=a.next):i=null!==i?i.next:null,null!==i){var c=r=null,l=i,u=!1;do{var h=l.expirationTime;h<To?(u||(u=!0,c=a,r=o),h>Ro&&(Ro=h)):(Ua(h,l.suspenseConfig),o=l.eagerReducer===e?l.eagerState:e(o,l.action)),a=l,l=l.next}while(null!==l&&l!==i);u||(c=a,r=o),tn(o,t.memoizedState)||(hs=!0),t.memoizedState=o,t.baseUpdate=c,t.baseState=r,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Go(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===Bo?(Bo={lastEffect:null}).lastEffect=e.next=e:null===(t=Bo.lastEffect)?Bo.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Bo.lastEffect=e),e}function Ko(e,t,n,i){var r=Uo();Lo|=e,r.memoizedState=Go(t,n,void 0,void 0===i?null:i)}function qo(e,t,n,i){var r=zo();i=void 0===i?null:i;var o=void 0;if(null!==Oo){var s=Oo.memoizedState;if(o=s.destroy,null!==i&&jo(i,s.deps))return void Go(mo,n,o,i)}Lo|=e,r.memoizedState=Go(t,n,o,i)}function Qo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Yo(){}function Xo(e,t,n){if(!(25>$o))throw s(Error(301));var i=e.alternate;if(e===So||null!==i&&i===So)if(Mo=!0,e={expirationTime:To,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===No&&(No=new Map),void 0===(n=No.get(t)))No.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var r=ka(),o=Vr.suspense;o={expirationTime:r=_a(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.last;if(null===a)o.next=o;else{var c=a.next;null!==c&&(o.next=c),a.next=o}if(t.last=o,0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=i(l,n);if(o.eagerReducer=i,o.eagerState=u,tn(u,l))return}catch(h){}Ra(e,r)}}var Jo={readContext:xr,useCallback:Io,useContext:Io,useEffect:Io,useImperativeHandle:Io,useLayoutEffect:Io,useMemo:Io,useReducer:Io,useRef:Io,useState:Io,useDebugValue:Io,useResponder:Io},Zo={readContext:xr,useCallback:function(e,t){return Uo().memoizedState=[e,void 0===t?null:t],e},useContext:xr,useEffect:function(e,t){return Ko(516,Co|Ao,e,t)},useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ko(4,yo|wo,Qo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ko(4,yo|wo,e,t)},useMemo:function(e,t){var n=Uo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Uo();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e=(e=i.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Xo.bind(null,So,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},Uo().memoizedState=e},useState:function(e){var t=Uo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Wo,lastRenderedState:e}).dispatch=Xo.bind(null,So,e),[t.memoizedState,e]},useDebugValue:Yo,useResponder:on},es={readContext:xr,useCallback:function(e,t){var n=zo();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&jo(t,i[1])?i[0]:(n.memoizedState=[e,t],e)},useContext:xr,useEffect:function(e,t){return qo(516,Co|Ao,e,t)},useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,qo(4,yo|wo,Qo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qo(4,yo|wo,e,t)},useMemo:function(e,t){var n=zo();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&jo(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Ho,useRef:function(){return zo().memoizedState},useState:function(e){return Ho(Wo)},useDebugValue:Yo,useResponder:on},ts=null,ns=null,is=!1;function rs(e,t){var n=ic(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function os(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function ss(e){if(is){var t=ns;if(t){var n=t;if(!os(e,t)){if(!(t=xi(n.nextSibling))||!os(e,t))return e.effectTag|=2,is=!1,void(ts=e);rs(ts,n)}ts=e,ns=xi(t.firstChild)}else e.effectTag|=2,is=!1,ts=e}}function as(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;ts=e}function cs(e){if(e!==ts)return!1;if(!is)return as(e),is=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ti(t,e.memoizedProps))for(t=ns;t;)rs(e,t),t=xi(t.nextSibling);return as(e),ns=ts?xi(e.stateNode.nextSibling):null,!0}function ls(){ns=ts=null,is=!1}var us=Ge.ReactCurrentOwner,hs=!1;function ds(e,t,n,i){t.child=null===e?eo(t,null,n,i):Zr(t,e.child,n,i)}function fs(e,t,n,i,r){n=n.render;var o=t.ref;return Or(t,r),i=Po(e,t,n,i,o,r),null===e||hs?(t.effectTag|=1,ds(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ts(e,t,r))}function ps(e,t,n,i,r,o){if(null===e){var s=n.type;return"function"!==typeof s||rc(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=sc(n.type,null,i,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,gs(e,t,s,i,r,o))}return s=e.child,r<o&&(r=s.memoizedProps,(n=null!==(n=n.compare)?n:rn)(r,i)&&e.ref===t.ref)?Ts(e,t,o):(t.effectTag|=1,(e=oc(s,i)).ref=t.ref,e.return=t,t.child=e)}function gs(e,t,n,i,r,o){return null!==e&&rn(e.memoizedProps,i)&&e.ref===t.ref&&(hs=!1,r<o)?Ts(e,t,o):vs(e,t,n,i,o)}function ms(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function vs(e,t,n,i,r){var o=Ii(n)?Ni:Li.current;return o=$i(t,o),Or(t,r),n=Po(e,t,n,i,o,r),null===e||hs?(t.effectTag|=1,ds(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ts(e,t,r))}function ys(e,t,n,i,r){if(Ii(n)){var o=!0;zi(t)}else o=!1;if(Or(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Gr(t,n,i),qr(t,n,i,r),i=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,l=n.contextType;"object"===typeof l&&null!==l?l=xr(l):l=$i(t,l=Ii(n)?Ni:Li.current);var u=n.getDerivedStateFromProps,h="function"===typeof u||"function"===typeof s.getSnapshotBeforeUpdate;h||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==i||c!==l)&&Kr(t,s,i,l),kr=!1;var d=t.memoizedState;c=s.state=d;var f=t.updateQueue;null!==f&&(Ir(t,f,i,s,r),c=t.memoizedState),a!==i||d!==c||Mi.current||kr?("function"===typeof u&&(zr(t,n,u,i),c=t.memoizedState),(a=kr||Hr(t,n,a,i,d,c,l))?(h||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.effectTag|=4)):("function"===typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=c),s.props=i,s.state=c,s.context=l,i=a):("function"===typeof s.componentDidMount&&(t.effectTag|=4),i=!1)}else s=t.stateNode,a=t.memoizedProps,s.props=t.type===t.elementType?a:yr(t.type,a),c=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=xr(l):l=$i(t,l=Ii(n)?Ni:Li.current),(h="function"===typeof(u=n.getDerivedStateFromProps)||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==i||c!==l)&&Kr(t,s,i,l),kr=!1,c=t.memoizedState,d=s.state=c,null!==(f=t.updateQueue)&&(Ir(t,f,i,s,r),d=t.memoizedState),a!==i||c!==d||Mi.current||kr?("function"===typeof u&&(zr(t,n,u,i),d=t.memoizedState),(u=kr||Hr(t,n,a,i,c,d,l))?(h||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(i,d,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(i,d,l)),"function"===typeof s.componentDidUpdate&&(t.effectTag|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=i,t.memoizedState=d),s.props=i,s.state=d,s.context=l,i=u):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),i=!1);return bs(e,t,n,i,o,r)}function bs(e,t,n,i,r,o){ms(e,t);var s=0!==(64&t.effectTag);if(!i&&!s)return r&&Wi(t,n,!1),Ts(e,t,o);i=t.stateNode,us.current=t;var a=s&&"function"!==typeof n.getDerivedStateFromError?null:i.render();return t.effectTag|=1,null!==e&&s?(t.child=Zr(t,e.child,null,o),t.child=Zr(t,null,a,o)):ds(e,t,a,o),t.memoizedState=i.state,r&&Wi(t,n,!0),t.child}function Es(e){var t=e.stateNode;t.pendingContext?Vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Vi(0,t.context,!1),so(e,t.containerInfo)}var ws={};function As(e,t,n){var i,r=t.mode,o=t.pendingProps,s=po.current,a=null,c=!1;if((i=0!==(64&t.effectTag))||(i=0!==(s&fo)&&(null===e||null!==e.memoizedState)),i?(a=ws,c=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(s|=ho),Ri(po,s&=uo),null===e)if(c){if(o=o.fallback,(e=ac(null,r,0,null)).return=t,0===(2&t.mode))for(c=null!==t.memoizedState?t.child.child:t.child,e.child=c;null!==c;)c.return=e,c=c.sibling;(n=ac(o,r,n,null)).return=t,e.sibling=n,r=e}else r=n=eo(t,null,o.children,n);else{if(null!==e.memoizedState)if(r=(s=e.child).sibling,c){if(o=o.fallback,(n=oc(s,s.pendingProps)).return=t,0===(2&t.mode)&&(c=null!==t.memoizedState?t.child.child:t.child)!==s.child)for(n.child=c;null!==c;)c.return=n,c=c.sibling;(o=oc(r,o,r.expirationTime)).return=t,n.sibling=o,r=n,n.childExpirationTime=0,n=o}else r=n=Zr(t,s.child,o.children,n);else if(s=e.child,c){if(c=o.fallback,(o=ac(null,r,0,null)).return=t,o.child=s,null!==s&&(s.return=o),0===(2&t.mode))for(s=null!==t.memoizedState?t.child.child:t.child,o.child=s;null!==s;)s.return=o,s=s.sibling;(n=ac(c,r,n,null)).return=t,o.sibling=n,n.effectTag|=2,r=o,o.childExpirationTime=0}else n=r=Zr(t,s,o.children,n);t.stateNode=e.stateNode}return t.memoizedState=a,t.child=r,n}function Cs(e,t,n,i,r){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,last:i,tail:n,tailExpiration:0,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.last=i,o.tail=n,o.tailExpiration=0,o.tailMode=r)}function Fs(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(ds(e,t,i.children,n),0!==((i=po.current)&fo))i=i&uo|fo,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<n&&(e.expirationTime=n);var s=e.alternate;null!==s&&s.expirationTime<n&&(s.expirationTime=n),Sr(e.return,n)}}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=uo}if(Ri(po,i),0===(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(i=n.alternate)&&null===go(i)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Cs(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(i=r.alternate)&&null===go(i)){t.child=r;break}i=r.sibling,r.sibling=n,n=r,r=i}Cs(t,!0,n,null,o);break;case"together":Cs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ts(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw s(Error(153));if(null!==t.child){for(n=oc(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=oc(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Ss(e){e.effectTag|=4}var Os=void 0,xs=void 0,ks=void 0,_s=void 0;function Ds(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Rs(e){switch(e.tag){case 1:Ii(e.type)&&ji();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:if(ao(),Pi(),0!==(64&(t=e.effectTag)))throw s(Error(285));return e.effectTag=-2049&t|64,e;case 5:return lo(e),null;case 13:return Di(po),2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 19:return Di(po),null;case 4:return ao(),null;case 10:return Tr(e),null;default:return null}}function Bs(e,t){return{value:e,source:t,stack:ht(t)}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(20===n.tag)e.appendChild(n.stateNode.instance);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},xs=function(){},ks=function(e,t,n,i,o){var s=e.memoizedProps;if(s!==i){var a=t.stateNode;switch(oo(no.current),e=null,n){case"input":s=At(a,s),i=At(a,i),e=[];break;case"option":s=ti(a,s),i=ti(a,i),e=[];break;case"select":s=r({},s,{value:void 0}),i=r({},i,{value:void 0}),e=[];break;case"textarea":s=ii(a,s),i=ii(a,i),e=[];break;default:"function"!==typeof s.onClick&&"function"===typeof i.onClick&&(a.onclick=wi)}yi(n,i),a=n=void 0;var c=null;for(n in s)if(!i.hasOwnProperty(n)&&s.hasOwnProperty(n)&&null!=s[n])if("style"===n){var l=s[n];for(a in l)l.hasOwnProperty(a)&&(c||(c={}),c[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(f.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in i){var u=i[n];if(l=null!=s?s[n]:void 0,i.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if("style"===n)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(c||(c={}),c[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(c||(c={}),c[a]=u[a])}else c||(e||(e=[]),e.push(n,c)),c=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,""+u)):"children"===n?l===u||"string"!==typeof u&&"number"!==typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(f.hasOwnProperty(n)?(null!=u&&Ei(o,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}c&&(e=e||[]).push("style",c),o=e,(t.updateQueue=o)&&Ss(t)}},_s=function(e,t,n,i){n!==i&&Ss(t)};var Ls="function"===typeof WeakSet?WeakSet:Set;function Ms(e,t){var n=t.source,i=t.stack;null===i&&null!==n&&(i=ht(n)),null!==n&&ut(n.type),t=t.value,null!==e&&1===e.tag&&ut(e.type);try{console.error(t)}catch(r){setTimeout(function(){throw r})}}function Ns(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Ya(e,n)}else t.current=null}function $s(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)!==mo){var r=i.destroy;i.destroy=void 0,void 0!==r&&r()}(i.tag&t)!==mo&&(r=i.create,i.destroy=r()),i=i.next}while(i!==n)}}function Is(e,t){switch("function"===typeof tc&&tc(e),e.tag){case 0:case 11:case 14:case 15:var n=e.updateQueue;if(null!==n&&null!==(n=n.lastEffect)){var i=n.next;dr(97<t?97:t,function(){var t=i;do{var n=t.destroy;if(void 0!==n){var r=e;try{n()}catch(o){Ya(r,o)}}t=t.next}while(t!==i)})}break;case 1:Ns(e),"function"===typeof(t=e.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){Ya(e,n)}}(e,t);break;case 5:Ns(e);break;case 4:Us(e,t)}}function js(e,t){for(var n=e;;)if(Is(n,t),null!==n.child&&4!==n.tag)n.child.return=n,n=n.child;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Ps(e){return 5===e.tag||3===e.tag||4===e.tag}function Vs(e){e:{for(var t=e.return;null!==t;){if(Ps(t)){var n=t;break e}t=t.return}throw s(Error(160))}switch(t=n.stateNode,n.tag){case 5:var i=!1;break;case 3:case 4:t=t.containerInfo,i=!0;break;default:throw s(Error(161))}16&n.effectTag&&(di(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Ps(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var r=e;;){var o=5===r.tag||6===r.tag;if(o||20===r.tag){var a=o?r.stateNode:r.stateNode.instance;if(n)if(i){var c=a;a=n,8===(o=t).nodeType?o.parentNode.insertBefore(c,a):o.insertBefore(c,a)}else t.insertBefore(a,n);else i?(8===(c=t).nodeType?(o=c.parentNode).insertBefore(a,c):(o=c).appendChild(a),null!==(c=c._reactRootContainer)&&void 0!==c||null!==o.onclick||(o.onclick=wi)):t.appendChild(a)}else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Us(e,t){for(var n=e,i=!1,r=void 0,o=void 0;;){if(!i){i=n.return;e:for(;;){if(null===i)throw s(Error(160));switch(r=i.stateNode,i.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}i=i.return}i=!0}if(5===n.tag||6===n.tag)if(js(n,t),o){var a=r,c=n.stateNode;8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)}else r.removeChild(n.stateNode);else if(20===n.tag)c=n.stateNode.instance,js(n,t),o?8===(a=r).nodeType?a.parentNode.removeChild(c):a.removeChild(c):r.removeChild(c);else if(4===n.tag){if(null!==n.child){r=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(Is(n,t),null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;4===(n=n.return).tag&&(i=!1)}n.sibling.return=n.return,n=n.sibling}}function zs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:$s(yo,bo,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps,r=null!==e?e.memoizedProps:i;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[M]=i,"input"===e&&"radio"===i.type&&null!=i.name&&Ft(n,i),bi(e,r),t=bi(e,i),r=0;r<o.length;r+=2){var a=o[r],c=o[r+1];"style"===a?mi(n,c):"dangerouslySetInnerHTML"===a?hi(n,c):"children"===a?di(n,c):Et(n,a,c,t)}switch(e){case"input":Tt(n,i);break;case"textarea":oi(n,i);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!i.multiple,null!=(e=i.value)?ni(n,!!i.multiple,e,!1):t!==!!i.multiple&&(null!=i.defaultValue?ni(n,!!i.multiple,i.defaultValue,!0):ni(n,!!i.multiple,i.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw s(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t,null===t.memoizedState?i=!1:(i=!0,n=t.child,ga=lr()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,i?"function"===typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,r=void 0!==(r=e.memoizedProps.style)&&null!==r&&r.hasOwnProperty("display")?r.display:null,o.style.display=gi("display",r));else if(6===e.tag)e.stateNode.nodeValue=i?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}Ws(t);break;case 19:Ws(t);break;case 17:case 20:break;default:throw s(Error(163))}}function Ws(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ls),t.forEach(function(t){var i=Ja.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))})}}var Hs="function"===typeof WeakMap?WeakMap:Map;function Gs(e,t,n){(n=Rr(n,null)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){ya||(ya=!0,ba=i),Ms(e,t)},n}function Ks(e,t,n){(n=Rr(n,null)).tag=3;var i=e.type.getDerivedStateFromError;if("function"===typeof i){var r=t.value;n.payload=function(){return Ms(e,t),i(r)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof i&&(null===Ea?Ea=new Set([this]):Ea.add(this),Ms(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var qs=Math.ceil,Qs=Ge.ReactCurrentDispatcher,Ys=Ge.ReactCurrentOwner,Xs=0,Js=8,Zs=16,ea=32,ta=0,na=1,ia=2,ra=3,oa=4,sa=Xs,aa=null,ca=null,la=0,ua=ta,ha=1073741823,da=1073741823,fa=null,pa=!1,ga=0,ma=500,va=null,ya=!1,ba=null,Ea=null,wa=!1,Aa=null,Ca=90,Fa=0,Ta=null,Sa=0,Oa=null,xa=0;function ka(){return(sa&(Zs|ea))!==Xs?1073741821-(lr()/10|0):0!==xa?xa:xa=1073741821-(lr()/10|0)}function _a(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var i=ur();if(0===(4&t))return 99===i?1073741823:1073741822;if((sa&Zs)!==Xs)return la;if(null!==n)e=1073741821-25*(1+((1073741821-e+(0|n.timeoutMs||5e3)/10)/25|0));else switch(i){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=1;break;default:throw s(Error(326))}return null!==aa&&e===la&&--e,e}var Da=0;function Ra(e,t){if(50<Sa)throw Sa=0,Oa=null,s(Error(185));if(null!==(e=Ba(e,t))){e.pingTime=0;var n=ur();if(1073741823===t)if((sa&Js)!==Xs&&(sa&(Zs|ea))===Xs)for(var i=Va(e,1073741823,!0);null!==i;)i=i(!0);else La(e,99,1073741823),sa===Xs&&gr();else La(e,n,t);(4&sa)===Xs||98!==n&&99!==n||(null===Ta?Ta=new Map([[e,t]]):(void 0===(n=Ta.get(e))||n>t)&&Ta.set(e,t))}}function Ba(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var i=e.return,r=null;if(null===i&&3===e.tag)r=e.stateNode;else for(;null!==i;){if(n=i.alternate,i.childExpirationTime<t&&(i.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===i.return&&3===i.tag){r=i.stateNode;break}i=i.return}return null!==r&&(t>r.firstPendingTime&&(r.firstPendingTime=t),0===(e=r.lastPendingTime)||t<e)&&(r.lastPendingTime=t),r}function La(e,t,n){if(e.callbackExpirationTime<n){var i=e.callbackNode;null!==i&&i!==ir&&Ki(i),e.callbackExpirationTime=n,1073741823===n?e.callbackNode=pr(Ma.bind(null,e,Va.bind(null,e,n))):(i=null,1!==n&&(i={timeout:10*(1073741821-n)-lr()}),e.callbackNode=fr(t,Ma.bind(null,e,Va.bind(null,e,n)),i))}}function Ma(e,t,n){var i=e.callbackNode,r=null;try{return null!==(r=t(n))?Ma.bind(null,e,r):null}finally{null===r&&i===e.callbackNode&&(e.callbackNode=null,e.callbackExpirationTime=0)}}function Na(){(sa&(1|Zs|ea))===Xs&&(function(){if(null!==Ta){var e=Ta;Ta=null,e.forEach(function(e,t){pr(Va.bind(null,t,e))}),gr()}}(),Ka())}function $a(e,t){var n=sa;sa|=1;try{return e(t)}finally{(sa=n)===Xs&&gr()}}function Ia(e,t,n,i){var r=sa;sa|=4;try{return dr(98,e.bind(null,t,n,i))}finally{(sa=r)===Xs&&gr()}}function ja(e,t){var n=sa;sa&=-2,sa|=Js;try{return e(t)}finally{(sa=n)===Xs&&gr()}}function Pa(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Oi(n)),null!==ca)for(n=ca.return;null!==n;){var i=n;switch(i.tag){case 1:var r=i.type.childContextTypes;null!==r&&void 0!==r&&ji();break;case 3:ao(),Pi();break;case 5:lo(i);break;case 4:ao();break;case 13:case 19:Di(po);break;case 10:Tr(i)}n=n.return}aa=e,ca=oc(e.current,null),la=t,ua=ta,da=ha=1073741823,fa=null,pa=!1}function Va(e,t,n){if((sa&(Zs|ea))!==Xs)throw s(Error(327));if(e.firstPendingTime<t)return null;if(n&&e.finishedExpirationTime===t)return Ha.bind(null,e);if(Ka(),e!==aa||t!==la)Pa(e,t);else if(ua===ra)if(pa)Pa(e,t);else{var i=e.lastPendingTime;if(i<t)return Va.bind(null,e,i)}if(null!==ca){i=sa,sa|=Zs;var r=Qs.current;if(null===r&&(r=Jo),Qs.current=Jo,n){if(1073741823!==t){var o=ka();if(o<t)return sa=i,Cr(),Qs.current=r,Va.bind(null,e,o)}}else xa=0;for(;;)try{if(n)for(;null!==ca;)ca=za(ca);else for(;null!==ca&&!qi();)ca=za(ca);break}catch(g){if(Cr(),Vo(),null===(o=ca)||null===o.return)throw Pa(e,t),sa=i,g;e:{var a=e,c=o.return,l=o,u=g,h=la;if(l.effectTag|=1024,l.firstEffect=l.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var d=u,f=0!==(po.current&ho);u=c;do{var p;if((p=13===u.tag)&&(null!==u.memoizedState?p=!1:p=void 0!==(p=u.memoizedProps).fallback&&(!0!==p.unstable_avoidThisFallback||!f)),p){if(null===(c=u.updateQueue)?((c=new Set).add(d),u.updateQueue=c):c.add(d),0===(2&u.mode)){u.effectTag|=64,l.effectTag&=-1957,1===l.tag&&(null===l.alternate?l.tag=17:((h=Rr(1073741823,null)).tag=2,Lr(l,h))),l.expirationTime=1073741823;break e}l=a,a=h,null===(f=l.pingCache)?(f=l.pingCache=new Hs,c=new Set,f.set(d,c)):void 0===(c=f.get(d))&&(c=new Set,f.set(d,c)),c.has(a)||(c.add(a),l=Xa.bind(null,l,d,a),d.then(l,l)),u.effectTag|=2048,u.expirationTime=h;break e}u=u.return}while(null!==u);u=Error((ut(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ht(l))}ua!==oa&&(ua=na),u=Bs(u,l),l=c;do{switch(l.tag){case 3:l.effectTag|=2048,l.expirationTime=h,Mr(l,h=Gs(l,u,h));break e;case 1:if(d=u,a=l.type,c=l.stateNode,0===(64&l.effectTag)&&("function"===typeof a.getDerivedStateFromError||null!==c&&"function"===typeof c.componentDidCatch&&(null===Ea||!Ea.has(c)))){l.effectTag|=2048,l.expirationTime=h,Mr(l,h=Ks(l,d,h));break e}}l=l.return}while(null!==l)}ca=Wa(o)}if(sa=i,Cr(),Qs.current=r,null!==ca)return Va.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(fr(97,function(){return n._onComplete(),null}),!0)}(e,t))return null;switch(aa=null,ua){case ta:throw s(Error(328));case na:return(i=e.lastPendingTime)<t?Va.bind(null,e,i):n?Ha.bind(null,e):(Pa(e,t),pr(Va.bind(null,e,t)),null);case ia:return 1073741823===ha&&!n&&10<(n=ga+ma-lr())?pa?(Pa(e,t),Va.bind(null,e,t)):(i=e.lastPendingTime)<t?Va.bind(null,e,i):(e.timeoutHandle=Si(Ha.bind(null,e),n),null):Ha.bind(null,e);case ra:if(!n){if(pa)return Pa(e,t),Va.bind(null,e,t);if((n=e.lastPendingTime)<t)return Va.bind(null,e,n);if(1073741823!==da?n=10*(1073741821-da)-lr():1073741823===ha?n=0:(n=10*(1073741821-ha)-5e3,0>(n=(i=lr())-n)&&(n=0),(t=10*(1073741821-t)-i)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*qs(n/1960))-n)&&(n=t)),10<n)return e.timeoutHandle=Si(Ha.bind(null,e),n),null}return Ha.bind(null,e);case oa:return!n&&1073741823!==ha&&null!==fa&&(i=ha,0>=(t=0|(r=fa).busyMinDurationMs)?t=0:(n=0|r.busyDelayMs,t=(i=lr()-(10*(1073741821-i)-(0|r.timeoutMs||5e3)))<=n?0:n+t-i),10<t)?(e.timeoutHandle=Si(Ha.bind(null,e),t),null):Ha.bind(null,e);default:throw s(Error(329))}}function Ua(e,t){e<ha&&1<e&&(ha=e),null!==t&&e<da&&1<e&&(da=e,fa=t)}function za(e){var t=Za(e.alternate,e,la);return e.memoizedProps=e.pendingProps,null===t&&(t=Wa(e)),Ys.current=null,t}function Wa(e){ca=e;do{var t=ca.alternate;if(e=ca.return,0===(1024&ca.effectTag)){e:{var n=t,i=la,o=(t=ca).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Ii(t.type)&&ji();break;case 3:ao(),Pi(),(i=t.stateNode).pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==n&&null!==n.child||(cs(t),t.effectTag&=-3),xs(t);break;case 5:lo(t),i=oo(ro.current);var a=t.type;if(null!==n&&null!=t.stateNode)ks(n,t,a,o,i),n.ref!==t.ref&&(t.effectTag|=128);else if(o){var c=oo(no.current);if(cs(t)){o=void 0,a=(n=t).stateNode;var l=n.type,u=n.memoizedProps;switch(a[L]=n,a[M]=u,l){case"iframe":case"object":case"embed":Mn("load",a);break;case"video":case"audio":for(var h=0;h<ne.length;h++)Mn(ne[h],a);break;case"source":Mn("error",a);break;case"img":case"image":case"link":Mn("error",a),Mn("load",a);break;case"form":Mn("reset",a),Mn("submit",a);break;case"details":Mn("toggle",a);break;case"input":Ct(a,u),Mn("invalid",a),Ei(i,"onChange");break;case"select":a._wrapperState={wasMultiple:!!u.multiple},Mn("invalid",a),Ei(i,"onChange");break;case"textarea":ri(a,u),Mn("invalid",a),Ei(i,"onChange")}for(o in yi(l,u),h=null,u)u.hasOwnProperty(o)&&(c=u[o],"children"===o?"string"===typeof c?a.textContent!==c&&(h=["children",c]):"number"===typeof c&&a.textContent!==""+c&&(h=["children",""+c]):f.hasOwnProperty(o)&&null!=c&&Ei(i,o));switch(l){case"input":We(a),St(a,u,!0);break;case"textarea":We(a),si(a);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(a.onclick=wi)}i=h,n.updateQueue=i,null!==i&&Ss(t)}else{u=a,n=o,l=t,h=9===i.nodeType?i:i.ownerDocument,c===ai.html&&(c=ci(u)),c===ai.html?"script"===u?((u=h.createElement("div")).innerHTML="<script><\/script>",h=u.removeChild(u.firstChild)):"string"===typeof n.is?h=h.createElement(u,{is:n.is}):(h=h.createElement(u),"select"===u&&(u=h,n.multiple?u.multiple=!0:n.size&&(u.size=n.size))):h=h.createElementNS(c,u),(u=h)[L]=l,u[M]=n,Os(n=u,t,!1,!1),l=n;var d=i,p=bi(a,o);switch(a){case"iframe":case"object":case"embed":Mn("load",l),i=o;break;case"video":case"audio":for(i=0;i<ne.length;i++)Mn(ne[i],l);i=o;break;case"source":Mn("error",l),i=o;break;case"img":case"image":case"link":Mn("error",l),Mn("load",l),i=o;break;case"form":Mn("reset",l),Mn("submit",l),i=o;break;case"details":Mn("toggle",l),i=o;break;case"input":Ct(l,o),i=At(l,o),Mn("invalid",l),Ei(d,"onChange");break;case"option":i=ti(l,o);break;case"select":l._wrapperState={wasMultiple:!!o.multiple},i=r({},o,{value:void 0}),Mn("invalid",l),Ei(d,"onChange");break;case"textarea":ri(l,o),i=ii(l,o),Mn("invalid",l),Ei(d,"onChange");break;default:i=o}yi(a,i),u=void 0,h=a,c=l;var g=i;for(u in g)if(g.hasOwnProperty(u)){var m=g[u];"style"===u?mi(c,m):"dangerouslySetInnerHTML"===u?null!=(m=m?m.__html:void 0)&&hi(c,m):"children"===u?"string"===typeof m?("textarea"!==h||""!==m)&&di(c,m):"number"===typeof m&&di(c,""+m):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(f.hasOwnProperty(u)?null!=m&&Ei(d,u):null!=m&&Et(c,u,m,p))}switch(a){case"input":We(l),St(l,o,!1);break;case"textarea":We(l),si(l);break;case"option":null!=o.value&&l.setAttribute("value",""+wt(o.value));break;case"select":i=l,l=o,i.multiple=!!l.multiple,null!=(u=l.value)?ni(i,!!l.multiple,u,!1):null!=l.defaultValue&&ni(i,!!l.multiple,l.defaultValue,!0);break;default:"function"===typeof i.onClick&&(l.onclick=wi)}Fi(a,o)&&Ss(t),t.stateNode=n}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw s(Error(166));break;case 6:if(n&&null!=t.stateNode)_s(n,t,n.memoizedProps,o);else{if("string"!==typeof o&&null===t.stateNode)throw s(Error(166));n=oo(ro.current),oo(no.current),cs(t)?(i=t.stateNode,n=t.memoizedProps,i[L]=t,i.nodeValue!==n&&Ss(t)):(i=t,(n=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[L]=t,i.stateNode=n)}break;case 11:break;case 13:if(Di(po),o=t.memoizedState,0!==(64&t.effectTag)){t.expirationTime=i;break e}i=null!==o,o=!1,null===n?cs(t):(o=null!==(a=n.memoizedState),i||null===a||null!==(a=n.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=a,a.nextEffect=l):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),i&&!o&&0!==(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(po.current&ho)?ua===ta&&(ua=ia):ua!==ta&&ua!==ia||(ua=ra)),(i||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:ao(),xs(t);break;case 10:Tr(t);break;case 9:case 14:break;case 17:Ii(t.type)&&ji();break;case 18:break;case 19:if(Di(po),null===(o=t.memoizedState))break;if(a=0!==(64&t.effectTag),null===(l=o.rendering)){if(a)Ds(o,!1);else if(ua!==ta||null!==n&&0!==(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(l=go(n))){for(t.effectTag|=64,Ds(o,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),t.firstEffect=t.lastEffect=null,n=t.child;null!==n;)a=i,(o=n).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(l=o.alternate)?(o.childExpirationTime=0,o.expirationTime=a,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=l.childExpirationTime,o.expirationTime=l.expirationTime,o.child=l.child,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,a=l.dependencies,o.dependencies=null===a?null:{expirationTime:a.expirationTime,firstContext:a.firstContext,responders:a.responders}),n=n.sibling;Ri(po,po.current&uo|fo),t=t.child;break e}n=n.sibling}}else{if(!a)if(null!==(n=go(l))){if(t.effectTag|=64,a=!0,Ds(o,!0),null===o.tail&&"hidden"===o.tailMode){null!==(i=n.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null);break}}else lr()>o.tailExpiration&&1<i&&(t.effectTag|=64,a=!0,Ds(o,!1),t.expirationTime=t.childExpirationTime=i-1);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(i=o.last)?i.sibling=l:t.child=l,o.last=l)}if(null!==o.tail){0===o.tailExpiration&&(o.tailExpiration=lr()+500),i=o.tail,o.rendering=i,o.tail=i.sibling,o.lastEffect=t.lastEffect,i.sibling=null,n=po.current,Ri(po,n=a?n&uo|fo:n&uo),t=i;break e}break;case 20:break;default:throw s(Error(156))}t=null}if(i=ca,1===la||1!==i.childExpirationTime){for(n=0,o=i.child;null!==o;)(a=o.expirationTime)>n&&(n=a),(l=o.childExpirationTime)>n&&(n=l),o=o.sibling;i.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ca.firstEffect),null!==ca.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ca.firstEffect),e.lastEffect=ca.lastEffect),1<ca.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=ca:e.firstEffect=ca,e.lastEffect=ca))}else{if(null!==(t=Rs(ca)))return t.effectTag&=1023,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=1024)}if(null!==(t=ca.sibling))return t;ca=e}while(null!==ca);return ua===ta&&(ua=oa),null}function Ha(e){var t=ur();return dr(99,Ga.bind(null,e,t)),null!==Aa&&fr(97,function(){return Ka(),null}),null}function Ga(e,t){if(Ka(),(sa&(Zs|ea))!==Xs)throw s(Error(327));var n=e.finishedWork,i=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw s(Error(177));e.callbackNode=null,e.callbackExpirationTime=0;var r=n.expirationTime,o=n.childExpirationTime;if(r=o>r?o:r,e.firstPendingTime=r,r<e.lastPendingTime&&(e.lastPendingTime=r),e===aa&&(ca=aa=null,la=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){o=sa,sa|=ea,Ys.current=null,Ai=Ln;var a=Hn();if(Gn(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else e:{var l=(c=(c=a.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(l&&0!==l.rangeCount){c=l.anchorNode;var u=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{c.nodeType,h.nodeType}catch(j){c=null;break e}var d=0,f=-1,p=-1,g=0,m=0,v=a,y=null;t:for(;;){for(var b;v!==c||0!==u&&3!==v.nodeType||(f=d+u),v!==h||0!==l&&3!==v.nodeType||(p=d+l),3===v.nodeType&&(d+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===a)break t;if(y===c&&++g===u&&(f=d),y===h&&++m===l&&(p=d),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}c=-1===f||-1===p?null:{start:f,end:p}}else c=null}c=c||{start:0,end:0}}else c=null;Ci={focusedElem:a,selectionRange:c},Ln=!1,va=r;do{try{for(;null!==va;){if(0!==(256&va.effectTag)){var E=va.alternate;switch((a=va).tag){case 0:case 11:case 15:$s(vo,mo,a);break;case 1:if(256&a.effectTag&&null!==E){var w=E.memoizedProps,A=E.memoizedState,C=a.stateNode,F=C.getSnapshotBeforeUpdate(a.elementType===a.type?w:yr(a.type,w),A);C.__reactInternalSnapshotBeforeUpdate=F}break;case 3:case 5:case 6:case 4:case 17:break;default:throw s(Error(163))}}va=va.nextEffect}}catch(j){if(null===va)throw s(Error(330));Ya(va,j),va=va.nextEffect}}while(null!==va);va=r;do{try{for(E=t;null!==va;){var T=va.effectTag;if(16&T&&di(va.stateNode,""),128&T){var S=va.alternate;if(null!==S){var O=S.ref;null!==O&&("function"===typeof O?O(null):O.current=null)}}switch(14&T){case 2:Vs(va),va.effectTag&=-3;break;case 6:Vs(va),va.effectTag&=-3,zs(va.alternate,va);break;case 4:zs(va.alternate,va);break;case 8:Us(w=va,E),w.return=null,w.child=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null;var x=w.alternate;null!==x&&(x.return=null,x.child=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null)}va=va.nextEffect}}catch(j){if(null===va)throw s(Error(330));Ya(va,j),va=va.nextEffect}}while(null!==va);if(O=Ci,S=Hn(),T=O.focusedElem,E=O.selectionRange,S!==T&&T&&T.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(T.ownerDocument.documentElement,T)){null!==E&&Gn(T)&&(S=E.start,void 0===(O=E.end)&&(O=S),"selectionStart"in T?(T.selectionStart=S,T.selectionEnd=Math.min(O,T.value.length)):(O=(S=T.ownerDocument||document)&&S.defaultView||window).getSelection&&(O=O.getSelection(),w=T.textContent.length,x=Math.min(E.start,w),E=void 0===E.end?x:Math.min(E.end,w),!O.extend&&x>E&&(w=E,E=x,x=w),w=Wn(T,x),A=Wn(T,E),w&&A&&(1!==O.rangeCount||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==A.node||O.focusOffset!==A.offset)&&((S=S.createRange()).setStart(w.node,w.offset),O.removeAllRanges(),x>E?(O.addRange(S),O.extend(A.node,A.offset)):(S.setEnd(A.node,A.offset),O.addRange(S))))),S=[];for(O=T;O=O.parentNode;)1===O.nodeType&&S.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"===typeof T.focus&&T.focus(),T=0;T<S.length;T++)(O=S[T]).element.scrollLeft=O.left,O.element.scrollTop=O.top}Ci=null,Ln=!!Ai,Ai=null,e.current=n,va=r;do{try{for(T=i;null!==va;){var k=va.effectTag;if(36&k){var _=va.alternate;switch(O=T,(S=va).tag){case 0:case 11:case 15:$s(Eo,wo,S);break;case 1:var D=S.stateNode;if(4&S.effectTag)if(null===_)D.componentDidMount();else{var R=S.elementType===S.type?_.memoizedProps:yr(S.type,_.memoizedProps);D.componentDidUpdate(R,_.memoizedState,D.__reactInternalSnapshotBeforeUpdate)}var B=S.updateQueue;null!==B&&jr(0,B,D);break;case 3:var L=S.updateQueue;if(null!==L){if(x=null,null!==S.child)switch(S.child.tag){case 5:x=S.child.stateNode;break;case 1:x=S.child.stateNode}jr(0,L,x)}break;case 5:var M=S.stateNode;null===_&&4&S.effectTag&&(O=M,Fi(S.type,S.memoizedProps)&&O.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw s(Error(163))}}if(128&k){var N=va.ref;if(null!==N){var $=va.stateNode;switch(va.tag){case 5:var I=$;break;default:I=$}"function"===typeof N?N(I):N.current=I}}512&k&&(wa=!0),va=va.nextEffect}}catch(j){if(null===va)throw s(Error(330));Ya(va,j),va=va.nextEffect}}while(null!==va);va=null,rr(),sa=o}else e.current=n;if(wa)wa=!1,Aa=e,Fa=i,Ca=t;else for(va=r;null!==va;)t=va.nextEffect,va.nextEffect=null,va=t;if(0!==(t=e.firstPendingTime)?La(e,k=vr(k=ka(),t),t):Ea=null,"function"===typeof ec&&ec(n.stateNode,i),1073741823===t?e===Oa?Sa++:(Sa=0,Oa=e):Sa=0,ya)throw ya=!1,e=ba,ba=null,e;return(sa&Js)!==Xs?null:(gr(),null)}function Ka(){if(null===Aa)return!1;var e=Aa,t=Fa,n=Ca;return Aa=null,Fa=0,Ca=90,dr(97<n?97:n,qa.bind(null,e,t))}function qa(e){if((sa&(Zs|ea))!==Xs)throw s(Error(331));var t=sa;for(sa|=ea,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:$s(Co,mo,n),$s(mo,Ao,n)}}catch(i){if(null===e)throw s(Error(330));Ya(e,i)}n=e.nextEffect,e.nextEffect=null,e=n}return sa=t,gr(),!0}function Qa(e,t,n){Lr(e,t=Gs(e,t=Bs(n,t),1073741823)),null!==(e=Ba(e,1073741823))&&La(e,99,1073741823)}function Ya(e,t){if(3===e.tag)Qa(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Qa(n,e,t);break}if(1===n.tag){var i=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof i.componentDidCatch&&(null===Ea||!Ea.has(i))){Lr(n,e=Ks(n,e=Bs(t,e),1073741823)),null!==(n=Ba(n,1073741823))&&La(n,99,1073741823);break}}n=n.return}}function Xa(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),aa===e&&la===n?ua===ra||ua===ia&&1073741823===ha&&lr()-ga<ma?Pa(e,la):pa=!0:e.lastPendingTime<n||(0!==(t=e.pingTime)&&t<n||(e.pingTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),La(e,t=vr(t=ka(),n),n)))}function Ja(e,t){var n=e.stateNode;null!==n&&n.delete(t),n=vr(n=ka(),t=_a(n,e,null)),null!==(e=Ba(e,t))&&La(e,n,t)}var Za=void 0;Za=function(e,t,n){var i=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||Mi.current)hs=!0;else if(i<n){switch(hs=!1,t.tag){case 3:Es(t),ls();break;case 5:if(co(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Ii(t.type)&&zi(t);break;case 4:so(t,t.stateNode.containerInfo);break;case 10:Fr(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(i=t.child.childExpirationTime)&&i>=n?As(e,t,n):(Ri(po,po.current&uo),null!==(t=Ts(e,t,n))?t.sibling:null);Ri(po,po.current&uo);break;case 19:if(i=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(i)return Fs(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),Ri(po,po.current),!i)return null}return Ts(e,t,n)}}else hs=!1;switch(t.expirationTime=0,t.tag){case 2:if(i=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=$i(t,Li.current),Or(t,n),r=Po(null,t,i,e,r,n),t.effectTag|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof){if(t.tag=1,Vo(),Ii(i)){var o=!0;zi(t)}else o=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null;var a=i.getDerivedStateFromProps;"function"===typeof a&&zr(t,i,a,e),r.updater=Wr,t.stateNode=r,r._reactInternalFiber=t,qr(t,i,e,n),t=bs(null,t,i,!0,o,n)}else t.tag=0,ds(null,t,r,n),t=t.child;return t;case 16:switch(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(r),t.type=r,o=t.tag=function(e){if("function"===typeof e)return rc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===it)return 11;if(e===st)return 14}return 2}(r),e=yr(r,e),o){case 0:t=vs(null,t,r,e,n);break;case 1:t=ys(null,t,r,e,n);break;case 11:t=fs(null,t,r,e,n);break;case 14:t=ps(null,t,r,yr(r.type,e),i,n);break;default:throw s(Error(306),r,"")}return t;case 0:return i=t.type,r=t.pendingProps,vs(e,t,i,r=t.elementType===i?r:yr(i,r),n);case 1:return i=t.type,r=t.pendingProps,ys(e,t,i,r=t.elementType===i?r:yr(i,r),n);case 3:if(Es(t),null===(i=t.updateQueue))throw s(Error(282));return r=null!==(r=t.memoizedState)?r.element:null,Ir(t,i,t.pendingProps,null,n),(i=t.memoizedState.element)===r?(ls(),t=Ts(e,t,n)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(ns=xi(t.stateNode.containerInfo.firstChild),ts=t,r=is=!0),r?(t.effectTag|=2,t.child=eo(t,null,i,n)):(ds(e,t,i,n),ls()),t=t.child),t;case 5:return co(t),null===e&&ss(t),i=t.type,r=t.pendingProps,o=null!==e?e.memoizedProps:null,a=r.children,Ti(i,r)?a=null:null!==o&&Ti(i,o)&&(t.effectTag|=16),ms(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ds(e,t,a,n),t=t.child),t;case 6:return null===e&&ss(t),null;case 13:return As(e,t,n);case 4:return so(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Zr(t,null,i,n):ds(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,fs(e,t,i,r=t.elementType===i?r:yr(i,r),n);case 7:return ds(e,t,t.pendingProps,n),t.child;case 8:case 12:return ds(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,a=t.memoizedProps,Fr(t,o=r.value),null!==a){var c=a.value;if(0===(o=tn(c,o)?0:0|("function"===typeof i._calculateChangedBits?i._calculateChangedBits(c,o):1073741823))){if(a.children===r.children&&!Mi.current){t=Ts(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){a=c.child;for(var u=l.firstContext;null!==u;){if(u.context===i&&0!==(u.observedBits&o)){1===c.tag&&((u=Rr(n,null)).tag=2,Lr(c,u)),c.expirationTime<n&&(c.expirationTime=n),null!==(u=c.alternate)&&u.expirationTime<n&&(u.expirationTime=n),Sr(c.return,n),l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else a=10===c.tag&&c.type===t.type?null:c.child;if(null!==a)a.return=c;else for(a=c;null!==a;){if(a===t){a=null;break}if(null!==(c=a.sibling)){c.return=a.return,a=c;break}a=a.return}c=a}}ds(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=(o=t.pendingProps).children,Or(t,n),i=i(r=xr(r,o.unstable_observedBits)),t.effectTag|=1,ds(e,t,i,n),t.child;case 14:return o=yr(r=t.type,t.pendingProps),ps(e,t,r,o=yr(r.type,o),i,n);case 15:return gs(e,t,t.type,t.pendingProps,i,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:yr(i,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Ii(i)?(e=!0,zi(t)):e=!1,Or(t,n),Gr(t,i,r),qr(t,i,r,n),bs(null,t,i,!0,e,n);case 19:return Fs(e,t,n)}throw s(Error(156))};var ec=null,tc=null;function nc(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function ic(e,t,n,i){return new nc(e,t,n,i)}function rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function oc(e,t){var n=e.alternate;return null===n?((n=ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sc(e,t,n,i,r,o){var a=2;if(i=e,"function"===typeof e)rc(e)&&(a=1);else if("string"===typeof e)a=5;else e:switch(e){case Xe:return ac(n.children,r,o,t);case nt:a=8,r|=7;break;case Je:a=8,r|=1;break;case Ze:return(e=ic(12,n,t,8|r)).elementType=Ze,e.type=Ze,e.expirationTime=o,e;case rt:return(e=ic(13,n,t,r)).type=rt,e.elementType=rt,e.expirationTime=o,e;case ot:return(e=ic(19,n,t,r)).elementType=ot,e.expirationTime=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case et:a=10;break e;case tt:a=9;break e;case it:a=11;break e;case st:a=14;break e;case at:a=16,i=null;break e}throw s(Error(130),null==e?e:typeof e,"")}return(t=ic(a,n,t,r)).elementType=e,t.type=i,t.expirationTime=o,t}function ac(e,t,n,i){return(e=ic(7,e,i,t)).expirationTime=n,e}function cc(e,t,n){return(e=ic(6,e,null,t)).expirationTime=n,e}function lc(e,t,n){return(t=ic(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uc(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=this.firstBatch=null,this.pingTime=this.lastPendingTime=this.firstPendingTime=this.callbackExpirationTime=0}function hc(e,t,n){return e=new uc(e,t,n),t=ic(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e}function dc(e,t,n,i,r,o){var a=t.current;e:if(n){t:{if(2!==sn(n=n._reactInternalFiber)||1!==n.tag)throw s(Error(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(Ii(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw s(Error(171))}if(1===n.tag){var l=n.type;if(Ii(l)){n=Ui(n,l,c);break e}}n=c}else n=Bi;return null===t.context?t.context=n:t.pendingContext=n,t=o,(r=Rr(i,r)).payload={element:e},null!==(t=void 0===t?null:t)&&(r.callback=t),Lr(a,r),Ra(a,i),i}function fc(e,t,n,i){var r=t.current,o=ka(),s=Vr.suspense;return dc(e,t,n,r=_a(o,r,s),s,i)}function pc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function gc(e){var t=1073741821-25*(1+((1073741821-ka()+500)/25|0));t<=Da&&--t,this._expirationTime=Da=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function mc(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function vc(e,t,n){this._internalRoot=hc(e,t,n)}function yc(e,t){this._internalRoot=hc(e,2,t)}function bc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ec(e,t,n,i,r){var o=n._reactRootContainer,s=void 0;if(o){if(s=o._internalRoot,"function"===typeof r){var a=r;r=function(){var e=pc(s);a.call(e)}}fc(t,s,e,r)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new vc(e,0,t)}(n,i),s=o._internalRoot,"function"===typeof r){var c=r;r=function(){var e=pc(s);c.call(e)}}ja(function(){fc(t,s,e,r)})}return pc(s)}function wc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!bc(t))throw s(Error(200));return function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ye,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Oe=function(e,t,n){switch(t){case"input":if(Tt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=j(i);if(!r)throw s(Error(90));He(i),Tt(i,r)}}}break;case"textarea":oi(e,n);break;case"select":null!=(t=n.value)&&ni(e,!!n.multiple,t,!1)}},gc.prototype.render=function(e){if(!this._defer)throw s(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,i=new mc;return dc(e,t,null,n,null,i._onCommit),i},gc.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},gc.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw s(Error(251));if(this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var i=null,r=t;r!==this;)i=r,r=r._next;if(null===i)throw s(Error(251));i._next=r._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=n,(sa&(Zs|ea))!==Xs)throw s(Error(253));pr(Va.bind(null,e,t)),gr(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},gc.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},mc.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},mc.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];if("function"!==typeof n)throw s(Error(191),n);n()}}},yc.prototype.render=vc.prototype.render=function(e,t){var n=this._internalRoot,i=new mc;return null!==(t=void 0===t?null:t)&&i.then(t),fc(e,n,null,i._onCommit),i},yc.prototype.unmount=vc.prototype.unmount=function(e){var t=this._internalRoot,n=new mc;return null!==(e=void 0===e?null:e)&&n.then(e),fc(null,t,null,n._onCommit),n},yc.prototype.createBatch=function(){var e=new gc(this),t=e._expirationTime,n=this._internalRoot,i=n.firstBatch;if(null===i)n.firstBatch=e,e._next=null;else{for(n=null;null!==i&&i._expirationTime>=t;)n=i,i=i._next;e._next=i,null!==n&&(n._next=e)}return e},Be=$a,Le=Ia,Me=Na,Ne=function(e,t){var n=sa;sa|=2;try{return e(t)}finally{(sa=n)===Xs&&gr()}};var Ac={createPortal:wc,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw s(Error(188));throw s(Error(268),Object.keys(e))}e=null===(e=cn(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!bc(t))throw s(Error(200));return Ec(null,e,t,!0,n)},render:function(e,t,n){if(!bc(t))throw s(Error(200));return Ec(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,i){if(!bc(n))throw s(Error(200));if(null==e||void 0===e._reactInternalFiber)throw s(Error(38));return Ec(e,t,n,!1,i)},unmountComponentAtNode:function(e){if(!bc(e))throw s(Error(40));return!!e._reactRootContainer&&(ja(function(){Ec(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return wc.apply(void 0,arguments)},unstable_batchedUpdates:$a,unstable_interactiveUpdates:function(e,t,n,i){return Na(),Ia(e,t,n,i)},unstable_discreteUpdates:Ia,unstable_flushDiscreteUpdates:Na,flushSync:function(e,t){if((sa&(Zs|ea))!==Xs)throw s(Error(187));var n=sa;sa|=1;try{return dr(99,e.bind(null,t))}finally{sa=n,gr()}},unstable_createRoot:function(e,t){if(!bc(e))throw s(Error(299),"unstable_createRoot");return new yc(e,null!=t&&!0===t.hydrate)},unstable_createSyncRoot:function(e,t){if(!bc(e))throw s(Error(299),"unstable_createRoot");return new vc(e,1,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=sa;sa|=1;try{dr(99,e)}finally{(sa=t)===Xs&&gr()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[$,I,j,D.injectEventPluginsByName,d,H,function(e){O(e,W)},De,Re,jn,_,Ka,{current:!1}]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);ec=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(i){}},tc=function(e){try{t.onCommitFiberUnmount(n,e)}catch(i){}}}catch(i){}})(r({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ge.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=cn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:N,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"});var Cc={default:Ac},Fc=Cc&&Ac||Cc;e.exports=Fc.default||Fc},function(e,t,n){"use strict";e.exports=n(134)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=void 0,r=void 0,o=void 0,s=void 0,a=void 0;if(t.unstable_now=void 0,t.unstable_forceFrameRate=void 0,"undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,l=null,u=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(i){throw setTimeout(e,0),i}};t.unstable_now=function(){return Date.now()},i=function(e){null!==c?setTimeout(i,0,e):(c=e,setTimeout(u,0))},r=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},s=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var h=window.performance,d=window.Date,f=window.setTimeout,p=window.clearTimeout,g=window.requestAnimationFrame,m=window.cancelAnimationFrame;"undefined"!==typeof console&&("function"!==typeof g&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),t.unstable_now="object"===typeof h&&"function"===typeof h.now?function(){return h.now()}:function(){return d.now()};var v=!1,y=null,b=-1,E=-1,w=33.33,A=-1,C=-1,F=0,T=!1;s=function(){return t.unstable_now()>=F},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):0<e?(w=Math.floor(1e3/e),T=!0):(w=33.33,T=!1)};var S=function(){if(null!==y){var e=t.unstable_now(),n=0<F-e;try{y(n,e)||(y=null)}catch(i){throw x.postMessage(null),i}}},O=new MessageChannel,x=O.port2;O.port1.onmessage=S;i=function(e){y=e,v||(v=!0,g(function(e){!function e(n){if(null===y)C=A=-1,v=!1;else{v=!0,g(function(t){p(b),e(t)});if(b=f(function e(){F=t.unstable_now()+w/2,S(),b=f(e,3*w)},3*w),-1!==A&&.1<n-A){var i=n-A;!T&&-1!==C&&i<w&&C<w&&(8.33>(w=i<C?C:i)&&(w=8.33)),C=i}A=n,F=n+w,x.postMessage(null)}}(e)}))},r=function(e,n){E=f(function(){e(t.unstable_now())},n)},o=function(){p(E),E=-1}}var k=null,_=null,D=null,R=3,B=!1,L=!1,M=!1;function N(e,t){var n=e.next;if(n===e)k=null;else{e===k&&(k=n);var i=e.previous;i.next=n,n.previous=i}e.next=e.previous=null,n=e.callback,i=R;var r=D;R=e.priorityLevel,D=e;try{var o=e.expirationTime<=t;switch(R){case 1:var s=n(o);break;case 2:case 3:case 4:s=n(o);break;case 5:s=n(o)}}catch(a){throw a}finally{R=i,D=r}if("function"===typeof s)if(t=e.expirationTime,e.callback=s,null===k)k=e.next=e.previous=e;else{s=null,o=k;do{if(t<=o.expirationTime){s=o;break}o=o.next}while(o!==k);null===s?s=k:s===k&&(k=e),(t=s.previous).next=s.previous=e,e.next=s,e.previous=t}}function $(e){if(null!==_&&_.startTime<=e)do{var t=_,n=t.next;if(t===n)_=null;else{_=n;var i=t.previous;i.next=n,n.previous=i}t.next=t.previous=null,V(t,t.expirationTime)}while(null!==_&&_.startTime<=e)}function I(e){M=!1,$(e),L||(null!==k?(L=!0,i(j)):null!==_&&r(I,_.startTime-e))}function j(e,n){L=!1,M&&(M=!1,o()),$(n),B=!0;try{if(e){if(null!==k)do{N(k,n),$(n=t.unstable_now())}while(null!==k&&!s())}else for(;null!==k&&k.expirationTime<=n;)N(k,n),$(n=t.unstable_now());return null!==k||(null!==_&&r(I,_.startTime-n),!1)}finally{B=!1}}function P(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}function V(e,t){if(null===k)k=e.next=e.previous=e;else{var n=null,i=k;do{if(t<i.expirationTime){n=i;break}i=i.next}while(i!==k);null===n?n=k:n===k&&(k=e),(t=n.previous).next=n.previous=e,e.next=n,e.previous=t}}var U=a;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,s){var a=t.unstable_now();if("object"===typeof s&&null!==s){var c=s.delay;c="number"===typeof c&&0<c?a+c:a,s="number"===typeof s.timeout?s.timeout:P(e)}else s=P(e),c=a;if(e={callback:n,priorityLevel:e,startTime:c,expirationTime:s=c+s,next:null,previous:null},c>a){if(s=c,null===_)_=e.next=e.previous=e;else{n=null;var l=_;do{if(s<l.startTime){n=l;break}l=l.next}while(l!==_);null===n?n=_:n===_&&(_=e),(s=n.previous).next=n.previous=e,e.next=n,e.previous=s}null===k&&_===e&&(M?o():M=!0,r(I,c-a))}else V(e,s),L||B||(L=!0,i(j));return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(e===t)e===k?k=null:e===_&&(_=null);else{e===k?k=t:e===_&&(_=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_shouldYield=function(){var e=t.unstable_now();return $(e),null!==D&&null!==k&&k.startTime<=e&&k.expirationTime<D.expirationTime||s()},t.unstable_requestPaint=U,t.unstable_continueExecution=function(){L||B||(L=!0,i(j))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return k}},,function(e,t,n){"use strict";var i=n(63),r=n(91);Object.defineProperty(t,"__esModule",{value:!0});var o=n(44),s=n(92),a=n(76),c=n(148),l=n(149),u=n(150),h=n(93),d=function(){function e(){i(this,e)}return r(e,null,[{key:"javascript",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"browser",n=arguments.length>2?arguments[2]:void 0,i=e.nodes.map(u.resolveTypeFromRoot),r=a.resolveValueTypes(e.nodes),d="export const AllTypesProps = {\n".concat(e.nodes.map(c.resolvePropTypeFromRoot).filter(function(e){return e}).join(",\n"),"\n}"),f="export const ReturnTypes = {\n".concat(e.nodes.map(l.resolveReturnFromRoot).filter(function(e){return e}).join(",\n"),"\n}"),p={queries:e.nodes.filter(function(e){return e.type.operations&&e.type.operations.find(function(e){return e===o.OperationType.query})}).map(function(e){return e.args?e.args.map(function(e){return e.name}):[]}).reduce(function(e,t){return e.concat(t)},[]),mutations:e.nodes.filter(function(e){return e.type.operations&&e.type.operations.find(function(e){return e===o.OperationType.mutation})}).map(function(e){return e.args?e.args.map(function(e){return e.name}):[]}).reduce(function(e,t){return e.concat(t)},[]),subscriptions:e.nodes.filter(function(e){return e.type.operations&&e.type.operations.find(function(e){return e===o.OperationType.subscription})}).map(function(e){return e.args?e.args.map(function(e){return e.name}):[]}).reduce(function(e,t){return e.concat(t)},[])},g=s.bodyJavascript(t,p);return{javascript:d.concat("\n\n").concat(f).concat(g).concat(n?"\n\n":"").concat(n?"export const Gql = Chain('".concat(n,"')"):""),definitions:i.join("\n\n").concat("\n\n").concat(r).concat("\n\n").concat(h.constantTypesTypescript).concat(s.generateOperationsJavascript(p))}}},{key:"resolveTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"browser",n=arguments.length>2?arguments[2]:void 0,i=e.nodes.map(u.resolveTypeFromRoot),r=a.resolveValueTypes(e.nodes),s="/* tslint:disable */\n\n",d="export const AllTypesProps: Record<string,any> = {\n".concat(e.nodes.map(c.resolvePropTypeFromRoot).filter(function(e){return e}).join(",\n"),"\n}"),f="export const ReturnTypes: Record<string,any> = {\n".concat(e.nodes.map(l.resolveReturnFromRoot).filter(function(e){return e}).join(",\n"),"\n}"),p=h.bodyTypeScript(t,{queries:e.nodes.filter(function(e){return e.type.operations&&e.type.operations.find(function(e){return e===o.OperationType.query})}).map(function(e){return e.args?e.args.map(function(e){return e.name}):[]}).reduce(function(e,t){return e.concat(t)},[]),mutations:e.nodes.filter(function(e){return e.type.operations&&e.type.operations.find(function(e){return e===o.OperationType.mutation})}).map(function(e){return e.args?e.args.map(function(e){return e.name}):[]}).reduce(function(e,t){return e.concat(t)},[]),subscriptions:e.nodes.filter(function(e){return e.type.operations&&e.type.operations.find(function(e){return e===o.OperationType.subscription})}).map(function(e){return e.args?e.args.map(function(e){return e.name}):[]}).reduce(function(e,t){return e.concat(t)},[])});return s.concat(d).concat("\n\n").concat(f).concat("\n\n").concat(r).concat("\n\n").concat(i.join("\n\n")).concat(p).concat(n?"\n\n":"").concat(n?"export const Gql = Chain('".concat(n,"')"):"")}}]),e}();t.TreeToTS=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.javascriptFunctions=function(e){return"\n  export const ScalarResolver = (scalar, value) => {\n    switch (scalar) {\n      case 'String':\n        return `\"${value}\"`;\n      case 'Int':\n        return `${value}`;\n      case 'Float':\n        return `${value}`;\n      case 'Boolean':\n        return `${value}`;\n      case 'ID':\n        return `\"${value}\"`;\n      case 'enum':\n        return `${value}`;\n      case 'scalar':\n        return `${value}`;\n      default:\n        return false;\n    }\n  };\n\n  export const TypesPropsResolver = ({\n    value,\n    type,\n    name,\n    key,\n    blockArrays\n  }) => {\n    if (value === null) {\n      return `null`;\n    }\n    let resolvedValue = AllTypesProps[type][name];\n    if (key) {\n      resolvedValue = resolvedValue[key];\n    }\n    const typeResolved = resolvedValue.type;\n    const isArray = resolvedValue.array;\n    if (isArray && !blockArrays) {\n      return `[${value\n        .map((v) => TypesPropsResolver({ value: v, type, name, key, blockArrays: true }))\n        .join(',')}]`;\n    }\n    const reslovedScalar = ScalarResolver(typeResolved, value);\n    if (!reslovedScalar) {\n      const resolvedType = AllTypesProps[typeResolved];\n      if (typeof resolvedType === 'object') {\n        const argsKeys = Object.keys(resolvedType);\n        return `{${argsKeys\n          .filter((ak) => value[ak] !== undefined)\n          .map(\n            (ak) => `${ak}:${TypesPropsResolver({ value: value[ak], type: typeResolved, name: ak })}`\n          )}}`;\n      }\n      return ScalarResolver(AllTypesProps[typeResolved], value);\n    }\n    return reslovedScalar;\n  };\n\n  const isArrayFunction = (\n    parent,\n    a\n  ) => {\n    const [values, r] = a;\n    const [mainKey, key, ...keys] = parent;\n    const keyValues = Object.keys(values);\n\n    if (!keys.length) {\n        return keyValues.length > 0\n          ? `(${keyValues\n              .map(\n                (v) =>\n                  `${v}:${TypesPropsResolver({\n                    value: values[v],\n                    type: mainKey,\n                    name: key,\n                    key: v\n                  })}`\n              )\n              .join(',')})${r ? traverseToSeekArrays(parent, r) : ''}`\n          : traverseToSeekArrays(parent, r);\n      }\n\n    const [typeResolverKey] = keys.splice(keys.length - 1, 1);\n    let valueToResolve = ReturnTypes[mainKey][key];\n    for (const k of keys) {\n      valueToResolve = ReturnTypes[valueToResolve][k];\n    }\n\n    const argumentString =\n      keyValues.length > 0\n        ? `(${keyValues\n            .map(\n              (v) =>\n                `${v}:${TypesPropsResolver({\n                  value: values[v],\n                  type: valueToResolve,\n                  name: typeResolverKey,\n                  key: v\n                })}`\n            )\n            .join(',')})${r ? traverseToSeekArrays(parent, r) : ''}`\n        : traverseToSeekArrays(parent, r);\n    return argumentString;\n  };\n\n  const resolveKV = (k, v) =>\n    typeof v === 'boolean' ? k : typeof v === 'object' ? `${k}{${objectToTree(v)}}` : `${k}${v}`;\n\n  const objectToTree = (o) =>\n    `{${Object.keys(o).map((k) => `${resolveKV(k, o[k])}`).join(' ')}}`;\n\nconst traverseToSeekArrays = (parent, a) => {\n  if (!a) return '';\n  if (Object.keys(a).length === 0) {\n    return '';\n  }\n  let b = {};\n  if (Array.isArray(a)) {\n    return isArrayFunction([...parent], a);\n  } else {\n    if (typeof a === 'object') {\n      Object.keys(a).map((k) => {\n        if (k === '__alias') {\n          Object.keys(a[k]).map((aliasKey) => {\n            const aliasOperations = a[k][aliasKey];\n            const aliasOperationName = Object.keys(aliasOperations)[0];\n            const aliasOperation = aliasOperations[aliasOperationName];\n            b[\n              `${aliasOperationName}__alias__${aliasKey}: ${aliasOperationName}`\n            ] = traverseToSeekArrays([...parent, aliasOperationName], aliasOperation);\n          });\n        } else {\n          b[k] = traverseToSeekArrays([...parent, k], a[k]);\n        }\n      });\n    } else {\n      return '';\n    }\n  }\n  return objectToTree(b);\n};\n\n  const buildQuery = (type, a) =>\n    traverseToSeekArrays([type], a).replace(/\\\"([^{^,^\\n^\\\"]*)\\\":([^{^,^\\n^\\\"]*)/g, '$1:$2');\n\n  const queryConstruct = (t) => (o) => `${t.toLowerCase()}${buildQuery(t, o)}`;\n\n  const fullChainConstruct = (options) => (t) => (o) => apiFetch(options, queryConstruct(t)(o));\n  const seekForAliases = (o) => {\n    if (typeof o === 'object' && o) {\n      const keys = Object.keys(o);\n      if (keys.length < 1) {\n        return;\n      }\n      keys.forEach((k) => {\n        const value = o[k];\n        if (k.indexOf('__alias__') !== -1) {\n          const [operation, alias] = k.split('__alias__');\n          o[alias] = {\n            [operation]: value\n          };\n          delete o[k];\n        } else {\n          if (Array.isArray(value)) {\n            value.forEach(seekForAliases);\n          } else {\n            if (typeof value === 'object') {\n              seekForAliases(value);\n            }\n          }\n        }\n      });\n    }\n  };\n  ".concat(n(138)("./".concat(e,"/fetchFunction")).default,"\n    ")}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="\nconst apiFetch = (options, query) => {\n    const fetchFunction = fetch;\n    let queryString = query;\n    let fetchOptions = options[1] || {};\n    if (fetchOptions.method && fetchOptions.method === 'GET') {\n      queryString = encodeURIComponent(query);\n      return fetchFunction(`${options[0]}?query=${queryString}`, fetchOptions)\n        .then((response) => response.json())\n        .then((response) => {\n          if (response.errors) {\n            throw new GraphQLError(response);\n          }\n          seekForAliases(response.data)\n          return response.data;\n        });\n    }\n    return fetchFunction(`${options[0]}`, {\n      body: JSON.stringify({ query: queryString }),\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json'\n      },\n      ...fetchOptions\n    })\n      .then((response) => response.json())\n      .then((response) => {\n        if (response.errors) {\n          throw new GraphQLError(response);\n        }\n        seekForAliases(response.data)\n        return response.data;\n      });\n  };"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="\nconst apiFetch = (options, query, name) => {\n    let fetchFunction;\n    let queryString = query;\n    let fetchOptions = options[1] || {};\n    try {\n        fetchFunction = require('node-fetch');\n    } catch (error) {\n        throw new Error(\"Please install 'node-fetch' to use zeus in nodejs environment\");\n    }\n    if (fetchOptions.method && fetchOptions.method === 'GET') {\n      try {\n        queryString = require('querystring').stringify(query);\n      } catch (error) {\n        throw new Error(\"Something gone wrong 'querystring' is a part of nodejs environment\");\n      }\n      return fetchFunction(`${options[0]}?query=${queryString}`, fetchOptions)\n        .then((response) => response.json())\n        .then((response) => {\n          if (response.errors) {\n            throw new GraphQLError(response);\n          }\n          seekForAliases(response.data)\n          return response.data;\n        });\n    }\n    return fetchFunction(`${options[0]}`, {\n      body: JSON.stringify({ query: queryString }),\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json'\n      },\n      ...fetchOptions\n    })\n      .then((response) => response.json())\n      .then((response) => {\n        if (response.errors) {\n          throw new GraphQLError(response);\n        }\n        seekForAliases(response.data)\n        return response.data;\n      });\n  };"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphqlErrorJavascript='\nexport class GraphQLError extends Error {\n    constructor(response) {\n      super("");\n      console.error(response);\n    }\n    toString() {\n      return "GraphQL Response Error";\n    }\n  }\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(76),r=function(e,t){return"".concat(e,": {\n").concat(t.map(function(t){return function(e,t){return"".concat(t,": ApiFieldToGraphQL<").concat(i.VALUETYPES,'["').concat(e,"\"]['").concat(t,"'],").concat(e,"['").concat(t,"']>")}(e,t)}).join(",\n\t"),"\n}")},o=function(e){return"".concat(e,": (o: GraphQLReturner<").concat(i.VALUETYPES,'["').concat(e,'"]>) => string')},s=function(e){return"".concat(e,": (o:any) => State<").concat(e,">")};t.generateOperationsJavascript=function(e){return"\nexport declare function Chain(\n  ...options: fetchOptions\n):{\n  ".concat(function(e){e.queries;var t=e.mutations,n=e.subscriptions,r=[];return r.push("Query: OperationToGraphQL<".concat(i.VALUETYPES,'["Query"],Query>')),t&&t.length&&r.push("Mutation: OperationToGraphQL<".concat(i.VALUETYPES,'["Mutation"],Mutation>')),n&&n.length&&r.push("Subscription: OperationToGraphQL<".concat(i.VALUETYPES,'["Subscription"],Subscription>')),r}(e),"\n}\n\nexport declare function Api(\n  ...options: fetchOptions\n):{\n  ").concat(function(e){var t=e.queries,n=e.mutations,i=e.subscriptions,o=[];return o.push(r("Query",t)),n&&n.length&&o.push(r("Mutation",n)),i&&i.length&&o.push(r("Subscription",i)),o}(e),"\n}\n\nexport declare const Zeus: {\n  ").concat(function(e){e.queries;var t=e.mutations,n=e.subscriptions,i=[];return i.push(o("Query")),t&&t.length&&i.push(o("Mutation")),n&&n.length&&i.push(o("Subscription")),i}(e),"\n}\n\nexport declare const Cast: {\n  ").concat(function(e){e.queries;var t=e.mutations,n=e.subscriptions,i=[];return i.push(s("Query")),t&&t.length&&i.push(s("Mutation")),n&&n.length&&i.push(s("Subscription")),i}(e),"\n}\n")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.array="array",e.required="required",e.arrayRequired="arrayRequired"}(t.Options||(t.Options={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.skip="skip",e.include="include",e.deprecated="deprecated"}(t.BuiltInDirectives||(t.BuiltInDirectives={}))},function(e,t,n){"use strict";var i,r,o=n(146);Object.defineProperty(t,"__esModule",{value:!0});var s,a,c=n(44);!function(e){e.type="type",e.enum="enum",e.interface="interface",e.input="input",e.scalar="scalar",e.union="union"}(s=t.TypeDefinitionDisplayStrings||(t.TypeDefinitionDisplayStrings={})),function(e){e.directive="directive",e.schema="schema",e.definition="definition",e.field="field",e.member="member"}(a=t.TypeSystemDefinitionDisplayStrings||(t.TypeSystemDefinitionDisplayStrings={})),t.TypeDefinitionDisplayMap=(o(i={},c.TypeDefinition.ObjectTypeDefinition,s.type),o(i,c.TypeDefinition.EnumTypeDefinition,s.enum),o(i,c.TypeDefinition.InterfaceTypeDefinition,s.interface),o(i,c.TypeDefinition.InputObjectTypeDefinition,s.input),o(i,c.TypeDefinition.ScalarTypeDefinition,s.scalar),o(i,c.TypeDefinition.UnionTypeDefinition,s.union),i),t.TypeSystemDefinitionDisplayMap=(o(r={},c.TypeSystemDefinition.DirectiveDefinition,a.directive),o(r,c.TypeSystemDefinition.FieldDefinition,a.field),o(r,c.TypeSystemDefinition.SchemaDefinition,a.schema),o(r,c.TypeSystemDefinition.TypeDefinition,a.definition),o(r,c.TypeSystemDefinition.UnionMemberDefinition,a.member),r)},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(92),r=function(e){return"".concat(e,": (o) =>\n    fullChainConstruct(options)('").concat(e,"')(o).then(\n      (response) => response\n    )")},o=function(e,t){return"".concat(e,": {\n      ").concat(t.map(function(t){return"".concat(t,": (o) =>\n      fullChainConstruct(options)('").concat(e,"')({\n        ").concat(t,": o\n      }).then((response) => response.").concat(t,")")}).join(",\n"),"\n  }")},s=function(e){return"".concat(e,": (o) => queryConstruct('").concat(e,"')(o)")},a=function(e){return"".concat(e,": (o) => o")};t.bodyJavascript=function(e,t){var n=t.queries,c=t.mutations,l=t.subscriptions;return"\n".concat(i.graphqlErrorJavascript,"\n").concat(i.javascriptFunctions(e),"\n\n  export const Chain = (...options) => ({\n    ").concat(function(e){e.queries;var t=e.mutations,n=e.subscriptions,i=[];return i.push(r("Query")),t&&t.length&&i.push(r("Mutation")),n&&n.length&&i.push(r("Subscription")),i}({queries:n,mutations:c,subscriptions:l}).join(",\n"),"\n  });\n  export const Api = (...options) => ({\n    ").concat(function(e){var t=e.queries,n=e.mutations,i=e.subscriptions,r=[];return r.push(o("Query",t)),n&&n.length&&r.push(o("Mutation",n)),i&&i.length&&r.push(o("Subscription",i)),r}({queries:n,mutations:c,subscriptions:l}).join(",\n"),"\n  });\n  export const Zeus = {\n    ").concat(function(e){e.queries;var t=e.mutations,n=e.subscriptions,i=[];return i.push(s("Query")),t&&t.length&&i.push(s("Mutation")),n&&n.length&&i.push(s("Subscription")),i}({queries:n,mutations:c,subscriptions:l}).join(",\n"),"\n  };\n  export const Cast = {\n    ").concat(function(e){e.queries;var t=e.mutations,n=e.subscriptions,i=[];return i.push(a("Query")),t&&t.length&&i.push(a("Mutation")),n&&n.length&&i.push(a("Subscription")),i}({queries:n,mutations:c,subscriptions:l}).join(",\n"),"\n  };\n    ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(56),r=n(44),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\t\t\t",n=e.type.options,r=!(!n||!n.find(function(e){return e===i.Options.array})),o=!(!n||!n.find(function(e){return e===i.Options.arrayRequired})),s=!(!n||!n.find(function(e){return e===i.Options.required})),a="\n".concat(t,"\t");return"".concat(t).concat(e.name,":{").concat(a,'type:"').concat(e.type.name,'",').concat(a,"array:").concat(!!r,",").concat(a,"arrayRequired:").concat(!!o,",").concat(a,"required:").concat(!!s,"\n").concat(t,"}")};t.guessTheScalar=function(e){var t={Date:"Date",File:"File",Buffer:"Buffer"};return e in t?t[e]:void 0},t.resolvePropTypeFromRoot=function(e){return e.data.type===r.TypeDefinition.EnumTypeDefinition?"\t".concat(e.name,': "enum"'):e.data.type===r.TypeDefinition.ScalarTypeDefinition?"\t".concat(e.name,': "String"'):e.data.type===r.TypeDefinition.InputObjectTypeDefinition?"\t".concat(e.name,":{\n").concat(e.args.map(function(e){return o(e,"\t\t")}).join(",\n"),"\n\t}"):e.args&&0!==e.args.filter(function(e){return e.args&&e.args.length>0}).length?"\t".concat(e.name,":{\n").concat(e.args.filter(function(e){return e.args&&e.args.length}).map(function(e){return function(e){!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var t=e.args,n=e.name;return"\t\t".concat(n,":{\n").concat(t.map(function(e){return o(e)}).join(",\n"),"\n\t\t}")}(e)}).join(",\n"),"\n\t}"):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(44);t.resolveReturnFromRoot=function(e){if(e.data.type!==i.TypeDefinition.UnionTypeDefinition&&(e.data.type===i.TypeDefinition.ObjectTypeDefinition||e.data.type===i.TypeDefinition.InterfaceTypeDefinition)&&e.args)return"\t".concat(e.name,":{\n").concat(e.args.map(function(e){return function(e){!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var t=e.type,n=e.name;return"\t\t".concat(n,':"').concat(t.name,'"')}(e)}).join(",\n"),"\n\t}")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(56),r=n(44),o={Int:"number",Float:"number",Boolean:"boolean",ID:"string",String:"string"},s=function(e){return o[e]||e},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?"".concat(t,"/** ").concat(e," */\n"):""};t.resolveTypeFromRoot=function(e){return e.type.name===r.TypeDefinition.ScalarTypeDefinition?function(e){var t={Date:"Date",File:"File",Buffer:"Buffer"};return e in t?t[e]:void 0}(e.name)?"":"".concat(a(e.description),"export type ").concat(e.name," = any"):e.args&&e.args.length?e.data.type===r.TypeDefinition.UnionTypeDefinition?"".concat(a(e.description),"export type ").concat(e.name," = ").concat(e.args.map(function(e){return e.type.name}).join(" | ")):e.data.type===r.TypeDefinition.EnumTypeDefinition?"".concat(a(e.description),"export enum ").concat(e.name," {\n").concat(e.args.map(function(e){return"\t".concat(e.name,' = "').concat(e.name,'"')}).join(",\n"),"\n}"):"".concat(a(e.description),"export type ").concat(e.name,' = {\n\t__typename?: "').concat(e.name,'",\n').concat(e.args.map(function(e){return function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.type.options,o=t.args,c=!(!r||!r.find(function(e){return e===i.Options.array})),l=!(!r||!r.find(function(e){return e===i.Options.arrayRequired})),u=!(!r||!r.find(function(e){return e===i.Options.required})),h=function(e){return c?l?e:"".concat(e,"?"):u?e:"".concat(e,"?")},d=function(e){return c?u?"".concat(e,"[]"):"(".concat(e," | undefined)[]"):e},f=function(t){return n&&o&&o.length?"".concat(t,":(props:{").concat(o.map(function(t){return e(t,!1)}),"}) => "):h(t)+":"};return"".concat(a(t.description,"\t"),"\t").concat(f(t.name)).concat(d(s(t.type.name)))}(e)}).join(",\n"),"\n}"):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typescriptFunctions=function(e){return"\nexport const ScalarResolver = (scalar: string, value: any) => {\n  switch (scalar) {\n    case 'String':\n      return `\"${value}\"`;\n    case 'Int':\n      return `${value}`;\n    case 'Float':\n      return `${value}`;\n    case 'Boolean':\n      return `${value}`;\n    case 'ID':\n      return `\"${value}\"`;\n    case 'enum':\n      return `${value}`;\n    case 'scalar':\n      return `${value}`;\n    default:\n      return false;\n  }\n};\n\nexport const TypesPropsResolver = ({\n  value,\n  type,\n  name,\n  key,\n  blockArrays\n}: {\n  value: any;\n  type: string;\n  name: string;\n  key?: string;\n  blockArrays?: boolean;\n}): string => {\n  if (value === null) {\n    return `null`;\n  }\n  let resolvedValue = AllTypesProps[type][name];\n  if (key) {\n    resolvedValue = resolvedValue[key];\n  }\n  const typeResolved = resolvedValue.type;\n  const isArray: boolean = resolvedValue.array;\n  if (isArray && !blockArrays) {\n    return `[${value\n      .map((v: any) => TypesPropsResolver({ value: v, type, name, key, blockArrays: true }))\n      .join(',')}]`;\n  }\n  const reslovedScalar = ScalarResolver(typeResolved, value);\n  if (!reslovedScalar) {\n    const resolvedType = AllTypesProps[typeResolved];\n    if (typeof resolvedType === 'object') {\n      const argsKeys = Object.keys(resolvedType);\n      return `{${argsKeys\n        .filter((ak) => value[ak] !== undefined)\n        .map(\n          (ak) => `${ak}:${TypesPropsResolver({ value: value[ak], type: typeResolved, name: ak })}`\n        )}}`;\n    }\n    return ScalarResolver(AllTypesProps[typeResolved], value) as string;\n  }\n  return reslovedScalar;\n};\n\nconst isArrayFunction = (\n  parent: string[],\n  a: any[]\n) => {\n  const [values, r] = a;\n  const [mainKey, key, ...keys] = parent;\n  const keyValues = Object.keys(values);\n\n  if (!keys.length) {\n      return keyValues.length > 0\n        ? `(${keyValues\n            .map(\n              (v) =>\n                `${v}:${TypesPropsResolver({\n                  value: values[v],\n                  type: mainKey,\n                  name: key,\n                  key: v\n                })}`\n            )\n            .join(',')})${r ? traverseToSeekArrays(parent, r) : ''}`\n        : traverseToSeekArrays(parent, r);\n    }\n\n  const [typeResolverKey] = keys.splice(keys.length - 1, 1);\n  let valueToResolve = ReturnTypes[mainKey][key];\n  for (const k of keys) {\n    valueToResolve = ReturnTypes[valueToResolve][k];\n  }\n\n  const argumentString =\n    keyValues.length > 0\n      ? `(${keyValues\n          .map(\n            (v) =>\n              `${v}:${TypesPropsResolver({\n                value: values[v],\n                type: valueToResolve,\n                name: typeResolverKey,\n                key: v\n              })}`\n          )\n          .join(',')})${r ? traverseToSeekArrays(parent, r) : ''}`\n      : traverseToSeekArrays(parent, r);\n  return argumentString;\n};\n\nconst resolveKV = (k: string, v: boolean | string | { [x: string]: boolean | string }) =>\n  typeof v === 'boolean' ? k : typeof v === 'object' ? `${k}{${objectToTree(v)}}` : `${k}${v}`;\n\nconst objectToTree = (o: { [x: string]: boolean | string }): string =>\n  `{${Object.keys(o).map((k) => `${resolveKV(k, o[k])}`).join(' ')}}`;\n\nconst traverseToSeekArrays = (parent: string[], a?: any): string => {\n  if (!a) return '';\n  if (Object.keys(a).length === 0) {\n    return '';\n  }\n  let b: Record<string, any> = {};\n  if (Array.isArray(a)) {\n    return isArrayFunction([...parent], a);\n  } else {\n    if (typeof a === 'object') {\n      Object.keys(a).map((k) => {\n        if (k === '__alias') {\n          Object.keys(a[k]).map((aliasKey) => {\n            const aliasOperations = a[k][aliasKey];\n            const aliasOperationName = Object.keys(aliasOperations)[0];\n            const aliasOperation = aliasOperations[aliasOperationName];\n            b[\n              `${aliasOperationName}__alias__${aliasKey}: ${aliasOperationName}`\n            ] = traverseToSeekArrays([...parent, aliasOperationName], aliasOperation);\n          });\n        } else {\n          b[k] = traverseToSeekArrays([...parent, k], a[k]);\n        }\n      });\n    } else {\n      return '';\n    }\n  }\n  return objectToTree(b);\n};\n\nconst buildQuery = (type: string, a?: Record<any, any>) =>\n  traverseToSeekArrays([type], a).replace(/\\\"([^{^,^\\n^\\\"]*)\\\":([^{^,^\\n^\\\"]*)/g, '$1:$2');\n\nconst queryConstruct = (t: 'Query' | 'Mutation' | 'Subscription') => (o: Record<any, any>) => `${t.toLowerCase()}${buildQuery(t, o)}`;\n\nconst fullChainConstruct = (options: fetchOptions) => (t: 'Query' | 'Mutation' | 'Subscription') => (o: Record<any, any>) =>\n  apiFetch(options, queryConstruct(t)(o));\n\nconst seekForAliases = (o: any) => {\n  if (typeof o === 'object' && o) {\n    const keys = Object.keys(o);\n    if (keys.length < 1) {\n      return;\n    }\n    keys.forEach((k) => {\n      const value = o[k];\n      if (k.indexOf('__alias__') !== -1) {\n        const [operation, alias] = k.split('__alias__');\n        o[alias] = {\n          [operation]: value\n        };\n        delete o[k];\n      } else {\n        if (Array.isArray(value)) {\n          value.forEach(seekForAliases);\n        } else {\n          if (typeof value === 'object') {\n            seekForAliases(value);\n          }\n        }\n      }\n    });\n  }\n};\n\n".concat(n(152)("./".concat(e,"/fetchFunction")).default,"\n")}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="\nconst apiFetch = (options: fetchOptions, query: string) => {\n    let fetchFunction = fetch;\n    let queryString = query;\n    let fetchOptions = options[1] || {};\n    if (fetchOptions.method && fetchOptions.method === 'GET') {\n      queryString = encodeURIComponent(query);\n      return fetchFunction(`${options[0]}?query=${queryString}`, fetchOptions)\n        .then((response: any) => response.json() as Promise<GraphQLResponse>)\n        .then((response: GraphQLResponse) => {\n          if (response.errors) {\n            throw new GraphQLError(response);\n          }\n          seekForAliases(response.data);\n          return response.data;\n        });\n    }\n    return fetchFunction(`${options[0]}`, {\n      body: JSON.stringify({ query: queryString }),\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json'\n      },\n      ...fetchOptions\n    })\n      .then((response: any) => response.json() as Promise<GraphQLResponse>)\n      .then((response: GraphQLResponse) => {\n        if (response.errors) {\n          throw new GraphQLError(response);\n        }\n        seekForAliases(response.data);\n        return response.data;\n      });\n  };\n  "},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="\nconst apiFetch = (options: fetchOptions, query: string) => {\n    let fetchFunction;\n    let queryString = query;\n    let fetchOptions = options[1] || {};\n    try {\n        fetchFunction = require('node-fetch');\n    } catch (error) {\n        throw new Error(\"Please install 'node-fetch' to use zeus in nodejs environment\");\n    }\n    if (fetchOptions.method && fetchOptions.method === 'GET') {\n      try {\n          queryString = require('querystring').stringify(query);\n      } catch (error) {\n          throw new Error(\"Something gone wrong 'querystring' is a part of nodejs environment\");\n      }\n      return fetchFunction(`${options[0]}?query=${queryString}`, fetchOptions)\n        .then((response: any) => response.json() as Promise<GraphQLResponse>)\n        .then((response: GraphQLResponse) => {\n          if (response.errors) {\n            throw new GraphQLError(response);\n          }\n          seekForAliases(response.data);\n          return response.data;\n        });\n    }\n    return fetchFunction(`${options[0]}`, {\n      body: JSON.stringify({ query: queryString }),\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json'\n      },\n      ...fetchOptions\n    })\n      .then((response: any) => response.json() as Promise<GraphQLResponse>)\n      .then((response: GraphQLResponse) => {\n        if (response.errors) {\n          throw new GraphQLError(response);\n        }\n        seekForAliases(response.data);\n        return response.data;\n      });\n  };\n  "},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphqlErrorTypeScript='\nexport class GraphQLError extends Error {\n    constructor(public response: GraphQLResponse) {\n      super("");\n      console.error(response);\n    }\n    toString() {\n      return "GraphQL Response Error";\n    }\n  }\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.constantTypesTypescript="\n\ntype Func<P extends any[], R> = (...args: P) => R;\ntype AnyFunc = Func<any, any>;\n\ntype IsType<M, T, Z, L> = T extends M ? Z : L;\ntype IsScalar<T, Z, L> = IsType<string | boolean | number, T, Z, L>;\n\ntype WithTypeNameValue<T> = T & {\n  __typename?: true;\n};\n\ntype AliasType<T> = WithTypeNameValue<T> & {\n  __alias?: Record<string, WithTypeNameValue<T>>;\n};\n\nexport type AliasedReturnType<T> = {\n    [P in keyof T]: T[P];\n  } &\n  Record<\n    string,\n    {\n      [P in keyof T]: T[P];\n    }\n  >;\n\ntype ArgsType<F extends AnyFunc> = F extends Func<infer P, any> ? P : never;\ntype OfType<T> = T extends Array<infer R> ? R : T;\ntype FirstArgument<F extends AnyFunc> = OfType<ArgsType<F>>;\n\ninterface GraphQLResponse {\n  data?: Record<string, any>;\n  errors?: Array<{\n    message: string;\n  }>;\n}\n\nexport type State<T> = {\n  readonly [P in keyof T]?: T[P] extends (Array<infer R> | undefined)\n    ? Array<AliasedReturnType<State<R>>>\n    : T[P] extends AnyFunc\n    ? AliasedReturnType<State<ReturnType<T[P]>>>\n    : IsScalar<T[P], T[P], AliasedReturnType<State<T[P]>>>;\n};\n\nexport type PlainObject<T> = {\n  [P in keyof T]?: T[P] extends (Array<infer R> | undefined)\n    ? Array<PlainObject<R>>\n    : T[P] extends AnyFunc\n    ?  PlainObject<ReturnType<T[P]>>\n    : IsScalar<T[P], T[P], PlainObject<T[P]>>;\n};\n\ntype ResolveValue<T> = T extends Array<infer R>\n  ? SelectionSet<R>\n  : T extends AnyFunc\n  ? IsScalar<\n      ReturnType<T>,\n      [FirstArgument<T>],\n      [FirstArgument<T>, SelectionSet<OfType<ReturnType<T>>>]\n    >\n  : IsScalar<T, T extends undefined ? undefined : true, SelectionSet<T>>;\n\nexport type SelectionSet<T> = IsScalar<\n  T,  T extends undefined ? undefined : true\n,  AliasType<\n    {\n      [P in keyof T]?: ResolveValue<T[P]>;\n    }\n  >>;\n\ntype GraphQLReturner<T> = T extends Array<infer R> ? SelectionSet<R> : SelectionSet<T>;\n\ntype OperationToGraphQL<V,T> = (o: GraphQLReturner<V>) => Promise<AliasedReturnType<State<T>>>;\n\ntype ResolveApiField<T> = T extends Array<infer R>\n  ? IsScalar<R, R, State<R>>\n  : T extends AnyFunc\n  ? IsScalar<OfType<ReturnType<T>>, T, State<OfType<ReturnType<T>>>>\n  : IsScalar<T, T, State<T>>;\n\ntype ApiFieldToGraphQL<V,T> = (o: ResolveValue<V>) => Promise<ResolveApiField<T>>;\n\ntype fetchOptions = ArgsType<typeof fetch>;\n\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(76),r=n(93),o=function(e){return"".concat(e,": ((o: any) =>\n    fullChainConstruct(options)('").concat(e,"')(o).then(\n      (response: any) => response as State<").concat(e,">\n    )) as OperationToGraphQL<").concat(i.VALUETYPES,'["').concat(e,'"],').concat(e,">")},s=function(e,t){return"".concat(e,": {\n      ").concat(t.map(function(t){return"".concat(t,": ((o:any) =>\n      fullChainConstruct(options)('").concat(e,"')({\n        ").concat(t,": o\n      }).then((response:any) => response.").concat(t,")) as ApiFieldToGraphQL<").concat(i.VALUETYPES,"['").concat(e,"']['").concat(t,"'],").concat(e,"['").concat(t,"']>")}).join(",\n"),"\n  }")},a=function(e){return"".concat(e,": (o:GraphQLReturner<").concat(i.VALUETYPES,'["').concat(e,"\"]>) => queryConstruct('").concat(e,"')(o)")},c=function(e){return"".concat(e,": (o:any) => o as State<").concat(e,">")};t.bodyTypeScript=function(e,t){var n=t.queries,i=t.mutations,l=t.subscriptions;return"\n".concat(r.graphqlErrorTypeScript,"\n").concat(r.constantTypesTypescript,"\n").concat(r.typescriptFunctions(e),"\n\nexport const Chain = (...options: fetchOptions) => ({\n  ").concat(function(e){e.queries;var t=e.mutations,n=e.subscriptions,i=[];return i.push(o("Query")),t&&t.length&&i.push(o("Mutation")),n&&n.length&&i.push(o("Subscription")),i}({queries:n,mutations:i,subscriptions:l}).join(",\n"),"\n});\nexport const Api = (...options: fetchOptions) => ({\n  ").concat(function(e){var t=e.queries,n=e.mutations,i=e.subscriptions,r=[];return r.push(s("Query",t)),n&&n.length&&r.push(s("Mutation",n)),i&&i.length&&r.push(s("Subscription",i)),r}({queries:n,mutations:i,subscriptions:l}).join(",\n"),"\n});\nexport const Zeus = {\n  ").concat(function(e){e.queries;var t=e.mutations,n=e.subscriptions,i=[];return i.push(a("Query")),t&&t.length&&i.push(a("Mutation")),n&&n.length&&i.push(a("Subscription")),i}({queries:n,mutations:i,subscriptions:l}).join(",\n"),"\n};\nexport const Cast = {\n  ").concat(function(e){e.queries;var t=e.mutations,n=e.subscriptions,i=[];return i.push(c("Query")),t&&t.length&&i.push(c("Mutation")),n&&n.length&&i.push(c("Subscription")),i}({queries:n,mutations:i,subscriptions:l}).join(",\n"),"\n};\n  ")}},function(e,t,n){"use strict";var i=n(63);Object.defineProperty(t,"__esModule",{value:!0});var r=n(69),o=n(56),s=n(44),a=n(159),c=function e(){i(this,e)};c.importSchema=function(e){return r.buildASTSchema(r.parse(e))},c.namedTypeToSerializedNodeTree=function(e){return{name:e.name,type:{name:o.TypeDefinitionDisplayMap[e.astNode.kind]},data:{type:e.astNode.kind},description:e.description?e.description:void 0,interfaces:a.TypeResolver.resolveInterfaces(e.astNode),directives:e.astNode.directives&&a.TypeResolver.iterateDirectives(e.astNode.directives),args:a.TypeResolver.resolveFields(e.astNode)}},c.directiveToSerializedNodeTree=function(e){return{name:e.name,type:{name:o.TypeSystemDefinitionDisplayStrings.directive,directiveOptions:e.locations},data:{type:s.TypeSystemDefinition.DirectiveDefinition},description:e.description?e.description:void 0,args:a.TypeResolver.iterateInputValueFields(e.args.map(function(e){return e.astNode}))}},c.parse=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];try{t=c.importSchema(e)}catch(h){console.log(e)}var i=t.getTypeMap(),r=t.getDirectives().filter(function(e){return!Object.keys(o.BuiltInDirectives).includes(e.name)}).filter(function(e){return!n.includes(e.name)}),a={Query:t.getQueryType(),Mutation:t.getMutationType(),Subscription:t.getSubscriptionType()},l=Object.keys(i).map(function(e){return{key:e,value:i[e]}}).filter(function(e){return e.value.astNode}).filter(function(e){return!n.includes(e.value.name)}).map(function(e){return e.value}),u={nodes:l.map(c.namedTypeToSerializedNodeTree)};return u.nodes=u.nodes.concat(r.map(c.directiveToSerializedNodeTree)),u.nodes.forEach(function(e){e.data.type===s.TypeDefinition.ObjectTypeDefinition&&(a.Query&&a.Query.name===e.name&&(e.type.operations=[s.OperationType.query]),a.Mutation&&a.Mutation.name===e.name&&(e.type.operations=[s.OperationType.mutation]),a.Subscription&&a.Subscription.name===e.name&&(e.type.operations=[s.OperationType.subscription]))}),u},t.Parser=c,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(164))},function(e,t,n){"use strict";var i=n(160),r=n(63),o=n(91);Object.defineProperty(t,"__esModule",{value:!0});var s=n(56),a=n(44),c=function(){function e(){r(this,e)}return o(e,null,[{key:"resolveSingleField",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("ListType"===t.kind){var r=[].concat(i(n),[s.Options.array]);return Object.assign({options:r},e.resolveSingleField(t.type,r))}if("NonNullType"===t.kind){var o=i(n);return o.indexOf(s.Options.required)>=0&&o.indexOf(s.Options.array)>=0?o.push(s.Options.arrayRequired):o.push(s.Options.required),Object.assign({options:o},e.resolveSingleField(t.type,o))}return{name:t.name.value}}},{key:"iterateObjectTypeFields",value:function(t){return t.map(function(t){return{name:t.name.value,description:t.description&&t.description.value,args:t.arguments&&e.iterateInputValueFields(t.arguments),type:e.resolveSingleField(t.type),directives:t.directives&&e.iterateDirectives(t.directives),data:{type:a.TypeSystemDefinition.FieldDefinition}}})}},{key:"resolveObjectField",value:function(t){return[{name:t.name.value,type:{name:t.name.value,options:e.resolveInputValueOptions(t.value)},data:{type:a.Instances.Argument},args:e.resolveValue(t.value)}]}},{key:"resolveValue",value:function(t){return"ListValue"===t.kind?t.values.map(e.resolveValue).reduce(function(e,t){return[].concat(i(e),i(t))},[]):"ObjectValue"===t.kind?[{name:t.kind,args:t.fields.map(function(t){return e.resolveObjectField(t)}).reduce(function(e,t){return[].concat(i(e),i(t))},[]),data:{type:t.kind},type:{name:t.kind}}]:"EnumValue"===t.kind?[{name:t.value,data:{type:t.kind},type:{name:t.value}}]:t.kind in a.Value?[{name:"value"in t?t.value.toString():"name"in t?t.name.value:"",type:{name:t.kind},data:{type:t.kind}}]:[]}},{key:"iterateDirectives",value:function(t){return t.map(function(t){return{name:t.name.value,type:{name:t.name.value},data:{type:a.Instances.Directive},args:t.arguments?e.iterateArgumentFields(t.arguments):[]}})}},{key:"iterateArgumentFields",value:function(t){return t.map(function(t){return{name:t.name.value,type:{name:t.name.value,options:e.resolveInputValueOptions(t.value)},data:{type:a.Instances.Argument},args:e.resolveValue(t.value)}})}},{key:"iterateInputValueFields",value:function(t){return t.map(function(t){return{name:t.name.value,description:t.description&&t.description.value,directives:t.directives&&e.iterateDirectives(t.directives),type:e.resolveSingleField(t.type),data:{type:a.ValueDefinition.InputValueDefinition},args:t.defaultValue?e.resolveValue(t.defaultValue):[]}})}},{key:"resolveInterfaces",value:function(e){if("ObjectTypeDefinition"===e.kind&&e.interfaces)return e.interfaces.map(function(e){return e.name.value})}},{key:"resolveFields",value:function(t){if("EnumTypeDefinition"===t.kind){if(!t.values)return;return t.values.map(function(t){return{name:t.name.value,description:t.description&&t.description.value,directives:t.directives&&e.iterateDirectives(t.directives),type:{name:a.ValueDefinition.EnumValueDefinition},data:{type:a.ValueDefinition.EnumValueDefinition}}})}if("ScalarTypeDefinition"!==t.kind){if("UnionTypeDefinition"===t.kind){if(!t.types)return;return t.types.map(function(e){return{name:e.name.value,type:{name:e.name.value},data:{type:a.TypeSystemDefinition.UnionMemberDefinition}}})}if("InputObjectTypeDefinition"===t.kind){if(!t.fields)return;return e.iterateInputValueFields(t.fields)}if(t.fields)return e.iterateObjectTypeFields(t.fields)}}}]),e}();c.resolveInputValueOptions=function(e){var t=[];return"ListValue"===e.kind&&t.push(s.Options.array),t},t.TypeResolver=c},function(e,t,n){var i=n(161),r=n(162),o=n(163);e.exports=function(e){return i(e)||r(e)||o()}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var i=n(63);Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&e.sort().every(function(e,n){return e===t.sort()[n]})},o=function e(){i(this,e)};o.compareParserFields=function(e,t){return!!(e.name===t.name&&e.type.name===t.type.name&&r(e.type.directiveOptions,t.type.directiveOptions)&&r(e.type.operations,t.type.operations)&&r(e.type.options,t.type.options)&&r(e.interfaces,t.interfaces)&&o.compareParserTreesNodes(e.directives,t.directives)&&o.compareParserTreesNodes(e.args,t.args))},o.compareParserTreesNodes=function(e,t){if(!e&&!t)return!0;if(!e&&t)return!1;if(e&&!t)return!1;var n=!0,i=!1,r=void 0;try{for(var s,a=function(){var e=s.value;if(!t.find(function(t){return o.compareParserFields(e,t)}))return{v:!1}},c=e[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var l=a();if("object"===typeof l)return l.v}}catch(u){i=!0,r=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw r}}return!0},t.ParserUtils=o},function(e,t,n){"use strict";var i=n(53),r=n(166),o=n(63),s=this,a=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{c(i.next(e))}catch(t){o(t)}}function a(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(s,a)}c((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});var c=n(170),l=n(69),u=function e(){o(this,e)};u.getFromUrl=function(e,t){return a(s,void 0,void 0,i.mark(function n(){var o,s,a,u,h,d,f,p,g,m;return i.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o={"Content-Type":"application/json"},!t){n.next=6;break}if(s=t.split(":").map(function(e){return e.trim()}),a=r(s,2),u=a[0],h=a[1]){n.next=5;break}throw new Error("Incorrect Header");case 5:o[u]=h;case 6:return n.next=8,c.default(e,{method:"POST",headers:o,body:JSON.stringify({query:l.getIntrospectionQuery()})});case 8:return d=n.sent,n.next=11,d.json();case 11:if(f=n.sent,p=f.data,!(g=f.errors)){n.next=16;break}throw new Error(JSON.stringify(g,null,2));case 16:return m=l.buildClientSchema(p),n.abrupt("return",l.printSchema(m));case 18:case"end":return n.stop()}},n)}))},t.Utils=u},function(e,t,n){var i=n(167),r=n(168),o=n(169);e.exports=function(e,t){return i(e)||r(e,t)||o()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(c){r=!0,o=c}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){var n=function(e){function t(){this.fetch=!1,this.DOMException=e.DOMException}return t.prototype=e,new t}("undefined"!==typeof self?self:this);!function(e){!function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!==typeof e&&(e=String(e)),e}function a(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function h(e){var t=new FileReader,n=u(t);return t.readAsArrayBuffer(e),n}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:n.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():n.arrayBuffer&&n.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||r(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=u(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=o(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[o(e)]},c.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},c.prototype.set=function(e,t){this.map[o(e)]=s(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),a(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),a(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),a(e)},n.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){var n=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=function(e){var t=e.toUpperCase();return p.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function v(e){var t=new c;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}}),t}function y(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},f.call(g.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];y.redirect=function(e,t){if(-1===b.indexOf(t))throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(w){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,i){return new Promise(function(r,o){var s=new g(e,i);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:v(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var t="response"in a?a.response:a.responseText;r(new y(t,e))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&n.blob&&(a.responseType="blob"),s.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send("undefined"===typeof s._bodyInit?null:s._bodyInit)})}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=c,e.Request=g,e.Response=y),t.Headers=c,t.Request=g,t.Response=y,t.fetch=E}({})}(n),delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(172),r=n(188),o=n(189),s=n(200),a=n(40),c=n(52),l=n(57),u=function(){function e(e,t){var n=this;if(this.hostDomElement=e,this.autoResize=function(){var e=n.calculateElementSize(n.hostDomElement);if(e.width!==n.currentHostSize.width||e.height!==n.currentHostSize.height){n.currentHostSize=e;var t={width:2*e.width,height:2*e.height};n.canvasElement.width=t.width,n.canvasElement.height=t.height,n.canvasElement.style.width="100%",n.canvasElement.style.height="100%",n.stateManager.areaResized({width:n.canvasElement.width,height:n.canvasElement.height}),n.io.calculateClientBoundingRect()}},this.getHostElement=function(){return n.hostDomElement},"undefined"===typeof document)throw new Error("Diagram can work only in DOM-enabled environment (e.g. browser)!");this.configuration=new c.ConfigurationManager(t||{}),this.canvasElement=document.createElement("canvas"),this.canvasElement.tabIndex=-1,this.canvasElement.style.outline="none";var a=this.canvasElement.getContext("2d");a.font="10px Helvetica";var u=this.calculateElementSize(e);this.currentHostSize=u,this.canvasElement.oncontextmenu=function(){return!1};var h=this.configuration.getOption("width")||u.width,d=this.configuration.getOption("height")||u.height,f={width:2*h,height:2*d};for(this.canvasElement.width=f.width,this.canvasElement.height=f.height,this.canvasElement.style.width=h+"px",this.canvasElement.style.height=d+"px";e.firstChild;)e.removeChild(e.firstChild);if("static"===window.getComputedStyle(e).position&&(e.style.position="relative"),e.appendChild(this.canvasElement),!a)throw new Error("Can't create canvas context!");this.eventBus=new r.EventBus,this.io=new s.IO(this.eventBus,this.canvasElement),this.stateManager=new o.StateManager(this.eventBus,this.configuration.getOption("theme"),this.configuration.getOption("connectionFunction"),this.configuration.getOption("disableLinkOperations"),this.getHostElement,f),this.renderer=new i.Renderer(this.eventBus,a,this.stateManager,this.configuration.getOption("theme")),this.configuration.getOption("autosizeWatcher")&&setInterval(this.autoResize,this.configuration.getOption("autosizeInterval")),l.CSSMiniEngine.instance.compile(),this.wireUpResizer(),this.renderer.renderStart()}return e.prototype.setDefinitions=function(e){this.stateManager.setDefinitions(e)},e.prototype.on=function(e,t){return this.eventBus.on(e,t)},e.prototype.off=function(e,t){return this.eventBus.off(e,t)},e.prototype.setNodes=function(e,t){t&&this.beautifyDiagram(e),this.stateManager.setNodes(e)},e.prototype.setLinks=function(e){this.stateManager.setLinks(e)},e.prototype.centerOnNode=function(e){this.stateManager.centerOnNode(e)},e.prototype.setReadOnly=function(e){this.stateManager.setReadOnly(e)},e.prototype.requestSerialise=function(){this.stateManager.requestSerialise()},e.prototype.rebuildTrees=function(){this.stateManager.rebuildTrees()},e.prototype.beautifyDiagram=function(e){a.NodeUtils.beautifyDiagram(e,this.configuration.getOption("theme"))},e.prototype.centerDiagram=function(){this.stateManager.centerGraph()},e.prototype.zeroDiagram=function(){this.stateManager.zeroGraph()},e.prototype.resize=function(e,t){var n={width:e,height:t};this.currentHostSize=n;var i={width:2*n.width,height:2*n.height};this.canvasElement.width=i.width,this.canvasElement.height=i.height,this.canvasElement.style.width=n.width+"px",this.canvasElement.style.height=n.height+"px",this.stateManager.areaResized({width:this.canvasElement.width,height:this.canvasElement.height}),this.io.calculateClientBoundingRect()},e.prototype.calculateElementSize=function(e){return{width:e.clientWidth,height:e.clientHeight}},e.prototype.wireUpResizer=function(){var e=this;this.configuration.getOption("autosizeOnWindowResize")&&window.addEventListener("resize",function(){e.autoResize()})},e}();t.Diagram=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(173),r=n(180),o=n(32),s=n(183),a=n(185),c=n(186),l=n(98),u=n(57),h=function(){function e(e,t,n,h){var d=this;this.eventBus=e,this.context=t,this.stateManager=n,this.theme=h,this.minimapRenderer=new i.MinimapRenderer,this.zoomPan=new r.ZoomPan,this.cssMiniEngine=new u.CSSMiniEngine,this.previousFrameTime=0,this.getActiveArea=function(){var e=d.stateManager.getState().uiState,t=e.areaSize.width/e.scale,n=e.areaSize.height/e.scale;return new l.Region({x:0-e.panX,y:0-e.panY},{x:t-e.panX,y:n-e.panY})},this.renderStart=function(){window.requestAnimationFrame(d.render)},this.renderUpdate=function(){window.requestAnimationFrame(d.render)},this.animate=function(e){return d.stateManager.calculateAnimations(e)},this.calculateTimeDelta=function(e){return 0===d.previousFrameTime?1:(e-d.previousFrameTime)/16},this.resetTimeCounter=function(){d.previousFrameTime=0},this.render=function(e){var t=d.calculateTimeDelta(e);d.setScreenTransform(),d.renderBackground(),d.setWorldTransform(),d.renderLinks(),d.renderActiveLink(),d.renderNodes(),d.setScreenTransform(),d.renderMinimap(),d.renderCursor(),d.animate(t)?d.previousFrameTime=e:d.resetTimeCounter()},this.nodeRenderer=new s.NodeRenderer(this.context,this.theme,this.stateManager),this.activeLinkRenderer=new a.ActiveLinkRenderer(this.context,this.theme),this.linkRenderer=new c.LinkRenderer(this.context,this.theme),this.eventBus.subscribe(o.DiagramEvents.RenderRequested,this.renderStart),this.cssMiniEngine.compile()}return e.prototype.setCursor=function(e){this.context.canvas.style.cursor=e},e.prototype.renderCursor=function(){var e=this.stateManager.getState();if(!e.drawedConnection)return e.hover.node?(this.setCursor("move"),e.hover.type&&e.hover.node.definition.parent?void this.setCursor("pointer"):e.hover.io?void this.setCursor("crosshair"):void 0):void(e.hover.description?this.setCursor("text"):e.hover.link?this.setCursor("col-resize"):this.setCursor("grab"));this.setCursor("grabbing")},e.prototype.renderNodes=function(){for(var e=this.stateManager.getState(),t=0,n=e.trees.node.queryRange(this.getActiveArea()).concat(e.selectedNodes);t<n.length;t++){var i=n[t],r=-1!==e.selectedNodes.indexOf(i),o=e.hover.node===i,s=e.renamed&&e.renamed===i,a=o&&e.hover.type,c=o&&"i"==e.hover.io,l=o&&"o"==e.hover.io,u=e.uiState.scale;this.nodeRenderer.render({node:i,isRenamed:s,isSelected:r,isHovered:o,typeIsHovered:a,inputActive:c,outputActive:l,currentScale:u})}},e.prototype.renderActiveLink=function(){var e=this.stateManager.getState();e.draw&&e.drawedConnection&&this.activeLinkRenderer.render({from:e.draw.initialPos,to:e.drawedConnection})},e.prototype.renderLinks=function(){var e=this,t=this.stateManager.getState();t.trees.link.queryRange(this.getActiveArea()).forEach(function(n){return e.linkRenderer.render(n,"main",t.uiState.scale)}),t.links.filter(function(e){return t.selectedNodes.find(function(t){return t===e.i||t===e.o})}).forEach(function(n){return e.linkRenderer.render(n,"active",t.uiState.scale)}),t.hover.link&&this.linkRenderer.render(t.hover.link,"hover",t.uiState.scale)},e.prototype.renderBackground=function(){var e=this.context.canvas,t=e.width,n=e.height;this.context.fillStyle=this.theme.colors.background,this.context.fillRect(0,0,t,n)},e.prototype.renderMinimap=function(){this.minimapRenderer.render(this.context,this.theme,this.stateManager.getState())},e.prototype.setScreenTransform=function(){this.zoomPan.setUniformMatrix(this.context)},e.prototype.setWorldTransform=function(){var e=this.stateManager.pureState().uiState;this.zoomPan.setCalculatedMatrix(this.context,e)},e}();t.Renderer=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40),r=function(){function e(){}return e.prototype.render=function(e,t,n){var r=n.uiState;if(r.minimapActive){e.save(),e.globalAlpha=n.hoverMinimap?t.minimap.hoverAlpha:t.minimap.alpha;var o=e.canvas.width-t.minimap.size-t.minimap.margin,s=t.minimap.margin,a=i.MinimapUtils.getBoundingBoxViewport({x:r.panX,y:r.panY},r.scale,n.uiState.areaSize),c=i.MinimapUtils.getMiniMapBoundaries(a,n.uiState.areaSize),l=i.MinimapUtils.worldToMapPoint({x:a.left,y:a.top},t.minimap.size,c),u={width:i.MinimapUtils.worldToMapWidth(a.width,c,t.minimap.size),height:i.MinimapUtils.worldToMapHeight(a.height,c,t.minimap.size),left:l.x-1,top:l.y-1};e.fillStyle=t.colors.minimap.background,e.fillRect(o,s,t.minimap.size,t.minimap.size),e.strokeStyle=t.colors.minimap.borders,e.lineWidth=1,e.strokeRect(o,s,t.minimap.size,t.minimap.size),e.beginPath(),e.rect(o,s,t.minimap.size,t.minimap.size),e.clip(),e.fillStyle=t.colors.minimap.visibleArea,e.fillRect(o+u.left,s+u.top,u.width,u.height),e.lineWidth=1,e.strokeRect(o+u.left,s+u.top,u.width,u.height),e.fillStyle=t.colors.minimap.node,n.nodes.forEach(function(n){var r=i.MinimapUtils.worldToMapPoint(n,t.minimap.size,c);e.fillRect(o+r.x,s+r.y,6,4)}),e.restore()}},e}();t.MinimapRenderer=r},function(e,t,n){var i=n(175),r=n(176),o=r;o.v1=i,o.v4=r,e.exports=o},function(e,t,n){var i,r,o=n(94),s=n(95),a=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,u=t||[],h=(e=e||{}).node||i,d=void 0!==e.clockseq?e.clockseq:r;if(null==h||null==d){var f=o();null==h&&(h=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==d&&(d=r=16383&(f[6]<<8|f[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:c+1,m=p-a+(g-c)/1e4;if(m<0&&void 0===e.clockseq&&(d=d+1&16383),(m<0||p>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,c=g,r=d;var v=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;u[l++]=v>>>24&255,u[l++]=v>>>16&255,u[l++]=v>>>8&255,u[l++]=255&v;var y=p/4294967296*1e4&268435455;u[l++]=y>>>8&255,u[l++]=255&y,u[l++]=y>>>24&15|16,u[l++]=y>>>16&255,u[l++]=d>>>8|128,u[l++]=255&d;for(var b=0;b<6;++b)u[l+b]=h[b];return t||s(u)}},function(e,t,n){var i=n(94),r=n(95);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||i)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||r(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Colors={grey:["#FBFBFB","#E6E6E6","#CCCCCC","#B2B2B2","#808080","#4D4D4D","#333232","#202020","#1A1919","#050505"],main:["#FF59C5","#E650B1","#CC479E","#B33E8A","#802D62","#4D1B3B","#331227"],green:["#30FFC8","#2CE6B4","#27CCA0","#22B38C","#188064","#0F4D3C","#0A3328"],yellow:["#FED531","#E6C02C","#CCAB27","#B39622","#806B18","#4D400F","#332B0A"],red:["#FF306B","#E62C60","#CC2756","#B3224B","#801835","#4D0F20","#330A15"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.getBoundingBoxViewport=function(e,t,n){return{left:-e.x,right:n.width/t-e.x,top:-e.y,bottom:n.height/t-e.y,width:n.width/t,height:n.height/t}},e.getMiniMapBoundaries=function(e,t){return{left:Math.max(Math.min(t.width/2-7e3,e.left),e.right-14e3),top:Math.max(Math.min(t.height/2-7e3,e.top),e.bottom-14e3),width:14e3,height:14e3}},e.mapToWorldPoint=function(e,t,n){var i=(t.left+t.width/2)/(t.width/n),r=(t.top+t.height/2)/(t.width/n),o=t.width/n;return{x:e.x*o-(n/2-i)*o,y:e.y*o-(n/2-r)*o}},e.worldToMapWidth=function(e,t,n){return e/(t.width/(n-1))},e.worldToMapHeight=function(e,t,n){return e/(t.height/(n-1))},e.worldToMapPoint=function(t,n,i){var r=e.worldToMapWidth(i.left+i.width/2,i,n),o=e.worldToMapHeight(i.top+i.height/2,i,n),s=i.width/(n-1);return{x:n/2-r+t.x/s,y:n/2-o+t.y/s}},e}();t.MinimapUtils=i},function(e,t,n){"use strict";function i(e){return Math.max(e.size[0],e.size[1])}function r(e){for(var t=0,n=0,i=0;i<e.length;i++){var r=e[i],o=r.position[0]+r.size[0],s=r.position[1]+r.size[1];o>t&&(t=o),s>n&&(n=s)}return[t,n]}function o(e,t){for(var n=t,i=0;i<e.length;i++){if(s(n,e[i]))return!1}return!0}function s(e,t){return e.position[0]<t.position[0]+t.size[0]&&e.position[0]+e.size[0]>t.position[0]&&e.position[1]<t.position[1]+t.size[1]&&e.position[1]+e.size[1]>t.position[1]}Object.defineProperty(t,"__esModule",{value:!0}),t.packBoxes=function(e){for(var t={size:[0,0],boxes:[]},n=new Array(e.length),s=0;s<e.length;s++)n[s]=s;for(n.sort(function(t,n){return e[n].dimensions[0]*e[n].dimensions[1]-e[t].dimensions[0]*e[t].dimensions[1]}),s=0;s<e.length;s++){for(var a=e[n[s]].dimensions,c=[[0,0]],l=0;l<t.boxes.length;l++){var u=t.boxes[l];c.push([u.position[0],u.position[1]+u.size[1]],[u.position[0]+u.size[0],u.position[1]])}var h={score:1/0,position:c[0]};if(c.length>1)for(l=0;l<c.length;l++){var d=c[l],f={size:a,position:d};if(o(t.boxes,f)){var p=t.boxes.slice();p.push(f);var g=i({size:r(p),boxes:p});g<h.score&&(h.score=g,h.position=d)}}var m={size:a,position:h.position};t.boxes.push(m),t.size=r(t.boxes)}var v=t.boxes.slice();for(s=0;s<v.length;s++)t.boxes[n[s]]=v[s];return v.map(function(e,t){return{index:n[t],box:e}})},t.whitespace=function(e){for(var t=e.size[0]*e.size[1],n=0;n<e.boxes.length;n++){var i=e.boxes[n];t-=i.size[0]*i.size[1]}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.setCalculatedMatrix=function(e,t){this.setUniformMatrix(e),e.scale(t.scale,t.scale),e.translate(t.panX,t.panY)},e.prototype.setUniformMatrix=function(e){e.setTransform(1,0,0,1,0,0)},e}();t.ZoomPan=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ScreenMouseLeave="ScreenMouseLeave",e.ScreenMouseMove="ScreenMouseMove",e.ScreenMouseDrag="ScreenMouseDrag",e.ScreenMouseOverMove="ScreenMouseOverMove",e.ScreenLeftMouseUp="ScreenLeftMouseUp",e.ScreenRightMouseUp="ScreenRightMouseUp",e.ScreenLeftMouseClick="ScreenLeftMouseClick",e.ScreenDoubleClick="ScreenDoubleClick",e.ScreenMouseWheel="ScreenMouseWheel",e.WorldMouseMove="WorldMouseMove",e.WorldMouseOverMove="WorldMouseOverMove",e.WorldMouseDrag="WorldMouseDrag",e.WorldMouseDragEnd="WorldMouseDragEnd",e.WorldLeftMouseClick="WorldLeftMouseClick",e.WorldLeftMouseUp="WorldLeftMouseUp",e.MinimapMouseMove="MinimapMouseMove",e.MinimapLeftMouseClick="MinimapLeftMouseClick",e.ScreenRightMouseClick="ScreenRightMouseClick",e.MPressed="MPressed",e.DeletePressed="DeletePressed",e.BackspacePressed="BackspacePressed",e.RenamerChanged="RenamerChanged"}(t.IOEvents||(t.IOEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.NodeMoved="NodeMoved",e.NodeSelected="NodeSelected",e.NodeCreated="NodeCreated",e.NodeDeleted="NodeDeleted",e.NodeChanged="NodeChanged",e.NodeRenameFocus="NodeRenameFocus",e.NodeRenameShowInput="NodeRenameShowInput",e.NodeRenameEnded="NodeRenameEnded",e.NodeCreationRequested="NodeCreationRequested",e.DescriptionRenameShowInput="DescriptionRenameShowInput",e.DescriptionRenameEnded="DescriptionRenameEnded",e.DescriptionRenameFocus="DescriptionRenameFocus",e.DescriptionMakeReadOnly="DescriptionMakeReadOnly",e.DescriptionMakeEditable="DescriptionMakeEditable",e.LinkCreated="LinkCreated",e.LinkDeleted="LinkDeleted",e.LinkMoved="LinkMoved",e.DrawingLink="DrawingLink",e.PickRequested="PickRequested",e.RebuildTreeRequested="RebuildTreeRequested",e.RenderRequested="RenderRequested",e.SerialisationRequested="SerialisationRequested",e.UndoRequested="UndoRequested",e.RedoRequested="RedoRequested",e.DataModelChanged="DataModelChanged",e.ViewModelChanged="ViewModelChanged",e.PanRequested="PanRequested",e.CenterPanRequested="CenterPanRequested",e.MenuRequested="MenuRequested",e.MenuItemClicked="MenuItemClicked",e.CenterOnNode="CenterOnNode"}(t.DiagramEvents||(t.DiagramEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(184),r=n(52),o=function(){function e(e,t,n){var o=this;this.context=e,this.theme=t,this.stateManager=n,this.render=function(e){var t=e.node,n=e.typeIsHovered,r=e.isHovered,s=e.isSelected,a=e.isRenamed,c=e.inputActive,l=e.outputActive,u=e.currentScale,h=void 0===u?1:u,d=o.theme,f=d.colors,p=d.node,g=p.width,m=p.height,v=p.nameSize,y=p.typeSize,b=p.options,E=d.port,w=o.stateManager.pureState().isReadOnly;o.context.fillStyle=f.node.background;var A=t.inputs?0:5,C=t.outputs?0:5;i.RoundedRectangle(o.context,{width:g,height:m,x:t.x,y:t.y,radius:0,radiusBottomLeft:A,radiusTopLeft:A,radiusBottomRight:C,radiusTopRight:C});var F=o.distances,T=F.nodeType,S=F.nodeTitle,O=F.nodeOptions,x=F.nodeArrows;if(h>T){o.context.fillStyle=f.node.types[t.definition.type]||f.node.type;var k=t.definition.type;n&&t.definition.parent&&(o.context.fillStyle=f.node.hover.type,k+=" >"),o.context.font=o.getNodeFont(y,"normal"),o.context.textBaseline="bottom",o.context.textAlign="end",o.context.fillText(k,t.x+g,t.y)}else o.context.fillStyle=f.node.types[t.definition.type]||f.node.type,o.context.fillRect(t.x+g-g/4,t.y-y/1.5-2,g/4,y/1.5);if(t.inputs&&(o.context.font=o.getNodeFont(v,"normal"),o.context.textAlign="center",o.context.textBaseline="middle",o.context.fillStyle=c?f.port.backgroundActive:f.port.background,i.RoundedRectangle(o.context,{height:m,width:E.width,x:t.x-E.width,y:t.y,radiusTopLeft:10,radiusBottomLeft:10}),h>x&&!w&&(o.context.fillStyle=f.port.button,o.context.font=o.getNodeFont(12,"normal"),o.context.fillText("\u25c0",t.x-E.width/2,t.y+m/2+2)),o.context.fillStyle=f.background,E.gap&&i.RoundedRectangle(o.context,{height:m,width:E.gap,x:t.x,y:t.y,radius:0})),t.outputs&&(o.context.fillStyle=l?f.port.backgroundActive:f.port.background,i.RoundedRectangle(o.context,{height:m,width:E.width,x:t.x+g,y:t.y,radiusTopRight:10,radiusBottomRight:10}),h>x&&!w&&(o.context.fillStyle=f.port.button,o.context.font=o.getNodeFont(12,"normal"),o.context.fillText("\u25b6",t.x+g+E.width/2,t.y+m/2+2)),o.context.fillStyle=f.background,E.gap&&i.RoundedRectangle(o.context,{height:m,width:E.gap,x:t.x+g,y:t.y,radius:0})),t.options&&h>O){var _=0;t.options.forEach(function(e){o.context.fillStyle=f.node.options[e]||f.node.name,o.context.font=o.getNodeFont(b.fontSize,"normal"),o.context.textAlign="left",o.context.fillText(e,t.x+_,t.y+m+b.fontSize,g),_+=o.context.measureText(e).width+b.fontSize/2})}if(t.name&&!a)if(o.context.fillStyle=f.node.name,h>S)o.context.font=o.getNodeFont(v,"normal"),o.context.textAlign="center",o.context.textBaseline="middle",o.context.fillText(t.name,t.x+g/2,t.y+m/2);else{o.context.fillStyle=f.node.name+"55";var D=g/2,R=v/1.5;o.context.fillRect(t.x+g/2-D/2,t.y+m/2-R/2,D,R)}var B=t.outputs?10:0,L=t.inputs?10:0,M=g,N=t.x;t.inputs&&(N-=E.width,M+=E.width),t.outputs&&(M+=E.width),(r||s)&&(o.context.strokeStyle=f.node.selected,o.context.lineWidth=2,i.RoundedRectangleStroke(o.context,{width:M,height:m,x:N,y:t.y,radius:0,radiusBottomLeft:L,radiusTopLeft:L,radiusBottomRight:B,radiusTopRight:B})),s&&(o.context.fillStyle=f.node.selected+"17",i.RoundedRectangle(o.context,{width:M,height:m,x:N,y:t.y,radiusBottomLeft:L,radiusTopLeft:L,radiusBottomRight:B,radiusTopRight:B}))},this.distances=r.ConfigurationManager.instance.getOption("drawingDistance")}return e.prototype.getNodeFont=function(e,t){return void 0===t&&(t="normal"),t+" "+e+"px "+this.context.font.split(" ")[this.context.font.split(" ").length-1]},e}();t.NodeRenderer=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){var n=t.width,i=t.height,r=t.x,o=t.y,s=t.radius||0,a=t.radiusTopLeft||s,c=t.radiusTopRight||s,l=t.radiusBottomRight||s,u=t.radiusBottomLeft||s;e.beginPath(),e.moveTo(r+a,o),e.lineTo(r+n-c,o),e.arcTo(r+n,o,r+n,o+c,c),e.lineTo(r+n,o+i-l),e.arcTo(r+n,o+i,r+n-l,o+i,l),e.lineTo(r+u,o+i),e.arcTo(r,o+i,r,o+i-u,u),e.lineTo(r,o+a),e.arcTo(r,o,r+a,o,a)};t.RoundedRectangle=function(e,t){i(e,t),e.fill()},t.RoundedRectangleStroke=function(e,t){i(e,t),e.stroke()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(97),r=function(){return function(e,t){var n=this;this.context=e,this.theme=t,this.render=function(e){var t=e.from,r=e.to;i.QuadraticPath(n.context,t.x,t.y,r.x,r.y,n.theme.link.cornerRadius,n.theme.link.strokeWidth,n.theme.colors.link.main,n.theme.link.defaultCenterPoint)}}}();t.ActiveLinkRenderer=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(97),r=n(187),o=n(52),s=function(){return function(e,t){var n=this;this.context=e,this.theme=t,this.render=function(e,t,o){void 0===o&&(o=1);var s=n.theme.node,a=s.width,c=s.height;return o>n.distances.detailedLinks?i.QuadraticPath(n.context,e.o.x+a,e.o.y+c/2,e.i.x,e.i.y+c/2,n.theme.link.cornerRadius,n.theme.link.strokeWidth,n.theme.colors.link[t],e.centerPoint||n.theme.link.defaultCenterPoint):o>n.distances.simplifiedLinks?r.SimplifiedPath(n.context,e.o.x+a,e.o.y+c/2,e.i.x,e.i.y+c/2,n.theme.link.strokeWidth,n.theme.colors.link[t],e.centerPoint||n.theme.link.defaultCenterPoint):void 0},this.distances=o.ConfigurationManager.instance.getOption("drawingDistance")}}();t.LinkRenderer=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(78);t.SimplifiedPath=function(e,t,n,r,o,s,a,c){void 0===c&&(c=.5);var l=i.LinkUtils.calculateLinkXCenterMath(t,r,c);e.beginPath(),e.moveTo(t,n),e.lineTo(l,n),e.lineTo(l,o),e.lineTo(r,o),e.lineWidth=s,e.strokeStyle=a,e.stroke()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.topics={},this.externalSubscribers={},this.que=[]}return e.prototype.subscribe=function(e,t){this.topics[e]||(this.topics[e]=[]),this.topics[e].push(t)},e.prototype.publish=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(this.que.push({topic:e,args:t}),!(this.que.length>1))for(var i=function(){var e=r.que[0];(r.topics[e.topic]||[]).concat(r.externalSubscribers[e.topic]||[]).forEach(function(t){return t.apply(void 0,e.args)}),r.que.shift()},r=this;this.que.length>0;)i()},e.prototype.on=function(e,t){var n=this;return this.externalSubscribers[e]||(this.externalSubscribers[e]=[]),this.externalSubscribers[e].push(t),function(){return n.off(e,t)}},e.prototype.off=function(e,t){this.externalSubscribers[e]&&(this.externalSubscribers[e]=this.externalSubscribers[e].filter(function(e){return e!==t}))},e}();t.EventBus=i},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=n(40),s=n(190),a=n(192),c=n(193),l=n(194),u=n(195),h=n(196),d=n(79),f=n(197),p=n(198),g=n(199),m=function(){function e(e,t,n,i,o,m){var v=this;this.eventBus=e,this.theme=t,this.connectionFunction=n,this.disableLinkOperations=i,this.getHostElement=o,this.pureState=function(){return v.state},this.requestSerialise=function(){v.eventBus.publish(r.DiagramEvents.SerialisationRequested)},this.rebuildTrees=function(){v.nodeManager.rebuildTree(),v.connectionManager.rebuildTree()},this.calculateAnimations=function(e){return v.uiManager.calculateAnimations(e)},this.centerGraph=function(){v.uiManager.centerPanTo(v.nodeManager.getCenter())},this.zeroGraph=function(){v.uiManager.panTo({x:3*-v.theme.node.width,y:3*-v.theme.node.height})},this.centerOnNode=function(e){v.state.nodes.indexOf(e)>-1&&v.eventBus.publish(r.DiagramEvents.CenterOnNode,e)},this.mouseDrag=function(e){var t=e.withoutPan,n=e.calculated;v.state.uiState.draggingMinimap||(v.state.selectedNodes.length>0?v.nodeManager.moveNodes(n):v.state.draw?(v.hoverManager.hover(n),v.connectionManager.drawConnector(n)):v.state.hover.link?v.connectionManager.moveLink(n):v.uiManager.panScreen(t))},this.areaResized=function(e){v.state.uiState.areaSize=e,v.eventBus.publish(r.DiagramEvents.RenderRequested)},this.worldToScreenCoordinates=function(e){return v.uiManager.worldToScreen(e)},this.state={links:[],nodes:[],nodeDefinitions:[],categories:[],selectedLinks:[],selectedNodes:[],hover:{},hoverMinimap:!1,trees:{node:new d.QuadTree,link:new d.QuadTree},uiState:{minimapActive:!0,panX:0,panY:0,scale:1,areaSize:m,draggingWorld:!1,draggingElements:!1,draggingMinimap:!1,animatingPan:!1}},this.htmlManager=new p.HtmlManager(this.state,this.eventBus,this.getHostElement,this.theme),this.uiManager=new c.UIManager(this.state.uiState,this.eventBus,this.theme),this.connectionManager=new a.ConnectionManager(this.eventBus,this.state,this.theme,this.connectionFunction),new h.MenuManager(this.state,this.eventBus,this.uiManager,this.htmlManager),this.nodeManager=new s.NodeManager(this.state,this.eventBus,this.uiManager,this.theme,this.connectionManager,this.htmlManager),new l.MinimapManager(this.state,this.eventBus,this.theme),this.hoverManager=new u.HoverManager(this.state,this.eventBus,this.theme,this.disableLinkOperations),new g.DescriptionManager(this.state,this.eventBus,this.htmlManager),new f.ChangesManager(this.state,this.eventBus),this.eventBus.subscribe(r.IOEvents.WorldMouseDrag,this.mouseDrag),this.eventBus.subscribe(r.DiagramEvents.RebuildTreeRequested,this.rebuildTrees)}return e.prototype.getState=function(){return i({},this.state)},e.prototype.setDefinitions=function(e){this.state.nodeDefinitions=e;for(var t=0,n=this.state.nodeDefinitions;t<n.length;t++){var i=n[t];i.id||(i.id=o.Utils.generateId())}},e.prototype.setNodes=function(e){this.nodeManager.loadNodes(e)},e.prototype.setLinks=function(e){this.connectionManager.loadLinks(e)},e.prototype.setReadOnly=function(e){this.state.isReadOnly=e},e}();t.StateManager=m},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=n(77),s=n(79),a=n(191),c=function(){return function(e,t,n,c,l,u){var h=this;this.state=e,this.eventBus=t,this.uiManager=n,this.theme=c,this.connectionManager=l,this.htmlManager=u,this.storeSelectedNodesRelativePosition=[],this.handleScreenLeave=function(){h.state.uiState.draggingElements&&(h.state.uiState.draggingElements=!1,h.movedNodes())},this.rebuildTree=function(){h.state.trees.node=new s.QuadTree,h.state.nodes.forEach(function(e){return h.state.trees.node.insert(o.NodeUtils.createTreeNode(e,h.theme))})},this.loadNodes=function(e){h.state.nodes=e,h.state.selectedNodes=[],h.rebuildTree()},this.storeNodes=function(e){h.storeSelectedNodesRelativePosition=h.state.selectedNodes.map(function(t){return{x:e.x-t.x,y:e.y-t.y}})},this.moveNodes=function(e){if(!h.state.isReadOnly&&!h.state.renamed){var t=h.state.selectedNodes;if(t.length){h.state.uiState.draggingElements=!0;for(var n=0;n<t.length;n++){var o=t[n],s=h.storeSelectedNodesRelativePosition[n];o.x=e.x-s.x,o.y=e.y-s.y}h.state.uiState.lastDragPosition=i({},e),h.eventBus.publish(r.DiagramEvents.RenderRequested)}}},this.movedNodes=function(){var e=h.state.selectedNodes;e.length&&(h.rebuildTree(),h.eventBus.publish(r.DiagramEvents.NodeMoved,e))},this.beautifyNodesInPlace=function(e){var t=o.NodeUtils.graphFromNode(e),n=t.center,i=n.x,s=n.y,a=o.NodeUtils.positionGraph(t,h.theme),c=i-a.center.x,l=s-a.center.y;a.nodes.forEach(function(e){e.x+=c,e.y+=l}),h.eventBus.publish(r.DiagramEvents.RebuildTreeRequested),h.eventBus.publish(r.DiagramEvents.RenderRequested)},this.deleteSelectedNodes=function(){h.deleteNodes(h.state.selectedNodes)},this.openNodeMenu=function(e){if(!h.state.isReadOnly&&!h.state.draw){var t=h.state.hover.node;if(t&&!h.state.menu){h.state.categories=[{name:"delete",help:"Delete all selected nodes. If you are deleting object definitions it will delete instances of this object also",action:function(){h.state.selectedNodes.indexOf(t)>-1?h.deleteSelectedNodes():h.deleteNodes([t])}},{name:"beautify graph",help:"Beautify graph and put nodes in good positions",action:function(){h.beautifyNodesInPlace(t)}}];var n=t.definition.options;n&&(h.state.categories=h.state.categories.concat(n.map(function(e){var n=e.help,i=e.name;return{name:i,help:n,action:function(){var e=t.options.findIndex(function(e){return e===i});if(-1!==e)return t.options.splice(e,1),void h.eventBus.publish(r.DiagramEvents.NodeChanged);t.options.push(i),h.eventBus.publish(r.DiagramEvents.NodeChanged)}}})));var i=t.definition.categories||t.definition.parent&&t.definition.parent.categories;i&&i.node&&(h.state.categories=h.state.categories.concat(i.node)),h.eventBus.publish(r.DiagramEvents.MenuRequested,e)}}},this.graphSelect=function(e){var t=h.state.hover,n=t.node,i=t.io;if(n&&!i){var s=o.NodeUtils.graphFromNode(n);h.state.selectedNodes=s.nodes,h.eventBus.publish(r.DiagramEvents.RenderRequested)}},this.selectSingleNode=function(e){h.state.selectedNodes=[e]},this.goToNodeType=function(e){var t=h.state.hover,n=t.type,i=t.node;if(n&&i&&i.definition.parent){var o=h.state.nodes.find(function(e){return!!e.editsDefinitions&&!!e.editsDefinitions.find(function(e){return e===i.definition})});o&&(h.selectSingleNode(o),h.eventBus.publish(r.DiagramEvents.CenterOnNode,o))}},this.selectNode=function(e){var t=h.state.hover,n=t.node,i=t.io,o=t.type;if(!n||i||o)h.state.selectedNodes=[];else if(e.shiftKey){var s=h.state.selectedNodes.indexOf(n);if(-1!==s)return void h.state.selectedNodes.splice(s);h.state.selectedNodes.push(n)}else 1!==h.state.selectedNodes.length&&-1!==h.state.selectedNodes.indexOf(n)||h.selectSingleNode(n);h.eventBus.publish(r.DiagramEvents.NodeSelected,e),h.eventBus.publish(r.DiagramEvents.RenderRequested)},this.placeConnectedNode=function(e,t){var n=e.x,i=e.y-2*h.theme.node.height,r=h.theme.node.width+h.theme.port.width+h.theme.node.spacing.x;if("i"===t){for(var o=0,s=e.inputs;o<s.length;o++){var a=s[o];i=a.y>i?a.y:i}n-=r}if("o"===t){for(var c=0,l=e.outputs;c<l.length;c++){var u=l[c];i=u.y>i?u.y:i}n+=h.theme.node.width+r}i+=h.theme.node.height+h.theme.node.spacing.y;var d=h.state.nodes.filter(function(e){return Math.abs(e.y-i)<h.theme.node.height&&Math.abs(e.x-n)<h.theme.node.width});return d.length&&(i=Math.max.apply(Math,d.map(function(e){return e.y})),i+=h.theme.node.height+h.theme.node.spacing.y),{x:n,y:i}},this.deleteNodes=function(e){var t=e.filter(function(e){return!e.readonly}),n=t.filter(function(e){return e.editsDefinitions}).map(function(e){return e.editsDefinitions}).reduce(function(e,t){return e.concat(t)},[]);t=t.concat(h.state.nodes.filter(function(e){return n.find(function(t){return t===e.definition})})),h.state.nodeDefinitions=h.state.nodeDefinitions.filter(function(e){return!n.find(function(t){return t===e})}),h.state.selectedNodes=h.state.selectedNodes.filter(function(e){return!t.find(function(t){return t===e})}),h.state.nodes=h.state.nodes.filter(function(e){return!t.find(function(t){return t===e})}),h.rebuildTree(),h.eventBus.publish(r.DiagramEvents.NodeDeleted,t),h.eventBus.publish(r.DiagramEvents.RenderRequested)},this.createNode=function(e,t){var n=o.NodeUtils.createNode(e,t,h.state.nodeDefinitions);return h.state.nodes.push(n),h.state.trees.node.insert(o.NodeUtils.createTreeNode(n,h.theme)),h.selectSingleNode(n),h.eventBus.publish(r.DiagramEvents.NodeCreated,n),n.name||h.renameManager.startRenaming(n),h.eventBus.publish(r.DiagramEvents.RenderRequested),n},this.getCenter=function(){var e=[],t=[];return h.state.nodes.forEach(function(n){return e.push(n.x)&&t.push(n.y)}),{x:.5*(Math.max.apply(Math,e)+Math.min.apply(Math,e)),y:.5*(Math.max.apply(Math,t)+Math.min.apply(Math,t))}},this.openPortMenu=function(e){if(h.state.isReadOnly||h.state.menu||h.state.drawedConnection)h.state.drawedConnection=void 0;else{h.eventBus.publish(r.DiagramEvents.PickRequested,e);var t=h.state.hover,n=t.io,s=t.node;if(s&&n){var a=function e(t){return t.definition?{name:(i=t.definition).type,help:i.help,action:function(){var e=h.createNode(h.placeConnectedNode(s,n),i);h.connectionManager.makeConnection("i"===n?s:e,"o"===n?s:e),h.theme.autoBeuatify&&(h.beautifyNodesInPlace(e),h.htmlManager.nodeMoved())}}:{name:t.category.name,children:t.category.definitions.map(e)};var i},c=s.definition;"i"===n&&s.inputs?h.state.categories=o.NodeUtils.getDefinitionAcceptedInputCategories(c,h.state.nodeDefinitions,void 0,h.state.nodes,s).map(a):"o"===n&&s.outputs&&(h.state.categories=o.NodeUtils.getDefinitionAcceptedOutputCategories(c,h.state.nodeDefinitions,void 0,h.state.nodes,s).map(a));var l=s.definition.categories;l&&("i"===n&&l.inputs&&(h.state.categories=h.state.categories.concat(l.inputs)),"o"===n&&l.outputs&&(h.state.categories=h.state.categories.concat(l.outputs)));var u=h.uiManager.worldToScreen(i({},e,{x:s.x,y:s.y}));h.state.hover={},h.eventBus.publish(r.DiagramEvents.MenuRequested,u)}}},this.eventBus.subscribe(r.IOEvents.WorldLeftMouseClick,this.selectNode),this.eventBus.subscribe(r.IOEvents.WorldLeftMouseClick,this.goToNodeType),this.eventBus.subscribe(r.IOEvents.ScreenRightMouseUp,this.openNodeMenu),this.eventBus.subscribe(r.IOEvents.ScreenMouseLeave,this.handleScreenLeave),this.eventBus.subscribe(r.IOEvents.WorldLeftMouseUp,this.openPortMenu),this.eventBus.subscribe(r.DiagramEvents.NodeCreationRequested,this.createNode),this.eventBus.subscribe(r.IOEvents.WorldMouseDragEnd,this.movedNodes),this.eventBus.subscribe(r.DiagramEvents.NodeSelected,this.storeNodes),this.eventBus.subscribe(r.IOEvents.BackspacePressed,this.deleteSelectedNodes),this.renameManager=new a.RenameManager(e,this.eventBus,this.htmlManager)}}();t.NodeManager=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),r=n(57),o=n(40).Utils.getUniquePrefix("RenameManager"),s=function(e){return{position:"fixed",transformOrigin:"top left",width:e.node.width/2+"px",height:e.node.height/2+"px",fontSize:e.node.nameSize/2+"px",background:"transparent",color:e.colors.node.name,textAlign:"center",border:"0",outline:"0"}},a=function(){function e(t,n,o){var a=this;this.state=t,this.eventBus=n,this.htmlManager=o,this.registeredRenameElement=null,this.nodeMoving=function(){a.state.renamed&&a.registeredRenameElement&&a.state.selectedNodes.indexOf(a.state.renamed)>-1&&(a.registeredRenameElement.refs.input.style.pointerEvents="none")},this.nodeMoved=function(){a.state.renamed&&a.registeredRenameElement&&(a.registeredRenameElement.refs.input.style.pointerEvents="all")},this.tryToRenameNode=function(){if(!(0==a.state.selectedNodes.length||a.state.selectedNodes.length>1)){var e=a.state.selectedNodes[0];e&&!a.state.isReadOnly&&a.startRenaming(e)}},this.startRenaming=function(t){a.state.renamed=t,a.clearRenameInputs();var n=t.x,r=t.y,o=a.htmlManager.createElementFromHTML('\n      <input class="'+e.containerClassName+'" data-ref="input" value="'+t.name+'"/>\n    ',n,r,!0,{x:0,y:-1},t),s=o.refs;window.requestAnimationFrame(function(){s.input.select()});var c=function e(){s.input.removeEventListener("blur",e),a.finalizeRenaming(s.input.value)};s.input.addEventListener("blur",c),s.input.addEventListener("keydown",function(e){"Enter"===e.key&&c(),"Escape"===e.key&&(s.input.removeEventListener("blur",c),a.cancelRenaming())}),a.registeredRenameElement=o,a.eventBus.publish(i.DiagramEvents.RenderRequested)},this.clearRenameInputs=function(){a.registeredRenameElement&&a.registeredRenameElement.remove()},this.cancelRenaming=function(){delete a.state.renamed,a.clearRenameInputs(),a.eventBus.publish(i.DiagramEvents.RenderRequested)},this.finalizeRenaming=function(e){if(a.state.renamed){var t=a.state.renamed;if(a.state.isReadOnly||t.notEditable||t.readonly)return;t.name=e,t.editsDefinitions&&t.editsDefinitions.forEach(function(t){return t.type=e}),a.eventBus.publish(i.DiagramEvents.NodeChanged),a.eventBus.publish(i.DiagramEvents.RenderRequested)}delete a.state.renamed,a.clearRenameInputs(),a.eventBus.publish(i.DiagramEvents.RenderRequested)},this.nodeSelectionChange=function(){0===a.state.selectedNodes.length||a.state.selectedNodes.length>1?a.clearRenameInputs():a.startRenaming(a.state.selectedNodes[0])},this.state,this.htmlManager,this.eventBus.subscribe(i.IOEvents.ScreenDoubleClick,this.tryToRenameNode),this.eventBus.subscribe(i.IOEvents.WorldMouseDrag,this.nodeMoving),this.eventBus.subscribe(i.DiagramEvents.NodeMoved,this.nodeMoved),r.CSSMiniEngine.instance.addClass(s,e.containerClassName)}return e.containerClassName=o+"Container",e}();t.RenameManager=a},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=n(40),s=n(78),a=n(79),c=function(){return function(e,t,n,c){var l=this;this.eventBus=e,this.state=t,this.theme=n,this.connectionFunction=c,this.loadLinks=function(e){l.state.links=e,l.rebuildTree()},this.rebuildTree=function(){l.state.trees.link=new a.QuadTree,l.state.links.forEach(function(e){return l.state.trees.link.insert(s.LinkUtils.linkToTree(e,l.theme))})},this.onNodesDelete=function(e){l.deleteLinks(l.state.links.filter(function(t){return e.find(function(e){return e===t.i||e===t.o})}))},this.deleteLinks=function(e){l.state.links=l.state.links.filter(function(t){return!e.find(function(e){return e===t})}),e.forEach(function(e){e.o.outputs=e.o.outputs.filter(function(t){return t!==e.i}),e.i.inputs=e.i.inputs.filter(function(t){return t!==e.o})}),l.rebuildTree(),l.eventBus.publish(r.DiagramEvents.RenderRequested),l.eventBus.publish(r.DiagramEvents.LinkDeleted)},this.openLinkMenu=function(e){var t=l.state.hover.link;l.state.isReadOnly||!t||l.state.menu||(l.state.categories=[{name:"delete",action:function(){return l.deleteLinks([t])}}],l.state.menu=!0)},this.startDrawingConnector=function(e){if(!l.state.isReadOnly){var t=l.state.hover,n=t.io,i=t.node,r=t.menu;if(n&&i&&!r)return l.state.draw={node:i,io:n,initialPos:e},void(l.state.uiState.draggingElements=!0);l.state.draw=void 0}},this.drawConnector=function(e){if(l.state.draw){var t=l.state.draw,n=t.io,o=t.node;n&&o&&(l.state.drawedConnection=i({},e),l.eventBus.publish(r.DiagramEvents.RenderRequested))}},this.cancelDrawing=function(){l.state.draw=void 0},this.makeConnection=function(e,t){if(l.connectionFunction(e,t)&&!l.state.links.find(function(n){return n.i===e&&n.o===t})&&function(){var n=o.NodeUtils.getDefinitionAcceptedInputs(e.definition,l.state.nodeDefinitions,t.definition,l.state.nodes,e);if(!n)return!1;for(var i=0,r=n;i<r.length;i++){var s=r[i];if(s.type===t.definition.type)return!0;if(t.definition.parent&&s.type===t.definition.parent.type)return!0}return!1}()){var n={o:t,i:e,centerPoint:l.theme.link.defaultCenterPoint};return l.state.links.push(n),e.inputs.push(t),t.outputs.push(e),l.state.trees.link.insert(l.linkToTree(n)),l.eventBus.publish(r.DiagramEvents.LinkCreated),n}l.eventBus.publish(r.DiagramEvents.RenderRequested)},this.onNodeMoved=function(e){for(var t=0,n=l.state.links.filter(function(t){return e.find(function(e){return e===t.i||e===t.o})}).map(l.linkToTree);t<n.length;t++){var i=n[t];l.state.trees.link.update(i.data,{x:i.bb.min.x,y:i.bb.min.y},i.bb)}},this.moveLink=function(e){var t=l.state.hover.link;t&&(l.state.uiState.draggingElements?(t.centerPoint=o.Utils.clamp(s.LinkUtils.calculateLinkCenterPoint(t,e,l.theme),.1,.9),l.state.uiState.lastDragPosition=i({},e),l.eventBus.publish(r.DiagramEvents.RenderRequested)):l.state.uiState.draggingElements=!0)},this.movedLink=function(){var e=l.state.hover.link;if(e){var t=l.linkToTree(e);l.state.trees.link.update(e,{x:l.state.uiState.lastDragPosition.x,y:l.state.uiState.lastDragPosition.y},t.bb),l.eventBus.publish(r.DiagramEvents.LinkMoved)}},this.linkToTree=function(e){return s.LinkUtils.linkToTree(e,l.theme)},this.endDrawingConnector=function(e){if(l.state.draw){if(l.state.hover.io&&l.state.hover.io!==l.state.draw.io){var t="i"===l.state.hover.io?l.state.hover.node:l.state.draw.node,n="o"===l.state.hover.io?l.state.hover.node:l.state.draw.node;l.makeConnection(t,n)}l.cancelDrawing(),l.eventBus.publish(r.DiagramEvents.RenderRequested)}},this.eventBus.subscribe(r.IOEvents.WorldLeftMouseClick,this.startDrawingConnector),this.eventBus.subscribe(r.IOEvents.WorldMouseDragEnd,this.endDrawingConnector),this.eventBus.subscribe(r.DiagramEvents.NodeMoved,this.onNodeMoved),this.eventBus.subscribe(r.IOEvents.WorldMouseDragEnd,this.movedLink),this.eventBus.subscribe(r.IOEvents.ScreenRightMouseClick,this.openLinkMenu),this.eventBus.subscribe(r.DiagramEvents.NodeDeleted,this.onNodesDelete)}}();t.ConnectionManager=c},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=n(52),s=2,a=function(){function e(e,t,n){var a=this;this.state=e,this.eventBus=t,this.theme=n,this.mouseWheel=function(e,t,n){if(a.state.animatingPan)return!1;var i=e/-800,o=a.state.scale+i;o<.3&&(o=.3),o>1.5&&(o=1.5),a.state.panX=a.state.panX+t/o-t/a.state.scale,a.state.panY=a.state.panY+n/o-n/a.state.scale,a.state.scale=o,a.eventBus.publish(r.DiagramEvents.RenderRequested),a.eventBus.publish(r.DiagramEvents.ViewModelChanged,a.getViewModel())},this.calculateAnimations=function(e){if(!a.state.animatingPan)return!1;if(a.state.targetPanX&&a.state.targetPanY&&a.state.panX&&a.state.panY){var t=[a.state.targetPanX-a.state.panX,a.state.targetPanY-a.state.panY],n=t[0],i=t[1];return Math.abs(n)<s&&Math.abs(i)<s?(a.state.panX=a.state.targetPanX,a.state.panY=a.state.targetPanY,a.state.animatingPan=!1,!1):(a.state.panX+=n/Math.max(a.autoPanSmoothing/e,1),a.state.panY+=i/Math.max(a.autoPanSmoothing/e,1),a.eventBus.publish(r.DiagramEvents.RenderRequested),!0)}},this.worldToScreen=function(e){return{x:(e.x+a.state.panX)*a.state.scale,y:(e.y+a.state.panY)*a.state.scale,shiftKey:e.shiftKey}},this.screenToWorld=function(e){return{x:e.x/a.state.scale-a.state.panX,y:e.y/a.state.scale-a.state.panY,shiftKey:e.shiftKey}},this.centerOnNode=function(e){a.autoPanSmoothing?(a.state.targetPanX=-(e.x+a.theme.node.width/2)+a.state.areaSize.width/2/a.state.scale,a.state.targetPanY=-(e.y+a.theme.node.height/2)+a.state.areaSize.height/2/a.state.scale,a.state.animatingPan=!0):(a.state.panX=-(e.x+a.theme.node.width/2)+a.state.areaSize.width/2/a.state.scale,a.state.panY=-(e.y+a.theme.node.height/2)+a.state.areaSize.height/2/a.state.scale),a.eventBus.publish(r.DiagramEvents.RenderRequested)},this.calculateMinimapPosition=function(e){var t=a.state.areaSize.width-a.theme.minimap.size-a.theme.minimap.margin,n=a.state.areaSize.width-a.theme.minimap.margin,i=a.theme.minimap.margin,r=a.theme.minimap.margin+a.theme.minimap.size;return e.x>t&&e.x<n&&e.y>i&&e.y<r?{x:e.x-t,y:e.y-i}:null},this.mouseOverMove=function(e){a.calculateMinimapPosition(e)&&!a.state.draggingWorld||a.eventBus.publish(r.IOEvents.WorldMouseOverMove,a.screenToWorld(e))},this.mouseMove=function(e){var t=a.calculateMinimapPosition(e);!t||a.state.draggingWorld?a.eventBus.publish(r.IOEvents.WorldMouseMove,a.screenToWorld(e)):a.eventBus.publish(r.IOEvents.MinimapMouseMove,t)},this.mouseDrag=function(e){if(!a.calculateMinimapPosition(e)||a.state.draggingElements){var t=a.screenToWorld(e);a.eventBus.publish(r.IOEvents.WorldMouseDrag,{withoutPan:{x:t.x+a.state.panX,y:t.y+a.state.panY,shiftKey:t.shiftKey},calculated:t})}},this.LMBUp=function(e){a.state.draggingElements&&a.eventBus.publish(r.IOEvents.WorldMouseDragEnd),a.state.draggingWorld&&a.eventBus.publish(r.DiagramEvents.ViewModelChanged,a.getViewModel()),a.eventBus.publish(r.IOEvents.WorldLeftMouseUp,a.screenToWorld(e)),a.state.draggingWorld=!1,a.state.draggingElements=!1,a.state.draggingMinimap=!1},this.LMBPressed=function(e){var t=a.calculateMinimapPosition(e);t?a.eventBus.publish(r.IOEvents.MinimapLeftMouseClick,t):(a.state.lastDragPosition={x:e.x/a.state.scale,y:e.y/a.state.scale},a.eventBus.publish(r.IOEvents.WorldLeftMouseClick,a.screenToWorld(e),{x:a.state.panX,y:a.state.panY}))},this.panScreen=function(e){a.state.lastDragPosition&&(a.state.animatingPan=!1,a.state.draggingWorld=!0,a.state.panX-=a.state.lastDragPosition.x-e.x,a.state.panY-=a.state.lastDragPosition.y-e.y,a.state.lastDragPosition=i({},e),a.eventBus.publish(r.DiagramEvents.RenderRequested))},this.panTo=function(e){a.state.panX=-e.x,a.state.panY=-e.y,a.eventBus.publish(r.DiagramEvents.RenderRequested)},this.centerPanTo=function(e){a.state.panX=-e.x+a.state.areaSize.width/2,a.state.panY=-e.y+a.state.areaSize.height/2,a.eventBus.publish(r.DiagramEvents.RenderRequested)},this.eventBus.subscribe(r.IOEvents.ScreenMouseMove,this.mouseMove),this.eventBus.subscribe(r.IOEvents.ScreenMouseOverMove,this.mouseOverMove),this.eventBus.subscribe(r.IOEvents.ScreenMouseWheel,this.mouseWheel),this.eventBus.subscribe(r.IOEvents.ScreenMouseDrag,this.mouseDrag),this.eventBus.subscribe(r.IOEvents.ScreenLeftMouseClick,this.LMBPressed),this.eventBus.subscribe(r.IOEvents.ScreenLeftMouseUp,this.LMBUp),this.eventBus.subscribe(r.DiagramEvents.PanRequested,this.panTo),this.eventBus.subscribe(r.DiagramEvents.CenterPanRequested,this.centerPanTo),this.eventBus.subscribe(r.DiagramEvents.CenterOnNode,this.centerOnNode),this.autoPanSmoothing=o.ConfigurationManager.instance.getOption("autoPanSmoothing")}return e.prototype.getViewModel=function(){return{pan:{x:this.state.panX,y:this.state.panY},scale:this.state.scale}},e}();t.UIManager=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),r=n(40),o=function(){function e(e,t,n){var r=this;this.state=e,this.eventBus=t,this.theme=n,this.minimapLeftMouseClick=function(){r.state.uiState.draggingMinimap=!0},this.minimapMouseMove=function(e){var t=e.x,n=e.y;r.state.uiState.draggingMinimap&&r.performPanning({x:t,y:n}),r.state.hoverMinimap=!0,r.state.hover.node=void 0,r.eventBus.publish(i.DiagramEvents.RenderRequested)},this.worldMouseMove=function(){r.state.hoverMinimap&&(r.state.hoverMinimap=!1,r.eventBus.publish(i.DiagramEvents.RenderRequested))},this.eventBus.subscribe(i.IOEvents.MinimapMouseMove,this.minimapMouseMove),this.eventBus.subscribe(i.IOEvents.MinimapLeftMouseClick,this.minimapLeftMouseClick),this.eventBus.subscribe(i.IOEvents.WorldMouseMove,this.worldMouseMove)}return e.prototype.performPanning=function(e){var t=r.MinimapUtils.getBoundingBoxViewport({x:this.state.uiState.panX,y:this.state.uiState.panY},this.state.uiState.scale,this.state.uiState.areaSize),n=r.MinimapUtils.getMiniMapBoundaries(t,this.state.uiState.areaSize),o=r.MinimapUtils.mapToWorldPoint(e,n,this.theme.minimap.size),s={x:-o.x+this.state.uiState.areaSize.width/2/this.state.uiState.scale,y:-o.y+this.state.uiState.areaSize.height/2/this.state.uiState.scale},a=r.MinimapUtils.getBoundingBoxViewport(s,this.state.uiState.scale,this.state.uiState.areaSize);(a.left<n.left||a.right>n.left+n.width)&&(s.x=this.state.uiState.panX),(a.top<n.top||a.bottom>n.top+n.height)&&(s.y=this.state.uiState.panY),this.state.uiState.panX=s.x,this.state.uiState.panY=s.y,this.eventBus.publish(i.DiagramEvents.RenderRequested)},e}();t.MinimapManager=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),r=function(){return function(e,t,n,r){var o=this;this.state=e,this.eventBus=t,this.theme=n,this.disableLinkOperations=r,this.somethingHovered=function(){for(var e=0,t=Object.keys(o.state.hover);e<t.length;e++){var n=t[e];if(o.state.hover.valueOf()[n])return!0}},this.hover=function(e){var t=o.state.trees.node.pick(e);if(!t){if(o.state.draw)return;var n=void 0;return o.disableLinkOperations||(n=o.state.trees.link.pick(e)),o.state.hover={link:n},void o.eventBus.publish(i.DiagramEvents.RenderRequested)}var r=e.x-t.x,s=e.y-t.y,a=r>o.theme.node.width&&t.outputs?"o":r<0&&t.inputs?"i":void 0,c=s<0||void 0;o.state.hover.io===a&&o.state.hover.node===t&&o.state.hover.type===c||(o.state.hover={node:t,type:c},o.state.isReadOnly||(o.state.hover.io=a),o.eventBus.publish(i.DiagramEvents.RenderRequested))},this.eventBus.subscribe(i.IOEvents.WorldMouseOverMove,this.hover),this.eventBus.subscribe(i.DiagramEvents.PickRequested,this.hover)}}();t.HoverManager=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),r=n(40),o=n(57),s=r.Utils.getUniquePrefix("MenuManager"),a=function(e){return{position:"fixed",background:e.colors.menu.background,padding:e.menu.padding,borderRadius:e.menu.borderRadius,maxWidth:e.menu.maxWidth+"px",maxHeight:e.menu.maxHeight+"px",overflowY:"auto",zIndex:"100"}},c=function(e){return{position:"relative",textAlign:"left",verticalAlign:"middle",color:e.colors.menu.text,fontSize:e.menu.category.fontSize,fontWeight:e.menu.category.fontWeight,padding:e.menu.category.padding,cursor:"pointer"}},l=function(){function e(t,n,r,s){var l=this;this.state=t,this.eventBus=n,this.uiManager=r,this.htmlManager=s,this.activeMenu=null,this.activeCategories=[],this.activeMenuPosition={x:0,y:0},this.clickMenuItem=function(e){e.action?(e.action(),l.closeMenus()):e.children&&(l.state.categories=e.children,l.openMenu(l.activeMenuPosition))},this.closeMenus=function(){l.htmlManager.hideHelp(),l.activeMenu&&(l.activeMenu.remove(),l.activeMenu=null)},this.openNewNodeMenu=function(e){if(!l.state.isReadOnly&&!l.state.draw){var t=l.state.hover,n=t.node,r=t.link;if(!n&&!r){var o=l.uiManager.screenToWorld(e);l.state.categories=l.state.nodeDefinitions.filter(function(e){return e.root}).filter(function(e){return!e.hidden}).map(function(e){return{name:e.type,help:e.help,action:function(){l.eventBus.publish(i.DiagramEvents.NodeCreationRequested,o,e)}}}),l.openMenu(e)}}},this.openMenu=function(t){if(l.closeMenus(),!(l.state.categories.length<1)&&!l.state.isReadOnly&&!l.state.draw){l.activeMenuPosition=t;var n=l.uiManager.screenToWorld(t);l.activeCategories=l.state.categories.slice();var r=l.state.categories.map(function(t,n){return'<div class="'+e.menuElementClassName+'" data-ref="category-btn">'+t.name+"</div>"}).join("");l.activeMenu=l.htmlManager.createElementFromHTML('\n        <div class="'+e.menuBaseClassName+'" data-ref="root">\n          '+r+"\n        </div>\n        ",n.x,n.y,!1,{x:0,y:0}),l.activeMenu.refs.root.querySelectorAll("."+e.menuElementClassName).forEach(function(e,t){var n=l.activeCategories[t];e.addEventListener("click",function(){l.eventBus.publish(i.DiagramEvents.MenuItemClicked,n)}),e.addEventListener("mouseenter",function(){n.help&&l.htmlManager.renderHelp({text:n.help||"",title:n.name})}),e.addEventListener("mouseleave",function(){l.htmlManager.hideHelp()})}),l.eventBus.publish(i.DiagramEvents.RenderRequested)}},this.eventBus.subscribe(i.DiagramEvents.MenuRequested,this.openMenu),this.eventBus.subscribe(i.DiagramEvents.MenuItemClicked,this.clickMenuItem),this.eventBus.subscribe(i.IOEvents.WorldLeftMouseClick,this.closeMenus),this.eventBus.subscribe(i.IOEvents.ScreenRightMouseUp,this.openNewNodeMenu),o.CSSMiniEngine.instance.addClass(a,e.menuBaseClassName),o.CSSMiniEngine.instance.addClass(c,e.menuElementClassName)}return e.menuBaseClassName=s+"Base",e.menuElementClassName=s+"Element",e}();t.MenuManager=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),r=function(){return function(e,t){var n=this;this.state=e,this.eventBus=t,this.past=[{nodes:[],links:[]}],this.future=[],this.dataChange=function(){n.snapshot("past");var e={nodes:n.state.nodes,links:n.state.links};n.eventBus.publish(i.DiagramEvents.DataModelChanged,e)},this.positionChange=function(){var e={nodes:n.state.nodes,links:n.state.links};n.eventBus.publish(i.DiagramEvents.ViewModelChanged,e)},this.unsnap=function(e){var t=n[e].pop();n.snapshot("past"===e?"future":"past"),n.state.nodes=t.nodes.slice(),n.state.links=t.links.slice(),n.eventBus.publish(i.DiagramEvents.RebuildTreeRequested),n.eventBus.publish(i.DiagramEvents.RenderRequested),n.eventBus.publish(i.DiagramEvents.SerialisationRequested)},this.undo=function(){n.past.length>1&&(n.past.pop(),n.unsnap("past"))},this.redo=function(){n.future.length>0&&n.unsnap("future")},this.snapshot=function(e,t){t&&(delete n[t],n[t]=[]),n[e].length>50&&n[e].shift(),n[e].push({nodes:n.state.nodes.slice(),links:n.state.links.slice()})},this.eventBus.subscribe(i.DiagramEvents.DescriptionRenameEnded,this.dataChange),this.eventBus.subscribe(i.DiagramEvents.NodeCreated,this.dataChange),this.eventBus.subscribe(i.DiagramEvents.NodeDeleted,this.dataChange),this.eventBus.subscribe(i.DiagramEvents.NodeChanged,this.dataChange),this.eventBus.subscribe(i.DiagramEvents.LinkCreated,this.dataChange),this.eventBus.subscribe(i.DiagramEvents.LinkDeleted,this.dataChange),this.eventBus.subscribe(i.DiagramEvents.UndoRequested,this.undo),this.eventBus.subscribe(i.DiagramEvents.RedoRequested,this.redo),this.eventBus.subscribe(i.DiagramEvents.SerialisationRequested,this.dataChange),this.eventBus.subscribe(i.DiagramEvents.LinkMoved,this.positionChange),this.eventBus.subscribe(i.DiagramEvents.NodeMoved,this.positionChange)}}();t.ChangesManager=r},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=n(57),s=n(40).Utils.getUniquePrefix("HtmlManager"),a=function(e){return{position:"absolute",left:"10px",top:"10px",right:e.minimap.size/2+20+"px",height:"auto",pointerEvents:"none",display:"none",padding:e.help.padding+"px",background:e.colors.help.background}},c=function(e){return{fontSize:e.help.title.text+"px",color:e.colors.help.title,marginBottom:"10px"}},l=function(e){return{fontSize:e.help.text+"px",color:e.colors.help.text,lineHeight:e.help.lineHeight+"px"}};var u=function(){function e(e,t,n,i){var u=this;this.state=e,this.eventBus=t,this.getHostElement=n,this.theme=i,this.created=!1,this.prepareHelpMarkup=function(){var e=document.createElement("div"),t=document.createElement("div"),n=document.createElement("div");u.getHostElement().appendChild(n),n.className=s+"container",e.className=s+"title",t.className=s+"content",n.appendChild(e),n.appendChild(t),u.helpElements=[n,e,t]},this.renderHelp=function(e){if(u.helpElements){var t=u.helpElements,n=t[0],i=t[1],r=t[2];n.style.display="block",i.innerText=e.title,r.innerText=e.text}},this.hideHelp=function(){u.helpElements&&(u.helpElements[0].style.display="none")},this.renderRequested=function(){u.elements.forEach(function(e){var t=u.state.uiState.scale,n=(u.state.uiState.panX+e.x)/2,i=(u.state.uiState.panY+e.y)/2,r=u.theme.node.width;e.scalable?"topCenter"===e.paddedBy?e.element.style.transform="scale("+t+") translate(calc(-50% + "+r/4+"px), -100%) translate("+n+"px, "+i+"px)":e.element.style.transform="scale("+t+") translate("+(n+e.paddedBy.x)+"px, "+(i+e.paddedBy.y)+"px)":"topCenter"===e.paddedBy?e.element.style.transform="translate(-50%, -100%) scale("+t+") translate("+.25*r+"px, 0) translate("+n+"px, "+i+"px) scale("+1/t+")":e.element.style.transform="scale("+t+") translate("+(n+e.paddedBy.x)+"px, "+(i+e.paddedBy.y)+"px) scale("+1/t+")"})},this.nodeMoved=function(){var e=u.state.selectedNodes[0];u.elements.forEach(function(t){e&&t.node===e&&(t.x=e.x,t.y=e.y,u.eventBus.publish(r.DiagramEvents.RenderRequested))})},this.removeElement=function(e){e.element.remove(),u.elements=u.elements.filter(function(t){return t!==e}),u.nodeAttachedElements=u.nodeAttachedElements.filter(function(t){return t!==e})},this.elements=[],this.nodeAttachedElements=[],this.state,this.eventBus.subscribe(r.DiagramEvents.RenderRequested,this.renderRequested),this.eventBus.subscribe(r.IOEvents.WorldMouseDrag,this.nodeMoved),o.CSSMiniEngine.instance.addClass(a,s+"container"),o.CSSMiniEngine.instance.addClass(c,s+"title"),o.CSSMiniEngine.instance.addClass(l,s+"content"),this.prepareHelpMarkup()}return e.prototype.createElementFromHTML=function(e,t,n,r,o,s){var a=this,c=function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}(e),l={x:t,y:n,element:c,id:123,paddedBy:o,scalable:r};this.elements.push(l),s&&(l.node=s,this.nodeAttachedElements.push(l)),c.style.left=this.getHostElement().offsetLeft+"px",c.style.top=this.getHostElement().offsetTop+"px",this.getHostElement().appendChild(c);var u=Array.from(c.querySelectorAll("[data-ref]")).reduce(function(e,t){var n;return i({},e,((n={})[t.getAttribute("data-ref")]=t,n))},{}),h=c.getAttribute("data-ref");return h&&(u[h]=c),{remove:function(){return a.removeElement(l)},refs:u}},e}();t.HtmlManager=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),r=n(57),o=n(40),s=n(52),a=o.Utils.getUniquePrefix("DescriptionManager"),c={position:"fixed",transformOrigin:"top left"},l=function(e){return{borderRadius:"3px",padding:"10px",background:e.colors.description.background,color:e.colors.description.text,width:e.description.width+"px",textAlign:"center",outline:"none",font:"normal "+e.description.fontSize+"px Helvetica",lineHeight:e.description.lineHeight+"px"}},u=function(e){return{minWidth:"10px",minHeight:"14px",display:"inline-block",outline:"none"}},h={height:"10px",pointerEvents:"none",position:"relative"},d=function(e){return{left:"50%",width:"10px",height:"10px",position:"absolute",transform:"translate(-5px, -5px) rotate(45deg)",background:e.colors.description.background}},f=function(){function e(t,n,o){var a=this;this.state=t,this.eventBus=n,this.htmlManager=o,this.registeredDescriptionElement=null,this.selectedNode=null,this.nodeMoving=function(){a.selectedNode&&a.registeredDescriptionElement&&a.state.selectedNodes.indexOf(a.selectedNode)>-1&&(a.registeredDescriptionElement.refs.container.style.pointerEvents="none")},this.nodeMoved=function(){a.selectedNode&&a.registeredDescriptionElement&&(a.registeredDescriptionElement.refs.container.style.pointerEvents="all")},this.assignDescriptionToNode=function(){if(a.registeredDescriptionElement){var e=a.registeredDescriptionElement.refs.span.innerHTML;a.selectedNode&&e!==a.DESCRIPTION_PLACEHOLDER&&(a.selectedNode.description=e,a.eventBus.publish(i.DiagramEvents.NodeChanged))}},this.clearDescription=function(){a.registeredDescriptionElement&&(a.assignDescriptionToNode(),a.registeredDescriptionElement.remove())},this.getNodeDescriptionValue=function(e){return e.description||a.DESCRIPTION_PLACEHOLDER},this.nodeSelectionChange=function(){if(0===a.state.selectedNodes.length||a.state.selectedNodes.length>1)a.clearDescription();else{var e=a.state.selectedNodes[0];!a.state.isReadOnly||e.description?a.registerNodeEditedDescription(e):a.clearDescription()}},this.registerNodeEditedDescription=function(t){var n=e.containerClassName,r=e.descriptionClassName,o=e.separatorClassName,s=e.descriptionSpanClassName;a.clearDescription();var c=t.x,l=t.y,u=a.state.isReadOnly?"":"contenteditable",h=a.htmlManager.createElementFromHTML('\n      <div class="'+n+'" data-ref="container">\n        <div class="'+r+'">\n          <span data-ref="span" '+u+' class="'+s+'">'+a.getNodeDescriptionValue(t)+'</span>\n        </div>\n        <div class="'+o+'"></div>\n      </div>\n    ',c,l,!1,"topCenter",t),d=h.refs;d.span.addEventListener("blur",function(){a.assignDescriptionToNode()}),d.span.addEventListener("focus",function(){if(!t.description){var e=document.createRange();e.selectNodeContents(d.span);var n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(e))}}),a.selectedNode=t,a.registeredDescriptionElement=h,a.eventBus.publish(i.DiagramEvents.RenderRequested)},this.state,this.DESCRIPTION_PLACEHOLDER=s.ConfigurationManager.instance.getOption("theme").description.placeholder,this.eventBus.subscribe(i.DiagramEvents.NodeSelected,this.nodeSelectionChange);var f=e.containerClassName,p=e.descriptionClassName,g=e.separatorClassName,m=e.descriptionSpanClassName;this.eventBus.subscribe(i.IOEvents.WorldMouseDrag,this.nodeMoving),this.eventBus.subscribe(i.DiagramEvents.NodeMoved,this.nodeMoved),r.CSSMiniEngine.instance.addClass(c,f),r.CSSMiniEngine.instance.addClass(l,p),r.CSSMiniEngine.instance.addClass(u,m),r.CSSMiniEngine.instance.addClass(h,g),r.CSSMiniEngine.instance.addClass(d,g,"::after")}return e.containerClassName=a+"Container",e.descriptionClassName=a+"Description",e.descriptionSpanClassName=a+"DescriptionSpan",e.separatorClassName=a+"Separator",e}();t.DescriptionManager=f},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=function(){function e(e,t){var n=this;this.element=t,this.currentScreenPosition={x:0,y:0},this.lastClick=Date.now(),this.eventBus=e,this.calculateClientBoundingRect(),t.addEventListener("mouseleave",function(e){e.preventDefault(),n.eventBus.publish(r.IOEvents.ScreenMouseLeave)}),t.addEventListener("mousemove",function(e){if(e.preventDefault(),n.elementRect){n.currentScreenPosition.x=2*e.clientX-2*n.elementRect.left,n.currentScreenPosition.y=2*e.clientY-2*n.elementRect.top;var t=n.createMouseEventPayload();n.eventBus.publish(r.IOEvents.ScreenMouseMove,t),1===e.buttons?n.eventBus.publish(r.IOEvents.ScreenMouseDrag,t):n.eventBus.publish(r.IOEvents.ScreenMouseOverMove,t)}}),t.addEventListener("wheel",function(e){e.preventDefault();var t=1===e.deltaMode?24*e.deltaY:e.deltaY,i=n.createMouseEventPayload();n.eventBus.publish(r.IOEvents.ScreenMouseWheel,t,i.x,i.y)}),t.addEventListener("mouseup",function(e){e.preventDefault(),1===e.which?n.eventBus.publish(r.IOEvents.ScreenLeftMouseUp,n.createMouseEventPayload()):3===e.which&&n.eventBus.publish(r.IOEvents.ScreenRightMouseUp,n.createMouseEventPayload())}),t.addEventListener("mousedown",function(e){if(1===e.which){n.eventBus.publish(r.IOEvents.ScreenLeftMouseClick,n.createMouseEventPayload({shiftKey:e.shiftKey}));var t=Date.now();t-n.lastClick<250&&n.eventBus.publish(r.IOEvents.ScreenDoubleClick,n.createMouseEventPayload()),n.lastClick=t}else 3===e.which&&n.eventBus.publish(r.IOEvents.ScreenRightMouseClick,n.createMouseEventPayload())}),t.addEventListener("keydown",function(e){var t=e.ctrlKey||e.metaKey;"m"===e.key&&n.eventBus.publish(r.IOEvents.MPressed),"Delete"===e.key&&n.eventBus.publish(r.IOEvents.DeletePressed),"Backspace"===e.key&&n.eventBus.publish(r.IOEvents.BackspacePressed),"z"===e.key&&t&&!e.shiftKey&&n.eventBus.publish(r.DiagramEvents.UndoRequested),"z"===e.key&&t&&e.shiftKey&&n.eventBus.publish(r.DiagramEvents.RedoRequested)})}return e.prototype.calculateClientBoundingRect=function(){this.elementRect=this.element.getBoundingClientRect()},e.prototype.createMouseEventPayload=function(e){return void 0===e&&(e={}),i({},this.currentScreenPosition,e)},e}();t.IO=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(202),r=n(203),o=n(77),s=function(){function e(){}return e.serialize=function(e){return{nodes:e.nodes.map(i.serializeNode),links:e.links.map(r.serializeLink)}},e.deserialize=function(e,t){e.nodes.filter(function(e){return e.definition.root}).forEach(function(e){var n=i.deserializeNodeDefinition(e.definition,t);o.NodeUtils.createObjectDefinition(n,e.name).forEach(function(e){return t.push(e)})});var n=e.nodes.map(function(e){return i.deserializeNode(e,t)}),s=e.links.map(function(e){return r.deserializeLink(e,n)});return{nodes:n,links:s}},e}();t.Serializer=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeNodeDefinition=function(e){var n=e.type,i=e.root,r=e.main,o=e.parent;return{main:r,root:i,type:n,parent:o&&t.serializeNodeDefinition(o)}},t.deserializeNodeDefinition=function(e,t){var n=e.type,i=e.root,r=e.main,o=e.parent;return t.find(function(e){return e.type===n&&e.root===i&&e.main===r&&(!o||!e.parent||e.parent.type===o.type)})},t.serializeNode=function(e){var n=e.id,i=e.name,r=e.description,o=e.x,s=e.y,a=e.options,c=e.readonly,l=e.definition,u=e.editsDefinitions;return{id:n,name:i,description:r,x:o,y:s,options:a,readonly:c,definition:t.serializeNodeDefinition(l),editsDefinitions:u&&u.map(t.serializeNodeDefinition)}},t.deserializeNode=function(e,n){var i=e.id,r=e.x,o=e.y,s=e.name,a=e.options,c=e.definition,l=e.description,u=e.editsDefinitions;return{id:i,x:r,y:o,name:s,options:a,description:l,readonly:e.readonly,definition:t.deserializeNodeDefinition(c,n),editsDefinitions:u&&u.map(function(e){return t.deserializeNodeDefinition(e,n)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeLink=function(e){var t=e.centerPoint,n=e.i,i=e.o;return{centerPoint:t,iId:n.id,oId:i.id}},t.deserializeLink=function(e,t){var n=e.centerPoint,i=e.iId,r=e.oId;return{centerPoint:n,i:t.find(function(e){return e.id===i}),o:t.find(function(e){return e.id===r})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.isObject=function(e){return!(e.clone||e.kind||!e.subType)||void 0},e.definitionFromOldNode=function(t,n){return{type:t.kind||t.type,root:e.isObject(t),parent:t.clone&&t.kind?{type:n.find(function(e){return e.id===t.clone}).type}:void 0}},e.deserialize=function(t){var n=t.links.map(function(e){return{centerPoint:.5,iId:e.to.nodeId,oId:e.from.nodeId}});return{nodes:t.nodes.map(function(n){return{id:n.id,x:n.x,y:n.y,name:name,description:"",options:n.required?["required"]:[],definition:e.definitionFromOldNode(n,t.nodes),editsDefinition:e.isObject(n)&&{type:n.kind}}}),links:n}},e}();t.Old=i},function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++h<t;)c&&c[h].run();h=-1,t=l.length}c=null,u=!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 p(e,t){this.fun=e,this.array=t}function g(){}r.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];l.push(new p(e,t)),1!==l.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};i.get||i.set?Object.defineProperty(t,n,i):t[n]=e[n]}return t.default=e,t}(n(13)),r=a(n(80)),o=a(n(100)),s=n(102);function a(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=(0,s.getAceInstance)(),g=p.acequire("ace/range").Range,m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?d(e):t}(this,h(t).call(this,e)),s.editorEvents.forEach(function(e){n[e]=n[e].bind(d(n))}),n.debounce=s.debounce,n}var n,r,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,i.Component),n=t,(r=[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.className,i=t.onBeforeLoad,r=t.onValidate,o=t.mode,a=t.focus,c=t.theme,l=t.fontSize,u=t.value,h=t.defaultValue,d=t.cursorStart,f=t.showGutter,g=t.wrapEnabled,m=t.showPrintMargin,v=t.scrollMargin,y=void 0===v?[0,0,0,0]:v,b=t.keyboardHandler,E=t.onLoad,w=t.commands,A=t.annotations,C=t.markers,F=t.placeholder;this.editor=p.edit(this.refEditor),i&&i(p);for(var T=Object.keys(this.props.editorProps),S=0;S<T.length;S++)this.editor[T[S]]=this.props.editorProps[T[S]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(y[0],y[1],y[2],y[3]),this.editor.getSession().setMode("ace/mode/".concat(o)),this.editor.setTheme("ace/theme/".concat(c)),this.editor.setFontSize(l),this.editor.getSession().setValue(h||u,d),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(f),this.editor.getSession().setUseWrapMode(g),this.editor.setShowPrintMargin(m),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),F&&this.updatePlaceholder(this.editor,F),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),r&&this.editor.getSession().on("changeAnnotation",function(){var t=e.editor.getSession().getAnnotations();e.props.onValidate(t)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(A||[]),C&&C.length>0&&this.handleMarkers(C);for(var O=this.editor.$options,x=0;x<s.editorOptions.length;x++){var k=s.editorOptions[x];O.hasOwnProperty(k)?this.editor.setOption(k,this.props[k]):this.props[k]&&console.warn("ReactAce: editor option ".concat(k," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}this.handleOptions(this.props),Array.isArray(w)&&w.forEach(function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)}),b&&this.editor.setKeyboardHandler("ace/keyboard/"+b),n&&(this.refEditor.className+=" "+n),E&&E(this.editor),this.editor.resize(),a&&this.editor.focus()}},{key:"componentDidUpdate",value:function(e){for(var t=e,n=this.props,i=0;i<s.editorOptions.length;i++){var r=s.editorOptions[i];n[r]!==t[r]&&this.editor.setOption(r,n[r])}if(n.className!==t.className){var a=this.refEditor.className.trim().split(" ");t.className.trim().split(" ").forEach(function(e){var t=a.indexOf(e);a.splice(t,1)}),this.refEditor.className=" "+n.className+" "+a.join(" ")}if(this.editor&&this.editor.getValue()!==n.value){this.silent=!0;var c=this.editor.session.selection.toJSON();this.editor.setValue(n.value,n.cursorStart),this.editor.session.selection.fromJSON(c),this.silent=!1}n.placeholder!==t.placeholder&&this.updatePlaceholder(),n.mode!==t.mode&&this.editor.getSession().setMode("ace/mode/"+n.mode),n.theme!==t.theme&&this.editor.setTheme("ace/theme/"+n.theme),n.keyboardHandler!==t.keyboardHandler&&(n.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+n.keyboardHandler):this.editor.setKeyboardHandler(null)),n.fontSize!==t.fontSize&&this.editor.setFontSize(n.fontSize),n.wrapEnabled!==t.wrapEnabled&&this.editor.getSession().setUseWrapMode(n.wrapEnabled),n.showPrintMargin!==t.showPrintMargin&&this.editor.setShowPrintMargin(n.showPrintMargin),n.showGutter!==t.showGutter&&this.editor.renderer.setShowGutter(n.showGutter),(0,o.default)(n.setOptions,t.setOptions)||this.handleOptions(n),(0,o.default)(n.annotations,t.annotations)||this.editor.getSession().setAnnotations(n.annotations||[]),!(0,o.default)(n.markers,t.markers)&&Array.isArray(n.markers)&&this.handleMarkers(n.markers),(0,o.default)(n.scrollMargin,t.scrollMargin)||this.handleScrollMargins(n.scrollMargin),e.height===this.props.height&&e.width===this.props.width||this.editor.resize(),this.props.focus&&!e.focus&&this.editor.focus()}},{key:"handleScrollMargins",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,0,0];this.editor.renderer.setScrollMargins(e[0],e[1],e[2],e[3])}},{key:"componentWillUnmount",value:function(){this.editor.destroy(),this.editor=null}},{key:"onChange",value:function(e){if(this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}}},{key:"onSelectionChange",value:function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}}},{key:"onCursorChange",value:function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}}},{key:"onInput",value:function(e){this.props.onInput&&this.props.onInput(e),this.props.placeholder&&this.updatePlaceholder()}},{key:"onFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)}},{key:"onBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)}},{key:"onCopy",value:function(e){this.props.onCopy&&this.props.onCopy(e)}},{key:"onPaste",value:function(e){this.props.onPaste&&this.props.onPaste(e)}},{key:"onScroll",value:function(){this.props.onScroll&&this.props.onScroll(this.editor)}},{key:"handleOptions",value:function(e){for(var t=Object.keys(e.setOptions),n=0;n<t.length;n++)this.editor.setOption(t[n],e.setOptions[t[n]])}},{key:"handleMarkers",value:function(e){var t=this,n=this.editor.getSession().getMarkers(!0);for(var i in n)n.hasOwnProperty(i)&&this.editor.getSession().removeMarker(n[i].id);for(var r in n=this.editor.getSession().getMarkers(!1))n.hasOwnProperty(r)&&"ace_active-line"!==n[r].clazz&&"ace_selected-word"!==n[r].clazz&&this.editor.getSession().removeMarker(n[r].id);e.forEach(function(e){var n=e.startRow,i=e.startCol,r=e.endRow,o=e.endCol,s=e.className,a=e.type,c=e.inFront,l=void 0!==c&&c,u=new g(n,i,r,o);t.editor.getSession().addMarker(u,s,a,l)})}},{key:"updatePlaceholder",value:function(){var e=this.editor,t=this.props.placeholder,n=!e.session.getValue().length,i=e.renderer.placeholderNode;!n&&i?(e.renderer.scroller.removeChild(e.renderer.placeholderNode),e.renderer.placeholderNode=null):n&&!i?((i=e.renderer.placeholderNode=document.createElement("div")).textContent=t||"",i.className="ace_comment ace_placeholder",i.style.padding="0 9px",i.style.position="absolute",i.style.zIndex="3",e.renderer.scroller.appendChild(i)):n&&i&&(i.textContent=t)}},{key:"updateRef",value:function(e){this.refEditor=e}},{key:"render",value:function(){var e=this.props,t=e.name,n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){l(e,t,n[t])})}return e}({width:e.width,height:e.height},e.style);return i.default.createElement("div",{ref:this.updateRef,id:t,style:n})}}])&&u(n.prototype,r),a&&u(n,a),t}();t.default=m,m.propTypes={mode:r.default.string,focus:r.default.bool,theme:r.default.string,name:r.default.string,className:r.default.string,height:r.default.string,width:r.default.string,fontSize:r.default.oneOfType([r.default.number,r.default.string]),showGutter:r.default.bool,onChange:r.default.func,onCopy:r.default.func,onPaste:r.default.func,onFocus:r.default.func,onInput:r.default.func,onBlur:r.default.func,onScroll:r.default.func,value:r.default.string,defaultValue:r.default.string,onLoad:r.default.func,onSelectionChange:r.default.func,onCursorChange:r.default.func,onBeforeLoad:r.default.func,onValidate:r.default.func,minLines:r.default.number,maxLines:r.default.number,readOnly:r.default.bool,highlightActiveLine:r.default.bool,tabSize:r.default.number,showPrintMargin:r.default.bool,cursorStart:r.default.number,debounceChangePeriod:r.default.number,editorProps:r.default.object,setOptions:r.default.object,style:r.default.object,scrollMargin:r.default.array,annotations:r.default.array,markers:r.default.array,keyboardHandler:r.default.string,wrapEnabled:r.default.bool,enableBasicAutocompletion:r.default.oneOfType([r.default.bool,r.default.array]),enableLiveAutocompletion:r.default.oneOfType([r.default.bool,r.default.array]),navigateToFileEnd:r.default.bool,commands:r.default.array,placeholder:r.default.string},m.defaultProps={name:"brace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",value:"",fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0}},function(e,t,n){"use strict";var i=n(208);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,s){if(s!==i){var a=new Error("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");throw a.name="Invariant Violation",a}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(t){var n="Expected a function",i="__lodash_hash_undefined__",r=1/0,o="[object Function]",s="[object GeneratorFunction]",a="[object Symbol]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,u=/^\./,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,p="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=p||g||Function("return this")();var v=Array.prototype,y=Function.prototype,b=Object.prototype,E=m["__core-js_shared__"],w=function(){var e=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),A=y.toString,C=b.hasOwnProperty,F=b.toString,T=RegExp("^"+A.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=m.Symbol,O=v.splice,x=j(m,"Map"),k=j(Object,"create"),_=S?S.prototype:void 0,D=_?_.toString:void 0;function R(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function B(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function M(e,t){for(var n,i,r=e.length;r--;)if((n=e[r][0])===(i=t)||n!==n&&i!==i)return r;return-1}function N(e,t){for(var n,i=0,r=(t=function(e,t){if(z(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||H(e))return!0;return l.test(e)||!c.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:z(n=t)?n:P(n)).length;null!=e&&i<r;)e=e[V(t[i++])];return i&&i==r?e:void 0}function $(e){return!(!W(e)||(t=e,w&&w in t))&&(function(e){var t=W(e)?F.call(e):"";return t==o||t==s}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?T:f).test(function(e){if(null!=e){try{return A.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e));var t}function I(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function j(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return $(n)?n:void 0}R.prototype.clear=function(){this.__data__=k?k(null):{}},R.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},R.prototype.get=function(e){var t=this.__data__;if(k){var n=t[e];return n===i?void 0:n}return C.call(t,e)?t[e]:void 0},R.prototype.has=function(e){var t=this.__data__;return k?void 0!==t[e]:C.call(t,e)},R.prototype.set=function(e,t){return this.__data__[e]=k&&void 0===t?i:t,this},B.prototype.clear=function(){this.__data__=[]},B.prototype.delete=function(e){var t=this.__data__,n=M(t,e);return!(n<0)&&(n==t.length-1?t.pop():O.call(t,n,1),!0)},B.prototype.get=function(e){var t=this.__data__,n=M(t,e);return n<0?void 0:t[n][1]},B.prototype.has=function(e){return M(this.__data__,e)>-1},B.prototype.set=function(e,t){var n=this.__data__,i=M(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},L.prototype.clear=function(){this.__data__={hash:new R,map:new(x||B),string:new R}},L.prototype.delete=function(e){return I(this,e).delete(e)},L.prototype.get=function(e){return I(this,e).get(e)},L.prototype.has=function(e){return I(this,e).has(e)},L.prototype.set=function(e,t){return I(this,e).set(e,t),this};var P=U(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(H(e))return D?D.call(e):"";var t=e+"";return"0"==t&&1/e==-r?"-0":t}(t);var n=[];return u.test(e)&&n.push(""),e.replace(h,function(e,t,i,r){n.push(i?r.replace(d,"$1"):t||e)}),n});function V(e){if("string"==typeof e||H(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}function U(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var i=function n(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s),s};return i.cache=new(U.Cache||L),i}U.Cache=L;var z=Array.isArray;function W(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function H(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&F.call(e)==a}e.exports=function(e,t,n){var i=null==e?void 0:N(e,t);return void 0===i?n:i}}).call(this,n(101))},function(e,t){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,s=e("./editor").Editor,a=e("./virtual_renderer").VirtualRenderer,c=e("./edit_session").EditSession,l=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};function u(e,t){this.$u=e,this.$doc=t}(function(){i.implement(this,o),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new s(new a(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new c(e.getDocument(),e.getMode()),n=e.getUndoManager();if(n){var i=new u(n,t);t.setUndoManager(i)}return t.$informUndoManager=r.delayedCall(function(){t.$deltas=[]}),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;return n=null==t?this.$cEditor:this.$editors[t],this.$editors.some(function(t){return t.session===e})&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var i=t/this.$splits,r=0;r<this.$splits;r++)(e=this.$editors[r]).container.style.width=i+"px",e.container.style.top="0px",e.container.style.left=r*i+"px",e.container.style.height=n+"px",e.resize();else{var o=n/this.$splits;for(r=0;r<this.$splits;r++)(e=this.$editors[r]).container.style.width=t+"px",e.container.style.top=r*o+"px",e.container.style.left="0px",e.container.style.height=o+"px",e.resize()}}}).call(l.prototype),function(){this.execute=function(e){this.$u.execute(e)},this.undo=function(){var e=this.$u.undo(!0);e&&this.$doc.selection.setSelectionRange(e)},this.redo=function(){var e=this.$u.redo(!0);e&&this.$doc.selection.setSelectionRange(e)},this.reset=function(){this.$u.reset()},this.hasUndo=function(){return this.$u.hasUndo()},this.hasRedo=function(){return this.$u.hasRedo()}}.call(u.prototype),t.Split=l}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(e,t,n){"use strict";n.exports=e("../split")}),ace.acequire(["ace/ext/split"],function(){})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(105)),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};i.get||i.set?Object.defineProperty(t,n,i):t[n]=e[n]}return t.default=e,t}(n(13)),o=a(n(80)),s=a(n(213));function a(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?h(e):t}(this,u(t).call(this,e))).state={value:n.props.value},n.onChange=n.onChange.bind(h(n)),n.diff=n.diff.bind(h(n)),n}var n,o,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,r.Component),n=t,(o=[{key:"componentDidUpdate",value:function(){var e=this.props.value;e!==this.state.value&&this.setState({value:e})}},{key:"onChange",value:function(e){this.setState({value:e}),this.props.onChange&&this.props.onChange(e)}},{key:"diff",value:function(){var e=new s.default,t=this.state.value[0],n=this.state.value[1];if(0===t.length&&0===n.length)return[];var i=e.diff_main(t,n);e.diff_cleanupSemantic(i);var r=this.generateDiffedLines(i);return this.setCodeMarkers(r)}},{key:"generateDiffedLines",value:function(e){var t=0,n=-1,i=1,r={left:[],right:[]},o={left:1,right:1};return e.forEach(function(e){var s=e[0],a=e[1],c=a.split("\n").length-1;if(0!==a.length){var l=a[0],u=a[a.length-1],h=0;switch(s){case t:o.left+=c,o.right+=c;break;case n:"\n"===l&&(o.left++,c--),0===(h=c)&&r.right.push({startLine:o.right,endLine:o.right}),"\n"===u&&(h-=1),r.left.push({startLine:o.left,endLine:o.left+h}),o.left+=c;break;case i:"\n"===l&&(o.right++,c--),0===(h=c)&&r.left.push({startLine:o.left,endLine:o.left}),"\n"===u&&(h-=1),r.right.push({startLine:o.right,endLine:o.right+h}),o.right+=c;break;default:throw new Error("Diff type was not defined.")}}}),r}},{key:"setCodeMarkers",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:[],right:[]},t=[],n={left:[],right:[]},i=0;i<e.left.length;i++){var r={startRow:e.left[i].startLine-1,endRow:e.left[i].endLine,type:"text",className:"codeMarker"};n.left.push(r)}for(var o=0;o<e.right.length;o++){var s={startRow:e.right[o].startLine-1,endRow:e.right[o].endLine,type:"text",className:"codeMarker"};n.right.push(s)}return t[0]=n.left,t[1]=n.right,t}},{key:"render",value:function(){var e=this.diff();return r.default.createElement(i.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:e})}}])&&l(n.prototype,o),a&&l(n,a),t}();t.default=f,f.propTypes={cursorStart:o.default.number,editorProps:o.default.object,enableBasicAutocompletion:o.default.bool,enableLiveAutocompletion:o.default.bool,focus:o.default.bool,fontSize:o.default.number,height:o.default.string,highlightActiveLine:o.default.bool,maxLines:o.default.func,minLines:o.default.func,mode:o.default.string,name:o.default.string,className:o.default.string,onLoad:o.default.func,onPaste:o.default.func,onScroll:o.default.func,onChange:o.default.func,orientation:o.default.string,readOnly:o.default.bool,scrollMargin:o.default.array,setOptions:o.default.object,showGutter:o.default.bool,showPrintMargin:o.default.bool,splits:o.default.number,style:o.default.object,tabSize:o.default.number,theme:o.default.string,value:o.default.array,width:o.default.string,wrapEnabled:o.default.bool},f.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"brace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0}},function(e,t){function n(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}n.Diff,n.prototype.diff_main=function(e,t,n,i){"undefined"==typeof i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var r=i;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[[0,e]]:[];"undefined"==typeof n&&(n=!0);var o=n,s=this.diff_commonPrefix(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);var c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var l=this.diff_compute_(e,t,o,r);return a&&l.unshift([0,a]),c&&l.push([0,c]),this.diff_cleanupMerge(l),l},n.prototype.diff_compute_=function(e,t,n,i){var r;if(!e)return[[1,t]];if(!t)return[[-1,e]];var o=e.length>t.length?e:t,s=e.length>t.length?t:e,a=o.indexOf(s);if(-1!=a)return r=[[1,o.substring(0,a)],[0,s],[1,o.substring(a+s.length)]],e.length>t.length&&(r[0][0]=r[2][0]=-1),r;if(1==s.length)return[[-1,e],[1,t]];var c=this.diff_halfMatch_(e,t);if(c){var l=c[0],u=c[1],h=c[2],d=c[3],f=c[4],p=this.diff_main(l,h,n,i),g=this.diff_main(u,d,n,i);return p.concat([[0,f]],g)}return n&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,i):this.diff_bisect_(e,t,i)},n.prototype.diff_lineMode_=function(e,t,n){e=(u=this.diff_linesToChars_(e,t)).chars1,t=u.chars2;var i=u.lineArray,r=this.diff_main(e,t,!1,n);this.diff_charsToLines_(r,i),this.diff_cleanupSemantic(r),r.push([0,""]);for(var o=0,s=0,a=0,c="",l="";o<r.length;){switch(r[o][0]){case 1:a++,l+=r[o][1];break;case-1:s++,c+=r[o][1];break;case 0:if(s>=1&&a>=1){r.splice(o-s-a,s+a),o=o-s-a;for(var u,h=(u=this.diff_main(c,l,!1,n)).length-1;h>=0;h--)r.splice(o,0,u[h]);o+=u.length}a=0,s=0,c="",l=""}o++}return r.pop(),r},n.prototype.diff_bisect_=function(e,t,n){for(var i=e.length,r=t.length,o=Math.ceil((i+r)/2),s=o,a=2*o,c=new Array(a),l=new Array(a),u=0;u<a;u++)c[u]=-1,l[u]=-1;c[s+1]=0,l[s+1]=0;for(var h=i-r,d=h%2!=0,f=0,p=0,g=0,m=0,v=0;v<o&&!((new Date).getTime()>n);v++){for(var y=-v+f;y<=v-p;y+=2){for(var b=s+y,E=(T=y==-v||y!=v&&c[b-1]<c[b+1]?c[b+1]:c[b-1]+1)-y;T<i&&E<r&&e.charAt(T)==t.charAt(E);)T++,E++;if(c[b]=T,T>i)p+=2;else if(E>r)f+=2;else if(d){if((C=s+h-y)>=0&&C<a&&-1!=l[C])if(T>=(A=i-l[C]))return this.diff_bisectSplit_(e,t,T,E,n)}}for(var w=-v+g;w<=v-m;w+=2){for(var A,C=s+w,F=(A=w==-v||w!=v&&l[C-1]<l[C+1]?l[C+1]:l[C-1]+1)-w;A<i&&F<r&&e.charAt(i-A-1)==t.charAt(r-F-1);)A++,F++;if(l[C]=A,A>i)m+=2;else if(F>r)g+=2;else if(!d){if((b=s+h-w)>=0&&b<a&&-1!=c[b]){var T;E=s+(T=c[b])-b;if(T>=(A=i-A))return this.diff_bisectSplit_(e,t,T,E,n)}}}}return[[-1,e],[1,t]]},n.prototype.diff_bisectSplit_=function(e,t,n,i,r){var o=e.substring(0,n),s=t.substring(0,i),a=e.substring(n),c=t.substring(i),l=this.diff_main(o,s,!1,r),u=this.diff_main(a,c,!1,r);return l.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],i={};function r(e){for(var t="",r=0,o=-1,s=n.length;o<e.length-1;){-1==(o=e.indexOf("\n",r))&&(o=e.length-1);var a=e.substring(r,o+1);r=o+1,(i.hasOwnProperty?i.hasOwnProperty(a):void 0!==i[a])?t+=String.fromCharCode(i[a]):(t+=String.fromCharCode(s),i[a]=s,n[s++]=a)}return t}return n[0]="",{chars1:r(e),chars2:r(t),lineArray:n}},n.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var i=e[n][1],r=[],o=0;o<i.length;o++)r[o]=t[i.charCodeAt(o)];e[n][1]=r.join("")}},n.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,o=0;n<r;)e.substring(o,r)==t.substring(o,r)?o=n=r:i=r,r=Math.floor((i-n)/2+n);return r},n.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,o=0;n<r;)e.substring(e.length-r,e.length-o)==t.substring(t.length-r,t.length-o)?o=n=r:i=r,r=Math.floor((i-n)/2+n);return r},n.prototype.diff_commonOverlap_=function(e,t){var n=e.length,i=t.length;if(0==n||0==i)return 0;n>i?e=e.substring(n-i):n<i&&(t=t.substring(0,n));var r=Math.min(n,i);if(e==t)return r;for(var o=0,s=1;;){var a=e.substring(r-s),c=t.indexOf(a);if(-1==c)return o;s+=c,0!=c&&e.substring(r-s)!=t.substring(0,s)||(o=s,s++)}},n.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;var r=this;function o(e,t,n){for(var i,o,s,a,c=e.substring(n,n+Math.floor(e.length/4)),l=-1,u="";-1!=(l=t.indexOf(c,l+1));){var h=r.diff_commonPrefix(e.substring(n),t.substring(l)),d=r.diff_commonSuffix(e.substring(0,n),t.substring(0,l));u.length<d+h&&(u=t.substring(l-d,l)+t.substring(l,l+h),i=e.substring(0,n-d),o=e.substring(n+h),s=t.substring(0,l-d),a=t.substring(l+h))}return 2*u.length>=e.length?[i,o,s,a,u]:null}var s,a,c,l,u,h=o(n,i,Math.ceil(n.length/4)),d=o(n,i,Math.ceil(n.length/2));return h||d?(s=d?h&&h[4].length>d[4].length?h:d:h,e.length>t.length?(a=s[0],c=s[1],l=s[2],u=s[3]):(l=s[0],u=s[1],a=s[2],c=s[3]),[a,c,l,u,s[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,n=[],i=0,r=null,o=0,s=0,a=0,c=0,l=0;o<e.length;)0==e[o][0]?(n[i++]=o,s=c,a=l,c=0,l=0,r=e[o][1]):(1==e[o][0]?c+=e[o][1].length:l+=e[o][1].length,r&&r.length<=Math.max(s,a)&&r.length<=Math.max(c,l)&&(e.splice(n[i-1],0,[-1,r]),e[n[i-1]+1][0]=1,i--,o=--i>0?n[i-1]:-1,s=0,a=0,c=0,l=0,r=null,t=!0)),o++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o<e.length;){if(-1==e[o-1][0]&&1==e[o][0]){var u=e[o-1][1],h=e[o][1],d=this.diff_commonOverlap_(u,h),f=this.diff_commonOverlap_(h,u);d>=f?(d>=u.length/2||d>=h.length/2)&&(e.splice(o,0,[0,h.substring(0,d)]),e[o-1][1]=u.substring(0,u.length-d),e[o+1][1]=h.substring(d),o++):(f>=u.length/2||f>=h.length/2)&&(e.splice(o,0,[0,u.substring(0,f)]),e[o-1][0]=1,e[o-1][1]=h.substring(0,h.length-f),e[o+1][0]=-1,e[o+1][1]=u.substring(f),o++),o++}o++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var i=e.charAt(e.length-1),r=t.charAt(0),o=i.match(n.nonAlphaNumericRegex_),s=r.match(n.nonAlphaNumericRegex_),a=o&&i.match(n.whitespaceRegex_),c=s&&r.match(n.whitespaceRegex_),l=a&&i.match(n.linebreakRegex_),u=c&&r.match(n.linebreakRegex_),h=l&&e.match(n.blanklineEndRegex_),d=u&&t.match(n.blanklineStartRegex_);return h||d?5:l||u?4:o&&!a&&c?3:a||c?2:o||s?1:0}for(var i=1;i<e.length-1;){if(0==e[i-1][0]&&0==e[i+1][0]){var r=e[i-1][1],o=e[i][1],s=e[i+1][1],a=this.diff_commonSuffix(r,o);if(a){var c=o.substring(o.length-a);r=r.substring(0,r.length-a),o=c+o.substring(0,o.length-a),s=c+s}for(var l=r,u=o,h=s,d=t(r,o)+t(o,s);o.charAt(0)===s.charAt(0);){r+=o.charAt(0),o=o.substring(1)+s.charAt(0),s=s.substring(1);var f=t(r,o)+t(o,s);f>=d&&(d=f,l=r,u=o,h=s)}e[i-1][1]!=l&&(l?e[i-1][1]=l:(e.splice(i-1,1),i--),e[i][1]=u,h?e[i+1][1]=h:(e.splice(i+1,1),i--))}i++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,n=[],i=0,r=null,o=0,s=!1,a=!1,c=!1,l=!1;o<e.length;)0==e[o][0]?(e[o][1].length<this.Diff_EditCost&&(c||l)?(n[i++]=o,s=c,a=l,r=e[o][1]):(i=0,r=null),c=l=!1):(-1==e[o][0]?l=!0:c=!0,r&&(s&&a&&c&&l||r.length<this.Diff_EditCost/2&&s+a+c+l==3)&&(e.splice(n[i-1],0,[-1,r]),e[n[i-1]+1][0]=1,i--,r=null,s&&a?(c=l=!0,i=0):(o=--i>0?n[i-1]:-1,c=l=!1),t=!0)),o++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push([0,""]);for(var t,n=0,i=0,r=0,o="",s="";n<e.length;)switch(e[n][0]){case 1:r++,s+=e[n][1],n++;break;case-1:i++,o+=e[n][1],n++;break;case 0:i+r>1?(0!==i&&0!==r&&(0!==(t=this.diff_commonPrefix(s,o))&&(n-i-r>0&&0==e[n-i-r-1][0]?e[n-i-r-1][1]+=s.substring(0,t):(e.splice(0,0,[0,s.substring(0,t)]),n++),s=s.substring(t),o=o.substring(t)),0!==(t=this.diff_commonSuffix(s,o))&&(e[n][1]=s.substring(s.length-t)+e[n][1],s=s.substring(0,s.length-t),o=o.substring(0,o.length-t))),0===i?e.splice(n-r,i+r,[1,s]):0===r?e.splice(n-i,i+r,[-1,o]):e.splice(n-i-r,i+r,[-1,o],[1,s]),n=n-i-r+(i?1:0)+(r?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,i=0,o="",s=""}""===e[e.length-1][1]&&e.pop();var a=!1;for(n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),a=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),a=!0)),n++;a&&this.diff_cleanupMerge(e)},n.prototype.diff_xIndex=function(e,t){var n,i=0,r=0,o=0,s=0;for(n=0;n<e.length&&(1!==e[n][0]&&(i+=e[n][1].length),-1!==e[n][0]&&(r+=e[n][1].length),!(i>t));n++)o=i,s=r;return e.length!=n&&-1===e[n][0]?s:s+(t-o)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,i=/</g,r=/>/g,o=/\n/g,s=0;s<e.length;s++){var a=e[s][0],c=e[s][1].replace(n,"&amp;").replace(i,"&lt;").replace(r,"&gt;").replace(o,"&para;<br>");switch(a){case 1:t[s]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:t[s]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[s]="<span>"+c+"</span>"}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_levenshtein=function(e){for(var t=0,n=0,i=0,r=0;r<e.length;r++){var o=e[r][0],s=e[r][1];switch(o){case 1:n+=s.length;break;case-1:i+=s.length;break;case 0:t+=Math.max(n,i),n=0,i=0}}return t+=Math.max(n,i)},n.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case-1:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(e,t){for(var n=[],i=0,r=0,o=t.split(/\t/g),s=0;s<o.length;s++){var a=o[s].substring(1);switch(o[s].charAt(0)){case"+":try{n[i++]=[1,decodeURI(a)]}catch(u){throw new Error("Illegal escape in diff_fromDelta: "+a)}break;case"-":case"=":var c=parseInt(a,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+a);var l=e.substring(r,r+=c);"="==o[s].charAt(0)?n[i++]=[0,l]:n[i++]=[-1,l];break;default:if(o[s])throw new Error("Invalid diff operation in diff_fromDelta: "+o[s])}}if(r!=e.length)throw new Error("Delta length ("+r+") does not equal source text length ("+e.length+").");return n},n.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},n.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(t),r=this;function o(e,i){var o=e/t.length,s=Math.abs(n-i);return r.Match_Distance?o+s/r.Match_Distance:s?1:o}var s=this.Match_Threshold,a=e.indexOf(t,n);-1!=a&&(s=Math.min(o(0,a),s),-1!=(a=e.lastIndexOf(t,n+t.length))&&(s=Math.min(o(0,a),s)));var c,l,u=1<<t.length-1;a=-1;for(var h,d=t.length+e.length,f=0;f<t.length;f++){for(c=0,l=d;c<l;)o(f,n+l)<=s?c=l:d=l,l=Math.floor((d-c)/2+c);d=l;var p=Math.max(1,n-l+1),g=Math.min(n+l,e.length)+t.length,m=Array(g+2);m[g+1]=(1<<f)-1;for(var v=g;v>=p;v--){var y=i[e.charAt(v-1)];if(m[v]=0===f?(m[v+1]<<1|1)&y:(m[v+1]<<1|1)&y|(h[v+1]|h[v])<<1|1|h[v+1],m[v]&u){var b=o(f,v-1);if(b<=s){if(s=b,!((a=v-1)>n))break;p=Math.max(1,2*n-a)}}}if(o(f+1,n)>s)break;h=m}return a},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},n.prototype.patch_addContext_=function(e,t){if(0!=t.length){for(var n=t.substring(e.start2,e.start2+e.length1),i=0;t.indexOf(n)!=t.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,n=t.substring(e.start2-i,e.start2+e.length1+i);i+=this.Patch_Margin;var r=t.substring(e.start2-i,e.start2);r&&e.diffs.unshift([0,r]);var o=t.substring(e.start2+e.length1,e.start2+e.length1+i);o&&e.diffs.push([0,o]),e.start1-=r.length,e.start2-=r.length,e.length1+=r.length+o.length,e.length2+=r.length+o.length}},n.prototype.patch_make=function(e,t,i){var r,o;if("string"==typeof e&&"string"==typeof t&&"undefined"==typeof i)r=e,(o=this.diff_main(r,t,!0)).length>2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(e&&"object"==typeof e&&"undefined"==typeof t&&"undefined"==typeof i)o=e,r=this.diff_text1(o);else if("string"==typeof e&&t&&"object"==typeof t&&"undefined"==typeof i)r=e,o=t;else{if("string"!=typeof e||"string"!=typeof t||!i||"object"!=typeof i)throw new Error("Unknown call format to patch_make.");r=e,o=i}if(0===o.length)return[];for(var s=[],a=new n.patch_obj,c=0,l=0,u=0,h=r,d=r,f=0;f<o.length;f++){var p=o[f][0],g=o[f][1];switch(c||0===p||(a.start1=l,a.start2=u),p){case 1:a.diffs[c++]=o[f],a.length2+=g.length,d=d.substring(0,u)+g+d.substring(u);break;case-1:a.length1+=g.length,a.diffs[c++]=o[f],d=d.substring(0,u)+d.substring(u+g.length);break;case 0:g.length<=2*this.Patch_Margin&&c&&o.length!=f+1?(a.diffs[c++]=o[f],a.length1+=g.length,a.length2+=g.length):g.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(a,h),s.push(a),a=new n.patch_obj,c=0,h=d,l=u)}1!==p&&(l+=g.length),-1!==p&&(u+=g.length)}return c&&(this.patch_addContext_(a,h),s.push(a)),s},n.prototype.patch_deepCopy=function(e){for(var t=[],i=0;i<e.length;i++){var r=e[i],o=new n.patch_obj;o.diffs=[];for(var s=0;s<r.diffs.length;s++)o.diffs[s]=r.diffs[s].slice();o.start1=r.start1,o.start2=r.start2,o.length1=r.length1,o.length2=r.length2,t[i]=o}return t},n.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var i=0,r=[],o=0;o<e.length;o++){var s,a,c=e[o].start2+i,l=this.diff_text1(e[o].diffs),u=-1;if(l.length>this.Match_MaxBits?-1!=(s=this.match_main(t,l.substring(0,this.Match_MaxBits),c))&&(-1==(u=this.match_main(t,l.substring(l.length-this.Match_MaxBits),c+l.length-this.Match_MaxBits))||s>=u)&&(s=-1):s=this.match_main(t,l,c),-1==s)r[o]=!1,i-=e[o].length2-e[o].length1;else if(r[o]=!0,i=s-c,l==(a=-1==u?t.substring(s,s+l.length):t.substring(s,u+this.Match_MaxBits)))t=t.substring(0,s)+this.diff_text2(e[o].diffs)+t.substring(s+l.length);else{var h=this.diff_main(l,a,!1);if(l.length>this.Match_MaxBits&&this.diff_levenshtein(h)/l.length>this.Patch_DeleteThreshold)r[o]=!1;else{this.diff_cleanupSemanticLossless(h);for(var d,f=0,p=0;p<e[o].diffs.length;p++){var g=e[o].diffs[p];0!==g[0]&&(d=this.diff_xIndex(h,f)),1===g[0]?t=t.substring(0,s+d)+g[1]+t.substring(s+d):-1===g[0]&&(t=t.substring(0,s+d)+t.substring(s+this.diff_xIndex(h,f+g[1].length))),-1!==g[0]&&(f+=g[1].length)}}}}return[t=t.substring(n.length,t.length-n.length),r]},n.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,n="",i=1;i<=t;i++)n+=String.fromCharCode(i);for(i=0;i<e.length;i++)e[i].start1+=t,e[i].start2+=t;var r=e[0],o=r.diffs;if(0==o.length||0!=o[0][0])o.unshift([0,n]),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>o[0][1].length){var s=t-o[0][1].length;o[0][1]=n.substring(o[0][1].length)+o[0][1],r.start1-=s,r.start2-=s,r.length1+=s,r.length2+=s}if(0==(o=(r=e[e.length-1]).diffs).length||0!=o[o.length-1][0])o.push([0,n]),r.length1+=t,r.length2+=t;else if(t>o[o.length-1][1].length){s=t-o[o.length-1][1].length;o[o.length-1][1]+=n.substring(0,s),r.length1+=s,r.length2+=s}return n},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,i=0;i<e.length;i++)if(!(e[i].length1<=t)){var r=e[i];e.splice(i--,1);for(var o=r.start1,s=r.start2,a="";0!==r.diffs.length;){var c=new n.patch_obj,l=!0;for(c.start1=o-a.length,c.start2=s-a.length,""!==a&&(c.length1=c.length2=a.length,c.diffs.push([0,a]));0!==r.diffs.length&&c.length1<t-this.Patch_Margin;){var u=r.diffs[0][0],h=r.diffs[0][1];1===u?(c.length2+=h.length,s+=h.length,c.diffs.push(r.diffs.shift()),l=!1):-1===u&&1==c.diffs.length&&0==c.diffs[0][0]&&h.length>2*t?(c.length1+=h.length,o+=h.length,l=!1,c.diffs.push([u,h]),r.diffs.shift()):(h=h.substring(0,t-c.length1-this.Patch_Margin),c.length1+=h.length,o+=h.length,0===u?(c.length2+=h.length,s+=h.length):l=!1,c.diffs.push([u,h]),h==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(h.length))}a=(a=this.diff_text2(c.diffs)).substring(a.length-this.Patch_Margin);var d=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);""!==d&&(c.length1+=d.length,c.length2+=d.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=d:c.diffs.push([0,d])),l||e.splice(++i,0,c)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},n.prototype.patch_fromText=function(e){var t=[];if(!e)return t;for(var i=e.split("\n"),r=0,o=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;r<i.length;){var s=i[r].match(o);if(!s)throw new Error("Invalid patch string: "+i[r]);var a=new n.patch_obj;for(t.push(a),a.start1=parseInt(s[1],10),""===s[2]?(a.start1--,a.length1=1):"0"==s[2]?a.length1=0:(a.start1--,a.length1=parseInt(s[2],10)),a.start2=parseInt(s[3],10),""===s[4]?(a.start2--,a.length2=1):"0"==s[4]?a.length2=0:(a.start2--,a.length2=parseInt(s[4],10)),r++;r<i.length;){var c=i[r].charAt(0);try{var l=decodeURI(i[r].substring(1))}catch(u){throw new Error("Illegal escape in patch_fromText: "+l)}if("-"==c)a.diffs.push([-1,l]);else if("+"==c)a.diffs.push([1,l]);else if(" "==c)a.diffs.push([0,l]);else{if("@"==c)break;if(""!==c)throw new Error('Invalid patch mode "'+c+'" in: '+l)}r++}}return t},n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},n.patch_obj.prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:e="+";break;case-1:e="-";break;case 0:e=" "}t[n+1]=e+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=n,e.exports.diff_match_patch=n,e.exports.DIFF_DELETE=-1,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},,function(e,t){ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t,n){"use strict";var i=e("../lib/dom"),r=e("../lib/lang"),o=e("../lib/event"),s=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys");i.importCssString('.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width:  2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing:    border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',"ace_searchbox");var c='<div class="ace_search right">    <span action="hide" class="ace_searchbtn_close"></span>    <div class="ace_search_form">        <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input>        <span action="findPrev" class="ace_searchbtn prev"></span>        <span action="findNext" class="ace_searchbtn next"></span>        <span action="findAll" class="ace_searchbtn" title="Alt-Enter">All</span>    </div>    <div class="ace_replace_form">        <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input>        <span action="replaceAndFindNext" class="ace_searchbtn">Replace</span>        <span action="replaceAll" class="ace_searchbtn">All</span>    </div>    <div class="ace_search_options">        <span action="toggleReplace" class="ace_button" title="Toggel Replace mode"            style="float:left;margin-top:-2px;padding:0 5px;">+</span>        <span class="ace_search_counter"></span>        <span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span>        <span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span>        <span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span>        <span action="searchInSelection" class="ace_button" title="Search In Selection">S</span>    </div></div>'.replace(/> +/g,">"),l=function(e,t,n){var r=i.createElement("div");r.innerHTML=c,this.element=r.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(e)};(function(){this.setEditor=function(e){e.searchBox=this,e.renderer.scroller.appendChild(this.element),this.editor=e},this.setSession=function(e){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOption=e.querySelector("[action=searchInSelection]"),this.replaceOption=e.querySelector("[action=toggleReplace]"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=e.querySelector(".ace_search_counter")},this.$init=function(){var e=this.element;this.$initElements(e);var t=this;o.addListener(e,"mousedown",function(e){setTimeout(function(){t.activeInput.focus()},0),o.stopPropagation(e)}),o.addListener(e,"click",function(e){var n=(e.target||e.srcElement).getAttribute("action");n&&t[n]?t[n]():t.$searchBarKb.commands[n]&&t.$searchBarKb.commands[n].exec(t),o.stopPropagation(e)}),o.addCommandKeyListener(e,function(e,n,i){var r=a.keyCodeToString(i),s=t.$searchBarKb.findKeyCommand(n,r);s&&s.exec&&(s.exec(t),o.stopEvent(e))}),this.$onChange=r.delayedCall(function(){t.find(!1,!1)}),o.addListener(this.searchInput,"input",function(){t.$onChange.schedule(20)}),o.addListener(this.searchInput,"focus",function(){t.activeInput=t.searchInput,t.searchInput.value&&t.highlight()}),o.addListener(this.replaceInput,"focus",function(){t.activeInput=t.replaceInput,t.searchInput.value&&t.highlight()})},this.$closeSearchBarKb=new s([{bindKey:"Esc",name:"closeSearchBar",exec:function(e){e.searchBox.hide()}}]),this.$searchBarKb=new s,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e.replaceOption.checked=!1,e.$syncOptions(),e.searchInput.focus()},"Ctrl-H|Command-Option-F":function(e){e.replaceOption.checked=!0,e.$syncOptions(),e.replaceInput.focus()},"Ctrl-G|Command-G":function(e){e.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(e){e.findPrev()},esc:function(e){setTimeout(function(){e.hide()})},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},"Shift-Return":function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},"Alt-Return":function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}},{name:"toggleReplace",exec:function(e){e.replaceOption.checked=!e.replaceOption.checked,e.$syncOptions()}},{name:"searchInSelection",exec:function(e){e.searchOption.checked=!e.searchRange,e.setSearchRange(e.searchOption.checked&&e.editor.getSelectionRange()),e.$syncOptions()}}]),this.setSearchRange=function(e){this.searchRange=e,e?this.searchRangeMarker=this.editor.session.addMarker(e,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(e){i.setCssClass(this.replaceOption,"checked",this.searchRange),i.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",i.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),i.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),i.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,e)},this.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(e,t,n){var r=!this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:n,range:this.searchRange})&&this.searchInput.value;i.setCssClass(this.searchBox,"ace_nomatch",r),this.editor._emit("findSearchBox",{match:!r}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var e=this.editor,t=e.$search.$options.re,n=0,i=0;if(t){var r=this.searchRange?e.session.getTextRange(this.searchRange):e.getValue(),o=e.session.doc.positionToIndex(e.selection.anchor);this.searchRange&&(o-=e.session.doc.positionToIndex(this.searchRange.start));for(var s,a=t.lastIndex=0;(s=t.exec(r))&&(n++,(a=s.index)<=o&&i++,!(n>999))&&(s[0]||(t.lastIndex=a+=1,!(a>=r.length))););}this.searchCounter.textContent=i+" of "+(n>999?"999+":n)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;i.setCssClass(this.searchBox,"ace_nomatch",e),this.editor._emit("findSearchBox",{match:!e}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(e,t){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(l.prototype),t.SearchBox=l,t.Search=function(e,t){(e.searchBox||new l(e)).show(e.session.getTextRange(),t)}}),ace.acequire(["ace/ext/searchbox"],function(){})}]]);
  //# sourceMappingURL=2.93d8fa61.chunk.js.map