diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html index dc8784044ef557eda3aca101715fae5c03501fc9..db7f811b2659fa8fb304f21f8c8c38009be2211a 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html @@ -88,6 +88,11 @@ <script type="text/javascript" src="./lib/bwip-js/lib/canvas-toblob.js"></script> <script type="text/javascript" src="./lib/jspdf/js/jspdf.min.js"></script> + <script src="./react/react.development.js" crossorigin></script> + <script src="./react/react-dom.development.js" crossorigin></script> + <script src="./react/babel.min.js" crossorigin></script> + <script src="./react/LikeButton.js" type="text/babel" crossorigin></script> + <!-- First party libraries --> <script type="text/javascript" src="../../resources/js/openbis.js"></script> <script type="text/javascript"> @@ -486,9 +491,19 @@ <img src="./img/browser-icon-chrome.png" style="width: 43px; height:43px;" /><img src="./img/browser-icon-safari.png" style="width: 43px; height:43px;" /><img src="./img/browser-icon-firefox.png" style="width: 43px; height:43px;" /> </center> </div> + + <div id="react-container">React container</div> + <div class="container-fluid"> <div id='mainContainer' class="row"></div> </div> + + <script type="text/babel"> + const domContainer = document.querySelector('#react-container'); + ReactDOM.render(<LikeButton/>, domContainer); + </script> + <script type="text/javascript" src="./etc/config.js"></script> + </body> </html> \ No newline at end of file diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/LikeButton.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/LikeButton.js new file mode 100644 index 0000000000000000000000000000000000000000..2d91a94442882190362810ac14392849574eb3e6 --- /dev/null +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/LikeButton.js @@ -0,0 +1,16 @@ +'use strict'; + +class LikeButton extends React.Component { + constructor(props) { + super(props); + this.state = { liked: false }; + } + + render() { + if (this.state.liked) { + return 'You liked this.'; + } + + return <button onClick={() => this.setState({ liked: true })}>Like</button> + } +} diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/babel.min.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/babel.min.js new file mode 100644 index 0000000000000000000000000000000000000000..a00fa3695265a2cc9a662a3b368e5d21136e0fd2 --- /dev/null +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/babel.min.js @@ -0,0 +1,13 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Babel={})}(this,(function(e){"use strict";var t=Object.freeze({__proto__:null,get version(){return DF},get types(){return Pc},get DEFAULT_EXTENSIONS(){return AF},get OptionManager(){return wF},get Plugin(){return CF},get File(){return sA},get buildExternalHelpers(){return cA},get resolvePlugin(){return DA},get resolvePreset(){return AA},get getEnv(){return SA},get tokTypes(){return lm},get traverse(){return gv},get template(){return bg},get createConfigItem(){return zP},get createConfigItemSync(){return $P},get createConfigItemAsync(){return KP},get loadPartialConfig(){return GP},get loadPartialConfigSync(){return VP},get loadPartialConfigAsync(){return WP},get loadOptions(){return HP},get loadOptionsSync(){return XP},get loadOptionsAsync(){return qP},get transform(){return uF},get transformSync(){return lF},get transformAsync(){return cF},get transformFile(){return pF},get transformFileSync(){return dF},get transformFileAsync(){return fF},get transformFromAst(){return mF},get transformFromAstSync(){return yF},get transformFromAstAsync(){return gF},get parse(){return bF},get parseSync(){return EF},get parseAsync(){return xF}});function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function s(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&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if(null==e)return{};var r,n,s={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}function o(e,t){if(null==e)return{};var r,n,s=i(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function u(e,t){return t||(t=e.slice(0)),e.raw=t,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==r)return;var n,s,a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){o=!0,s=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw s}}return a}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=p(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var s=n[r];if(e[s]!==t[s])return!1}return!0}function m(e,t){return!!e&&("ArrayExpression"===e.type&&(void 0===t||h(e,t)))}function y(e,t){return!!e&&("AssignmentExpression"===e.type&&(void 0===t||h(e,t)))}function g(e,t){return!!e&&("BinaryExpression"===e.type&&(void 0===t||h(e,t)))}function v(e,t){return!!e&&("BlockStatement"===e.type&&(void 0===t||h(e,t)))}function b(e,t){return!!e&&("BreakStatement"===e.type&&(void 0===t||h(e,t)))}function E(e,t){return!!e&&("CallExpression"===e.type&&(void 0===t||h(e,t)))}function x(e,t){return!!e&&("CatchClause"===e.type&&(void 0===t||h(e,t)))}function D(e,t){return!!e&&("ConditionalExpression"===e.type&&(void 0===t||h(e,t)))}function A(e,t){return!!e&&("ContinueStatement"===e.type&&(void 0===t||h(e,t)))}function w(e,t){return!!e&&("EmptyStatement"===e.type&&(void 0===t||h(e,t)))}function C(e,t){return!!e&&("ExpressionStatement"===e.type&&(void 0===t||h(e,t)))}function S(e,t){return!!e&&("File"===e.type&&(void 0===t||h(e,t)))}function T(e,t){return!!e&&("ForInStatement"===e.type&&(void 0===t||h(e,t)))}function j(e,t){return!!e&&("ForStatement"===e.type&&(void 0===t||h(e,t)))}function P(e,t){return!!e&&("FunctionDeclaration"===e.type&&(void 0===t||h(e,t)))}function I(e,t){return!!e&&("FunctionExpression"===e.type&&(void 0===t||h(e,t)))}function F(e,t){return!!e&&("Identifier"===e.type&&(void 0===t||h(e,t)))}function k(e,t){return!!e&&("IfStatement"===e.type&&(void 0===t||h(e,t)))}function O(e,t){return!!e&&("LabeledStatement"===e.type&&(void 0===t||h(e,t)))}function R(e,t){return!!e&&("StringLiteral"===e.type&&(void 0===t||h(e,t)))}function N(e,t){return!!e&&("NumericLiteral"===e.type&&(void 0===t||h(e,t)))}function B(e,t){return!!e&&("NullLiteral"===e.type&&(void 0===t||h(e,t)))}function _(e,t){return!!e&&("RegExpLiteral"===e.type&&(void 0===t||h(e,t)))}function L(e,t){return!!e&&("LogicalExpression"===e.type&&(void 0===t||h(e,t)))}function M(e,t){return!!e&&("MemberExpression"===e.type&&(void 0===t||h(e,t)))}function U(e,t){return!!e&&("NewExpression"===e.type&&(void 0===t||h(e,t)))}function G(e,t){return!!e&&("Program"===e.type&&(void 0===t||h(e,t)))}function V(e,t){return!!e&&("ObjectExpression"===e.type&&(void 0===t||h(e,t)))}function W(e,t){return!!e&&("ObjectMethod"===e.type&&(void 0===t||h(e,t)))}function H(e,t){return!!e&&("ObjectProperty"===e.type&&(void 0===t||h(e,t)))}function X(e,t){return!!e&&("RestElement"===e.type&&(void 0===t||h(e,t)))}function q(e,t){return!!e&&("ReturnStatement"===e.type&&(void 0===t||h(e,t)))}function $(e,t){return!!e&&("SequenceExpression"===e.type&&(void 0===t||h(e,t)))}function K(e,t){return!!e&&("ParenthesizedExpression"===e.type&&(void 0===t||h(e,t)))}function z(e,t){return!!e&&("SwitchStatement"===e.type&&(void 0===t||h(e,t)))}function J(e,t){return!!e&&("ThisExpression"===e.type&&(void 0===t||h(e,t)))}function Y(e,t){return!!e&&("ThrowStatement"===e.type&&(void 0===t||h(e,t)))}function Q(e,t){return!!e&&("UnaryExpression"===e.type&&(void 0===t||h(e,t)))}function Z(e,t){return!!e&&("VariableDeclaration"===e.type&&(void 0===t||h(e,t)))}function ee(e,t){return!!e&&("VariableDeclarator"===e.type&&(void 0===t||h(e,t)))}function te(e,t){return!!e&&("WhileStatement"===e.type&&(void 0===t||h(e,t)))}function re(e,t){return!!e&&("AssignmentPattern"===e.type&&(void 0===t||h(e,t)))}function ne(e,t){return!!e&&("ArrayPattern"===e.type&&(void 0===t||h(e,t)))}function se(e,t){return!!e&&("ArrowFunctionExpression"===e.type&&(void 0===t||h(e,t)))}function ae(e,t){return!!e&&("ClassBody"===e.type&&(void 0===t||h(e,t)))}function ie(e,t){return!!e&&("ClassExpression"===e.type&&(void 0===t||h(e,t)))}function oe(e,t){return!!e&&("ClassDeclaration"===e.type&&(void 0===t||h(e,t)))}function ue(e,t){return!!e&&("ExportAllDeclaration"===e.type&&(void 0===t||h(e,t)))}function le(e,t){return!!e&&("ExportDefaultDeclaration"===e.type&&(void 0===t||h(e,t)))}function ce(e,t){return!!e&&("ExportNamedDeclaration"===e.type&&(void 0===t||h(e,t)))}function pe(e,t){return!!e&&("ExportSpecifier"===e.type&&(void 0===t||h(e,t)))}function de(e,t){return!!e&&("ForOfStatement"===e.type&&(void 0===t||h(e,t)))}function fe(e,t){return!!e&&("ImportDeclaration"===e.type&&(void 0===t||h(e,t)))}function he(e,t){return!!e&&("ImportDefaultSpecifier"===e.type&&(void 0===t||h(e,t)))}function me(e,t){return!!e&&("ImportNamespaceSpecifier"===e.type&&(void 0===t||h(e,t)))}function ye(e,t){return!!e&&("ImportSpecifier"===e.type&&(void 0===t||h(e,t)))}function ge(e,t){return!!e&&("ClassMethod"===e.type&&(void 0===t||h(e,t)))}function ve(e,t){return!!e&&("ObjectPattern"===e.type&&(void 0===t||h(e,t)))}function be(e,t){return!!e&&("SpreadElement"===e.type&&(void 0===t||h(e,t)))}function Ee(e,t){return!!e&&("Super"===e.type&&(void 0===t||h(e,t)))}function xe(e,t){return!!e&&("TaggedTemplateExpression"===e.type&&(void 0===t||h(e,t)))}function De(e,t){return!!e&&("TemplateLiteral"===e.type&&(void 0===t||h(e,t)))}function Ae(e,t){return!!e&&("YieldExpression"===e.type&&(void 0===t||h(e,t)))}function we(e,t){return!!e&&("AwaitExpression"===e.type&&(void 0===t||h(e,t)))}function Ce(e,t){return!!e&&("Import"===e.type&&(void 0===t||h(e,t)))}function Se(e,t){return!!e&&("BigIntLiteral"===e.type&&(void 0===t||h(e,t)))}function Te(e,t){return!!e&&("ExportNamespaceSpecifier"===e.type&&(void 0===t||h(e,t)))}function je(e,t){return!!e&&("OptionalMemberExpression"===e.type&&(void 0===t||h(e,t)))}function Pe(e,t){return!!e&&("OptionalCallExpression"===e.type&&(void 0===t||h(e,t)))}function Ie(e,t){return!!e&&("AnyTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function Fe(e,t){return!!e&&("ArrayTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function ke(e,t){return!!e&&("BooleanTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function Oe(e,t){return!!e&&("DeclareExportDeclaration"===e.type&&(void 0===t||h(e,t)))}function Re(e,t){return!!e&&("GenericTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function Ne(e,t){return!!e&&("IntersectionTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function Be(e,t){return!!e&&("MixedTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function _e(e,t){return!!e&&("EmptyTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function Le(e,t){return!!e&&("NullableTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function Me(e,t){return!!e&&("NumberTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function Ue(e,t){return!!e&&("StringTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function Ge(e,t){return!!e&&("TypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function Ve(e,t){return!!e&&("TypeCastExpression"===e.type&&(void 0===t||h(e,t)))}function We(e,t){return!!e&&("UnionTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function He(e,t){return!!e&&("VoidTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function Xe(e,t){return!!e&&("IndexedAccessType"===e.type&&(void 0===t||h(e,t)))}function qe(e,t){return!!e&&("JSXAttribute"===e.type&&(void 0===t||h(e,t)))}function $e(e,t){return!!e&&("JSXElement"===e.type&&(void 0===t||h(e,t)))}function Ke(e,t){return!!e&&("JSXEmptyExpression"===e.type&&(void 0===t||h(e,t)))}function ze(e,t){return!!e&&("JSXExpressionContainer"===e.type&&(void 0===t||h(e,t)))}function Je(e,t){return!!e&&("JSXIdentifier"===e.type&&(void 0===t||h(e,t)))}function Ye(e,t){return!!e&&("JSXMemberExpression"===e.type&&(void 0===t||h(e,t)))}function Qe(e,t){return!!e&&("JSXNamespacedName"===e.type&&(void 0===t||h(e,t)))}function Ze(e,t){return!!e&&("JSXSpreadAttribute"===e.type&&(void 0===t||h(e,t)))}function et(e,t){return!!e&&("JSXText"===e.type&&(void 0===t||h(e,t)))}function tt(e,t){return!!e&&("Placeholder"===e.type&&(void 0===t||h(e,t)))}function rt(e,t){return!!e&&("BindExpression"===e.type&&(void 0===t||h(e,t)))}function nt(e,t){return!!e&&("ClassProperty"===e.type&&(void 0===t||h(e,t)))}function st(e,t){return!!e&&("PipelineTopicExpression"===e.type&&(void 0===t||h(e,t)))}function at(e,t){return!!e&&("ClassPrivateProperty"===e.type&&(void 0===t||h(e,t)))}function it(e,t){return!!e&&("ExportDefaultSpecifier"===e.type&&(void 0===t||h(e,t)))}function ot(e,t){return!!e&&("PrivateName"===e.type&&(void 0===t||h(e,t)))}function ut(e,t){return!!e&&("TSAnyKeyword"===e.type&&(void 0===t||h(e,t)))}function lt(e,t){return!!e&&("TSArrayType"===e.type&&(void 0===t||h(e,t)))}function ct(e,t){return!!e&&("TSOptionalType"===e.type&&(void 0===t||h(e,t)))}function pt(e,t){return!!e&&("TSRestType"===e.type&&(void 0===t||h(e,t)))}function dt(e,t){return!!e&&("TSUnionType"===e.type&&(void 0===t||h(e,t)))}function ft(e,t){return!!e&&("TSIntersectionType"===e.type&&(void 0===t||h(e,t)))}function ht(e,t){return!!e&&("TSAsExpression"===e.type&&(void 0===t||h(e,t)))}function mt(e,t){return!!e&&("TSTypeAssertion"===e.type&&(void 0===t||h(e,t)))}function yt(e,t){return!!e&&("TSNonNullExpression"===e.type&&(void 0===t||h(e,t)))}function gt(e,t){return!!e&&("TSTypeAnnotation"===e.type&&(void 0===t||h(e,t)))}function vt(e,t){if(!e)return!1;var r=e.type;return("ArrayExpression"===r||"AssignmentExpression"===r||"BinaryExpression"===r||"CallExpression"===r||"ConditionalExpression"===r||"FunctionExpression"===r||"Identifier"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"LogicalExpression"===r||"MemberExpression"===r||"NewExpression"===r||"ObjectExpression"===r||"SequenceExpression"===r||"ParenthesizedExpression"===r||"ThisExpression"===r||"UnaryExpression"===r||"UpdateExpression"===r||"ArrowFunctionExpression"===r||"ClassExpression"===r||"MetaProperty"===r||"Super"===r||"TaggedTemplateExpression"===r||"TemplateLiteral"===r||"YieldExpression"===r||"AwaitExpression"===r||"Import"===r||"BigIntLiteral"===r||"OptionalMemberExpression"===r||"OptionalCallExpression"===r||"TypeCastExpression"===r||"JSXElement"===r||"JSXFragment"===r||"BindExpression"===r||"PipelinePrimaryTopicReference"===r||"DoExpression"===r||"RecordExpression"===r||"TupleExpression"===r||"DecimalLiteral"===r||"ModuleExpression"===r||"TSAsExpression"===r||"TSTypeAssertion"===r||"TSNonNullExpression"===r||"Placeholder"===r&&("Expression"===e.expectedNode||"Identifier"===e.expectedNode||"StringLiteral"===e.expectedNode))&&(void 0===t||h(e,t))}function bt(e,t){if(!e)return!1;var r=e.type;return("BinaryExpression"===r||"LogicalExpression"===r)&&(void 0===t||h(e,t))}function Et(e,t){if(!e)return!1;var r=e.type;return("BlockStatement"===r||"CatchClause"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"Program"===r||"ObjectMethod"===r||"SwitchStatement"===r||"WhileStatement"===r||"ArrowFunctionExpression"===r||"ClassExpression"===r||"ClassDeclaration"===r||"ForOfStatement"===r||"ClassMethod"===r||"ClassPrivateMethod"===r||"StaticBlock"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)&&(void 0===t||h(e,t))}function xt(e,t){if(!e)return!1;var r=e.type;return("BlockStatement"===r||"BreakStatement"===r||"ContinueStatement"===r||"DebuggerStatement"===r||"DoWhileStatement"===r||"EmptyStatement"===r||"ExpressionStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"IfStatement"===r||"LabeledStatement"===r||"ReturnStatement"===r||"SwitchStatement"===r||"ThrowStatement"===r||"TryStatement"===r||"VariableDeclaration"===r||"WhileStatement"===r||"WithStatement"===r||"ClassDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ForOfStatement"===r||"ImportDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r||"EnumDeclaration"===r||"TSDeclareFunction"===r||"TSInterfaceDeclaration"===r||"TSTypeAliasDeclaration"===r||"TSEnumDeclaration"===r||"TSModuleDeclaration"===r||"TSImportEqualsDeclaration"===r||"TSExportAssignment"===r||"TSNamespaceExportDeclaration"===r||"Placeholder"===r&&("Statement"===e.expectedNode||"Declaration"===e.expectedNode||"BlockStatement"===e.expectedNode))&&(void 0===t||h(e,t))}function Dt(e,t){if(!e)return!1;var r=e.type;return("ConditionalExpression"===r||"IfStatement"===r)&&(void 0===t||h(e,t))}function At(e,t){if(!e)return!1;var r=e.type;return("DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"WhileStatement"===r||"ForOfStatement"===r)&&(void 0===t||h(e,t))}function wt(e,t){if(!e)return!1;var r=e.type;return("ForInStatement"===r||"ForStatement"===r||"ForOfStatement"===r)&&(void 0===t||h(e,t))}function Ct(e,t){if(!e)return!1;var r=e.type;return("ForInStatement"===r||"ForOfStatement"===r)&&(void 0===t||h(e,t))}function St(e,t){if(!e)return!1;var r=e.type;return("FunctionDeclaration"===r||"FunctionExpression"===r||"ObjectMethod"===r||"ArrowFunctionExpression"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)&&(void 0===t||h(e,t))}function Tt(e,t){if(!e)return!1;var r=e.type;return("FunctionDeclaration"===r||"FunctionExpression"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"ArrowFunctionExpression"===r||"BigIntLiteral"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)&&(void 0===t||h(e,t))}function jt(e,t){if(!e)return!1;var r=e.type;return("FunctionDeclaration"===r||"VariableDeclaration"===r||"ClassDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ImportDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r||"EnumDeclaration"===r||"TSDeclareFunction"===r||"TSInterfaceDeclaration"===r||"TSTypeAliasDeclaration"===r||"TSEnumDeclaration"===r||"TSModuleDeclaration"===r||"Placeholder"===r&&"Declaration"===e.expectedNode)&&(void 0===t||h(e,t))}function Pt(e,t){if(!e)return!1;var r=e.type;return("StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"TemplateLiteral"===r||"BigIntLiteral"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)&&(void 0===t||h(e,t))}function It(e,t){if(!e)return!1;var r=e.type;return("ObjectMethod"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)&&(void 0===t||h(e,t))}function Ft(e,t){if(!e)return!1;var r=e.type;return("ObjectProperty"===r||"ClassProperty"===r||"ClassPrivateProperty"===r)&&(void 0===t||h(e,t))}function kt(e,t){if(!e)return!1;var r=e.type;return("UnaryExpression"===r||"SpreadElement"===r)&&(void 0===t||h(e,t))}function Ot(e,t){if(!e)return!1;var r=e.type;return("AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"Placeholder"===r&&"Pattern"===e.expectedNode)&&(void 0===t||h(e,t))}function Rt(e,t){if(!e)return!1;var r=e.type;return("ClassExpression"===r||"ClassDeclaration"===r)&&(void 0===t||h(e,t))}function Nt(e,t){if(!e)return!1;var r=e.type;return("ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ImportDeclaration"===r)&&(void 0===t||h(e,t))}function Bt(e,t){if(!e)return!1;var r=e.type;return("ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r)&&(void 0===t||h(e,t))}function _t(e,t){if(!e)return!1;var r=e.type;return("ExportSpecifier"===r||"ImportDefaultSpecifier"===r||"ImportNamespaceSpecifier"===r||"ImportSpecifier"===r||"ExportNamespaceSpecifier"===r||"ExportDefaultSpecifier"===r)&&(void 0===t||h(e,t))}function Lt(e,t){if(!e)return!1;var r=e.type;return("AnyTypeAnnotation"===r||"ArrayTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"BooleanLiteralTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"ClassImplements"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"DeclaredPredicate"===r||"ExistsTypeAnnotation"===r||"FunctionTypeAnnotation"===r||"FunctionTypeParam"===r||"GenericTypeAnnotation"===r||"InferredPredicate"===r||"InterfaceExtends"===r||"InterfaceDeclaration"===r||"InterfaceTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NullableTypeAnnotation"===r||"NumberLiteralTypeAnnotation"===r||"NumberTypeAnnotation"===r||"ObjectTypeAnnotation"===r||"ObjectTypeInternalSlot"===r||"ObjectTypeCallProperty"===r||"ObjectTypeIndexer"===r||"ObjectTypeProperty"===r||"ObjectTypeSpreadProperty"===r||"OpaqueType"===r||"QualifiedTypeIdentifier"===r||"StringLiteralTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"TupleTypeAnnotation"===r||"TypeofTypeAnnotation"===r||"TypeAlias"===r||"TypeAnnotation"===r||"TypeCastExpression"===r||"TypeParameter"===r||"TypeParameterDeclaration"===r||"TypeParameterInstantiation"===r||"UnionTypeAnnotation"===r||"Variance"===r||"VoidTypeAnnotation"===r||"IndexedAccessType"===r||"OptionalIndexedAccessType"===r)&&(void 0===t||h(e,t))}function Mt(e,t){if(!e)return!1;var r=e.type;return("AnyTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NumberTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"VoidTypeAnnotation"===r)&&(void 0===t||h(e,t))}function Ut(e,t){if(!e)return!1;var r=e.type;return("TSAnyKeyword"===r||"TSBooleanKeyword"===r||"TSBigIntKeyword"===r||"TSIntrinsicKeyword"===r||"TSNeverKeyword"===r||"TSNullKeyword"===r||"TSNumberKeyword"===r||"TSObjectKeyword"===r||"TSStringKeyword"===r||"TSSymbolKeyword"===r||"TSUndefinedKeyword"===r||"TSUnknownKeyword"===r||"TSVoidKeyword"===r||"TSThisType"===r||"TSLiteralType"===r)&&(void 0===t||h(e,t))}function Gt(e,t,r){if(!M(e))return!1;var n,s=Array.isArray(t)?t:t.split("."),a=[];for(n=e;M(n);n=n.object)a.push(n.property);if(a.push(n),a.length<s.length)return!1;if(!r&&a.length>s.length)return!1;for(var i=0,o=a.length-1;i<s.length;i++,o--){var u=a[o],l=void 0;if(F(u))l=u.name;else if(R(u))l=u.value;else{if(!J(u))return!1;l="this"}if(s[i]!==l)return!1}return!0}function Vt(e,t){var r=e.split(".");return function(e){return Gt(e,r,t)}}var Wt=Vt("React.Component");var Ht=null;function Xt(e){if(null!==Ht&&(Ht.property,1)){var t=Ht;return Ht=Xt.prototype=null,t}return Ht=Xt.prototype=null==e?Object.create(null):e,new Xt}Xt();var qt=function(e){return Xt(e)},$t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Kt(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}function zt(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return sr(e,null==t?r.path:t)}},r.exports),r.exports}const Jt=Object.create(null),Yt=Object.create(null),Qt={id:"<rollup>",exports:{},parent:void 0,filename:null,loaded:!1,children:[],paths:[]},Zt=["",".js",".json"];function er(e){const t=(e=e.replace(/\\/g,"/")).split("/"),r=""===t[0];for(let e=1;e<t.length;e++)"."!==t[e]&&""!==t[e]||t.splice(e--,1);for(let e=1;e<t.length;e++)".."===t[e]&&e>0&&".."!==t[e-1]&&"."!==t[e-1]&&(t.splice(--e,2),e--);return e=t.join("/"),r&&"/"!==e[0]?e="/"+e:0===e.length&&(e="."),e}function tr(){if(0===arguments.length)return".";let e;for(let t=0;t<arguments.length;++t){let r=arguments[t];r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":e}function rr(e){if(0===e.length)return".";let t=e.length-1;for(;t>0;){const r=e.charCodeAt(t);if((47===r||92===r)&&t!==e.length-1)break;t--}return t>0?e.substr(0,t):47===e.chartCodeAt(0)||92===e.chartCodeAt(0)?e.charAt(0):"."}function nr(e,t,r){const n=function(e){let t=e[0];if("/"===t||"\\"===t)return!1;let r=e[1],n=e[2];return!(!("."!==t||r&&"/"!==r&&"\\"!==r)||!("."!==t||"."!==r||n&&"/"!==n&&"\\"!==n))&&(":"!==r||"/"!==n&&"\\"!==n)}(e);let s;for("/"===(e=er(e))[0]&&(t="/");s=n?er(t?t+"/node_modules/"+e:tr("node_modules",e)):t?er(t+"/"+e):e,!s.endsWith("/..");){for(let e=0;e<Zt.length;e++){const t=s+Zt[e];if(Yt[t])return t;if(Jt[t])return t}if(!n)break;const e=er(t+"/..");if(e===t)break;t=e}return null}function sr(e,t){const r=nr(e,t);if(null!==r){let e=Yt[r];if(e)return e.exports;const t=Jt[r];if(t){Yt[r]=e={id:r,filename:r,path:rr(r),exports:{},parent:Qt,loaded:!1,children:[],paths:[],require:function(t,r){return sr(t,null==r?e.path:r)}};try{t.call($t,e,e.exports)}catch(e){throw delete Yt[r],e}return e.loaded=!0,e.exports}}return require(e)}sr.cache=Yt,sr.resolve=function(e,t){const r=nr(e,t);return null!==r?r:require.resolve(e)};var ar=zt((function(e){var t,r,n=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var o,u=[],l=!1,c=-1;function p(){l&&o&&(l=!1,o.length?u=o.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=i(p);l=!0;for(var t=u.length;t;){for(o=u,u=[];++c<t;)o&&o[c].run();c=-1,t=u.length}o=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new f(e,t)),1!==u.length||l||i(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}),"/$$rollup_base$$/node_modules/process");function ir(e,t){if(e===t)return!0;if(Zr[t])return!1;var r=en[t];if(r){if(r[0]===e)return!0;for(var n,s=f(r);!(n=s()).done;){if(e===n.value)return!0}}return!1}function or(e,t){if(e===t)return!0;var r=Ln[e];if(r)for(var n,s=f(r);!(n=s()).done;){if(t===n.value)return!0}return!1}function ur(e,t,r){return!!t&&(ir(t.type,e)?void 0===r||h(t,r):!r&&"Placeholder"===t.type&&e in en&&or(t.expectedNode,e))}var lr="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08c7\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\u9ffc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7ca\ua7f5-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",cr="\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d3-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf\u1ac0\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1df9\u1dfb-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f",pr=new RegExp("["+lr+"]"),dr=new RegExp("["+lr+cr+"]");lr=cr=null;var fr=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],hr=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function mr(e,t){for(var r=65536,n=0,s=t.length;n<s;n+=2){if((r+=t[n])>e)return!1;if((r+=t[n+1])>=e)return!0}return!1}function yr(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&pr.test(String.fromCharCode(e)):mr(e,fr)))}function gr(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&dr.test(String.fromCharCode(e)):mr(e,fr)||mr(e,hr))))}function vr(e){for(var t=!0,r=0;r<e.length;r++){var n=e.charCodeAt(r);if(55296==(64512&n)&&r+1<e.length){var s=e.charCodeAt(++r);56320==(64512&s)&&(n=65536+((1023&n)<<10)+(1023&s))}if(t){if(t=!1,!yr(n))return!1}else if(!gr(n))return!1}return!t}var br=["implements","interface","let","package","private","protected","public","static","yield"],Er=["eval","arguments"],xr=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),Dr=new Set(br),Ar=new Set(Er);function wr(e,t){return t&&"await"===e||"enum"===e}function Cr(e,t){return wr(e,t)||Dr.has(e)}function Sr(e){return Ar.has(e)}function Tr(e,t){return Cr(e,t)||Sr(e)}function jr(e){return xr.has(e)}function Pr(e,t){return void 0===t&&(t=!0),"string"==typeof e&&((!t||!jr(e)&&!Cr(e,!0))&&vr(e))}var Ir=["consequent","body","alternate"],Fr=["left","init"],kr=["leadingComments","trailingComments","innerComments"],Or=["||","&&","??"],Rr=["++","--"],Nr=[">","<",">=","<="],Br=["==","===","!=","!=="],_r=[].concat(Br,["in","instanceof"]),Lr=[].concat(c(_r),Nr),Mr=["-","/","%","*","**","&","|",">>",">>>","<<","^"],Ur=["+"].concat(Mr,c(Lr)),Gr=["=","+="].concat(c(Mr.map((function(e){return e+"="}))),c(Or.map((function(e){return e+"="})))),Vr=["delete","!"],Wr=["+","-","~"],Hr=["typeof"],Xr=["void","throw"].concat(Vr,Wr,Hr),qr={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},$r=Symbol.for("var used to be block scoped"),Kr=Symbol.for("should not be considered a local binding");function zr(e,t,r){if(e){var n=tn[e.type];if(n)Jr(e,t,r,n[t]),Yr(e,t,r)}}function Jr(e,t,r,n){null!=n&&n.validate&&(n.optional&&null==r||n.validate(e,t,r))}function Yr(e,t,r){if(null!=r){var n=sn[r.type];n&&n(e,t,r)}}var Qr={},Zr={},en={},tn={},rn={},nn={},sn={};function an(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function on(e){return{validate:e}}function un(e){return"string"==typeof e?yn(e):yn.apply(void 0,c(e))}function ln(e){return on(un(e))}function cn(e){return{validate:e,optional:!0}}function pn(e){return{validate:un(e),optional:!0}}function dn(e){return t=un(e),En(vn("array"),hn(t));var t}function fn(e){return on(dn(e))}function hn(e){function t(t,r,n){if(Array.isArray(n))for(var s=0;s<n.length;s++){var a=r+"["+s+"]",i=n[s];e(t,a,i),ar.env.BABEL_TYPES_8_BREAKING&&Yr(t,a,i)}}return t.each=e,t}function mn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(e,r,n){if(t.indexOf(n)<0)throw new TypeError("Property "+r+" expected value to be one of "+JSON.stringify(t)+" but got "+JSON.stringify(n))}return n.oneOf=t,n}function yn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(e,r,n){for(var s,a=f(t);!(s=a()).done;){if(ur(s.value,n))return void Yr(e,r,n)}throw new TypeError("Property "+r+" of "+e.type+" expected node to be of a type "+JSON.stringify(t)+" but instead got "+JSON.stringify(null==n?void 0:n.type))}return n.oneOfNodeTypes=t,n}function gn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(e,r,n){for(var s,a=f(t);!(s=a()).done;){var i=s.value;if(an(n)===i||ur(i,n))return void Yr(e,r,n)}throw new TypeError("Property "+r+" of "+e.type+" expected node to be of a type "+JSON.stringify(t)+" but instead got "+JSON.stringify(null==n?void 0:n.type))}return n.oneOfNodeOrValueTypes=t,n}function vn(e){function t(t,r,n){if(!(an(n)===e))throw new TypeError("Property "+r+" expected type of "+e+" but got "+an(n))}return t.type=e,t}function bn(){return function(e){for(var t,r=e;e;){var n=r.type;if("OptionalCallExpression"!==n){if("OptionalMemberExpression"!==n)break;if(r.optional)return;r=r.object}else{if(r.optional)return;r=r.callee}}throw new TypeError("Non-optional "+e.type+" must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from "+(null==(t=r)?void 0:t.type))}}function En(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(){for(var e,r=f(t);!(e=r()).done;){var n=e.value;n.apply(void 0,arguments)}}if(n.chainOf=t,t.length>=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return n}var xn=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],Dn=["default","optional","validate"];function An(e,t){void 0===t&&(t={});var r=t.inherits&&wn[t.inherits]||{},n=t.fields;if(!n&&(n={},r.fields))for(var s,a=f(Object.getOwnPropertyNames(r.fields));!(s=a()).done;){var i=s.value,o=r.fields[i],u=o.default;if(Array.isArray(u)?u.length>0:u&&"object"==typeof u)throw new Error("field defaults can only be primitives or empty arrays currently");n[i]={default:Array.isArray(u)?[]:u,optional:o.optional,validate:o.validate}}for(var l=t.visitor||r.visitor||[],c=t.aliases||r.aliases||[],p=t.builder||r.builder||t.visitor||[],d=0,h=Object.keys(t);d<h.length;d++){var m=h[d];if(-1===xn.indexOf(m))throw new Error('Unknown type option "'+m+'" on '+e)}t.deprecatedAlias&&(nn[t.deprecatedAlias]=e);for(var y,g=f(l.concat(p));!(y=g()).done;){var v=y.value;n[v]=n[v]||{}}for(var b=0,E=Object.keys(n);b<E.length;b++){var x=E[b],D=n[x];void 0!==D.default&&-1===p.indexOf(x)&&(D.optional=!0),void 0===D.default?D.default=null:D.validate||null==D.default||(D.validate=vn(an(D.default)));for(var A=0,w=Object.keys(D);A<w.length;A++){var C=w[A];if(-1===Dn.indexOf(C))throw new Error('Unknown field key "'+C+'" on '+e+"."+x)}}Qr[e]=t.visitor=l,rn[e]=t.builder=p,tn[e]=t.fields=n,Zr[e]=t.aliases=c,c.forEach((function(t){en[t]=en[t]||[],en[t].push(e)})),t.validate&&(sn[e]=t.validate),wn[e]=t}var wn={};An("ArrayExpression",{fields:{elements:{validate:En(vn("array"),hn(gn("null","Expression","SpreadElement"))),default:ar.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),An("AssignmentExpression",{fields:{operator:{validate:function(){if(!ar.env.BABEL_TYPES_8_BREAKING)return vn("string");var e=mn.apply(void 0,c(Gr)),t=mn("=");return function(r,n,s){(ur("Pattern",r.left)?t:e)(r,n,s)}}()},left:{validate:ar.env.BABEL_TYPES_8_BREAKING?yn("Identifier","MemberExpression","ArrayPattern","ObjectPattern"):yn("LVal")},right:{validate:yn("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),An("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:mn.apply(void 0,c(Ur))},left:{validate:function(){var e=yn("Expression"),t=yn("Expression","PrivateName"),r=function(r,n,s){var a="in"===r.operator?t:e;a(r,n,s)};return r.oneOfNodeTypes=["Expression","PrivateName"],r}()},right:{validate:yn("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),An("InterpreterDirective",{builder:["value"],fields:{value:{validate:vn("string")}}}),An("Directive",{visitor:["value"],fields:{value:{validate:yn("DirectiveLiteral")}}}),An("DirectiveLiteral",{builder:["value"],fields:{value:{validate:vn("string")}}}),An("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:En(vn("array"),hn(yn("Directive"))),default:[]},body:{validate:En(vn("array"),hn(yn("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),An("BreakStatement",{visitor:["label"],fields:{label:{validate:yn("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),An("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:yn("Expression","V8IntrinsicIdentifier")},arguments:{validate:En(vn("array"),hn(yn("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},ar.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:mn(!0,!1),optional:!0}},{typeArguments:{validate:yn("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:yn("TSTypeParameterInstantiation"),optional:!0}})}),An("CatchClause",{visitor:["param","body"],fields:{param:{validate:yn("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:yn("BlockStatement")}},aliases:["Scopable","BlockParent"]}),An("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:yn("Expression")},consequent:{validate:yn("Expression")},alternate:{validate:yn("Expression")}},aliases:["Expression","Conditional"]}),An("ContinueStatement",{visitor:["label"],fields:{label:{validate:yn("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),An("DebuggerStatement",{aliases:["Statement"]}),An("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:yn("Expression")},body:{validate:yn("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),An("EmptyStatement",{aliases:["Statement"]}),An("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:yn("Expression")}},aliases:["Statement","ExpressionWrapper"]}),An("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:yn("Program")},comments:{validate:ar.env.BABEL_TYPES_8_BREAKING?hn(yn("CommentBlock","CommentLine")):Object.assign((function(){}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:hn(Object.assign((function(){}),{type:"any"})),optional:!0}}}),An("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:ar.env.BABEL_TYPES_8_BREAKING?yn("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern"):yn("VariableDeclaration","LVal")},right:{validate:yn("Expression")},body:{validate:yn("Statement")}}}),An("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:yn("VariableDeclaration","Expression"),optional:!0},test:{validate:yn("Expression"),optional:!0},update:{validate:yn("Expression"),optional:!0},body:{validate:yn("Statement")}}});var Cn={params:{validate:En(vn("array"),hn(yn("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}},Sn={returnType:{validate:yn("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:yn("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}},Tn=Object.assign({},Cn,{declare:{validate:vn("boolean"),optional:!0},id:{validate:yn("Identifier"),optional:!0}});An("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},Tn,Sn,{body:{validate:yn("BlockStatement")}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!ar.env.BABEL_TYPES_8_BREAKING)return function(){};var e=yn("Identifier");return function(t,r,n){ur("ExportDefaultDeclaration",t)||e(n,"id",n.id)}}()}),An("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Cn,Sn,{id:{validate:yn("Identifier"),optional:!0},body:{validate:yn("BlockStatement")}})});var jn,Pn,In,Fn,kn,On={typeAnnotation:{validate:yn("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:En(vn("array"),hn(yn("Decorator")))}};An("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},On,{name:{validate:En(vn("string"),Object.assign((function(e,t,r){if(ar.env.BABEL_TYPES_8_BREAKING&&!Pr(r,!1))throw new TypeError('"'+r+'" is not a valid identifier name')}),{type:"string"}))},optional:{validate:vn("boolean"),optional:!0}}),validate:function(e,t,r){if(ar.env.BABEL_TYPES_8_BREAKING){var n=/\.(\w+)$/.exec(t);if(n){var s=l(n,2)[1],a={computed:!1};if("property"===s){if(ur("MemberExpression",e,a))return;if(ur("OptionalMemberExpression",e,a))return}else if("key"===s){if(ur("Property",e,a))return;if(ur("Method",e,a))return}else if("exported"===s){if(ur("ExportSpecifier",e))return}else if("imported"===s){if(ur("ImportSpecifier",e,{imported:r}))return}else if("meta"===s&&ur("MetaProperty",e,{meta:r}))return;if((jr(r.name)||wr(r.name,!1))&&"this"!==r.name)throw new TypeError('"'+r.name+'" is not a valid identifier')}}}}),An("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:yn("Expression")},consequent:{validate:yn("Statement")},alternate:{optional:!0,validate:yn("Statement")}}}),An("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:yn("Identifier")},body:{validate:yn("Statement")}}}),An("StringLiteral",{builder:["value"],fields:{value:{validate:vn("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),An("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:vn("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),An("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),An("BooleanLiteral",{builder:["value"],fields:{value:{validate:vn("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),An("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:vn("string")},flags:{validate:En(vn("string"),Object.assign((function(e,t,r){if(ar.env.BABEL_TYPES_8_BREAKING){var n=/[^gimsuy]/.exec(r);if(n)throw new TypeError('"'+n[0]+'" is not a valid RegExp flag')}}),{type:"string"})),default:""}}}),An("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:mn.apply(void 0,c(Or))},left:{validate:yn("Expression")},right:{validate:yn("Expression")}}}),An("MemberExpression",{builder:["object","property","computed"].concat(c(ar.env.BABEL_TYPES_8_BREAKING?[]:["optional"])),visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:yn("Expression")},property:{validate:(jn=yn("Identifier","PrivateName"),Pn=yn("Expression"),In=function(e,t,r){var n=e.computed?Pn:jn;n(e,t,r)},In.oneOfNodeTypes=["Expression","Identifier","PrivateName"],In)},computed:{default:!1}},ar.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:mn(!0,!1),optional:!0}})}),An("NewExpression",{inherits:"CallExpression"}),An("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:vn("string")},sourceType:{validate:mn("script","module"),default:"script"},interpreter:{validate:yn("InterpreterDirective"),default:null,optional:!0},directives:{validate:En(vn("array"),hn(yn("Directive"))),default:[]},body:{validate:En(vn("array"),hn(yn("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),An("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:En(vn("array"),hn(yn("ObjectMethod","ObjectProperty","SpreadElement")))}}}),An("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},Cn,Sn,{kind:Object.assign({validate:mn("method","get","set")},ar.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){var e=yn("Identifier","StringLiteral","NumericLiteral"),t=yn("Expression"),r=function(r,n,s){var a=r.computed?t:e;a(r,n,s)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],r}()},decorators:{validate:En(vn("array"),hn(yn("Decorator"))),optional:!0},body:{validate:yn("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),An("ObjectProperty",{builder:["key","value","computed","shorthand"].concat(c(ar.env.BABEL_TYPES_8_BREAKING?[]:["decorators"])),fields:{computed:{default:!1},key:{validate:function(){var e=yn("Identifier","StringLiteral","NumericLiteral"),t=yn("Expression"),r=function(r,n,s){var a=r.computed?t:e;a(r,n,s)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],r}()},value:{validate:yn("Expression","PatternLike")},shorthand:{validate:En(vn("boolean"),Object.assign((function(e,t,r){if(ar.env.BABEL_TYPES_8_BREAKING&&r&&e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")}),{type:"boolean"}),(function(e,t,r){if(ar.env.BABEL_TYPES_8_BREAKING&&r&&!ur("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")})),default:!1},decorators:{validate:En(vn("array"),hn(yn("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){var e=yn("Identifier","Pattern"),t=yn("Expression");return function(r,n,s){ar.env.BABEL_TYPES_8_BREAKING&&(ur("ObjectPattern",r)?e:t)(s,"value",s.value)}}()}),An("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},On,{argument:{validate:ar.env.BABEL_TYPES_8_BREAKING?yn("Identifier","Pattern","MemberExpression"):yn("LVal")}}),validate:function(e,t){if(ar.env.BABEL_TYPES_8_BREAKING){var r=/(\w+)\[(\d+)\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");var n=l(r,3),s=n[1],a=n[2];if(e[s].length>a+1)throw new TypeError("RestElement must be last element of "+s)}}}),An("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:yn("Expression"),optional:!0}}}),An("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:En(vn("array"),hn(yn("Expression")))}},aliases:["Expression"]}),An("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:yn("Expression")}}}),An("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:yn("Expression"),optional:!0},consequent:{validate:En(vn("array"),hn(yn("Statement")))}}}),An("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:yn("Expression")},cases:{validate:En(vn("array"),hn(yn("SwitchCase")))}}}),An("ThisExpression",{aliases:["Expression"]}),An("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:yn("Expression")}}}),An("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:En(yn("BlockStatement"),Object.assign((function(e){if(ar.env.BABEL_TYPES_8_BREAKING&&!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:yn("CatchClause")},finalizer:{optional:!0,validate:yn("BlockStatement")}}}),An("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:yn("Expression")},operator:{validate:mn.apply(void 0,c(Xr))}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),An("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:ar.env.BABEL_TYPES_8_BREAKING?yn("Identifier","MemberExpression"):yn("Expression")},operator:{validate:mn.apply(void 0,c(Rr))}},visitor:["argument"],aliases:["Expression"]}),An("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:vn("boolean"),optional:!0},kind:{validate:mn("var","let","const")},declarations:{validate:En(vn("array"),hn(yn("VariableDeclarator")))}},validate:function(e,t,r){if(ar.env.BABEL_TYPES_8_BREAKING&&ur("ForXStatement",e,{left:r})&&1!==r.declarations.length)throw new TypeError("Exactly one VariableDeclarator is required in the VariableDeclaration of a "+e.type)}}),An("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!ar.env.BABEL_TYPES_8_BREAKING)return yn("LVal");var e=yn("Identifier","ArrayPattern","ObjectPattern"),t=yn("Identifier");return function(r,n,s){(r.init?e:t)(r,n,s)}}()},definite:{optional:!0,validate:vn("boolean")},init:{optional:!0,validate:yn("Expression")}}}),An("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:yn("Expression")},body:{validate:yn("Statement")}}}),An("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:yn("Expression")},body:{validate:yn("Statement")}}}),An("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},On,{left:{validate:yn("Identifier","ObjectPattern","ArrayPattern","MemberExpression")},right:{validate:yn("Expression")},decorators:{validate:En(vn("array"),hn(yn("Decorator"))),optional:!0}})}),An("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},On,{elements:{validate:En(vn("array"),hn(gn("null","PatternLike")))},decorators:{validate:En(vn("array"),hn(yn("Decorator"))),optional:!0}})}),An("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Cn,Sn,{expression:{validate:vn("boolean")},body:{validate:yn("BlockStatement","Expression")}})}),An("ClassBody",{visitor:["body"],fields:{body:{validate:En(vn("array"),hn(yn("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","TSDeclareMethod","TSIndexSignature")))}}}),An("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:yn("Identifier"),optional:!0},typeParameters:{validate:yn("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:yn("ClassBody")},superClass:{optional:!0,validate:yn("Expression")},superTypeParameters:{validate:yn("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:En(vn("array"),hn(yn("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:En(vn("array"),hn(yn("Decorator"))),optional:!0},mixins:{validate:yn("InterfaceExtends"),optional:!0}}}),An("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:yn("Identifier")},typeParameters:{validate:yn("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:yn("ClassBody")},superClass:{optional:!0,validate:yn("Expression")},superTypeParameters:{validate:yn("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:En(vn("array"),hn(yn("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:En(vn("array"),hn(yn("Decorator"))),optional:!0},mixins:{validate:yn("InterfaceExtends"),optional:!0},declare:{validate:vn("boolean"),optional:!0},abstract:{validate:vn("boolean"),optional:!0}},validate:function(){var e=yn("Identifier");return function(t,r,n){ar.env.BABEL_TYPES_8_BREAKING&&(ur("ExportDefaultDeclaration",t)||e(n,"id",n.id))}}()}),An("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:yn("StringLiteral")},exportKind:cn(mn("type","value")),assertions:{optional:!0,validate:En(vn("array"),hn(yn("ImportAttribute")))}}}),An("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:yn("FunctionDeclaration","TSDeclareFunction","ClassDeclaration","Expression")}}}),An("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:En(yn("Declaration"),Object.assign((function(e,t,r){if(ar.env.BABEL_TYPES_8_BREAKING&&r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")}),{oneOfNodeTypes:["Declaration"]}),(function(e,t,r){if(ar.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")}))},assertions:{optional:!0,validate:En(vn("array"),hn(yn("ImportAttribute")))},specifiers:{default:[],validate:En(vn("array"),hn((Fn=yn("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),kn=yn("ExportSpecifier"),ar.env.BABEL_TYPES_8_BREAKING?function(e,t,r){(e.source?Fn:kn)(e,t,r)}:Fn)))},source:{validate:yn("StringLiteral"),optional:!0},exportKind:cn(mn("type","value"))}}),An("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:yn("Identifier")},exported:{validate:yn("Identifier","StringLiteral")}}}),An("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!ar.env.BABEL_TYPES_8_BREAKING)return yn("VariableDeclaration","LVal");var e=yn("VariableDeclaration"),t=yn("Identifier","MemberExpression","ArrayPattern","ObjectPattern");return function(r,n,s){ur("VariableDeclaration",s)?e(r,n,s):t(r,n,s)}}()},right:{validate:yn("Expression")},body:{validate:yn("Statement")},await:{default:!1}}}),An("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{assertions:{optional:!0,validate:En(vn("array"),hn(yn("ImportAttribute")))},specifiers:{validate:En(vn("array"),hn(yn("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:yn("StringLiteral")},importKind:{validate:mn("type","typeof","value"),optional:!0}}}),An("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:yn("Identifier")}}}),An("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:yn("Identifier")}}}),An("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:yn("Identifier")},imported:{validate:yn("Identifier","StringLiteral")},importKind:{validate:mn("type","typeof"),optional:!0}}}),An("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:En(yn("Identifier"),Object.assign((function(e,t,r){if(ar.env.BABEL_TYPES_8_BREAKING){var n;switch(r.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta"}if(!ur("Identifier",e.property,{name:n}))throw new TypeError("Unrecognised MetaProperty")}}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:yn("Identifier")}}});var Rn={abstract:{validate:vn("boolean"),optional:!0},accessibility:{validate:mn("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:vn("boolean"),optional:!0},key:{validate:En(function(){var e=yn("Identifier","StringLiteral","NumericLiteral"),t=yn("Expression");return function(r,n,s){(r.computed?t:e)(r,n,s)}}(),yn("Identifier","StringLiteral","NumericLiteral","Expression"))}},Nn=Object.assign({},Cn,Rn,{params:{validate:En(vn("array"),hn(yn("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:mn("get","set","method","constructor"),default:"method"},access:{validate:En(vn("string"),mn("public","private","protected")),optional:!0},decorators:{validate:En(vn("array"),hn(yn("Decorator"))),optional:!0}});An("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},Nn,Sn,{body:{validate:yn("BlockStatement")}})}),An("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},On,{properties:{validate:En(vn("array"),hn(yn("RestElement","ObjectProperty")))}})}),An("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:yn("Expression")}}}),An("Super",{aliases:["Expression"]}),An("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:yn("Expression")},quasi:{validate:yn("TemplateLiteral")},typeParameters:{validate:yn("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),An("TemplateElement",{builder:["value","tail"],fields:{value:{validate:function(e){function t(t,r,n){for(var s=[],a=0,i=Object.keys(e);a<i.length;a++){var o=i[a];try{Jr(t,o,n[o],e[o])}catch(e){if(e instanceof TypeError){s.push(e.message);continue}throw e}}if(s.length)throw new TypeError("Property "+r+" of "+t.type+" expected to have the following:\n"+s.join("\n"))}return t.shapeOf=e,t}({raw:{validate:vn("string")},cooked:{validate:vn("string"),optional:!0}})},tail:{default:!1}}}),An("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:En(vn("array"),hn(yn("TemplateElement")))},expressions:{validate:En(vn("array"),hn(yn("Expression","TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError("Number of "+e.type+" quasis should be exactly one more than the number of expressions.\nExpected "+(r.length+1)+" quasis but got "+e.quasis.length)}))}}}),An("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:En(vn("boolean"),Object.assign((function(e,t,r){if(ar.env.BABEL_TYPES_8_BREAKING&&r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})),default:!1},argument:{optional:!0,validate:yn("Expression")}}}),An("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:yn("Expression")}}}),An("Import",{aliases:["Expression"]}),An("BigIntLiteral",{builder:["value"],fields:{value:{validate:vn("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),An("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:yn("Identifier")}}}),An("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:yn("Expression")},property:{validate:function(){var e=yn("Identifier"),t=yn("Expression"),r=function(r,n,s){var a=r.computed?t:e;a(r,n,s)};return r.oneOfNodeTypes=["Expression","Identifier"],r}()},computed:{default:!1},optional:{validate:ar.env.BABEL_TYPES_8_BREAKING?En(vn("boolean"),bn()):vn("boolean")}}}),An("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:yn("Expression")},arguments:{validate:En(vn("array"),hn(yn("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:ar.env.BABEL_TYPES_8_BREAKING?En(vn("boolean"),bn()):vn("boolean")},typeArguments:{validate:yn("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:yn("TSTypeParameterInstantiation"),optional:!0}}});var Bn=function(e,t){void 0===t&&(t="TypeParameterDeclaration"),An(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:ln("Identifier"),typeParameters:pn(t),extends:cn(dn("InterfaceExtends")),mixins:cn(dn("InterfaceExtends")),implements:cn(dn("ClassImplements")),body:ln("ObjectTypeAnnotation")}})};An("AnyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),An("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow","FlowType"],fields:{elementType:ln("FlowType")}}),An("BooleanTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),An("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:on(vn("boolean"))}}),An("NullLiteralTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),An("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:ln("Identifier"),typeParameters:pn("TypeParameterInstantiation")}}),Bn("DeclareClass"),An("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:ln("Identifier"),predicate:pn("DeclaredPredicate")}}),Bn("DeclareInterface"),An("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:ln(["Identifier","StringLiteral"]),body:ln("BlockStatement"),kind:cn(mn("CommonJS","ES"))}}),An("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:ln("TypeAnnotation")}}),An("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:ln("Identifier"),typeParameters:pn("TypeParameterDeclaration"),right:ln("FlowType")}}),An("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:ln("Identifier"),typeParameters:pn("TypeParameterDeclaration"),supertype:pn("FlowType")}}),An("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:ln("Identifier")}}),An("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{declaration:pn("Flow"),specifiers:cn(dn(["ExportSpecifier","ExportNamespaceSpecifier"])),source:pn("StringLiteral"),default:cn(vn("boolean"))}}),An("DeclareExportAllDeclaration",{visitor:["source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{source:ln("StringLiteral"),exportKind:cn(mn("type","value"))}}),An("DeclaredPredicate",{visitor:["value"],aliases:["Flow","FlowPredicate"],fields:{value:ln("Flow")}}),An("ExistsTypeAnnotation",{aliases:["Flow","FlowType"]}),An("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow","FlowType"],fields:{typeParameters:pn("TypeParameterDeclaration"),params:on(dn("FunctionTypeParam")),rest:pn("FunctionTypeParam"),this:pn("FunctionTypeParam"),returnType:ln("FlowType")}}),An("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{name:pn("Identifier"),typeAnnotation:ln("FlowType"),optional:cn(vn("boolean"))}}),An("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow","FlowType"],fields:{id:ln(["Identifier","QualifiedTypeIdentifier"]),typeParameters:pn("TypeParameterInstantiation")}}),An("InferredPredicate",{aliases:["Flow","FlowPredicate"]}),An("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:ln(["Identifier","QualifiedTypeIdentifier"]),typeParameters:pn("TypeParameterInstantiation")}}),Bn("InterfaceDeclaration"),An("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["Flow","FlowType"],fields:{extends:cn(dn("InterfaceExtends")),body:ln("ObjectTypeAnnotation")}}),An("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:on(dn("FlowType"))}}),An("MixedTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),An("EmptyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),An("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow","FlowType"],fields:{typeAnnotation:ln("FlowType")}}),An("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:on(vn("number"))}}),An("NumberTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),An("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["Flow","FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:on(dn(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:cn(dn("ObjectTypeIndexer")),callProperties:cn(dn("ObjectTypeCallProperty")),internalSlots:cn(dn("ObjectTypeInternalSlot")),exact:{validate:vn("boolean"),default:!1},inexact:cn(vn("boolean"))}}),An("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["Flow","UserWhitespacable"],fields:{id:ln("Identifier"),value:ln("FlowType"),optional:on(vn("boolean")),static:on(vn("boolean")),method:on(vn("boolean"))}}),An("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{value:ln("FlowType"),static:on(vn("boolean"))}}),An("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{id:pn("Identifier"),key:ln("FlowType"),value:ln("FlowType"),static:on(vn("boolean")),variance:pn("Variance")}}),An("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{key:ln(["Identifier","StringLiteral"]),value:ln("FlowType"),kind:on(mn("init","get","set")),static:on(vn("boolean")),proto:on(vn("boolean")),optional:on(vn("boolean")),variance:pn("Variance"),method:on(vn("boolean"))}}),An("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["Flow","UserWhitespacable"],fields:{argument:ln("FlowType")}}),An("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:ln("Identifier"),typeParameters:pn("TypeParameterDeclaration"),supertype:pn("FlowType"),impltype:ln("FlowType")}}),An("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{id:ln("Identifier"),qualification:ln(["Identifier","QualifiedTypeIdentifier"])}}),An("StringLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:on(vn("string"))}}),An("StringTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),An("SymbolTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),An("ThisTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),An("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:on(dn("FlowType"))}}),An("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow","FlowType"],fields:{argument:ln("FlowType")}}),An("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:ln("Identifier"),typeParameters:pn("TypeParameterDeclaration"),right:ln("FlowType")}}),An("TypeAnnotation",{aliases:["Flow"],visitor:["typeAnnotation"],fields:{typeAnnotation:ln("FlowType")}}),An("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{expression:ln("Expression"),typeAnnotation:ln("TypeAnnotation")}}),An("TypeParameter",{aliases:["Flow"],visitor:["bound","default","variance"],fields:{name:on(vn("string")),bound:pn("TypeAnnotation"),default:pn("FlowType"),variance:pn("Variance")}}),An("TypeParameterDeclaration",{aliases:["Flow"],visitor:["params"],fields:{params:on(dn("TypeParameter"))}}),An("TypeParameterInstantiation",{aliases:["Flow"],visitor:["params"],fields:{params:on(dn("FlowType"))}}),An("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:on(dn("FlowType"))}}),An("Variance",{aliases:["Flow"],builder:["kind"],fields:{kind:on(mn("minus","plus"))}}),An("VoidTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),An("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:ln("Identifier"),body:ln(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),An("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:on(vn("boolean")),members:fn("EnumBooleanMember"),hasUnknownMembers:on(vn("boolean"))}}),An("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:on(vn("boolean")),members:fn("EnumNumberMember"),hasUnknownMembers:on(vn("boolean"))}}),An("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:on(vn("boolean")),members:fn(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:on(vn("boolean"))}}),An("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:fn("EnumDefaultedMember"),hasUnknownMembers:on(vn("boolean"))}}),An("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:ln("Identifier"),init:ln("BooleanLiteral")}}),An("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:ln("Identifier"),init:ln("NumericLiteral")}}),An("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:ln("Identifier"),init:ln("StringLiteral")}}),An("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:ln("Identifier")}}),An("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["Flow","FlowType"],fields:{objectType:ln("FlowType"),indexType:ln("FlowType")}}),An("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["Flow","FlowType"],fields:{objectType:ln("FlowType"),indexType:ln("FlowType"),optional:on(vn("boolean"))}}),An("JSXAttribute",{visitor:["name","value"],aliases:["JSX","Immutable"],fields:{name:{validate:yn("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:yn("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),An("JSXClosingElement",{visitor:["name"],aliases:["JSX","Immutable"],fields:{name:{validate:yn("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),An("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["JSX","Immutable","Expression"],fields:{openingElement:{validate:yn("JSXOpeningElement")},closingElement:{optional:!0,validate:yn("JSXClosingElement")},children:{validate:En(vn("array"),hn(yn("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))},selfClosing:{validate:vn("boolean"),optional:!0}}}),An("JSXEmptyExpression",{aliases:["JSX"]}),An("JSXExpressionContainer",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:yn("Expression","JSXEmptyExpression")}}}),An("JSXSpreadChild",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:yn("Expression")}}}),An("JSXIdentifier",{builder:["name"],aliases:["JSX"],fields:{name:{validate:vn("string")}}}),An("JSXMemberExpression",{visitor:["object","property"],aliases:["JSX"],fields:{object:{validate:yn("JSXMemberExpression","JSXIdentifier")},property:{validate:yn("JSXIdentifier")}}}),An("JSXNamespacedName",{visitor:["namespace","name"],aliases:["JSX"],fields:{namespace:{validate:yn("JSXIdentifier")},name:{validate:yn("JSXIdentifier")}}}),An("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["JSX","Immutable"],fields:{name:{validate:yn("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:En(vn("array"),hn(yn("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:yn("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),An("JSXSpreadAttribute",{visitor:["argument"],aliases:["JSX"],fields:{argument:{validate:yn("Expression")}}}),An("JSXText",{aliases:["JSX","Immutable"],builder:["value"],fields:{value:{validate:vn("string")}}}),An("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["JSX","Immutable","Expression"],fields:{openingFragment:{validate:yn("JSXOpeningFragment")},closingFragment:{validate:yn("JSXClosingFragment")},children:{validate:En(vn("array"),hn(yn("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),An("JSXOpeningFragment",{aliases:["JSX","Immutable"]}),An("JSXClosingFragment",{aliases:["JSX","Immutable"]});for(var _n=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Ln={Declaration:["Statement"],Pattern:["PatternLike","LVal"]},Mn=0,Un=_n;Mn<Un.length;Mn++){var Gn=Un[Mn],Vn=Zr[Gn];null!=Vn&&Vn.length&&(Ln[Gn]=Vn)}var Wn={};Object.keys(Ln).forEach((function(e){Ln[e].forEach((function(t){Object.hasOwnProperty.call(Wn,t)||(Wn[t]=[]),Wn[t].push(e)}))})),An("Noop",{visitor:[]}),An("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:yn("Identifier")},expectedNode:{validate:mn.apply(void 0,c(_n))}}}),An("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:vn("string")}}}),An("ArgumentPlaceholder",{}),An("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:ar.env.BABEL_TYPES_8_BREAKING?{object:{validate:yn("Expression")},callee:{validate:yn("Expression")}}:{object:{validate:Object.assign((function(){}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((function(){}),{oneOfNodeTypes:["Expression"]})}}}),An("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Rn,{value:{validate:yn("Expression"),optional:!0},definite:{validate:vn("boolean"),optional:!0},typeAnnotation:{validate:yn("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:En(vn("array"),hn(yn("Decorator"))),optional:!0},readonly:{validate:vn("boolean"),optional:!0},declare:{validate:vn("boolean"),optional:!0}})}),An("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:yn("Expression")}}}),An("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:yn("Expression")}}}),An("PipelinePrimaryTopicReference",{aliases:["Expression"]}),An("ClassPrivateProperty",{visitor:["key","value","decorators"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:yn("PrivateName")},value:{validate:yn("Expression"),optional:!0},typeAnnotation:{validate:yn("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:En(vn("array"),hn(yn("Decorator"))),optional:!0}}}),An("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Nn,Sn,{key:{validate:yn("PrivateName")},body:{validate:yn("BlockStatement")}})}),An("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:yn("Identifier","StringLiteral")},value:{validate:yn("StringLiteral")}}}),An("Decorator",{visitor:["expression"],fields:{expression:{validate:yn("Expression")}}}),An("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:yn("BlockStatement")},async:{validate:vn("boolean"),default:!1}}}),An("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:yn("Identifier")}}}),An("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:yn("Identifier")}}}),An("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:En(vn("array"),hn(yn("ObjectProperty","SpreadElement")))}}}),An("TupleExpression",{fields:{elements:{validate:En(vn("array"),hn(yn("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),An("DecimalLiteral",{builder:["value"],fields:{value:{validate:vn("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),An("StaticBlock",{visitor:["body"],fields:{body:{validate:En(vn("array"),hn(yn("Statement")))}},aliases:["Scopable","BlockParent"]}),An("ModuleExpression",{visitor:["body"],fields:{body:{validate:yn("Program")}},aliases:["Expression"]});var Hn=vn("boolean"),Xn={returnType:{validate:yn("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:yn("TSTypeParameterDeclaration","Noop"),optional:!0}};An("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:mn("public","private","protected"),optional:!0},readonly:{validate:vn("boolean"),optional:!0},parameter:{validate:yn("Identifier","AssignmentPattern")}}}),An("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},Tn,Xn)}),An("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},Nn,Xn)}),An("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:ln("TSEntityName"),right:ln("Identifier")}});var qn={typeParameters:pn("TSTypeParameterDeclaration"),parameters:fn(["Identifier","RestElement"]),typeAnnotation:pn("TSTypeAnnotation")},$n={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:qn};An("TSCallSignatureDeclaration",$n),An("TSConstructSignatureDeclaration",$n);var Kn={key:ln("Expression"),computed:on(Hn),optional:cn(Hn)};An("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},Kn,{readonly:cn(Hn),typeAnnotation:pn("TSTypeAnnotation"),initializer:pn("Expression")})}),An("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},qn,Kn,{kind:{validate:mn("method","get","set")}})}),An("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:cn(Hn),static:cn(Hn),parameters:fn("Identifier"),typeAnnotation:pn("TSTypeAnnotation")}});for(var zn=0,Jn=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];zn<Jn.length;zn++){An(Jn[zn],{aliases:["TSType","TSBaseType"],visitor:[],fields:{}})}An("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var Yn={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};An("TSFunctionType",Object.assign({},Yn,{fields:qn})),An("TSConstructorType",Object.assign({},Yn,{fields:Object.assign({},qn,{abstract:cn(Hn)})})),An("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:ln("TSEntityName"),typeParameters:pn("TSTypeParameterInstantiation")}}),An("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:ln(["Identifier","TSThisType"]),typeAnnotation:pn("TSTypeAnnotation"),asserts:cn(Hn)}}),An("TSTypeQuery",{aliases:["TSType"],visitor:["exprName"],fields:{exprName:ln(["TSEntityName","TSImportType"])}}),An("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:fn("TSTypeElement")}}),An("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:ln("TSType")}}),An("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:fn(["TSType","TSNamedTupleMember"])}}),An("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:ln("TSType")}}),An("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:ln("TSType")}}),An("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:ln("Identifier"),optional:{validate:Hn,default:!1},elementType:ln("TSType")}});var Qn={aliases:["TSType"],visitor:["types"],fields:{types:fn("TSType")}};An("TSUnionType",Qn),An("TSIntersectionType",Qn),An("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:ln("TSType"),extendsType:ln("TSType"),trueType:ln("TSType"),falseType:ln("TSType")}}),An("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:ln("TSTypeParameter")}}),An("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:ln("TSType")}}),An("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:on(vn("string")),typeAnnotation:ln("TSType")}}),An("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:ln("TSType"),indexType:ln("TSType")}}),An("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:cn(Hn),typeParameter:ln("TSTypeParameter"),optional:cn(Hn),typeAnnotation:pn("TSType"),nameType:pn("TSType")}}),An("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:ln(["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral"])}}),An("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:ln("TSEntityName"),typeParameters:pn("TSTypeParameterInstantiation")}}),An("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:cn(Hn),id:ln("Identifier"),typeParameters:pn("TSTypeParameterDeclaration"),extends:cn(dn("TSExpressionWithTypeArguments")),body:ln("TSInterfaceBody")}}),An("TSInterfaceBody",{visitor:["body"],fields:{body:fn("TSTypeElement")}}),An("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:cn(Hn),id:ln("Identifier"),typeParameters:pn("TSTypeParameterDeclaration"),typeAnnotation:ln("TSType")}}),An("TSAsExpression",{aliases:["Expression"],visitor:["expression","typeAnnotation"],fields:{expression:ln("Expression"),typeAnnotation:ln("TSType")}}),An("TSTypeAssertion",{aliases:["Expression"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:ln("TSType"),expression:ln("Expression")}}),An("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:cn(Hn),const:cn(Hn),id:ln("Identifier"),members:fn("TSEnumMember"),initializer:pn("Expression")}}),An("TSEnumMember",{visitor:["id","initializer"],fields:{id:ln(["Identifier","StringLiteral"]),initializer:pn("Expression")}}),An("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:cn(Hn),global:cn(Hn),id:ln(["Identifier","StringLiteral"]),body:ln(["TSModuleBlock","TSModuleDeclaration"])}}),An("TSModuleBlock",{aliases:["Scopable","Block","BlockParent"],visitor:["body"],fields:{body:fn("Statement")}}),An("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:ln("StringLiteral"),qualifier:pn("TSEntityName"),typeParameters:pn("TSTypeParameterInstantiation")}}),An("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:on(Hn),id:ln("Identifier"),moduleReference:ln(["TSEntityName","TSExternalModuleReference"])}}),An("TSExternalModuleReference",{visitor:["expression"],fields:{expression:ln("StringLiteral")}}),An("TSNonNullExpression",{aliases:["Expression"],visitor:["expression"],fields:{expression:ln("Expression")}}),An("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:ln("Expression")}}),An("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:ln("Identifier")}}),An("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:yn("TSType")}}}),An("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:En(vn("array"),hn(yn("TSType")))}}}),An("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:En(vn("array"),hn(yn("TSTypeParameter")))}}}),An("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:vn("string")},constraint:{validate:yn("TSType"),optional:!0},default:{validate:yn("TSType"),optional:!0}}}),qt(Qr),qt(Zr),qt(en),qt(tn),qt(rn),qt(nn),qt(Ln),qt(Wn);var Zn=Object.keys(Qr).concat(Object.keys(en)).concat(Object.keys(nn));function es(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var s=rn[e],a=r.length;if(a>s.length)throw new Error(e+": Too many arguments passed. Received "+a+" but can receive no more than "+s.length);var i={type:e},o=0;s.forEach((function(t){var n,s=tn[e][t];o<a&&(n=r[o]),void 0===n&&(n=Array.isArray(s.default)?[]:s.default),i[t]=n,o++}));for(var u=0,l=Object.keys(i);u<l.length;u++){var c=l[u];zr(i,c,i[c])}return i}function ts(e){return es.apply(void 0,["ArrayExpression"].concat(Array.prototype.slice.call(arguments)))}function rs(e,t,r){return es.apply(void 0,["AssignmentExpression"].concat(Array.prototype.slice.call(arguments)))}function ns(e,t,r){return es.apply(void 0,["BinaryExpression"].concat(Array.prototype.slice.call(arguments)))}function ss(e){return es.apply(void 0,["InterpreterDirective"].concat(Array.prototype.slice.call(arguments)))}function as(e){return es.apply(void 0,["Directive"].concat(Array.prototype.slice.call(arguments)))}function is(e){return es.apply(void 0,["DirectiveLiteral"].concat(Array.prototype.slice.call(arguments)))}function os(e,t){return es.apply(void 0,["BlockStatement"].concat(Array.prototype.slice.call(arguments)))}function us(e){return es.apply(void 0,["BreakStatement"].concat(Array.prototype.slice.call(arguments)))}function ls(e,t){return es.apply(void 0,["CallExpression"].concat(Array.prototype.slice.call(arguments)))}function cs(e,t){return es.apply(void 0,["CatchClause"].concat(Array.prototype.slice.call(arguments)))}function ps(e,t,r){return es.apply(void 0,["ConditionalExpression"].concat(Array.prototype.slice.call(arguments)))}function ds(e){return es.apply(void 0,["ContinueStatement"].concat(Array.prototype.slice.call(arguments)))}function fs(){return es.apply(void 0,["DebuggerStatement"].concat(Array.prototype.slice.call(arguments)))}function hs(e,t){return es.apply(void 0,["DoWhileStatement"].concat(Array.prototype.slice.call(arguments)))}function ms(){return es.apply(void 0,["EmptyStatement"].concat(Array.prototype.slice.call(arguments)))}function ys(e){return es.apply(void 0,["ExpressionStatement"].concat(Array.prototype.slice.call(arguments)))}function gs(e,t,r){return es.apply(void 0,["File"].concat(Array.prototype.slice.call(arguments)))}function vs(e,t,r){return es.apply(void 0,["ForInStatement"].concat(Array.prototype.slice.call(arguments)))}function bs(e,t,r,n){return es.apply(void 0,["ForStatement"].concat(Array.prototype.slice.call(arguments)))}function Es(e,t,r,n,s){return es.apply(void 0,["FunctionDeclaration"].concat(Array.prototype.slice.call(arguments)))}function xs(e,t,r,n,s){return es.apply(void 0,["FunctionExpression"].concat(Array.prototype.slice.call(arguments)))}function Ds(e){return es.apply(void 0,["Identifier"].concat(Array.prototype.slice.call(arguments)))}function As(e,t,r){return es.apply(void 0,["IfStatement"].concat(Array.prototype.slice.call(arguments)))}function ws(e,t){return es.apply(void 0,["LabeledStatement"].concat(Array.prototype.slice.call(arguments)))}function Cs(e){return es.apply(void 0,["StringLiteral"].concat(Array.prototype.slice.call(arguments)))}function Ss(e){return es.apply(void 0,["NumericLiteral"].concat(Array.prototype.slice.call(arguments)))}function Ts(){return es.apply(void 0,["NullLiteral"].concat(Array.prototype.slice.call(arguments)))}function js(e){return es.apply(void 0,["BooleanLiteral"].concat(Array.prototype.slice.call(arguments)))}function Ps(e,t){return es.apply(void 0,["RegExpLiteral"].concat(Array.prototype.slice.call(arguments)))}function Is(e,t,r){return es.apply(void 0,["LogicalExpression"].concat(Array.prototype.slice.call(arguments)))}function Fs(e,t,r,n){return es.apply(void 0,["MemberExpression"].concat(Array.prototype.slice.call(arguments)))}function ks(e,t){return es.apply(void 0,["NewExpression"].concat(Array.prototype.slice.call(arguments)))}function Os(e,t,r,n){return es.apply(void 0,["Program"].concat(Array.prototype.slice.call(arguments)))}function Rs(e){return es.apply(void 0,["ObjectExpression"].concat(Array.prototype.slice.call(arguments)))}function Ns(e,t,r,n,s,a,i){return es.apply(void 0,["ObjectMethod"].concat(Array.prototype.slice.call(arguments)))}function Bs(e,t,r,n,s){return es.apply(void 0,["ObjectProperty"].concat(Array.prototype.slice.call(arguments)))}function _s(e){return es.apply(void 0,["RestElement"].concat(Array.prototype.slice.call(arguments)))}function Ls(e){return es.apply(void 0,["ReturnStatement"].concat(Array.prototype.slice.call(arguments)))}function Ms(e){return es.apply(void 0,["SequenceExpression"].concat(Array.prototype.slice.call(arguments)))}function Us(e){return es.apply(void 0,["ParenthesizedExpression"].concat(Array.prototype.slice.call(arguments)))}function Gs(e,t){return es.apply(void 0,["SwitchCase"].concat(Array.prototype.slice.call(arguments)))}function Vs(e,t){return es.apply(void 0,["SwitchStatement"].concat(Array.prototype.slice.call(arguments)))}function Ws(){return es.apply(void 0,["ThisExpression"].concat(Array.prototype.slice.call(arguments)))}function Hs(e){return es.apply(void 0,["ThrowStatement"].concat(Array.prototype.slice.call(arguments)))}function Xs(e,t,r){return es.apply(void 0,["TryStatement"].concat(Array.prototype.slice.call(arguments)))}function qs(e,t,r){return es.apply(void 0,["UnaryExpression"].concat(Array.prototype.slice.call(arguments)))}function $s(e,t,r){return es.apply(void 0,["UpdateExpression"].concat(Array.prototype.slice.call(arguments)))}function Ks(e,t){return es.apply(void 0,["VariableDeclaration"].concat(Array.prototype.slice.call(arguments)))}function zs(e,t){return es.apply(void 0,["VariableDeclarator"].concat(Array.prototype.slice.call(arguments)))}function Js(e,t){return es.apply(void 0,["WhileStatement"].concat(Array.prototype.slice.call(arguments)))}function Ys(e,t){return es.apply(void 0,["WithStatement"].concat(Array.prototype.slice.call(arguments)))}function Qs(e,t){return es.apply(void 0,["AssignmentPattern"].concat(Array.prototype.slice.call(arguments)))}function Zs(e){return es.apply(void 0,["ArrayPattern"].concat(Array.prototype.slice.call(arguments)))}function ea(e,t,r){return es.apply(void 0,["ArrowFunctionExpression"].concat(Array.prototype.slice.call(arguments)))}function ta(e){return es.apply(void 0,["ClassBody"].concat(Array.prototype.slice.call(arguments)))}function ra(e,t,r,n){return es.apply(void 0,["ClassExpression"].concat(Array.prototype.slice.call(arguments)))}function na(e,t,r,n){return es.apply(void 0,["ClassDeclaration"].concat(Array.prototype.slice.call(arguments)))}function sa(e){return es.apply(void 0,["ExportAllDeclaration"].concat(Array.prototype.slice.call(arguments)))}function aa(e){return es.apply(void 0,["ExportDefaultDeclaration"].concat(Array.prototype.slice.call(arguments)))}function ia(e,t,r){return es.apply(void 0,["ExportNamedDeclaration"].concat(Array.prototype.slice.call(arguments)))}function oa(e,t){return es.apply(void 0,["ExportSpecifier"].concat(Array.prototype.slice.call(arguments)))}function ua(e,t,r,n){return es.apply(void 0,["ForOfStatement"].concat(Array.prototype.slice.call(arguments)))}function la(e,t){return es.apply(void 0,["ImportDeclaration"].concat(Array.prototype.slice.call(arguments)))}function ca(e){return es.apply(void 0,["ImportDefaultSpecifier"].concat(Array.prototype.slice.call(arguments)))}function pa(e){return es.apply(void 0,["ImportNamespaceSpecifier"].concat(Array.prototype.slice.call(arguments)))}function da(e,t){return es.apply(void 0,["ImportSpecifier"].concat(Array.prototype.slice.call(arguments)))}function fa(e,t){return es.apply(void 0,["MetaProperty"].concat(Array.prototype.slice.call(arguments)))}function ha(e,t,r,n,s,a,i,o){return es.apply(void 0,["ClassMethod"].concat(Array.prototype.slice.call(arguments)))}function ma(e){return es.apply(void 0,["ObjectPattern"].concat(Array.prototype.slice.call(arguments)))}function ya(e){return es.apply(void 0,["SpreadElement"].concat(Array.prototype.slice.call(arguments)))}function ga(){return es.apply(void 0,["Super"].concat(Array.prototype.slice.call(arguments)))}function va(e,t){return es.apply(void 0,["TaggedTemplateExpression"].concat(Array.prototype.slice.call(arguments)))}function ba(e,t){return es.apply(void 0,["TemplateElement"].concat(Array.prototype.slice.call(arguments)))}function Ea(e,t){return es.apply(void 0,["TemplateLiteral"].concat(Array.prototype.slice.call(arguments)))}function xa(e,t){return es.apply(void 0,["YieldExpression"].concat(Array.prototype.slice.call(arguments)))}function Da(e){return es.apply(void 0,["AwaitExpression"].concat(Array.prototype.slice.call(arguments)))}function Aa(){return es.apply(void 0,["Import"].concat(Array.prototype.slice.call(arguments)))}function wa(e){return es.apply(void 0,["BigIntLiteral"].concat(Array.prototype.slice.call(arguments)))}function Ca(e){return es.apply(void 0,["ExportNamespaceSpecifier"].concat(Array.prototype.slice.call(arguments)))}function Sa(e,t,r,n){return es.apply(void 0,["OptionalMemberExpression"].concat(Array.prototype.slice.call(arguments)))}function Ta(e,t,r){return es.apply(void 0,["OptionalCallExpression"].concat(Array.prototype.slice.call(arguments)))}function ja(){return es.apply(void 0,["AnyTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function Pa(e){return es.apply(void 0,["ArrayTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function Ia(){return es.apply(void 0,["BooleanTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function Fa(e){return es.apply(void 0,["BooleanLiteralTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function ka(){return es.apply(void 0,["NullLiteralTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function Oa(e,t){return es.apply(void 0,["ClassImplements"].concat(Array.prototype.slice.call(arguments)))}function Ra(e,t,r,n){return es.apply(void 0,["DeclareClass"].concat(Array.prototype.slice.call(arguments)))}function Na(e){return es.apply(void 0,["DeclareFunction"].concat(Array.prototype.slice.call(arguments)))}function Ba(e,t,r,n){return es.apply(void 0,["DeclareInterface"].concat(Array.prototype.slice.call(arguments)))}function _a(e,t,r){return es.apply(void 0,["DeclareModule"].concat(Array.prototype.slice.call(arguments)))}function La(e){return es.apply(void 0,["DeclareModuleExports"].concat(Array.prototype.slice.call(arguments)))}function Ma(e,t,r){return es.apply(void 0,["DeclareTypeAlias"].concat(Array.prototype.slice.call(arguments)))}function Ua(e,t,r){return es.apply(void 0,["DeclareOpaqueType"].concat(Array.prototype.slice.call(arguments)))}function Ga(e){return es.apply(void 0,["DeclareVariable"].concat(Array.prototype.slice.call(arguments)))}function Va(e,t,r){return es.apply(void 0,["DeclareExportDeclaration"].concat(Array.prototype.slice.call(arguments)))}function Wa(e){return es.apply(void 0,["DeclareExportAllDeclaration"].concat(Array.prototype.slice.call(arguments)))}function Ha(e){return es.apply(void 0,["DeclaredPredicate"].concat(Array.prototype.slice.call(arguments)))}function Xa(){return es.apply(void 0,["ExistsTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function qa(e,t,r,n){return es.apply(void 0,["FunctionTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function $a(e,t){return es.apply(void 0,["FunctionTypeParam"].concat(Array.prototype.slice.call(arguments)))}function Ka(e,t){return es.apply(void 0,["GenericTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function za(){return es.apply(void 0,["InferredPredicate"].concat(Array.prototype.slice.call(arguments)))}function Ja(e,t){return es.apply(void 0,["InterfaceExtends"].concat(Array.prototype.slice.call(arguments)))}function Ya(e,t,r,n){return es.apply(void 0,["InterfaceDeclaration"].concat(Array.prototype.slice.call(arguments)))}function Qa(e,t){return es.apply(void 0,["InterfaceTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function Za(e){return es.apply(void 0,["IntersectionTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function ei(){return es.apply(void 0,["MixedTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function ti(){return es.apply(void 0,["EmptyTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function ri(e){return es.apply(void 0,["NullableTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function ni(e){return es.apply(void 0,["NumberLiteralTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function si(){return es.apply(void 0,["NumberTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function ai(e,t,r,n,s){return es.apply(void 0,["ObjectTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function ii(e,t,r,n,s){return es.apply(void 0,["ObjectTypeInternalSlot"].concat(Array.prototype.slice.call(arguments)))}function oi(e){return es.apply(void 0,["ObjectTypeCallProperty"].concat(Array.prototype.slice.call(arguments)))}function ui(e,t,r,n){return es.apply(void 0,["ObjectTypeIndexer"].concat(Array.prototype.slice.call(arguments)))}function li(e,t,r){return es.apply(void 0,["ObjectTypeProperty"].concat(Array.prototype.slice.call(arguments)))}function ci(e){return es.apply(void 0,["ObjectTypeSpreadProperty"].concat(Array.prototype.slice.call(arguments)))}function pi(e,t,r,n){return es.apply(void 0,["OpaqueType"].concat(Array.prototype.slice.call(arguments)))}function di(e,t){return es.apply(void 0,["QualifiedTypeIdentifier"].concat(Array.prototype.slice.call(arguments)))}function fi(e){return es.apply(void 0,["StringLiteralTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function hi(){return es.apply(void 0,["StringTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function mi(){return es.apply(void 0,["SymbolTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function yi(){return es.apply(void 0,["ThisTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function gi(e){return es.apply(void 0,["TupleTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function vi(e){return es.apply(void 0,["TypeofTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function bi(e,t,r){return es.apply(void 0,["TypeAlias"].concat(Array.prototype.slice.call(arguments)))}function Ei(e){return es.apply(void 0,["TypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function xi(e,t){return es.apply(void 0,["TypeCastExpression"].concat(Array.prototype.slice.call(arguments)))}function Di(e,t,r){return es.apply(void 0,["TypeParameter"].concat(Array.prototype.slice.call(arguments)))}function Ai(e){return es.apply(void 0,["TypeParameterDeclaration"].concat(Array.prototype.slice.call(arguments)))}function wi(e){return es.apply(void 0,["TypeParameterInstantiation"].concat(Array.prototype.slice.call(arguments)))}function Ci(e){return es.apply(void 0,["UnionTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function Si(e){return es.apply(void 0,["Variance"].concat(Array.prototype.slice.call(arguments)))}function Ti(){return es.apply(void 0,["VoidTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function ji(e,t){return es.apply(void 0,["EnumDeclaration"].concat(Array.prototype.slice.call(arguments)))}function Pi(e){return es.apply(void 0,["EnumBooleanBody"].concat(Array.prototype.slice.call(arguments)))}function Ii(e){return es.apply(void 0,["EnumNumberBody"].concat(Array.prototype.slice.call(arguments)))}function Fi(e){return es.apply(void 0,["EnumStringBody"].concat(Array.prototype.slice.call(arguments)))}function ki(e){return es.apply(void 0,["EnumSymbolBody"].concat(Array.prototype.slice.call(arguments)))}function Oi(e){return es.apply(void 0,["EnumBooleanMember"].concat(Array.prototype.slice.call(arguments)))}function Ri(e,t){return es.apply(void 0,["EnumNumberMember"].concat(Array.prototype.slice.call(arguments)))}function Ni(e,t){return es.apply(void 0,["EnumStringMember"].concat(Array.prototype.slice.call(arguments)))}function Bi(e){return es.apply(void 0,["EnumDefaultedMember"].concat(Array.prototype.slice.call(arguments)))}function _i(e,t){return es.apply(void 0,["IndexedAccessType"].concat(Array.prototype.slice.call(arguments)))}function Li(e,t){return es.apply(void 0,["OptionalIndexedAccessType"].concat(Array.prototype.slice.call(arguments)))}function Mi(e,t){return es.apply(void 0,["JSXAttribute"].concat(Array.prototype.slice.call(arguments)))}function Ui(e){return es.apply(void 0,["JSXClosingElement"].concat(Array.prototype.slice.call(arguments)))}function Gi(e,t,r,n){return es.apply(void 0,["JSXElement"].concat(Array.prototype.slice.call(arguments)))}function Vi(){return es.apply(void 0,["JSXEmptyExpression"].concat(Array.prototype.slice.call(arguments)))}function Wi(e){return es.apply(void 0,["JSXExpressionContainer"].concat(Array.prototype.slice.call(arguments)))}function Hi(e){return es.apply(void 0,["JSXSpreadChild"].concat(Array.prototype.slice.call(arguments)))}function Xi(e){return es.apply(void 0,["JSXIdentifier"].concat(Array.prototype.slice.call(arguments)))}function qi(e,t){return es.apply(void 0,["JSXMemberExpression"].concat(Array.prototype.slice.call(arguments)))}function $i(e,t){return es.apply(void 0,["JSXNamespacedName"].concat(Array.prototype.slice.call(arguments)))}function Ki(e,t,r){return es.apply(void 0,["JSXOpeningElement"].concat(Array.prototype.slice.call(arguments)))}function zi(e){return es.apply(void 0,["JSXSpreadAttribute"].concat(Array.prototype.slice.call(arguments)))}function Ji(e){return es.apply(void 0,["JSXText"].concat(Array.prototype.slice.call(arguments)))}function Yi(e,t,r){return es.apply(void 0,["JSXFragment"].concat(Array.prototype.slice.call(arguments)))}function Qi(){return es.apply(void 0,["JSXOpeningFragment"].concat(Array.prototype.slice.call(arguments)))}function Zi(){return es.apply(void 0,["JSXClosingFragment"].concat(Array.prototype.slice.call(arguments)))}function eo(){return es.apply(void 0,["Noop"].concat(Array.prototype.slice.call(arguments)))}function to(e,t){return es.apply(void 0,["Placeholder"].concat(Array.prototype.slice.call(arguments)))}function ro(e){return es.apply(void 0,["V8IntrinsicIdentifier"].concat(Array.prototype.slice.call(arguments)))}function no(){return es.apply(void 0,["ArgumentPlaceholder"].concat(Array.prototype.slice.call(arguments)))}function so(e,t){return es.apply(void 0,["BindExpression"].concat(Array.prototype.slice.call(arguments)))}function ao(e,t,r,n,s,a){return es.apply(void 0,["ClassProperty"].concat(Array.prototype.slice.call(arguments)))}function io(e){return es.apply(void 0,["PipelineTopicExpression"].concat(Array.prototype.slice.call(arguments)))}function oo(e){return es.apply(void 0,["PipelineBareFunction"].concat(Array.prototype.slice.call(arguments)))}function uo(){return es.apply(void 0,["PipelinePrimaryTopicReference"].concat(Array.prototype.slice.call(arguments)))}function lo(e,t,r,n){return es.apply(void 0,["ClassPrivateProperty"].concat(Array.prototype.slice.call(arguments)))}function co(e,t,r,n,s){return es.apply(void 0,["ClassPrivateMethod"].concat(Array.prototype.slice.call(arguments)))}function po(e,t){return es.apply(void 0,["ImportAttribute"].concat(Array.prototype.slice.call(arguments)))}function fo(e){return es.apply(void 0,["Decorator"].concat(Array.prototype.slice.call(arguments)))}function ho(e,t){return es.apply(void 0,["DoExpression"].concat(Array.prototype.slice.call(arguments)))}function mo(e){return es.apply(void 0,["ExportDefaultSpecifier"].concat(Array.prototype.slice.call(arguments)))}function yo(e){return es.apply(void 0,["PrivateName"].concat(Array.prototype.slice.call(arguments)))}function go(e){return es.apply(void 0,["RecordExpression"].concat(Array.prototype.slice.call(arguments)))}function vo(e){return es.apply(void 0,["TupleExpression"].concat(Array.prototype.slice.call(arguments)))}function bo(e){return es.apply(void 0,["DecimalLiteral"].concat(Array.prototype.slice.call(arguments)))}function Eo(e){return es.apply(void 0,["StaticBlock"].concat(Array.prototype.slice.call(arguments)))}function xo(e){return es.apply(void 0,["ModuleExpression"].concat(Array.prototype.slice.call(arguments)))}function Do(e){return es.apply(void 0,["TSParameterProperty"].concat(Array.prototype.slice.call(arguments)))}function Ao(e,t,r,n){return es.apply(void 0,["TSDeclareFunction"].concat(Array.prototype.slice.call(arguments)))}function wo(e,t,r,n,s){return es.apply(void 0,["TSDeclareMethod"].concat(Array.prototype.slice.call(arguments)))}function Co(e,t){return es.apply(void 0,["TSQualifiedName"].concat(Array.prototype.slice.call(arguments)))}function So(e,t,r){return es.apply(void 0,["TSCallSignatureDeclaration"].concat(Array.prototype.slice.call(arguments)))}function To(e,t,r){return es.apply(void 0,["TSConstructSignatureDeclaration"].concat(Array.prototype.slice.call(arguments)))}function jo(e,t,r){return es.apply(void 0,["TSPropertySignature"].concat(Array.prototype.slice.call(arguments)))}function Po(e,t,r,n){return es.apply(void 0,["TSMethodSignature"].concat(Array.prototype.slice.call(arguments)))}function Io(e,t){return es.apply(void 0,["TSIndexSignature"].concat(Array.prototype.slice.call(arguments)))}function Fo(){return es.apply(void 0,["TSAnyKeyword"].concat(Array.prototype.slice.call(arguments)))}function ko(){return es.apply(void 0,["TSBooleanKeyword"].concat(Array.prototype.slice.call(arguments)))}function Oo(){return es.apply(void 0,["TSBigIntKeyword"].concat(Array.prototype.slice.call(arguments)))}function Ro(){return es.apply(void 0,["TSIntrinsicKeyword"].concat(Array.prototype.slice.call(arguments)))}function No(){return es.apply(void 0,["TSNeverKeyword"].concat(Array.prototype.slice.call(arguments)))}function Bo(){return es.apply(void 0,["TSNullKeyword"].concat(Array.prototype.slice.call(arguments)))}function _o(){return es.apply(void 0,["TSNumberKeyword"].concat(Array.prototype.slice.call(arguments)))}function Lo(){return es.apply(void 0,["TSObjectKeyword"].concat(Array.prototype.slice.call(arguments)))}function Mo(){return es.apply(void 0,["TSStringKeyword"].concat(Array.prototype.slice.call(arguments)))}function Uo(){return es.apply(void 0,["TSSymbolKeyword"].concat(Array.prototype.slice.call(arguments)))}function Go(){return es.apply(void 0,["TSUndefinedKeyword"].concat(Array.prototype.slice.call(arguments)))}function Vo(){return es.apply(void 0,["TSUnknownKeyword"].concat(Array.prototype.slice.call(arguments)))}function Wo(){return es.apply(void 0,["TSVoidKeyword"].concat(Array.prototype.slice.call(arguments)))}function Ho(){return es.apply(void 0,["TSThisType"].concat(Array.prototype.slice.call(arguments)))}function Xo(e,t,r){return es.apply(void 0,["TSFunctionType"].concat(Array.prototype.slice.call(arguments)))}function qo(e,t,r){return es.apply(void 0,["TSConstructorType"].concat(Array.prototype.slice.call(arguments)))}function $o(e,t){return es.apply(void 0,["TSTypeReference"].concat(Array.prototype.slice.call(arguments)))}function Ko(e,t,r){return es.apply(void 0,["TSTypePredicate"].concat(Array.prototype.slice.call(arguments)))}function zo(e){return es.apply(void 0,["TSTypeQuery"].concat(Array.prototype.slice.call(arguments)))}function Jo(e){return es.apply(void 0,["TSTypeLiteral"].concat(Array.prototype.slice.call(arguments)))}function Yo(e){return es.apply(void 0,["TSArrayType"].concat(Array.prototype.slice.call(arguments)))}function Qo(e){return es.apply(void 0,["TSTupleType"].concat(Array.prototype.slice.call(arguments)))}function Zo(e){return es.apply(void 0,["TSOptionalType"].concat(Array.prototype.slice.call(arguments)))}function eu(e){return es.apply(void 0,["TSRestType"].concat(Array.prototype.slice.call(arguments)))}function tu(e,t,r){return es.apply(void 0,["TSNamedTupleMember"].concat(Array.prototype.slice.call(arguments)))}function ru(e){return es.apply(void 0,["TSUnionType"].concat(Array.prototype.slice.call(arguments)))}function nu(e){return es.apply(void 0,["TSIntersectionType"].concat(Array.prototype.slice.call(arguments)))}function su(e,t,r,n){return es.apply(void 0,["TSConditionalType"].concat(Array.prototype.slice.call(arguments)))}function au(e){return es.apply(void 0,["TSInferType"].concat(Array.prototype.slice.call(arguments)))}function iu(e){return es.apply(void 0,["TSParenthesizedType"].concat(Array.prototype.slice.call(arguments)))}function ou(e){return es.apply(void 0,["TSTypeOperator"].concat(Array.prototype.slice.call(arguments)))}function uu(e,t){return es.apply(void 0,["TSIndexedAccessType"].concat(Array.prototype.slice.call(arguments)))}function lu(e,t,r){return es.apply(void 0,["TSMappedType"].concat(Array.prototype.slice.call(arguments)))}function cu(e){return es.apply(void 0,["TSLiteralType"].concat(Array.prototype.slice.call(arguments)))}function pu(e,t){return es.apply(void 0,["TSExpressionWithTypeArguments"].concat(Array.prototype.slice.call(arguments)))}function du(e,t,r,n){return es.apply(void 0,["TSInterfaceDeclaration"].concat(Array.prototype.slice.call(arguments)))}function fu(e){return es.apply(void 0,["TSInterfaceBody"].concat(Array.prototype.slice.call(arguments)))}function hu(e,t,r){return es.apply(void 0,["TSTypeAliasDeclaration"].concat(Array.prototype.slice.call(arguments)))}function mu(e,t){return es.apply(void 0,["TSAsExpression"].concat(Array.prototype.slice.call(arguments)))}function yu(e,t){return es.apply(void 0,["TSTypeAssertion"].concat(Array.prototype.slice.call(arguments)))}function gu(e,t){return es.apply(void 0,["TSEnumDeclaration"].concat(Array.prototype.slice.call(arguments)))}function vu(e,t){return es.apply(void 0,["TSEnumMember"].concat(Array.prototype.slice.call(arguments)))}function bu(e,t){return es.apply(void 0,["TSModuleDeclaration"].concat(Array.prototype.slice.call(arguments)))}function Eu(e){return es.apply(void 0,["TSModuleBlock"].concat(Array.prototype.slice.call(arguments)))}function xu(e,t,r){return es.apply(void 0,["TSImportType"].concat(Array.prototype.slice.call(arguments)))}function Du(e,t){return es.apply(void 0,["TSImportEqualsDeclaration"].concat(Array.prototype.slice.call(arguments)))}function Au(e){return es.apply(void 0,["TSExternalModuleReference"].concat(Array.prototype.slice.call(arguments)))}function wu(e){return es.apply(void 0,["TSNonNullExpression"].concat(Array.prototype.slice.call(arguments)))}function Cu(e){return es.apply(void 0,["TSExportAssignment"].concat(Array.prototype.slice.call(arguments)))}function Su(e){return es.apply(void 0,["TSNamespaceExportDeclaration"].concat(Array.prototype.slice.call(arguments)))}function Tu(e){return es.apply(void 0,["TSTypeAnnotation"].concat(Array.prototype.slice.call(arguments)))}function ju(e){return es.apply(void 0,["TSTypeParameterInstantiation"].concat(Array.prototype.slice.call(arguments)))}function Pu(e){return es.apply(void 0,["TSTypeParameterDeclaration"].concat(Array.prototype.slice.call(arguments)))}function Iu(e,t,r){return es.apply(void 0,["TSTypeParameter"].concat(Array.prototype.slice.call(arguments)))}function Fu(){console.trace("The node type NumberLiteral has been renamed to NumericLiteral");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return es.apply(void 0,["NumberLiteral"].concat(t))}function ku(){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return es.apply(void 0,["RegexLiteral"].concat(t))}function Ou(){console.trace("The node type RestProperty has been renamed to RestElement");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return es.apply(void 0,["RestProperty"].concat(t))}function Ru(){console.trace("The node type SpreadProperty has been renamed to SpreadElement");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return es.apply(void 0,["SpreadProperty"].concat(t))}function Nu(e,t){for(var r=e.value.split(/\r\n|\n|\r/),n=0,s=0;s<r.length;s++)r[s].match(/[^ \t]/)&&(n=s);for(var a="",i=0;i<r.length;i++){var o=r[i],u=0===i,l=i===r.length-1,c=i===n,p=o.replace(/\t/g," ");u||(p=p.replace(/^[ ]+/,"")),l||(p=p.replace(/[ ]+$/,"")),p&&(c||(p+=" "),a+=p)}a&&t.push(Cs(a))}function Bu(e){return!(!e||!Qr[e.type])}function _u(e,t,r){if(!ur(e,t,r))throw new Error('Expected type "'+e+'" with option '+JSON.stringify(r)+', but instead got "'+t.type+'".')}function Lu(e,t){_u("ExpressionStatement",e,t)}function Mu(e,t){_u("Identifier",e,t)}function Uu(e,t){_u("RestElement",e,t)}function Gu(e,t){_u("Expression",e,t)}function Vu(e){if("string"===e)return hi();if("number"===e)return si();if("undefined"===e)return Ti();if("boolean"===e)return Ia();if("function"===e)return Ka(Ds("Function"));if("object"===e)return Ka(Ds("Object"));if("symbol"===e)return Ka(Ds("Symbol"));if("bigint"===e)return ja();throw new Error("Invalid typeof value: "+e)}function Wu(e){return F(e)?e.name:e.id.name+"."+Wu(e.qualification)}function Hu(e){for(var t={},r={},n=[],s=[],a=0;a<e.length;a++){var i=e[a];if(i&&!(s.indexOf(i)>=0)){if(Ie(i))return[i];if(Mt(i))r[i.type]=i;else if(We(i))n.indexOf(i.types)<0&&(e=e.concat(i.types),n.push(i.types));else if(Re(i)){var o=Wu(i.id);if(t[o]){var u=t[o];u.typeParameters?i.typeParameters&&(u.typeParameters.params=Hu(u.typeParameters.params.concat(i.typeParameters.params))):u=i.typeParameters}else t[o]=i}else s.push(i)}}for(var l=0,c=Object.keys(r);l<c.length;l++){var p=c[l];s.push(r[p])}for(var d=0,f=Object.keys(t);d<f.length;d++){var h=f[d];s.push(t[h])}return s}function Xu(e){var t=Hu(e);return 1===t.length?t[0]:Ci(t)}function qu(e){var t=function(e){for(var t={},r={},n=[],s=[],a=0;a<e.length;a++){var i=e[a];if(i&&!(s.indexOf(i)>=0)){if(ut(i))return[i];Ut(i)?r[i.type]=i:dt(i)?n.indexOf(i.types)<0&&(e=e.concat(i.types),n.push(i.types)):s.push(i)}}for(var o=0,u=Object.keys(r);o<u.length;o++){var l=u[o];s.push(r[l])}for(var c=0,p=Object.keys(t);c<p.length;c++){var d=p[c];s.push(t[d])}return s}(e.map((function(e){return e.typeAnnotation})));return 1===t.length?t[0]:ru(t)}var $u=Function.call.bind(Object.prototype.hasOwnProperty);function Ku(e,t,r){return e&&"string"==typeof e.type?Ju(e,t,r):e}function zu(e,t,r){return Array.isArray(e)?e.map((function(e){return Ku(e,t,r)})):Ku(e,t,r)}function Ju(e,t,r){if(void 0===t&&(t=!0),void 0===r&&(r=!1),!e)return e;var n=e.type,s={type:e.type};if(F(e))s.name=e.name,$u(e,"optional")&&"boolean"==typeof e.optional&&(s.optional=e.optional),$u(e,"typeAnnotation")&&(s.typeAnnotation=t?zu(e.typeAnnotation,!0,r):e.typeAnnotation);else{if(!$u(tn,n))throw new Error('Unknown node type: "'+n+'"');for(var a=0,i=Object.keys(tn[n]);a<i.length;a++){var o=i[a];$u(e,o)&&(s[o]=t?S(e)&&"comments"===o?Yu(e.comments,t,r):zu(e[o],!0,r):e[o])}}return $u(e,"loc")&&(s.loc=r?null:e.loc),$u(e,"leadingComments")&&(s.leadingComments=Yu(e.leadingComments,t,r)),$u(e,"innerComments")&&(s.innerComments=Yu(e.innerComments,t,r)),$u(e,"trailingComments")&&(s.trailingComments=Yu(e.trailingComments,t,r)),$u(e,"extra")&&(s.extra=Object.assign({},e.extra)),s}function Yu(e,t,r){return e&&t?e.map((function(e){var t=e.type,n=e.value,s=e.loc;return r?{type:t,value:n,loc:null}:{type:t,value:n,loc:s}})):e}function Qu(e){return Ju(e,!1)}function Zu(e,t,r){if(!r||!e)return e;var n=t+"Comments";return e[n]?e[n]="leading"===t?r.concat(e[n]):e[n].concat(r):e[n]=r,e}function el(e,t,r,n){return Zu(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}function tl(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}function rl(e,t){tl("innerComments",e,t)}function nl(e,t){tl("leadingComments",e,t)}function sl(e,t){tl("trailingComments",e,t)}function al(e,t){return sl(e,t),nl(e,t),rl(e,t),e}function il(e){return kr.forEach((function(t){e[t]=null})),e}var ol=en.Expression,ul=en.Binary,ll=en.Scopable,cl=en.BlockParent,pl=en.Block,dl=en.Statement,fl=en.Terminatorless,hl=en.CompletionStatement,ml=en.Conditional,yl=en.Loop,gl=en.While,vl=en.ExpressionWrapper,bl=en.For,El=en.ForXStatement,xl=en.Function,Dl=en.FunctionParent,Al=en.Pureish,wl=en.Declaration,Cl=en.PatternLike,Sl=en.LVal,Tl=en.TSEntityName,jl=en.Literal,Pl=en.Immutable,Il=en.UserWhitespacable,Fl=en.Method,kl=en.ObjectMember,Ol=en.Property,Rl=en.UnaryLike,Nl=en.Pattern,Bl=en.Class,_l=en.ModuleDeclaration,Ll=en.ExportDeclaration,Ml=en.ModuleSpecifier,Ul=en.Flow,Gl=en.FlowType,Vl=en.FlowBaseAnnotation,Wl=en.FlowDeclaration,Hl=en.FlowPredicate,Xl=en.EnumBody,ql=en.EnumMember,$l=en.JSX,Kl=en.Private,zl=en.TSTypeElement,Jl=en.TSType,Yl=en.TSBaseType;function Ql(e,t){if(v(e))return e;var r=[];return w(e)?r=[]:(xt(e)||(e=St(t)?Ls(e):ys(e)),r=[e]),os(r)}function Zl(e,t){return void 0===t&&(t="body"),e[t]=Ql(e[t],e)}function ec(e){for(var t,r="",n=f(e+="");!(t=n()).done;){var s=t.value;r+=gr(s.codePointAt(0))?s:"-"}return Pr(r=(r=r.replace(/^[-0-9]+/,"")).replace(/[-\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})))||(r="_"+r),r||"_"}function tc(e){return"eval"!==(e=ec(e))&&"arguments"!==e||(e="_"+e),e}function rc(e,t){return void 0===t&&(t=e.key||e.property),!e.computed&&F(t)&&(t=Cs(t.name)),t}function nc(e){if(C(e)&&(e=e.expression),vt(e))return e;if(Rt(e)?e.type="ClassExpression":St(e)&&(e.type="FunctionExpression"),!vt(e))throw new Error("cannot turn "+e.type+" to an expression");return e}function sc(e,t,r){if(e){var n=Qr[e.type];if(n){t(e,r=r||{});for(var s,a=f(n);!(s=a()).done;){var i=e[s.value];if(Array.isArray(i))for(var o,u=f(i);!(o=u()).done;){sc(o.value,t,r)}else sc(i,t,r)}}}}var ac=["tokens","start","end","loc","raw","rawValue"],ic=kr.concat(["comments"]).concat(ac);function oc(e,t){void 0===t&&(t={});for(var r,n=f(t.preserveComments?ac:ic);!(r=n()).done;){var s=r.value;null!=e[s]&&(e[s]=void 0)}for(var a=0,i=Object.keys(e);a<i.length;a++){var o=i[a];"_"===o[0]&&null!=e[o]&&(e[o]=void 0)}for(var u,l=f(Object.getOwnPropertySymbols(e));!(u=l()).done;){e[u.value]=null}}function uc(e,t){return sc(e,oc,t),e}function lc(e,t){var r;return void 0===t&&(t=e.key),"method"===e.kind?lc.increment()+"":(r=F(t)?t.name:R(t)?JSON.stringify(t.value):JSON.stringify(uc(Ju(t))),e.computed&&(r="["+r+"]"),e.static&&(r="static:"+r),r)}function cc(e,t,r){for(var n=[].concat(e),s=Object.create(null);n.length;){var a=n.shift();if(a){var i=cc.keys[a.type];if(F(a))t?(s[a.name]=s[a.name]||[]).push(a):s[a.name]=a;else if(!Bt(a)||ue(a)){if(r){if(P(a)){n.push(a.id);continue}if(I(a))continue}if(i)for(var o=0;o<i.length;o++){var u=i[o];a[u]&&(n=n.concat(a[u]))}}else jt(a.declaration)&&n.push(a.declaration)}}return s}function pc(e,t,r){for(var n,s=[],a=!0,i=f(e);!(n=i()).done;){var o=n.value;if(w(o)||(a=!1),vt(o))s.push(o);else if(C(o))s.push(o.expression);else if(Z(o)){if("var"!==o.kind)return;for(var u,l=f(o.declarations);!(u=l()).done;){for(var c=u.value,p=cc(c),d=0,h=Object.keys(p);d<h.length;d++){var m=h[d];r.push({kind:o.kind,id:Ju(p[m])})}c.init&&s.push(rs("=",c.id,c.init))}a=!0}else if(k(o)){var y=o.consequent?pc([o.consequent],t,r):t.buildUndefinedNode(),g=o.alternate?pc([o.alternate],t,r):t.buildUndefinedNode();if(!y||!g)return;s.push(ps(o.test,y,g))}else if(v(o)){var b=pc(o.body,t,r);if(!b)return;s.push(b)}else{if(!w(o))return;0===e.indexOf(o)&&(a=!0)}}return a&&s.push(t.buildUndefinedNode()),1===s.length?s[0]:Ms(s)}function dc(e,t){if(null!=e&&e.length){var r=[],n=pc(e,t,r);if(n){for(var s=0,a=r;s<a.length;s++){var i=a[s];t.push(i)}return n}}}function fc(e,t){if(xt(e))return e;var r,n=!1;if(Rt(e))n=!0,r="ClassDeclaration";else if(St(e))n=!0,r="FunctionDeclaration";else if(y(e))return ys(e);if(n&&!e.id&&(r=!1),!r){if(t)return!1;throw new Error("cannot turn "+e.type+" to a statement")}return e.type=r,e}lc.uid=0,lc.increment=function(){return lc.uid>=Number.MAX_SAFE_INTEGER?lc.uid=0:lc.uid++},cc.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};var hc=Function.call.bind(Object.prototype.toString);function mc(e){if(void 0===e)return Ds("undefined");if(!0===e||!1===e)return js(e);if(null===e)return Ts();if("string"==typeof e)return Cs(e);if("number"==typeof e){var t;if(Number.isFinite(e))t=Ss(Math.abs(e));else t=ns("/",Number.isNaN(e)?Ss(0):Ss(1),Ss(0));return(e<0||Object.is(e,-0))&&(t=qs("-",t)),t}if(function(e){return"[object RegExp]"===hc(e)}(e))return Ps(e.source,e.toString().match(/\/([a-z]+|)$/)[1]);if(Array.isArray(e))return ts(e.map(mc));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(e)){for(var r=[],n=0,s=Object.keys(e);n<s.length;n++){var a=s[n],i=void 0;i=Pr(a)?Ds(a):Cs(a),r.push(Bs(i,mc(e[a])))}return Rs(r)}throw new Error("don't know how to turn this value into a node")}function yc(e,t){if(!e||!t)return e;for(var r,n=f(qr.optional);!(r=n()).done;){var s=r.value;null==e[s]&&(e[s]=t[s])}for(var a=0,i=Object.keys(t);a<i.length;a++){var o=i[a];"_"===o[0]&&"__clone"!==o&&(e[o]=t[o])}for(var u,l=f(qr.force);!(u=l()).done;){var c=u.value;e[c]=t[c]}return al(e,t),e}function gc(e,t){return cc(e,t,!0)}function vc(e,t,r){"function"==typeof t&&(t={enter:t});var n=t;bc(e,n.enter,n.exit,r,[])}function bc(e,t,r,n,s){var a=Qr[e.type];if(a){t&&t(e,s,n);for(var i,o=f(a);!(i=o()).done;){var u=i.value,l=e[u];if(Array.isArray(l))for(var c=0;c<l.length;c++){var p=l[c];p&&(s.push({node:e,key:u,index:c}),bc(p,t,r,n,s),s.pop())}else l&&(s.push({node:e,key:u}),bc(l,t,r,n,s),s.pop())}r&&r(e,s,n)}}function Ec(e,t,r){if(r&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===r.type)return!1;var n=cc.keys[t.type];if(n)for(var s=0;s<n.length;s++){var a=t[n[s]];if(Array.isArray(a)){if(a.indexOf(e)>=0)return!0}else if(a===e)return!0}return!1}function xc(e){return Z(e)&&("var"!==e.kind||e[$r])}function Dc(e){return P(e)||oe(e)||xc(e)}function Ac(e,t,r){switch(t.type){case"MemberExpression":case"JSXMemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.params.includes(e))return!1;case"ObjectProperty":case"ClassProperty":case"ClassPrivateProperty":return t.key===e?!!t.computed:t.value!==e||(!r||"ObjectPattern"!==r.type);case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"LabeledStatement":case"CatchClause":case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return(null==r||!r.source)&&t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key!==e||!!t.computed}return!0}function wc(e,t){return(!v(e)||!St(t)&&!x(t))&&(!(!Ot(e)||!St(t)&&!x(t))||Et(e))}var Cc=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function Sc(e){return Pr(e)&&!Cc.has(e)}function Tc(e){return Z(e,{kind:"var"})&&!e[$r]}var jc={isReactComponent:Wt,isCompatTag:function(e){return!!e&&/^[a-z]/.test(e)},buildChildren:function(e){for(var t=[],r=0;r<e.children.length;r++){var n=e.children[r];et(n)?Nu(n,t):(ze(n)&&(n=n.expression),Ke(n)||t.push(n))}return t}},Pc=Object.freeze({__proto__:null,react:jc,assertNode:function(e){if(!Bu(e)){var t,r=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError('Not a valid node of type "'+r+'"')}},createTypeAnnotationBasedOnTypeof:Vu,createUnionTypeAnnotation:Xu,createFlowUnionType:Xu,createTSUnionType:qu,cloneNode:Ju,clone:Qu,cloneDeep:function(e){return Ju(e)},cloneDeepWithoutLoc:function(e){return Ju(e,!0,!0)},cloneWithoutLoc:function(e){return Ju(e,!1,!0)},addComment:el,addComments:Zu,inheritInnerComments:rl,inheritLeadingComments:nl,inheritsComments:al,inheritTrailingComments:sl,removeComments:il,ensureBlock:Zl,toBindingIdentifierName:tc,toBlock:Ql,toComputedKey:rc,toExpression:nc,toIdentifier:ec,toKeyAlias:lc,toSequenceExpression:dc,toStatement:fc,valueToNode:mc,appendToMemberExpression:function(e,t,r){return void 0===r&&(r=!1),e.object=Fs(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e},inherits:yc,prependToMemberExpression:function(e,t){return e.object=Fs(t,e.object),e},removeProperties:oc,removePropertiesDeep:uc,removeTypeDuplicates:Hu,getBindingIdentifiers:cc,getOuterBindingIdentifiers:gc,traverse:vc,traverseFast:sc,shallowEqual:h,is:ur,isBinding:Ec,isBlockScoped:Dc,isImmutable:function(e){return!!ir(e.type,"Immutable")||!!F(e)&&"undefined"===e.name},isLet:xc,isNode:Bu,isNodesEquivalent:function e(t,r){if("object"!=typeof t||"object"!=typeof r||null==t||null==r)return t===r;if(t.type!==r.type)return!1;for(var n=Object.keys(tn[t.type]||t.type),s=Qr[t.type],a=0,i=n;a<i.length;a++){var o=i[a];if(typeof t[o]!=typeof r[o])return!1;if(null!=t[o]||null!=r[o]){if(null==t[o]||null==r[o])return!1;if(Array.isArray(t[o])){if(!Array.isArray(r[o]))return!1;if(t[o].length!==r[o].length)return!1;for(var u=0;u<t[o].length;u++)if(!e(t[o][u],r[o][u]))return!1}else if("object"!=typeof t[o]||null!=s&&s.includes(o)){if(!e(t[o],r[o]))return!1}else for(var l=0,c=Object.keys(t[o]);l<c.length;l++){var p=c[l];if(t[o][p]!==r[o][p])return!1}}}return!0},isPlaceholderType:or,isReferenced:Ac,isScope:wc,isSpecifierDefault:function(e){return he(e)||F(e.imported||e.exported,{name:"default"})},isType:ir,isValidES3Identifier:Sc,isValidIdentifier:Pr,isVar:Tc,matchesPattern:Gt,validate:zr,buildMatchMemberExpression:Vt,assertArrayExpression:function(e,t){_u("ArrayExpression",e,t)},assertAssignmentExpression:function(e,t){_u("AssignmentExpression",e,t)},assertBinaryExpression:function(e,t){_u("BinaryExpression",e,t)},assertInterpreterDirective:function(e,t){_u("InterpreterDirective",e,t)},assertDirective:function(e,t){_u("Directive",e,t)},assertDirectiveLiteral:function(e,t){_u("DirectiveLiteral",e,t)},assertBlockStatement:function(e,t){_u("BlockStatement",e,t)},assertBreakStatement:function(e,t){_u("BreakStatement",e,t)},assertCallExpression:function(e,t){_u("CallExpression",e,t)},assertCatchClause:function(e,t){_u("CatchClause",e,t)},assertConditionalExpression:function(e,t){_u("ConditionalExpression",e,t)},assertContinueStatement:function(e,t){_u("ContinueStatement",e,t)},assertDebuggerStatement:function(e,t){_u("DebuggerStatement",e,t)},assertDoWhileStatement:function(e,t){_u("DoWhileStatement",e,t)},assertEmptyStatement:function(e,t){_u("EmptyStatement",e,t)},assertExpressionStatement:Lu,assertFile:function(e,t){_u("File",e,t)},assertForInStatement:function(e,t){_u("ForInStatement",e,t)},assertForStatement:function(e,t){_u("ForStatement",e,t)},assertFunctionDeclaration:function(e,t){_u("FunctionDeclaration",e,t)},assertFunctionExpression:function(e,t){_u("FunctionExpression",e,t)},assertIdentifier:Mu,assertIfStatement:function(e,t){_u("IfStatement",e,t)},assertLabeledStatement:function(e,t){_u("LabeledStatement",e,t)},assertStringLiteral:function(e,t){_u("StringLiteral",e,t)},assertNumericLiteral:function(e,t){_u("NumericLiteral",e,t)},assertNullLiteral:function(e,t){_u("NullLiteral",e,t)},assertBooleanLiteral:function(e,t){_u("BooleanLiteral",e,t)},assertRegExpLiteral:function(e,t){_u("RegExpLiteral",e,t)},assertLogicalExpression:function(e,t){_u("LogicalExpression",e,t)},assertMemberExpression:function(e,t){_u("MemberExpression",e,t)},assertNewExpression:function(e,t){_u("NewExpression",e,t)},assertProgram:function(e,t){_u("Program",e,t)},assertObjectExpression:function(e,t){_u("ObjectExpression",e,t)},assertObjectMethod:function(e,t){_u("ObjectMethod",e,t)},assertObjectProperty:function(e,t){_u("ObjectProperty",e,t)},assertRestElement:Uu,assertReturnStatement:function(e,t){_u("ReturnStatement",e,t)},assertSequenceExpression:function(e,t){_u("SequenceExpression",e,t)},assertParenthesizedExpression:function(e,t){_u("ParenthesizedExpression",e,t)},assertSwitchCase:function(e,t){_u("SwitchCase",e,t)},assertSwitchStatement:function(e,t){_u("SwitchStatement",e,t)},assertThisExpression:function(e,t){_u("ThisExpression",e,t)},assertThrowStatement:function(e,t){_u("ThrowStatement",e,t)},assertTryStatement:function(e,t){_u("TryStatement",e,t)},assertUnaryExpression:function(e,t){_u("UnaryExpression",e,t)},assertUpdateExpression:function(e,t){_u("UpdateExpression",e,t)},assertVariableDeclaration:function(e,t){_u("VariableDeclaration",e,t)},assertVariableDeclarator:function(e,t){_u("VariableDeclarator",e,t)},assertWhileStatement:function(e,t){_u("WhileStatement",e,t)},assertWithStatement:function(e,t){_u("WithStatement",e,t)},assertAssignmentPattern:function(e,t){_u("AssignmentPattern",e,t)},assertArrayPattern:function(e,t){_u("ArrayPattern",e,t)},assertArrowFunctionExpression:function(e,t){_u("ArrowFunctionExpression",e,t)},assertClassBody:function(e,t){_u("ClassBody",e,t)},assertClassExpression:function(e,t){_u("ClassExpression",e,t)},assertClassDeclaration:function(e,t){_u("ClassDeclaration",e,t)},assertExportAllDeclaration:function(e,t){_u("ExportAllDeclaration",e,t)},assertExportDefaultDeclaration:function(e,t){_u("ExportDefaultDeclaration",e,t)},assertExportNamedDeclaration:function(e,t){_u("ExportNamedDeclaration",e,t)},assertExportSpecifier:function(e,t){_u("ExportSpecifier",e,t)},assertForOfStatement:function(e,t){_u("ForOfStatement",e,t)},assertImportDeclaration:function(e,t){_u("ImportDeclaration",e,t)},assertImportDefaultSpecifier:function(e,t){_u("ImportDefaultSpecifier",e,t)},assertImportNamespaceSpecifier:function(e,t){_u("ImportNamespaceSpecifier",e,t)},assertImportSpecifier:function(e,t){_u("ImportSpecifier",e,t)},assertMetaProperty:function(e,t){_u("MetaProperty",e,t)},assertClassMethod:function(e,t){_u("ClassMethod",e,t)},assertObjectPattern:function(e,t){_u("ObjectPattern",e,t)},assertSpreadElement:function(e,t){_u("SpreadElement",e,t)},assertSuper:function(e,t){_u("Super",e,t)},assertTaggedTemplateExpression:function(e,t){_u("TaggedTemplateExpression",e,t)},assertTemplateElement:function(e,t){_u("TemplateElement",e,t)},assertTemplateLiteral:function(e,t){_u("TemplateLiteral",e,t)},assertYieldExpression:function(e,t){_u("YieldExpression",e,t)},assertAwaitExpression:function(e,t){_u("AwaitExpression",e,t)},assertImport:function(e,t){_u("Import",e,t)},assertBigIntLiteral:function(e,t){_u("BigIntLiteral",e,t)},assertExportNamespaceSpecifier:function(e,t){_u("ExportNamespaceSpecifier",e,t)},assertOptionalMemberExpression:function(e,t){_u("OptionalMemberExpression",e,t)},assertOptionalCallExpression:function(e,t){_u("OptionalCallExpression",e,t)},assertAnyTypeAnnotation:function(e,t){_u("AnyTypeAnnotation",e,t)},assertArrayTypeAnnotation:function(e,t){_u("ArrayTypeAnnotation",e,t)},assertBooleanTypeAnnotation:function(e,t){_u("BooleanTypeAnnotation",e,t)},assertBooleanLiteralTypeAnnotation:function(e,t){_u("BooleanLiteralTypeAnnotation",e,t)},assertNullLiteralTypeAnnotation:function(e,t){_u("NullLiteralTypeAnnotation",e,t)},assertClassImplements:function(e,t){_u("ClassImplements",e,t)},assertDeclareClass:function(e,t){_u("DeclareClass",e,t)},assertDeclareFunction:function(e,t){_u("DeclareFunction",e,t)},assertDeclareInterface:function(e,t){_u("DeclareInterface",e,t)},assertDeclareModule:function(e,t){_u("DeclareModule",e,t)},assertDeclareModuleExports:function(e,t){_u("DeclareModuleExports",e,t)},assertDeclareTypeAlias:function(e,t){_u("DeclareTypeAlias",e,t)},assertDeclareOpaqueType:function(e,t){_u("DeclareOpaqueType",e,t)},assertDeclareVariable:function(e,t){_u("DeclareVariable",e,t)},assertDeclareExportDeclaration:function(e,t){_u("DeclareExportDeclaration",e,t)},assertDeclareExportAllDeclaration:function(e,t){_u("DeclareExportAllDeclaration",e,t)},assertDeclaredPredicate:function(e,t){_u("DeclaredPredicate",e,t)},assertExistsTypeAnnotation:function(e,t){_u("ExistsTypeAnnotation",e,t)},assertFunctionTypeAnnotation:function(e,t){_u("FunctionTypeAnnotation",e,t)},assertFunctionTypeParam:function(e,t){_u("FunctionTypeParam",e,t)},assertGenericTypeAnnotation:function(e,t){_u("GenericTypeAnnotation",e,t)},assertInferredPredicate:function(e,t){_u("InferredPredicate",e,t)},assertInterfaceExtends:function(e,t){_u("InterfaceExtends",e,t)},assertInterfaceDeclaration:function(e,t){_u("InterfaceDeclaration",e,t)},assertInterfaceTypeAnnotation:function(e,t){_u("InterfaceTypeAnnotation",e,t)},assertIntersectionTypeAnnotation:function(e,t){_u("IntersectionTypeAnnotation",e,t)},assertMixedTypeAnnotation:function(e,t){_u("MixedTypeAnnotation",e,t)},assertEmptyTypeAnnotation:function(e,t){_u("EmptyTypeAnnotation",e,t)},assertNullableTypeAnnotation:function(e,t){_u("NullableTypeAnnotation",e,t)},assertNumberLiteralTypeAnnotation:function(e,t){_u("NumberLiteralTypeAnnotation",e,t)},assertNumberTypeAnnotation:function(e,t){_u("NumberTypeAnnotation",e,t)},assertObjectTypeAnnotation:function(e,t){_u("ObjectTypeAnnotation",e,t)},assertObjectTypeInternalSlot:function(e,t){_u("ObjectTypeInternalSlot",e,t)},assertObjectTypeCallProperty:function(e,t){_u("ObjectTypeCallProperty",e,t)},assertObjectTypeIndexer:function(e,t){_u("ObjectTypeIndexer",e,t)},assertObjectTypeProperty:function(e,t){_u("ObjectTypeProperty",e,t)},assertObjectTypeSpreadProperty:function(e,t){_u("ObjectTypeSpreadProperty",e,t)},assertOpaqueType:function(e,t){_u("OpaqueType",e,t)},assertQualifiedTypeIdentifier:function(e,t){_u("QualifiedTypeIdentifier",e,t)},assertStringLiteralTypeAnnotation:function(e,t){_u("StringLiteralTypeAnnotation",e,t)},assertStringTypeAnnotation:function(e,t){_u("StringTypeAnnotation",e,t)},assertSymbolTypeAnnotation:function(e,t){_u("SymbolTypeAnnotation",e,t)},assertThisTypeAnnotation:function(e,t){_u("ThisTypeAnnotation",e,t)},assertTupleTypeAnnotation:function(e,t){_u("TupleTypeAnnotation",e,t)},assertTypeofTypeAnnotation:function(e,t){_u("TypeofTypeAnnotation",e,t)},assertTypeAlias:function(e,t){_u("TypeAlias",e,t)},assertTypeAnnotation:function(e,t){_u("TypeAnnotation",e,t)},assertTypeCastExpression:function(e,t){_u("TypeCastExpression",e,t)},assertTypeParameter:function(e,t){_u("TypeParameter",e,t)},assertTypeParameterDeclaration:function(e,t){_u("TypeParameterDeclaration",e,t)},assertTypeParameterInstantiation:function(e,t){_u("TypeParameterInstantiation",e,t)},assertUnionTypeAnnotation:function(e,t){_u("UnionTypeAnnotation",e,t)},assertVariance:function(e,t){_u("Variance",e,t)},assertVoidTypeAnnotation:function(e,t){_u("VoidTypeAnnotation",e,t)},assertEnumDeclaration:function(e,t){_u("EnumDeclaration",e,t)},assertEnumBooleanBody:function(e,t){_u("EnumBooleanBody",e,t)},assertEnumNumberBody:function(e,t){_u("EnumNumberBody",e,t)},assertEnumStringBody:function(e,t){_u("EnumStringBody",e,t)},assertEnumSymbolBody:function(e,t){_u("EnumSymbolBody",e,t)},assertEnumBooleanMember:function(e,t){_u("EnumBooleanMember",e,t)},assertEnumNumberMember:function(e,t){_u("EnumNumberMember",e,t)},assertEnumStringMember:function(e,t){_u("EnumStringMember",e,t)},assertEnumDefaultedMember:function(e,t){_u("EnumDefaultedMember",e,t)},assertIndexedAccessType:function(e,t){_u("IndexedAccessType",e,t)},assertOptionalIndexedAccessType:function(e,t){_u("OptionalIndexedAccessType",e,t)},assertJSXAttribute:function(e,t){_u("JSXAttribute",e,t)},assertJSXClosingElement:function(e,t){_u("JSXClosingElement",e,t)},assertJSXElement:function(e,t){_u("JSXElement",e,t)},assertJSXEmptyExpression:function(e,t){_u("JSXEmptyExpression",e,t)},assertJSXExpressionContainer:function(e,t){_u("JSXExpressionContainer",e,t)},assertJSXSpreadChild:function(e,t){_u("JSXSpreadChild",e,t)},assertJSXIdentifier:function(e,t){_u("JSXIdentifier",e,t)},assertJSXMemberExpression:function(e,t){_u("JSXMemberExpression",e,t)},assertJSXNamespacedName:function(e,t){_u("JSXNamespacedName",e,t)},assertJSXOpeningElement:function(e,t){_u("JSXOpeningElement",e,t)},assertJSXSpreadAttribute:function(e,t){_u("JSXSpreadAttribute",e,t)},assertJSXText:function(e,t){_u("JSXText",e,t)},assertJSXFragment:function(e,t){_u("JSXFragment",e,t)},assertJSXOpeningFragment:function(e,t){_u("JSXOpeningFragment",e,t)},assertJSXClosingFragment:function(e,t){_u("JSXClosingFragment",e,t)},assertNoop:function(e,t){_u("Noop",e,t)},assertPlaceholder:function(e,t){_u("Placeholder",e,t)},assertV8IntrinsicIdentifier:function(e,t){_u("V8IntrinsicIdentifier",e,t)},assertArgumentPlaceholder:function(e,t){_u("ArgumentPlaceholder",e,t)},assertBindExpression:function(e,t){_u("BindExpression",e,t)},assertClassProperty:function(e,t){_u("ClassProperty",e,t)},assertPipelineTopicExpression:function(e,t){_u("PipelineTopicExpression",e,t)},assertPipelineBareFunction:function(e,t){_u("PipelineBareFunction",e,t)},assertPipelinePrimaryTopicReference:function(e,t){_u("PipelinePrimaryTopicReference",e,t)},assertClassPrivateProperty:function(e,t){_u("ClassPrivateProperty",e,t)},assertClassPrivateMethod:function(e,t){_u("ClassPrivateMethod",e,t)},assertImportAttribute:function(e,t){_u("ImportAttribute",e,t)},assertDecorator:function(e,t){_u("Decorator",e,t)},assertDoExpression:function(e,t){_u("DoExpression",e,t)},assertExportDefaultSpecifier:function(e,t){_u("ExportDefaultSpecifier",e,t)},assertPrivateName:function(e,t){_u("PrivateName",e,t)},assertRecordExpression:function(e,t){_u("RecordExpression",e,t)},assertTupleExpression:function(e,t){_u("TupleExpression",e,t)},assertDecimalLiteral:function(e,t){_u("DecimalLiteral",e,t)},assertStaticBlock:function(e,t){_u("StaticBlock",e,t)},assertModuleExpression:function(e,t){_u("ModuleExpression",e,t)},assertTSParameterProperty:function(e,t){_u("TSParameterProperty",e,t)},assertTSDeclareFunction:function(e,t){_u("TSDeclareFunction",e,t)},assertTSDeclareMethod:function(e,t){_u("TSDeclareMethod",e,t)},assertTSQualifiedName:function(e,t){_u("TSQualifiedName",e,t)},assertTSCallSignatureDeclaration:function(e,t){_u("TSCallSignatureDeclaration",e,t)},assertTSConstructSignatureDeclaration:function(e,t){_u("TSConstructSignatureDeclaration",e,t)},assertTSPropertySignature:function(e,t){_u("TSPropertySignature",e,t)},assertTSMethodSignature:function(e,t){_u("TSMethodSignature",e,t)},assertTSIndexSignature:function(e,t){_u("TSIndexSignature",e,t)},assertTSAnyKeyword:function(e,t){_u("TSAnyKeyword",e,t)},assertTSBooleanKeyword:function(e,t){_u("TSBooleanKeyword",e,t)},assertTSBigIntKeyword:function(e,t){_u("TSBigIntKeyword",e,t)},assertTSIntrinsicKeyword:function(e,t){_u("TSIntrinsicKeyword",e,t)},assertTSNeverKeyword:function(e,t){_u("TSNeverKeyword",e,t)},assertTSNullKeyword:function(e,t){_u("TSNullKeyword",e,t)},assertTSNumberKeyword:function(e,t){_u("TSNumberKeyword",e,t)},assertTSObjectKeyword:function(e,t){_u("TSObjectKeyword",e,t)},assertTSStringKeyword:function(e,t){_u("TSStringKeyword",e,t)},assertTSSymbolKeyword:function(e,t){_u("TSSymbolKeyword",e,t)},assertTSUndefinedKeyword:function(e,t){_u("TSUndefinedKeyword",e,t)},assertTSUnknownKeyword:function(e,t){_u("TSUnknownKeyword",e,t)},assertTSVoidKeyword:function(e,t){_u("TSVoidKeyword",e,t)},assertTSThisType:function(e,t){_u("TSThisType",e,t)},assertTSFunctionType:function(e,t){_u("TSFunctionType",e,t)},assertTSConstructorType:function(e,t){_u("TSConstructorType",e,t)},assertTSTypeReference:function(e,t){_u("TSTypeReference",e,t)},assertTSTypePredicate:function(e,t){_u("TSTypePredicate",e,t)},assertTSTypeQuery:function(e,t){_u("TSTypeQuery",e,t)},assertTSTypeLiteral:function(e,t){_u("TSTypeLiteral",e,t)},assertTSArrayType:function(e,t){_u("TSArrayType",e,t)},assertTSTupleType:function(e,t){_u("TSTupleType",e,t)},assertTSOptionalType:function(e,t){_u("TSOptionalType",e,t)},assertTSRestType:function(e,t){_u("TSRestType",e,t)},assertTSNamedTupleMember:function(e,t){_u("TSNamedTupleMember",e,t)},assertTSUnionType:function(e,t){_u("TSUnionType",e,t)},assertTSIntersectionType:function(e,t){_u("TSIntersectionType",e,t)},assertTSConditionalType:function(e,t){_u("TSConditionalType",e,t)},assertTSInferType:function(e,t){_u("TSInferType",e,t)},assertTSParenthesizedType:function(e,t){_u("TSParenthesizedType",e,t)},assertTSTypeOperator:function(e,t){_u("TSTypeOperator",e,t)},assertTSIndexedAccessType:function(e,t){_u("TSIndexedAccessType",e,t)},assertTSMappedType:function(e,t){_u("TSMappedType",e,t)},assertTSLiteralType:function(e,t){_u("TSLiteralType",e,t)},assertTSExpressionWithTypeArguments:function(e,t){_u("TSExpressionWithTypeArguments",e,t)},assertTSInterfaceDeclaration:function(e,t){_u("TSInterfaceDeclaration",e,t)},assertTSInterfaceBody:function(e,t){_u("TSInterfaceBody",e,t)},assertTSTypeAliasDeclaration:function(e,t){_u("TSTypeAliasDeclaration",e,t)},assertTSAsExpression:function(e,t){_u("TSAsExpression",e,t)},assertTSTypeAssertion:function(e,t){_u("TSTypeAssertion",e,t)},assertTSEnumDeclaration:function(e,t){_u("TSEnumDeclaration",e,t)},assertTSEnumMember:function(e,t){_u("TSEnumMember",e,t)},assertTSModuleDeclaration:function(e,t){_u("TSModuleDeclaration",e,t)},assertTSModuleBlock:function(e,t){_u("TSModuleBlock",e,t)},assertTSImportType:function(e,t){_u("TSImportType",e,t)},assertTSImportEqualsDeclaration:function(e,t){_u("TSImportEqualsDeclaration",e,t)},assertTSExternalModuleReference:function(e,t){_u("TSExternalModuleReference",e,t)},assertTSNonNullExpression:function(e,t){_u("TSNonNullExpression",e,t)},assertTSExportAssignment:function(e,t){_u("TSExportAssignment",e,t)},assertTSNamespaceExportDeclaration:function(e,t){_u("TSNamespaceExportDeclaration",e,t)},assertTSTypeAnnotation:function(e,t){_u("TSTypeAnnotation",e,t)},assertTSTypeParameterInstantiation:function(e,t){_u("TSTypeParameterInstantiation",e,t)},assertTSTypeParameterDeclaration:function(e,t){_u("TSTypeParameterDeclaration",e,t)},assertTSTypeParameter:function(e,t){_u("TSTypeParameter",e,t)},assertExpression:Gu,assertBinary:function(e,t){_u("Binary",e,t)},assertScopable:function(e,t){_u("Scopable",e,t)},assertBlockParent:function(e,t){_u("BlockParent",e,t)},assertBlock:function(e,t){_u("Block",e,t)},assertStatement:function(e,t){_u("Statement",e,t)},assertTerminatorless:function(e,t){_u("Terminatorless",e,t)},assertCompletionStatement:function(e,t){_u("CompletionStatement",e,t)},assertConditional:function(e,t){_u("Conditional",e,t)},assertLoop:function(e,t){_u("Loop",e,t)},assertWhile:function(e,t){_u("While",e,t)},assertExpressionWrapper:function(e,t){_u("ExpressionWrapper",e,t)},assertFor:function(e,t){_u("For",e,t)},assertForXStatement:function(e,t){_u("ForXStatement",e,t)},assertFunction:function(e,t){_u("Function",e,t)},assertFunctionParent:function(e,t){_u("FunctionParent",e,t)},assertPureish:function(e,t){_u("Pureish",e,t)},assertDeclaration:function(e,t){_u("Declaration",e,t)},assertPatternLike:function(e,t){_u("PatternLike",e,t)},assertLVal:function(e,t){_u("LVal",e,t)},assertTSEntityName:function(e,t){_u("TSEntityName",e,t)},assertLiteral:function(e,t){_u("Literal",e,t)},assertImmutable:function(e,t){_u("Immutable",e,t)},assertUserWhitespacable:function(e,t){_u("UserWhitespacable",e,t)},assertMethod:function(e,t){_u("Method",e,t)},assertObjectMember:function(e,t){_u("ObjectMember",e,t)},assertProperty:function(e,t){_u("Property",e,t)},assertUnaryLike:function(e,t){_u("UnaryLike",e,t)},assertPattern:function(e,t){_u("Pattern",e,t)},assertClass:function(e,t){_u("Class",e,t)},assertModuleDeclaration:function(e,t){_u("ModuleDeclaration",e,t)},assertExportDeclaration:function(e,t){_u("ExportDeclaration",e,t)},assertModuleSpecifier:function(e,t){_u("ModuleSpecifier",e,t)},assertFlow:function(e,t){_u("Flow",e,t)},assertFlowType:function(e,t){_u("FlowType",e,t)},assertFlowBaseAnnotation:function(e,t){_u("FlowBaseAnnotation",e,t)},assertFlowDeclaration:function(e,t){_u("FlowDeclaration",e,t)},assertFlowPredicate:function(e,t){_u("FlowPredicate",e,t)},assertEnumBody:function(e,t){_u("EnumBody",e,t)},assertEnumMember:function(e,t){_u("EnumMember",e,t)},assertJSX:function(e,t){_u("JSX",e,t)},assertPrivate:function(e,t){_u("Private",e,t)},assertTSTypeElement:function(e,t){_u("TSTypeElement",e,t)},assertTSType:function(e,t){_u("TSType",e,t)},assertTSBaseType:function(e,t){_u("TSBaseType",e,t)},assertNumberLiteral:function(e,t){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),_u("NumberLiteral",e,t)},assertRegexLiteral:function(e,t){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),_u("RegexLiteral",e,t)},assertRestProperty:function(e,t){console.trace("The node type RestProperty has been renamed to RestElement"),_u("RestProperty",e,t)},assertSpreadProperty:function(e,t){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),_u("SpreadProperty",e,t)},arrayExpression:ts,assignmentExpression:rs,binaryExpression:ns,interpreterDirective:ss,directive:as,directiveLiteral:is,blockStatement:os,breakStatement:us,callExpression:ls,catchClause:cs,conditionalExpression:ps,continueStatement:ds,debuggerStatement:fs,doWhileStatement:hs,emptyStatement:ms,expressionStatement:ys,file:gs,forInStatement:vs,forStatement:bs,functionDeclaration:Es,functionExpression:xs,identifier:Ds,ifStatement:As,labeledStatement:ws,stringLiteral:Cs,numericLiteral:Ss,nullLiteral:Ts,booleanLiteral:js,regExpLiteral:Ps,logicalExpression:Is,memberExpression:Fs,newExpression:ks,program:Os,objectExpression:Rs,objectMethod:Ns,objectProperty:Bs,restElement:_s,returnStatement:Ls,sequenceExpression:Ms,parenthesizedExpression:Us,switchCase:Gs,switchStatement:Vs,thisExpression:Ws,throwStatement:Hs,tryStatement:Xs,unaryExpression:qs,updateExpression:$s,variableDeclaration:Ks,variableDeclarator:zs,whileStatement:Js,withStatement:Ys,assignmentPattern:Qs,arrayPattern:Zs,arrowFunctionExpression:ea,classBody:ta,classExpression:ra,classDeclaration:na,exportAllDeclaration:sa,exportDefaultDeclaration:aa,exportNamedDeclaration:ia,exportSpecifier:oa,forOfStatement:ua,importDeclaration:la,importDefaultSpecifier:ca,importNamespaceSpecifier:pa,importSpecifier:da,metaProperty:fa,classMethod:ha,objectPattern:ma,spreadElement:ya,super:ga,taggedTemplateExpression:va,templateElement:ba,templateLiteral:Ea,yieldExpression:xa,awaitExpression:Da,import:Aa,bigIntLiteral:wa,exportNamespaceSpecifier:Ca,optionalMemberExpression:Sa,optionalCallExpression:Ta,anyTypeAnnotation:ja,arrayTypeAnnotation:Pa,booleanTypeAnnotation:Ia,booleanLiteralTypeAnnotation:Fa,nullLiteralTypeAnnotation:ka,classImplements:Oa,declareClass:Ra,declareFunction:Na,declareInterface:Ba,declareModule:_a,declareModuleExports:La,declareTypeAlias:Ma,declareOpaqueType:Ua,declareVariable:Ga,declareExportDeclaration:Va,declareExportAllDeclaration:Wa,declaredPredicate:Ha,existsTypeAnnotation:Xa,functionTypeAnnotation:qa,functionTypeParam:$a,genericTypeAnnotation:Ka,inferredPredicate:za,interfaceExtends:Ja,interfaceDeclaration:Ya,interfaceTypeAnnotation:Qa,intersectionTypeAnnotation:Za,mixedTypeAnnotation:ei,emptyTypeAnnotation:ti,nullableTypeAnnotation:ri,numberLiteralTypeAnnotation:ni,numberTypeAnnotation:si,objectTypeAnnotation:ai,objectTypeInternalSlot:ii,objectTypeCallProperty:oi,objectTypeIndexer:ui,objectTypeProperty:li,objectTypeSpreadProperty:ci,opaqueType:pi,qualifiedTypeIdentifier:di,stringLiteralTypeAnnotation:fi,stringTypeAnnotation:hi,symbolTypeAnnotation:mi,thisTypeAnnotation:yi,tupleTypeAnnotation:gi,typeofTypeAnnotation:vi,typeAlias:bi,typeAnnotation:Ei,typeCastExpression:xi,typeParameter:Di,typeParameterDeclaration:Ai,typeParameterInstantiation:wi,unionTypeAnnotation:Ci,variance:Si,voidTypeAnnotation:Ti,enumDeclaration:ji,enumBooleanBody:Pi,enumNumberBody:Ii,enumStringBody:Fi,enumSymbolBody:ki,enumBooleanMember:Oi,enumNumberMember:Ri,enumStringMember:Ni,enumDefaultedMember:Bi,indexedAccessType:_i,optionalIndexedAccessType:Li,jsxAttribute:Mi,jSXAttribute:Mi,jsxClosingElement:Ui,jSXClosingElement:Ui,jsxElement:Gi,jSXElement:Gi,jsxEmptyExpression:Vi,jSXEmptyExpression:Vi,jsxExpressionContainer:Wi,jSXExpressionContainer:Wi,jsxSpreadChild:Hi,jSXSpreadChild:Hi,jsxIdentifier:Xi,jSXIdentifier:Xi,jsxMemberExpression:qi,jSXMemberExpression:qi,jsxNamespacedName:$i,jSXNamespacedName:$i,jsxOpeningElement:Ki,jSXOpeningElement:Ki,jsxSpreadAttribute:zi,jSXSpreadAttribute:zi,jsxText:Ji,jSXText:Ji,jsxFragment:Yi,jSXFragment:Yi,jsxOpeningFragment:Qi,jSXOpeningFragment:Qi,jsxClosingFragment:Zi,jSXClosingFragment:Zi,noop:eo,placeholder:to,v8IntrinsicIdentifier:ro,argumentPlaceholder:no,bindExpression:so,classProperty:ao,pipelineTopicExpression:io,pipelineBareFunction:oo,pipelinePrimaryTopicReference:uo,classPrivateProperty:lo,classPrivateMethod:co,importAttribute:po,decorator:fo,doExpression:ho,exportDefaultSpecifier:mo,privateName:yo,recordExpression:go,tupleExpression:vo,decimalLiteral:bo,staticBlock:Eo,moduleExpression:xo,tsParameterProperty:Do,tSParameterProperty:Do,tsDeclareFunction:Ao,tSDeclareFunction:Ao,tsDeclareMethod:wo,tSDeclareMethod:wo,tsQualifiedName:Co,tSQualifiedName:Co,tsCallSignatureDeclaration:So,tSCallSignatureDeclaration:So,tsConstructSignatureDeclaration:To,tSConstructSignatureDeclaration:To,tsPropertySignature:jo,tSPropertySignature:jo,tsMethodSignature:Po,tSMethodSignature:Po,tsIndexSignature:Io,tSIndexSignature:Io,tsAnyKeyword:Fo,tSAnyKeyword:Fo,tsBooleanKeyword:ko,tSBooleanKeyword:ko,tsBigIntKeyword:Oo,tSBigIntKeyword:Oo,tsIntrinsicKeyword:Ro,tSIntrinsicKeyword:Ro,tsNeverKeyword:No,tSNeverKeyword:No,tsNullKeyword:Bo,tSNullKeyword:Bo,tsNumberKeyword:_o,tSNumberKeyword:_o,tsObjectKeyword:Lo,tSObjectKeyword:Lo,tsStringKeyword:Mo,tSStringKeyword:Mo,tsSymbolKeyword:Uo,tSSymbolKeyword:Uo,tsUndefinedKeyword:Go,tSUndefinedKeyword:Go,tsUnknownKeyword:Vo,tSUnknownKeyword:Vo,tsVoidKeyword:Wo,tSVoidKeyword:Wo,tsThisType:Ho,tSThisType:Ho,tsFunctionType:Xo,tSFunctionType:Xo,tsConstructorType:qo,tSConstructorType:qo,tsTypeReference:$o,tSTypeReference:$o,tsTypePredicate:Ko,tSTypePredicate:Ko,tsTypeQuery:zo,tSTypeQuery:zo,tsTypeLiteral:Jo,tSTypeLiteral:Jo,tsArrayType:Yo,tSArrayType:Yo,tsTupleType:Qo,tSTupleType:Qo,tsOptionalType:Zo,tSOptionalType:Zo,tsRestType:eu,tSRestType:eu,tsNamedTupleMember:tu,tSNamedTupleMember:tu,tsUnionType:ru,tSUnionType:ru,tsIntersectionType:nu,tSIntersectionType:nu,tsConditionalType:su,tSConditionalType:su,tsInferType:au,tSInferType:au,tsParenthesizedType:iu,tSParenthesizedType:iu,tsTypeOperator:ou,tSTypeOperator:ou,tsIndexedAccessType:uu,tSIndexedAccessType:uu,tsMappedType:lu,tSMappedType:lu,tsLiteralType:cu,tSLiteralType:cu,tsExpressionWithTypeArguments:pu,tSExpressionWithTypeArguments:pu,tsInterfaceDeclaration:du,tSInterfaceDeclaration:du,tsInterfaceBody:fu,tSInterfaceBody:fu,tsTypeAliasDeclaration:hu,tSTypeAliasDeclaration:hu,tsAsExpression:mu,tSAsExpression:mu,tsTypeAssertion:yu,tSTypeAssertion:yu,tsEnumDeclaration:gu,tSEnumDeclaration:gu,tsEnumMember:vu,tSEnumMember:vu,tsModuleDeclaration:bu,tSModuleDeclaration:bu,tsModuleBlock:Eu,tSModuleBlock:Eu,tsImportType:xu,tSImportType:xu,tsImportEqualsDeclaration:Du,tSImportEqualsDeclaration:Du,tsExternalModuleReference:Au,tSExternalModuleReference:Au,tsNonNullExpression:wu,tSNonNullExpression:wu,tsExportAssignment:Cu,tSExportAssignment:Cu,tsNamespaceExportDeclaration:Su,tSNamespaceExportDeclaration:Su,tsTypeAnnotation:Tu,tSTypeAnnotation:Tu,tsTypeParameterInstantiation:ju,tSTypeParameterInstantiation:ju,tsTypeParameterDeclaration:Pu,tSTypeParameterDeclaration:Pu,tsTypeParameter:Iu,tSTypeParameter:Iu,numberLiteral:Fu,regexLiteral:ku,restProperty:Ou,spreadProperty:Ru,ArrayExpression:ts,AssignmentExpression:rs,BinaryExpression:ns,InterpreterDirective:ss,Directive:as,DirectiveLiteral:is,BlockStatement:os,BreakStatement:us,CallExpression:ls,CatchClause:cs,ConditionalExpression:ps,ContinueStatement:ds,DebuggerStatement:fs,DoWhileStatement:hs,EmptyStatement:ms,ExpressionStatement:ys,File:gs,ForInStatement:vs,ForStatement:bs,FunctionDeclaration:Es,FunctionExpression:xs,Identifier:Ds,IfStatement:As,LabeledStatement:ws,StringLiteral:Cs,NumericLiteral:Ss,NullLiteral:Ts,BooleanLiteral:js,RegExpLiteral:Ps,LogicalExpression:Is,MemberExpression:Fs,NewExpression:ks,Program:Os,ObjectExpression:Rs,ObjectMethod:Ns,ObjectProperty:Bs,RestElement:_s,ReturnStatement:Ls,SequenceExpression:Ms,ParenthesizedExpression:Us,SwitchCase:Gs,SwitchStatement:Vs,ThisExpression:Ws,ThrowStatement:Hs,TryStatement:Xs,UnaryExpression:qs,UpdateExpression:$s,VariableDeclaration:Ks,VariableDeclarator:zs,WhileStatement:Js,WithStatement:Ys,AssignmentPattern:Qs,ArrayPattern:Zs,ArrowFunctionExpression:ea,ClassBody:ta,ClassExpression:ra,ClassDeclaration:na,ExportAllDeclaration:sa,ExportDefaultDeclaration:aa,ExportNamedDeclaration:ia,ExportSpecifier:oa,ForOfStatement:ua,ImportDeclaration:la,ImportDefaultSpecifier:ca,ImportNamespaceSpecifier:pa,ImportSpecifier:da,MetaProperty:fa,ClassMethod:ha,ObjectPattern:ma,SpreadElement:ya,Super:ga,TaggedTemplateExpression:va,TemplateElement:ba,TemplateLiteral:Ea,YieldExpression:xa,AwaitExpression:Da,Import:Aa,BigIntLiteral:wa,ExportNamespaceSpecifier:Ca,OptionalMemberExpression:Sa,OptionalCallExpression:Ta,AnyTypeAnnotation:ja,ArrayTypeAnnotation:Pa,BooleanTypeAnnotation:Ia,BooleanLiteralTypeAnnotation:Fa,NullLiteralTypeAnnotation:ka,ClassImplements:Oa,DeclareClass:Ra,DeclareFunction:Na,DeclareInterface:Ba,DeclareModule:_a,DeclareModuleExports:La,DeclareTypeAlias:Ma,DeclareOpaqueType:Ua,DeclareVariable:Ga,DeclareExportDeclaration:Va,DeclareExportAllDeclaration:Wa,DeclaredPredicate:Ha,ExistsTypeAnnotation:Xa,FunctionTypeAnnotation:qa,FunctionTypeParam:$a,GenericTypeAnnotation:Ka,InferredPredicate:za,InterfaceExtends:Ja,InterfaceDeclaration:Ya,InterfaceTypeAnnotation:Qa,IntersectionTypeAnnotation:Za,MixedTypeAnnotation:ei,EmptyTypeAnnotation:ti,NullableTypeAnnotation:ri,NumberLiteralTypeAnnotation:ni,NumberTypeAnnotation:si,ObjectTypeAnnotation:ai,ObjectTypeInternalSlot:ii,ObjectTypeCallProperty:oi,ObjectTypeIndexer:ui,ObjectTypeProperty:li,ObjectTypeSpreadProperty:ci,OpaqueType:pi,QualifiedTypeIdentifier:di,StringLiteralTypeAnnotation:fi,StringTypeAnnotation:hi,SymbolTypeAnnotation:mi,ThisTypeAnnotation:yi,TupleTypeAnnotation:gi,TypeofTypeAnnotation:vi,TypeAlias:bi,TypeAnnotation:Ei,TypeCastExpression:xi,TypeParameter:Di,TypeParameterDeclaration:Ai,TypeParameterInstantiation:wi,UnionTypeAnnotation:Ci,Variance:Si,VoidTypeAnnotation:Ti,EnumDeclaration:ji,EnumBooleanBody:Pi,EnumNumberBody:Ii,EnumStringBody:Fi,EnumSymbolBody:ki,EnumBooleanMember:Oi,EnumNumberMember:Ri,EnumStringMember:Ni,EnumDefaultedMember:Bi,IndexedAccessType:_i,OptionalIndexedAccessType:Li,JSXAttribute:Mi,JSXClosingElement:Ui,JSXElement:Gi,JSXEmptyExpression:Vi,JSXExpressionContainer:Wi,JSXSpreadChild:Hi,JSXIdentifier:Xi,JSXMemberExpression:qi,JSXNamespacedName:$i,JSXOpeningElement:Ki,JSXSpreadAttribute:zi,JSXText:Ji,JSXFragment:Yi,JSXOpeningFragment:Qi,JSXClosingFragment:Zi,Noop:eo,Placeholder:to,V8IntrinsicIdentifier:ro,ArgumentPlaceholder:no,BindExpression:so,ClassProperty:ao,PipelineTopicExpression:io,PipelineBareFunction:oo,PipelinePrimaryTopicReference:uo,ClassPrivateProperty:lo,ClassPrivateMethod:co,ImportAttribute:po,Decorator:fo,DoExpression:ho,ExportDefaultSpecifier:mo,PrivateName:yo,RecordExpression:go,TupleExpression:vo,DecimalLiteral:bo,StaticBlock:Eo,ModuleExpression:xo,TSParameterProperty:Do,TSDeclareFunction:Ao,TSDeclareMethod:wo,TSQualifiedName:Co,TSCallSignatureDeclaration:So,TSConstructSignatureDeclaration:To,TSPropertySignature:jo,TSMethodSignature:Po,TSIndexSignature:Io,TSAnyKeyword:Fo,TSBooleanKeyword:ko,TSBigIntKeyword:Oo,TSIntrinsicKeyword:Ro,TSNeverKeyword:No,TSNullKeyword:Bo,TSNumberKeyword:_o,TSObjectKeyword:Lo,TSStringKeyword:Mo,TSSymbolKeyword:Uo,TSUndefinedKeyword:Go,TSUnknownKeyword:Vo,TSVoidKeyword:Wo,TSThisType:Ho,TSFunctionType:Xo,TSConstructorType:qo,TSTypeReference:$o,TSTypePredicate:Ko,TSTypeQuery:zo,TSTypeLiteral:Jo,TSArrayType:Yo,TSTupleType:Qo,TSOptionalType:Zo,TSRestType:eu,TSNamedTupleMember:tu,TSUnionType:ru,TSIntersectionType:nu,TSConditionalType:su,TSInferType:au,TSParenthesizedType:iu,TSTypeOperator:ou,TSIndexedAccessType:uu,TSMappedType:lu,TSLiteralType:cu,TSExpressionWithTypeArguments:pu,TSInterfaceDeclaration:du,TSInterfaceBody:fu,TSTypeAliasDeclaration:hu,TSAsExpression:mu,TSTypeAssertion:yu,TSEnumDeclaration:gu,TSEnumMember:vu,TSModuleDeclaration:bu,TSModuleBlock:Eu,TSImportType:xu,TSImportEqualsDeclaration:Du,TSExternalModuleReference:Au,TSNonNullExpression:wu,TSExportAssignment:Cu,TSNamespaceExportDeclaration:Su,TSTypeAnnotation:Tu,TSTypeParameterInstantiation:ju,TSTypeParameterDeclaration:Pu,TSTypeParameter:Iu,NumberLiteral:Fu,RegexLiteral:ku,RestProperty:Ou,SpreadProperty:Ru,EXPRESSION_TYPES:ol,BINARY_TYPES:ul,SCOPABLE_TYPES:ll,BLOCKPARENT_TYPES:cl,BLOCK_TYPES:pl,STATEMENT_TYPES:dl,TERMINATORLESS_TYPES:fl,COMPLETIONSTATEMENT_TYPES:hl,CONDITIONAL_TYPES:ml,LOOP_TYPES:yl,WHILE_TYPES:gl,EXPRESSIONWRAPPER_TYPES:vl,FOR_TYPES:bl,FORXSTATEMENT_TYPES:El,FUNCTION_TYPES:xl,FUNCTIONPARENT_TYPES:Dl,PUREISH_TYPES:Al,DECLARATION_TYPES:wl,PATTERNLIKE_TYPES:Cl,LVAL_TYPES:Sl,TSENTITYNAME_TYPES:Tl,LITERAL_TYPES:jl,IMMUTABLE_TYPES:Pl,USERWHITESPACABLE_TYPES:Il,METHOD_TYPES:Fl,OBJECTMEMBER_TYPES:kl,PROPERTY_TYPES:Ol,UNARYLIKE_TYPES:Rl,PATTERN_TYPES:Nl,CLASS_TYPES:Bl,MODULEDECLARATION_TYPES:_l,EXPORTDECLARATION_TYPES:Ll,MODULESPECIFIER_TYPES:Ml,FLOW_TYPES:Ul,FLOWTYPE_TYPES:Gl,FLOWBASEANNOTATION_TYPES:Vl,FLOWDECLARATION_TYPES:Wl,FLOWPREDICATE_TYPES:Hl,ENUMBODY_TYPES:Xl,ENUMMEMBER_TYPES:ql,JSX_TYPES:$l,PRIVATE_TYPES:Kl,TSTYPEELEMENT_TYPES:zl,TSTYPE_TYPES:Jl,TSBASETYPE_TYPES:Yl,STATEMENT_OR_BLOCK_KEYS:Ir,FLATTENABLE_KEYS:["body","expressions"],FOR_INIT_KEYS:Fr,COMMENT_KEYS:kr,LOGICAL_OPERATORS:Or,UPDATE_OPERATORS:Rr,BOOLEAN_NUMBER_BINARY_OPERATORS:Nr,EQUALITY_BINARY_OPERATORS:Br,COMPARISON_BINARY_OPERATORS:_r,BOOLEAN_BINARY_OPERATORS:Lr,NUMBER_BINARY_OPERATORS:Mr,BINARY_OPERATORS:Ur,ASSIGNMENT_OPERATORS:Gr,BOOLEAN_UNARY_OPERATORS:Vr,NUMBER_UNARY_OPERATORS:Wr,STRING_UNARY_OPERATORS:Hr,UNARY_OPERATORS:Xr,INHERIT_KEYS:qr,BLOCK_SCOPED_SYMBOL:$r,NOT_LOCAL_BINDING:Kr,VISITOR_KEYS:Qr,ALIAS_KEYS:Zr,FLIPPED_ALIAS_KEYS:en,NODE_FIELDS:tn,BUILDER_KEYS:rn,DEPRECATED_KEYS:nn,NODE_PARENT_VALIDATIONS:sn,PLACEHOLDERS:_n,PLACEHOLDERS_ALIAS:Ln,PLACEHOLDERS_FLIPPED_ALIAS:Wn,TYPES:Zn,isArrayExpression:m,isAssignmentExpression:y,isBinaryExpression:g,isInterpreterDirective:function(e,t){return!!e&&("InterpreterDirective"===e.type&&(void 0===t||h(e,t)))},isDirective:function(e,t){return!!e&&("Directive"===e.type&&(void 0===t||h(e,t)))},isDirectiveLiteral:function(e,t){return!!e&&("DirectiveLiteral"===e.type&&(void 0===t||h(e,t)))},isBlockStatement:v,isBreakStatement:b,isCallExpression:E,isCatchClause:x,isConditionalExpression:D,isContinueStatement:A,isDebuggerStatement:function(e,t){return!!e&&("DebuggerStatement"===e.type&&(void 0===t||h(e,t)))},isDoWhileStatement:function(e,t){return!!e&&("DoWhileStatement"===e.type&&(void 0===t||h(e,t)))},isEmptyStatement:w,isExpressionStatement:C,isFile:S,isForInStatement:T,isForStatement:j,isFunctionDeclaration:P,isFunctionExpression:I,isIdentifier:F,isIfStatement:k,isLabeledStatement:O,isStringLiteral:R,isNumericLiteral:N,isNullLiteral:B,isBooleanLiteral:function(e,t){return!!e&&("BooleanLiteral"===e.type&&(void 0===t||h(e,t)))},isRegExpLiteral:_,isLogicalExpression:L,isMemberExpression:M,isNewExpression:U,isProgram:G,isObjectExpression:V,isObjectMethod:W,isObjectProperty:H,isRestElement:X,isReturnStatement:q,isSequenceExpression:$,isParenthesizedExpression:K,isSwitchCase:function(e,t){return!!e&&("SwitchCase"===e.type&&(void 0===t||h(e,t)))},isSwitchStatement:z,isThisExpression:J,isThrowStatement:Y,isTryStatement:function(e,t){return!!e&&("TryStatement"===e.type&&(void 0===t||h(e,t)))},isUnaryExpression:Q,isUpdateExpression:function(e,t){return!!e&&("UpdateExpression"===e.type&&(void 0===t||h(e,t)))},isVariableDeclaration:Z,isVariableDeclarator:ee,isWhileStatement:te,isWithStatement:function(e,t){return!!e&&("WithStatement"===e.type&&(void 0===t||h(e,t)))},isAssignmentPattern:re,isArrayPattern:ne,isArrowFunctionExpression:se,isClassBody:ae,isClassExpression:ie,isClassDeclaration:oe,isExportAllDeclaration:ue,isExportDefaultDeclaration:le,isExportNamedDeclaration:ce,isExportSpecifier:pe,isForOfStatement:de,isImportDeclaration:fe,isImportDefaultSpecifier:he,isImportNamespaceSpecifier:me,isImportSpecifier:ye,isMetaProperty:function(e,t){return!!e&&("MetaProperty"===e.type&&(void 0===t||h(e,t)))},isClassMethod:ge,isObjectPattern:ve,isSpreadElement:be,isSuper:Ee,isTaggedTemplateExpression:xe,isTemplateElement:function(e,t){return!!e&&("TemplateElement"===e.type&&(void 0===t||h(e,t)))},isTemplateLiteral:De,isYieldExpression:Ae,isAwaitExpression:we,isImport:Ce,isBigIntLiteral:Se,isExportNamespaceSpecifier:Te,isOptionalMemberExpression:je,isOptionalCallExpression:Pe,isAnyTypeAnnotation:Ie,isArrayTypeAnnotation:Fe,isBooleanTypeAnnotation:ke,isBooleanLiteralTypeAnnotation:function(e,t){return!!e&&("BooleanLiteralTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isNullLiteralTypeAnnotation:function(e,t){return!!e&&("NullLiteralTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isClassImplements:function(e,t){return!!e&&("ClassImplements"===e.type&&(void 0===t||h(e,t)))},isDeclareClass:function(e,t){return!!e&&("DeclareClass"===e.type&&(void 0===t||h(e,t)))},isDeclareFunction:function(e,t){return!!e&&("DeclareFunction"===e.type&&(void 0===t||h(e,t)))},isDeclareInterface:function(e,t){return!!e&&("DeclareInterface"===e.type&&(void 0===t||h(e,t)))},isDeclareModule:function(e,t){return!!e&&("DeclareModule"===e.type&&(void 0===t||h(e,t)))},isDeclareModuleExports:function(e,t){return!!e&&("DeclareModuleExports"===e.type&&(void 0===t||h(e,t)))},isDeclareTypeAlias:function(e,t){return!!e&&("DeclareTypeAlias"===e.type&&(void 0===t||h(e,t)))},isDeclareOpaqueType:function(e,t){return!!e&&("DeclareOpaqueType"===e.type&&(void 0===t||h(e,t)))},isDeclareVariable:function(e,t){return!!e&&("DeclareVariable"===e.type&&(void 0===t||h(e,t)))},isDeclareExportDeclaration:Oe,isDeclareExportAllDeclaration:function(e,t){return!!e&&("DeclareExportAllDeclaration"===e.type&&(void 0===t||h(e,t)))},isDeclaredPredicate:function(e,t){return!!e&&("DeclaredPredicate"===e.type&&(void 0===t||h(e,t)))},isExistsTypeAnnotation:function(e,t){return!!e&&("ExistsTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isFunctionTypeAnnotation:function(e,t){return!!e&&("FunctionTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isFunctionTypeParam:function(e,t){return!!e&&("FunctionTypeParam"===e.type&&(void 0===t||h(e,t)))},isGenericTypeAnnotation:Re,isInferredPredicate:function(e,t){return!!e&&("InferredPredicate"===e.type&&(void 0===t||h(e,t)))},isInterfaceExtends:function(e,t){return!!e&&("InterfaceExtends"===e.type&&(void 0===t||h(e,t)))},isInterfaceDeclaration:function(e,t){return!!e&&("InterfaceDeclaration"===e.type&&(void 0===t||h(e,t)))},isInterfaceTypeAnnotation:function(e,t){return!!e&&("InterfaceTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isIntersectionTypeAnnotation:Ne,isMixedTypeAnnotation:Be,isEmptyTypeAnnotation:_e,isNullableTypeAnnotation:Le,isNumberLiteralTypeAnnotation:function(e,t){return!!e&&("NumberLiteralTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isNumberTypeAnnotation:Me,isObjectTypeAnnotation:function(e,t){return!!e&&("ObjectTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isObjectTypeInternalSlot:function(e,t){return!!e&&("ObjectTypeInternalSlot"===e.type&&(void 0===t||h(e,t)))},isObjectTypeCallProperty:function(e,t){return!!e&&("ObjectTypeCallProperty"===e.type&&(void 0===t||h(e,t)))},isObjectTypeIndexer:function(e,t){return!!e&&("ObjectTypeIndexer"===e.type&&(void 0===t||h(e,t)))},isObjectTypeProperty:function(e,t){return!!e&&("ObjectTypeProperty"===e.type&&(void 0===t||h(e,t)))},isObjectTypeSpreadProperty:function(e,t){return!!e&&("ObjectTypeSpreadProperty"===e.type&&(void 0===t||h(e,t)))},isOpaqueType:function(e,t){return!!e&&("OpaqueType"===e.type&&(void 0===t||h(e,t)))},isQualifiedTypeIdentifier:function(e,t){return!!e&&("QualifiedTypeIdentifier"===e.type&&(void 0===t||h(e,t)))},isStringLiteralTypeAnnotation:function(e,t){return!!e&&("StringLiteralTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isStringTypeAnnotation:Ue,isSymbolTypeAnnotation:function(e,t){return!!e&&("SymbolTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isThisTypeAnnotation:function(e,t){return!!e&&("ThisTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isTupleTypeAnnotation:function(e,t){return!!e&&("TupleTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isTypeofTypeAnnotation:function(e,t){return!!e&&("TypeofTypeAnnotation"===e.type&&(void 0===t||h(e,t)))},isTypeAlias:function(e,t){return!!e&&("TypeAlias"===e.type&&(void 0===t||h(e,t)))},isTypeAnnotation:Ge,isTypeCastExpression:Ve,isTypeParameter:function(e,t){return!!e&&("TypeParameter"===e.type&&(void 0===t||h(e,t)))},isTypeParameterDeclaration:function(e,t){return!!e&&("TypeParameterDeclaration"===e.type&&(void 0===t||h(e,t)))},isTypeParameterInstantiation:function(e,t){return!!e&&("TypeParameterInstantiation"===e.type&&(void 0===t||h(e,t)))},isUnionTypeAnnotation:We,isVariance:function(e,t){return!!e&&("Variance"===e.type&&(void 0===t||h(e,t)))},isVoidTypeAnnotation:He,isEnumDeclaration:function(e,t){return!!e&&("EnumDeclaration"===e.type&&(void 0===t||h(e,t)))},isEnumBooleanBody:function(e,t){return!!e&&("EnumBooleanBody"===e.type&&(void 0===t||h(e,t)))},isEnumNumberBody:function(e,t){return!!e&&("EnumNumberBody"===e.type&&(void 0===t||h(e,t)))},isEnumStringBody:function(e,t){return!!e&&("EnumStringBody"===e.type&&(void 0===t||h(e,t)))},isEnumSymbolBody:function(e,t){return!!e&&("EnumSymbolBody"===e.type&&(void 0===t||h(e,t)))},isEnumBooleanMember:function(e,t){return!!e&&("EnumBooleanMember"===e.type&&(void 0===t||h(e,t)))},isEnumNumberMember:function(e,t){return!!e&&("EnumNumberMember"===e.type&&(void 0===t||h(e,t)))},isEnumStringMember:function(e,t){return!!e&&("EnumStringMember"===e.type&&(void 0===t||h(e,t)))},isEnumDefaultedMember:function(e,t){return!!e&&("EnumDefaultedMember"===e.type&&(void 0===t||h(e,t)))},isIndexedAccessType:Xe,isOptionalIndexedAccessType:function(e,t){return!!e&&("OptionalIndexedAccessType"===e.type&&(void 0===t||h(e,t)))},isJSXAttribute:qe,isJSXClosingElement:function(e,t){return!!e&&("JSXClosingElement"===e.type&&(void 0===t||h(e,t)))},isJSXElement:$e,isJSXEmptyExpression:Ke,isJSXExpressionContainer:ze,isJSXSpreadChild:function(e,t){return!!e&&("JSXSpreadChild"===e.type&&(void 0===t||h(e,t)))},isJSXIdentifier:Je,isJSXMemberExpression:Ye,isJSXNamespacedName:Qe,isJSXOpeningElement:function(e,t){return!!e&&("JSXOpeningElement"===e.type&&(void 0===t||h(e,t)))},isJSXSpreadAttribute:Ze,isJSXText:et,isJSXFragment:function(e,t){return!!e&&("JSXFragment"===e.type&&(void 0===t||h(e,t)))},isJSXOpeningFragment:function(e,t){return!!e&&("JSXOpeningFragment"===e.type&&(void 0===t||h(e,t)))},isJSXClosingFragment:function(e,t){return!!e&&("JSXClosingFragment"===e.type&&(void 0===t||h(e,t)))},isNoop:function(e,t){return!!e&&("Noop"===e.type&&(void 0===t||h(e,t)))},isPlaceholder:tt,isV8IntrinsicIdentifier:function(e,t){return!!e&&("V8IntrinsicIdentifier"===e.type&&(void 0===t||h(e,t)))},isArgumentPlaceholder:function(e,t){return!!e&&("ArgumentPlaceholder"===e.type&&(void 0===t||h(e,t)))},isBindExpression:rt,isClassProperty:nt,isPipelineTopicExpression:st,isPipelineBareFunction:function(e,t){return!!e&&("PipelineBareFunction"===e.type&&(void 0===t||h(e,t)))},isPipelinePrimaryTopicReference:function(e,t){return!!e&&("PipelinePrimaryTopicReference"===e.type&&(void 0===t||h(e,t)))},isClassPrivateProperty:at,isClassPrivateMethod:function(e,t){return!!e&&("ClassPrivateMethod"===e.type&&(void 0===t||h(e,t)))},isImportAttribute:function(e,t){return!!e&&("ImportAttribute"===e.type&&(void 0===t||h(e,t)))},isDecorator:function(e,t){return!!e&&("Decorator"===e.type&&(void 0===t||h(e,t)))},isDoExpression:function(e,t){return!!e&&("DoExpression"===e.type&&(void 0===t||h(e,t)))},isExportDefaultSpecifier:it,isPrivateName:ot,isRecordExpression:function(e,t){return!!e&&("RecordExpression"===e.type&&(void 0===t||h(e,t)))},isTupleExpression:function(e,t){return!!e&&("TupleExpression"===e.type&&(void 0===t||h(e,t)))},isDecimalLiteral:function(e,t){return!!e&&("DecimalLiteral"===e.type&&(void 0===t||h(e,t)))},isStaticBlock:function(e,t){return!!e&&("StaticBlock"===e.type&&(void 0===t||h(e,t)))},isModuleExpression:function(e,t){return!!e&&("ModuleExpression"===e.type&&(void 0===t||h(e,t)))},isTSParameterProperty:function(e,t){return!!e&&("TSParameterProperty"===e.type&&(void 0===t||h(e,t)))},isTSDeclareFunction:function(e,t){return!!e&&("TSDeclareFunction"===e.type&&(void 0===t||h(e,t)))},isTSDeclareMethod:function(e,t){return!!e&&("TSDeclareMethod"===e.type&&(void 0===t||h(e,t)))},isTSQualifiedName:function(e,t){return!!e&&("TSQualifiedName"===e.type&&(void 0===t||h(e,t)))},isTSCallSignatureDeclaration:function(e,t){return!!e&&("TSCallSignatureDeclaration"===e.type&&(void 0===t||h(e,t)))},isTSConstructSignatureDeclaration:function(e,t){return!!e&&("TSConstructSignatureDeclaration"===e.type&&(void 0===t||h(e,t)))},isTSPropertySignature:function(e,t){return!!e&&("TSPropertySignature"===e.type&&(void 0===t||h(e,t)))},isTSMethodSignature:function(e,t){return!!e&&("TSMethodSignature"===e.type&&(void 0===t||h(e,t)))},isTSIndexSignature:function(e,t){return!!e&&("TSIndexSignature"===e.type&&(void 0===t||h(e,t)))},isTSAnyKeyword:ut,isTSBooleanKeyword:function(e,t){return!!e&&("TSBooleanKeyword"===e.type&&(void 0===t||h(e,t)))},isTSBigIntKeyword:function(e,t){return!!e&&("TSBigIntKeyword"===e.type&&(void 0===t||h(e,t)))},isTSIntrinsicKeyword:function(e,t){return!!e&&("TSIntrinsicKeyword"===e.type&&(void 0===t||h(e,t)))},isTSNeverKeyword:function(e,t){return!!e&&("TSNeverKeyword"===e.type&&(void 0===t||h(e,t)))},isTSNullKeyword:function(e,t){return!!e&&("TSNullKeyword"===e.type&&(void 0===t||h(e,t)))},isTSNumberKeyword:function(e,t){return!!e&&("TSNumberKeyword"===e.type&&(void 0===t||h(e,t)))},isTSObjectKeyword:function(e,t){return!!e&&("TSObjectKeyword"===e.type&&(void 0===t||h(e,t)))},isTSStringKeyword:function(e,t){return!!e&&("TSStringKeyword"===e.type&&(void 0===t||h(e,t)))},isTSSymbolKeyword:function(e,t){return!!e&&("TSSymbolKeyword"===e.type&&(void 0===t||h(e,t)))},isTSUndefinedKeyword:function(e,t){return!!e&&("TSUndefinedKeyword"===e.type&&(void 0===t||h(e,t)))},isTSUnknownKeyword:function(e,t){return!!e&&("TSUnknownKeyword"===e.type&&(void 0===t||h(e,t)))},isTSVoidKeyword:function(e,t){return!!e&&("TSVoidKeyword"===e.type&&(void 0===t||h(e,t)))},isTSThisType:function(e,t){return!!e&&("TSThisType"===e.type&&(void 0===t||h(e,t)))},isTSFunctionType:function(e,t){return!!e&&("TSFunctionType"===e.type&&(void 0===t||h(e,t)))},isTSConstructorType:function(e,t){return!!e&&("TSConstructorType"===e.type&&(void 0===t||h(e,t)))},isTSTypeReference:function(e,t){return!!e&&("TSTypeReference"===e.type&&(void 0===t||h(e,t)))},isTSTypePredicate:function(e,t){return!!e&&("TSTypePredicate"===e.type&&(void 0===t||h(e,t)))},isTSTypeQuery:function(e,t){return!!e&&("TSTypeQuery"===e.type&&(void 0===t||h(e,t)))},isTSTypeLiteral:function(e,t){return!!e&&("TSTypeLiteral"===e.type&&(void 0===t||h(e,t)))},isTSArrayType:lt,isTSTupleType:function(e,t){return!!e&&("TSTupleType"===e.type&&(void 0===t||h(e,t)))},isTSOptionalType:ct,isTSRestType:pt,isTSNamedTupleMember:function(e,t){return!!e&&("TSNamedTupleMember"===e.type&&(void 0===t||h(e,t)))},isTSUnionType:dt,isTSIntersectionType:ft,isTSConditionalType:function(e,t){return!!e&&("TSConditionalType"===e.type&&(void 0===t||h(e,t)))},isTSInferType:function(e,t){return!!e&&("TSInferType"===e.type&&(void 0===t||h(e,t)))},isTSParenthesizedType:function(e,t){return!!e&&("TSParenthesizedType"===e.type&&(void 0===t||h(e,t)))},isTSTypeOperator:function(e,t){return!!e&&("TSTypeOperator"===e.type&&(void 0===t||h(e,t)))},isTSIndexedAccessType:function(e,t){return!!e&&("TSIndexedAccessType"===e.type&&(void 0===t||h(e,t)))},isTSMappedType:function(e,t){return!!e&&("TSMappedType"===e.type&&(void 0===t||h(e,t)))},isTSLiteralType:function(e,t){return!!e&&("TSLiteralType"===e.type&&(void 0===t||h(e,t)))},isTSExpressionWithTypeArguments:function(e,t){return!!e&&("TSExpressionWithTypeArguments"===e.type&&(void 0===t||h(e,t)))},isTSInterfaceDeclaration:function(e,t){return!!e&&("TSInterfaceDeclaration"===e.type&&(void 0===t||h(e,t)))},isTSInterfaceBody:function(e,t){return!!e&&("TSInterfaceBody"===e.type&&(void 0===t||h(e,t)))},isTSTypeAliasDeclaration:function(e,t){return!!e&&("TSTypeAliasDeclaration"===e.type&&(void 0===t||h(e,t)))},isTSAsExpression:ht,isTSTypeAssertion:mt,isTSEnumDeclaration:function(e,t){return!!e&&("TSEnumDeclaration"===e.type&&(void 0===t||h(e,t)))},isTSEnumMember:function(e,t){return!!e&&("TSEnumMember"===e.type&&(void 0===t||h(e,t)))},isTSModuleDeclaration:function(e,t){return!!e&&("TSModuleDeclaration"===e.type&&(void 0===t||h(e,t)))},isTSModuleBlock:function(e,t){return!!e&&("TSModuleBlock"===e.type&&(void 0===t||h(e,t)))},isTSImportType:function(e,t){return!!e&&("TSImportType"===e.type&&(void 0===t||h(e,t)))},isTSImportEqualsDeclaration:function(e,t){return!!e&&("TSImportEqualsDeclaration"===e.type&&(void 0===t||h(e,t)))},isTSExternalModuleReference:function(e,t){return!!e&&("TSExternalModuleReference"===e.type&&(void 0===t||h(e,t)))},isTSNonNullExpression:yt,isTSExportAssignment:function(e,t){return!!e&&("TSExportAssignment"===e.type&&(void 0===t||h(e,t)))},isTSNamespaceExportDeclaration:function(e,t){return!!e&&("TSNamespaceExportDeclaration"===e.type&&(void 0===t||h(e,t)))},isTSTypeAnnotation:gt,isTSTypeParameterInstantiation:function(e,t){return!!e&&("TSTypeParameterInstantiation"===e.type&&(void 0===t||h(e,t)))},isTSTypeParameterDeclaration:function(e,t){return!!e&&("TSTypeParameterDeclaration"===e.type&&(void 0===t||h(e,t)))},isTSTypeParameter:function(e,t){return!!e&&("TSTypeParameter"===e.type&&(void 0===t||h(e,t)))},isExpression:vt,isBinary:bt,isScopable:Et,isBlockParent:function(e,t){if(!e)return!1;var r=e.type;return("BlockStatement"===r||"CatchClause"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"Program"===r||"ObjectMethod"===r||"SwitchStatement"===r||"WhileStatement"===r||"ArrowFunctionExpression"===r||"ForOfStatement"===r||"ClassMethod"===r||"ClassPrivateMethod"===r||"StaticBlock"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)&&(void 0===t||h(e,t))},isBlock:function(e,t){if(!e)return!1;var r=e.type;return("BlockStatement"===r||"Program"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)&&(void 0===t||h(e,t))},isStatement:xt,isTerminatorless:function(e,t){if(!e)return!1;var r=e.type;return("BreakStatement"===r||"ContinueStatement"===r||"ReturnStatement"===r||"ThrowStatement"===r||"YieldExpression"===r||"AwaitExpression"===r)&&(void 0===t||h(e,t))},isCompletionStatement:function(e,t){if(!e)return!1;var r=e.type;return("BreakStatement"===r||"ContinueStatement"===r||"ReturnStatement"===r||"ThrowStatement"===r)&&(void 0===t||h(e,t))},isConditional:Dt,isLoop:At,isWhile:function(e,t){if(!e)return!1;var r=e.type;return("DoWhileStatement"===r||"WhileStatement"===r)&&(void 0===t||h(e,t))},isExpressionWrapper:function(e,t){if(!e)return!1;var r=e.type;return("ExpressionStatement"===r||"ParenthesizedExpression"===r||"TypeCastExpression"===r)&&(void 0===t||h(e,t))},isFor:wt,isForXStatement:Ct,isFunction:St,isFunctionParent:function(e,t){if(!e)return!1;var r=e.type;return("FunctionDeclaration"===r||"FunctionExpression"===r||"ObjectMethod"===r||"ArrowFunctionExpression"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)&&(void 0===t||h(e,t))},isPureish:Tt,isDeclaration:jt,isPatternLike:function(e,t){if(!e)return!1;var r=e.type;return("Identifier"===r||"RestElement"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"Placeholder"===r&&("Pattern"===e.expectedNode||"Identifier"===e.expectedNode))&&(void 0===t||h(e,t))},isLVal:function(e,t){if(!e)return!1;var r=e.type;return("Identifier"===r||"MemberExpression"===r||"RestElement"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"TSParameterProperty"===r||"Placeholder"===r&&("Pattern"===e.expectedNode||"Identifier"===e.expectedNode))&&(void 0===t||h(e,t))},isTSEntityName:function(e,t){if(!e)return!1;var r=e.type;return("Identifier"===r||"TSQualifiedName"===r||"Placeholder"===r&&"Identifier"===e.expectedNode)&&(void 0===t||h(e,t))},isLiteral:Pt,isUserWhitespacable:function(e,t){if(!e)return!1;var r=e.type;return("ObjectMethod"===r||"ObjectProperty"===r||"ObjectTypeInternalSlot"===r||"ObjectTypeCallProperty"===r||"ObjectTypeIndexer"===r||"ObjectTypeProperty"===r||"ObjectTypeSpreadProperty"===r)&&(void 0===t||h(e,t))},isMethod:It,isObjectMember:function(e,t){if(!e)return!1;var r=e.type;return("ObjectMethod"===r||"ObjectProperty"===r)&&(void 0===t||h(e,t))},isProperty:Ft,isUnaryLike:kt,isPattern:Ot,isClass:Rt,isModuleDeclaration:Nt,isExportDeclaration:Bt,isModuleSpecifier:_t,isFlow:Lt,isFlowType:function(e,t){if(!e)return!1;var r=e.type;return("AnyTypeAnnotation"===r||"ArrayTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"BooleanLiteralTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"ExistsTypeAnnotation"===r||"FunctionTypeAnnotation"===r||"GenericTypeAnnotation"===r||"InterfaceTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NullableTypeAnnotation"===r||"NumberLiteralTypeAnnotation"===r||"NumberTypeAnnotation"===r||"ObjectTypeAnnotation"===r||"StringLiteralTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"TupleTypeAnnotation"===r||"TypeofTypeAnnotation"===r||"UnionTypeAnnotation"===r||"VoidTypeAnnotation"===r||"IndexedAccessType"===r||"OptionalIndexedAccessType"===r)&&(void 0===t||h(e,t))},isFlowBaseAnnotation:Mt,isFlowDeclaration:function(e,t){if(!e)return!1;var r=e.type;return("DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r)&&(void 0===t||h(e,t))},isFlowPredicate:function(e,t){if(!e)return!1;var r=e.type;return("DeclaredPredicate"===r||"InferredPredicate"===r)&&(void 0===t||h(e,t))},isEnumBody:function(e,t){if(!e)return!1;var r=e.type;return("EnumBooleanBody"===r||"EnumNumberBody"===r||"EnumStringBody"===r||"EnumSymbolBody"===r)&&(void 0===t||h(e,t))},isEnumMember:function(e,t){if(!e)return!1;var r=e.type;return("EnumBooleanMember"===r||"EnumNumberMember"===r||"EnumStringMember"===r||"EnumDefaultedMember"===r)&&(void 0===t||h(e,t))},isJSX:function(e,t){if(!e)return!1;var r=e.type;return("JSXAttribute"===r||"JSXClosingElement"===r||"JSXElement"===r||"JSXEmptyExpression"===r||"JSXExpressionContainer"===r||"JSXSpreadChild"===r||"JSXIdentifier"===r||"JSXMemberExpression"===r||"JSXNamespacedName"===r||"JSXOpeningElement"===r||"JSXSpreadAttribute"===r||"JSXText"===r||"JSXFragment"===r||"JSXOpeningFragment"===r||"JSXClosingFragment"===r)&&(void 0===t||h(e,t))},isPrivate:function(e,t){if(!e)return!1;var r=e.type;return("ClassPrivateProperty"===r||"ClassPrivateMethod"===r||"PrivateName"===r)&&(void 0===t||h(e,t))},isTSTypeElement:function(e,t){if(!e)return!1;var r=e.type;return("TSCallSignatureDeclaration"===r||"TSConstructSignatureDeclaration"===r||"TSPropertySignature"===r||"TSMethodSignature"===r||"TSIndexSignature"===r)&&(void 0===t||h(e,t))},isTSType:function(e,t){if(!e)return!1;var r=e.type;return("TSAnyKeyword"===r||"TSBooleanKeyword"===r||"TSBigIntKeyword"===r||"TSIntrinsicKeyword"===r||"TSNeverKeyword"===r||"TSNullKeyword"===r||"TSNumberKeyword"===r||"TSObjectKeyword"===r||"TSStringKeyword"===r||"TSSymbolKeyword"===r||"TSUndefinedKeyword"===r||"TSUnknownKeyword"===r||"TSVoidKeyword"===r||"TSThisType"===r||"TSFunctionType"===r||"TSConstructorType"===r||"TSTypeReference"===r||"TSTypePredicate"===r||"TSTypeQuery"===r||"TSTypeLiteral"===r||"TSArrayType"===r||"TSTupleType"===r||"TSOptionalType"===r||"TSRestType"===r||"TSUnionType"===r||"TSIntersectionType"===r||"TSConditionalType"===r||"TSInferType"===r||"TSParenthesizedType"===r||"TSTypeOperator"===r||"TSIndexedAccessType"===r||"TSMappedType"===r||"TSLiteralType"===r||"TSExpressionWithTypeArguments"===r||"TSImportType"===r)&&(void 0===t||h(e,t))},isTSBaseType:Ut,isNumberLiteral:function(e,t){return console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),!!e&&("NumberLiteral"===e.type&&(void 0===t||h(e,t)))},isRegexLiteral:function(e,t){return console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),!!e&&("RegexLiteral"===e.type&&(void 0===t||h(e,t)))},isRestProperty:function(e,t){return console.trace("The node type RestProperty has been renamed to RestElement"),!!e&&("RestProperty"===e.type&&(void 0===t||h(e,t)))},isSpreadProperty:function(e,t){return console.trace("The node type SpreadProperty has been renamed to SpreadElement"),!!e&&("SpreadProperty"===e.type&&(void 0===t||h(e,t)))}}),Ic={types:["Identifier","JSXIdentifier"],checkPath:function(e,t){var r=e.node,n=e.parent;if(!F(r,t)&&!Ye(n,t)){if(!Je(r,t))return!1;if(jc.isCompatTag(r.name))return!1}return Ac(r,n,e.parentPath.parent)}},Fc={types:["MemberExpression"],checkPath:function(e){var t=e.node,r=e.parent;return M(t)&&Ac(t,r)}},kc={types:["Identifier"],checkPath:function(e){var t=e.node,r=e.parent,n=e.parentPath.parent;return F(t)&&Ec(t,r,n)}},Oc={types:["Statement"],checkPath:function(e){var t=e.node,r=e.parent;if(xt(t)){if(Z(t)){if(Ct(r,{left:t}))return!1;if(j(r,{init:t}))return!1}return!0}return!1}},Rc={types:["Expression"],checkPath:function(e){return e.isIdentifier()?e.isReferencedIdentifier():vt(e.node)}},Nc={types:["Scopable","Pattern"],checkPath:function(e){return wc(e.node,e.parent)}},Bc={checkPath:function(e){return Ac(e.node,e.parent)}},_c={checkPath:function(e){return Dc(e.node)}},Lc={types:["VariableDeclaration"],checkPath:function(e){return Tc(e.node)}},Mc={types:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],checkPath:function(e){var t=e.node;return!!Lt(t)||(fe(t)?"type"===t.importKind||"typeof"===t.importKind:Bt(t)?"type"===t.exportKind:!!ye(t)&&("type"===t.importKind||"typeof"===t.importKind))}},Uc=Object.freeze({__proto__:null,ReferencedIdentifier:Ic,ReferencedMemberExpression:Fc,BindingIdentifier:kc,Statement:Oc,Expression:Rc,Scope:Nc,Referenced:Bc,BlockScoped:_c,Var:Lc,User:{checkPath:function(e){return e.node&&!!e.node.loc}},Generated:{checkPath:function(e){return!e.isUser()}},Pure:{checkPath:function(e,t){return e.scope.isPure(e.node,t)}},Flow:Mc,RestProperty:{types:["RestElement"],checkPath:function(e){return e.parentPath&&e.parentPath.isObjectPattern()}},SpreadProperty:{types:["RestElement"],checkPath:function(e){return e.parentPath&&e.parentPath.isObjectExpression()}},ExistentialTypeParam:{types:["ExistsTypeAnnotation"]},NumericLiteralTypeAnnotation:{types:["NumberLiteralTypeAnnotation"]},ForAwaitStatement:{types:["ForOfStatement"],checkPath:function(e){return!0===e.node.await}}}),Gc=1e3,Vc=6e4,Wc=60*Vc,Hc=24*Wc,Xc=7*Hc,qc=365.25*Hc,$c=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*qc;case"weeks":case"week":case"w":return r*Xc;case"days":case"day":case"d":return r*Hc;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Wc;case"minutes":case"minute":case"mins":case"min":case"m":return r*Vc;case"seconds":case"second":case"secs":case"sec":case"s":return r*Gc;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=Hc)return Kc(e,t,Hc,"day");if(t>=Wc)return Kc(e,t,Wc,"hour");if(t>=Vc)return Kc(e,t,Vc,"minute");if(t>=Gc)return Kc(e,t,Gc,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=Hc)return Math.round(e/Hc)+"d";if(t>=Wc)return Math.round(e/Wc)+"h";if(t>=Vc)return Math.round(e/Vc)+"m";if(t>=Gc)return Math.round(e/Gc)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Kc(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}var zc=function(e){function t(e){var n,s,a,i=null;function o(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(o.enabled){var a=o,i=Number(new Date),u=i-(n||i);a.diff=u,a.prev=n,a.curr=i,n=i,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var l=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return"%";l++;var s=t.formatters[n];if("function"==typeof s){var i=r[l];e=s.call(a,i),r.splice(l,1),l--}return e})),t.formatArgs.call(a,r);var c=a.log||t.log;c.apply(a,r)}}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=r,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==i?i:(s!==t.namespaces&&(s=t.namespaces,a=t.enabled(e)),a)},set:function(e){i=e}}),"function"==typeof t.init&&t.init(o),o}function r(e,r){var n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(c(t.names.map(n)),c(t.skips.map(n).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(r=0;r<s;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=$c,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(r){t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t},Jc=zt((function(e,t){var r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(s=n))})),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==ar&&"env"in ar&&(e=ar.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(r=!1,function(){r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=zc(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}),"/$$rollup_base$$/packages/babel-traverse/node_modules/debug/src"),Yc=function(){function e(e){var t=e.identifier,r=e.scope,n=e.path,s=e.kind;this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=n,this.kind=s,this.clearValue()}var t=e.prototype;return t.deoptValue=function(){this.clearValue(),this.hasDeoptedValue=!0},t.setValue=function(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)},t.clearValue=function(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null},t.reassign=function(e){this.constant=!1,-1===this.constantViolations.indexOf(e)&&this.constantViolations.push(e)},t.reference=function(e){-1===this.referencePaths.indexOf(e)&&(this.referenced=!0,this.references++,this.referencePaths.push(e))},t.dereference=function(){this.references--,this.referenced=!!this.references},e}();function Qc(e){if(!e.isExportDeclaration())throw new Error("Only export declarations can be split.");var t=e.isExportDefaultDeclaration(),r=e.get("declaration"),n=r.isClassDeclaration();if(t){var s=r.isFunctionDeclaration()||n,a=r.isScope()?r.scope.parent:r.scope,i=r.node.id,o=!1;i||(o=!0,i=a.generateUidIdentifier("default"),(s||r.isFunctionExpression()||r.isClassExpression())&&(r.node.id=Ju(i)));var u=s?r:Ks("var",[zs(Ju(i),r.node)]),l=ia(null,[oa(Ju(i),Ds("default"))]);return e.insertAfter(l),e.replaceWith(u),o&&a.registerDeclaration(e),e}if(e.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");var c=r.getOuterBindingIdentifiers(),p=ia(null,Object.keys(c).map((function(e){return oa(Ds(e),Ds(e))})));return e.insertAfter(p),e.replaceWith(r.node),e}var Zc={ReferencedIdentifier:function(e,t){var r=e.node;r.name===t.oldName&&(r.name=t.newName)},Scope:function(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||function(e){if(!e.isMethod()||!e.node.computed)return void e.skip();for(var t,r=f(Qr[e.type]);!(t=r()).done;){var n=t.value;"key"!==n&&e.skipKey(n)}}(e)},"AssignmentExpression|Declaration|VariableDeclarator":function(e,t){if(!e.isVariableDeclaration()){var r=e.getOuterBindingIdentifiers();for(var n in r)n===t.oldName&&(r[n].name=t.newName)}}},ep=function(){function e(e,t,r){this.newName=r,this.oldName=t,this.binding=e}var t=e.prototype;return t.maybeConvertFromExportDeclaration=function(e){var t=e.parentPath;t.isExportDeclaration()&&(t.isExportDefaultDeclaration()&&!t.get("declaration").node.id||Qc(t))},t.maybeConvertFromClassFunctionDeclaration=function(e){},t.maybeConvertFromClassFunctionExpression=function(e){},t.rename=function(e){var t=this,r=this.binding,n=this.oldName,s=this.newName,a=r.scope,i=r.path.find((function(e){return e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()}));i&&(i.getOuterBindingIdentifiers()[n]===r.identifier&&this.maybeConvertFromExportDeclaration(i));var o=e||a.block;"SwitchStatement"===(null==o?void 0:o.type)?o.cases.forEach((function(e){a.traverse(e,Zc,t)})):a.traverse(o,Zc,this),e||(a.removeOwnBinding(n),a.bindings[s]=r,this.binding.identifier.name=s),i&&(this.maybeConvertFromClassFunctionDeclaration(i),this.maybeConvertFromClassFunctionExpression(i))},e}();var tp={builtin:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{_:!1,$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}},rp=new WeakMap,np=new WeakMap;function sp(){rp=new WeakMap}function ap(){np=new WeakMap}var ip=Object.freeze({__proto__:null,get path(){return rp},get scope(){return np},clear:function(){sp(),ap()},clearPath:sp,clearScope:ap});function op(e,t){switch(null==e?void 0:e.type){default:if(Nt(e))if((ue(e)||ce(e)||fe(e))&&e.source)op(e.source,t);else if((ce(e)||fe(e))&&e.specifiers&&e.specifiers.length)for(var r,n=f(e.specifiers);!(r=n()).done;){op(r.value,t)}else(le(e)||ce(e))&&e.declaration&&op(e.declaration,t);else _t(e)?op(e.local,t):Pt(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":op(e.object,t),op(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":op(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(var s,a=f(e.properties);!(s=a()).done;){op(s.value,t)}break;case"SpreadElement":case"RestElement":op(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":op(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),op(e.argument,t);break;case"AwaitExpression":t.push("await"),op(e.argument,t);break;case"AssignmentExpression":op(e.left,t);break;case"VariableDeclarator":op(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":op(e.id,t);break;case"ParenthesizedExpression":op(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":op(e.argument,t);break;case"MetaProperty":op(e.meta,t),op(e.property,t);break;case"JSXElement":op(e.openingElement,t);break;case"JSXOpeningElement":t.push(e.name);break;case"JSXFragment":op(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":op(e.namespace,t),op(e.name,t)}}var up={For:function(e){for(var t,r=f(Fr);!(t=r()).done;){var n=t.value,s=e.get(n);if(s.isVar())(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerBinding("var",s)}},Declaration:function(e){e.isBlockScoped()||(e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e))},ReferencedIdentifier:function(e,t){t.references.push(e)},ForXStatement:function(e,t){var r=e.get("left");(r.isPattern()||r.isIdentifier())&&t.constantViolations.push(e)},ExportDeclaration:{exit:function(e){var t=e.node,r=e.scope;if(!ue(t)){var n=t.declaration;if(oe(n)||P(n)){var s=n.id;if(!s)return;var a=r.getBinding(s.name);a&&a.reference(e)}else if(Z(n))for(var i,o=f(n.declarations);!(i=o()).done;)for(var u=i.value,l=0,c=Object.keys(cc(u));l<c.length;l++){var p=c[l],d=r.getBinding(p);d&&d.reference(e)}}}},LabeledStatement:function(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression:function(e,t){t.assignments.push(e)},UpdateExpression:function(e,t){t.constantViolations.push(e)},UnaryExpression:function(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped:function(e){var t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){var r=e.node.id.name;e.scope.bindings[r]=e.scope.parent.getBinding(r)}},CatchClause:function(e){e.scope.registerBinding("let",e)},Function:function(e){e.isFunctionExpression()&&e.has("id")&&!e.get("id").node[Kr]&&e.scope.registerBinding("local",e.get("id"),e);for(var t,r=f(e.get("params"));!(t=r()).done;){var n=t.value;e.scope.registerBinding("param",n)}},ClassExpression:function(e){e.has("id")&&!e.get("id").node[Kr]&&e.scope.registerBinding("local",e)}},lp=0,cp=function(){function e(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.labels=void 0,this.inited=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;var t=e.node,r=np.get(t);if((null==r?void 0:r.path)===e)return r;np.set(t,this),this.uid=lp++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1}var t=e.prototype;return t.traverse=function(e,t,r){gv(e,t,this,r,this.path)},t.generateDeclaredUidIdentifier=function(e){var t=this.generateUidIdentifier(e);return this.push({id:t}),Ju(t)},t.generateUidIdentifier=function(e){return Ds(this.generateUid(e))},t.generateUid=function(e){var t;void 0===e&&(e="temp"),e=ec(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");var r=1;do{t=this._generateUid(e,r),r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));var n=this.getProgramParent();return n.references[t]=!0,n.uids[t]=!0,t},t._generateUid=function(e,t){var r=e;return t>1&&(r+=t),"_"+r},t.generateUidBasedOnNode=function(e,t){var r=[];op(e,r);var n=r.join("$");return n=n.replace(/^_/,"")||t||"ref",this.generateUid(n.slice(0,20))},t.generateUidIdentifierBasedOnNode=function(e,t){return Ds(this.generateUidBasedOnNode(e,t))},t.isStatic=function(e){if(J(e)||Ee(e))return!0;if(F(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1},t.maybeGenerateMemoised=function(e,t){if(this.isStatic(e))return null;var r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),Ju(r))},t.checkBlockScopedCollisions=function(e,t,r,n){if("param"!==t&&("local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&("let"===t||"const"===t))))throw this.hub.buildError(n,'Duplicate declaration "'+r+'"',TypeError)},t.rename=function(e,t,r){var n=this.getBinding(e);if(n)return t=t||this.generateUidIdentifier(e).name,new ep(n,e,t).rename(r)},t._renameFromMap=function(e,t,r,n){e[t]&&(e[r]=n,e[t]=null)},t.dump=function(){var e="-".repeat(60);console.log(e);var t=this;do{console.log("#",t.block.type);for(var r=0,n=Object.keys(t.bindings);r<n.length;r++){var s=n[r],a=t.bindings[s];console.log(" -",s,{constant:a.constant,references:a.references,violations:a.constantViolations.length,kind:a.kind})}}while(t=t.parent);console.log(e)},t.toArray=function(e,t,r){if(F(e)){var n=this.getBinding(e.name);if(null!=n&&n.constant&&n.path.isGenericType("Array"))return e}if(m(e))return e;if(F(e,{name:"arguments"}))return ls(Fs(Fs(Fs(Ds("Array"),Ds("prototype")),Ds("slice")),Ds("call")),[e]);var s,a=[e];return!0===t?s="toConsumableArray":t?(a.push(Ss(t)),s="slicedToArray"):s="toArray",r&&(a.unshift(this.hub.addHelper(s)),s="maybeArrayLike"),ls(this.hub.addHelper(s),a)},t.hasLabel=function(e){return!!this.getLabel(e)},t.getLabel=function(e){return this.labels.get(e)},t.registerLabel=function(e){this.labels.set(e.node.label.name,e)},t.registerDeclaration=function(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration())for(var t,r=f(e.get("declarations"));!(t=r()).done;){var n=t.value;this.registerBinding(e.node.kind,n)}else if(e.isClassDeclaration())this.registerBinding("let",e);else if(e.isImportDeclaration())for(var s,a=f(e.get("specifiers"));!(s=a()).done;){var i=s.value;this.registerBinding("module",i)}else if(e.isExportDeclaration()){var o=e.get("declaration");(o.isClassDeclaration()||o.isFunctionDeclaration()||o.isVariableDeclaration())&&this.registerDeclaration(o)}else this.registerBinding("unknown",e)},t.buildUndefinedNode=function(){return qs("void",Ss(0),!0)},t.registerConstantViolation=function(e){for(var t=e.getBindingIdentifiers(),r=0,n=Object.keys(t);r<n.length;r++){var s=n[r],a=this.getBinding(s);a&&a.reassign(e)}},t.registerBinding=function(e,t,r){if(void 0===r&&(r=t),!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration())for(var n,s=f(t.get("declarations"));!(n=s()).done;){var a=n.value;this.registerBinding(e,a)}else for(var i=this.getProgramParent(),o=t.getOuterBindingIdentifiers(!0),u=0,l=Object.keys(o);u<l.length;u++){var c=l[u];i.references[c]=!0;for(var p,d=f(o[c]);!(p=d()).done;){var h=p.value,m=this.getOwnBinding(c);if(m){if(m.identifier===h)continue;this.checkBlockScopedCollisions(m,e,c,h)}m?this.registerConstantViolation(r):this.bindings[c]=new Yc({identifier:h,scope:this,path:r,kind:e})}}},t.addGlobal=function(e){this.globals[e.name]=e},t.hasUid=function(e){var t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1},t.hasGlobal=function(e){var t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1},t.hasReference=function(e){return!!this.getProgramParent().references[e]},t.isPure=function(e,t){if(F(e)){var r=this.getBinding(e.name);return!!r&&(!t||r.constant)}if(Rt(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&this.isPure(e.body,t);if(ae(e)){for(var n,s=f(e.body);!(n=s()).done;){var a=n.value;if(!this.isPure(a,t))return!1}return!0}if(bt(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(m(e)){for(var i,o=f(e.elements);!(i=o()).done;){var u=i.value;if(!this.isPure(u,t))return!1}return!0}if(V(e)){for(var l,c=f(e.properties);!(l=c()).done;){var p=l.value;if(!this.isPure(p,t))return!1}return!0}if(It(e))return!(e.computed&&!this.isPure(e.key,t))&&("get"!==e.kind&&"set"!==e.kind);if(Ft(e))return!(e.computed&&!this.isPure(e.key,t))&&this.isPure(e.value,t);if(Q(e))return this.isPure(e.argument,t);if(xe(e))return Gt(e.tag,"String.raw")&&!this.hasBinding("String",!0)&&this.isPure(e.quasi,t);if(De(e)){for(var d,h=f(e.expressions);!(d=h()).done;){var y=d.value;if(!this.isPure(y,t))return!1}return!0}return Tt(e)},t.setData=function(e,t){return this.data[e]=t},t.getData=function(e){var t=this;do{var r=t.data[e];if(null!=r)return r}while(t=t.parent)},t.removeData=function(e){var t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)},t.init=function(){this.inited||(this.inited=!0,this.crawl())},t.crawl=function(){var e=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);var t=this.getProgramParent();if(!t.crawling){var r={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==e.type&&up._exploded){for(var n,s=f(up.enter);!(n=s()).done;){(0,n.value)(e,r)}var a=up[e.type];if(a)for(var i,o=f(a.enter);!(i=o()).done;){(0,i.value)(e,r)}}e.traverse(up,r),this.crawling=!1;for(var u,l=f(r.assignments);!(u=l()).done;){for(var c=u.value,p=c.getBindingIdentifiers(),d=0,h=Object.keys(p);d<h.length;d++){var m=h[d];c.scope.getBinding(m)||t.addGlobal(p[m])}c.scope.registerConstantViolation(c)}for(var y,g=f(r.references);!(y=g()).done;){var v=y.value,b=v.scope.getBinding(v.node.name);b?b.reference(v):t.addGlobal(v.node)}for(var E,x=f(r.constantViolations);!(E=x()).done;){var D=E.value;D.scope.registerConstantViolation(D)}}},t.push=function(e){var t=this.path;t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path),(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));var r=e.unique,n=e.kind||"var",s=null==e._blockHoist?2:e._blockHoist,a="declaration:"+n+":"+s,i=!r&&t.getData(a);if(!i){var o=Ks(n,[]);o._blockHoist=s,i=l(t.unshiftContainer("body",[o]),1)[0],r||t.setData(a,i)}var u=zs(e.id,e.init);i.node.declarations.push(u),this.registerBinding(n,i.get("declarations").pop())},t.getProgramParent=function(){var e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("Couldn't find a Program")},t.getFunctionParent=function(){var e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);return null},t.getBlockParent=function(){var e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")},t.getAllBindings=function(){var e=Object.create(null),t=this;do{for(var r=0,n=Object.keys(t.bindings);r<n.length;r++){var s=n[r];s in e==!1&&(e[s]=t.bindings[s])}t=t.parent}while(t);return e},t.getAllBindingsOfKind=function(){for(var e=Object.create(null),t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(var s=0,a=r;s<a.length;s++){var i=a[s],o=this;do{for(var u=0,l=Object.keys(o.bindings);u<l.length;u++){var c=l[u],p=o.bindings[c];p.kind===i&&(e[c]=p)}o=o.parent}while(o)}return e},t.bindingIdentifierEquals=function(e,t){return this.getBindingIdentifier(e)===t},t.getBinding=function(e){var t,r=this;do{var n,s=r.getOwnBinding(e);if(s)if(null==(n=t)||!n.isPattern()||"param"===s.kind)return s;t=r.path}while(r=r.parent)},t.getOwnBinding=function(e){return this.bindings[e]},t.getBindingIdentifier=function(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier},t.getOwnBindingIdentifier=function(e){var t=this.bindings[e];return null==t?void 0:t.identifier},t.hasOwnBinding=function(e){return!!this.getOwnBinding(e)},t.hasBinding=function(t,r){return!!t&&(!!this.hasOwnBinding(t)||(!!this.parentHasBinding(t,r)||(!!this.hasUid(t)||(!(r||!e.globals.includes(t))||!(r||!e.contextVariables.includes(t))))))},t.parentHasBinding=function(e,t){var r;return null==(r=this.parent)?void 0:r.hasBinding(e,t)},t.moveBindingTo=function(e,t){var r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r)},t.removeOwnBinding=function(e){delete this.bindings[e]},t.removeBinding=function(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);var r=this;do{r.uids[e]&&(r.uids[e]=!1)}while(r=r.parent)},n(e,[{key:"parent",get:function(){var e,t,r=this.path;do{var n="key"===r.key;r=r.parentPath,n&&r.isMethod()&&(r=r.parentPath),r&&r.isScope()&&(t=r)}while(r&&!t);return null==(e=t)?void 0:e.scope}},{key:"parentBlock",get:function(){return this.path.parent}},{key:"hub",get:function(){return this.path.hub}}]),e}();cp.globals=Object.keys(tp.builtin),cp.contextVariables=["arguments","undefined","Infinity","NaN"];var pp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),dp=function(e){if(0<=e&&e<pp.length)return pp[e];throw new TypeError("Must be between 0 and 63: "+e)},fp=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var hp=function(e){var t,r="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=dp(t)}while(n>0);return r},mp=function(e,t,r){var n,s,a,i,o=e.length,u=0,l=0;do{if(t>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(s=fp(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&s),u+=(s&=31)<<l,l+=5}while(n);r.value=(i=(a=u)>>1,1==(1&a)?-i:i),r.rest=t},yp=zt((function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function s(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(e){var r=e,n=s(e);if(n){if(!n.path)return e;r=n.path}for(var i,o=t.isAbsolute(r),u=r.split(/\/+/),l=0,c=u.length-1;c>=0;c--)"."===(i=u[c])?u.splice(c,1):".."===i?l++:l>0&&(""===i?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return""===(r=u.join("/"))&&(r=o?"/":"."),n?(n.path=r,a(n)):r}t.urlParse=s,t.urlGenerate=a,t.normalize=i,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=s(t),o=s(e);if(o&&(e=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),a(r);if(r||t.match(n))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var u="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=u,a(o)):u},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var o=!("__proto__"in Object.create(null));function u(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function c(e,t){return e===t?0:e>t?1:-1}t.toSetString=o?u:function(e){return l(e)?"$"+e:e},t.fromSetString=o?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=e.source-t.source;return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=e.source-t.source)||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=c(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:c(e.name,t.name)}}),"/$$rollup_base$$/packages/babel-generator/node_modules/source-map/lib"),gp=Object.prototype.hasOwnProperty,vp="undefined"!=typeof Map;function bp(){this._array=[],this._set=vp?new Map:Object.create(null)}bp.fromArray=function(e,t){for(var r=new bp,n=0,s=e.length;n<s;n++)r.add(e[n],t);return r},bp.prototype.size=function(){return vp?this._set.size:Object.getOwnPropertyNames(this._set).length},bp.prototype.add=function(e,t){var r=vp?e:yp.toSetString(e),n=vp?this.has(e):gp.call(this._set,r),s=this._array.length;n&&!t||this._array.push(e),n||(vp?this._set.set(e,s):this._set[r]=s)},bp.prototype.has=function(e){if(vp)return this._set.has(e);var t=yp.toSetString(e);return gp.call(this._set,t)},bp.prototype.indexOf=function(e){if(vp){var t=this._set.get(e);if(t>=0)return t}else{var r=yp.toSetString(e);if(gp.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},bp.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},bp.prototype.toArray=function(){return this._array.slice()};var Ep={ArraySet:bp};function xp(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}xp.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},xp.prototype.add=function(e){var t,r,n,s,a,i;t=this._last,r=e,n=t.generatedLine,s=r.generatedLine,a=t.generatedColumn,i=r.generatedColumn,s>n||s==n&&i>=a||yp.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},xp.prototype.toArray=function(){return this._sorted||(this._array.sort(yp.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Dp=Ep.ArraySet,Ap={MappingList:xp}.MappingList;function wp(e){e||(e={}),this._file=yp.getArg(e,"file",null),this._sourceRoot=yp.getArg(e,"sourceRoot",null),this._skipValidation=yp.getArg(e,"skipValidation",!1),this._sources=new Dp,this._names=new Dp,this._mappings=new Ap,this._sourcesContents=null}wp.prototype._version=3,wp.fromSourceMap=function(e){var t=e.sourceRoot,r=new wp({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=yp.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)})),r},wp.prototype.addMapping=function(e){var t=yp.getArg(e,"generated"),r=yp.getArg(e,"original",null),n=yp.getArg(e,"source",null),s=yp.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,s),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=s&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:s})},wp.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=yp.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[yp.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[yp.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},wp.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var s=this._sourceRoot;null!=s&&(n=yp.relative(s,n));var a=new Dp,i=new Dp;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=r&&(t.source=yp.join(r,t.source)),null!=s&&(t.source=yp.relative(s,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var u=t.source;null==u||a.has(u)||a.add(u);var l=t.name;null==l||i.has(l)||i.add(l)}),this),this._sources=a,this._names=i,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=yp.join(r,t)),null!=s&&(t=yp.relative(s,t)),this.setSourceContent(t,n))}),this)},wp.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},wp.prototype._serializeMappings=function(){for(var e,t,r,n,s=0,a=1,i=0,o=0,u=0,l=0,c="",p=this._mappings.toArray(),d=0,f=p.length;d<f;d++){if(e="",(t=p[d]).generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=";",a++;else if(d>0){if(!yp.compareByGeneratedPositionsInflated(t,p[d-1]))continue;e+=","}e+=hp(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=hp(n-l),l=n,e+=hp(t.originalLine-1-o),o=t.originalLine-1,e+=hp(t.originalColumn-i),i=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=hp(r-u),u=r)),c+=e}return c},wp.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=yp.relative(t,e));var r=yp.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},wp.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},wp.prototype.toString=function(){return JSON.stringify(this.toJSON())};var Cp={SourceMapGenerator:wp},Sp=zt((function(e,t){function r(e,n,s,a,i,o){var u=Math.floor((n-e)/2)+e,l=i(s,a[u],!0);return 0===l?u:l>0?n-u>1?r(u,n,s,a,i,o):o==t.LEAST_UPPER_BOUND?n<a.length?n:-1:u:u-e>1?r(e,u,s,a,i,o):o==t.LEAST_UPPER_BOUND?u:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,s,a){if(0===n.length)return-1;var i=r(-1,n.length,e,n,s,a||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===s(n[i],n[i-1],!0);)--i;return i}}),"/$$rollup_base$$/packages/babel-generator/node_modules/source-map/lib");function Tp(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function jp(e,t,r,n){if(r<n){var s=r-1;Tp(e,(u=r,l=n,Math.round(u+Math.random()*(l-u))),n);for(var a=e[n],i=r;i<n;i++)t(e[i],a)<=0&&Tp(e,s+=1,i);Tp(e,s+1,i);var o=s+1;jp(e,t,r,o-1),jp(e,t,o+1,n)}var u,l}var Pp=Ep.ArraySet,Ip=function(e,t){jp(e,t,0,e.length-1)};function Fp(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new Bp(t):new Op(t)}Fp.fromSourceMap=function(e){return Op.fromSourceMap(e)},Fp.prototype._version=3,Fp.prototype.__generatedMappings=null,Object.defineProperty(Fp.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),Fp.prototype.__originalMappings=null,Object.defineProperty(Fp.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),Fp.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},Fp.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},Fp.GENERATED_ORDER=1,Fp.ORIGINAL_ORDER=2,Fp.GREATEST_LOWER_BOUND=1,Fp.LEAST_UPPER_BOUND=2,Fp.prototype.eachMapping=function(e,t,r){var n,s=t||null;switch(r||Fp.GENERATED_ORDER){case Fp.GENERATED_ORDER:n=this._generatedMappings;break;case Fp.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=yp.join(a,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,s)},Fp.prototype.allGeneratedPositionsFor=function(e){var t=yp.getArg(e,"line"),r={source:yp.getArg(e,"source"),originalLine:t,originalColumn:yp.getArg(e,"column",0)};if(null!=this.sourceRoot&&(r.source=yp.relative(this.sourceRoot,r.source)),!this._sources.has(r.source))return[];r.source=this._sources.indexOf(r.source);var n=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",yp.compareByOriginalPositions,Sp.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===e.column)for(var i=a.originalLine;a&&a.originalLine===i;)n.push({line:yp.getArg(a,"generatedLine",null),column:yp.getArg(a,"generatedColumn",null),lastColumn:yp.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var o=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==o;)n.push({line:yp.getArg(a,"generatedLine",null),column:yp.getArg(a,"generatedColumn",null),lastColumn:yp.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return n};var kp=Fp;function Op(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=yp.getArg(t,"version"),n=yp.getArg(t,"sources"),s=yp.getArg(t,"names",[]),a=yp.getArg(t,"sourceRoot",null),i=yp.getArg(t,"sourcesContent",null),o=yp.getArg(t,"mappings"),u=yp.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(yp.normalize).map((function(e){return a&&yp.isAbsolute(a)&&yp.isAbsolute(e)?yp.relative(a,e):e})),this._names=Pp.fromArray(s.map(String),!0),this._sources=Pp.fromArray(n,!0),this.sourceRoot=a,this.sourcesContent=i,this._mappings=o,this.file=u}function Rp(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Op.prototype=Object.create(Fp.prototype),Op.prototype.consumer=Fp,Op.fromSourceMap=function(e){var t=Object.create(Op.prototype),r=t._names=Pp.fromArray(e._names.toArray(),!0),n=t._sources=Pp.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var s=e._mappings.toArray().slice(),a=t.__generatedMappings=[],i=t.__originalMappings=[],o=0,u=s.length;o<u;o++){var l=s[o],c=new Rp;c.generatedLine=l.generatedLine,c.generatedColumn=l.generatedColumn,l.source&&(c.source=n.indexOf(l.source),c.originalLine=l.originalLine,c.originalColumn=l.originalColumn,l.name&&(c.name=r.indexOf(l.name)),i.push(c)),a.push(c)}return Ip(t.__originalMappings,yp.compareByOriginalPositions),t},Op.prototype._version=3,Object.defineProperty(Op.prototype,"sources",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?yp.join(this.sourceRoot,e):e}),this)}}),Op.prototype._parseMappings=function(e,t){for(var r,n,s,a,i,o=1,u=0,l=0,c=0,p=0,d=0,f=e.length,h=0,m={},y={},g=[],v=[];h<f;)if(";"===e.charAt(h))o++,h++,u=0;else if(","===e.charAt(h))h++;else{for((r=new Rp).generatedLine=o,a=h;a<f&&!this._charIsMappingSeparator(e,a);a++);if(s=m[n=e.slice(h,a)])h+=n.length;else{for(s=[];h<a;)mp(e,h,y),i=y.value,h=y.rest,s.push(i);if(2===s.length)throw new Error("Found a source, but no line and column");if(3===s.length)throw new Error("Found a source and line, but no column");m[n]=s}r.generatedColumn=u+s[0],u=r.generatedColumn,s.length>1&&(r.source=p+s[1],p+=s[1],r.originalLine=l+s[2],l=r.originalLine,r.originalLine+=1,r.originalColumn=c+s[3],c=r.originalColumn,s.length>4&&(r.name=d+s[4],d+=s[4])),v.push(r),"number"==typeof r.originalLine&&g.push(r)}Ip(v,yp.compareByGeneratedPositionsDeflated),this.__generatedMappings=v,Ip(g,yp.compareByOriginalPositions),this.__originalMappings=g},Op.prototype._findMapping=function(e,t,r,n,s,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return Sp.search(e,t,s,a)},Op.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},Op.prototype.originalPositionFor=function(e){var t={generatedLine:yp.getArg(e,"line"),generatedColumn:yp.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",yp.compareByGeneratedPositionsDeflated,yp.getArg(e,"bias",Fp.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var s=yp.getArg(n,"source",null);null!==s&&(s=this._sources.at(s),null!=this.sourceRoot&&(s=yp.join(this.sourceRoot,s)));var a=yp.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:s,line:yp.getArg(n,"originalLine",null),column:yp.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},Op.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},Op.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=yp.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=yp.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Op.prototype.generatedPositionFor=function(e){var t=yp.getArg(e,"source");if(null!=this.sourceRoot&&(t=yp.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:yp.getArg(e,"line"),originalColumn:yp.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",yp.compareByOriginalPositions,yp.getArg(e,"bias",Fp.GREATEST_LOWER_BOUND));if(n>=0){var s=this._originalMappings[n];if(s.source===r.source)return{line:yp.getArg(s,"generatedLine",null),column:yp.getArg(s,"generatedColumn",null),lastColumn:yp.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var Np=Op;function Bp(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=yp.getArg(t,"version"),n=yp.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new Pp,this._names=new Pp;var s={line:-1,column:0};this._sections=n.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=yp.getArg(e,"offset"),r=yp.getArg(t,"line"),n=yp.getArg(t,"column");if(r<s.line||r===s.line&&n<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=t,{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new Fp(yp.getArg(e,"map"))}}))}Bp.prototype=Object.create(Fp.prototype),Bp.prototype.constructor=Fp,Bp.prototype._version=3,Object.defineProperty(Bp.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),Bp.prototype.originalPositionFor=function(e){var t={generatedLine:yp.getArg(e,"line"),generatedColumn:yp.getArg(e,"column")},r=Sp.search(t,this._sections,(function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r||e.generatedColumn-t.generatedOffset.generatedColumn})),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},Bp.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},Bp.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Bp.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer.sources.indexOf(yp.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},Bp.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],s=n.consumer._generatedMappings,a=0;a<s.length;a++){var i=s[a],o=n.consumer._sources.at(i.source);null!==n.consumer.sourceRoot&&(o=yp.join(n.consumer.sourceRoot,o)),this._sources.add(o),o=this._sources.indexOf(o);var u=n.consumer._names.at(i.name);this._names.add(u),u=this._names.indexOf(u);var l={source:o,generatedLine:i.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:i.generatedColumn+(n.generatedOffset.generatedLine===i.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:i.originalLine,originalColumn:i.originalColumn,name:u};this.__generatedMappings.push(l),"number"==typeof l.originalLine&&this.__originalMappings.push(l)}Ip(this.__generatedMappings,yp.compareByGeneratedPositionsDeflated),Ip(this.__originalMappings,yp.compareByOriginalPositions)};var _p={SourceMapConsumer:kp,BasicSourceMapConsumer:Np,IndexedSourceMapConsumer:Bp},Lp=Cp.SourceMapGenerator,Mp=/(\r?\n)/,Up="$$$isSourceNode$$$";function Gp(e,t,r,n,s){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==s?null:s,this[Up]=!0,null!=n&&this.add(n)}Gp.fromStringWithSourceMap=function(e,t,r){var n=new Gp,s=e.split(Mp),a=0,i=function(){return e()+(e()||"");function e(){return a<s.length?s[a++]:void 0}},o=1,u=0,l=null;return t.eachMapping((function(e){if(null!==l){if(!(o<e.generatedLine)){var t=(r=s[a]).substr(0,e.generatedColumn-u);return s[a]=r.substr(e.generatedColumn-u),u=e.generatedColumn,c(l,t),void(l=e)}c(l,i()),o++,u=0}for(;o<e.generatedLine;)n.add(i()),o++;if(u<e.generatedColumn){var r=s[a];n.add(r.substr(0,e.generatedColumn)),s[a]=r.substr(e.generatedColumn),u=e.generatedColumn}l=e}),this),a<s.length&&(l&&c(l,i()),n.add(s.splice(a).join(""))),t.sources.forEach((function(e){var s=t.sourceContentFor(e);null!=s&&(null!=r&&(e=yp.join(r,e)),n.setSourceContent(e,s))})),n;function c(e,t){if(null===e||void 0===e.source)n.add(t);else{var s=r?yp.join(r,e.source):e.source;n.add(new Gp(e.originalLine,e.originalColumn,s,t,e.name))}}},Gp.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[Up]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},Gp.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[Up]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},Gp.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[Up]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},Gp.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},Gp.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[Up]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},Gp.prototype.setSourceContent=function(e,t){this.sourceContents[yp.toSetString(e)]=t},Gp.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][Up]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(yp.fromSetString(n[t]),this.sourceContents[n[t]])},Gp.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},Gp.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new Lp(e),n=!1,s=null,a=null,i=null,o=null;return this.walk((function(e,u){t.code+=e,null!==u.source&&null!==u.line&&null!==u.column?(s===u.source&&a===u.line&&i===u.column&&o===u.name||r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name}),s=u.source,a=u.line,i=u.column,o=u.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),s=null,n=!1);for(var l=0,c=e.length;l<c;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===c?(s=null,n=!1):n&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}};var Vp={SourceMapGenerator:Cp.SourceMapGenerator,SourceMapConsumer:_p.SourceMapConsumer,SourceNode:{SourceNode:Gp}.SourceNode},Wp=function(){function e(e,t){this._cachedMap=void 0,this._code=void 0,this._opts=void 0,this._rawMappings=void 0,this._lastGenLine=void 0,this._lastSourceLine=void 0,this._lastSourceColumn=void 0,this._cachedMap=null,this._code=t,this._opts=e,this._rawMappings=[]}var t=e.prototype;return t.get=function(){if(!this._cachedMap){var e=this._cachedMap=new Vp.SourceMapGenerator({sourceRoot:this._opts.sourceRoot}),t=this._code;"string"==typeof t?e.setSourceContent(this._opts.sourceFileName.replace(/\\/g,"/"),t):"object"==typeof t&&Object.keys(t).forEach((function(r){e.setSourceContent(r.replace(/\\/g,"/"),t[r])})),this._rawMappings.forEach((function(t){return e.addMapping(t)}),e)}return this._cachedMap.toJSON()},t.getRawMappings=function(){return this._rawMappings.slice()},t.mark=function(e,t,r,n,s,a,i){this._lastGenLine!==e&&null===r||(i||this._lastGenLine!==e||this._lastSourceLine!==r||this._lastSourceColumn!==n)&&(this._cachedMap=null,this._lastGenLine=e,this._lastSourceLine=r,this._lastSourceColumn=n,this._rawMappings.push({name:s||void 0,generated:{line:e,column:t},source:null==r?void 0:(a||this._opts.sourceFileName).replace(/\\/g,"/"),original:null==r?void 0:{line:r,column:n}}))},e}(),Hp=/^[ \t]+$/,Xp=function(){function e(e){this._map=null,this._buf=[],this._last="",this._queue=[],this._position={line:1,column:0},this._sourcePosition={identifierName:null,line:null,column:null,filename:null},this._disallowedPop=null,this._map=e}var t=e.prototype;return t.get=function(){this._flush();var e=this._map,t={code:this._buf.join("").trimRight(),map:null,rawMappings:null==e?void 0:e.getRawMappings()};return e&&Object.defineProperty(t,"map",{configurable:!0,enumerable:!0,get:function(){return this.map=e.get()},set:function(e){Object.defineProperty(this,"map",{value:e,writable:!0})}}),t},t.append=function(e){this._flush();var t=this._sourcePosition,r=t.line,n=t.column,s=t.filename,a=t.identifierName,i=t.force;this._append(e,r,n,a,s,i)},t.queue=function(e){if("\n"===e)for(;this._queue.length>0&&Hp.test(this._queue[0][0]);)this._queue.shift();var t=this._sourcePosition,r=t.line,n=t.column,s=t.filename,a=t.identifierName,i=t.force;this._queue.unshift([e,r,n,a,s,i])},t._flush=function(){for(var e;e=this._queue.pop();)this._append.apply(this,c(e))},t._append=function(e,t,r,n,s,a){this._buf.push(e),this._last=e[e.length-1];var i=e.indexOf("\n"),o=0;for(0!==i&&this._mark(t,r,n,s,a);-1!==i;)this._position.line++,this._position.column=0,(o=i+1)<e.length&&this._mark(++t,0,n,s,a),i=e.indexOf("\n",o);this._position.column+=e.length-o},t._mark=function(e,t,r,n,s){var a;null==(a=this._map)||a.mark(this._position.line,this._position.column,e,t,r,n,s)},t.removeTrailingNewline=function(){this._queue.length>0&&"\n"===this._queue[0][0]&&this._queue.shift()},t.removeLastSemicolon=function(){this._queue.length>0&&";"===this._queue[0][0]&&this._queue.shift()},t.endsWith=function(e){if(1===e.length){var t;if(this._queue.length>0){var r=this._queue[0][0];t=r[r.length-1]}else t=this._last;return t===e}var n=this._last+this._queue.reduce((function(e,t){return t[0]+e}),"");return e.length<=n.length&&n.slice(-e.length)===e},t.hasContent=function(){return this._queue.length>0||!!this._last},t.exactSource=function(e,t){this.source("start",e,!0),t(),this.source("end",e),this._disallowPop("start",e)},t.source=function(e,t,r){e&&!t||this._normalizePosition(e,t,this._sourcePosition,r)},t.withSource=function(e,t,r){if(!this._map)return r();var n=this._sourcePosition.line,s=this._sourcePosition.column,a=this._sourcePosition.filename,i=this._sourcePosition.identifierName;this.source(e,t),r(),this._sourcePosition.force&&this._sourcePosition.line===n&&this._sourcePosition.column===s&&this._sourcePosition.filename===a||this._disallowedPop&&this._disallowedPop.line===n&&this._disallowedPop.column===s&&this._disallowedPop.filename===a||(this._sourcePosition.line=n,this._sourcePosition.column=s,this._sourcePosition.filename=a,this._sourcePosition.identifierName=i,this._sourcePosition.force=!1,this._disallowedPop=null)},t._disallowPop=function(e,t){e&&!t||(this._disallowedPop=this._normalizePosition(e,t))},t._normalizePosition=function(e,t,r,n){var s=t?t[e]:null;void 0===r&&(r={identifierName:null,line:null,column:null,filename:null,force:!1});var a=r.line,i=r.column,o=r.filename;return r.identifierName="start"===e&&(null==t?void 0:t.identifierName)||null,r.line=null==s?void 0:s.line,r.column=null==s?void 0:s.column,r.filename=null==t?void 0:t.filename,(n||r.line!==a||r.column!==i||r.filename!==o)&&(r.force=n),r},t.getCurrentColumn=function(){var e=this._queue.reduce((function(e,t){return t[0]+e}),""),t=e.lastIndexOf("\n");return-1===t?this._position.column+e.length:e.length-1-t},t.getCurrentLine=function(){for(var e=this._queue.reduce((function(e,t){return t[0]+e}),""),t=0,r=0;r<e.length;r++)"\n"===e[r]&&t++;return this._position.line+t},e}();function qp(e,t){return void 0===t&&(t={}),M(e)||je(e)?(qp(e.object,t),e.computed&&qp(e.property,t)):bt(e)||y(e)?(qp(e.left,t),qp(e.right,t)):E(e)||Pe(e)?(t.hasCall=!0,qp(e.callee,t)):St(e)?t.hasFunction=!0:F(e)&&(t.hasHelper=t.hasHelper||$p(e.callee)),t}function $p(e){return M(e)?$p(e.object)||$p(e.property):F(e)?"require"===e.name||"_"===e.name[0]:E(e)?$p(e.callee):!(!bt(e)&&!y(e))&&(F(e.left)&&$p(e.left)||$p(e.right))}function Kp(e){return Pt(e)||V(e)||m(e)||F(e)||M(e)}var zp={AssignmentExpression:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t=qp(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return{before:t.hasFunction,after:!0}})),SwitchCase:function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return{before:!!e.consequent.length||t.cases[0]===e,after:!e.consequent.length&&t.cases[t.cases.length-1]===e}})),LogicalExpression:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){if(St(e.left)||St(e.right))return{after:!0}})),Literal:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){if(R(e)&&"use strict"===e.value)return{after:!0}})),CallExpression:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){if(St(e.callee)||$p(e))return{before:!0,after:!0}})),OptionalCallExpression:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){if(St(e.callee))return{before:!0,after:!0}})),VariableDeclaration:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){for(var t=0;t<e.declarations.length;t++){var r=e.declarations[t],n=$p(r.id)&&!Kp(r.init);if(!n){var s=qp(r.init);n=$p(r.init)&&s.hasCall||s.hasFunction}if(n)return{before:!0,after:!0}}})),IfStatement:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){if(v(e.consequent))return{before:!0,after:!0}}))};zp.ObjectProperty=zp.ObjectTypeProperty=zp.ObjectMethod=function(e,t){if(t.properties[0]===e)return{before:!0}},zp.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&(null==(r=t.properties)||!r.length))return{before:!0}},zp.ObjectTypeIndexer=function(e,t){var r,n;if(!(t.indexers[0]!==e||null!=(r=t.properties)&&r.length||null!=(n=t.callProperties)&&n.length))return{before:!0}},zp.ObjectTypeInternalSlot=function(e,t){var r,n,s;if(!(t.internalSlots[0]!==e||null!=(r=t.properties)&&r.length||null!=(n=t.callProperties)&&n.length||null!=(s=t.indexers)&&s.length))return{before:!0}};var Jp={VariableDeclaration:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return e.declarations.map((function(e){return e.init}))})),ArrayExpression:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return e.elements})),ObjectExpression:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return e.properties}))};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function(e){var t=l(e,2),r=t[0],n=t[1];"boolean"==typeof n&&(n={after:n,before:n}),[r].concat(en[r]||[]).forEach((function(e){zp[e]=function(){return n}}))}));var Yp={"||":0,"??":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10},Qp=function(e,t){return(oe(t)||ie(t))&&t.superClass===e},Zp=function(e,t){return(M(t)||je(t))&&t.object===e||(E(t)||Pe(t)||U(t))&&t.callee===e||xe(t)&&t.tag===e||yt(t)};function ed(e,t){return Fe(t)||Le(t)||Ne(t)||We(t)}function td(e,t){return lt(t)||ct(t)||ft(t)||dt(t)||pt(t)}function rd(e,t){return bt(t)||kt(t)||Zp(e,t)||we(t)&&Ae(e)||D(t)&&e===t.test||Qp(e,t)}function nd(e,t){return Zp(e,t)||g(t,{operator:"**",left:e})||Qp(e,t)}function sd(e,t){return!!(kt(t)||bt(t)||D(t,{test:e})||we(t)||mt(t)||ht(t))||nd(e,t)}function ad(e,t){return E(t,{callee:e})||M(t,{object:e})}function id(e,t){for(var r=t.expressionStatement,n=void 0!==r&&r,s=t.arrowBody,a=void 0!==s&&s,i=t.exportDefault,o=void 0!==i&&i,u=t.forHead,l=void 0!==u&&u,c=t.forInHead,p=void 0!==c&&c,d=t.forOfHead,f=void 0!==d&&d,h=e.length-1,m=e[h],g=e[--h];h>=0;){if(n&&C(g,{expression:m})||o&&le(g,{declaration:m})||a&&se(g,{body:m})||l&&j(g,{init:m})||p&&T(g,{left:m})||f&&de(g,{left:m}))return!0;if(!(Zp(m,g)&&!U(g)||$(g)&&g.expressions[0]===m||Dt(g,{test:m})||bt(g,{left:m})||y(g,{left:m})))return!1;m=g,g=e[--h]}return!1}function od(e){var t={};function r(e,r){var n=t[e];t[e]=n?function(e,t,s){var a=n(e,t,s);return null==a?r(e,t,s):a}:r}for(var n=0,s=Object.keys(e);n<s.length;n++){var a=s[n],i=en[a];if(i)for(var o,u=f(i);!(o=u()).done;){r(o.value,e[a])}else r(a,e[a])}return t}var ud=od(Object.freeze({__proto__:null,NullableTypeAnnotation:function(e,t){return Fe(t)},FunctionTypeAnnotation:function(e,t,r){return We(t)||Ne(t)||Fe(t)||Ge(t)&&se(r[r.length-3])},UpdateExpression:function(e,t){return Zp(e,t)||Qp(e,t)},ObjectExpression:function(e,t,r){return id(r,{expressionStatement:!0,arrowBody:!0})},DoExpression:function(e,t,r){return!e.async&&id(r,{expressionStatement:!0})},Binary:function(e,t){if("**"===e.operator&&g(t,{operator:"**"}))return t.left===e;if(Qp(e,t))return!0;if(Zp(e,t)||kt(t)||we(t))return!0;if(bt(t)){var r=t.operator,n=Yp[r],s=e.operator,a=Yp[s];if(n===a&&t.right===e&&!L(t)||n>a)return!0}},UnionTypeAnnotation:ed,IntersectionTypeAnnotation:ed,OptionalIndexedAccessType:function(e,t){return Xe(t,{objectType:e})},TSAsExpression:function(){return!0},TSTypeAssertion:function(){return!0},TSUnionType:td,TSIntersectionType:td,TSInferType:function(e,t){return lt(t)||ct(t)},BinaryExpression:function(e,t){return"in"===e.operator&&(ee(t)||wt(t))},SequenceExpression:function(e,t){return!(j(t)||Y(t)||q(t)||k(t)&&t.test===e||te(t)&&t.test===e||T(t)&&t.right===e||z(t)&&t.discriminant===e||C(t)&&t.expression===e)},YieldExpression:rd,AwaitExpression:rd,ClassExpression:function(e,t,r){return id(r,{expressionStatement:!0,exportDefault:!0})},UnaryLike:nd,FunctionExpression:function(e,t,r){return id(r,{expressionStatement:!0,exportDefault:!0})},ArrowFunctionExpression:function(e,t){return Bt(t)||sd(e,t)},ConditionalExpression:sd,OptionalMemberExpression:ad,OptionalCallExpression:ad,AssignmentExpression:function(e,t){return!!ve(e.left)||sd(e,t)},LogicalExpression:function(e,t){switch(e.operator){case"||":return!!L(t)&&("??"===t.operator||"&&"===t.operator);case"&&":return L(t,{operator:"??"});case"??":return L(t)&&"??"!==t.operator}},Identifier:function(e,t,r){if("let"===e.name){var n=M(t,{object:e,computed:!0})||je(t,{object:e,computed:!0,optional:!1});return id(r,{expressionStatement:n,forHead:n,forInHead:n,forOfHead:!0})}return"async"===e.name&&de(t)&&e===t.left}})),ld=od(zp),cd=od(Jp);function pd(e,t,r,n){var s=e[t.type];return s?s(t,r,n):null}function dd(e){return!!E(e)||M(e)&&dd(e.object)}function fd(e,t,r){if(!e)return 0;C(e)&&(e=e.expression);var n=pd(ld,e,t);if(!n){var s=pd(cd,e,t);if(s)for(var a=0;a<s.length&&!(n=fd(s[a],e,r));a++);}return"object"==typeof n&&null!==n&&n[r]||0}function hd(e,t){return fd(e,t,"before")}function md(e,t){return fd(e,t,"after")}function yd(e,t,r){return!!t&&(!(!U(t)||t.callee!==e||!dd(e))||pd(ud,e,t,r))}function gd(e){return function(t){if(this.word(e),t.delegate&&this.token("*"),t.argument){this.space();var r=this.startTerminatorless();this.print(t.argument,t),this.endTerminatorless(r)}}}var vd=gd("yield"),bd=gd("await");function Ed(e,t){var r=this.inForStatementInitCounter&&"in"===e.operator&&!yd(e,t);r&&this.token("("),this.print(e.left,e),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):this.token(e.operator),this.space(),this.print(e.right,e),r&&this.token(")")}function xd(e){return xt(e.body)?xd(e.body):e}var Dd=function(e){return function(t){this.word("for"),this.space(),"of"===e&&t.await&&(this.word("await"),this.space()),this.token("("),this.print(t.left,t),this.space(),this.word(e),this.space(),this.print(t.right,t),this.token(")"),this.printBlock(t)}},Ad=Dd("in"),wd=Dd("of");function Cd(e,t){return void 0===t&&(t="label"),function(r){this.word(e);var n=r[t];if(n){this.space();var s="label"==t,a=this.startTerminatorless(s);this.print(n,r),this.endTerminatorless(a)}this.semicolon()}}var Sd=Cd("continue"),Td=Cd("return","argument"),jd=Cd("break"),Pd=Cd("throw","argument");function Id(){if(this.token(","),this.newline(),this.endsWith("\n"))for(var e=0;e<4;e++)this.space(!0)}function Fd(){if(this.token(","),this.newline(),this.endsWith("\n"))for(var e=0;e<6;e++)this.space(!0)}function kd(e,t){this.format.decoratorsBeforeExport&&(le(t)||ce(t))||this.printJoin(e.decorators,e),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id,e)),this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body,e)}function Od(e){this._functionHead(e),this.space(),this.print(e.body,e)}function Rd(e){this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.token("*"),this.space(),this.word("from"),this.space(),this.print(e.source,e),this.printAssertions(e),this.semicolon()}function Nd(e){if(e.declaration){var t=e.declaration;this.print(t,e),xt(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());for(var r=e.specifiers.slice(0),n=!1;;){var s=r[0];if(!it(s)&&!Te(s))break;n=!0,this.print(r.shift(),e),r.length&&(this.token(","),this.space())}(r.length||!r.length&&!n)&&(this.token("{"),r.length&&(this.space(),this.printList(r,e),this.space()),this.token("}")),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e),this.printAssertions(e)),this.semicolon()}}for(var Bd=function(e){var t=Xd(e),r=t[0],n=t[1];return 3*(r+n)/4-n},_d=function(e){var t,r,n=Xd(e),s=n[0],a=n[1],i=new Gd(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),o=0,u=a>0?s-4:s;for(r=0;r<u;r+=4)t=Ud[e.charCodeAt(r)]<<18|Ud[e.charCodeAt(r+1)]<<12|Ud[e.charCodeAt(r+2)]<<6|Ud[e.charCodeAt(r+3)],i[o++]=t>>16&255,i[o++]=t>>8&255,i[o++]=255&t;2===a&&(t=Ud[e.charCodeAt(r)]<<2|Ud[e.charCodeAt(r+1)]>>4,i[o++]=255&t);1===a&&(t=Ud[e.charCodeAt(r)]<<10|Ud[e.charCodeAt(r+1)]<<4|Ud[e.charCodeAt(r+2)]>>2,i[o++]=t>>8&255,i[o++]=255&t);return i},Ld=function(e){for(var t,r=e.length,n=r%3,s=[],a=16383,i=0,o=r-n;i<o;i+=a)s.push(qd(e,i,i+a>o?o:i+a));1===n?(t=e[r-1],s.push(Md[t>>2]+Md[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],s.push(Md[t>>10]+Md[t>>4&63]+Md[t<<2&63]+"="));return s.join("")},Md=[],Ud=[],Gd="undefined"!=typeof Uint8Array?Uint8Array:Array,Vd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wd=0,Hd=Vd.length;Wd<Hd;++Wd)Md[Wd]=Vd[Wd],Ud[Vd.charCodeAt(Wd)]=Wd;function Xd(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function qd(e,t,r){for(var n,s,a=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(Md[(s=n)>>18&63]+Md[s>>12&63]+Md[s>>6&63]+Md[63&s]);return a.join("")}Ud["-".charCodeAt(0)]=62,Ud["_".charCodeAt(0)]=63;var $d={byteLength:Bd,toByteArray:_d,fromByteArray:Ld},Kd=function(e,t,r,n,s){var a,i,o=8*s-n-1,u=(1<<o)-1,l=u>>1,c=-7,p=r?s-1:0,d=r?-1:1,f=e[t+p];for(p+=d,a=f&(1<<-c)-1,f>>=-c,c+=o;c>0;a=256*a+e[t+p],p+=d,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=n;c>0;i=256*i+e[t+p],p+=d,c-=8);if(0===a)a=1-l;else{if(a===u)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,n),a-=l}return(f?-1:1)*i*Math.pow(2,a-n)},zd=function(e,t,r,n,s,a){var i,o,u,l=8*a-s-1,c=(1<<l)-1,p=c>>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),(t+=i+p>=1?d/u:d*Math.pow(2,1-p))*u>=2&&(i++,u/=2),i+p>=c?(o=0,i=c):i+p>=1?(o=(t*u-1)*Math.pow(2,s),i+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,s),i=0));s>=8;e[r+f]=255&o,f+=h,o/=256,s-=8);for(i=i<<s|o,l+=s;l>0;e[r+f]=255&i,f+=h,i/=256,l-=8);e[r+f-h]|=128*m},Jd=zt((function(e,t){t.Buffer=s,t.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},t.INSPECT_MAX_BYTES=50;var r=2147483647;function n(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=s.prototype,t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return o(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|c(e,t),a=n(r),i=a.write(e,t);i!==r&&(a=a.slice(0,i));return a}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return n.__proto__=s.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var a=e.valueOf&&e.valueOf();if(null!=a&&a!==e)return s.from(a,t,r);var i=function(e){if(s.isBuffer(e)){var t=0|l(e.length),r=n(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||M(e.length)?n(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function i(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function o(e){return i(e),n(e<0?0:0|l(e))}function u(e){for(var t=e.length<0?0:0|l(e.length),r=n(t),s=0;s<t;s+=1)r[s]=255&e[s];return r}function l(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function c(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(e).length;default:if(a)return n?-1:N(e).length;t=(""+t).toLowerCase(),a=!0}}function p(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return w(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function d(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function f(e,t,r,n,a){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),M(r=+r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:h(e,t,r,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):h(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function h(e,t,r,n,s){var a,i=1,o=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,o/=2,u/=2,r/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(s){var c=-1;for(a=r;a<o;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*i}else-1!==c&&(a-=a-c),c=-1}else for(r+u>o&&(r=o-u),a=r;a>=0;a--){for(var p=!0,d=0;d<u;d++)if(l(e,a+d)!==l(t,d)){p=!1;break}if(p)return a}return-1}function m(e,t,r,n){r=Number(r)||0;var s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;var a=t.length;n>a/2&&(n=a/2);for(var i=0;i<n;++i){var o=parseInt(t.substr(2*i,2),16);if(M(o))return i;e[r+i]=o}return i}function y(e,t,r,n){return _(N(t,e.length-r),e,r,n)}function g(e,t,r,n){return _(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function v(e,t,r,n){return g(e,t,r,n)}function b(e,t,r,n){return _(B(t),e,r,n)}function E(e,t,r,n){return _(function(e,t){for(var r,n,s,a=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,s=r%256,a.push(s),a.push(n);return a}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?$d.fromByteArray(e):$d.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);for(var n=[],s=t;s<r;){var a,i,o,u,l=e[s],c=null,p=l>239?4:l>223?3:l>191?2:1;if(s+p<=r)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[s+1]))&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[s+1],i=e[s+2],128==(192&a)&&128==(192&i)&&(u=(15&l)<<12|(63&a)<<6|63&i)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[s+1],i=e[s+2],o=e[s+3],128==(192&a)&&128==(192&i)&&128==(192&o)&&(u=(15&l)<<18|(63&a)<<12|(63&i)<<6|63&o)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),s+=p}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=A));return r}(n)}t.kMaxLength=r,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(e,t,r){return a(e,t,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(e,t,r){return function(e,t,r){return i(e),e<=0?n(e):void 0!==t?"string"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)}(e,t,r)},s.allocUnsafe=function(e){return o(e)},s.allocUnsafeSlow=function(e){return o(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=s.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var i=e[r];if(L(i,Uint8Array)&&(i=s.from(i)),!s.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,a),a+=i.length}return n},s.byteLength=c,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?D(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s.prototype.compare=function(e,t,r,n,a){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),u=Math.min(i,o),l=this.slice(n,a),c=e.slice(t,r),p=0;p<u;++p)if(l[p]!==c[p]){i=l[p],o=c[p];break}return i<o?-1:o<i?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return f(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return f(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var s=this.length-t;if((void 0===r||r>s)&&(r=s),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return g(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return b(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function w(e,t,r){var n="";r=Math.min(e.length,r);for(var s=t;s<r;++s)n+=String.fromCharCode(127&e[s]);return n}function C(e,t,r){var n="";r=Math.min(e.length,r);for(var s=t;s<r;++s)n+=String.fromCharCode(e[s]);return n}function S(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var s="",a=t;a<r;++a)s+=R(e[a]);return s}function T(e,t,r){for(var n=e.slice(t,r),s="",a=0;a<n.length;a+=2)s+=String.fromCharCode(n[a]+256*n[a+1]);return s}function j(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,n,a,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function I(e,t,r,n,s,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,s){return t=+t,r>>>=0,s||I(e,0,r,4),zd(e,t,r,n,23,4),r+4}function k(e,t,r,n,s){return t=+t,r>>>=0,s||I(e,0,r,8),zd(e,t,r,n,52,8),r+8}s.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=s.prototype,n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);for(var n=this[e],s=1,a=0;++a<t&&(s*=256);)n+=this[e+a]*s;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);for(var n=this[e+--t],s=1;t>0&&(s*=256);)n+=this[e+--t]*s;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);for(var n=this[e],s=1,a=0;++a<t&&(s*=256);)n+=this[e+a]*s;return n>=(s*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);for(var n=t,s=1,a=this[e+--n];n>0&&(s*=256);)a+=this[e+--n]*s;return a>=(s*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),Kd(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),Kd(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),Kd(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),Kd(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var s=1,a=0;for(this[t]=255&e;++a<r&&(s*=256);)this[t+a]=e/s&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||P(this,e,t,r,Math.pow(2,8*r)-1,0);var s=r-1,a=1;for(this[t+s]=255&e;--s>=0&&(a*=256);)this[t+s]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var s=Math.pow(2,8*r-1);P(this,e,t,r,s-1,-s)}var a=0,i=1,o=0;for(this[t]=255&e;++a<r&&(i*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var s=Math.pow(2,8*r-1);P(this,e,t,r,s-1,-s)}var a=r-1,i=1,o=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=a-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return a},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=s.isBuffer(e)?e:s.from(e,n),u=o.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%u]}return this};var O=/[^+/0-9A-Za-z-_]/g;function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function N(e,t){var r;t=t||1/0;for(var n=e.length,s=null,a=[],i=0;i<n;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!s){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}s=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(t-=3)>-1&&a.push(239,191,189);if(s=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function B(e){return $d.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function _(e,t,r,n){for(var s=0;s<n&&!(s+r>=t.length||s>=e.length);++s)t[s+r]=e[s];return s}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function M(e){return e!=e}}),"/$$rollup_base$$/node_modules/buffer"),Yd={},Qd=Yd.hasOwnProperty,Zd=function(e,t){for(var r in e)Qd.call(e,r)&&t(r,e[r])},ef=Yd.toString,tf=Array.isArray,rf=Jd.Buffer.isBuffer,nf={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},sf=/["'\\\b\f\n\r\t]/,af=/[0-9]/,of=/[ !#-&\(-\[\]-_a-~]/,uf=function e(t,r){var n,s,a=function(){f=d,++r.indentLevel,d=r.indent.repeat(r.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},o=r&&r.json;o&&(i.quotes="double",i.wrap=!0),n=i,"single"!=(r=(s=r)?(Zd(s,(function(e,t){n[e]=t})),n):n).quotes&&"double"!=r.quotes&&"backtick"!=r.quotes&&(r.quotes="single");var u,l="double"==r.quotes?'"':"backtick"==r.quotes?"`":"'",c=r.compact,p=r.lowercaseHex,d=r.indent.repeat(r.indentLevel),f="",h=r.__inline1__,m=r.__inline2__,y=c?"":"\n",g=!0,v="binary"==r.numbers,b="octal"==r.numbers,E="decimal"==r.numbers,x="hexadecimal"==r.numbers;if(o&&t&&"function"==typeof t.toJSON&&(t=t.toJSON()),!function(e){return"string"==typeof e||"[object String]"==ef.call(e)}(t)){if(function(e){return"[object Map]"==ef.call(e)}(t))return 0==t.size?"new Map()":(c||(r.__inline1__=!0,r.__inline2__=!1),"new Map("+e(Array.from(t),r)+")");if(function(e){return"[object Set]"==ef.call(e)}(t))return 0==t.size?"new Set()":"new Set("+e(Array.from(t),r)+")";if(rf(t))return 0==t.length?"Buffer.from([])":"Buffer.from("+e(Array.from(t),r)+")";if(tf(t))return u=[],r.wrap=!0,h&&(r.__inline1__=!1,r.__inline2__=!0),m||a(),function(e,t){for(var r=e.length,n=-1;++n<r;)t(e[n])}(t,(function(t){g=!1,m&&(r.__inline2__=!1),u.push((c||m?"":d)+e(t,r))})),g?"[]":m?"["+u.join(", ")+"]":"["+y+u.join(","+y)+y+(c?"":f)+"]";if(!function(e){return"number"==typeof e||"[object Number]"==ef.call(e)}(t))return function(e){return"[object Object]"==ef.call(e)}(t)?(u=[],r.wrap=!0,a(),Zd(t,(function(t,n){g=!1,u.push((c?"":d)+e(t,r)+":"+(c?"":" ")+e(n,r))})),g?"{}":"{"+y+u.join(","+y)+y+(c?"":f)+"}"):o?JSON.stringify(t)||"null":String(t);if(o)return JSON.stringify(t);if(E)return String(t);if(x){var D=t.toString(16);return p||(D=D.toUpperCase()),"0x"+D}if(v)return"0b"+t.toString(2);if(b)return"0o"+t.toString(8)}var A=t,w=-1,C=A.length;for(u="";++w<C;){var S=A.charAt(w);if(r.es6){var T=A.charCodeAt(w);if(T>=55296&&T<=56319&&C>w+1){var j=A.charCodeAt(w+1);if(j>=56320&&j<=57343){var P=(1024*(T-55296)+j-56320+65536).toString(16);p||(P=P.toUpperCase()),u+="\\u{"+P+"}",++w;continue}}}if(!r.escapeEverything){if(of.test(S)){u+=S;continue}if('"'==S){u+=l==S?'\\"':S;continue}if("`"==S){u+=l==S?"\\`":S;continue}if("'"==S){u+=l==S?"\\'":S;continue}}if("\0"!=S||o||af.test(A.charAt(w+1)))if(sf.test(S))u+=nf[S];else{var I=S.charCodeAt(0);if(r.minimal&&8232!=I&&8233!=I)u+=S;else{var F=I.toString(16);p||(F=F.toUpperCase());var k=F.length>2||o,O="\\"+(k?"u":"x")+("0000"+F).slice(k?-4:-2);u+=O}}else u+="\\0"}return r.wrap&&(u=l+u+l),"`"==l&&(u=u.replace(/\$\{/g,"\\${")),r.isScriptContext?u.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,o?"\\u003C!--":"\\x3C!--"):u};uf.version="2.5.2";var lf=uf;function cf(e){this.token("..."),this.print(e.argument,e)}function pf(e){var t=e.properties;this.token("{"),this.printInnerComments(e),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.token("}")}function df(e){var t=e.elements,r=t.length;this.token("["),this.printInnerComments(e);for(var n=0;n<t.length;n++){var s=t[n];s?(n>0&&this.space(),this.print(s,e),n<r-1&&this.token(",")):this.token(",")}this.token("]")}function ff(e){var t=this.getPossibleRaw(e),r=this.format.jsescOption,n=e.value+"";r.numbers?this.number(lf(e.value,r)):null==t?this.number(n):this.format.minified?this.number(t.length<n.length?t:n):this.number(t)}function hf(e){var t=this.getPossibleRaw(e);if(this.format.minified||null==t){var r=lf(e.value,Object.assign(this.format.jsescOption,this.format.jsonCompatibleStrings&&{json:!0}));return this.token(r)}this.token(t)}function mf(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function yf(e,t){var r=t.members;e.token("{"),e.indent(),e.newline();for(var n,s=f(r);!(n=s()).done;){var a=n.value;e.print(a,t),e.newline()}t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function gf(e,t){var r=t.id,n=t.init;e.print(r,t),e.space(),e.token("="),e.space(),e.print(n,t),e.token(",")}function vf(e){if(e.declaration){var t=e.declaration;this.print(t,e),xt(t)||this.semicolon()}else this.token("{"),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.token("}"),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}function bf(e){this.print(e.id,e),this.print(e.typeParameters,e)}function Ef(){this.space(),this.token("&"),this.space()}function xf(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")}function Df(){this.space(),this.token("|"),this.space()}var Af=/(?:^|[^\\])(?:\\\\)*'/,wf=/(?:^|[^\\])(?:\\\\)*"/;function Cf(){this.space()}function Sf(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")}function Tf(e,t){!0!==t&&e.token(t)}var jf=Object.freeze({__proto__:null,TaggedTemplateExpression:function(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)},TemplateElement:function(e,t){var r=t.quasis[0]===e,n=t.quasis[t.quasis.length-1]===e,s=(r?"`":"}")+e.value.raw+(n?"`":"${");this.token(s)},TemplateLiteral:function(e){for(var t=e.quasis,r=0;r<t.length;r++)this.print(t[r],e),r+1<t.length&&this.print(e.expressions[r],e)},UnaryExpression:function(e){"void"===e.operator||"delete"===e.operator||"typeof"===e.operator||"throw"===e.operator?(this.word(e.operator),this.space()):this.token(e.operator),this.print(e.argument,e)},DoExpression:function(e){e.async&&(this.word("async"),this.space()),this.word("do"),this.space(),this.print(e.body,e)},ParenthesizedExpression:function(e){this.token("("),this.print(e.expression,e),this.token(")")},UpdateExpression:function(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.startTerminatorless(!0),this.print(e.argument,e),this.endTerminatorless(),this.token(e.operator))},ConditionalExpression:function(e){this.print(e.test,e),this.space(),this.token("?"),this.space(),this.print(e.consequent,e),this.space(),this.token(":"),this.space(),this.print(e.alternate,e)},NewExpression:function(e,t){this.word("new"),this.space(),this.print(e.callee,e),(!this.format.minified||0!==e.arguments.length||e.optional||E(t,{callee:e})||M(t)||U(t))&&(this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.token("("),this.printList(e.arguments,e),this.token(")"))},SequenceExpression:function(e){this.printList(e.expressions,e)},ThisExpression:function(){this.word("this")},Super:function(){this.word("super")},Decorator:function(e){this.token("@"),this.print(e.expression,e),this.newline()},OptionalMemberExpression:function(e){if(this.print(e.object,e),!e.computed&&M(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");var t=e.computed;Pt(e.property)&&"number"==typeof e.property.value&&(t=!0),e.optional&&this.token("?."),t?(this.token("["),this.print(e.property,e),this.token("]")):(e.optional||this.token("."),this.print(e.property,e))},OptionalCallExpression:function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.token("("),this.printList(e.arguments,e),this.token(")")},CallExpression:function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.token("("),this.printList(e.arguments,e),this.token(")")},Import:function(){this.word("import")},YieldExpression:vd,AwaitExpression:bd,EmptyStatement:function(){this.semicolon(!0)},ExpressionStatement:function(e){this.print(e.expression,e),this.semicolon()},AssignmentPattern:function(e){this.print(e.left,e),e.left.optional&&this.token("?"),this.print(e.left.typeAnnotation,e),this.space(),this.token("="),this.space(),this.print(e.right,e)},AssignmentExpression:Ed,BindExpression:function(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)},BinaryExpression:Ed,LogicalExpression:Ed,MemberExpression:function(e){if(this.print(e.object,e),!e.computed&&M(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");var t=e.computed;Pt(e.property)&&"number"==typeof e.property.value&&(t=!0),t?(this.token("["),this.print(e.property,e),this.token("]")):(this.token("."),this.print(e.property,e))},MetaProperty:function(e){this.print(e.meta,e),this.token("."),this.print(e.property,e)},PrivateName:function(e){this.token("#"),this.print(e.id,e)},V8IntrinsicIdentifier:function(e){this.token("%"),this.word(e.name)},ModuleExpression:function(e){this.word("module"),this.space(),this.token("{"),0===e.body.body.length?this.token("}"):(this.newline(),this.printSequence(e.body.body,e,{indent:!0}),this.rightBrace())},WithStatement:function(e){this.word("with"),this.space(),this.token("("),this.print(e.object,e),this.token(")"),this.printBlock(e)},IfStatement:function(e){this.word("if"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.space();var t=e.alternate&&k(xd(e.consequent));t&&(this.token("{"),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.token("}")),e.alternate&&(this.endsWith("}")&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))},ForStatement:function(e){this.word("for"),this.space(),this.token("("),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.token(";"),e.test&&(this.space(),this.print(e.test,e)),this.token(";"),e.update&&(this.space(),this.print(e.update,e)),this.token(")"),this.printBlock(e)},WhileStatement:function(e){this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.printBlock(e)},ForInStatement:Ad,ForOfStatement:wd,DoWhileStatement:function(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.semicolon()},ContinueStatement:Sd,ReturnStatement:Td,BreakStatement:jd,ThrowStatement:Pd,LabeledStatement:function(e){this.print(e.label,e),this.token(":"),this.space(),this.print(e.body,e)},TryStatement:function(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))},CatchClause:function(e){this.word("catch"),this.space(),e.param&&(this.token("("),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.token(")"),this.space()),this.print(e.body,e)},SwitchStatement:function(e){this.word("switch"),this.space(),this.token("("),this.print(e.discriminant,e),this.token(")"),this.space(),this.token("{"),this.printSequence(e.cases,e,{indent:!0,addNewlines:function(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}}),this.token("}")},SwitchCase:function(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.token(":")):(this.word("default"),this.token(":")),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},DebuggerStatement:function(){this.word("debugger"),this.semicolon()},VariableDeclaration:function(e,t){e.declare&&(this.word("declare"),this.space()),this.word(e.kind),this.space();var r,n=!1;if(!wt(t))for(var s,a=f(e.declarations);!(s=a()).done;){s.value.init&&(n=!0)}if(n&&(r="const"===e.kind?Fd:Id),this.printList(e.declarations,e,{separator:r}),wt(t))if(j(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},VariableDeclarator:function(e){this.print(e.id,e),e.definite&&this.token("!"),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.token("="),this.space(),this.print(e.init,e))},ClassDeclaration:kd,ClassExpression:kd,ClassBody:function(e){this.token("{"),this.printInnerComments(e),0===e.body.length?this.token("}"):(this.newline(),this.indent(),this.printSequence(e.body,e),this.dedent(),this.endsWith("\n")||this.newline(),this.rightBrace())},ClassProperty:function(e){this.printJoin(e.decorators,e),this.source("end",e.key.loc),this.tsPrintClassMemberModifiers(e,!0),e.computed?(this.token("["),this.print(e.key,e),this.token("]")):(this._variance(e),this.print(e.key,e)),e.optional&&this.token("?"),e.definite&&this.token("!"),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e)),this.semicolon()},ClassPrivateProperty:function(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space()),this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e)),this.semicolon()},ClassMethod:function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},ClassPrivateMethod:function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},_classMethodHead:function(e){this.printJoin(e.decorators,e),this.source("end",e.key.loc),this.tsPrintClassMemberModifiers(e,!1),this._methodHead(e)},StaticBlock:function(e){this.word("static"),this.space(),this.token("{"),0===e.body.length?this.token("}"):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace())},_params:function(e){this.print(e.typeParameters,e),this.token("("),this._parameters(e.params,e),this.token(")"),this.print(e.returnType,e)},_parameters:function(e,t){for(var r=0;r<e.length;r++)this._param(e[r],t),r<e.length-1&&(this.token(","),this.space())},_param:function(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.token("?"),this.print(e.typeAnnotation,e)},_methodHead:function(e){var t=e.kind,r=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this._catchUp("start",r.loc),this.word("async"),this.space()),"method"!==t&&"init"!==t||e.generator&&this.token("*"),e.computed?(this.token("["),this.print(r,e),this.token("]")):this.print(r,e),e.optional&&this.token("?"),this._params(e)},_predicate:function(e){e.predicate&&(e.returnType||this.token(":"),this.space(),this.print(e.predicate,e))},_functionHead:function(e){e.async&&(this.word("async"),this.space()),this.word("function"),e.generator&&this.token("*"),this.space(),e.id&&this.print(e.id,e),this._params(e),this._predicate(e)},FunctionExpression:Od,FunctionDeclaration:Od,ArrowFunctionExpression:function(e){e.async&&(this.word("async"),this.space());var t=e.params[0];this.format.retainLines||this.format.auxiliaryCommentBefore||this.format.auxiliaryCommentAfter||1!==e.params.length||!F(t)||function(e,t){var r,n;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||null!=(r=t.leadingComments)&&r.length||null!=(n=t.trailingComments)&&n.length)}(e,t)?this._params(e):this.print(t,e),this._predicate(e),this.space(),this.token("=>"),this.space(),this.print(e.body,e)},ImportSpecifier:function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))},ImportDefaultSpecifier:function(e){this.print(e.local,e)},ExportDefaultSpecifier:function(e){this.print(e.exported,e)},ExportSpecifier:function(e){this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))},ExportNamespaceSpecifier:function(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.exported,e)},ExportAllDeclaration:Rd,ExportNamedDeclaration:function(e){this.format.decoratorsBeforeExport&&oe(e.declaration)&&this.printJoin(e.declaration.decorators,e),this.word("export"),this.space(),Nd.apply(this,arguments)},ExportDefaultDeclaration:function(e){this.format.decoratorsBeforeExport&&oe(e.declaration)&&this.printJoin(e.declaration.decorators,e),this.word("export"),this.space(),this.word("default"),this.space(),Nd.apply(this,arguments)},ImportDeclaration:function(e){this.word("import"),this.space(),"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space());var t,r=e.specifiers.slice(0);if(null!=r&&r.length){for(;;){var n=r[0];if(!he(n)&&!me(n))break;this.print(r.shift(),e),r.length&&(this.token(","),this.space())}r.length&&(this.token("{"),this.space(),this.printList(r,e),this.space(),this.token("}")),this.space(),this.word("from"),this.space()}this.print(e.source,e),this.printAssertions(e),null!=(t=e.attributes)&&t.length&&(this.space(),this.word("with"),this.space(),this.printList(e.attributes,e)),this.semicolon()},ImportAttribute:function(e){this.print(e.key),this.token(":"),this.space(),this.print(e.value)},ImportNamespaceSpecifier:function(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.local,e)},Identifier:function(e){var t=this;this.exactSource(e.loc,(function(){t.word(e.name)}))},ArgumentPlaceholder:function(){this.token("?")},RestElement:cf,SpreadElement:cf,ObjectExpression:pf,ObjectPattern:pf,ObjectMethod:function(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)},ObjectProperty:function(e){if(this.printJoin(e.decorators,e),e.computed)this.token("["),this.print(e.key,e),this.token("]");else{if(re(e.value)&&F(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value,e);if(this.print(e.key,e),e.shorthand&&F(e.key)&&F(e.value)&&e.key.name===e.value.name)return}this.token(":"),this.space(),this.print(e.value,e)},ArrayExpression:df,ArrayPattern:df,RecordExpression:function(e){var t,r,n=e.properties;if("bar"===this.format.recordAndTupleSyntaxType)t="{|",r="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error('The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" ('+JSON.stringify(this.format.recordAndTupleSyntaxType)+" received).");t="#{",r="}"}this.token(t),this.printInnerComments(e),n.length&&(this.space(),this.printList(n,e,{indent:!0,statement:!0}),this.space()),this.token(r)},TupleExpression:function(e){var t,r,n=e.elements,s=n.length;if("bar"===this.format.recordAndTupleSyntaxType)t="[|",r="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(this.format.recordAndTupleSyntaxType+" is not a valid recordAndTuple syntax type");t="#[",r="]"}this.token(t),this.printInnerComments(e);for(var a=0;a<n.length;a++){var i=n[a];i&&(a>0&&this.space(),this.print(i,e),a<s-1&&this.token(","))}this.token(r)},RegExpLiteral:function(e){this.word("/"+e.pattern+"/"+e.flags)},BooleanLiteral:function(e){this.word(e.value?"true":"false")},NullLiteral:function(){this.word("null")},NumericLiteral:ff,StringLiteral:hf,BigIntLiteral:function(e){var t=this.getPossibleRaw(e);this.format.minified||null==t?this.word(e.value+"n"):this.word(t)},DecimalLiteral:function(e){var t=this.getPossibleRaw(e);this.format.minified||null==t?this.word(e.value+"m"):this.word(t)},PipelineTopicExpression:function(e){this.print(e.expression,e)},PipelineBareFunction:function(e){this.print(e.callee,e)},PipelinePrimaryTopicReference:function(){this.token("#")},NumberLiteralTypeAnnotation:ff,StringLiteralTypeAnnotation:hf,AnyTypeAnnotation:function(){this.word("any")},ArrayTypeAnnotation:function(e){this.print(e.elementType,e),this.token("["),this.token("]")},BooleanTypeAnnotation:function(){this.word("boolean")},BooleanLiteralTypeAnnotation:function(e){this.word(e.value?"true":"false")},NullLiteralTypeAnnotation:function(){this.word("null")},DeclareClass:function(e,t){Oe(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},DeclareFunction:function(e,t){Oe(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),e.predicate&&(this.space(),this.print(e.predicate,e)),this.semicolon()},InferredPredicate:function(){this.token("%"),this.word("checks")},DeclaredPredicate:function(e){this.token("%"),this.word("checks"),this.token("("),this.print(e.value,e),this.token(")")},DeclareInterface:function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},DeclareModule:function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id,e),this.space(),this.print(e.body,e)},DeclareModuleExports:function(e){this.word("declare"),this.space(),this.word("module"),this.token("."),this.word("exports"),this.print(e.typeAnnotation,e)},DeclareTypeAlias:function(e){this.word("declare"),this.space(),this.TypeAlias(e)},DeclareOpaqueType:function(e,t){Oe(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},DeclareVariable:function(e,t){Oe(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon()},DeclareExportDeclaration:function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),vf.apply(this,arguments)},DeclareExportAllDeclaration:function(){this.word("declare"),this.space(),Rd.apply(this,arguments)},EnumDeclaration:function(e){var t=e.id,r=e.body;this.word("enum"),this.space(),this.print(t,e),this.print(r,e)},EnumBooleanBody:function(e){mf(this,"boolean",e.explicitType),yf(this,e)},EnumNumberBody:function(e){mf(this,"number",e.explicitType),yf(this,e)},EnumStringBody:function(e){mf(this,"string",e.explicitType),yf(this,e)},EnumSymbolBody:function(e){mf(this,"symbol",!0),yf(this,e)},EnumDefaultedMember:function(e){var t=e.id;this.print(t,e),this.token(",")},EnumBooleanMember:function(e){gf(this,e)},EnumNumberMember:function(e){gf(this,e)},EnumStringMember:function(e){gf(this,e)},ExistsTypeAnnotation:function(){this.token("*")},FunctionTypeAnnotation:function(e,t){this.print(e.typeParameters,e),this.token("("),e.this&&(this.word("this"),this.token(":"),this.space(),this.print(e.this.typeAnnotation,e),(e.params.length||e.rest)&&(this.token(","),this.space())),this.printList(e.params,e),e.rest&&(e.params.length&&(this.token(","),this.space()),this.token("..."),this.print(e.rest,e)),this.token(")"),"ObjectTypeCallProperty"===t.type||"DeclareFunction"===t.type||"ObjectTypeProperty"===t.type&&t.method?this.token(":"):(this.space(),this.token("=>")),this.space(),this.print(e.returnType,e)},FunctionTypeParam:function(e){this.print(e.name,e),e.optional&&this.token("?"),e.name&&(this.token(":"),this.space()),this.print(e.typeAnnotation,e)},InterfaceExtends:bf,ClassImplements:bf,GenericTypeAnnotation:bf,_interfaceish:function(e){var t;this.print(e.id,e),this.print(e.typeParameters,e),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),e.mixins&&e.mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e)),e.implements&&e.implements.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body,e)},_variance:function(e){e.variance&&("plus"===e.variance.kind?this.token("+"):"minus"===e.variance.kind&&this.token("-"))},InterfaceDeclaration:function(e){this.word("interface"),this.space(),this._interfaceish(e)},InterfaceTypeAnnotation:function(e){this.word("interface"),e.extends&&e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),this.space(),this.print(e.body,e)},IntersectionTypeAnnotation:function(e){this.printJoin(e.types,e,{separator:Ef})},MixedTypeAnnotation:function(){this.word("mixed")},EmptyTypeAnnotation:function(){this.word("empty")},NullableTypeAnnotation:function(e){this.token("?"),this.print(e.typeAnnotation,e)},NumberTypeAnnotation:function(){this.word("number")},StringTypeAnnotation:function(){this.word("string")},ThisTypeAnnotation:function(){this.word("this")},TupleTypeAnnotation:function(e){this.token("["),this.printList(e.types,e),this.token("]")},TypeofTypeAnnotation:function(e){this.word("typeof"),this.space(),this.print(e.argument,e)},TypeAlias:function(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.token("="),this.space(),this.print(e.right,e),this.semicolon()},TypeAnnotation:function(e){this.token(":"),this.space(),e.optional&&this.token("?"),this.print(e.typeAnnotation,e)},TypeParameterInstantiation:xf,TypeParameterDeclaration:xf,TypeParameter:function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e),e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},OpaqueType:function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.token(":"),this.space(),this.print(e.supertype,e)),e.impltype&&(this.space(),this.token("="),this.space(),this.print(e.impltype,e)),this.semicolon()},ObjectTypeAnnotation:function(e){var t=this;e.exact?this.token("{|"):this.token("{");var r=[].concat(c(e.properties),c(e.callProperties||[]),c(e.indexers||[]),c(e.internalSlots||[]));r.length&&(this.space(),this.printJoin(r,e,{addNewlines:function(e){if(e&&!r[0])return 1},indent:!0,statement:!0,iterator:function(){(1!==r.length||e.inexact)&&(t.token(","),t.space())}}),this.space()),e.inexact&&(this.indent(),this.token("..."),r.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.token("}")},ObjectTypeInternalSlot:function(e){e.static&&(this.word("static"),this.space()),this.token("["),this.token("["),this.print(e.id,e),this.token("]"),this.token("]"),e.optional&&this.token("?"),e.method||(this.token(":"),this.space()),this.print(e.value,e)},ObjectTypeCallProperty:function(e){e.static&&(this.word("static"),this.space()),this.print(e.value,e)},ObjectTypeIndexer:function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.token("["),e.id&&(this.print(e.id,e),this.token(":"),this.space()),this.print(e.key,e),this.token("]"),this.token(":"),this.space(),this.print(e.value,e)},ObjectTypeProperty:function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space()),this._variance(e),this.print(e.key,e),e.optional&&this.token("?"),e.method||(this.token(":"),this.space()),this.print(e.value,e)},ObjectTypeSpreadProperty:function(e){this.token("..."),this.print(e.argument,e)},QualifiedTypeIdentifier:function(e){this.print(e.qualification,e),this.token("."),this.print(e.id,e)},SymbolTypeAnnotation:function(){this.word("symbol")},UnionTypeAnnotation:function(e){this.printJoin(e.types,e,{separator:Df})},TypeCastExpression:function(e){this.token("("),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.token(")")},Variance:function(e){"plus"===e.kind?this.token("+"):this.token("-")},VoidTypeAnnotation:function(){this.word("void")},IndexedAccessType:function(e){this.print(e.objectType,e),this.token("["),this.print(e.indexType,e),this.token("]")},OptionalIndexedAccessType:function(e){this.print(e.objectType,e),e.optional&&this.token("?."),this.token("["),this.print(e.indexType,e),this.token("]")},File:function(e){e.program&&this.print(e.program.interpreter,e),this.print(e.program,e)},Program:function(e){this.printInnerComments(e,!1),this.printSequence(e.directives,e),e.directives&&e.directives.length&&this.newline(),this.printSequence(e.body,e)},BlockStatement:function(e){var t;this.token("{"),this.printInnerComments(e);var r=null==(t=e.directives)?void 0:t.length;e.body.length||r?(this.newline(),this.printSequence(e.directives,e,{indent:!0}),r&&this.newline(),this.printSequence(e.body,e,{indent:!0}),this.removeTrailingNewline(),this.source("end",e.loc),this.endsWith("\n")||this.newline(),this.rightBrace()):(this.source("end",e.loc),this.token("}"))},Directive:function(e){this.print(e.value,e),this.semicolon()},DirectiveLiteral:function(e){var t=this.getPossibleRaw(e);if(null==t){var r=e.value;if(wf.test(r)){if(Af.test(r))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token("'"+r+"'")}else this.token('"'+r+'"')}else this.token(t)},InterpreterDirective:function(e){this.token("#!"+e.value+"\n")},Placeholder:function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},JSXAttribute:function(e){this.print(e.name,e),e.value&&(this.token("="),this.print(e.value,e))},JSXIdentifier:function(e){this.word(e.name)},JSXNamespacedName:function(e){this.print(e.namespace,e),this.token(":"),this.print(e.name,e)},JSXMemberExpression:function(e){this.print(e.object,e),this.token("."),this.print(e.property,e)},JSXSpreadAttribute:function(e){this.token("{"),this.token("..."),this.print(e.argument,e),this.token("}")},JSXExpressionContainer:function(e){this.token("{"),this.print(e.expression,e),this.token("}")},JSXSpreadChild:function(e){this.token("{"),this.token("..."),this.print(e.expression,e),this.token("}")},JSXText:function(e){var t=this.getPossibleRaw(e);null!=t?this.token(t):this.token(e.value)},JSXElement:function(e){var t=e.openingElement;if(this.print(t,e),!t.selfClosing){this.indent();for(var r,n=f(e.children);!(r=n()).done;){var s=r.value;this.print(s,e)}this.dedent(),this.print(e.closingElement,e)}},JSXOpeningElement:function(e){this.token("<"),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:Cf})),e.selfClosing?(this.space(),this.token("/>")):this.token(">")},JSXClosingElement:function(e){this.token("</"),this.print(e.name,e),this.token(">")},JSXEmptyExpression:function(e){this.printInnerComments(e)},JSXFragment:function(e){this.print(e.openingFragment,e),this.indent();for(var t,r=f(e.children);!(t=r()).done;){var n=t.value;this.print(n,e)}this.dedent(),this.print(e.closingFragment,e)},JSXOpeningFragment:function(){this.token("<"),this.token(">")},JSXClosingFragment:function(){this.token("</"),this.token(">")},TSTypeAnnotation:function(e){this.token(":"),this.space(),e.optional&&this.token("?"),this.print(e.typeAnnotation,e)},TSTypeParameterInstantiation:Sf,TSTypeParameterDeclaration:Sf,TSTypeParameter:function(e){this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e)),e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},TSParameterProperty:function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},TSDeclareFunction:function(e){e.declare&&(this.word("declare"),this.space()),this._functionHead(e),this.token(";")},TSDeclareMethod:function(e){this._classMethodHead(e),this.token(";")},TSQualifiedName:function(e){this.print(e.left,e),this.token("."),this.print(e.right,e)},TSCallSignatureDeclaration:function(e){this.tsPrintSignatureDeclarationBase(e),this.token(";")},TSConstructSignatureDeclaration:function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.token(";")},TSPropertySignature:function(e){var t=e.readonly,r=e.initializer;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),r&&(this.space(),this.token("="),this.space(),this.print(r,e)),this.token(";")},tsPrintPropertyOrMethodName:function(e){e.computed&&this.token("["),this.print(e.key,e),e.computed&&this.token("]"),e.optional&&this.token("?")},TSMethodSignature:function(e){var t=e.kind;"set"!==t&&"get"!==t||(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.token(";")},TSIndexSignature:function(e){var t=e.readonly;e.static&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.token("["),this._parameters(e.parameters,e),this.token("]"),this.print(e.typeAnnotation,e),this.token(";")},TSAnyKeyword:function(){this.word("any")},TSBigIntKeyword:function(){this.word("bigint")},TSUnknownKeyword:function(){this.word("unknown")},TSNumberKeyword:function(){this.word("number")},TSObjectKeyword:function(){this.word("object")},TSBooleanKeyword:function(){this.word("boolean")},TSStringKeyword:function(){this.word("string")},TSSymbolKeyword:function(){this.word("symbol")},TSVoidKeyword:function(){this.word("void")},TSUndefinedKeyword:function(){this.word("undefined")},TSNullKeyword:function(){this.word("null")},TSNeverKeyword:function(){this.word("never")},TSIntrinsicKeyword:function(){this.word("intrinsic")},TSThisType:function(){this.word("this")},TSFunctionType:function(e){this.tsPrintFunctionOrConstructorType(e)},TSConstructorType:function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},tsPrintFunctionOrConstructorType:function(e){var t=e.typeParameters,r=e.parameters;this.print(t,e),this.token("("),this._parameters(r,e),this.token(")"),this.space(),this.token("=>"),this.space(),this.print(e.typeAnnotation.typeAnnotation,e)},TSTypeReference:function(e){this.print(e.typeName,e),this.print(e.typeParameters,e)},TSTypePredicate:function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},TSTypeQuery:function(e){this.word("typeof"),this.space(),this.print(e.exprName)},TSTypeLiteral:function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)},tsPrintTypeLiteralOrInterfaceBody:function(e,t){this.tsPrintBraced(e,t)},tsPrintBraced:function(e,t){if(this.token("{"),e.length){this.indent(),this.newline();for(var r,n=f(e);!(r=n()).done;){var s=r.value;this.print(s,t),this.newline()}this.dedent(),this.rightBrace()}else this.token("}")},TSArrayType:function(e){this.print(e.elementType,e),this.token("[]")},TSTupleType:function(e){this.token("["),this.printList(e.elementTypes,e),this.token("]")},TSOptionalType:function(e){this.print(e.typeAnnotation,e),this.token("?")},TSRestType:function(e){this.token("..."),this.print(e.typeAnnotation,e)},TSNamedTupleMember:function(e){this.print(e.label,e),e.optional&&this.token("?"),this.token(":"),this.space(),this.print(e.elementType,e)},TSUnionType:function(e){this.tsPrintUnionOrIntersectionType(e,"|")},TSIntersectionType:function(e){this.tsPrintUnionOrIntersectionType(e,"&")},tsPrintUnionOrIntersectionType:function(e,t){this.printJoin(e.types,e,{separator:function(){this.space(),this.token(t),this.space()}})},TSConditionalType:function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.token("?"),this.space(),this.print(e.trueType),this.space(),this.token(":"),this.space(),this.print(e.falseType)},TSInferType:function(e){this.token("infer"),this.space(),this.print(e.typeParameter)},TSParenthesizedType:function(e){this.token("("),this.print(e.typeAnnotation,e),this.token(")")},TSTypeOperator:function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e)},TSIndexedAccessType:function(e){this.print(e.objectType,e),this.token("["),this.print(e.indexType,e),this.token("]")},TSMappedType:function(e){var t=e.nameType,r=e.optional,n=e.readonly,s=e.typeParameter;this.token("{"),this.space(),n&&(Tf(this,n),this.word("readonly"),this.space()),this.token("["),this.word(s.name),this.space(),this.word("in"),this.space(),this.print(s.constraint,s),t&&(this.space(),this.word("as"),this.space(),this.print(t,e)),this.token("]"),r&&(Tf(this,r),this.token("?")),this.token(":"),this.space(),this.print(e.typeAnnotation,e),this.space(),this.token("}")},TSLiteralType:function(e){this.print(e.literal,e)},TSExpressionWithTypeArguments:function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},TSInterfaceDeclaration:function(e){var t=e.declare,r=e.id,n=e.typeParameters,s=e.extends,a=e.body;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r,e),this.print(n,e),null!=s&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s,e)),this.space(),this.print(a,e)},TSInterfaceBody:function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)},TSTypeAliasDeclaration:function(e){var t=e.declare,r=e.id,n=e.typeParameters,s=e.typeAnnotation;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r,e),this.print(n,e),this.space(),this.token("="),this.space(),this.print(s,e),this.token(";")},TSAsExpression:function(e){var t=e.expression,r=e.typeAnnotation;this.print(t,e),this.space(),this.word("as"),this.space(),this.print(r,e)},TSTypeAssertion:function(e){var t=e.typeAnnotation,r=e.expression;this.token("<"),this.print(t,e),this.token(">"),this.space(),this.print(r,e)},TSEnumDeclaration:function(e){var t=e.declare,r=e.const,n=e.id,s=e.members;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(n,e),this.space(),this.tsPrintBraced(s,e)},TSEnumMember:function(e){var t=e.id,r=e.initializer;this.print(t,e),r&&(this.space(),this.token("="),this.space(),this.print(r,e)),this.token(",")},TSModuleDeclaration:function(e){var t=e.declare,r=e.id;if(t&&(this.word("declare"),this.space()),e.global||(this.word("Identifier"===r.type?"namespace":"module"),this.space()),this.print(r,e),e.body){for(var n=e.body;"TSModuleDeclaration"===n.type;)this.token("."),this.print(n.id,n),n=n.body;this.space(),this.print(n,e)}else this.token(";")},TSModuleBlock:function(e){this.tsPrintBraced(e.body,e)},TSImportType:function(e){var t=e.argument,r=e.qualifier,n=e.typeParameters;this.word("import"),this.token("("),this.print(t,e),this.token(")"),r&&(this.token("."),this.print(r,e)),n&&this.print(n,e)},TSImportEqualsDeclaration:function(e){var t=e.isExport,r=e.id,n=e.moduleReference;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r,e),this.space(),this.token("="),this.space(),this.print(n,e),this.token(";")},TSExternalModuleReference:function(e){this.token("require("),this.print(e.expression,e),this.token(")")},TSNonNullExpression:function(e){this.print(e.expression,e),this.token("!")},TSExportAssignment:function(e){this.word("export"),this.space(),this.token("="),this.space(),this.print(e.expression,e),this.token(";")},TSNamespaceExportDeclaration:function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)},tsPrintSignatureDeclarationBase:function(e){var t=e.typeParameters,r=e.parameters;this.print(t,e),this.token("("),this._parameters(r,e),this.token(")"),this.print(e.typeAnnotation,e)},tsPrintClassMemberModifiers:function(e,t){t&&e.declare&&(this.word("declare"),this.space()),e.accessibility&&(this.word(e.accessibility),this.space()),e.static&&(this.word("static"),this.space()),e.override&&(this.word("override"),this.space()),e.abstract&&(this.word("abstract"),this.space()),t&&e.readonly&&(this.word("readonly"),this.space())}}),Pf=/e/i,If=/\.0+$/,Ff=/^0[box]/,kf=/^\s*[@#]__PURE__\s*$/,Of=function(){function e(e,t){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new WeakSet,this._endsWithInteger=!1,this._endsWithWord=!1,this.format=e,this._buf=new Xp(t)}var t=e.prototype;return t.generate=function(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()},t.indent=function(){this.format.compact||this.format.concise||this._indent++},t.dedent=function(){this.format.compact||this.format.concise||this._indent--},t.semicolon=function(e){void 0===e&&(e=!1),this._maybeAddAuxComment(),this._append(";",!e)},t.rightBrace=function(){this.format.minified&&this._buf.removeLastSemicolon(),this.token("}")},t.space=function(e){void 0===e&&(e=!1),this.format.compact||(this._buf.hasContent()&&!this.endsWith(" ")&&!this.endsWith("\n")||e)&&this._space()},t.word=function(e){(this._endsWithWord||this.endsWith("/")&&0===e.indexOf("/"))&&this._space(),this._maybeAddAuxComment(),this._append(e),this._endsWithWord=!0},t.number=function(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!Ff.test(e)&&!Pf.test(e)&&!If.test(e)&&"."!==e[e.length-1]},t.token=function(e){("--"===e&&this.endsWith("!")||"+"===e[0]&&this.endsWith("+")||"-"===e[0]&&this.endsWith("-")||"."===e[0]&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e)},t.newline=function(e){if(!this.format.retainLines&&!this.format.compact)if(this.format.concise)this.space();else if(!(this.endsWith("\n\n")||("number"!=typeof e&&(e=1),e=Math.min(2,e),(this.endsWith("{\n")||this.endsWith(":\n"))&&e--,e<=0)))for(var t=0;t<e;t++)this._newline()},t.endsWith=function(e){return this._buf.endsWith(e)},t.removeTrailingNewline=function(){this._buf.removeTrailingNewline()},t.exactSource=function(e,t){this._catchUp("start",e),this._buf.exactSource(e,t)},t.source=function(e,t){this._catchUp(e,t),this._buf.source(e,t)},t.withSource=function(e,t,r){this._catchUp(e,t),this._buf.withSource(e,t,r)},t._space=function(){this._append(" ",!0)},t._newline=function(){this._append("\n",!0)},t._append=function(e,t){void 0===t&&(t=!1),this._maybeAddParen(e),this._maybeIndent(e),t?this._buf.queue(e):this._buf.append(e),this._endsWithWord=!1,this._endsWithInteger=!1},t._maybeIndent=function(e){this._indent&&this.endsWith("\n")&&"\n"!==e[0]&&this._buf.queue(this._getIndent())},t._maybeAddParen=function(e){var t=this._parenPushNewlineState;if(t){var r;for(r=0;r<e.length&&" "===e[r];r++);if(r!==e.length){var n=e[r];if("\n"!==n){if("/"!==n||r+1===e.length)return void(this._parenPushNewlineState=null);var s=e[r+1];if("*"===s){if(kf.test(e.slice(r+2,e.length-2)))return}else if("/"!==s)return void(this._parenPushNewlineState=null)}this.token("("),this.indent(),t.printed=!0}}},t._catchUp=function(e,t){if(this.format.retainLines){var r=t?t[e]:null;if(null!=(null==r?void 0:r.line))for(var n=r.line-this._buf.getCurrentLine(),s=0;s<n;s++)this._newline()}},t._getIndent=function(){return this.format.indent.style.repeat(this._indent)},t.startTerminatorless=function(e){return void 0===e&&(e=!1),e?(this._noLineTerminator=!0,null):this._parenPushNewlineState={printed:!1}},t.endTerminatorless=function(e){this._noLineTerminator=!1,null!=e&&e.printed&&(this.dedent(),this.newline(),this.token(")"))},t.print=function(e,t){var r=this;if(e){var n=this.format.concise;e._compact&&(this.format.concise=!0);var s=this[e.type];if(!s)throw new ReferenceError("unknown node of type "+JSON.stringify(e.type)+" with constructor "+JSON.stringify(null==e?void 0:e.constructor.name));this._printStack.push(e);var a=this._insideAux;this._insideAux=!e.loc,this._maybeAddAuxComment(this._insideAux&&!a);var i=yd(e,t,this._printStack);this.format.retainFunctionParens&&"FunctionExpression"===e.type&&e.extra&&e.extra.parenthesized&&(i=!0),i&&this.token("("),this._printLeadingComments(e);var o=G(e)||S(e)?null:e.loc;this.withSource("start",o,(function(){s.call(r,e,t)})),this._printTrailingComments(e),i&&this.token(")"),this._printStack.pop(),this.format.concise=n,this._insideAux=a}},t._maybeAddAuxComment=function(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()},t._printAuxBeforeComment=function(){if(!this._printAuxAfterOnNextUserNode){this._printAuxAfterOnNextUserNode=!0;var e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e})}},t._printAuxAfterComment=function(){if(this._printAuxAfterOnNextUserNode){this._printAuxAfterOnNextUserNode=!1;var e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e})}},t.getPossibleRaw=function(e){var t=e.extra;if(t&&null!=t.raw&&null!=t.rawValue&&e.value===t.rawValue)return t.raw},t.printJoin=function(e,t,r){if(void 0===r&&(r={}),null!=e&&e.length){r.indent&&this.indent();for(var n={addNewlines:r.addNewlines},s=0;s<e.length;s++){var a=e[s];a&&(r.statement&&this._printNewline(!0,a,t,n),this.print(a,t),r.iterator&&r.iterator(a,s),r.separator&&s<e.length-1&&r.separator.call(this),r.statement&&this._printNewline(!1,a,t,n))}r.indent&&this.dedent()}},t.printAndIndentOnComments=function(e,t){var r=e.leadingComments&&e.leadingComments.length>0;r&&this.indent(),this.print(e,t),r&&this.dedent()},t.printBlock=function(e){var t=e.body;w(t)||this.space(),this.print(t,e)},t._printTrailingComments=function(e){this._printComments(this._getComments(!1,e))},t._printLeadingComments=function(e){this._printComments(this._getComments(!0,e),!0)},t.printInnerComments=function(e,t){var r;void 0===t&&(t=!0),null!=(r=e.innerComments)&&r.length&&(t&&this.indent(),this._printComments(e.innerComments),t&&this.dedent())},t.printSequence=function(e,t,r){return void 0===r&&(r={}),r.statement=!0,this.printJoin(e,t,r)},t.printList=function(e,t,r){return void 0===r&&(r={}),null==r.separator&&(r.separator=Rf),this.printJoin(e,t,r)},t._printNewline=function(e,t,r,n){if(!this.format.retainLines&&!this.format.compact)if(this.format.concise)this.space();else{var s=0;if(this._buf.hasContent())e||s++,n.addNewlines&&(s+=n.addNewlines(e,t)||0),(e?hd:md)(t,r)&&s++;this.newline(s)}},t._getComments=function(e,t){return t&&(e?t.leadingComments:t.trailingComments)||[]},t._printComment=function(e,t){var r=this;if(this.format.shouldPrintComment(e.value)&&!e.ignore&&!this._printedComments.has(e)){this._printedComments.add(e);var n="CommentBlock"===e.type,s=n&&!t&&!this._noLineTerminator;s&&this._buf.hasContent()&&this.newline(1),this.endsWith("[")||this.endsWith("{")||this.space();var a=n||this._noLineTerminator?"/*"+e.value+"*/":"//"+e.value+"\n";if(n&&this.format.indent.adjustMultilineComment){var i,o=null==(i=e.loc)?void 0:i.start.column;if(o){var u=new RegExp("\\n\\s{1,"+o+"}","g");a=a.replace(u,"\n")}var l=Math.max(this._getIndent().length,this.format.retainLines?0:this._buf.getCurrentColumn());a=a.replace(/\n(?!$)/g,"\n"+" ".repeat(l))}this.endsWith("/")&&this._space(),this.withSource("start",e.loc,(function(){r._append(a)})),s&&this.newline(1)}},t._printComments=function(e,t){if(null!=e&&e.length)if(t&&1===e.length&&kf.test(e[0].value))this._printComment(e[0],this._buf.hasContent()&&!this.endsWith("\n"));else for(var r,n=f(e);!(r=n()).done;){var s=r.value;this._printComment(s)}},t.printAssertions=function(e){var t;null!=(t=e.assertions)&&t.length&&(this.space(),this.word("assert"),this.space(),this.token("{"),this.space(),this.printList(e.assertions,e),this.space(),this.token("}"))},e}();function Rf(){this.token(","),this.space()}Object.assign(Of.prototype,jf),Of.prototype.Noop=function(){};var Nf=function(e){function t(t,r,n){var s;void 0===r&&(r={});var a=function(e,t){var r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" ",base:0},decoratorsBeforeExport:!!t.decoratorsBeforeExport,jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),recordAndTupleSyntaxType:t.recordAndTupleSyntaxType};r.jsonCompatibleStrings=t.jsonCompatibleStrings,r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||function(){return r.comments}):r.shouldPrintComment=r.shouldPrintComment||function(e){return r.comments||e.indexOf("@license")>=0||e.indexOf("@preserve")>=0};"auto"===r.compact&&(r.compact=e.length>5e5,r.compact&&console.error("[BABEL] Note: The code generator has deoptimised the styling of "+t.filename+" as it exceeds the max of 500KB."));r.compact&&(r.indent.adjustMultilineComment=!1);return r}(n,r),i=r.sourceMaps?new Wp(r,n):null;return(s=e.call(this,a,i)||this).ast=void 0,s.ast=t,s}return s(t,e),t.prototype.generate=function(){return e.prototype.generate.call(this,this.ast)},t}(Of);function Bf(e,t,r){return new Nf(e,t,r).generate()}var _f=Object.freeze({__proto__:null,findParent:function(e){for(var t=this;t=t.parentPath;)if(e(t))return t;return null},find:function(e){var t=this;do{if(e(t))return t}while(t=t.parentPath);return null},getFunctionParent:function(){return this.findParent((function(e){return e.isFunction()}))},getStatementParent:function(){var e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},getEarliestCommonAncestorFrom:function(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,r){for(var n,s,a=Qr[e.type],i=f(r);!(s=i()).done;){var o=s.value[t+1];if(n)if(o.listKey&&n.listKey===o.listKey&&o.key<n.key)n=o;else a.indexOf(n.parentKey)>a.indexOf(o.parentKey)&&(n=o);else n=o}return n}))},getDeepestCommonAncestorFrom:function(e,t){var r=this;if(!e.length)return this;if(1===e.length)return e[0];var n,s,a=1/0,i=e.map((function(e){var t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==r);return t.length<a&&(a=t.length),t})),o=i[0];e:for(var u=0;u<a;u++){for(var l,c=o[u],p=f(i);!(l=p()).done;){if(l.value[u]!==c)break e}n=u,s=c}if(s)return t?t(s,n,i):s;throw new Error("Couldn't find intersection")},getAncestry:function(){var e=this,t=[];do{t.push(e)}while(e=e.parentPath);return t},isAncestor:function(e){return e.isDescendant(this)},isDescendant:function(e){return!!this.findParent((function(t){return t===e}))},inType:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(;e;){for(var s,a=f(r);!(s=a()).done;){var i=s.value;if(e.node.type===i)return!0}e=e.parentPath}return!1}});function Lf(e,t,r){var n=e.constantViolations.slice();return n.unshift(e.path),n.filter((function(e){var n=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return r&&"unknown"===n&&r.push(e),"before"===n}))}function Mf(e,t){var r,n,s,a=t.node.operator,i=t.get("right").resolve(),o=t.get("left").resolve();if(o.isIdentifier({name:e})?r=i:i.isIdentifier({name:e})&&(r=o),r)return"==="===a?r.getTypeAnnotation():Nr.indexOf(a)>=0?si():void 0;if(("==="===a||"=="===a)&&(o.isUnaryExpression({operator:"typeof"})?(n=o,s=i):i.isUnaryExpression({operator:"typeof"})&&(n=i,s=o),n&&n.get("argument").isIdentifier({name:e})&&(s=s.resolve()).isLiteral())){var u=s.node.value;if("string"==typeof u)return Vu(u)}}function Uf(e,t,r){var n=function(e,t,r){for(var n;n=t.parentPath;){if(n.isIfStatement()||n.isConditionalExpression()){if("test"===t.key)return;return n}if(n.isFunction()&&n.parentPath.scope.getBinding(r)!==e)return;t=n}}(e,t,r);if(n){for(var s=[n.get("test")],a=[],i=0;i<s.length;i++){var o=s[i];if(o.isLogicalExpression())"&&"===o.node.operator&&(s.push(o.get("left")),s.push(o.get("right")));else if(o.isBinaryExpression()){var u=Mf(r,o);u&&a.push(u)}}return a.length?gt(a[0])&&qu?{typeAnnotation:qu(a),ifStatement:n}:{typeAnnotation:Xu(a),ifStatement:n}:Uf(n,r)}}function Gf(e){return e.typeAnnotation}function Vf(){return Ka(Ds("Array"))}function Wf(){return Vf()}function Hf(){return Ka(Ds("Function"))}Gf.validParent=!0,Wf.validParent=!0;var Xf=Vt("Array.from"),qf=Vt("Object.keys"),$f=Vt("Object.values"),Kf=Vt("Object.entries");function zf(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e.is("generator")?Ka(Ds("AsyncIterator")):Ka(Ds("Promise"));if(e.node.returnType)return e.node.returnType}}var Jf=Object.freeze({__proto__:null,VariableDeclarator:function(){var e;if(this.get("id").isIdentifier()){var t=this.get("init"),r=t.getTypeAnnotation();return"AnyTypeAnnotation"===(null==(e=r)?void 0:e.type)&&t.isCallExpression()&&t.get("callee").isIdentifier({name:"Array"})&&!t.scope.hasBinding("Array",!0)&&(r=Vf()),r}},TypeCastExpression:Gf,NewExpression:function(e){if(this.get("callee").isIdentifier())return Ka(e.callee)},TemplateLiteral:function(){return hi()},UnaryExpression:function(e){var t=e.operator;return"void"===t?Ti():Wr.indexOf(t)>=0?si():Hr.indexOf(t)>=0?hi():Vr.indexOf(t)>=0?Ia():void 0},BinaryExpression:function(e){var t=e.operator;if(Mr.indexOf(t)>=0)return si();if(Lr.indexOf(t)>=0)return Ia();if("+"===t){var r=this.get("right"),n=this.get("left");return n.isBaseType("number")&&r.isBaseType("number")?si():n.isBaseType("string")||r.isBaseType("string")?hi():Ci([hi(),si()])}},LogicalExpression:function(){var e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return gt(e[0])&&qu?qu(e):Xu(e)},ConditionalExpression:function(){var e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return gt(e[0])&&qu?qu(e):Xu(e)},SequenceExpression:function(){return this.get("expressions").pop().getTypeAnnotation()},ParenthesizedExpression:function(){return this.get("expression").getTypeAnnotation()},AssignmentExpression:function(){return this.get("right").getTypeAnnotation()},UpdateExpression:function(e){var t=e.operator;if("++"===t||"--"===t)return si()},StringLiteral:function(){return hi()},NumericLiteral:function(){return si()},BooleanLiteral:function(){return Ia()},NullLiteral:function(){return ka()},RegExpLiteral:function(){return Ka(Ds("RegExp"))},ObjectExpression:function(){return Ka(Ds("Object"))},ArrayExpression:Vf,RestElement:Wf,FunctionExpression:Hf,ArrowFunctionExpression:Hf,FunctionDeclaration:Hf,ClassExpression:Hf,ClassDeclaration:Hf,CallExpression:function(){var e=this.node.callee;return qf(e)?Pa(hi()):Xf(e)||$f(e)?Pa(ja()):Kf(e)?Pa(gi([hi(),ja()])):zf(this.get("callee"))},TaggedTemplateExpression:function(){return zf(this.get("tag"))},Identifier:function(e){if(this.isReferenced()){var t=this.scope.getBinding(e.name);return t?t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,r){var n=[],s=[],a=Lf(e,t,s),i=Uf(e,t,r);if(i){var o=Lf(e,i.ifStatement);a=a.filter((function(e){return o.indexOf(e)<0})),n.push(i.typeAnnotation)}if(a.length)for(var u,l=f(a=a.concat(s));!(u=l()).done;){var c=u.value;n.push(c.getTypeAnnotation())}if(!n.length)return;if(gt(n[0])&&qu)return qu(n);if(Xu)return Xu(n);return Xu(n)}(t,this,e.name):"undefined"===e.name?Ti():"NaN"===e.name||"Infinity"===e.name?si():void e.name}}});var Yf=new WeakSet;function Qf(e,t,r){if("string"===e)return Ue(t);if("number"===e)return Me(t);if("boolean"===e)return ke(t);if("any"===e)return Ie(t);if("mixed"===e)return Be(t);if("empty"===e)return _e(t);if("void"===e)return He(t);if(r)return!1;throw new Error("Unknown base type "+e)}var Zf,eh,th,rh,nh,sh,ah,ih,oh,uh,lh,ch,ph,dh,fh,hh,mh,yh,gh,vh=Object.freeze({__proto__:null,getTypeAnnotation:function(){if(this.typeAnnotation)return this.typeAnnotation;var e=this._getTypeAnnotation()||ja();return Ge(e)&&(e=e.typeAnnotation),this.typeAnnotation=e},_getTypeAnnotation:function(){var e=this.node;if(e){if(e.typeAnnotation)return e.typeAnnotation;if(!Yf.has(e)){Yf.add(e);try{var t,r=Jf[e.type];if(r)return r.call(this,e);if(null!=(t=r=Jf[this.parentPath.type])&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{Yf.delete(e)}}}else if("init"===this.key&&this.parentPath.isVariableDeclarator()){var n=this.parentPath.parentPath,s=n.parentPath;return"left"===n.key&&s.isForInStatement()?hi():"left"===n.key&&s.isForOfStatement()?ja():Ti()}},isBaseType:function(e,t){return Qf(e,this.getTypeAnnotation(),t)},couldBeBaseType:function(e){var t=this.getTypeAnnotation();if(Ie(t))return!0;if(We(t)){for(var r,n=f(t.types);!(r=n()).done;){var s=r.value;if(Ie(s)||Qf(e,s,!0))return!0}return!1}return Qf(e,t,!0)},baseTypeStrictlyMatches:function(e){var t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!(Ie(t)||!Mt(t))&&r.type===t.type},isGenericType:function(e){var t=this.getTypeAnnotation();return Re(t)&&F(t.id,{name:e})}}),bh=zt((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",i=s.asyncIterator||"@@asyncIterator",o=s.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var s=t&&t.prototype instanceof y?t:y,a=Object.create(s.prototype),i=new j(n||[]);return a._invoke=function(e,t,r){var n=p;return function(s,a){if(n===f)throw new Error("Generator is already running");if(n===h){if("throw"===s)throw a;return I()}for(r.method=s,r.arg=a;;){var i=r.delegate;if(i){var o=C(i,r);if(o){if(o===m)continue;return o}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var u=c(e,t,r);if("normal"===u.type){if(n=r.done?h:d,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(e,r,i),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p="suspendedStart",d="suspendedYield",f="executing",h="completed",m={};function y(){}function g(){}function v(){}var b={};b[a]=function(){return this};var E=Object.getPrototypeOf,x=E&&E(E(P([])));x&&x!==r&&n.call(x,a)&&(b=x);var D=v.prototype=y.prototype=Object.create(b);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(s,a,i,o){var u=c(e[s],e,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,i,o)}),(function(e){r("throw",e,i,o)})):t.resolve(p).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,o)}))}o(u.arg)}var s;this._invoke=function(e,n){function a(){return new t((function(t,s){r(e,n,t,s)}))}return s=s?s.then(a,a):a()}}function C(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var s=c(n,e.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,m;var a=s.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function S(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function P(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,i=function r(){for(;++s<e.length;)if(n.call(e,s))return r.value=e[s],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:I}}function I(){return{value:t,done:!0}}return g.prototype=D.constructor=v,v.constructor=g,g.displayName=u(v,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,o,"GeneratorFunction")),e.prototype=Object.create(D),e},e.awrap=function(e){return{__await:e}},A(w.prototype),w.prototype[i]=function(){return this},e.AsyncIterator=w,e.async=function(t,r,n,s,a){void 0===a&&(a=Promise);var i=new w(l(t,r,n,s),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},A(D),u(D,o,"Generator"),D[a]=function(){return this},D.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=P,j.prototype={constructor:j,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(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function s(n,s){return o.type="throw",o.arg=e,r.next=n,s&&(r.method="next",r.arg=t),!!s}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return s("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return s(i.catchLoc,!0);if(this.prev<i.finallyLoc)return s(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return s(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return s(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var a=s;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},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),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var s=n.arg;T(r)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}),"/$$rollup_base$$/node_modules/regenerator-runtime");ph=new RegExp("\\/(?![\\*\\/])(?:\\[(?:(?![\\\\\\]])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])|\\\\(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))*\\]|(?![\\/\\\\\\]])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])|\\\\(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))*(\\/(?:[\\$0-9A-Z_a-z\\xAA\\xB5\\xB7\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u07FD\\u0800-\\u082D\\u0840-\\u085B\\u0860-\\u086A\\u08A0-\\u08B4\\u08B6-\\u08C7\\u08D3-\\u08E1\\u08E3-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u09FC\\u09FE\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0AF9-\\u0AFF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58-\\u0C5A\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C80-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D00-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D54-\\u0D57\\u0D5F-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D81-\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1369-\\u1371\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1878\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19DA\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1ABF\\u1AC0\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CD0-\\u1CD2\\u1CD4-\\u1CFA\\u1D00-\\u1DF9\\u1DFB-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2118-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\u9FFC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7BF\\uA7C2-\\uA7CA\\uA7F5-\\uA827\\uA82C\\uA840-\\uA873\\uA880-\\uA8C5\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA8FD-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDD40-\\uDD74\\uDDFD\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDEE0\\uDF00-\\uDF1F\\uDF2D-\\uDF4A\\uDF50-\\uDF7A\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF\\uDFD1-\\uDFD5]|\\uD801[\\uDC00-\\uDC9D\\uDCA0-\\uDCA9\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE38-\\uDE3A\\uDE3F\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE6\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD27\\uDD30-\\uDD39\\uDE80-\\uDEA9\\uDEAB\\uDEAC\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF50\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC00-\\uDC46\\uDC66-\\uDC6F\\uDC7F-\\uDCBA\\uDCD0-\\uDCE8\\uDCF0-\\uDCF9\\uDD00-\\uDD34\\uDD36-\\uDD3F\\uDD44-\\uDD47\\uDD50-\\uDD73\\uDD76\\uDD80-\\uDDC4\\uDDC9-\\uDDCC\\uDDCE-\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE37\\uDE3E\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEEA\\uDEF0-\\uDEF9\\uDF00-\\uDF03\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3B-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF50\\uDF57\\uDF5D-\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74]|\\uD805[\\uDC00-\\uDC4A\\uDC50-\\uDC59\\uDC5E-\\uDC61\\uDC80-\\uDCC5\\uDCC7\\uDCD0-\\uDCD9\\uDD80-\\uDDB5\\uDDB8-\\uDDC0\\uDDD8-\\uDDDD\\uDE00-\\uDE40\\uDE44\\uDE50-\\uDE59\\uDE80-\\uDEB8\\uDEC0-\\uDEC9\\uDF00-\\uDF1A\\uDF1D-\\uDF2B\\uDF30-\\uDF39]|\\uD806[\\uDC00-\\uDC3A\\uDCA0-\\uDCE9\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD43\\uDD50-\\uDD59\\uDDA0-\\uDDA7\\uDDAA-\\uDDD7\\uDDDA-\\uDDE1\\uDDE3\\uDDE4\\uDE00-\\uDE3E\\uDE47\\uDE50-\\uDE99\\uDE9D\\uDEC0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC36\\uDC38-\\uDC40\\uDC50-\\uDC59\\uDC72-\\uDC8F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD47\\uDD50-\\uDD59\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD98\\uDDA0-\\uDDA9\\uDEE0-\\uDEF6\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC00-\\uDC6E\\uDC80-\\uDD43]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE60-\\uDE69\\uDED0-\\uDEED\\uDEF0-\\uDEF4\\uDF00-\\uDF36\\uDF40-\\uDF43\\uDF50-\\uDF59\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF4F-\\uDF87\\uDF8F-\\uDF9F\\uDFE0\\uDFE1\\uDFE3\\uDFE4\\uDFF0\\uDFF1]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82C[\\uDC00-\\uDD1E\\uDD50-\\uDD52\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9D\\uDC9E]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB\\uDFCE-\\uDFFF]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDD00-\\uDD2C\\uDD30-\\uDD3D\\uDD40-\\uDD49\\uDD4E\\uDEC0-\\uDEF9]|\\uD83A[\\uDC00-\\uDCC4\\uDCD0-\\uDCD6\\uDD00-\\uDD4B\\uDD50-\\uDD59]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD83E[\\uDFF0-\\uDFF9]|\\uD869[\\uDC00-\\uDEDD\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A]|\\uDB40[\\uDD00-\\uDDEF])*|\\\\)?","y"),ch=new RegExp("--|\\+\\+|=>|\\.{3}|\\??\\.(?!\\d)|(?:&&|\\|\\||\\?\\?|[+\\-%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\\/(?![\\/*]))=?|[?~,:;[\\](){}]","y"),Zf=new RegExp("(?=(?:[\\$A-Z\\\\_a-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u08A0-\\u08B4\\u08B6-\\u08C7\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2118-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309B-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\u9FFC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7BF\\uA7C2-\\uA7CA\\uA7F5-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDD40-\\uDD74\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF4A\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF\\uDFD1-\\uDFD5]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEC0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC00-\\uDC6E\\uDC80-\\uDD43]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82C[\\uDC00-\\uDD1E\\uDD50-\\uDD52\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD838[\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDEC0-\\uDEEB]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDD\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A]))(?:(?:[\\$0-9A-Z_a-z\\xAA\\xB5\\xB7\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u07FD\\u0800-\\u082D\\u0840-\\u085B\\u0860-\\u086A\\u08A0-\\u08B4\\u08B6-\\u08C7\\u08D3-\\u08E1\\u08E3-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u09FC\\u09FE\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0AF9-\\u0AFF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58-\\u0C5A\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C80-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D00-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D54-\\u0D57\\u0D5F-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D81-\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1369-\\u1371\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1878\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19DA\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1ABF\\u1AC0\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CD0-\\u1CD2\\u1CD4-\\u1CFA\\u1D00-\\u1DF9\\u1DFB-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2118-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\u9FFC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7BF\\uA7C2-\\uA7CA\\uA7F5-\\uA827\\uA82C\\uA840-\\uA873\\uA880-\\uA8C5\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA8FD-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDD40-\\uDD74\\uDDFD\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDEE0\\uDF00-\\uDF1F\\uDF2D-\\uDF4A\\uDF50-\\uDF7A\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF\\uDFD1-\\uDFD5]|\\uD801[\\uDC00-\\uDC9D\\uDCA0-\\uDCA9\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE38-\\uDE3A\\uDE3F\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE6\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD27\\uDD30-\\uDD39\\uDE80-\\uDEA9\\uDEAB\\uDEAC\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF50\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC00-\\uDC46\\uDC66-\\uDC6F\\uDC7F-\\uDCBA\\uDCD0-\\uDCE8\\uDCF0-\\uDCF9\\uDD00-\\uDD34\\uDD36-\\uDD3F\\uDD44-\\uDD47\\uDD50-\\uDD73\\uDD76\\uDD80-\\uDDC4\\uDDC9-\\uDDCC\\uDDCE-\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE37\\uDE3E\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEEA\\uDEF0-\\uDEF9\\uDF00-\\uDF03\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3B-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF50\\uDF57\\uDF5D-\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74]|\\uD805[\\uDC00-\\uDC4A\\uDC50-\\uDC59\\uDC5E-\\uDC61\\uDC80-\\uDCC5\\uDCC7\\uDCD0-\\uDCD9\\uDD80-\\uDDB5\\uDDB8-\\uDDC0\\uDDD8-\\uDDDD\\uDE00-\\uDE40\\uDE44\\uDE50-\\uDE59\\uDE80-\\uDEB8\\uDEC0-\\uDEC9\\uDF00-\\uDF1A\\uDF1D-\\uDF2B\\uDF30-\\uDF39]|\\uD806[\\uDC00-\\uDC3A\\uDCA0-\\uDCE9\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD43\\uDD50-\\uDD59\\uDDA0-\\uDDA7\\uDDAA-\\uDDD7\\uDDDA-\\uDDE1\\uDDE3\\uDDE4\\uDE00-\\uDE3E\\uDE47\\uDE50-\\uDE99\\uDE9D\\uDEC0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC36\\uDC38-\\uDC40\\uDC50-\\uDC59\\uDC72-\\uDC8F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD47\\uDD50-\\uDD59\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD98\\uDDA0-\\uDDA9\\uDEE0-\\uDEF6\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC00-\\uDC6E\\uDC80-\\uDD43]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE60-\\uDE69\\uDED0-\\uDEED\\uDEF0-\\uDEF4\\uDF00-\\uDF36\\uDF40-\\uDF43\\uDF50-\\uDF59\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF4F-\\uDF87\\uDF8F-\\uDF9F\\uDFE0\\uDFE1\\uDFE3\\uDFE4\\uDFF0\\uDFF1]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82C[\\uDC00-\\uDD1E\\uDD50-\\uDD52\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9D\\uDC9E]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB\\uDFCE-\\uDFFF]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDD00-\\uDD2C\\uDD30-\\uDD3D\\uDD40-\\uDD49\\uDD4E\\uDEC0-\\uDEF9]|\\uD83A[\\uDC00-\\uDCC4\\uDCD0-\\uDCD6\\uDD00-\\uDD4B\\uDD50-\\uDD59]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD83E[\\uDFF0-\\uDFF9]|\\uD869[\\uDC00-\\uDEDD\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A]|\\uDB40[\\uDD00-\\uDDEF])|\\\\u[0-9A-Fa-f]{4}|\\\\u\\{[0-9A-Fa-f]+\\})+","y"),fh=new RegExp("(['\"])(?:(?!\\1)[^\\\\\\n\\r]|\\\\(?:\\r\\n|[^]))*(\\1)?","y"),lh=new RegExp("(?:0[xX][\\da-fA-F](?:_?[\\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\\d)*n|(?:(?:0(?!\\d)|0\\d*[89]\\d*|[1-9](?:_?\\d)*)(?:\\.(?:\\d(?:_?\\d)*)?)?|\\.\\d(?:_?\\d)*)(?:[eE][+-]?\\d(?:_?\\d)*)?|0[0-7]+","y"),hh=new RegExp("[`}](?:[^`\\\\$]|\\\\[^]|\\$(?!\\{))*(`|\\$\\{)?","y"),gh=new RegExp("[\\t\\x0B\\f \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF]+","y"),ih=new RegExp("\\r?\\n|[\\r\\u2028\\u2029]","y"),oh=new RegExp("\\/\\*(?:[^*]|\\*(?!\\/))*(\\*\\/)?","y"),dh=new RegExp("\\/\\/.*","y"),th=new RegExp("[<>.:={}]|\\/(?![\\/*])","y"),eh=new RegExp("(?:[\\$A-Z_a-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u08A0-\\u08B4\\u08B6-\\u08C7\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2118-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309B-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\u9FFC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7BF\\uA7C2-\\uA7CA\\uA7F5-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDD40-\\uDD74\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF4A\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF\\uDFD1-\\uDFD5]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEC0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC00-\\uDC6E\\uDC80-\\uDD43]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82C[\\uDC00-\\uDD1E\\uDD50-\\uDD52\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD838[\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDEC0-\\uDEEB]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDD\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A])(?:[\\$\\x2D0-9A-Z_a-z\\xAA\\xB5\\xB7\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u07FD\\u0800-\\u082D\\u0840-\\u085B\\u0860-\\u086A\\u08A0-\\u08B4\\u08B6-\\u08C7\\u08D3-\\u08E1\\u08E3-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u09FC\\u09FE\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0AF9-\\u0AFF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58-\\u0C5A\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C80-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D00-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D54-\\u0D57\\u0D5F-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D81-\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1369-\\u1371\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1878\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19DA\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1ABF\\u1AC0\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CD0-\\u1CD2\\u1CD4-\\u1CFA\\u1D00-\\u1DF9\\u1DFB-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2118-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\u9FFC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7BF\\uA7C2-\\uA7CA\\uA7F5-\\uA827\\uA82C\\uA840-\\uA873\\uA880-\\uA8C5\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA8FD-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDD40-\\uDD74\\uDDFD\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDEE0\\uDF00-\\uDF1F\\uDF2D-\\uDF4A\\uDF50-\\uDF7A\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF\\uDFD1-\\uDFD5]|\\uD801[\\uDC00-\\uDC9D\\uDCA0-\\uDCA9\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE38-\\uDE3A\\uDE3F\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE6\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD27\\uDD30-\\uDD39\\uDE80-\\uDEA9\\uDEAB\\uDEAC\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF50\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC00-\\uDC46\\uDC66-\\uDC6F\\uDC7F-\\uDCBA\\uDCD0-\\uDCE8\\uDCF0-\\uDCF9\\uDD00-\\uDD34\\uDD36-\\uDD3F\\uDD44-\\uDD47\\uDD50-\\uDD73\\uDD76\\uDD80-\\uDDC4\\uDDC9-\\uDDCC\\uDDCE-\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE37\\uDE3E\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEEA\\uDEF0-\\uDEF9\\uDF00-\\uDF03\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3B-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF50\\uDF57\\uDF5D-\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74]|\\uD805[\\uDC00-\\uDC4A\\uDC50-\\uDC59\\uDC5E-\\uDC61\\uDC80-\\uDCC5\\uDCC7\\uDCD0-\\uDCD9\\uDD80-\\uDDB5\\uDDB8-\\uDDC0\\uDDD8-\\uDDDD\\uDE00-\\uDE40\\uDE44\\uDE50-\\uDE59\\uDE80-\\uDEB8\\uDEC0-\\uDEC9\\uDF00-\\uDF1A\\uDF1D-\\uDF2B\\uDF30-\\uDF39]|\\uD806[\\uDC00-\\uDC3A\\uDCA0-\\uDCE9\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD43\\uDD50-\\uDD59\\uDDA0-\\uDDA7\\uDDAA-\\uDDD7\\uDDDA-\\uDDE1\\uDDE3\\uDDE4\\uDE00-\\uDE3E\\uDE47\\uDE50-\\uDE99\\uDE9D\\uDEC0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC36\\uDC38-\\uDC40\\uDC50-\\uDC59\\uDC72-\\uDC8F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD47\\uDD50-\\uDD59\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD98\\uDDA0-\\uDDA9\\uDEE0-\\uDEF6\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC00-\\uDC6E\\uDC80-\\uDD43]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE60-\\uDE69\\uDED0-\\uDEED\\uDEF0-\\uDEF4\\uDF00-\\uDF36\\uDF40-\\uDF43\\uDF50-\\uDF59\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF4F-\\uDF87\\uDF8F-\\uDF9F\\uDFE0\\uDFE1\\uDFE3\\uDFE4\\uDFF0\\uDFF1]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82C[\\uDC00-\\uDD1E\\uDD50-\\uDD52\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9D\\uDC9E]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB\\uDFCE-\\uDFFF]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDD00-\\uDD2C\\uDD30-\\uDD3D\\uDD40-\\uDD49\\uDD4E\\uDEC0-\\uDEF9]|\\uD83A[\\uDC00-\\uDCC4\\uDCD0-\\uDCD6\\uDD00-\\uDD4B\\uDD50-\\uDD59]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD83E[\\uDFF0-\\uDFF9]|\\uD869[\\uDC00-\\uDEDD\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A]|\\uDB40[\\uDD00-\\uDDEF])*","y"),rh=new RegExp("(['\"])(?:(?!\\1)[^])*(\\1)?","y"),nh=new RegExp("[^<>{}]+","y"),yh=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,mh=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,sh=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,ah=/^(?:return|throw|yield)$/,uh=RegExp(ih.source),bh.mark((function e(t,r){var n,s,a,i,o,u,l,c,p,d,f,h,m,y,g,v;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=(void 0===r?{}:r).jsx,s=void 0!==n&&n,c=t.length,u=0,l="",v=[{tag:"JS"}],a=[],m=0,y=!1;case 8:if(!(u<c)){e.next=231;break}d=v[v.length-1],e.t0=d.tag,e.next="JS"===e.t0||"JSNonExpressionParen"===e.t0||"InterpolationInTemplate"===e.t0||"InterpolationInJSX"===e.t0?13:"JSXTag"===e.t0||"JSXTagEnd"===e.t0?136:"JSXChildren"===e.t0?172:195;break;case 13:if("/"!==t[u]||!yh.test(l)&&!sh.test(l)){e.next=22;break}if(ph.lastIndex=u,!(p=ph.exec(t))){e.next=22;break}return u=ph.lastIndex,l=p[0],y=!0,e.next=21,{type:"RegularExpressionLiteral",value:p[0],closed:void 0!==p[1]&&"\\"!==p[1]};case 21:return e.abrupt("continue",8);case 22:if(ch.lastIndex=u,!(p=ch.exec(t))){e.next=93;break}g=p[0],f=ch.lastIndex,h=g,e.t1=g,e.next="("===e.t1?30:")"===e.t1?34:"{"===e.t1?38:"}"===e.t1?43:"]"===e.t1?74:"++"===e.t1||"--"===e.t1?76:"<"===e.t1?78:87;break;case 30:return"?NonExpressionParenKeyword"===l&&v.push({tag:"JSNonExpressionParen",nesting:m}),m++,y=!1,e.abrupt("break",88);case 34:return m--,y=!0,"JSNonExpressionParen"===d.tag&&m===d.nesting&&(v.pop(),h="?NonExpressionParenEnd",y=!1),e.abrupt("break",88);case 38:return ch.lastIndex=0,o=!mh.test(l)&&(yh.test(l)||sh.test(l)),a.push(o),y=!1,e.abrupt("break",88);case 43:e.t2=d.tag,e.next="InterpolationInTemplate"===e.t2?46:"InterpolationInJSX"===e.t2?64:71;break;case 46:if(a.length!==d.nesting){e.next=63;break}if(hh.lastIndex=u,p=hh.exec(t),u=hh.lastIndex,l=p[0],"${"!==p[1]){e.next=58;break}return l="?InterpolationInTemplate",y=!1,e.next=56,{type:"TemplateMiddle",value:p[0]};case 56:e.next=62;break;case 58:return v.pop(),y=!0,e.next=62,{type:"TemplateTail",value:p[0],closed:"`"===p[1]};case 62:return e.abrupt("continue",8);case 63:return e.abrupt("break",71);case 64:if(a.length!==d.nesting){e.next=71;break}return v.pop(),u+=1,l="}",e.next=70,{type:"JSXPunctuator",value:"}"};case 70:return e.abrupt("continue",8);case 71:return y=a.pop(),h=y?"?ExpressionBraceEnd":"}",e.abrupt("break",88);case 74:return y=!0,e.abrupt("break",88);case 76:return h=y?"?PostfixIncDec":"?UnaryIncDec",e.abrupt("break",88);case 78:if(!s||!yh.test(l)&&!sh.test(l)){e.next=85;break}return v.push({tag:"JSXTag"}),u+=1,l="<",e.next=84,{type:"JSXPunctuator",value:g};case 84:return e.abrupt("continue",8);case 85:return y=!1,e.abrupt("break",88);case 87:y=!1;case 88:return u=f,l=h,e.next=92,{type:"Punctuator",value:g};case 92:return e.abrupt("continue",8);case 93:if(Zf.lastIndex=u,!(p=Zf.exec(t))){e.next=103;break}switch(u=Zf.lastIndex,h=p[0],p[0]){case"for":case"if":case"while":case"with":"."!==l&&"?."!==l&&(h="?NonExpressionParenKeyword")}return l=h,y=!sh.test(p[0]),e.next=102,{type:"IdentifierName",value:p[0]};case 102:return e.abrupt("continue",8);case 103:if(fh.lastIndex=u,!(p=fh.exec(t))){e.next=111;break}return u=fh.lastIndex,l=p[0],y=!0,e.next=110,{type:"StringLiteral",value:p[0],closed:void 0!==p[2]};case 110:return e.abrupt("continue",8);case 111:if(lh.lastIndex=u,!(p=lh.exec(t))){e.next=119;break}return u=lh.lastIndex,l=p[0],y=!0,e.next=118,{type:"NumericLiteral",value:p[0]};case 118:return e.abrupt("continue",8);case 119:if(hh.lastIndex=u,!(p=hh.exec(t))){e.next=135;break}if(u=hh.lastIndex,l=p[0],"${"!==p[1]){e.next=131;break}return l="?InterpolationInTemplate",v.push({tag:"InterpolationInTemplate",nesting:a.length}),y=!1,e.next=129,{type:"TemplateHead",value:p[0]};case 129:e.next=134;break;case 131:return y=!0,e.next=134,{type:"NoSubstitutionTemplate",value:p[0],closed:"`"===p[1]};case 134:return e.abrupt("continue",8);case 135:return e.abrupt("break",195);case 136:if(th.lastIndex=u,!(p=th.exec(t))){e.next=157;break}u=th.lastIndex,h=p[0],e.t3=p[0],e.next="<"===e.t3?143:">"===e.t3?145:"{"===e.t3?148:"/"===e.t3?152:153;break;case 143:return v.push({tag:"JSXTag"}),e.abrupt("break",153);case 145:return v.pop(),"/"===l||"JSXTagEnd"===d.tag?(h="?JSX",y=!0):v.push({tag:"JSXChildren"}),e.abrupt("break",153);case 148:return v.push({tag:"InterpolationInJSX",nesting:a.length}),h="?InterpolationInJSX",y=!1,e.abrupt("break",153);case 152:"<"===l&&(v.pop(),"JSXChildren"===v[v.length-1].tag&&v.pop(),v.push({tag:"JSXTagEnd"}));case 153:return l=h,e.next=156,{type:"JSXPunctuator",value:p[0]};case 156:return e.abrupt("continue",8);case 157:if(eh.lastIndex=u,!(p=eh.exec(t))){e.next=164;break}return u=eh.lastIndex,l=p[0],e.next=163,{type:"JSXIdentifier",value:p[0]};case 163:return e.abrupt("continue",8);case 164:if(rh.lastIndex=u,!(p=rh.exec(t))){e.next=171;break}return u=rh.lastIndex,l=p[0],e.next=170,{type:"JSXString",value:p[0],closed:void 0!==p[2]};case 170:return e.abrupt("continue",8);case 171:return e.abrupt("break",195);case 172:if(nh.lastIndex=u,!(p=nh.exec(t))){e.next=179;break}return u=nh.lastIndex,l=p[0],e.next=178,{type:"JSXText",value:p[0]};case 178:return e.abrupt("continue",8);case 179:e.t4=t[u],e.next="<"===e.t4?182:"{"===e.t4?188:195;break;case 182:return v.push({tag:"JSXTag"}),u++,l="<",e.next=187,{type:"JSXPunctuator",value:"<"};case 187:return e.abrupt("continue",8);case 188:return v.push({tag:"InterpolationInJSX",nesting:a.length}),u++,l="?InterpolationInJSX",y=!1,e.next=194,{type:"JSXPunctuator",value:"{"};case 194:return e.abrupt("continue",8);case 195:if(gh.lastIndex=u,!(p=gh.exec(t))){e.next=201;break}return u=gh.lastIndex,e.next=200,{type:"WhiteSpace",value:p[0]};case 200:return e.abrupt("continue",8);case 201:if(ih.lastIndex=u,!(p=ih.exec(t))){e.next=209;break}return u=ih.lastIndex,y=!1,ah.test(l)&&(l="?NoLineTerminatorHere"),e.next=208,{type:"LineTerminatorSequence",value:p[0]};case 208:return e.abrupt("continue",8);case 209:if(oh.lastIndex=u,!(p=oh.exec(t))){e.next=216;break}return u=oh.lastIndex,uh.test(p[0])&&(y=!1,ah.test(l)&&(l="?NoLineTerminatorHere")),e.next=215,{type:"MultiLineComment",value:p[0],closed:void 0!==p[1]};case 215:return e.abrupt("continue",8);case 216:if(dh.lastIndex=u,!(p=dh.exec(t))){e.next=223;break}return u=dh.lastIndex,y=!1,e.next=222,{type:"SingleLineComment",value:p[0]};case 222:return e.abrupt("continue",8);case 223:return i=String.fromCodePoint(t.codePointAt(u)),u+=i.length,l=i,y=!1,e.next=229,{type:d.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:i};case 229:e.next=8;break;case 231:return e.abrupt("return",void 0);case 232:case"end":return e.stop()}}),e)}));var Eh=Object.defineProperty({default:/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,matchToToken:function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},"__esModule",{value:!0}),xh=/[|\\{}()[\]^$+*?.]/g,Dh=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(xh,"\\$&")},Ah={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},wh=zt((function(e){var t={};for(var r in Ah)Ah.hasOwnProperty(r)&&(t[Ah[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in n)if(n.hasOwnProperty(s)){if(!("channels"in n[s]))throw new Error("missing channels property: "+s);if(!("labels"in n[s]))throw new Error("missing channel labels property: "+s);if(n[s].labels.length!==n[s].channels)throw new Error("channel and label counts mismatch: "+s);var a=n[s].channels,i=n[s].labels;delete n[s].channels,delete n[s].labels,Object.defineProperty(n[s],"channels",{value:a}),Object.defineProperty(n[s],"labels",{value:i})}function o(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}n.rgb.hsl=function(e){var t,r,n=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(n,s,a),o=Math.max(n,s,a),u=o-i;return o===i?t=0:n===o?t=(s-a)/u:s===o?t=2+(a-n)/u:a===o&&(t=4+(n-s)/u),(t=Math.min(60*t,360))<0&&(t+=360),r=(i+o)/2,[t,100*(o===i?0:r<=.5?u/(o+i):u/(2-o-i)),100*r]},n.rgb.hsv=function(e){var t,r,n,s,a,i=e[0]/255,o=e[1]/255,u=e[2]/255,l=Math.max(i,o,u),c=l-Math.min(i,o,u),p=function(e){return(l-e)/6/c+.5};return 0===c?s=a=0:(a=c/l,t=p(i),r=p(o),n=p(u),i===l?s=n-r:o===l?s=1/3+t-n:u===l&&(s=2/3+r-t),s<0?s+=1:s>1&&(s-=1)),[360*s,100*a,100*l]},n.rgb.hwb=function(e){var t=e[0],r=e[1],s=e[2];return[n.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,s))),100*(s=1-1/255*Math.max(t,Math.max(r,s)))]},n.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,s=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-s)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-s-t)/(1-t)||0),100*t]},n.rgb.keyword=function(e){var r=t[e];if(r)return r;var n,s=1/0;for(var a in Ah)if(Ah.hasOwnProperty(a)){var i=o(e,Ah[a]);i<s&&(s=i,n=a)}return n},n.keyword.rgb=function(e){return Ah[e]},n.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},n.rgb.lab=function(e){var t=n.rgb.xyz(e),r=t[0],s=t[1],a=t[2];return s/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116)-16,500*(r-s),200*(s-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},n.hsl.rgb=function(e){var t,r,n,s,a,i=e[0]/360,o=e[1]/100,u=e[2]/100;if(0===o)return[a=255*u,a,a];t=2*u-(r=u<.5?u*(1+o):u+o-u*o),s=[0,0,0];for(var l=0;l<3;l++)(n=i+1/3*-(l-1))<0&&n++,n>1&&n--,a=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,s[l]=255*a;return s},n.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,s=r,a=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,s*=a<=1?a:2-a,[t,100*(0===n?2*s/(a+s):2*r/(n+r)),100*((n+r)/2)]},n.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,s=Math.floor(t)%6,a=t-Math.floor(t),i=255*n*(1-r),o=255*n*(1-r*a),u=255*n*(1-r*(1-a));switch(n*=255,s){case 0:return[n,u,i];case 1:return[o,n,i];case 2:return[i,n,u];case 3:return[i,o,n];case 4:return[u,i,n];case 5:return[n,i,o]}},n.hsv.hsl=function(e){var t,r,n,s=e[0],a=e[1]/100,i=e[2]/100,o=Math.max(i,.01);return n=(2-a)*i,r=a*o,[s,100*(r=(r/=(t=(2-a)*o)<=1?t:2-t)||0),100*(n/=2)]},n.hwb.rgb=function(e){var t,r,n,s,a,i,o,u=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),n=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(n=1-n),s=l+n*((r=1-c)-l),t){default:case 6:case 0:a=r,i=s,o=l;break;case 1:a=s,i=r,o=l;break;case 2:a=l,i=r,o=s;break;case 3:a=l,i=s,o=r;break;case 4:a=s,i=l,o=r;break;case 5:a=r,i=l,o=s}return[255*a,255*i,255*o]},n.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,s=e[3]/100;return[255*(1-Math.min(1,t*(1-s)+s)),255*(1-Math.min(1,r*(1-s)+s)),255*(1-Math.min(1,n*(1-s)+s))]},n.xyz.rgb=function(e){var t,r,n,s=e[0]/100,a=e[1]/100,i=e[2]/100;return r=-.9689*s+1.8758*a+.0415*i,n=.0557*s+-.204*a+1.057*i,t=(t=3.2406*s+-1.5372*a+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(e){var t,r,n,s=e[0];t=e[1]/500+(r=(s+16)/116),n=r-e[2]/200;var a=Math.pow(r,3),i=Math.pow(t,3),o=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},n.lab.lch=function(e){var t,r=e[0],n=e[1],s=e[2];return(t=360*Math.atan2(s,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+s*s),t]},n.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},n.rgb.ansi16=function(e){var t=e[0],r=e[1],s=e[2],a=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var i=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===a&&(i+=60),i},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},n.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},n.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},n.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,s=e[2]/255,a=Math.max(Math.max(r,n),s),i=Math.min(Math.min(r,n),s),o=a-i;return t=o<=0?0:a===r?(n-s)/o%6:a===n?2+(s-r)/o:4+(r-n)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?i/(1-o):0)]},n.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,s=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(s=(r-.5*n)/(1-n)),[e[0],100*n,100*s]},n.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,s=0;return n<1&&(s=(r-n)/(1-n)),[e[0],100*n,100*s]},n.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var s,a=[0,0,0],i=t%1*6,o=i%1,u=1-o;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=u,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=u,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=u}return s=(1-r)*n,[255*(r*a[0]+s),255*(r*a[1]+s),255*(r*a[2]+s)]},n.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},n.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},n.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},n.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,s=0;return n<1&&(s=(r-n)/(1-n)),[e[0],100*n,100*s]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}),"/$$rollup_base$$/packages/babel-highlight/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert");function Ch(e){var t=function(){for(var e={},t=Object.keys(wh),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),s=Object.keys(wh[n]),a=s.length,i=0;i<a;i++){var o=s[i],u=t[o];-1===u.distance&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(o))}return t}function Sh(e,t){return function(r){return t(e(r))}}function Th(e,t){for(var r=[t[e].parent,e],n=wh[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),n=Sh(wh[t[s].parent][s],n),s=t[s].parent;return n.conversion=r,n}var jh={};Object.keys(wh).forEach((function(e){jh[e]={},Object.defineProperty(jh[e],"channels",{value:wh[e].channels}),Object.defineProperty(jh[e],"labels",{value:wh[e].labels});var t=function(e){for(var t=Ch(e),r={},n=Object.keys(t),s=n.length,a=0;a<s;a++){var i=n[a];null!==t[i].parent&&(r[i]=Th(i,t))}return r}(e);Object.keys(t).forEach((function(r){var n=t[r];jh[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,s=0;s<n;s++)r[s]=Math.round(r[s]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),jh[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))}));var Ph=jh,Ih=zt((function(e){var t=function(e,t){return function(){var r=e.apply(Ph,arguments);return"\x1b["+(r+t)+"m"}},r=function(e,t){return function(){var r=e.apply(Ph,arguments);return"\x1b["+(38+t)+";5;"+r+"m"}},n=function(e,t){return function(){var r=e.apply(Ph,arguments);return"\x1b["+(38+t)+";2;"+r[0]+";"+r[1]+";"+r[2]+"m"}};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.grey=s.color.gray;for(var a=0,i=Object.keys(s);a<i.length;a++){for(var o=i[a],u=s[o],l=0,c=Object.keys(u);l<c.length;l++){var p=c[l],d=u[p];s[p]={open:"\x1b["+d[0]+"m",close:"\x1b["+d[1]+"m"},u[p]=s[p],e.set(d[0],d[1])}Object.defineProperty(s,o,{value:u,enumerable:!1}),Object.defineProperty(s,"codes",{value:e,enumerable:!1})}var f=function(e){return e},h=function(e,t,r){return[e,t,r]};s.color.close="\x1b[39m",s.bgColor.close="\x1b[49m",s.color.ansi={ansi:t(f,0)},s.color.ansi256={ansi256:r(f,0)},s.color.ansi16m={rgb:n(h,0)},s.bgColor.ansi={ansi:t(f,10)},s.bgColor.ansi256={ansi256:r(f,10)},s.bgColor.ansi16m={rgb:n(h,10)};for(var m=0,y=Object.keys(Ph);m<y.length;m++){var g=y[m];if("object"==typeof Ph[g]){var v=Ph[g];"ansi16"===g&&(g="ansi"),"ansi16"in v&&(s.color.ansi[g]=t(v.ansi16,0),s.bgColor.ansi[g]=t(v.ansi16,10)),"ansi256"in v&&(s.color.ansi256[g]=r(v.ansi256,0),s.bgColor.ansi256[g]=r(v.ansi256,10)),"rgb"in v&&(s.color.ansi16m[g]=n(v.rgb,0),s.bgColor.ansi16m[g]=n(v.rgb,10))}}return s}})}),"/$$rollup_base$$/packages/babel-highlight/node_modules/chalk/node_modules/ansi-styles"),Fh=!1,kh=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Oh=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Rh=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Nh=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Bh=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function _h(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Bh.get(e)||e}function Lh(e,t){for(var r,n,s=[],a=f(t.trim().split(/\s*,\s*/g));!(n=a()).done;){var i=n.value;if(isNaN(i)){if(!(r=i.match(Rh)))throw new Error("Invalid Chalk template style argument: "+i+" (in style '"+e+"')");s.push(r[2].replace(Nh,(function(e,t,r){return t?_h(t):r})))}else s.push(Number(i))}return s}function Mh(e){Oh.lastIndex=0;for(var t,r=[];null!==(t=Oh.exec(e));){var n=t[1];if(t[2]){var s=Lh(n,t[2]);r.push([n].concat(s))}else r.push([n])}return r}function Uh(e,t){for(var r,n={},s=f(t);!(r=s()).done;)for(var a,i=r.value,o=f(i.styles);!(a=o()).done;){var u=a.value;n[u[0]]=i.inverse?null:u.slice(1)}for(var l=e,c=0,p=Object.keys(n);c<p.length;c++){var d=p[c];if(Array.isArray(n[d])){if(!(d in l))throw new Error("Unknown Chalk style: "+d);l=n[d].length>0?l[d].apply(l,n[d]):l[d]}}return l}var Gh=function(e,t){var r=[],n=[],s=[];if(t.replace(kh,(function(t,a,i,o,u,l){if(a)s.push(_h(a));else if(o){var c=s.join("");s=[],n.push(0===r.length?c:Uh(e,r)(c)),r.push({inverse:i,styles:Mh(o)})}else if(u){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");n.push(Uh(e,r)(s.join(""))),s=[],r.pop()}else s.push(l)})),n.push(s.join("")),r.length>0){var a="Chalk template literal is missing "+r.length+" closing bracket"+(1===r.length?"":"s")+" (`}`)";throw new Error(a)}return n.join("")},Vh=zt((function(e){var t=Fh,r="win32"===ar.platform&&!(ar.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],s=new Set(["gray"]),a=Object.create(null);function i(e,t){t=t||{};e.level=void 0===t.level?0:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function o(e){if(!this||!(this instanceof o)||this.template){var t={};return i(t,e),t.template=function(){var e=[].slice.call(arguments);return x.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=o,t.template}i(this,e)}r&&(Ih.blue.open="\x1b[94m");for(var u=function(){var e=c[l];Ih[e].closeRe=new RegExp(Dh(Ih[e].close),"g"),a[e]={get:function(){var t=Ih[e];return b.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},l=0,c=Object.keys(Ih);l<c.length;l++)u();a.visible={get:function(){return b.call(this,this._styles||[],!0,"visible")}},Ih.color.closeRe=new RegExp(Dh(Ih.color.close),"g");for(var p=function(){var e=h[d];if(s.has(e))return"continue";a[e]={get:function(){var t=this.level;return function(){var r=Ih.color[n[t]][e].apply(null,arguments),s={open:r,close:Ih.color.close,closeRe:Ih.color.closeRe};return b.call(this,this._styles?this._styles.concat(s):[s],this._empty,e)}}}},d=0,h=Object.keys(Ih.color.ansi);d<h.length;d++)p();Ih.bgColor.closeRe=new RegExp(Dh(Ih.bgColor.close),"g");for(var m=function(){var e=g[y];if(s.has(e))return"continue";var t="bg"+e[0].toUpperCase()+e.slice(1);a[t]={get:function(){var t=this.level;return function(){var r=Ih.bgColor[n[t]][e].apply(null,arguments),s={open:r,close:Ih.bgColor.close,closeRe:Ih.bgColor.closeRe};return b.call(this,this._styles?this._styles.concat(s):[s],this._empty,e)}}}},y=0,g=Object.keys(Ih.bgColor.ansi);y<g.length;y++)m();var v=Object.defineProperties((function(){}),a);function b(e,t,r){var n=function e(){return E.apply(e,arguments)};n._styles=e,n._empty=t;var s=this;return Object.defineProperty(n,"level",{enumerable:!0,get:function(){return s.level},set:function(e){s.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:function(){return s.enabled},set:function(e){s.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=v,n}function E(){var e=arguments,t=e.length,n=String(arguments[0]);if(0===t)return"";if(t>1)for(var s=1;s<t;s++)n+=" "+e[s];if(!this.enabled||this.level<=0||!n)return this._empty?"":n;var a=Ih.dim.open;r&&this.hasGrey&&(Ih.dim.open="");for(var i,o=f(this._styles.slice().reverse());!(i=o()).done;){var u=i.value;n=(n=u.open+n.replace(u.closeRe,u.open)+u.close).replace(/\r?\n/g,u.close+"$&"+u.open)}return Ih.dim.open=a,n}function x(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var r=[].slice.call(arguments,2),n=[t.raw[0]],s=1;s<t.length;s++)n.push(String(r[s-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[s]));return Gh(e,n.join(""))}Object.defineProperties(o.prototype,a),e.exports=o(),e.exports.supportsColor=t,e.exports.default=e.exports}),"/$$rollup_base$$/packages/babel-highlight/node_modules/chalk"),Wh=new Set(["as","async","from","get","of","set"]);var Hh,Xh=/\r\n|[\n\r\u2028\u2029]/,qh=/^[()[\]{}]$/,$h=/^[a-z][\w-]*$/i,Kh=function(e,t,r){if("name"===e.type){if(jr(e.value)||Cr(e.value,!0)||Wh.has(e.value))return"keyword";if($h.test(e.value)&&("<"===r[t-1]||"</"==r.substr(t-2,2)))return"jsxIdentifier";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}return"punctuator"===e.type&&qh.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};function zh(e){return!!Vh.supportsColor||e.forceColor}function Jh(e){return e.forceColor?new Vh.constructor({enabled:!0,level:1}):Vh}function Yh(e,t){return void 0===t&&(t={}),zh(t)?function(e,t){for(var r,n="",s=function(){var t=r.value,s=t.type,a=t.value,i=e[s];n+=i?a.split(Xh).map((function(e){return i(e)})).join("\n"):a},a=f(Hh(t));!(r=a()).done;)s();return n}(function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(Jh(t)),e):e}Hh=bh.mark((function e(t){var r,n;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=Eh.default.exec(t))){e.next=6;break}return n=Eh.matchToToken(r),e.next=4,{type:Kh(n,r.index,t),value:n.value};case 4:e.next=0;break;case 6:case"end":return e.stop()}}),e)}));var Qh=/\r\n|[\n\r\u2028\u2029]/;function Zh(e,t,r){void 0===r&&(r={});var n=(r.highlightCode||r.forceColor)&&zh(r),s=Jh(r),a=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),i=function(e,t){return n?e(t):t},o=function(e,t,r){var n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),a=r||{},i=a.linesAbove,o=void 0===i?2:i,u=a.linesBelow,l=void 0===u?3:u,c=n.line,p=n.column,d=s.line,f=s.column,h=Math.max(c-(o+1),0),m=Math.min(t.length,d+l);-1===c&&(h=0),-1===d&&(m=t.length);var y=d-c,g={};if(y)for(var v=0;v<=y;v++){var b=v+c;if(p)if(0===v){var E=t[b-1].length;g[b]=[p,E-p+1]}else if(v===y)g[b]=[0,f];else{var x=t[b-v].length;g[b]=[0,x]}else g[b]=!0}else g[c]=p===f?!p||[p,0]:[p,f-p];return{start:h,end:m,markerLines:g}}(t,e.split(Qh),r),u=o.start,l=o.end,c=o.markerLines,p=t.start&&"number"==typeof t.start.column,d=String(l).length,f=(n?Yh(e,r):e).split(Qh).slice(u,l).map((function(e,t){var n=u+1+t,s=" "+(" "+n).slice(-d)+" |",o=c[n],l=!c[n+1];if(o){var p="";if(Array.isArray(o)){var f=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),h=o[1]||1;p=["\n ",i(a.gutter,s.replace(/\d/g," "))," ",f,i(a.marker,"^").repeat(h)].join(""),l&&r.message&&(p+=" "+i(a.message,r.message))}return[i(a.marker,">"),i(a.gutter,s),e.length>0?" "+e:"",p].join("")}return" "+i(a.gutter,s)+(e.length>0?" "+e:"")})).join("\n");return r.message&&!p&&(f=""+" ".repeat(d+1)+r.message+"\n"+f),n?s.reset(f):f}var em=!0,tm=!0,rm=!0,nm=!0,sm=!0,am=function(e,t){void 0===t&&(t={}),this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.updateContext=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null},im=new Map;function om(e,t){void 0===t&&(t={}),t.keyword=e;var r=new am(e,t);return im.set(e,r),r}function um(e,t){return new am(e,{beforeExpr:em,binop:t})}var lm={num:new am("num",{startsExpr:tm}),bigint:new am("bigint",{startsExpr:tm}),decimal:new am("decimal",{startsExpr:tm}),regexp:new am("regexp",{startsExpr:tm}),string:new am("string",{startsExpr:tm}),name:new am("name",{startsExpr:tm}),privateName:new am("#name",{startsExpr:tm}),eof:new am("eof"),bracketL:new am("[",{beforeExpr:em,startsExpr:tm}),bracketHashL:new am("#[",{beforeExpr:em,startsExpr:tm}),bracketBarL:new am("[|",{beforeExpr:em,startsExpr:tm}),bracketR:new am("]"),bracketBarR:new am("|]"),braceL:new am("{",{beforeExpr:em,startsExpr:tm}),braceBarL:new am("{|",{beforeExpr:em,startsExpr:tm}),braceHashL:new am("#{",{beforeExpr:em,startsExpr:tm}),braceR:new am("}",{beforeExpr:em}),braceBarR:new am("|}"),parenL:new am("(",{beforeExpr:em,startsExpr:tm}),parenR:new am(")"),comma:new am(",",{beforeExpr:em}),semi:new am(";",{beforeExpr:em}),colon:new am(":",{beforeExpr:em}),doubleColon:new am("::",{beforeExpr:em}),dot:new am("."),question:new am("?",{beforeExpr:em}),questionDot:new am("?."),arrow:new am("=>",{beforeExpr:em}),template:new am("template"),ellipsis:new am("...",{beforeExpr:em}),backQuote:new am("`",{startsExpr:tm}),dollarBraceL:new am("${",{beforeExpr:em,startsExpr:tm}),at:new am("@"),hash:new am("#",{startsExpr:tm}),interpreterDirective:new am("#!..."),eq:new am("=",{beforeExpr:em,isAssign:nm}),assign:new am("_=",{beforeExpr:em,isAssign:nm}),slashAssign:new am("_=",{beforeExpr:em,isAssign:nm}),incDec:new am("++/--",{prefix:sm,postfix:!0,startsExpr:tm}),bang:new am("!",{beforeExpr:em,prefix:sm,startsExpr:tm}),tilde:new am("~",{beforeExpr:em,prefix:sm,startsExpr:tm}),pipeline:um("|>",0),nullishCoalescing:um("??",1),logicalOR:um("||",1),logicalAND:um("&&",2),bitwiseOR:um("|",3),bitwiseXOR:um("^",4),bitwiseAND:um("&",5),equality:um("==/!=/===/!==",6),relational:um("</>/<=/>=",7),bitShift:um("<</>>/>>>",8),plusMin:new am("+/-",{beforeExpr:em,binop:9,prefix:sm,startsExpr:tm}),modulo:new am("%",{beforeExpr:em,binop:10,startsExpr:tm}),star:new am("*",{binop:10}),slash:um("/",10),exponent:new am("**",{beforeExpr:em,binop:11,rightAssociative:!0}),_break:om("break"),_case:om("case",{beforeExpr:em}),_catch:om("catch"),_continue:om("continue"),_debugger:om("debugger"),_default:om("default",{beforeExpr:em}),_do:om("do",{isLoop:rm,beforeExpr:em}),_else:om("else",{beforeExpr:em}),_finally:om("finally"),_for:om("for",{isLoop:rm}),_function:om("function",{startsExpr:tm}),_if:om("if"),_return:om("return",{beforeExpr:em}),_switch:om("switch"),_throw:om("throw",{beforeExpr:em,prefix:sm,startsExpr:tm}),_try:om("try"),_var:om("var"),_const:om("const"),_while:om("while",{isLoop:rm}),_with:om("with"),_new:om("new",{beforeExpr:em,startsExpr:tm}),_this:om("this",{startsExpr:tm}),_super:om("super",{startsExpr:tm}),_class:om("class",{startsExpr:tm}),_extends:om("extends",{beforeExpr:em}),_export:om("export"),_import:om("import",{startsExpr:tm}),_null:om("null",{startsExpr:tm}),_true:om("true",{startsExpr:tm}),_false:om("false",{startsExpr:tm}),_in:om("in",{beforeExpr:em,binop:7}),_instanceof:om("instanceof",{beforeExpr:em,binop:7}),_typeof:om("typeof",{beforeExpr:em,prefix:sm,startsExpr:tm}),_void:om("void",{beforeExpr:em,prefix:sm,startsExpr:tm}),_delete:om("delete",{beforeExpr:em,prefix:sm,startsExpr:tm})},cm=/\r\n?|[\n\u2028\u2029]/,pm=new RegExp(cm.source,"g");function dm(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var fm=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function hm(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var mm=function(e,t){this.line=void 0,this.column=void 0,this.line=e,this.column=t},ym=function(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t};function gm(e){return e[e.length-1]}var vm=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.addComment=function(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)},r.adjustCommentsAfterTrailingComma=function(e,t,r){if(0!==this.state.leadingComments.length){for(var n=null,s=t.length;null===n&&s>0;)n=t[--s];if(null!==n){for(var a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);for(var i=[],o=0;o<this.state.leadingComments.length;o++){var u=this.state.leadingComments[o];u.end<e.end?(i.push(u),r||(this.state.leadingComments.splice(o,1),o--)):(void 0===e.trailingComments&&(e.trailingComments=[]),e.trailingComments.push(u))}r&&(this.state.leadingComments=[]),i.length>0?n.trailingComments=i:void 0!==n.trailingComments&&(n.trailingComments=[])}}},r.processComment=function(e){if(!("Program"===e.type&&e.body.length>0)){var t,r,n,s,a,i=this.state.commentStack;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(n=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(i.length>0){var o=gm(i);o.trailingComments&&o.trailingComments[0].start>=e.end&&(n=o.trailingComments,delete o.trailingComments)}for(i.length>0&&gm(i).start>=e.start&&(t=i.pop());i.length>0&&gm(i).start>=e.start;)r=i.pop();if(!r&&t&&(r=t),t)switch(e.type){case"ObjectExpression":this.adjustCommentsAfterTrailingComma(e,e.properties);break;case"ObjectPattern":this.adjustCommentsAfterTrailingComma(e,e.properties,!0);break;case"CallExpression":this.adjustCommentsAfterTrailingComma(e,e.arguments);break;case"ArrayExpression":this.adjustCommentsAfterTrailingComma(e,e.elements);break;case"ArrayPattern":this.adjustCommentsAfterTrailingComma(e,e.elements,!0)}else this.state.commentPreviousNode&&("ImportSpecifier"===this.state.commentPreviousNode.type&&"ImportSpecifier"!==e.type||"ExportSpecifier"===this.state.commentPreviousNode.type&&"ExportSpecifier"!==e.type)&&this.adjustCommentsAfterTrailingComma(e,[this.state.commentPreviousNode]);if(r){if(r.leadingComments)if(r!==e&&r.leadingComments.length>0&&gm(r.leadingComments).end<=e.start)e.leadingComments=r.leadingComments,delete r.leadingComments;else for(s=r.leadingComments.length-2;s>=0;--s)if(r.leadingComments[s].end<=e.start){e.leadingComments=r.leadingComments.splice(0,s+1);break}}else if(this.state.leadingComments.length>0)if(gm(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(s=0;s<this.state.leadingComments.length&&!(this.state.leadingComments[s].end>e.start);s++);var u=this.state.leadingComments.slice(0,s);u.length&&(e.leadingComments=u),0===(n=this.state.leadingComments.slice(s)).length&&(n=null)}if(this.state.commentPreviousNode=e,n)if(n.length&&n[0].start>=e.start&&gm(n).end<=e.end)e.innerComments=n;else{var l=n.findIndex((function(t){return t.end>=e.end}));l>0?(e.innerComments=n.slice(0,l),e.trailingComments=n.slice(l)):e.trailingComments=n}i.push(e)}},t}(function(){function e(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}var t=e.prototype;return t.hasPlugin=function(e){return this.plugins.has(e)},t.getPluginOption=function(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]},e}()),bm=Object.freeze({SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),Em=Dm({AccessorIsGenerator:"A %0ter cannot be a generator.",ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accesor must not have any formal parameters.",BadSetterArity:"A 'set' accesor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accesor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:"'%0' require an initialization value.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:"`%0` has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '%0' as '%1' } from 'some-module'`?",ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:"'%0' loop variable declaration may not have an initializer.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:"Unsyntactic %0.",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:'A string literal cannot be used as an imported binding.\n- Did you mean `import { "%0" as foo }`?',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:"`import()` requires exactly %0.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidDecimal:"Invalid decimal.",InvalidDigit:"Expected number in radix %0.",InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:"Escape sequence in keyword %0.",InvalidIdentifier:"Invalid identifier %0.",InvalidLhs:"Invalid left-hand side in %0.",InvalidLhsBinding:"Binding invalid left-hand side in %0.",InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:"Unexpected character '%0'.",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:"Private name #%0 is not defined.",InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:"Label '%0' is already declared.",LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:'Duplicate key "%0" is not allowed in module attributes.',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found '\\u%0'.",ModuleExportUndefined:"Export '%0' is not defined.",MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option.",PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`).",PrivateNameRedeclaration:"Duplicate private name #%0.",RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:"Assigning to '%0' in strict mode.",StrictEvalArgumentsBinding:"Binding '%0' in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:"Unexpected keyword '%0'.",UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\n or a property of member expression (i.e. this.#p).",UnexpectedReservedWord:"Unexpected reserved word '%0'.",UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:"Unexpected token '%0'.",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:"The only valid meta property for %0 is %0.%1.",UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",VarRedeclaration:"Identifier '%0' has already been declared.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},bm.SyntaxError),xm=Dm({ImportMetaOutsideModule:"import.meta may appear only with 'sourceType: \"module\"'",ImportOutsideModule:"'import' and 'export' may appear only with 'sourceType: \"module\"'"},bm.SourceTypeModuleError);function Dm(e,t){var r={};return Object.keys(e).forEach((function(n){r[n]=Object.freeze({code:t,reasonCode:n,template:e[n]})})),Object.freeze(r)}var Am=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.getLocationForPosition=function(e){return e===this.state.start?this.state.startLoc:e===this.state.lastTokStart?this.state.lastTokStartLoc:e===this.state.end?this.state.endLoc:e===this.state.lastTokEnd?this.state.lastTokEndLoc:function(e,t){var r,n=1,s=0;for(pm.lastIndex=0;(r=pm.exec(e))&&r.index<t;)n++,s=pm.lastIndex;return new mm(n,t-s)}(this.input,e)},r.raise=function(e,t){for(var r=t.code,n=t.reasonCode,s=t.template,a=arguments.length,i=new Array(a>2?a-2:0),o=2;o<a;o++)i[o-2]=arguments[o];return this.raiseWithData.apply(this,[e,{code:r,reasonCode:n},s].concat(i))},r.raiseOverwrite=function(e,t){for(var r=t.code,n=t.template,s=arguments.length,a=new Array(s>2?s-2:0),i=2;i<s;i++)a[i-2]=arguments[i];var o=this.getLocationForPosition(e),u=n.replace(/%(\d+)/g,(function(e,t){return a[t]}))+" ("+o.line+":"+o.column+")";if(this.options.errorRecovery)for(var l=this.state.errors,c=l.length-1;c>=0;c--){var p=l[c];if(p.pos===e)return Object.assign(p,{message:u});if(p.pos<e)break}return this._raise({code:r,loc:o,pos:e},u)},r.raiseWithData=function(e,t,r){for(var n=arguments.length,s=new Array(n>3?n-3:0),a=3;a<n;a++)s[a-3]=arguments[a];var i=this.getLocationForPosition(e),o=r.replace(/%(\d+)/g,(function(e,t){return s[t]}))+" ("+i.line+":"+i.column+")";return this._raise(Object.assign({loc:i,pos:e},t),o)},r._raise=function(e,t){var r=new SyntaxError(t);if(Object.assign(r,e),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(r),r;throw r},t}(vm),wm=function(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t},Cm={brace:new wm("{"),templateQuasi:new wm("${"),template:new wm("`",!0)};lm.braceR.updateContext=function(e){e.length>1&&e.pop()},lm.braceL.updateContext=lm.braceHashL.updateContext=function(e){e.push(Cm.brace)},lm.dollarBraceL.updateContext=function(e){e.push(Cm.templateQuasi)},lm.backQuote.updateContext=function(e){e[e.length-1]===Cm.template?e.pop():e.push(Cm.template)};var Sm=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);var Tm=64,jm=256,Pm=128,Im=256,Fm=512,km=1024,Om=2048,Rm=1024,Nm=function(e){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=e},Bm=function(){function e(e,t){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=e,this.inModule=t}var t=e.prototype;return t.createScope=function(e){return new Nm(e)},t.enter=function(e){this.scopeStack.push(this.createScope(e))},t.exit=function(){this.scopeStack.pop()},t.treatFunctionsAsVarInScope=function(e){return!!(2&e.flags||!this.inModule&&1&e.flags)},t.declareName=function(e,t,r){var n=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(n,e,t,r),16&t?n.functions.add(e):n.lexical.add(e),8&t&&this.maybeExportDefined(n,e);else if(4&t)for(var s=this.scopeStack.length-1;s>=0&&(n=this.scopeStack[s],this.checkRedeclarationInScope(n,e,t,r),n.var.add(e),this.maybeExportDefined(n,e),!(259&n.flags));--s);this.inModule&&1&n.flags&&this.undefinedExports.delete(e)},t.maybeExportDefined=function(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)},t.checkRedeclarationInScope=function(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.raise(n,Em.VarRedeclaration,t)},t.isRedeclaredInScope=function(e,t,r){return!!(1&r)&&(8&r?e.lexical.has(t)||e.functions.has(t)||e.var.has(t):16&r?e.lexical.has(t)||!this.treatFunctionsAsVarInScope(e)&&e.var.has(t):e.lexical.has(t)&&!(8&e.flags&&e.lexical.values().next().value===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.has(t))},t.checkLocalExport=function(e){var t=e.name,r=this.scopeStack[0];r.lexical.has(t)||r.var.has(t)||r.functions.has(t)||this.undefinedExports.set(t,e.start)},t.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},t.currentVarScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(259&t)return t}},t.currentThisScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(323&t&&!(4&t))return t}},n(e,[{key:"inFunction",get:function(){return(2&this.currentVarScopeFlags())>0}},{key:"allowSuper",get:function(){return(16&this.currentThisScopeFlags())>0}},{key:"allowDirectSuper",get:function(){return(32&this.currentThisScopeFlags())>0}},{key:"inClass",get:function(){return(this.currentThisScopeFlags()&Tm)>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var e=this.currentThisScopeFlags();return(e&Tm)>0&&0==(2&e)}},{key:"inStaticBlock",get:function(){return(128&this.currentThisScopeFlags())>0}},{key:"inNonArrowFunction",get:function(){return(2&this.currentThisScopeFlags())>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}]),e}(),_m=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return(t=e.call.apply(e,[this].concat(n))||this).declareFunctions=new Set,t}return s(t,e),t}(Nm),Lm=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.createScope=function(e){return new _m(e)},r.declareName=function(t,r,n){var s=this.currentScope();if(r&Om)return this.checkRedeclarationInScope(s,t,r,n),this.maybeExportDefined(s,t),void s.declareFunctions.add(t);e.prototype.declareName.apply(this,arguments)},r.isRedeclaredInScope=function(t,r,n){return!!e.prototype.isRedeclaredInScope.apply(this,arguments)||!!(n&Om)&&(!t.declareFunctions.has(r)&&(t.lexical.has(r)||t.functions.has(r)))},r.checkLocalExport=function(t){this.scopeStack[0].declareFunctions.has(t.name)||e.prototype.checkLocalExport.call(this,t)},t}(Bm),Mm=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Um=Dm({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:"Cannot overwrite reserved type %0.",DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:"Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name `%0` has already been used before in enum `%1`.",EnumInconsistentMemberValues:"Enum `%0` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type `%1` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidMemberInitializerPrimaryType:"Enum `%0` has type `%2`, so the initializer of `%1` needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use `%1,` in enum `%0`.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for `%1` needs to be a literal (either a boolean, number, or string) in enum `%0`.",EnumInvalidMemberName:"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%0`, consider using `%1`, in enum `%2`.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. `%1 = 1` in enum `%0`.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.",GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",OptionalBindingPattern:"A binding pattern parameter cannot be optional in an implementation signature.",SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:"Unexpected reserved type %0.",UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:"`declare export %0` is not supported. Use `%1` instead.",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},bm.SyntaxError);function Gm(e){return"type"===e.importKind||"typeof"===e.importKind}function Vm(e){return(e.type===lm.name||!!e.type.keyword)&&"from"!==e.value}var Wm={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};var Hm=/\*?\s*@((?:no)?flow)\b/,Xm={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},qm=function(){function e(){this.strict=void 0,this.curLine=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inPipeline=!1,this.inType=!1,this.noAnonFunctionType=!1,this.inPropertyName=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=0,this.lineStart=0,this.type=lm.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[Cm.brace],this.exprAllowed=!0,this.containsEsc=!1,this.strictErrors=new Map,this.tokensLength=0}var t=e.prototype;return t.init=function(e){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.curLine=e.startLine,this.startLoc=this.endLoc=this.curPosition()},t.curPosition=function(){return new mm(this.curLine,this.pos-this.lineStart)},t.clone=function(t){for(var r=new e,n=Object.keys(this),s=0,a=n.length;s<a;s++){var i=n[s],o=this[i];!t&&Array.isArray(o)&&(o=o.slice()),r[i]=o}return r},e}(),$m=/^[\da-fA-F]+$/,Km=/^\d+$/,zm=Dm({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>.",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"},bm.SyntaxError);function Jm(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Ym(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Ym(e.object)+"."+Ym(e.property);throw new Error("Node had unexpected type: "+e.type)}Cm.j_oTag=new wm("<tag"),Cm.j_cTag=new wm("</tag"),Cm.j_expr=new wm("<tag>...</tag>",!0),lm.jsxName=new am("jsxName"),lm.jsxText=new am("jsxText",{beforeExpr:!0}),lm.jsxTagStart=new am("jsxTagStart",{startsExpr:!0}),lm.jsxTagEnd=new am("jsxTagEnd"),lm.jsxTagStart.updateContext=function(e){e.push(Cm.j_expr),e.push(Cm.j_oTag)};var Qm=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return(t=e.call.apply(e,[this].concat(n))||this).types=new Set,t.enums=new Set,t.constEnums=new Set,t.classes=new Set,t.exportOnlyBindings=new Set,t}return s(t,e),t}(Nm),Zm=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.createScope=function(e){return new Qm(e)},r.declareName=function(t,r,n){var s=this.currentScope();if(r&km)return this.maybeExportDefined(s,t),void s.exportOnlyBindings.add(t);e.prototype.declareName.apply(this,arguments),2&r&&(1&r||(this.checkRedeclarationInScope(s,t,r,n),this.maybeExportDefined(s,t)),s.types.add(t)),r&Im&&s.enums.add(t),r&Fm&&s.constEnums.add(t),r&Pm&&s.classes.add(t)},r.isRedeclaredInScope=function(t,r,n){if(t.enums.has(r)){if(n&Im){var s=!!(n&Fm),a=t.constEnums.has(r);return s!==a}return!0}return n&Pm&&t.classes.has(r)?!!t.lexical.has(r)&&!!(1&n):!!(2&n&&t.types.has(r))||e.prototype.isRedeclaredInScope.apply(this,arguments)},r.checkLocalExport=function(t){var r=this.scopeStack[0],n=t.name;r.types.has(n)||r.exportOnlyBindings.has(n)||e.prototype.checkLocalExport.call(this,t)},t}(Bm),ey=function(){function e(){this.stacks=[]}var t=e.prototype;return t.enter=function(e){this.stacks.push(e)},t.exit=function(){this.stacks.pop()},t.currentFlags=function(){return this.stacks[this.stacks.length-1]},n(e,[{key:"hasAwait",get:function(){return(2&this.currentFlags())>0}},{key:"hasYield",get:function(){return(1&this.currentFlags())>0}},{key:"hasReturn",get:function(){return(4&this.currentFlags())>0}},{key:"hasIn",get:function(){return(8&this.currentFlags())>0}}]),e}();function ty(e,t){return(e?2:0)|(t?1:0)}function ry(e){if(null==e)throw new Error("Unexpected "+e+" value.");return e}function ny(e){if(!e)throw new Error("Assert fail")}var sy=Dm({AbstractMethodHasImplementation:"Method '%0' cannot have an implementation because it is marked abstract.",AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:"'declare' is not allowed in %0ters.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:"Accessibility modifier already seen.",DuplicateModifier:"Duplicate modifier: '%0'.",EmptyHeritageClauseType:"'%0' list cannot be empty.",EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:"'%0' modifier cannot be used with '%1' modifier.",IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier ('%0').",IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InvalidModifierOnTypeMember:"'%0' modifier cannot appear on a type member.",InvalidModifiersOrder:"'%0' modifier must precede '%1' modifier.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:"Private elements cannot have an accessibility modifier ('%0').",ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0."},bm.SyntaxError);function ay(e){return"private"===e||"public"===e||"protected"===e}lm.placeholder=new am("%%",{startsExpr:!0});var iy=Dm({ClassNameIsRequired:"A class name is required."},bm.SyntaxError);function oy(e,t){return e.some((function(e){return Array.isArray(e)?e[0]===t:e===t}))}function uy(e,t,r){var n=e.find((function(e){return Array.isArray(e)?e[0]===t:e===t}));return n&&Array.isArray(n)?n[1][r]:null}var ly=["minimal","smart","fsharp"],cy=["hash","bar"];var py={estree:function(e){return function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.parseRegExpLiteral=function(e){var t=e.pattern,r=e.flags,n=null;try{n=new RegExp(t,r)}catch(e){}var s=this.estreeParseLiteral(n);return s.regex={pattern:t,flags:r},s},r.parseBigIntLiteral=function(e){var t;try{t=BigInt(e)}catch(e){t=null}var r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r},r.parseDecimalLiteral=function(e){var t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t},r.estreeParseLiteral=function(e){return this.parseLiteral(e,"Literal")},r.parseStringLiteral=function(e){return this.estreeParseLiteral(e)},r.parseNumericLiteral=function(e){return this.estreeParseLiteral(e)},r.parseNullLiteral=function(){return this.estreeParseLiteral(null)},r.parseBooleanLiteral=function(e){return this.estreeParseLiteral(e)},r.directiveToStmt=function(e){var t=e.value,r=this.startNodeAt(e.start,e.loc.start),n=this.startNodeAt(t.start,t.loc.start);return n.value=t.extra.expressionValue,n.raw=t.extra.raw,r.expression=this.finishNodeAt(n,"Literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)},r.initFunction=function(t,r){e.prototype.initFunction.call(this,t,r),t.expression=!1},r.checkDeclaration=function(t){null!=t&&this.isObjectProperty(t)?this.checkDeclaration(t.value):e.prototype.checkDeclaration.call(this,t)},r.getObjectOrClassMethodParams=function(e){return e.value.params},r.isValidDirective=function(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)},r.stmtToDirective=function(t){var r=e.prototype.stmtToDirective.call(this,t),n=t.expression.value;return this.addExtra(r.value,"expressionValue",n),r},r.parseBlockBody=function(t){for(var r,n=this,s=arguments.length,a=new Array(s>1?s-1:0),i=1;i<s;i++)a[i-1]=arguments[i];(r=e.prototype.parseBlockBody).call.apply(r,[this,t].concat(a));var o=t.directives.map((function(e){return n.directiveToStmt(e)}));t.body=o.concat(t.body),delete t.directives},r.pushClassMethod=function(e,t,r,n,s,a){this.parseMethod(t,r,n,s,a,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)},r.parseMaybePrivateName=function(){for(var t,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];var a=(t=e.prototype.parseMaybePrivateName).call.apply(t,[this].concat(n));return"PrivateName"===a.type&&this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(a):a},r.convertPrivateNameToPrivateIdentifier=function(t){var r=e.prototype.getPrivateNameSV.call(this,t);return delete(t=t).id,t.name=r,t.type="PrivateIdentifier",t},r.isPrivateName=function(t){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===t.type:e.prototype.isPrivateName.call(this,t)},r.getPrivateNameSV=function(t){return this.getPluginOption("estree","classFeatures")?t.name:e.prototype.getPrivateNameSV.call(this,t)},r.parseLiteral=function(t,r){var n=e.prototype.parseLiteral.call(this,t,r);return n.raw=n.extra.raw,delete n.extra,n},r.parseFunctionBody=function(t,r,n){void 0===n&&(n=!1),e.prototype.parseFunctionBody.call(this,t,r,n),t.expression="BlockStatement"!==t.body.type},r.parseMethod=function(t,r,n,s,a,i,o){void 0===o&&(o=!1);var u=this.startNode();return u.kind=t.kind,(u=e.prototype.parseMethod.call(this,u,r,n,s,a,i,o)).type="FunctionExpression",delete u.kind,t.value=u,"ClassPrivateMethod"===i&&(t.computed=!1),i="MethodDefinition",this.finishNode(t,i)},r.parseClassProperty=function(){for(var t,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];var a=(t=e.prototype.parseClassProperty).call.apply(t,[this].concat(n));return this.getPluginOption("estree","classFeatures")&&(a.type="PropertyDefinition"),a},r.parseClassPrivateProperty=function(){for(var t,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];var a=(t=e.prototype.parseClassPrivateProperty).call.apply(t,[this].concat(n));return this.getPluginOption("estree","classFeatures")&&(a.type="PropertyDefinition",a.computed=!1),a},r.parseObjectMethod=function(t,r,n,s,a){var i=e.prototype.parseObjectMethod.call(this,t,r,n,s,a);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i},r.parseObjectProperty=function(t,r,n,s,a){var i=e.prototype.parseObjectProperty.call(this,t,r,n,s,a);return i&&(i.kind="init",i.type="Property"),i},r.toAssignable=function(t,r){return void 0===r&&(r=!1),null!=t&&this.isObjectProperty(t)?(this.toAssignable(t.value,r),t):e.prototype.toAssignable.call(this,t,r)},r.toAssignableObjectExpressionProp=function(t){if("get"===t.kind||"set"===t.kind)this.raise(t.key.start,Em.PatternHasAccessor);else if(t.method)this.raise(t.key.start,Em.PatternHasMethod);else{for(var r,n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];(r=e.prototype.toAssignableObjectExpressionProp).call.apply(r,[this,t].concat(s))}},r.finishCallExpression=function(t,r){if(e.prototype.finishCallExpression.call(this,t,r),"Import"===t.callee.type){var n;if(t.type="ImportExpression",t.source=t.arguments[0],this.hasPlugin("importAssertions"))t.attributes=null!=(n=t.arguments[1])?n:null;delete t.arguments,delete t.callee}return t},r.toReferencedArguments=function(t){"ImportExpression"!==t.type&&e.prototype.toReferencedArguments.call(this,t)},r.parseExport=function(t){switch(e.prototype.parseExport.call(this,t),t.type){case"ExportAllDeclaration":t.exported=null;break;case"ExportNamedDeclaration":1===t.specifiers.length&&"ExportNamespaceSpecifier"===t.specifiers[0].type&&(t.type="ExportAllDeclaration",t.exported=t.specifiers[0].exported,delete t.specifiers)}return t},r.parseSubscript=function(t,r,n,s,a){var i=e.prototype.parseSubscript.call(this,t,r,n,s,a);if(a.optionalChainMember){if("OptionalMemberExpression"!==i.type&&"OptionalCallExpression"!==i.type||(i.type=i.type.substring(8)),a.stop){var o=this.startNodeAtNode(i);return o.expression=i,this.finishNode(o,"ChainExpression")}}else"MemberExpression"!==i.type&&"CallExpression"!==i.type||(i.optional=!1);return i},r.hasPropertyAsPrivateName=function(t){return"ChainExpression"===t.type&&(t=t.expression),e.prototype.hasPropertyAsPrivateName.call(this,t)},r.isOptionalChain=function(e){return"ChainExpression"===e.type},r.isObjectProperty=function(e){return"Property"===e.type&&"init"===e.kind&&!e.method},r.isObjectMethod=function(e){return e.method||"get"===e.kind||"set"===e.kind},t}(e)},jsx:function(e){return function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.jsxReadToken=function(){for(var t="",r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,zm.UnterminatedJsxContent);var n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?60===n&&this.state.exprAllowed?(++this.state.pos,this.finishToken(lm.jsxTagStart)):e.prototype.getTokenFromCode.call(this,n):(t+=this.input.slice(r,this.state.pos),this.finishToken(lm.jsxText,t));case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:default:dm(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}},r.jsxReadNewLine=function(e){var t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t},r.jsxReadString=function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,Em.UnterminatedString);var n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):dm(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(lm.string,t)},r.jsxReadEntity=function(){for(var e,t="",r=0,n=this.input[this.state.pos],s=++this.state.pos;this.state.pos<this.length&&r++<10;){if(";"===(n=this.input[this.state.pos++])){"#"===t[0]?"x"===t[1]?(t=t.substr(2),$m.test(t)&&(e=String.fromCodePoint(parseInt(t,16)))):(t=t.substr(1),Km.test(t)&&(e=String.fromCodePoint(parseInt(t,10)))):e=Xm[t];break}t+=n}return e||(this.state.pos=s,"&")},r.jsxReadWord=function(){var e,t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(gr(e)||45===e);return this.finishToken(lm.jsxName,this.input.slice(t,this.state.pos))},r.jsxParseIdentifier=function(){var e=this.startNode();return this.match(lm.jsxName)?e.name=this.state.value:this.state.type.keyword?e.name=this.state.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")},r.jsxParseNamespacedName=function(){var e=this.state.start,t=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(lm.colon))return r;var n=this.startNodeAt(e,t);return n.namespace=r,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")},r.jsxParseElementName=function(){var e=this.state.start,t=this.state.startLoc,r=this.jsxParseNamespacedName();if("JSXNamespacedName"===r.type)return r;for(;this.eat(lm.dot);){var n=this.startNodeAt(e,t);n.object=r,n.property=this.jsxParseIdentifier(),r=this.finishNode(n,"JSXMemberExpression")}return r},r.jsxParseAttributeValue=function(){var e;switch(this.state.type){case lm.braceL:return e=this.startNode(),this.next(),"JSXEmptyExpression"===(e=this.jsxParseExpressionContainer(e)).expression.type&&this.raise(e.start,zm.AttributeIsEmpty),e;case lm.jsxTagStart:case lm.string:return this.parseExprAtom();default:throw this.raise(this.state.start,zm.UnsupportedJsxValue)}},r.jsxParseEmptyExpression=function(){var e=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.start,this.state.startLoc)},r.jsxParseSpreadChild=function(e){return this.next(),e.expression=this.parseExpression(),this.expect(lm.braceR),this.finishNode(e,"JSXSpreadChild")},r.jsxParseExpressionContainer=function(e){if(this.match(lm.braceR))e.expression=this.jsxParseEmptyExpression();else{var t=this.parseExpression();e.expression=t}return this.expect(lm.braceR),this.finishNode(e,"JSXExpressionContainer")},r.jsxParseAttribute=function(){var e=this.startNode();return this.eat(lm.braceL)?(this.expect(lm.ellipsis),e.argument=this.parseMaybeAssignAllowIn(),this.expect(lm.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(lm.eq)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))},r.jsxParseOpeningElementAt=function(e,t){var r=this.startNodeAt(e,t);return this.match(lm.jsxTagEnd)?(this.expect(lm.jsxTagEnd),this.finishNode(r,"JSXOpeningFragment")):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))},r.jsxParseOpeningElementAfterName=function(e){for(var t=[];!this.match(lm.slash)&&!this.match(lm.jsxTagEnd);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(lm.slash),this.expect(lm.jsxTagEnd),this.finishNode(e,"JSXOpeningElement")},r.jsxParseClosingElementAt=function(e,t){var r=this.startNodeAt(e,t);return this.match(lm.jsxTagEnd)?(this.expect(lm.jsxTagEnd),this.finishNode(r,"JSXClosingFragment")):(r.name=this.jsxParseElementName(),this.expect(lm.jsxTagEnd),this.finishNode(r,"JSXClosingElement"))},r.jsxParseElementAt=function(e,t){var r=this.startNodeAt(e,t),n=[],s=this.jsxParseOpeningElementAt(e,t),a=null;if(!s.selfClosing){e:for(;;)switch(this.state.type){case lm.jsxTagStart:if(e=this.state.start,t=this.state.startLoc,this.next(),this.eat(lm.slash)){a=this.jsxParseClosingElementAt(e,t);break e}n.push(this.jsxParseElementAt(e,t));break;case lm.jsxText:n.push(this.parseExprAtom());break;case lm.braceL:var i=this.startNode();this.next(),this.match(lm.ellipsis)?n.push(this.jsxParseSpreadChild(i)):n.push(this.jsxParseExpressionContainer(i));break;default:throw this.unexpected()}Jm(s)&&!Jm(a)?this.raise(a.start,zm.MissingClosingTagFragment):!Jm(s)&&Jm(a)?this.raise(a.start,zm.MissingClosingTagElement,Ym(s.name)):Jm(s)||Jm(a)||Ym(a.name)!==Ym(s.name)&&this.raise(a.start,zm.MissingClosingTagElement,Ym(s.name))}if(Jm(s)?(r.openingFragment=s,r.closingFragment=a):(r.openingElement=s,r.closingElement=a),r.children=n,this.isRelational("<"))throw this.raise(this.state.start,zm.UnwrappedAdjacentJSXElements);return Jm(s)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")},r.jsxParseElement=function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)},r.parseExprAtom=function(t){return this.match(lm.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(lm.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.input.charCodeAt(this.state.pos)?(this.finishToken(lm.jsxTagStart),this.jsxParseElement()):e.prototype.parseExprAtom.call(this,t)},r.createLookaheadState=function(t){var r=e.prototype.createLookaheadState.call(this,t);return r.inPropertyName=t.inPropertyName,r},r.getTokenFromCode=function(t){if(this.state.inPropertyName)return e.prototype.getTokenFromCode.call(this,t);var r=this.curContext();if(r===Cm.j_expr)return this.jsxReadToken();if(r===Cm.j_oTag||r===Cm.j_cTag){if(yr(t))return this.jsxReadWord();if(62===t)return++this.state.pos,this.finishToken(lm.jsxTagEnd);if((34===t||39===t)&&r===Cm.j_oTag)return this.jsxReadString(t)}return 60===t&&this.state.exprAllowed&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(lm.jsxTagStart)):e.prototype.getTokenFromCode.call(this,t)},r.updateContext=function(t){e.prototype.updateContext.call(this,t);var r=this.state,n=r.context,s=r.type;if(s===lm.braceL){var a=n[n.length-1];a===Cm.j_oTag?n.push(Cm.brace):a===Cm.j_expr&&n.push(Cm.templateQuasi),this.state.exprAllowed=!0}else if(s===lm.slash&&t===lm.jsxTagStart)n.length-=2,n.push(Cm.j_cTag),this.state.exprAllowed=!1;else if(s===lm.jsxTagEnd){var i=n.pop();i===Cm.j_oTag&&t===lm.slash||i===Cm.j_cTag?(n.pop(),this.state.exprAllowed=n[n.length-1]===Cm.j_expr):this.state.exprAllowed=!0}else!s.keyword||t!==lm.dot&&t!==lm.questionDot?this.state.exprAllowed=s.beforeExpr:this.state.exprAllowed=!1},t}(e)},flow:function(e){return function(e){function t(){for(var t,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return(t=e.call.apply(e,[this].concat(n))||this).flowPragma=void 0,t}s(t,e);var r=t.prototype;return r.getScopeHandler=function(){return Lm},r.shouldParseTypes=function(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma},r.shouldParseEnums=function(){return!!this.getPluginOption("flow","enums")},r.finishToken=function(t,r){return t!==lm.string&&t!==lm.semi&&t!==lm.interpreterDirective&&void 0===this.flowPragma&&(this.flowPragma=null),e.prototype.finishToken.call(this,t,r)},r.addComment=function(t){if(void 0===this.flowPragma){var r=Hm.exec(t.value);if(r)if("flow"===r[1])this.flowPragma="flow";else{if("noflow"!==r[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}return e.prototype.addComment.call(this,t)},r.flowParseTypeInitialiser=function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||lm.colon);var r=this.flowParseType();return this.state.inType=t,r},r.flowParsePredicate=function(){var e=this.startNode(),t=this.state.start;return this.next(),this.expectContextual("checks"),this.state.lastTokStart>t+1&&this.raise(t,Um.UnexpectedSpaceBetweenModuloChecks),this.eat(lm.parenL)?(e.value=this.parseExpression(),this.expect(lm.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")},r.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(lm.colon);var t=null,r=null;return this.match(lm.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(lm.modulo)&&(r=this.flowParsePredicate())),[t,r]},r.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},r.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(lm.parenL);var s=this.flowParseFunctionTypeParams();r.params=s.params,r.rest=s.rest,r.this=s._this,this.expect(lm.parenR);var a=this.flowParseTypeAndPredicateInitialiser();return r.returnType=a[0],e.predicate=a[1],n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.start),this.finishNode(e,"DeclareFunction")},r.flowParseDeclare=function(e,t){if(this.match(lm._class))return this.flowParseDeclareClass(e);if(this.match(lm._function))return this.flowParseDeclareFunction(e);if(this.match(lm._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(lm.dot)?this.flowParseDeclareModuleExports(e):(t&&this.raise(this.state.lastTokStart,Um.NestedDeclareModule),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(lm._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()},r.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")},r.flowParseDeclareModule=function(e){var t=this;this.scope.enter(0),this.match(lm.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var r=e.body=this.startNode(),n=r.body=[];for(this.expect(lm.braceL);!this.match(lm.braceR);){var s=this.startNode();this.match(lm._import)?(this.next(),this.isContextual("type")||this.match(lm._typeof)||this.raise(this.state.lastTokStart,Um.InvalidNonTypeImportInDeclareModule),this.parseImport(s)):(this.expectContextual("declare",Um.UnsupportedStatementInDeclareModule),s=this.flowParseDeclare(s,!0)),n.push(s)}this.scope.exit(),this.expect(lm.braceR),this.finishNode(r,"BlockStatement");var a=null,i=!1;return n.forEach((function(e){!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&t.raise(e.start,Um.DuplicateDeclareModuleExports),"ES"===a&&t.raise(e.start,Um.AmbiguousDeclareModuleKind),a="CommonJS",i=!0):("CommonJS"===a&&t.raise(e.start,Um.AmbiguousDeclareModuleKind),a="ES")})),e.kind=a||"CommonJS",this.finishNode(e,"DeclareModule")},r.flowParseDeclareExportDeclaration=function(e,t){if(this.expect(lm._export),this.eat(lm._default))return this.match(lm._function)||this.match(lm._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(lm._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){var r=this.state.value,n=Wm[r];throw this.raise(this.state.start,Um.UnsupportedDeclareExportKind,r,n)}if(this.match(lm._var)||this.match(lm._function)||this.match(lm._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(lm.star)||this.match(lm.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()},r.flowParseDeclareModuleExports=function(e){return this.next(),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},r.flowParseDeclareTypeAlias=function(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e},r.flowParseDeclareOpaqueType=function(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e},r.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")},r.flowParseInterfaceish=function(e,t){if(void 0===t&&(t=!1),e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(lm._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(lm.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(lm.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(lm.comma))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})},r.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},r.flowParseInterface=function(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")},r.checkNotUnderscore=function(e){"_"===e&&this.raise(this.state.start,Um.UnexpectedReservedUnderscore)},r.checkReservedType=function(e,t,r){Mm.has(e)&&this.raise(t,r?Um.AssignReservedType:Um.UnexpectedReservedType,e)},r.flowParseRestrictedIdentifier=function(e,t){return this.checkReservedType(this.state.value,this.state.start,t),this.parseIdentifier(e)},r.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(lm.eq),this.semicolon(),this.finishNode(e,"TypeAlias")},r.flowParseOpaqueType=function(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(lm.colon)&&(e.supertype=this.flowParseTypeInitialiser(lm.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(lm.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")},r.flowParseTypeParameter=function(e){void 0===e&&(e=!1);var t=this.state.start,r=this.startNode(),n=this.flowParseVariance(),s=this.flowParseTypeAnnotatableIdentifier();return r.name=s.name,r.variance=n,r.bound=s.typeAnnotation,this.match(lm.eq)?(this.eat(lm.eq),r.default=this.flowParseType()):e&&this.raise(t,Um.MissingTypeParamDefault),this.finishNode(r,"TypeParameter")},r.flowParseTypeParameterDeclaration=function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(lm.jsxTagStart)?this.next():this.unexpected();var r=!1;do{var n=this.flowParseTypeParameter(r);t.params.push(n),n.default&&(r=!0),this.isRelational(">")||this.expect(lm.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")},r.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");var r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(lm.comma);return this.state.noAnonFunctionType=r,this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseTypeParameterInstantiationCallOrNew=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(lm.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseInterfaceType=function(){var e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(lm._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(lm.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")},r.flowParseObjectPropertyKey=function(){return this.match(lm.num)||this.match(lm.string)?this.parseExprAtom():this.parseIdentifier(!0)},r.flowParseObjectTypeIndexer=function(e,t,r){return e.static=t,this.lookahead().type===lm.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(lm.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")},r.flowParseObjectTypeInternalSlot=function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(lm.bracketR),this.expect(lm.bracketR),this.isRelational("<")||this.match(lm.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(lm.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")},r.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(lm.parenL),this.match(lm._this)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(lm.parenR)||this.expect(lm.comma));!this.match(lm.parenR)&&!this.match(lm.ellipsis);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(lm.parenR)||this.expect(lm.comma);return this.eat(lm.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(lm.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},r.flowParseObjectTypeCallProperty=function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")},r.flowParseObjectType=function(e){var t=e.allowStatic,r=e.allowExact,n=e.allowSpread,s=e.allowProto,a=e.allowInexact,i=this.state.inType;this.state.inType=!0;var o,u,l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];var c=!1;for(r&&this.match(lm.braceBarL)?(this.expect(lm.braceBarL),o=lm.braceBarR,u=!0):(this.expect(lm.braceL),o=lm.braceR,u=!1),l.exact=u;!this.match(o);){var p=!1,d=null,f=null,h=this.startNode();if(s&&this.isContextual("proto")){var m=this.lookahead();m.type!==lm.colon&&m.type!==lm.question&&(this.next(),d=this.state.start,t=!1)}if(t&&this.isContextual("static")){var y=this.lookahead();y.type!==lm.colon&&y.type!==lm.question&&(this.next(),p=!0)}var g=this.flowParseVariance();if(this.eat(lm.bracketL))null!=d&&this.unexpected(d),this.eat(lm.bracketL)?(g&&this.unexpected(g.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(h,p))):l.indexers.push(this.flowParseObjectTypeIndexer(h,p,g));else if(this.match(lm.parenL)||this.isRelational("<"))null!=d&&this.unexpected(d),g&&this.unexpected(g.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(h,p));else{var v="init";if(this.isContextual("get")||this.isContextual("set")){var b=this.lookahead();b.type!==lm.name&&b.type!==lm.string&&b.type!==lm.num||(v=this.state.value,this.next())}var E=this.flowParseObjectTypeProperty(h,p,d,g,v,n,null!=a?a:!u);null===E?(c=!0,f=this.state.lastTokStart):l.properties.push(E)}this.flowObjectTypeSemicolon(),!f||this.match(lm.braceR)||this.match(lm.braceBarR)||this.raise(f,Um.UnexpectedExplicitInexactInObject)}this.expect(o),n&&(l.inexact=c);var x=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=i,x},r.flowParseObjectTypeProperty=function(e,t,r,n,s,a,i){if(this.eat(lm.ellipsis))return this.match(lm.comma)||this.match(lm.semi)||this.match(lm.braceR)||this.match(lm.braceBarR)?(a?i||this.raise(this.state.lastTokStart,Um.InexactInsideExact):this.raise(this.state.lastTokStart,Um.InexactInsideNonObject),n&&this.raise(n.start,Um.InexactVariance),null):(a||this.raise(this.state.lastTokStart,Um.UnexpectedSpreadType),null!=r&&this.unexpected(r),n&&this.raise(n.start,Um.SpreadVariance),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=s;var o=!1;return this.isRelational("<")||this.match(lm.parenL)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==s&&"set"!==s||this.flowCheckGetterSetterParams(e),!a&&"constructor"===e.key.name&&e.value.this&&this.raise(e.value.this.start,Um.ThisParamBannedInConstructor)):("init"!==s&&this.unexpected(),e.method=!1,this.eat(lm.question)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=o,this.finishNode(e,"ObjectTypeProperty")},r.flowCheckGetterSetterParams=function(e){var t="get"===e.kind?0:1,r=e.start,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.value.this.start,"get"===e.kind?Um.GetterMayNotHaveThisParam:Um.SetterMayNotHaveThisParam),n!==t&&("get"===e.kind?this.raise(r,Em.BadGetterArity):this.raise(r,Em.BadSetterArity)),"set"===e.kind&&e.value.rest&&this.raise(r,Em.BadSetterRestParameter)},r.flowObjectTypeSemicolon=function(){this.eat(lm.semi)||this.eat(lm.comma)||this.match(lm.braceR)||this.match(lm.braceBarR)||this.unexpected()},r.flowParseQualifiedTypeIdentifier=function(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;for(var n=r||this.flowParseRestrictedIdentifier(!0);this.eat(lm.dot);){var s=this.startNodeAt(e,t);s.qualification=n,s.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(s,"QualifiedTypeIdentifier")}return n},r.flowParseGenericType=function(e,t,r){var n=this.startNodeAt(e,t);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t,r),this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")},r.flowParseTypeofType=function(){var e=this.startNode();return this.expect(lm._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},r.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(lm.bracketL);this.state.pos<this.length&&!this.match(lm.bracketR)&&(e.types.push(this.flowParseType()),!this.match(lm.bracketR));)this.expect(lm.comma);return this.expect(lm.bracketR),this.finishNode(e,"TupleTypeAnnotation")},r.flowParseFunctionTypeParam=function(e){var t=null,r=!1,n=null,s=this.startNode(),a=this.lookahead(),i=this.state.type===lm._this;return a.type===lm.colon||a.type===lm.question?(i&&!e&&this.raise(s.start,Um.ThisParamMustBeFirst),t=this.parseIdentifier(i),this.eat(lm.question)&&(r=!0,i&&this.raise(s.start,Um.ThisParamMayNotBeOptional)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),s.name=t,s.optional=r,s.typeAnnotation=n,this.finishNode(s,"FunctionTypeParam")},r.reinterpretTypeAsFunctionTypeParam=function(e){var t=this.startNodeAt(e.start,e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")},r.flowParseFunctionTypeParams=function(e){void 0===e&&(e=[]);var t=null,r=null;for(this.match(lm._this)&&((r=this.flowParseFunctionTypeParam(!0)).name=null,this.match(lm.parenR)||this.expect(lm.comma));!this.match(lm.parenR)&&!this.match(lm.ellipsis);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(lm.parenR)||this.expect(lm.comma);return this.eat(lm.ellipsis)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}},r.flowIdentToTypeAnnotation=function(e,t,r,n){switch(n.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,t,n)}},r.flowParsePrimaryType=function(){var t,r,n=this.state.start,s=this.state.startLoc,a=this.startNode(),i=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case lm.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(n,s,a,this.parseIdentifier());case lm.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case lm.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case lm.bracketL:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=o,r;case lm.relational:if("<"===this.state.value)return a.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(lm.parenL),t=this.flowParseFunctionTypeParams(),a.params=t.params,a.rest=t.rest,a.this=t._this,this.expect(lm.parenR),this.expect(lm.arrow),a.returnType=this.flowParseType(),this.finishNode(a,"FunctionTypeAnnotation");break;case lm.parenL:if(this.next(),!this.match(lm.parenR)&&!this.match(lm.ellipsis))if(this.match(lm.name)||this.match(lm._this)){var u=this.lookahead().type;i=u!==lm.question&&u!==lm.colon}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(lm.comma)||this.match(lm.parenR)&&this.lookahead().type===lm.arrow))return this.expect(lm.parenR),r;this.eat(lm.comma)}return t=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),a.params=t.params,a.rest=t.rest,a.this=t._this,this.expect(lm.parenR),this.expect(lm.arrow),a.returnType=this.flowParseType(),a.typeParameters=null,this.finishNode(a,"FunctionTypeAnnotation");case lm.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case lm._true:case lm._false:return a.value=this.match(lm._true),this.next(),this.finishNode(a,"BooleanLiteralTypeAnnotation");case lm.plusMin:if("-"===this.state.value){if(this.next(),this.match(lm.num))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",a);if(this.match(lm.bigint))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",a);throw this.raise(this.state.start,Um.UnexpectedSubtractionOperand)}throw this.unexpected();case lm.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case lm.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case lm._void:return this.next(),this.finishNode(a,"VoidTypeAnnotation");case lm._null:return this.next(),this.finishNode(a,"NullLiteralTypeAnnotation");case lm._this:return this.next(),this.finishNode(a,"ThisTypeAnnotation");case lm.star:return this.next(),this.finishNode(a,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType();if(this.state.type.keyword){var l=this.state.type.label;return this.next(),e.prototype.createIdentifier.call(this,a,l)}}throw this.unexpected()},r.flowParsePostfixType=function(){for(var e=this.state.start,t=this.state.startLoc,r=this.flowParsePrimaryType(),n=!1;(this.match(lm.bracketL)||this.match(lm.questionDot))&&!this.canInsertSemicolon();){var s=this.startNodeAt(e,t),a=this.eat(lm.questionDot);n=n||a,this.expect(lm.bracketL),!a&&this.match(lm.bracketR)?(s.elementType=r,this.next(),r=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=r,s.indexType=this.flowParseType(),this.expect(lm.bracketR),n?(s.optional=a,r=this.finishNode(s,"OptionalIndexedAccessType")):r=this.finishNode(s,"IndexedAccessType"))}return r},r.flowParsePrefixType=function(){var e=this.startNode();return this.eat(lm.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()},r.flowParseAnonFunctionWithoutParens=function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(lm.arrow)){var t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e},r.flowParseIntersectionType=function(){var e=this.startNode();this.eat(lm.bitwiseAND);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(lm.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")},r.flowParseUnionType=function(){var e=this.startNode();this.eat(lm.bitwiseOR);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(lm.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")},r.flowParseType=function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,t},r.flowParseTypeOrImplicitInstantiation=function(){if(this.state.type===lm.name&&"_"===this.state.value){var e=this.state.start,t=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,t,r)}return this.flowParseType()},r.flowParseTypeAnnotation=function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")},r.flowParseTypeAnnotatableIdentifier=function(e){var t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(lm.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t},r.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression},r.flowParseVariance=function(){var e=null;return this.match(lm.plusMin)&&(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e},r.parseFunctionBody=function(t,r,n){var s=this;return void 0===n&&(n=!1),r?this.forwardNoArrowParamsConversionAt(t,(function(){return e.prototype.parseFunctionBody.call(s,t,!0,n)})):e.prototype.parseFunctionBody.call(this,t,!1,n)},r.parseFunctionBodyAndFinish=function(t,r,n){if(void 0===n&&(n=!1),this.match(lm.colon)){var s=this.startNode(),a=this.flowParseTypeAndPredicateInitialiser();s.typeAnnotation=a[0],t.predicate=a[1],t.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}e.prototype.parseFunctionBodyAndFinish.call(this,t,r,n)},r.parseStatement=function(t,r){if(this.state.strict&&this.match(lm.name)&&"interface"===this.state.value){var n=this.lookahead();if(n.type===lm.name||jr(n.value)){var s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){var a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}var i=e.prototype.parseStatement.call(this,t,r);return void 0!==this.flowPragma||this.isValidDirective(i)||(this.flowPragma=null),i},r.parseExpressionStatement=function(t,r){if("Identifier"===r.type)if("declare"===r.name){if(this.match(lm._class)||this.match(lm.name)||this.match(lm._function)||this.match(lm._var)||this.match(lm._export))return this.flowParseDeclare(t)}else if(this.match(lm.name)){if("interface"===r.name)return this.flowParseInterface(t);if("type"===r.name)return this.flowParseTypeAlias(t);if("opaque"===r.name)return this.flowParseOpaqueType(t,!1)}return e.prototype.parseExpressionStatement.call(this,t,r)},r.shouldParseExportDeclaration=function(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||e.prototype.shouldParseExportDeclaration.call(this)},r.isExportDefaultSpecifier=function(){return(!this.match(lm.name)||!("type"===this.state.value||"interface"===this.state.value||"opaque"===this.state.value||this.shouldParseEnums()&&"enum"===this.state.value))&&e.prototype.isExportDefaultSpecifier.call(this)},r.parseExportDefaultExpression=function(){if(this.shouldParseEnums()&&this.isContextual("enum")){var t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return e.prototype.parseExportDefaultExpression.call(this)},r.parseConditional=function(t,r,n,s){var a=this;if(!this.match(lm.question))return t;if(s){var i=this.tryParse((function(){return e.prototype.parseConditional.call(a,t,r,n)}));return i.node?(i.error&&(this.state=i.failState),i.node):(s.start=i.error.pos||this.state.start,t)}this.expect(lm.question);var o=this.state.clone(),u=this.state.noArrowAt,l=this.startNodeAt(r,n),c=this.tryParseConditionalConsequent(),p=c.consequent,d=c.failed,f=this.getArrowLikeExpressions(p),h=f[0],m=f[1];if(d||m.length>0){var y=[].concat(u);if(m.length>0){this.state=o,this.state.noArrowAt=y;for(var g=0;g<m.length;g++)y.push(m[g].start);var v=this.tryParseConditionalConsequent();p=v.consequent,d=v.failed;var b=this.getArrowLikeExpressions(p);h=b[0],m=b[1]}if(d&&h.length>1&&this.raise(o.start,Um.AmbiguousConditionalArrow),d&&1===h.length){this.state=o,this.state.noArrowAt=y.concat(h[0].start);var E=this.tryParseConditionalConsequent();p=E.consequent,d=E.failed}}return this.getArrowLikeExpressions(p,!0),this.state.noArrowAt=u,this.expect(lm.colon),l.test=t,l.consequent=p,l.alternate=this.forwardNoArrowParamsConversionAt(l,(function(){return a.parseMaybeAssign(void 0,void 0,void 0)})),this.finishNode(l,"ConditionalExpression")},r.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),t=!this.match(lm.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}},r.getArrowLikeExpressions=function(e,t){for(var r=this,n=[e],s=[];0!==n.length;){var a=n.pop();"ArrowFunctionExpression"===a.type?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):s.push(a),n.push(a.body)):"ConditionalExpression"===a.type&&(n.push(a.consequent),n.push(a.alternate))}return t?(s.forEach((function(e){return r.finishArrowValidation(e)})),[s,[]]):function(e,t){for(var r=[],n=[],s=0;s<e.length;s++)(t(e[s],s,e)?r:n).push(e[s]);return[r,n]}(s,(function(e){return e.params.every((function(e){return r.isAssignable(e,!0)}))}))},r.finishArrowValidation=function(t){var r;this.toAssignableList(t.params,null==(r=t.extra)?void 0:r.trailingComma,!1),this.scope.enter(6),e.prototype.checkParams.call(this,t,!1,!0),this.scope.exit()},r.forwardNoArrowParamsConversionAt=function(e,t){var r;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r},r.parseParenItem=function(t,r,n){if(t=e.prototype.parseParenItem.call(this,t,r,n),this.eat(lm.question)&&(t.optional=!0,this.resetEndLocation(t)),this.match(lm.colon)){var s=this.startNodeAt(r,n);return s.expression=t,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return t},r.assertModuleNodeAllowed=function(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||e.prototype.assertModuleNodeAllowed.call(this,t)},r.parseExport=function(t){var r=e.prototype.parseExport.call(this,t);return"ExportNamedDeclaration"!==r.type&&"ExportAllDeclaration"!==r.type||(r.exportKind=r.exportKind||"value"),r},r.parseExportDeclaration=function(t){if(this.isContextual("type")){t.exportKind="type";var r=this.startNode();return this.next(),this.match(lm.braceL)?(t.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(t),null):this.flowParseTypeAlias(r)}if(this.isContextual("opaque")){t.exportKind="type";var n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}if(this.isContextual("interface")){t.exportKind="type";var s=this.startNode();return this.next(),this.flowParseInterface(s)}if(this.shouldParseEnums()&&this.isContextual("enum")){t.exportKind="value";var a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}return e.prototype.parseExportDeclaration.call(this,t)},r.eatExportStar=function(t){return!!e.prototype.eatExportStar.apply(this,arguments)||!(!this.isContextual("type")||this.lookahead().type!==lm.star)&&(t.exportKind="type",this.next(),this.next(),!0)},r.maybeParseExportNamespaceSpecifier=function(t){var r=this.state.start,n=e.prototype.maybeParseExportNamespaceSpecifier.call(this,t);return n&&"type"===t.exportKind&&this.unexpected(r),n},r.parseClassId=function(t,r,n){e.prototype.parseClassId.call(this,t,r,n),this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration())},r.parseClassMember=function(t,r,n){var s=this.state.start;if(this.isContextual("declare")){if(this.parseClassMemberFromModifier(t,r))return;r.declare=!0}e.prototype.parseClassMember.call(this,t,r,n),r.declare&&("ClassProperty"!==r.type&&"ClassPrivateProperty"!==r.type&&"PropertyDefinition"!==r.type?this.raise(s,Um.DeclareClassElement):r.value&&this.raise(r.value.start,Um.DeclareClassFieldInitializer))},r.isIterator=function(e){return"iterator"===e||"asyncIterator"===e},r.readIterator=function(){var t=e.prototype.readWord1.call(this),r="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(this.state.pos,Em.InvalidIdentifier,r),this.finishToken(lm.name,r)},r.getTokenFromCode=function(t){var r=this.input.charCodeAt(this.state.pos+1);return 123===t&&124===r?this.finishOp(lm.braceBarL,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===r?this.finishOp(lm.questionDot,2):this.finishOp(lm.question,1):function(e,t){return 64===e&&64===t}(t,r)?(this.state.pos+=2,this.readIterator()):e.prototype.getTokenFromCode.call(this,t):this.finishOp(lm.relational,1)},r.isAssignable=function(e,t){var r=this;switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":return!0;case"ObjectExpression":var n=e.properties.length-1;return e.properties.every((function(e,t){return"ObjectMethod"!==e.type&&(t===n||"SpreadElement"===e.type)&&r.isAssignable(e)}));case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((function(e){return r.isAssignable(e)}));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":case"TypeCastExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}},r.toAssignable=function(t,r){return void 0===r&&(r=!1),"TypeCastExpression"===t.type?e.prototype.toAssignable.call(this,this.typeCastToParameter(t),r):e.prototype.toAssignable.call(this,t,r)},r.toAssignableList=function(t,r,n){for(var s=0;s<t.length;s++){var a=t[s];"TypeCastExpression"===(null==a?void 0:a.type)&&(t[s]=this.typeCastToParameter(a))}return e.prototype.toAssignableList.call(this,t,r,n)},r.toReferencedList=function(e,t){for(var r=0;r<e.length;r++){var n,s=e[r];!s||"TypeCastExpression"!==s.type||null!=(n=s.extra)&&n.parenthesized||!(e.length>1)&&t||this.raise(s.typeAnnotation.start,Um.TypeCastInPattern)}return e},r.parseArrayLike=function(t,r,n,s){var a=e.prototype.parseArrayLike.call(this,t,r,n,s);return r&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a},r.checkLVal=function(t){if("TypeCastExpression"!==t.type){for(var r,n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return(r=e.prototype.checkLVal).call.apply(r,[this,t].concat(s))}},r.parseClassProperty=function(t){return this.match(lm.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassProperty.call(this,t)},r.parseClassPrivateProperty=function(t){return this.match(lm.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassPrivateProperty.call(this,t)},r.isClassMethod=function(){return this.isRelational("<")||e.prototype.isClassMethod.call(this)},r.isClassProperty=function(){return this.match(lm.colon)||e.prototype.isClassProperty.call(this)},r.isNonstaticConstructor=function(t){return!this.match(lm.colon)&&e.prototype.isNonstaticConstructor.call(this,t)},r.pushClassMethod=function(t,r,n,s,a,i){if(r.variance&&this.unexpected(r.variance.start),delete r.variance,this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassMethod.call(this,t,r,n,s,a,i),r.params&&a){var o=r.params;o.length>0&&this.isThisParam(o[0])&&this.raise(r.start,Um.ThisParamBannedInConstructor)}else if("MethodDefinition"===r.type&&a&&r.value.params){var u=r.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(r.start,Um.ThisParamBannedInConstructor)}},r.pushClassPrivateMethod=function(t,r,n,s){r.variance&&this.unexpected(r.variance.start),delete r.variance,this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassPrivateMethod.call(this,t,r,n,s)},r.parseClassSuper=function(t){if(e.prototype.parseClassSuper.call(this,t),t.superClass&&this.isRelational("<")&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();var r=t.implements=[];do{var n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,r.push(this.finishNode(n,"ClassImplements"))}while(this.eat(lm.comma))}},r.checkGetterSetterParams=function(t){e.prototype.checkGetterSetterParams.call(this,t);var r=this.getObjectOrClassMethodParams(t);if(r.length>0){var n=r[0];this.isThisParam(n)&&"get"===t.kind?this.raise(n.start,Um.GetterMayNotHaveThisParam):this.isThisParam(n)&&this.raise(n.start,Um.SetterMayNotHaveThisParam)}},r.parsePropertyName=function(t,r){var n=this.flowParseVariance(),s=e.prototype.parsePropertyName.call(this,t,r);return t.variance=n,s},r.parseObjPropValue=function(t,r,n,s,a,i,o,u){var l;t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(lm.parenL)||this.unexpected()),e.prototype.parseObjPropValue.call(this,t,r,n,s,a,i,o,u),l&&((t.value||t).typeParameters=l)},r.parseAssignableListItemTypes=function(e){return this.eat(lm.question)&&("Identifier"!==e.type&&this.raise(e.start,Um.OptionalBindingPattern),this.isThisParam(e)&&this.raise(e.start,Um.ThisParamMayNotBeOptional),e.optional=!0),this.match(lm.colon)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(e.start,Um.ThisParamAnnotationRequired),this.match(lm.eq)&&this.isThisParam(e)&&this.raise(e.start,Um.ThisParamNoDefault),this.resetEndLocation(e),e},r.parseMaybeDefault=function(t,r,n){var s=e.prototype.parseMaybeDefault.call(this,t,r,n);return"AssignmentPattern"===s.type&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(s.typeAnnotation.start,Um.TypeBeforeInitializer),s},r.shouldParseDefaultImport=function(t){return Gm(t)?Vm(this.state):e.prototype.shouldParseDefaultImport.call(this,t)},r.parseImportSpecifierLocal=function(e,t,r,n){t.local=Gm(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(t.local,n,9),e.specifiers.push(this.finishNode(t,r))},r.maybeParseDefaultImportSpecifier=function(t){t.importKind="value";var r=null;if(this.match(lm._typeof)?r="typeof":this.isContextual("type")&&(r="type"),r){var n=this.lookahead();"type"===r&&n.type===lm.star&&this.unexpected(n.start),(Vm(n)||n.type===lm.braceL||n.type===lm.star)&&(this.next(),t.importKind=r)}return e.prototype.maybeParseDefaultImportSpecifier.call(this,t)},r.parseImportSpecifier=function(e){var t=this.startNode(),r=this.match(lm.string),n=this.parseModuleExportName(),s=null;"Identifier"===n.type&&("type"===n.name?s="type":"typeof"===n.name&&(s="typeof"));var a=!1;if(this.isContextual("as")&&!this.isLookaheadContextual("as")){var i=this.parseIdentifier(!0);null===s||this.match(lm.name)||this.state.type.keyword?(t.imported=n,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=i,t.importKind=s,t.local=i.__clone())}else if(null!==s&&(this.match(lm.name)||this.state.type.keyword))t.imported=this.parseIdentifier(!0),t.importKind=s,this.eatContextual("as")?t.local=this.parseIdentifier():(a=!0,t.local=t.imported.__clone());else{if(r)throw this.raise(t.start,Em.ImportBindingIsString,n.value);a=!0,t.imported=n,t.importKind=null,t.local=t.imported.__clone()}var o=Gm(e),u=Gm(t);o&&u&&this.raise(t.start,Um.ImportTypeShorthandOnlyInPureImport),(o||u)&&this.checkReservedType(t.local.name,t.local.start,!0),!a||o||u||this.checkReservedWord(t.local.name,t.start,!0,!0),this.checkLVal(t.local,"import specifier",9),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))},r.parseBindingAtom=function(){switch(this.state.type){case lm._this:return this.parseIdentifier(!0);default:return e.prototype.parseBindingAtom.call(this)}},r.parseFunctionParams=function(t,r){var n=t.kind;"get"!==n&&"set"!==n&&this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.parseFunctionParams.call(this,t,r)},r.parseVarId=function(t,r){e.prototype.parseVarId.call(this,t,r),this.match(lm.colon)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t.id))},r.parseAsyncArrowFromCallExpression=function(t,r){if(this.match(lm.colon)){var n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=n}return e.prototype.parseAsyncArrowFromCallExpression.call(this,t,r)},r.shouldParseAsyncArrow=function(){return this.match(lm.colon)||e.prototype.shouldParseAsyncArrow.call(this)},r.parseMaybeAssign=function(t,r,n){var s,a,i=this,o=null;if(this.hasPlugin("jsx")&&(this.match(lm.jsxTagStart)||this.isRelational("<"))){if(o=this.state.clone(),!(a=this.tryParse((function(){return e.prototype.parseMaybeAssign.call(i,t,r,n)}),o)).error)return a.node;var u=this.state.context;u[u.length-1]===Cm.j_oTag?u.length-=2:u[u.length-1]===Cm.j_expr&&(u.length-=1)}if(null!=(s=a)&&s.error||this.isRelational("<")){var l,c,p;o=o||this.state.clone();var d=this.tryParse((function(s){var a;p=i.flowParseTypeParameterDeclaration();var o=i.forwardNoArrowParamsConversionAt(p,(function(){var s=e.prototype.parseMaybeAssign.call(i,t,r,n);return i.resetStartLocationFromNode(s,p),s}));"ArrowFunctionExpression"!==o.type&&null!=(a=o.extra)&&a.parenthesized&&s();var u=i.maybeUnwrapTypeCastExpression(o);return u.typeParameters=p,i.resetStartLocationFromNode(u,p),o}),o),f=null;if(d.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(d.node).type){if(!d.error&&!d.aborted)return d.node.async&&this.raise(p.start,Um.UnexpectedTypeParameterBeforeAsyncArrowFunction),d.node;f=d.node}if(null!=(l=a)&&l.node)return this.state=a.failState,a.node;if(f)return this.state=d.failState,f;if(null!=(c=a)&&c.thrown)throw a.error;if(d.thrown)throw d.error;throw this.raise(p.start,Um.UnexpectedTokenAfterTypeParameter)}return e.prototype.parseMaybeAssign.call(this,t,r,n)},r.parseArrow=function(t){var r=this;if(this.match(lm.colon)){var n=this.tryParse((function(){var e=r.state.noAnonFunctionType;r.state.noAnonFunctionType=!0;var n=r.startNode(),s=r.flowParseTypeAndPredicateInitialiser();return n.typeAnnotation=s[0],t.predicate=s[1],r.state.noAnonFunctionType=e,r.canInsertSemicolon()&&r.unexpected(),r.match(lm.arrow)||r.unexpected(),n}));if(n.thrown)return null;n.error&&(this.state=n.failState),t.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null}return e.prototype.parseArrow.call(this,t)},r.shouldParseArrow=function(){return this.match(lm.colon)||e.prototype.shouldParseArrow.call(this)},r.setArrowFunctionParameters=function(t,r){-1!==this.state.noArrowParamsConversionAt.indexOf(t.start)?t.params=r:e.prototype.setArrowFunctionParameters.call(this,t,r)},r.checkParams=function(t,r,n){if(!n||-1===this.state.noArrowParamsConversionAt.indexOf(t.start)){for(var s=0;s<t.params.length;s++)this.isThisParam(t.params[s])&&s>0&&this.raise(t.params[s].start,Um.ThisParamMustBeFirst);return e.prototype.checkParams.apply(this,arguments)}},r.parseParenAndDistinguishExpression=function(t){return e.prototype.parseParenAndDistinguishExpression.call(this,t&&-1===this.state.noArrowAt.indexOf(this.state.start))},r.parseSubscripts=function(t,r,n,s){var a=this;if("Identifier"===t.type&&"async"===t.name&&-1!==this.state.noArrowAt.indexOf(r)){this.next();var i=this.startNodeAt(r,n);i.callee=t,i.arguments=this.parseCallExpressionArguments(lm.parenR,!1),t=this.finishNode(i,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.isRelational("<")){var o=this.state.clone(),u=this.tryParse((function(e){return a.parseAsyncArrowWithTypeParameters(r,n)||e()}),o);if(!u.error&&!u.aborted)return u.node;var l=this.tryParse((function(){return e.prototype.parseSubscripts.call(a,t,r,n,s)}),o);if(l.node&&!l.error)return l.node;if(u.node)return this.state=u.failState,u.node;if(l.node)return this.state=l.failState,l.node;throw u.error||l.error}return e.prototype.parseSubscripts.call(this,t,r,n,s)},r.parseSubscript=function(t,r,n,s,a){var i=this;if(this.match(lm.questionDot)&&this.isLookaheadToken_lt()){if(a.optionalChainMember=!0,s)return a.stop=!0,t;this.next();var o=this.startNodeAt(r,n);return o.callee=t,o.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(lm.parenL),o.arguments=this.parseCallExpressionArguments(lm.parenR,!1),o.optional=!0,this.finishCallExpression(o,!0)}if(!s&&this.shouldParseTypes()&&this.isRelational("<")){var u=this.startNodeAt(r,n);u.callee=t;var l=this.tryParse((function(){return u.typeArguments=i.flowParseTypeParameterInstantiationCallOrNew(),i.expect(lm.parenL),u.arguments=i.parseCallExpressionArguments(lm.parenR,!1),a.optionalChainMember&&(u.optional=!1),i.finishCallExpression(u,a.optionalChainMember)}));if(l.node)return l.error&&(this.state=l.failState),l.node}return e.prototype.parseSubscript.call(this,t,r,n,s,a)},r.parseNewArguments=function(t){var r=this,n=null;this.shouldParseTypes()&&this.isRelational("<")&&(n=this.tryParse((function(){return r.flowParseTypeParameterInstantiationCallOrNew()})).node),t.typeArguments=n,e.prototype.parseNewArguments.call(this,t)},r.parseAsyncArrowWithTypeParameters=function(e,t){var r=this.startNodeAt(e,t);if(this.parseFunctionParams(r),this.parseArrow(r))return this.parseArrowExpression(r,void 0,!0)},r.readToken_mult_modulo=function(t){var r=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===r&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();e.prototype.readToken_mult_modulo.call(this,t)},r.readToken_pipe_amp=function(t){var r=this.input.charCodeAt(this.state.pos+1);124!==t||125!==r?e.prototype.readToken_pipe_amp.call(this,t):this.finishOp(lm.braceBarR,2)},r.parseTopLevel=function(t,r){var n=e.prototype.parseTopLevel.call(this,t,r);return this.state.hasFlowComment&&this.raise(this.state.pos,Um.UnterminatedFlowComment),n},r.skipBlockComment=function(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,Um.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(this.state.hasFlowComment){var t=this.input.indexOf("*-/",this.state.pos+=2);if(-1===t)throw this.raise(this.state.pos-2,Em.UnterminatedComment);this.state.pos=t+3}else e.prototype.skipBlockComment.call(this)},r.skipFlowComment=function(){for(var e=this.state.pos,t=2;[32,9].includes(this.input.charCodeAt(e+t));)t++;var r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t},r.hasFlowCommentCompletion=function(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,Em.UnterminatedComment)},r.flowEnumErrorBooleanMemberNotInitialized=function(e,t){var r=t.enumName,n=t.memberName;this.raise(e,Um.EnumBooleanMemberNotInitialized,n,r)},r.flowEnumErrorInvalidMemberName=function(e,t){var r=t.enumName,n=t.memberName,s=n[0].toUpperCase()+n.slice(1);this.raise(e,Um.EnumInvalidMemberName,n,s,r)},r.flowEnumErrorDuplicateMemberName=function(e,t){var r=t.enumName,n=t.memberName;this.raise(e,Um.EnumDuplicateMemberName,n,r)},r.flowEnumErrorInconsistentMemberValues=function(e,t){var r=t.enumName;this.raise(e,Um.EnumInconsistentMemberValues,r)},r.flowEnumErrorInvalidExplicitType=function(e,t){var r=t.enumName,n=t.suppliedType;return this.raise(e,null===n?Um.EnumInvalidExplicitTypeUnknownSupplied:Um.EnumInvalidExplicitType,r,n)},r.flowEnumErrorInvalidMemberInitializer=function(e,t){var r=t.enumName,n=t.explicitType,s=t.memberName,a=null;switch(n){case"boolean":case"number":case"string":a=Um.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":a=Um.EnumInvalidMemberInitializerSymbolType;break;default:a=Um.EnumInvalidMemberInitializerUnknownType}return this.raise(e,a,r,s,n)},r.flowEnumErrorNumberMemberNotInitialized=function(e,t){var r=t.enumName,n=t.memberName;this.raise(e,Um.EnumNumberMemberNotInitialized,r,n)},r.flowEnumErrorStringMemberInconsistentlyInitailized=function(e,t){var r=t.enumName;this.raise(e,Um.EnumStringMemberInconsistentlyInitailized,r)},r.flowEnumMemberInit=function(){var e=this,t=this.state.start,r=function(){return e.match(lm.comma)||e.match(lm.braceR)};switch(this.state.type){case lm.num:var n=this.parseNumericLiteral(this.state.value);return r()?{type:"number",pos:n.start,value:n}:{type:"invalid",pos:t};case lm.string:var s=this.parseStringLiteral(this.state.value);return r()?{type:"string",pos:s.start,value:s}:{type:"invalid",pos:t};case lm._true:case lm._false:var a=this.parseBooleanLiteral(this.match(lm._true));return r()?{type:"boolean",pos:a.start,value:a}:{type:"invalid",pos:t};default:return{type:"invalid",pos:t}}},r.flowEnumMemberRaw=function(){var e=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(lm.eq)?this.flowEnumMemberInit():{type:"none",pos:e}}},r.flowEnumCheckExplicitTypeMismatch=function(e,t,r){var n=t.explicitType;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)},r.flowEnumMembers=function(e){for(var t=e.enumName,r=e.explicitType,n=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;!this.match(lm.braceR);){if(this.eat(lm.ellipsis)){a=!0;break}var i=this.startNode(),o=this.flowEnumMemberRaw(),u=o.id,l=o.init,c=u.name;if(""!==c){/^[a-z]/.test(c)&&this.flowEnumErrorInvalidMemberName(u.start,{enumName:t,memberName:c}),n.has(c)&&this.flowEnumErrorDuplicateMemberName(u.start,{enumName:t,memberName:c}),n.add(c);var p={enumName:t,explicitType:r,memberName:c};switch(i.id=u,l.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(l.pos,p,"boolean"),i.init=l.value,s.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(l.pos,p,"number"),i.init=l.value,s.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(l.pos,p,"string"),i.init=l.value,s.stringMembers.push(this.finishNode(i,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.pos,p);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.pos,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.pos,p);break;default:s.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}this.match(lm.braceR)||this.expect(lm.comma)}}return{members:s,hasUnknownMembers:a}},r.flowEnumStringMembers=function(e,t,r){var n=r.enumName;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(var s=0;s<e.length;s++){var a=e[s];this.flowEnumErrorStringMemberInconsistentlyInitailized(a.start,{enumName:n})}return t}for(var i=0;i<t.length;i++){var o=t[i];this.flowEnumErrorStringMemberInconsistentlyInitailized(o.start,{enumName:n})}return e},r.flowEnumParseExplicitType=function(e){var t=e.enumName;if(this.eatContextual("of")){if(!this.match(lm.name))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:t,suppliedType:null});var r=this.state.value;return this.next(),"boolean"!==r&&"number"!==r&&"string"!==r&&"symbol"!==r&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:t,suppliedType:r}),r}return null},r.flowEnumBody=function(e,t){var r=this,n=t.enumName,s=t.nameLoc,a=this.flowEnumParseExplicitType({enumName:n});this.expect(lm.braceL);var i=this.flowEnumMembers({enumName:n,explicitType:a}),o=i.members,u=i.hasUnknownMembers;switch(e.hasUnknownMembers=u,a){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(lm.braceR),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(lm.braceR),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(lm.braceR),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(lm.braceR),this.finishNode(e,"EnumSymbolBody");default:var l=function(){return e.members=[],r.expect(lm.braceR),r.finishNode(e,"EnumStringBody")};e.explicitType=!1;var c=o.booleanMembers.length,p=o.numberMembers.length,d=o.stringMembers.length,f=o.defaultedMembers.length;if(c||p||d||f){if(c||p){if(!p&&!d&&c>=f){for(var h=0,m=o.defaultedMembers;h<m.length;h++){var y=m[h];this.flowEnumErrorBooleanMemberNotInitialized(y.start,{enumName:n,memberName:y.id.name})}return e.members=o.booleanMembers,this.expect(lm.braceR),this.finishNode(e,"EnumBooleanBody")}if(!c&&!d&&p>=f){for(var g=0,v=o.defaultedMembers;g<v.length;g++){var b=v[g];this.flowEnumErrorNumberMemberNotInitialized(b.start,{enumName:n,memberName:b.id.name})}return e.members=o.numberMembers,this.expect(lm.braceR),this.finishNode(e,"EnumNumberBody")}return this.flowEnumErrorInconsistentMemberValues(s,{enumName:n}),l()}return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(lm.braceR),this.finishNode(e,"EnumStringBody")}return l()}},r.flowParseEnumDeclaration=function(e){var t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),{enumName:t.name,nameLoc:t.start}),this.finishNode(e,"EnumDeclaration")},r.isLookaheadToken_lt=function(){var e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){var t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1},r.maybeUnwrapTypeCastExpression=function(e){return"TypeCastExpression"===e.type?e.expression:e},t}(e)},typescript:function(e){return function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.getScopeHandler=function(){return Zm},r.tsIsIdentifier=function(){return this.match(lm.name)},r.tsTokenCanFollowModifier=function(){return(this.match(lm.bracketL)||this.match(lm.braceL)||this.match(lm.star)||this.match(lm.ellipsis)||this.match(lm.privateName)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()},r.tsNextTokenCanFollowModifier=function(){return this.next(),this.tsTokenCanFollowModifier()},r.tsParseModifier=function(e){if(this.match(lm.name)){var t=this.state.value;return-1!==e.indexOf(t)&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?t:void 0}},r.tsParseModifiers=function(e,t,r,n){for(var s=this,a=function(t,r,n,a){r===n&&e[a]&&s.raise(t,sy.InvalidModifiersOrder,n,a)},i=function(t,r,n,a){(e[n]&&r===a||e[a]&&r===n)&&s.raise(t,sy.IncompatibleModifiers,n,a)};;){var o=this.state.start,u=this.tsParseModifier(t.concat(null!=r?r:[]));if(!u)break;ay(u)?e.accessibility?this.raise(o,sy.DuplicateAccessibilityModifier):(a(o,u,u,"override"),a(o,u,u,"static"),a(o,u,u,"readonly"),e.accessibility=u):(Object.hasOwnProperty.call(e,u)?this.raise(o,sy.DuplicateModifier,u):(a(o,u,"static","readonly"),a(o,u,"static","override"),a(o,u,"override","readonly"),a(o,u,"abstract","override"),i(o,u,"declare","override"),i(o,u,"static","abstract")),e[u]=!0),null!=r&&r.includes(u)&&this.raise(o,n,u)}},r.tsIsListTerminator=function(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(lm.braceR);case"HeritageClauseElement":return this.match(lm.braceL);case"TupleElementTypes":return this.match(lm.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")},r.tsParseList=function(e,t){for(var r=[];!this.tsIsListTerminator(e);)r.push(t());return r},r.tsParseDelimitedList=function(e,t){return ry(this.tsParseDelimitedListWorker(e,t,!0))},r.tsParseDelimitedListWorker=function(e,t,r){for(var n=[];!this.tsIsListTerminator(e);){var s=t();if(null==s)return;if(n.push(s),!this.eat(lm.comma)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(lm.comma))}}return n},r.tsParseBracketedList=function(e,t,r,n){n||(r?this.expect(lm.bracketL):this.expectRelational("<"));var s=this.tsParseDelimitedList(e,t);return r?this.expect(lm.bracketR):this.expectRelational(">"),s},r.tsParseImportType=function(){var e=this.startNode();return this.expect(lm._import),this.expect(lm.parenL),this.match(lm.string)||this.raise(this.state.start,sy.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(lm.parenR),this.eat(lm.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")},r.tsParseEntityName=function(e){for(var t=this.parseIdentifier();this.eat(lm.dot);){var r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t},r.tsParseTypeReference=function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")},r.tsParseThisTypePredicate=function(e){this.next();var t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")},r.tsParseThisTypeNode=function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")},r.tsParseTypeQuery=function(){var e=this.startNode();return this.expect(lm._typeof),this.match(lm._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")},r.tsParseTypeParameter=function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(lm._extends),e.default=this.tsEatThenParseType(lm.eq),this.finishNode(e,"TSTypeParameter")},r.tsTryParseTypeParameters=function(){if(this.isRelational("<"))return this.tsParseTypeParameters()},r.tsParseTypeParameters=function(){var e=this.startNode();return this.isRelational("<")||this.match(lm.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),0===e.params.length&&this.raise(e.start,sy.EmptyTypeParameters),this.finishNode(e,"TSTypeParameterDeclaration")},r.tsTryNextParseConstantContext=function(){return this.lookahead().type===lm._const?(this.next(),this.tsParseTypeReference()):null},r.tsFillSignature=function(e,t){var r=e===lm.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(lm.parenL),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))},r.tsParseBindingListForSignature=function(){var e=this;return this.parseBindingList(lm.parenR,41).map((function(t){return"Identifier"!==t.type&&"RestElement"!==t.type&&"ObjectPattern"!==t.type&&"ArrayPattern"!==t.type&&e.raise(t.start,sy.UnsupportedSignatureParameterKind,t.type),t}))},r.tsParseTypeMemberSemicolon=function(){this.eat(lm.comma)||this.isLineTerminator()||this.expect(lm.semi)},r.tsParseSignatureMember=function(e,t){return this.tsFillSignature(lm.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)},r.tsIsUnambiguouslyIndexSignature=function(){return this.next(),this.eat(lm.name)&&this.match(lm.colon)},r.tsTryParseIndexSignature=function(e){if(this.match(lm.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(lm.bracketL);var t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(lm.bracketR),e.parameters=[t];var r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}},r.tsParsePropertyOrMethodSignature=function(e,t){this.eat(lm.question)&&(e.optional=!0);var r=e;if(this.match(lm.parenL)||this.isRelational("<")){t&&this.raise(e.start,sy.ReadonlyForMethodSignature);var n=r;if(n.kind&&this.isRelational("<")&&this.raise(this.state.pos,sy.AccesorCannotHaveTypeParameters),this.tsFillSignature(lm.colon,n),this.tsParseTypeMemberSemicolon(),"get"===n.kind)n.parameters.length>0&&(this.raise(this.state.pos,Em.BadGetterArity),this.isThisParam(n.parameters[0])&&this.raise(this.state.pos,sy.AccesorCannotDeclareThisParameter));else if("set"===n.kind){if(1!==n.parameters.length)this.raise(this.state.pos,Em.BadSetterArity);else{var s=n.parameters[0];this.isThisParam(s)&&this.raise(this.state.pos,sy.AccesorCannotDeclareThisParameter),"Identifier"===s.type&&s.optional&&this.raise(this.state.pos,sy.SetAccesorCannotHaveOptionalParameter),"RestElement"===s.type&&this.raise(this.state.pos,sy.SetAccesorCannotHaveRestParameter)}n.typeAnnotation&&this.raise(n.typeAnnotation.start,sy.SetAccesorCannotHaveReturnType)}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}var a=r;t&&(a.readonly=!0);var i=this.tsTryParseTypeAnnotation();return i&&(a.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSPropertySignature")},r.tsParseTypeMember=function(){var e=this.startNode();if(this.match(lm.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(lm._new)){var t=this.startNode();return this.next(),this.match(lm.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers(e,["readonly"],["declare","abstract","private","protected","public","static","override"],sy.InvalidModifierOnTypeMember);var r=this.tsTryParseIndexSignature(e);return r||(this.parsePropertyName(e,!1),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,this.parsePropertyName(e,!1)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))},r.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},r.tsParseObjectTypeMembers=function(){this.expect(lm.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(lm.braceR),e},r.tsIsStartOfMappedType=function(){return this.next(),this.eat(lm.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(lm.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(lm._in))))},r.tsParseMappedTypeParameter=function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(lm._in),this.finishNode(e,"TSTypeParameter")},r.tsParseMappedType=function(){var e=this.startNode();return this.expect(lm.braceL),this.match(lm.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(lm.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(lm.bracketR),this.match(lm.plusMin)?(e.optional=this.state.value,this.next(),this.expect(lm.question)):this.eat(lm.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(lm.braceR),this.finishNode(e,"TSMappedType")},r.tsParseTupleType=function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1,n=null;return t.elementTypes.forEach((function(t){var s,a=t.type;!r||"TSRestType"===a||"TSOptionalType"===a||"TSNamedTupleMember"===a&&t.optional||e.raise(t.start,sy.OptionalTypeBeforeRequired),r=r||"TSNamedTupleMember"===a&&t.optional||"TSOptionalType"===a,"TSRestType"===a&&(a=(t=t.typeAnnotation).type);var i="TSNamedTupleMember"===a;(n=null!=(s=n)?s:i)!==i&&e.raise(t.start,sy.MixedLabeledAndUnlabeledElements)})),this.finishNode(t,"TSTupleType")},r.tsParseTupleElementType=function(){var e=this.state,t=e.start,r=e.startLoc,n=this.eat(lm.ellipsis),s=this.tsParseType(),a=this.eat(lm.question);if(this.eat(lm.colon)){var i=this.startNodeAtNode(s);i.optional=a,"TSTypeReference"!==s.type||s.typeParameters||"Identifier"!==s.typeName.type?(this.raise(s.start,sy.InvalidTupleMemberLabel),i.label=s):i.label=s.typeName,i.elementType=this.tsParseType(),s=this.finishNode(i,"TSNamedTupleMember")}else if(a){var o=this.startNodeAtNode(s);o.typeAnnotation=s,s=this.finishNode(o,"TSOptionalType")}if(n){var u=this.startNodeAt(t,r);u.typeAnnotation=s,s=this.finishNode(u,"TSRestType")}return s},r.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(lm.parenL),e.typeAnnotation=this.tsParseType(),this.expect(lm.parenR),this.finishNode(e,"TSParenthesizedType")},r.tsParseFunctionOrConstructorType=function(e,t){var r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsFillSignature(lm.arrow,r),this.finishNode(r,e)},r.tsParseLiteralTypeNode=function(){var e=this,t=this.startNode();return t.literal=function(){switch(e.state.type){case lm.num:case lm.bigint:case lm.string:case lm._true:case lm._false:return e.parseExprAtom();default:throw e.unexpected()}}(),this.finishNode(t,"TSLiteralType")},r.tsParseTemplateLiteralType=function(){var e=this.startNode();return e.literal=this.parseTemplate(!1),this.finishNode(e,"TSLiteralType")},r.parseTemplateSubstitution=function(){return this.state.inType?this.tsParseType():e.prototype.parseTemplateSubstitution.call(this)},r.tsParseThisTypeOrThisTypePredicate=function(){var e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e},r.tsParseNonArrayType=function(){switch(this.state.type){case lm.name:case lm._void:case lm._null:var e=this.match(lm._void)?"TSVoidKeyword":this.match(lm._null)?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==e&&46!==this.lookaheadCharCode()){var t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference();case lm.string:case lm.num:case lm.bigint:case lm._true:case lm._false:return this.tsParseLiteralTypeNode();case lm.plusMin:if("-"===this.state.value){var r=this.startNode(),n=this.lookahead();if(n.type!==lm.num&&n.type!==lm.bigint)throw this.unexpected();return r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case lm._this:return this.tsParseThisTypeOrThisTypePredicate();case lm._typeof:return this.tsParseTypeQuery();case lm._import:return this.tsParseImportType();case lm.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case lm.bracketL:return this.tsParseTupleType();case lm.parenL:return this.tsParseParenthesizedType();case lm.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()},r.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(lm.bracketL);)if(this.match(lm.bracketR)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(lm.bracketR),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(lm.bracketR),e=this.finishNode(r,"TSIndexedAccessType")}return e},r.tsParseTypeOperator=function(e){var t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")},r.tsCheckTypeAnnotationForReadOnly=function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,sy.UnexpectedReadonly)}},r.tsParseInferType=function(){var e=this.startNode();this.expectContextual("infer");var t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")},r.tsParseTypeOperatorOrHigher=function(){var e=this,t=["keyof","unique","readonly"].find((function(t){return e.isContextual(t)}));return t?this.tsParseTypeOperator(t):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()},r.tsParseUnionOrIntersectionType=function(e,t,r){var n=this.startNode(),s=this.eat(r),a=[];do{a.push(t())}while(this.eat(r));return 1!==a.length||s?(n.types=a,this.finishNode(n,e)):a[0]},r.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),lm.bitwiseAND)},r.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),lm.bitwiseOR)},r.tsIsStartOfFunctionType=function(){return!!this.isRelational("<")||this.match(lm.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},r.tsSkipParameterStart=function(){if(this.match(lm.name)||this.match(lm._this))return this.next(),!0;if(this.match(lm.braceL)){var e=1;for(this.next();e>0;)this.match(lm.braceL)?++e:this.match(lm.braceR)&&--e,this.next();return!0}if(this.match(lm.bracketL)){var t=1;for(this.next();t>0;)this.match(lm.bracketL)?++t:this.match(lm.bracketR)&&--t,this.next();return!0}return!1},r.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(lm.parenR)||this.match(lm.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(lm.colon)||this.match(lm.comma)||this.match(lm.question)||this.match(lm.eq))return!0;if(this.match(lm.parenR)&&(this.next(),this.match(lm.arrow)))return!0}return!1},r.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType((function(){var r=t.startNode();t.expect(e);var n=t.startNode(),s=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(s&&t.match(lm._this)){var a=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===a.type?(n.parameterName=a,n.asserts=!0,n.typeAnnotation=null,a=t.finishNode(n,"TSTypePredicate")):(t.resetStartLocationFromNode(a,n),a.asserts=!0),r.typeAnnotation=a,t.finishNode(r,"TSTypeAnnotation")}var i=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!i)return s?(n.parameterName=t.parseIdentifier(),n.asserts=s,n.typeAnnotation=null,r.typeAnnotation=t.finishNode(n,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,r);var o=t.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=o,n.asserts=s,r.typeAnnotation=t.finishNode(n,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}))},r.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(lm.colon)?this.tsParseTypeOrTypePredicateAnnotation(lm.colon):void 0},r.tsTryParseTypeAnnotation=function(){return this.match(lm.colon)?this.tsParseTypeAnnotation():void 0},r.tsTryParseType=function(){return this.tsEatThenParseType(lm.colon)},r.tsParseTypePredicatePrefix=function(){var e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e},r.tsParseTypePredicateAsserts=function(){if(!this.match(lm.name)||"asserts"!==this.state.value||this.hasPrecedingLineBreak())return!1;var e=this.state.containsEsc;return this.next(),!(!this.match(lm.name)&&!this.match(lm._this))&&(e&&this.raise(this.state.lastTokStart,Em.InvalidEscapedReservedWord,"asserts"),!0)},r.tsParseTypeAnnotation=function(e,t){var r=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType((function(){e&&r.expect(lm.colon),t.typeAnnotation=r.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")},r.tsParseType=function(){ny(this.state.inType);var e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(lm._extends))return e;var t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(lm.question),t.trueType=this.tsParseType(),this.expect(lm.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")},r.isAbstractConstructorSignature=function(){return this.isContextual("abstract")&&this.lookahead().type===lm._new},r.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(lm._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},r.tsParseTypeAssertion=function(){var e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")},r.tsParseHeritageClause=function(e){var t=this.state.start,r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return r.length||this.raise(t,sy.EmptyHeritageClauseType,e),r},r.tsParseExpressionWithTypeArguments=function(){var e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")},r.tsParseInterfaceDeclaration=function(e){e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript interface declaration",130),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(lm._extends)&&(e.extends=this.tsParseHeritageClause("extends"));var t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},r.tsParseTypeAliasDeclaration=function(e){var t=this;return e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript type alias",2),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsInType((function(){if(t.expect(lm.eq),t.isContextual("intrinsic")&&t.lookahead().type!==lm.dot){var e=t.startNode();return t.next(),t.finishNode(e,"TSIntrinsicKeyword")}return t.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},r.tsInNoContext=function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}},r.tsInType=function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}},r.tsEatThenParseType=function(e){return this.match(e)?this.tsNextThenParseType():void 0},r.tsExpectThenParseType=function(e){var t=this;return this.tsDoThenParseType((function(){return t.expect(e)}))},r.tsNextThenParseType=function(){var e=this;return this.tsDoThenParseType((function(){return e.next()}))},r.tsDoThenParseType=function(e){var t=this;return this.tsInType((function(){return e(),t.tsParseType()}))},r.tsParseEnumMember=function(){var e=this.startNode();return e.id=this.match(lm.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(lm.eq)&&(e.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")},r.tsParseEnumDeclaration=function(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript enum declaration",t?779:267),this.expect(lm.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(lm.braceR),this.finishNode(e,"TSEnumDeclaration")},r.tsParseModuleBlock=function(){var e=this.startNode();return this.scope.enter(0),this.expect(lm.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,lm.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")},r.tsParseModuleOrNamespaceDeclaration=function(e,t){if(void 0===t&&(t=!1),e.id=this.parseIdentifier(),t||this.checkLVal(e.id,"module or namespace declaration",1024),this.eat(lm.dot)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(jm),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")},r.tsParseAmbientExternalModuleDeclaration=function(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(lm.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(lm.braceL)?(this.scope.enter(jm),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")},r.tsParseImportEqualsDeclaration=function(e,t){e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkLVal(e.id,"import equals declaration",9),this.expect(lm.eq);var r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(r.start,sy.ImportAliasHasImportType),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")},r.tsIsExternalModuleReference=function(){return this.isContextual("require")&&40===this.lookaheadCharCode()},r.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},r.tsParseExternalModuleReference=function(){var e=this.startNode();if(this.expectContextual("require"),this.expect(lm.parenL),!this.match(lm.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(lm.parenR),this.finishNode(e,"TSExternalModuleReference")},r.tsLookAhead=function(e){var t=this.state.clone(),r=e();return this.state=t,r},r.tsTryParseAndCatch=function(e){var t=this.tryParse((function(t){return e()||t()}));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node},r.tsTryParse=function(e){var t=this.state.clone(),r=e();return void 0!==r&&!1!==r?r:void(this.state=t)},r.tsTryParseDeclare=function(e){var t=this;if(!this.isLineTerminator()){var r,n=this.state.type;return this.isContextual("let")&&(n=lm._var,r="let"),this.tsInAmbientContext((function(){switch(n){case lm._function:return e.declare=!0,t.parseFunctionStatement(e,!1,!0);case lm._class:return e.declare=!0,t.parseClass(e,!0,!1);case lm._const:if(t.match(lm._const)&&t.isLookaheadContextual("enum"))return t.expect(lm._const),t.expectContextual("enum"),t.tsParseEnumDeclaration(e,!0);case lm._var:return r=r||t.state.value,t.parseVarStatement(e,r);case lm.name:var s=t.state.value;return"global"===s?t.tsParseAmbientExternalModuleDeclaration(e):t.tsParseDeclaration(e,s,!0)}}))}},r.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)},r.tsParseExpressionStatement=function(e,t){switch(t.name){case"declare":var r=this.tsTryParseDeclare(e);if(r)return r.declare=!0,r;break;case"global":if(this.match(lm.braceL)){this.scope.enter(jm),this.prodParam.enter(0);var n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}},r.tsParseDeclaration=function(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(lm._class)||this.match(lm.name)))return this.tsParseAbstractDeclaration(e);break;case"enum":if(r||this.match(lm.name))return r&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminator(r)&&this.match(lm.name))return this.tsParseInterfaceDeclaration(e);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(lm.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.match(lm.name))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&this.match(lm.name))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&this.match(lm.name))return this.tsParseTypeAliasDeclaration(e)}},r.tsCheckLineTerminator=function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},r.tsTryParseGenericAsyncArrowFunction=function(t,r){var n=this;if(this.isRelational("<")){var s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var a=this.tsTryParseAndCatch((function(){var s=n.startNodeAt(t,r);return s.typeParameters=n.tsParseTypeParameters(),e.prototype.parseFunctionParams.call(n,s),s.returnType=n.tsTryParseTypeOrTypePredicateAnnotation(),n.expect(lm.arrow),s}));if(this.state.maybeInArrowParameters=s,a)return this.parseArrowExpression(a,null,!0)}},r.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType((function(){return e.tsInNoContext((function(){return e.expectRelational("<"),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))}))})),0===t.params.length&&this.raise(t.start,sy.EmptyTypeArguments),this.expectRelational(">"),this.finishNode(t,"TSTypeParameterInstantiation")},r.tsIsDeclarationStart=function(){if(this.match(lm.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1},r.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&e.prototype.isExportDefaultSpecifier.call(this)},r.parseAssignableListItem=function(e,t){var r,n=this.state.start,s=this.state.startLoc,a=!1,i=!1;if(void 0!==e){var o={};this.tsParseModifiers(o,["public","private","protected","override","readonly"]),r=o.accessibility,i=o.override,a=o.readonly,!1===e&&(r||a||i)&&this.raise(n,sy.UnexpectedParameterModifier)}var u=this.parseMaybeDefault();this.parseAssignableListItemTypes(u);var l=this.parseMaybeDefault(u.start,u.loc.start,u);if(r||a||i){var c=this.startNodeAt(n,s);return t.length&&(c.decorators=t),r&&(c.accessibility=r),a&&(c.readonly=a),i&&(c.override=i),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(c.start,sy.UnsupportedParameterPropertyKind),c.parameter=l,this.finishNode(c,"TSParameterProperty")}return t.length&&(u.decorators=t),l},r.parseFunctionBodyAndFinish=function(t,r,n){void 0===n&&(n=!1),this.match(lm.colon)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(lm.colon));var s="FunctionDeclaration"===r?"TSDeclareFunction":"ClassMethod"===r?"TSDeclareMethod":void 0;s&&!this.match(lm.braceL)&&this.isLineTerminator()?this.finishNode(t,s):"TSDeclareFunction"===s&&this.state.isAmbientContext&&(this.raise(t.start,sy.DeclareFunctionHasImplementation),t.declare)?e.prototype.parseFunctionBodyAndFinish.call(this,t,s,n):e.prototype.parseFunctionBodyAndFinish.call(this,t,r,n)},r.registerFunctionStatementId=function(t){!t.body&&t.id?this.checkLVal(t.id,"function name",Rm):e.prototype.registerFunctionStatementId.apply(this,arguments)},r.tsCheckForInvalidTypeCasts=function(e){var t=this;e.forEach((function(e){"TSTypeCastExpression"===(null==e?void 0:e.type)&&t.raise(e.typeAnnotation.start,sy.UnexpectedTypeAnnotation)}))},r.toReferencedList=function(e,t){return this.tsCheckForInvalidTypeCasts(e),e},r.parseArrayLike=function(){for(var t,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];var a=(t=e.prototype.parseArrayLike).call.apply(t,[this].concat(n));return"ArrayExpression"===a.type&&this.tsCheckForInvalidTypeCasts(a.elements),a},r.parseSubscript=function(t,r,n,s,a){var i=this;if(!this.hasPrecedingLineBreak()&&this.match(lm.bang)){this.state.exprAllowed=!1,this.next();var o=this.startNodeAt(r,n);return o.expression=t,this.finishNode(o,"TSNonNullExpression")}if(this.isRelational("<")){var u=this.tsTryParseAndCatch((function(){if(!s&&i.atPossibleAsyncArrow(t)){var e=i.tsTryParseGenericAsyncArrowFunction(r,n);if(e)return e}var o=i.startNodeAt(r,n);o.callee=t;var u=i.tsParseTypeArguments();if(u){if(!s&&i.eat(lm.parenL))return o.arguments=i.parseCallExpressionArguments(lm.parenR,!1),i.tsCheckForInvalidTypeCasts(o.arguments),o.typeParameters=u,a.optionalChainMember&&(o.optional=!1),i.finishCallExpression(o,a.optionalChainMember);if(i.match(lm.backQuote)){var l=i.parseTaggedTemplateExpression(t,r,n,a);return l.typeParameters=u,l}}i.unexpected()}));if(u)return u}return e.prototype.parseSubscript.call(this,t,r,n,s,a)},r.parseNewArguments=function(t){var r=this;if(this.isRelational("<")){var n=this.tsTryParseAndCatch((function(){var e=r.tsParseTypeArguments();return r.match(lm.parenL)||r.unexpected(),e}));n&&(t.typeParameters=n)}e.prototype.parseNewArguments.call(this,t)},r.parseExprOp=function(t,r,n,s){if(ry(lm._in.binop)>s&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){var a=this.startNodeAt(r,n);a.expression=t;var i=this.tsTryNextParseConstantContext();return a.typeAnnotation=i||this.tsNextThenParseType(),this.finishNode(a,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,r,n,s)}return e.prototype.parseExprOp.call(this,t,r,n,s)},r.checkReservedWord=function(e,t,r,n){},r.checkDuplicateExports=function(){},r.parseImport=function(t){if(t.importKind="value",this.match(lm.name)||this.match(lm.star)||this.match(lm.braceL)){var r=this.lookahead();if(!this.isContextual("type")||r.type===lm.comma||r.type===lm.name&&"from"===r.value||r.type===lm.eq||(t.importKind="type",this.next(),r=this.lookahead()),this.match(lm.name)&&r.type===lm.eq)return this.tsParseImportEqualsDeclaration(t)}var n=e.prototype.parseImport.call(this,t);return"type"===n.importKind&&n.specifiers.length>1&&"ImportDefaultSpecifier"===n.specifiers[0].type&&this.raise(n.start,sy.TypeImportCannotSpecifyDefaultAndNamed),n},r.parseExport=function(t){if(this.match(lm._import))return this.next(),this.isContextual("type")&&61!==this.lookaheadCharCode()?(t.importKind="type",this.next()):t.importKind="value",this.tsParseImportEqualsDeclaration(t,!0);if(this.eat(lm.eq)){var r=t;return r.expression=this.parseExpression(),this.semicolon(),this.finishNode(r,"TSExportAssignment")}if(this.eatContextual("as")){var n=t;return this.expectContextual("namespace"),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}return this.isContextual("type")&&this.lookahead().type===lm.braceL?(this.next(),t.exportKind="type"):t.exportKind="value",e.prototype.parseExport.call(this,t)},r.isAbstractClass=function(){return this.isContextual("abstract")&&this.lookahead().type===lm._class},r.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0),t}if("interface"===this.state.value){var r=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(r)return r}return e.prototype.parseExportDefaultExpression.call(this)},r.parseStatementContent=function(t,r){if(this.state.type===lm._const){var n=this.lookahead();if(n.type===lm.name&&"enum"===n.value){var s=this.startNode();return this.expect(lm._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(s,!0)}}return e.prototype.parseStatementContent.call(this,t,r)},r.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},r.tsHasSomeModifiers=function(e,t){return t.some((function(t){return ay(t)?e.accessibility===t:!!e[t]}))},r.parseClassMember=function(e,t,r){var n=this,s=["declare","private","public","protected","override","abstract","readonly"];this.tsParseModifiers(t,s.concat(["static"]));var a=function(){var a=!!t.static;a&&n.eat(lm.braceL)?(n.tsHasSomeModifiers(t,s)&&n.raise(n.state.pos,sy.StaticBlockCannotHaveModifier),n.parseClassStaticBlock(e,t)):n.parseClassMemberWithIsStatic(e,t,r,a)};t.declare?this.tsInAmbientContext(a):a()},r.parseClassMemberWithIsStatic=function(t,r,n,s){var a=this.tsTryParseIndexSignature(r);if(a)return t.body.push(a),r.abstract&&this.raise(r.start,sy.IndexSignatureHasAbstract),r.accessibility&&this.raise(r.start,sy.IndexSignatureHasAccessibility,r.accessibility),r.declare&&this.raise(r.start,sy.IndexSignatureHasDeclare),void(r.override&&this.raise(r.start,sy.IndexSignatureHasOverride));!this.state.inAbstractClass&&r.abstract&&this.raise(r.start,sy.NonAbstractClassHasAbstractMethod),r.override&&(n.hadSuperClass||this.raise(r.start,sy.OverrideNotInSubClass)),e.prototype.parseClassMemberWithIsStatic.call(this,t,r,n,s)},r.parsePostMemberNameModifiers=function(e){this.eat(lm.question)&&(e.optional=!0),e.readonly&&this.match(lm.parenL)&&this.raise(e.start,sy.ClassMethodHasReadonly),e.declare&&this.match(lm.parenL)&&this.raise(e.start,sy.ClassMethodHasDeclare)},r.parseExpressionStatement=function(t,r){return("Identifier"===r.type?this.tsParseExpressionStatement(t,r):void 0)||e.prototype.parseExpressionStatement.call(this,t,r)},r.shouldParseExportDeclaration=function(){return!!this.tsIsDeclarationStart()||e.prototype.shouldParseExportDeclaration.call(this)},r.parseConditional=function(t,r,n,s){var a=this;if(!s||!this.match(lm.question))return e.prototype.parseConditional.call(this,t,r,n,s);var i=this.tryParse((function(){return e.prototype.parseConditional.call(a,t,r,n)}));return i.node?(i.error&&(this.state=i.failState),i.node):(s.start=i.error.pos||this.state.start,t)},r.parseParenItem=function(t,r,n){if(t=e.prototype.parseParenItem.call(this,t,r,n),this.eat(lm.question)&&(t.optional=!0,this.resetEndLocation(t)),this.match(lm.colon)){var s=this.startNodeAt(r,n);return s.expression=t,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return t},r.parseExportDeclaration=function(t){var r,n=this.state.start,s=this.state.startLoc,a=this.eatContextual("declare");if(a&&(this.isContextual("declare")||!this.shouldParseExportDeclaration()))throw this.raise(this.state.start,sy.ExpectedAmbientAfterExportDeclare);return this.match(lm.name)&&(r=this.tsTryParseExportDeclaration()),r||(r=e.prototype.parseExportDeclaration.call(this,t)),r&&("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||a)&&(t.exportKind="type"),r&&a&&(this.resetStartLocation(r,n,s),r.declare=!0),r},r.parseClassId=function(t,r,n){if(r&&!n||!this.isContextual("implements")){e.prototype.parseClassId.call(this,t,r,n,t.declare?Rm:139);var s=this.tsTryParseTypeParameters();s&&(t.typeParameters=s)}},r.parseClassPropertyAnnotation=function(e){!e.optional&&this.eat(lm.bang)&&(e.definite=!0);var t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)},r.parseClassProperty=function(t){return this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&this.match(lm.eq)&&this.raise(this.state.start,sy.DeclareClassFieldHasInitializer),e.prototype.parseClassProperty.call(this,t)},r.parseClassPrivateProperty=function(t){return t.abstract&&this.raise(t.start,sy.PrivateElementHasAbstract),t.accessibility&&this.raise(t.start,sy.PrivateElementHasAccessibility,t.accessibility),this.parseClassPropertyAnnotation(t),e.prototype.parseClassPrivateProperty.call(this,t)},r.pushClassMethod=function(t,r,n,s,a,i){var o=this.tsTryParseTypeParameters();o&&a&&this.raise(o.start,sy.ConstructorHasTypeParameters),!r.declare||"get"!==r.kind&&"set"!==r.kind||this.raise(r.start,sy.DeclareAccessor,r.kind),o&&(r.typeParameters=o),e.prototype.pushClassMethod.call(this,t,r,n,s,a,i)},r.pushClassPrivateMethod=function(t,r,n,s){var a=this.tsTryParseTypeParameters();a&&(r.typeParameters=a),e.prototype.pushClassPrivateMethod.call(this,t,r,n,s)},r.parseClassSuper=function(t){e.prototype.parseClassSuper.call(this,t),t.superClass&&this.isRelational("<")&&(t.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(t.implements=this.tsParseHeritageClause("implements"))},r.parseObjPropValue=function(t){var r,n=this.tsTryParseTypeParameters();n&&(t.typeParameters=n);for(var s=arguments.length,a=new Array(s>1?s-1:0),i=1;i<s;i++)a[i-1]=arguments[i];(r=e.prototype.parseObjPropValue).call.apply(r,[this,t].concat(a))},r.parseFunctionParams=function(t,r){var n=this.tsTryParseTypeParameters();n&&(t.typeParameters=n),e.prototype.parseFunctionParams.call(this,t,r)},r.parseVarId=function(t,r){e.prototype.parseVarId.call(this,t,r),"Identifier"===t.id.type&&this.eat(lm.bang)&&(t.definite=!0);var n=this.tsTryParseTypeAnnotation();n&&(t.id.typeAnnotation=n,this.resetEndLocation(t.id))},r.parseAsyncArrowFromCallExpression=function(t,r){return this.match(lm.colon)&&(t.returnType=this.tsParseTypeAnnotation()),e.prototype.parseAsyncArrowFromCallExpression.call(this,t,r)},r.parseMaybeAssign=function(){for(var t,r,n,s,a,i,o,u,l,c,p,d,f=this,h=arguments.length,m=new Array(h),y=0;y<h;y++)m[y]=arguments[y];if(this.hasPlugin("jsx")&&(this.match(lm.jsxTagStart)||this.isRelational("<"))){if(u=this.state.clone(),!(l=this.tryParse((function(){var t;return(t=e.prototype.parseMaybeAssign).call.apply(t,[f].concat(m))}),u)).error)return l.node;var g=this.state.context;g[g.length-1]===Cm.j_oTag?g.length-=2:g[g.length-1]===Cm.j_expr&&(g.length-=1)}if(!(null!=(t=l)&&t.error||this.isRelational("<")))return(p=e.prototype.parseMaybeAssign).call.apply(p,[this].concat(m));u=u||this.state.clone();var v=this.tryParse((function(t){var r,n,s;d=f.tsParseTypeParameters();var a=(r=e.prototype.parseMaybeAssign).call.apply(r,[f].concat(m));return("ArrowFunctionExpression"!==a.type||null!=(n=a.extra)&&n.parenthesized)&&t(),0!==(null==(s=d)?void 0:s.params.length)&&f.resetStartLocationFromNode(a,d),a.typeParameters=d,a}),u);if(!v.error&&!v.aborted)return v.node;if(!l&&(ny(!this.hasPlugin("jsx")),!(c=this.tryParse((function(){var t;return(t=e.prototype.parseMaybeAssign).call.apply(t,[f].concat(m))}),u)).error))return c.node;if(null!=(r=l)&&r.node)return this.state=l.failState,l.node;if(v.node)return this.state=v.failState,v.node;if(null!=(n=c)&&n.node)return this.state=c.failState,c.node;if(null!=(s=l)&&s.thrown)throw l.error;if(v.thrown)throw v.error;if(null!=(a=c)&&a.thrown)throw c.error;throw(null==(i=l)?void 0:i.error)||v.error||(null==(o=c)?void 0:o.error)},r.parseMaybeUnary=function(t){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():e.prototype.parseMaybeUnary.call(this,t)},r.parseArrow=function(t){var r=this;if(this.match(lm.colon)){var n=this.tryParse((function(e){var t=r.tsParseTypeOrTypePredicateAnnotation(lm.colon);return!r.canInsertSemicolon()&&r.match(lm.arrow)||e(),t}));if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),t.returnType=n.node)}return e.prototype.parseArrow.call(this,t)},r.parseAssignableListItemTypes=function(e){this.eat(lm.question)&&("Identifier"===e.type||this.state.isAmbientContext||this.state.inType||this.raise(e.start,sy.PatternIsOptional),e.optional=!0);var t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e},r.toAssignable=function(t,r){switch(void 0===r&&(r=!1),t.type){case"TSTypeCastExpression":return e.prototype.toAssignable.call(this,this.typeCastToParameter(t),r);case"TSParameterProperty":return e.prototype.toAssignable.call(this,t,r);case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(t,r);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return t.expression=this.toAssignable(t.expression,r),t;default:return e.prototype.toAssignable.call(this,t,r)}},r.toAssignableParenthesizedExpression=function(t,r){switch(t.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return t.expression=this.toAssignable(t.expression,r),t;default:return e.prototype.toAssignable.call(this,t,r)}},r.checkLVal=function(t,r){for(var n,s,a=arguments.length,i=new Array(a>2?a-2:0),o=2;o<a;o++)i[o-2]=arguments[o];switch(t.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal.apply(this,[t.parameter,"parameter property"].concat(i));case"TSAsExpression":case"TSTypeAssertion":if(!(i[0]||"parenthesized expression"===r||null!=(n=t.extra)&&n.parenthesized)){this.raise(t.start,Em.InvalidLhs,r);break}return void this.checkLVal.apply(this,[t.expression,"parenthesized expression"].concat(i));case"TSNonNullExpression":return void this.checkLVal.apply(this,[t.expression,r].concat(i));default:return void(s=e.prototype.checkLVal).call.apply(s,[this,t,r].concat(i))}},r.parseBindingAtom=function(){switch(this.state.type){case lm._this:return this.parseIdentifier(!0);default:return e.prototype.parseBindingAtom.call(this)}},r.parseMaybeDecoratorArguments=function(t){if(this.isRelational("<")){var r=this.tsParseTypeArguments();if(this.match(lm.parenL)){var n=e.prototype.parseMaybeDecoratorArguments.call(this,t);return n.typeParameters=r,n}this.unexpected(this.state.start,lm.parenL)}return e.prototype.parseMaybeDecoratorArguments.call(this,t)},r.checkCommaAfterRest=function(t){this.state.isAmbientContext&&this.match(lm.comma)&&this.lookaheadCharCode()===t?this.next():e.prototype.checkCommaAfterRest.call(this,t)},r.isClassMethod=function(){return this.isRelational("<")||e.prototype.isClassMethod.call(this)},r.isClassProperty=function(){return this.match(lm.bang)||this.match(lm.colon)||e.prototype.isClassProperty.call(this)},r.parseMaybeDefault=function(){for(var t,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];var a=(t=e.prototype.parseMaybeDefault).call.apply(t,[this].concat(n));return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.start<a.typeAnnotation.start&&this.raise(a.typeAnnotation.start,sy.TypeAnnotationAfterAssign),a},r.getTokenFromCode=function(t){return!this.state.inType||62!==t&&60!==t?e.prototype.getTokenFromCode.call(this,t):this.finishOp(lm.relational,1)},r.reScan_lt_gt=function(){if(this.match(lm.relational)){var e=this.input.charCodeAt(this.state.start);60!==e&&62!==e||(this.state.pos-=1,this.readToken_lt_gt(e))}},r.toAssignableList=function(t){for(var r=0;r<t.length;r++){var n=t[r];if(n)switch(n.type){case"TSTypeCastExpression":t[r]=this.typeCastToParameter(n);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(n.start,sy.UnexpectedTypeCastInParameter):t[r]=this.typeCastToParameter(n)}}return e.prototype.toAssignableList.apply(this,arguments)},r.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression},r.shouldParseArrow=function(){return this.match(lm.colon)||e.prototype.shouldParseArrow.call(this)},r.shouldParseAsyncArrow=function(){return this.match(lm.colon)||e.prototype.shouldParseAsyncArrow.call(this)},r.canHaveLeadingDecorator=function(){return e.prototype.canHaveLeadingDecorator.call(this)||this.isAbstractClass()},r.jsxParseOpeningElementAfterName=function(t){var r=this;if(this.isRelational("<")){var n=this.tsTryParseAndCatch((function(){return r.tsParseTypeArguments()}));n&&(t.typeParameters=n)}return e.prototype.jsxParseOpeningElementAfterName.call(this,t)},r.getGetterSetterExpectedParamCount=function(t){var r=e.prototype.getGetterSetterExpectedParamCount.call(this,t),n=this.getObjectOrClassMethodParams(t)[0];return n&&this.isThisParam(n)?r+1:r},r.parseCatchClauseParam=function(){var t=e.prototype.parseCatchClauseParam.call(this),r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r,this.resetEndLocation(t)),t},r.tsInAmbientContext=function(e){var t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}},r.parseClass=function(t){var r=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{for(var n,s=arguments.length,a=new Array(s>1?s-1:0),i=1;i<s;i++)a[i-1]=arguments[i];return(n=e.prototype.parseClass).call.apply(n,[this,t].concat(a))}finally{this.state.inAbstractClass=r}},r.tsParseAbstractDeclaration=function(e){if(this.match(lm._class))return e.abstract=!0,this.parseClass(e,!0,!1);if(this.isContextual("interface")){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(e.start,sy.NonClassMethodPropertyHasAbstractModifer),this.next(),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,lm._class)},r.parseMethod=function(){for(var t,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];var a=(t=e.prototype.parseMethod).call.apply(t,[this].concat(n));if(a.abstract){var i=this.hasPlugin("estree")?!!a.value.body:!!a.body;if(i){var o=a.key;this.raise(a.start,sy.AbstractMethodHasImplementation,"Identifier"===o.type?o.name:"["+this.input.slice(o.start,o.end)+"]")}}return a},r.shouldParseAsAmbientContext=function(){return!!this.getPluginOption("typescript","dts")},r.parse=function(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),e.prototype.parse.call(this)},r.getExpression=function(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),e.prototype.getExpression.call(this)},t}(e)},v8intrinsic:function(e){return function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.parseV8Intrinsic=function(){if(this.match(lm.modulo)){var e=this.state.start,t=this.startNode();if(this.eat(lm.modulo),this.match(lm.name)){var r=this.parseIdentifierName(this.state.start),n=this.createIdentifier(t,r);if(n.type="V8IntrinsicIdentifier",this.match(lm.parenL))return n}this.unexpected(e)}},r.parseExprAtom=function(){return this.parseV8Intrinsic()||e.prototype.parseExprAtom.apply(this,arguments)},t}(e)},placeholders:function(e){return function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.parsePlaceholder=function(t){if(this.match(lm.placeholder)){var r=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),r.name=e.prototype.parseIdentifier.call(this,!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(lm.placeholder),this.finishPlaceholder(r,t)}},r.finishPlaceholder=function(e,t){var r=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,r?e:this.finishNode(e,"Placeholder")},r.getTokenFromCode=function(t){return 37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(lm.placeholder,2):e.prototype.getTokenFromCode.apply(this,arguments)},r.parseExprAtom=function(){return this.parsePlaceholder("Expression")||e.prototype.parseExprAtom.apply(this,arguments)},r.parseIdentifier=function(){return this.parsePlaceholder("Identifier")||e.prototype.parseIdentifier.apply(this,arguments)},r.checkReservedWord=function(t){void 0!==t&&e.prototype.checkReservedWord.apply(this,arguments)},r.parseBindingAtom=function(){return this.parsePlaceholder("Pattern")||e.prototype.parseBindingAtom.apply(this,arguments)},r.checkLVal=function(t){"Placeholder"!==t.type&&e.prototype.checkLVal.apply(this,arguments)},r.toAssignable=function(t){return t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?(t.expectedNode="Pattern",t):e.prototype.toAssignable.apply(this,arguments)},r.isLet=function(t){return!!e.prototype.isLet.call(this,t)||!!this.isContextual("let")&&(!t&&this.lookahead().type===lm.placeholder)},r.verifyBreakContinue=function(t){t.label&&"Placeholder"===t.label.type||e.prototype.verifyBreakContinue.apply(this,arguments)},r.parseExpressionStatement=function(t,r){if("Placeholder"!==r.type||r.extra&&r.extra.parenthesized)return e.prototype.parseExpressionStatement.apply(this,arguments);if(this.match(lm.colon)){var n=t;return n.label=this.finishPlaceholder(r,"Identifier"),this.next(),n.body=this.parseStatement("label"),this.finishNode(n,"LabeledStatement")}return this.semicolon(),t.name=r.name,this.finishPlaceholder(t,"Statement")},r.parseBlock=function(){return this.parsePlaceholder("BlockStatement")||e.prototype.parseBlock.apply(this,arguments)},r.parseFunctionId=function(){return this.parsePlaceholder("Identifier")||e.prototype.parseFunctionId.apply(this,arguments)},r.parseClass=function(e,t,r){var n=t?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(e);var s=this.state.strict,a=this.parsePlaceholder("Identifier");if(a)if(this.match(lm._extends)||this.match(lm.placeholder)||this.match(lm.braceL))e.id=a;else{if(r||!t)return e.id=null,e.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(e,n);this.unexpected(null,iy.ClassNameIsRequired)}else this.parseClassId(e,t,r);return this.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass,s),this.finishNode(e,n)},r.parseExport=function(t){var r=this.parsePlaceholder("Identifier");if(!r)return e.prototype.parseExport.apply(this,arguments);if(!this.isContextual("from")&&!this.match(lm.comma))return t.specifiers=[],t.source=null,t.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(t,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");var n=this.startNode();return n.exported=r,t.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],e.prototype.parseExport.call(this,t)},r.isExportDefaultSpecifier=function(){if(this.match(lm._default)){var t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(lm.placeholder.label,this.nextTokenStartSince(t+4)))return!0}return e.prototype.isExportDefaultSpecifier.call(this)},r.maybeParseExportDefaultSpecifier=function(t){return!!(t.specifiers&&t.specifiers.length>0)||e.prototype.maybeParseExportDefaultSpecifier.apply(this,arguments)},r.checkExport=function(t){var r=t.specifiers;null!=r&&r.length&&(t.specifiers=r.filter((function(e){return"Placeholder"===e.exported.type}))),e.prototype.checkExport.call(this,t),t.specifiers=r},r.parseImport=function(t){var r=this.parsePlaceholder("Identifier");if(!r)return e.prototype.parseImport.apply(this,arguments);if(t.specifiers=[],!this.isContextual("from")&&!this.match(lm.comma))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");var n=this.startNodeAtNode(r);if(n.local=r,this.finishNode(n,"ImportDefaultSpecifier"),t.specifiers.push(n),this.eat(lm.comma)){var s=this.maybeParseStarImportSpecifier(t);s||this.parseNamedImportSpecifiers(t)}return this.expectContextual("from"),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")},r.parseImportSource=function(){return this.parsePlaceholder("StringLiteral")||e.prototype.parseImportSource.apply(this,arguments)},t}(e)}},dy=Object.keys(py),fy={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1};var hy=function(e){return e>=48&&e<=57},my=new Set([103,109,115,105,121,117,100]),yy={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},gy={bin:[48,49]};gy.oct=[].concat(gy.bin,[50,51,52,53,54,55]),gy.dec=[].concat(gy.oct,[56,57]),gy.hex=[].concat(gy.dec,[65,66,67,68,69,70,97,98,99,100,101,102]);var vy=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new ym(e.startLoc,e.endLoc)},by=function(e){function t(t,r){var n;return(n=e.call(this)||this).isLookahead=void 0,n.tokens=[],n.state=new qm,n.state.init(t),n.input=r,n.length=r.length,n.isLookahead=!1,n}s(t,e);var r=t.prototype;return r.pushToken=function(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength},r.next=function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new vy(this.state)),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},r.eat=function(e){return!!this.match(e)&&(this.next(),!0)},r.match=function(e){return this.state.type===e},r.createLookaheadState=function(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,lastTokEnd:e.end,context:[this.curContext()],inType:e.inType}},r.lookahead=function(){var e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var t=this.state;return this.state=e,t},r.nextTokenStart=function(){return this.nextTokenStartSince(this.state.pos)},r.nextTokenStartSince=function(e){return fm.lastIndex=e,e+fm.exec(this.input)[0].length},r.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},r.codePointAtPos=function(e){var t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){var r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t},r.setStrict=function(e){var t=this;this.state.strict=e,e&&(this.state.strictErrors.forEach((function(e,r){return t.raise(r,e)})),this.state.strictErrors.clear())},r.curContext=function(){return this.state.context[this.state.context.length-1]},r.nextToken=function(){var e=this.curContext();e.preserveSpace||this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(lm.eof):e===Cm.template?this.readTmplToken():this.getTokenFromCode(this.codePointAtPos(this.state.pos))},r.pushComment=function(e,t,r,n,s,a){var i={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:n,loc:new ym(s,a)};this.options.tokens&&this.pushToken(i),this.state.comments.push(i),this.addComment(i)},r.skipBlockComment=function(){var e;this.isLookahead||(e=this.state.curPosition());var t,r=this.state.pos,n=this.input.indexOf("*/",this.state.pos+2);if(-1===n)throw this.raise(r,Em.UnterminatedComment);for(this.state.pos=n+2,pm.lastIndex=r;(t=pm.exec(this.input))&&t.index<this.state.pos;)++this.state.curLine,this.state.lineStart=t.index+t[0].length;this.isLookahead||this.pushComment(!0,this.input.slice(r+2,n),r,this.state.pos,e,this.state.curPosition())},r.skipLineComment=function(e){var t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());var n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!dm(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);this.isLookahead||this.pushComment(!1,this.input.slice(r+e,this.state.pos),r,this.state.pos,t,this.state.curPosition())},r.skipSpace=function(){e:for(;this.state.pos<this.length;){var e=this.input.charCodeAt(this.state.pos);switch(e){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!hm(e))break e;++this.state.pos}}},r.finishToken=function(e,t){this.state.end=this.state.pos;var r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||(this.state.endLoc=this.state.curPosition(),this.updateContext(r))},r.readToken_numberSign=function(){if(0!==this.state.pos||!this.readToken_interpreter()){var e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(this.state.pos,Em.UnexpectedDigitAfterHash);if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,123===t?Em.RecordExpressionHashIncorrectStartSyntaxType:Em.TupleExpressionHashIncorrectStartSyntaxType);this.state.pos+=2,123===t?this.finishToken(lm.braceHashL):this.finishToken(lm.bracketHashL)}else yr(t)?(++this.state.pos,this.finishToken(lm.privateName,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(lm.privateName,this.readWord1())):this.finishOp(lm.hash,1)}},r.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(lm.ellipsis)):(++this.state.pos,this.finishToken(lm.dot))},r.readToken_slash=function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(lm.slashAssign,2):this.finishOp(lm.slash,1)},r.readToken_interpreter=function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;var t=this.state.pos;for(this.state.pos+=1;!dm(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);var r=this.input.slice(t+2,this.state.pos);return this.finishToken(lm.interpreterDirective,r),!0},r.readToken_mult_modulo=function(e){var t=42===e?lm.star:lm.modulo,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=lm.exponent),61!==n||this.state.inType||(r++,t=lm.assign),this.finishOp(t,r)},r.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(lm.pipeline,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,Em.RecordExpressionBarIncorrectEndSyntaxType);return this.state.pos+=2,void this.finishToken(lm.braceBarR)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,Em.TupleExpressionBarIncorrectEndSyntaxType);return this.state.pos+=2,void this.finishToken(lm.bracketBarR)}}61!==t?this.finishOp(124===e?lm.bitwiseOR:lm.bitwiseAND,1):this.finishOp(lm.assign,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(lm.assign,3):this.finishOp(124===e?lm.logicalOR:lm.logicalAND,2)},r.readToken_caret=function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(lm.assign,2):this.finishOp(lm.bitwiseXOR,1)},r.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.state.pos+1);if(t===e)return 45!==t||this.inModule||62!==this.input.charCodeAt(this.state.pos+2)||0!==this.state.lastTokEnd&&!this.hasPrecedingLineBreak()?void this.finishOp(lm.incDec,2):(this.skipLineComment(3),this.skipSpace(),void this.nextToken());61===t?this.finishOp(lm.assign,2):this.finishOp(lm.plusMin,1)},r.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.state.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+r)?void this.finishOp(lm.assign,r+1):void this.finishOp(lm.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.state.pos+2)||45!==this.input.charCodeAt(this.state.pos+3)?(61===t&&(r=2),void this.finishOp(lm.relational,r)):(this.skipLineComment(4),this.skipSpace(),void this.nextToken())},r.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(lm.arrow)):void this.finishOp(61===e?lm.eq:lm.bang,1);this.finishOp(lm.equality,61===this.input.charCodeAt(this.state.pos+2)?3:2)},r.readToken_question=function(){var e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(lm.assign,3):this.finishOp(lm.nullishCoalescing,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(lm.question)):(this.state.pos+=2,this.finishToken(lm.questionDot))},r.getTokenFromCode=function(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(lm.parenL);case 41:return++this.state.pos,void this.finishToken(lm.parenR);case 59:return++this.state.pos,void this.finishToken(lm.semi);case 44:return++this.state.pos,void this.finishToken(lm.comma);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,Em.TupleExpressionBarIncorrectStartSyntaxType);this.state.pos+=2,this.finishToken(lm.bracketBarL)}else++this.state.pos,this.finishToken(lm.bracketL);return;case 93:return++this.state.pos,void this.finishToken(lm.bracketR);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,Em.RecordExpressionBarIncorrectStartSyntaxType);this.state.pos+=2,this.finishToken(lm.braceBarL)}else++this.state.pos,this.finishToken(lm.braceL);return;case 125:return++this.state.pos,void this.finishToken(lm.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(lm.doubleColon,2):(++this.state.pos,this.finishToken(lm.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(lm.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(lm.tilde,1);case 64:return++this.state.pos,void this.finishToken(lm.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(yr(e))return void this.readWord(e)}throw this.raise(this.state.pos,Em.InvalidOrUnexpectedToken,String.fromCodePoint(e))},r.finishOp=function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)},r.readRegexp=function(){for(var e,t,r=this.state.start+1,n=this.state.pos;;++n){if(n>=this.length)throw this.raise(r,Em.UnterminatedRegExp);var s=this.input.charCodeAt(n);if(dm(s))throw this.raise(r,Em.UnterminatedRegExp);if(e)e=!1;else{if(91===s)t=!0;else if(93===s&&t)t=!1;else if(47===s&&!t)break;e=92===s}}var a=this.input.slice(r,n);++n;for(var i="";n<this.length;){var o=this.codePointAtPos(n),u=String.fromCharCode(o);if(my.has(o))i.includes(u)&&this.raise(n+1,Em.DuplicateRegExpFlags);else{if(!gr(o)&&92!==o)break;this.raise(n+1,Em.MalformedRegExpFlags)}++n,i+=u}this.state.pos=n,this.finishToken(lm.regexp,{pattern:a,flags:i})},r.readInt=function(e,t,r,n){void 0===n&&(n=!0);for(var s=this.state.pos,a=16===e?yy.hex:yy.decBinOct,i=16===e?gy.hex:10===e?gy.dec:8===e?gy.oct:gy.bin,o=!1,u=0,l=0,c=null==t?1/0:t;l<c;++l){var p=this.input.charCodeAt(this.state.pos),d=void 0;if(95!==p){if((d=p>=97?p-97+10:p>=65?p-65+10:hy(p)?p-48:1/0)>=e)if(this.options.errorRecovery&&d<=9)d=0,this.raise(this.state.start+l+2,Em.InvalidDigit,e);else{if(!r)break;d=0,o=!0}++this.state.pos,u=u*e+d}else{var f=this.input.charCodeAt(this.state.pos-1),h=this.input.charCodeAt(this.state.pos+1);(-1===i.indexOf(h)||a.indexOf(f)>-1||a.indexOf(h)>-1||Number.isNaN(h))&&this.raise(this.state.pos,Em.UnexpectedNumericSeparator),n||this.raise(this.state.pos,Em.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===s||null!=t&&this.state.pos-s!==t||o?null:u},r.readRadixNumber=function(e){var t=this.state.pos,r=!1;this.state.pos+=2;var n=this.readInt(e);null==n&&this.raise(this.state.start+2,Em.InvalidDigit,e);var s=this.input.charCodeAt(this.state.pos);if(110===s)++this.state.pos,r=!0;else if(109===s)throw this.raise(t,Em.InvalidDecimal);if(yr(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,Em.NumberIdentifier);if(r){var a=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(lm.bigint,a)}else this.finishToken(lm.num,n)},r.readNumber=function(e){var t=this.state.pos,r=!1,n=!1,s=!1,a=!1,i=!1;e||null!==this.readInt(10)||this.raise(t,Em.InvalidNumber);var o=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(o){var u=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(t,Em.StrictOctalLiteral),!this.state.strict){var l=u.indexOf("_");l>0&&this.raise(l+t,Em.ZeroDigitNumericSeparator)}i=o&&!/[89]/.test(u)}var c=this.input.charCodeAt(this.state.pos);if(46!==c||i||(++this.state.pos,this.readInt(10),r=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||i||(43!==(c=this.input.charCodeAt(++this.state.pos))&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(t,Em.InvalidOrMissingExponent),r=!0,a=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((r||o)&&this.raise(t,Em.InvalidBigIntLiteral),++this.state.pos,n=!0),109===c&&(this.expectPlugin("decimal",this.state.pos),(a||o)&&this.raise(t,Em.InvalidDecimal),++this.state.pos,s=!0),yr(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,Em.NumberIdentifier);var p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)this.finishToken(lm.bigint,p);else if(s)this.finishToken(lm.decimal,p);else{var d=i?parseInt(p,8):parseFloat(p);this.finishToken(lm.num,d)}},r.readCodePoint=function(e){var t;if(123===this.input.charCodeAt(this.state.pos)){var r=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,null!==t&&t>1114111){if(!e)return null;this.raise(r,Em.InvalidCodePoint)}}else t=this.readHexChar(4,!1,e);return t},r.readString=function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,Em.UnterminatedString);var n=this.input.charCodeAt(this.state.pos);if(n===e)break;if(92===n)t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos;else if(8232===n||8233===n)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(dm(n))throw this.raise(this.state.start,Em.UnterminatedString);++this.state.pos}}t+=this.input.slice(r,this.state.pos++),this.finishToken(lm.string,t)},r.readTmplToken=function(){for(var e="",t=this.state.pos,r=!1;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,Em.UnterminatedTemplate);var n=this.input.charCodeAt(this.state.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(lm.template)?36===n?(this.state.pos+=2,void this.finishToken(lm.dollarBraceL)):(++this.state.pos,void this.finishToken(lm.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(lm.template,r?null:e));if(92===n){e+=this.input.slice(t,this.state.pos);var s=this.readEscapedChar(!0);null===s?r=!0:e+=s,t=this.state.pos}else if(dm(n)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,n){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}},r.recordStrictModeErrors=function(e,t){this.state.strict&&!this.state.strictErrors.has(e)?this.raise(e,t):this.state.strictErrors.set(e,t)},r.readEscapedChar=function(e){var t=!e,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){case 110:return"\n";case 114:return"\r";case 120:var n=this.readHexChar(2,!1,t);return null===n?null:String.fromCharCode(n);case 117:var s=this.readCodePoint(t);return null===s?null:String.fromCodePoint(s);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e)return null;this.recordStrictModeErrors(this.state.pos-1,Em.StrictNumericEscape);default:if(r>=48&&r<=55){var a=this.state.pos-1,i=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(i,8);o>255&&(i=i.slice(0,-1),o=parseInt(i,8)),this.state.pos+=i.length-1;var u=this.input.charCodeAt(this.state.pos);if("0"!==i||56===u||57===u){if(e)return null;this.recordStrictModeErrors(a,Em.StrictNumericEscape)}return String.fromCharCode(o)}return String.fromCharCode(r)}},r.readHexChar=function(e,t,r){var n=this.state.pos,s=this.readInt(16,e,t,!1);return null===s&&(r?this.raise(n,Em.InvalidEscapeSequence):this.state.pos=n-1),s},r.readWord1=function(e){this.state.containsEsc=!1;var t="",r=this.state.pos,n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){var s=this.codePointAtPos(this.state.pos);if(gr(s))this.state.pos+=s<=65535?1:2;else{if(92!==s)break;this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);var a=this.state.pos,i=this.state.pos===r?yr:gr;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(this.state.pos,Em.MissingUnicodeEscape),n=this.state.pos-1;continue}++this.state.pos;var o=this.readCodePoint(!0);null!==o&&(i(o)||this.raise(a,Em.EscapedCharNotAnIdentifier),t+=String.fromCodePoint(o)),n=this.state.pos}}return t+this.input.slice(n,this.state.pos)},r.readWord=function(e){var t=this.readWord1(e),r=im.get(t)||lm.name;this.finishToken(r,t)},r.checkKeywordEscapes=function(){var e=this.state.type.keyword;e&&this.state.containsEsc&&this.raise(this.state.start,Em.InvalidEscapedReservedWord,e)},r.updateContext=function(e){var t,r;null==(t=(r=this.state.type).updateContext)||t.call(r,this.state.context)},t}(Am),Ey=function(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map},xy=function(){function e(e){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=e}var t=e.prototype;return t.current=function(){return this.stack[this.stack.length-1]},t.enter=function(){this.stack.push(new Ey)},t.exit=function(){for(var e=this.stack.pop(),t=this.current(),r=0,n=Array.from(e.undefinedPrivateNames);r<n.length;r++){var s=n[r],a=s[0],i=s[1];t?t.undefinedPrivateNames.has(a)||t.undefinedPrivateNames.set(a,i):this.raise(i,Em.InvalidPrivateFieldResolution,a)}},t.declarePrivateName=function(e,t,r){var n=this.current(),s=n.privateNames.has(e);if(3&t){var a=s&&n.loneAccessors.get(e);if(a)(s=(3&a)===(3&t)||(4&a)!==(4&t))||n.loneAccessors.delete(e);else s||n.loneAccessors.set(e,t)}s&&this.raise(r,Em.PrivateNameRedeclaration,e),n.privateNames.add(e),n.undefinedPrivateNames.delete(e)},t.usePrivateName=function(e,t){for(var r,n=0,s=this.stack;n<s.length;n++)if((r=s[n]).privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.raise(t,Em.InvalidPrivateFieldResolution,e)},e}(),Dy=function(){function e(e){void 0===e&&(e=0),this.type=void 0,this.type=e}var t=e.prototype;return t.canBeArrowParameterDeclaration=function(){return 2===this.type||1===this.type},t.isCertainlyParameterDeclaration=function(){return 3===this.type},e}(),Ay=function(e){function t(t){var r;return(r=e.call(this,t)||this).errors=new Map,r}s(t,e);var r=t.prototype;return r.recordDeclarationError=function(e,t){this.errors.set(e,t)},r.clearDeclarationError=function(e){this.errors.delete(e)},r.iterateErrors=function(e){this.errors.forEach(e)},t}(Dy),wy=function(){function e(e){this.stack=[new Dy],this.raise=e}var t=e.prototype;return t.enter=function(e){this.stack.push(e)},t.exit=function(){this.stack.pop()},t.recordParameterInitializerError=function(e,t){for(var r=this.stack,n=r.length-1,s=r[n];!s.isCertainlyParameterDeclaration();){if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,t),s=r[--n]}this.raise(e,t)},t.recordParenthesizedIdentifierError=function(e,t){var r=this.stack,n=r[r.length-1];if(n.isCertainlyParameterDeclaration())this.raise(e,t);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,t)}},t.recordAsyncArrowParametersError=function(e,t){for(var r=this.stack,n=r.length-1,s=r[n];s.canBeArrowParameterDeclaration();)2===s.type&&s.recordDeclarationError(e,t),s=r[--n]},t.validateAsPattern=function(){var e=this,t=this.stack,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors((function(r,n){e.raise(n,r);for(var s=t.length-2,a=t[s];a.canBeArrowParameterDeclaration();)a.clearDeclarationError(n),a=t[--s]}))},e}();function Cy(){return new Dy}var Sy=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.addExtra=function(e,t,r){e&&((e.extra=e.extra||{})[t]=r)},r.isRelational=function(e){return this.match(lm.relational)&&this.state.value===e},r.expectRelational=function(e){this.isRelational(e)?this.next():this.unexpected(null,lm.relational)},r.isContextual=function(e){return this.match(lm.name)&&this.state.value===e&&!this.state.containsEsc},r.isUnparsedContextual=function(e,t){var r=e+t.length;if(this.input.slice(e,r)===t){var n=this.input.charCodeAt(r);return!(gr(n)||55296==(64512&n))}return!1},r.isLookaheadContextual=function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)},r.eatContextual=function(e){return this.isContextual(e)&&this.eat(lm.name)},r.expectContextual=function(e,t){this.eatContextual(e)||this.unexpected(null,t)},r.canInsertSemicolon=function(){return this.match(lm.eof)||this.match(lm.braceR)||this.hasPrecedingLineBreak()},r.hasPrecedingLineBreak=function(){return cm.test(this.input.slice(this.state.lastTokEnd,this.state.start))},r.hasFollowingLineBreak=function(){return cm.test(this.input.slice(this.state.end,this.nextTokenStart()))},r.isLineTerminator=function(){return this.eat(lm.semi)||this.canInsertSemicolon()},r.semicolon=function(e){void 0===e&&(e=!0),(e?this.isLineTerminator():this.eat(lm.semi))||this.raise(this.state.lastTokEnd,Em.MissingSemicolon)},r.expect=function(e,t){this.eat(e)||this.unexpected(t,e)},r.assertNoSpace=function(e){void 0===e&&(e="Unexpected space."),this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,{code:bm.SyntaxError,reasonCode:"UnexpectedSpace",template:e})},r.unexpected=function(e,t){throw void 0===t&&(t={code:bm.SyntaxError,reasonCode:"UnexpectedToken",template:"Unexpected token"}),t instanceof am&&(t={code:bm.SyntaxError,reasonCode:"UnexpectedToken",template:'Unexpected token, expected "'+t.label+'"'}),this.raise(null!=e?e:this.state.start,t)},r.expectPlugin=function(e,t){if(!this.hasPlugin(e))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:[e]},"This experimental syntax requires enabling the parser plugin: '"+e+"'");return!0},r.expectOnePlugin=function(e,t){var r=this;if(!e.some((function(e){return r.hasPlugin(e)})))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:e},"This experimental syntax requires enabling one of the following parser plugin(s): '"+e.join(", ")+"'")},r.tryParse=function(e,t){void 0===t&&(t=this.state.clone());var r={node:null};try{var n=e((function(e){throw void 0===e&&(e=null),r.node=e,r}));if(this.state.errors.length>t.errors.length){var s=this.state;return this.state=t,this.state.tokensLength=s.tokensLength,{node:n,error:s.errors[t.errors.length],thrown:!1,aborted:!1,failState:s}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){var a=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:a};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:a};throw e}},r.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.unexpected(r),n>=0&&this.raise(n,Em.DuplicateProto)},r.isLiteralPropertyName=function(){return this.match(lm.name)||!!this.state.type.keyword||this.match(lm.string)||this.match(lm.num)||this.match(lm.bigint)||this.match(lm.decimal)},r.isPrivateName=function(e){return"PrivateName"===e.type},r.getPrivateNameSV=function(e){return e.id.name},r.hasPropertyAsPrivateName=function(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)},r.isOptionalChain=function(e){return"OptionalMemberExpression"===e.type||"OptionalCallExpression"===e.type},r.isObjectProperty=function(e){return"ObjectProperty"===e.type},r.isObjectMethod=function(e){return"ObjectMethod"===e.type},r.initializeScopes=function(e){var t=this;void 0===e&&(e="module"===this.options.sourceType);var r=this.state.labels;this.state.labels=[];var n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var s=this.inModule;this.inModule=e;var a=this.scope,i=this.getScopeHandler();this.scope=new i(this.raise.bind(this),this.inModule);var o=this.prodParam;this.prodParam=new ey;var u=this.classScope;this.classScope=new xy(this.raise.bind(this));var l=this.expressionScope;return this.expressionScope=new wy(this.raise.bind(this)),function(){t.state.labels=r,t.exportedIdentifiers=n,t.inModule=s,t.scope=a,t.prodParam=o,t.classScope=u,t.expressionScope=l}},r.enterInitialScopes=function(){var e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)},t}(by),Ty=function(){this.shorthandAssign=-1,this.doubleProto=-1},jy=function(){function e(e,t,r){this.type=void 0,this.start=void 0,this.end=void 0,this.loc=void 0,this.range=void 0,this.leadingComments=void 0,this.trailingComments=void 0,this.innerComments=void 0,this.extra=void 0,this.type="",this.start=t,this.end=0,this.loc=new ym(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}return e.prototype.__clone=function(){for(var t=new e,r=Object.keys(this),n=0,s=r.length;n<s;n++){var a=r[n];"leadingComments"!==a&&"trailingComments"!==a&&"innerComments"!==a&&(t[a]=this[a])}return t},e}(),Py=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.startNode=function(){return new jy(this,this.state.start,this.state.startLoc)},r.startNodeAt=function(e,t){return new jy(this,e,t)},r.startNodeAtNode=function(e){return this.startNodeAt(e.start,e.loc.start)},r.finishNode=function(e,t){return this.finishNodeAt(e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)},r.finishNodeAt=function(e,t,r,n){if(e.end>0)throw new Error("Do not call finishNode*() twice on the same node. Instead use resetEndLocation() or change type directly.");return e.type=t,e.end=r,e.loc.end=n,this.options.ranges&&(e.range[1]=r),this.processComment(e),e},r.resetStartLocation=function(e,t,r){e.start=t,e.loc.start=r,this.options.ranges&&(e.range[0]=t)},r.resetEndLocation=function(e,t,r){void 0===t&&(t=this.state.lastTokEnd),void 0===r&&(r=this.state.lastTokEndLoc),e.end=t,e.loc.end=r,this.options.ranges&&(e.range[1]=t)},r.resetStartLocationFromNode=function(e,t){this.resetStartLocation(e,t.start,t.loc.start)},t}(Sy),Iy=function e(t){return"ParenthesizedExpression"===t.type?e(t.expression):t},Fy=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.checkProto=function(e,t,r,n){if(!("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)){var s=e.key;if("__proto__"===("Identifier"===s.type?s.name:s.value)){if(t)return void this.raise(s.start,Em.RecordNoProto);r.used&&(n?-1===n.doubleProto&&(n.doubleProto=s.start):this.raise(s.start,Em.DuplicateProto)),r.used=!0}}},r.shouldExitDescending=function(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t},r.getExpression=function(){var e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e),this.nextToken();var t=this.parseExpression();return this.match(lm.eof)||this.unexpected(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t},r.parseExpression=function(e,t){var r=this;return e?this.disallowInAnd((function(){return r.parseExpressionBase(t)})):this.allowInAnd((function(){return r.parseExpressionBase(t)}))},r.parseExpressionBase=function(e){var t=this.state.start,r=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(lm.comma)){var s=this.startNodeAt(t,r);for(s.expressions=[n];this.eat(lm.comma);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return n},r.parseMaybeAssignDisallowIn=function(e,t,r){var n=this;return this.disallowInAnd((function(){return n.parseMaybeAssign(e,t,r)}))},r.parseMaybeAssignAllowIn=function(e,t,r){var n=this;return this.allowInAnd((function(){return n.parseMaybeAssign(e,t,r)}))},r.parseMaybeAssign=function(e,t,r){var n,s=this.state.start,a=this.state.startLoc;if(this.isContextual("yield")&&this.prodParam.hasYield){var i=this.parseYield();return t&&(i=t.call(this,i,s,a)),i}e?n=!1:(e=new Ty,n=!0),(this.match(lm.parenL)||this.match(lm.name))&&(this.state.potentialArrowAt=this.state.start);var o=this.parseMaybeConditional(e,r);if(t&&(o=t.call(this,o,s,a)),this.state.type.isAssign){var u=this.startNodeAt(s,a),l=this.state.value;return u.operator=l,this.match(lm.eq)?(u.left=this.toAssignable(o,!0),e.doubleProto=-1):u.left=o,e.shorthandAssign>=u.left.start&&(e.shorthandAssign=-1),this.checkLVal(o,"assignment expression"),this.next(),u.right=this.parseMaybeAssign(),this.finishNode(u,"AssignmentExpression")}return n&&this.checkExpressionErrors(e,!0),o},r.parseMaybeConditional=function(e,t){var r=this.state.start,n=this.state.startLoc,s=this.state.potentialArrowAt,a=this.parseExprOps(e);return this.shouldExitDescending(a,s)?a:this.parseConditional(a,r,n,t)},r.parseConditional=function(e,t,r,n){if(this.eat(lm.question)){var s=this.startNodeAt(t,r);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(lm.colon),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e},r.parseExprOps=function(e){var t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseMaybeUnary(e);return this.shouldExitDescending(s,n)?s:this.parseExprOp(s,t,r,-1)},r.parseExprOp=function(e,t,r,n){var s=this.state.type.binop;if(null!=s&&(this.prodParam.hasIn||!this.match(lm._in))&&s>n){var a=this.state.type;if(a===lm.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)}var i=this.startNodeAt(t,r);i.left=e,i.operator=this.state.value;var o=a===lm.logicalOR||a===lm.logicalAND,u=a===lm.nullishCoalescing;if(u&&(s=lm.logicalAND.binop),this.next(),a===lm.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(lm.name)&&"await"===this.state.value&&this.prodParam.hasAwait)throw this.raise(this.state.start,Em.UnexpectedAwaitAfterPipelineBody);i.right=this.parseExprOpRightExpr(a,s),this.finishNode(i,o||u?"LogicalExpression":"BinaryExpression");var l=this.state.type;if(u&&(l===lm.logicalOR||l===lm.logicalAND)||o&&l===lm.nullishCoalescing)throw this.raise(this.state.start,Em.MixingCoalesceWithLogical);return this.parseExprOp(i,t,r,n)}return e},r.parseExprOpRightExpr=function(e,t){var r=this,n=this.state.start,s=this.state.startLoc;switch(e){case lm.pipeline:switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((function(){return r.parseSmartPipelineBody(r.parseExprOpBaseRightExpr(e,t),n,s)}));case"fsharp":return this.withSoloAwaitPermittingContext((function(){return r.parseFSharpPipelineBody(t)}))}default:return this.parseExprOpBaseRightExpr(e,t)}},r.parseExprOpBaseRightExpr=function(e,t){var r=this.state.start,n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),r,n,e.rightAssociative?t-1:t)},r.checkExponentialAfterUnary=function(e){this.match(lm.exponent)&&this.raise(e.argument.start,Em.UnexpectedTokenUnaryExponentiation)},r.parseMaybeUnary=function(e,t){var r=this.state.start,n=this.state.startLoc,s=this.isContextual("await");if(s&&this.isAwaitAllowed()){this.next();var a=this.parseAwait(r,n);return t||this.checkExponentialAfterUnary(a),a}if(this.isContextual("module")&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();var i=this.match(lm.incDec),o=this.startNode();if(this.state.type.prefix){o.operator=this.state.value,o.prefix=!0,this.match(lm._throw)&&this.expectPlugin("throwExpressions");var u=this.match(lm._delete);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&u){var l=o.argument;"Identifier"===l.type?this.raise(o.start,Em.StrictDelete):this.hasPropertyAsPrivateName(l)&&this.raise(o.start,Em.DeletePrivateField)}if(!i)return t||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}var c=this.parseUpdate(o,i,e);if(s&&((this.hasPlugin("v8intrinsic")?this.state.type.startsExpr:this.state.type.startsExpr&&!this.match(lm.modulo))&&!this.isAmbiguousAwait()))return this.raiseOverwrite(r,this.hasPlugin("topLevelAwait")?Em.AwaitNotInAsyncContext:Em.AwaitNotInAsyncFunction),this.parseAwait(r,n);return c},r.parseUpdate=function(e,t,r){if(t)return this.checkLVal(e.argument,"prefix operation"),this.finishNode(e,"UpdateExpression");var n=this.state.start,s=this.state.startLoc,a=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return a;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var i=this.startNodeAt(n,s);i.operator=this.state.value,i.prefix=!1,i.argument=a,this.checkLVal(a,"postfix operation"),this.next(),a=this.finishNode(i,"UpdateExpression")}return a},r.parseExprSubscripts=function(e){var t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,n)?s:this.parseSubscripts(s,t,r)},r.parseSubscripts=function(e,t,r,n){var s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n,s),s.maybeAsyncArrow=!1}while(!s.stop);return e},r.parseSubscript=function(e,t,r,n,s){if(!n&&this.eat(lm.doubleColon))return this.parseBind(e,t,r,n,s);if(this.match(lm.backQuote))return this.parseTaggedTemplateExpression(e,t,r,s);var a=!1;if(this.match(lm.questionDot)){if(n&&40===this.lookaheadCharCode())return s.stop=!0,e;s.optionalChainMember=a=!0,this.next()}return!n&&this.match(lm.parenL)?this.parseCoverCallAndAsyncArrowHead(e,t,r,s,a):a||this.match(lm.bracketL)||this.eat(lm.dot)?this.parseMember(e,t,r,s,a):(s.stop=!0,e)},r.parseMember=function(e,t,r,n,s){var a=this.startNodeAt(t,r),i=this.eat(lm.bracketL);a.object=e,a.computed=i;var o=!i&&this.match(lm.privateName)&&this.state.value,u=i?this.parseExpression():o?this.parsePrivateName():this.parseIdentifier(!0);return!1!==o&&("Super"===a.object.type&&this.raise(t,Em.SuperPrivateField),this.classScope.usePrivateName(o,u.start)),a.property=u,i&&this.expect(lm.bracketR),n.optionalChainMember?(a.optional=s,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")},r.parseBind=function(e,t,r,n,s){var a=this.startNodeAt(t,r);return a.object=e,a.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(a,"BindExpression"),t,r,n)},r.parseCoverCallAndAsyncArrowHead=function(e,t,r,n,s){var a=this.state.maybeInArrowParameters,i=null;this.state.maybeInArrowParameters=!0,this.next();var o=this.startNodeAt(t,r);return o.callee=e,n.maybeAsyncArrow&&(this.expressionScope.enter(new Ay(2)),i=new Ty),n.optionalChainMember&&(o.optional=s),o.arguments=s?this.parseCallExpressionArguments(lm.parenR):this.parseCallExpressionArguments(lm.parenR,"Import"===e.type,"Super"!==e.type,o,i),this.finishCallExpression(o,n.optionalChainMember),n.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!s?(n.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),o=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),o)):(n.maybeAsyncArrow&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(o)),this.state.maybeInArrowParameters=a,o},r.toReferencedArguments=function(e,t){this.toReferencedListDeep(e.arguments,t)},r.parseTaggedTemplateExpression=function(e,t,r,n){var s=this.startNodeAt(t,r);return s.tag=e,s.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(t,Em.OptionalChainingNoTemplate),this.finishNode(s,"TaggedTemplateExpression")},r.atPossibleAsyncArrow=function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt},r.finishCallExpression=function(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(e.start,Em.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(var r=0,n=e.arguments;r<n.length;r++){var s=n[r];"SpreadElement"===s.type&&this.raise(s.start,Em.ImportCallSpreadArgument)}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")},r.parseCallExpressionArguments=function(e,t,r,n,s){var a=[],i=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(i)i=!1;else if(this.expect(lm.comma),this.match(e)){!t||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(this.state.lastTokStart,Em.ImportCallArgumentTrailingComma),n&&this.addExtra(n,"trailingComma",this.state.lastTokStart),this.next();break}a.push(this.parseExprListItem(!1,s,{start:0},r))}return this.state.inFSharpPipelineDirectBody=o,a},r.shouldParseAsyncArrow=function(){return this.match(lm.arrow)&&!this.canInsertSemicolon()},r.parseAsyncArrowFromCallExpression=function(e,t){var r;return this.expect(lm.arrow),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingComma),e},r.parseNoCallExpr=function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)},r.parseExprAtom=function(e){var t;switch(this.state.type){case lm._super:return this.parseSuper();case lm._import:return t=this.startNode(),this.next(),this.match(lm.dot)?this.parseImportMetaProperty(t):(this.match(lm.parenL)||this.raise(this.state.lastTokStart,Em.UnsupportedImport),this.finishNode(t,"Import"));case lm._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case lm.name:var r=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,s=this.parseIdentifier();if(!n&&"async"===s.name&&!this.canInsertSemicolon()){if(this.match(lm._function))return this.next(),this.parseFunction(this.startNodeAtNode(s),void 0,!0);if(this.match(lm.name))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(s):s;if(this.match(lm._do))return this.parseDo(!0)}return r&&this.match(lm.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(s),[s],!1)):s;case lm._do:return this.parseDo(!1);case lm.slash:case lm.slashAssign:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case lm.num:return this.parseNumericLiteral(this.state.value);case lm.bigint:return this.parseBigIntLiteral(this.state.value);case lm.decimal:return this.parseDecimalLiteral(this.state.value);case lm.string:return this.parseStringLiteral(this.state.value);case lm._null:return this.parseNullLiteral();case lm._true:return this.parseBooleanLiteral(!0);case lm._false:return this.parseBooleanLiteral(!1);case lm.parenL:var a=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(a);case lm.bracketBarL:case lm.bracketHashL:return this.parseArrayLike(this.state.type===lm.bracketBarL?lm.bracketBarR:lm.bracketR,!1,!0,e);case lm.bracketL:return this.parseArrayLike(lm.bracketR,!0,!1,e);case lm.braceBarL:case lm.braceHashL:return this.parseObjectLike(this.state.type===lm.braceBarL?lm.braceBarR:lm.braceR,!1,!0,e);case lm.braceL:return this.parseObjectLike(lm.braceR,!1,!1,e);case lm._function:return this.parseFunctionOrFunctionSent();case lm.at:this.parseDecorators();case lm._class:return t=this.startNode(),this.takeDecorators(t),this.parseClass(t,!1);case lm._new:return this.parseNewOrNewTarget();case lm.backQuote:return this.parseTemplate(!1);case lm.doubleColon:t=this.startNode(),this.next(),t.object=null;var i=t.callee=this.parseNoCallExpr();if("MemberExpression"===i.type)return this.finishNode(t,"BindExpression");throw this.raise(i.start,Em.UnsupportedBind);case lm.privateName:var o=this.state.start,u=this.state.value;if(t=this.parsePrivateName(),this.match(lm._in))this.expectPlugin("privateIn"),this.classScope.usePrivateName(u,t.start);else{if(!this.hasPlugin("privateIn"))throw this.unexpected(o);this.raise(this.state.start,Em.PrivateInExpectedIn,u)}return t;case lm.hash:if(this.state.inPipeline)return t=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(t.start,Em.PrimaryTopicRequiresSmartPipeline),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(t.start,Em.PrimaryTopicNotAllowed),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference");case lm.relational:if("<"===this.state.value){var l=this.input.codePointAt(this.nextTokenStart());(yr(l)||62===l)&&this.expectOnePlugin(["jsx","flow","typescript"])}default:throw this.unexpected()}},r.parseAsyncArrowUnaryFunction=function(e){var t=this.startNodeAtNode(e);this.prodParam.enter(ty(!0,this.prodParam.hasYield));var r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,Em.LineTerminatorBeforeArrow),this.expect(lm.arrow),this.parseArrowExpression(t,r,!0),t},r.parseDo=function(e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions");var t=this.startNode();t.async=e,this.next();var r=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=r,this.finishNode(t,"DoExpression")},r.parseSuper=function(){var e=this.startNode();return this.next(),!this.match(lm.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(e.start,Em.UnexpectedSuper):this.raise(e.start,Em.SuperNotAllowed),this.match(lm.parenL)||this.match(lm.bracketL)||this.match(lm.dot)||this.raise(e.start,Em.UnsupportedSuper),this.finishNode(e,"Super")},r.parseMaybePrivateName=function(e){return this.match(lm.privateName)?(e||this.raise(this.state.start+1,Em.UnexpectedPrivateField),this.parsePrivateName()):this.parseIdentifier(!0)},r.parsePrivateName=function(){var e=this.startNode(),t=this.startNodeAt(this.state.start+1,new mm(this.state.curLine,this.state.start+1-this.state.lineStart)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")},r.parseFunctionOrFunctionSent=function(){var e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(lm.dot)){var t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)},r.parseMetaProperty=function(e,t,r){e.meta=t,"function"===t.name&&"sent"===r&&(this.isContextual(r)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());var n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(e.property.start,Em.UnsupportedMetaProperty,t.name,r),this.finishNode(e,"MetaProperty")},r.parseImportMetaProperty=function(e){var t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual("meta")&&(this.inModule||this.raise(t.start,xm.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")},r.parseLiteralAtNode=function(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)},r.parseLiteral=function(e,t){var r=this.startNode();return this.parseLiteralAtNode(e,t,r)},r.parseStringLiteral=function(e){return this.parseLiteral(e,"StringLiteral")},r.parseNumericLiteral=function(e){return this.parseLiteral(e,"NumericLiteral")},r.parseBigIntLiteral=function(e){return this.parseLiteral(e,"BigIntLiteral")},r.parseDecimalLiteral=function(e){return this.parseLiteral(e,"DecimalLiteral")},r.parseRegExpLiteral=function(e){var t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t},r.parseBooleanLiteral=function(e){var t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")},r.parseNullLiteral=function(){var e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")},r.parseParenAndDistinguishExpression=function(e){var t,r=this.state.start,n=this.state.startLoc;this.next(),this.expressionScope.enter(new Ay(1));var s=this.state.maybeInArrowParameters,a=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;for(var i,o,u=this.state.start,l=this.state.startLoc,c=[],p=new Ty,d={start:0},f=!0;!this.match(lm.parenR);){if(f)f=!1;else if(this.expect(lm.comma,d.start||null),this.match(lm.parenR)){o=this.state.start;break}if(this.match(lm.ellipsis)){var h=this.state.start,m=this.state.startLoc;i=this.state.start,c.push(this.parseParenItem(this.parseRestBinding(),h,m)),this.checkCommaAfterRest(41);break}c.push(this.parseMaybeAssignAllowIn(p,this.parseParenItem,d))}var y=this.state.lastTokEnd,g=this.state.lastTokEndLoc;this.expect(lm.parenR),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=a;var v=this.startNodeAt(r,n);if(e&&this.shouldParseArrow()&&(v=this.parseArrow(v)))return this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(v,c,!1),v;if(this.expressionScope.exit(),c.length||this.unexpected(this.state.lastTokStart),o&&this.unexpected(o),i&&this.unexpected(i),this.checkExpressionErrors(p,!0),d.start&&this.unexpected(d.start),this.toReferencedListDeep(c,!0),c.length>1?((t=this.startNodeAt(u,l)).expressions=c,this.finishNodeAt(t,"SequenceExpression",y,g)):t=c[0],!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",r),t;var b=this.startNodeAt(r,n);return b.expression=t,this.finishNode(b,"ParenthesizedExpression"),b},r.shouldParseArrow=function(){return!this.canInsertSemicolon()},r.parseArrow=function(e){if(this.eat(lm.arrow))return e},r.parseParenItem=function(e,t,r){return e},r.parseNewOrNewTarget=function(){var e=this.startNode();if(this.next(),this.match(lm.dot)){var t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();var r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.raise(r.start,Em.UnexpectedNewTarget),r}return this.parseNew(e)},r.parseNew=function(e){return e.callee=this.parseNoCallExpr(),"Import"===e.callee.type?this.raise(e.callee.start,Em.ImportCallNotNewExpression):this.isOptionalChain(e.callee)?this.raise(this.state.lastTokEnd,Em.OptionalChainingNoNew):this.eat(lm.questionDot)&&this.raise(this.state.start,Em.OptionalChainingNoNew),this.parseNewArguments(e),this.finishNode(e,"NewExpression")},r.parseNewArguments=function(e){if(this.eat(lm.parenL)){var t=this.parseExprList(lm.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]},r.parseTemplateElement=function(e){var t=this.startNode();return null===this.state.value&&(e||this.raise(this.state.start+1,Em.InvalidEscapeSequenceTemplate)),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),t.tail=this.match(lm.backQuote),this.finishNode(t,"TemplateElement")},r.parseTemplate=function(e){var t=this.startNode();this.next(),t.expressions=[];var r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(lm.dollarBraceL),t.expressions.push(this.parseTemplateSubstitution()),this.expect(lm.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")},r.parseTemplateSubstitution=function(){return this.parseExpression()},r.parseObjectLike=function(e,t,r,n){r&&this.expectPlugin("recordAndTuple");var s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var a=Object.create(null),i=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(i)i=!1;else if(this.expect(lm.comma),this.match(e)){this.addExtra(o,"trailingComma",this.state.lastTokStart);break}var u=this.parsePropertyDefinition(t,n);t||this.checkProto(u,r,a,n),r&&!this.isObjectProperty(u)&&"SpreadElement"!==u.type&&this.raise(u.start,Em.InvalidRecordProperty),u.shorthand&&this.addExtra(u,"shorthand",!0),o.properties.push(u)}this.next(),this.state.inFSharpPipelineDirectBody=s;var l="ObjectExpression";return t?l="ObjectPattern":r&&(l="RecordExpression"),this.finishNode(o,l)},r.maybeAsyncOrAccessorProp=function(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(lm.bracketL)||this.match(lm.star))},r.parsePropertyDefinition=function(e,t){var r=[];if(this.match(lm.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,Em.UnsupportedPropertyDecorator);this.match(lm.at);)r.push(this.parseDecorator());var n,s,a=this.startNode(),i=!1,o=!1,u=!1;if(this.match(lm.ellipsis))return r.length&&this.unexpected(),e?(this.next(),a.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(a,"RestElement")):this.parseSpread();r.length&&(a.decorators=r,r=[]),a.method=!1,(e||t)&&(n=this.state.start,s=this.state.startLoc),e||(i=this.eat(lm.star));var l=this.state.containsEsc,c=this.parsePropertyName(a,!1);if(!e&&!i&&!l&&this.maybeAsyncOrAccessorProp(a)){var p=c.name;"async"!==p||this.hasPrecedingLineBreak()||(o=!0,i=this.eat(lm.star),this.parsePropertyName(a,!1)),"get"!==p&&"set"!==p||(u=!0,a.kind=p,this.match(lm.star)&&(i=!0,this.raise(this.state.pos,Em.AccessorIsGenerator,p),this.next()),this.parsePropertyName(a,!1))}return this.parseObjPropValue(a,n,s,i,o,e,u,t),a},r.getGetterSetterExpectedParamCount=function(e){return"get"===e.kind?0:1},r.getObjectOrClassMethodParams=function(e){return e.params},r.checkGetterSetterParams=function(e){var t,r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e),s=e.start;n.length!==r&&("get"===e.kind?this.raise(s,Em.BadGetterArity):this.raise(s,Em.BadSetterArity)),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(s,Em.BadSetterRestParameter)},r.parseObjectMethod=function(e,t,r,n,s){return s?(this.parseMethod(e,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):r||t||this.match(lm.parenL)?(n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")):void 0},r.parseObjectProperty=function(e,t,r,n,s){return e.shorthand=!1,this.eat(lm.colon)?(e.value=n?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(s),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!1),n?e.value=this.parseMaybeDefault(t,r,e.key.__clone()):this.match(lm.eq)&&s?(-1===s.shorthandAssign&&(s.shorthandAssign=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))},r.parseObjPropValue=function(e,t,r,n,s,a,i,o){var u=this.parseObjectMethod(e,n,s,a,i)||this.parseObjectProperty(e,t,r,a,o);return u||this.unexpected(),u},r.parsePropertyName=function(e,t){if(this.eat(lm.bracketL))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(lm.bracketR);else{var r=this.state.inPropertyName;this.state.inPropertyName=!0;var n=this.state.type;e.key=n===lm.num||n===lm.string||n===lm.bigint||n===lm.decimal?this.parseExprAtom():this.parseMaybePrivateName(t),n!==lm.privateName&&(e.computed=!1),this.state.inPropertyName=r}return e.key},r.initFunction=function(e,t){e.id=null,e.generator=!1,e.async=!!t},r.parseMethod=function(e,t,r,n,s,a,i){void 0===i&&(i=!1),this.initFunction(e,r),e.generator=!!t;var o=n;return this.scope.enter(18|(i?Tm:0)|(s?32:0)),this.prodParam.enter(ty(r,e.generator)),this.parseFunctionParams(e,o),this.parseFunctionBodyAndFinish(e,a,!0),this.prodParam.exit(),this.scope.exit(),e},r.parseArrayLike=function(e,t,r,n){r&&this.expectPlugin("recordAndTuple");var s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!r,n,a),this.state.inFSharpPipelineDirectBody=s,this.finishNode(a,r?"TupleExpression":"ArrayExpression")},r.parseArrowExpression=function(e,t,r,n){this.scope.enter(6);var s=ty(r,!1);!this.match(lm.bracketL)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(e,r);var a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")},r.setArrowFunctionParameters=function(e,t,r){e.params=this.toAssignableList(t,r,!1)},r.parseFunctionBodyAndFinish=function(e,t,r){void 0===r&&(r=!1),this.parseFunctionBody(e,!1,r),this.finishNode(e,t)},r.parseFunctionBody=function(e,t,r){var n=this;void 0===r&&(r=!1);var s=t&&!this.match(lm.braceL);if(this.expressionScope.enter(Cy()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var a=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(function(s){var i=!n.isSimpleParamList(e.params);if(s&&i){var o="method"!==e.kind&&"constructor"!==e.kind||!e.key?e.start:e.key.end;n.raise(o,Em.IllegalLanguageModeDirective)}var u=!a&&n.state.strict;n.checkParams(e,!(n.state.strict||t||r||i),t,u),n.state.strict&&e.id&&n.checkLVal(e.id,"function name",65,void 0,void 0,u)})),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=i}},r.isSimpleParamList=function(e){for(var t=0,r=e.length;t<r;t++)if("Identifier"!==e[t].type)return!1;return!0},r.checkParams=function(e,t,r,n){void 0===n&&(n=!0);for(var s=new Set,a=0,i=e.params;a<i.length;a++){var o=i[a];this.checkLVal(o,"function parameter list",5,t?null:s,void 0,n)}},r.parseExprList=function(e,t,r,n){for(var s=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(lm.comma),this.match(e)){n&&this.addExtra(n,"trailingComma",this.state.lastTokStart),this.next();break}s.push(this.parseExprListItem(t,r))}return s},r.parseExprListItem=function(e,t,r,n){var s;if(this.match(lm.comma))e||this.raise(this.state.pos,Em.UnexpectedToken,","),s=null;else if(this.match(lm.ellipsis)){var a=this.state.start,i=this.state.startLoc;s=this.parseParenItem(this.parseSpread(t,r),a,i)}else if(this.match(lm.question)){this.expectPlugin("partialApplication"),n||this.raise(this.state.start,Em.UnexpectedArgumentPlaceholder);var o=this.startNode();this.next(),s=this.finishNode(o,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowIn(t,this.parseParenItem,r);return s},r.parseIdentifier=function(e){var t=this.startNode(),r=this.parseIdentifierName(t.start,e);return this.createIdentifier(t,r)},r.createIdentifier=function(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")},r.parseIdentifierName=function(e,t){var r,n=this.state,s=n.start,a=n.type;if(a===lm.name)r=this.state.value;else{if(!a.keyword)throw this.unexpected();if(r=a.keyword,a===lm._class||a===lm._function){var i=this.curContext();i!==Cm.functionStatement&&i!==Cm.functionExpression||this.state.context.pop()}}return t?this.state.type=lm.name:this.checkReservedWord(r,s,!!a.keyword,!1),this.next(),r},r.checkReservedWord=function(e,t,r,n){if(!(e.length>10)&&function(e){return Sm.has(e)}(e)){if("yield"===e){if(this.prodParam.hasYield)return void this.raise(t,Em.YieldBindingIdentifier)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(t,Em.AwaitBindingIdentifier);if(this.scope.inStaticBlock&&!this.scope.inNonArrowFunction)return void this.raise(t,Em.AwaitBindingIdentifierInStaticBlock);this.expressionScope.recordAsyncArrowParametersError(t,Em.AwaitBindingIdentifier)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(t,Em.ArgumentsInClass);if(r&&jr(e))this.raise(t,Em.UnexpectedKeyword,e);else(this.state.strict?n?Tr:Cr:wr)(e,this.inModule)&&this.raise(t,Em.UnexpectedReservedWord,e)}},r.isAwaitAllowed=function(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)},r.parseAwait=function(e,t){var r=this.startNodeAt(e,t);return this.expressionScope.recordParameterInitializerError(r.start,Em.AwaitExpressionFormalParameter),this.eat(lm.star)&&this.raise(r.start,Em.ObsoleteAwaitStar),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")},r.isAmbiguousAwait=function(){return this.hasPrecedingLineBreak()||this.match(lm.plusMin)||this.match(lm.parenL)||this.match(lm.bracketL)||this.match(lm.backQuote)||this.match(lm.regexp)||this.match(lm.slash)||this.hasPlugin("v8intrinsic")&&this.match(lm.modulo)},r.parseYield=function(){var e=this.startNode();this.expressionScope.recordParameterInitializerError(e.start,Em.YieldInParameter),this.next();var t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(lm.star),this.state.type){case lm.semi:case lm.eof:case lm.braceR:case lm.parenR:case lm.bracketR:case lm.braceBarR:case lm.colon:case lm.comma:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")},r.checkPipelineAtInfixOperator=function(e,t){"smart"===this.getPluginOption("pipelineOperator","proposal")&&"SequenceExpression"===e.type&&this.raise(t,Em.PipelineHeadSequenceExpression)},r.parseSmartPipelineBody=function(e,t,r){return this.checkSmartPipelineBodyEarlyErrors(e,t),this.parseSmartPipelineBodyInStyle(e,t,r)},r.checkSmartPipelineBodyEarlyErrors=function(e,t){if(this.match(lm.arrow))throw this.raise(this.state.start,Em.PipelineBodyNoArrow);"SequenceExpression"===e.type&&this.raise(t,Em.PipelineBodySequenceExpression)},r.parseSmartPipelineBodyInStyle=function(e,t,r){var n=this.startNodeAt(t,r),s=this.isSimpleReference(e);return s?n.callee=e:(this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(t,Em.PipelineTopicUnused),n.expression=e),this.finishNode(n,s?"PipelineBareFunction":"PipelineTopicExpression")},r.isSimpleReference=function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}},r.withTopicPermittingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withTopicForbiddingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSoloAwaitPermittingContext=function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}},r.allowInAnd=function(e){var t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()},r.disallowInAnd=function(e){var t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()},r.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},r.primaryTopicReferenceIsAllowedInCurrentTopicContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},r.topicReferenceWasUsedInCurrentTopicContext=function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0},r.parseFSharpPipelineBody=function(e){var t=this.state.start,r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var s=this.parseExprOp(this.parseMaybeUnary(),t,r,e);return this.state.inFSharpPipelineDirectBody=n,s},r.parseModuleExpression=function(){this.expectPlugin("moduleBlocks");var e=this.startNode();this.next(),this.eat(lm.braceL);var t=this.initializeScopes(!0);this.enterInitialScopes();var r=this.startNode();try{e.body=this.parseProgram(r,lm.braceR,"module")}finally{t()}return this.eat(lm.braceR),this.finishNode(e,"ModuleExpression")},t}(function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.toAssignable=function(e,t){var r,n;void 0===t&&(t=!1);var s=void 0;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(s=Iy(e),t?"Identifier"===s.type?this.expressionScope.recordParenthesizedIdentifierError(e.start,Em.InvalidParenthesizedAssignment):"MemberExpression"!==s.type&&this.raise(e.start,Em.InvalidParenthesizedAssignment):this.raise(e.start,Em.InvalidParenthesizedAssignment)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var a=0,i=e.properties.length,o=i-1;a<i;a++){var u,l=e.properties[a],c=a===o;this.toAssignableObjectExpressionProp(l,c,t),c&&"RestElement"===l.type&&null!=(u=e.extra)&&u.trailingComma&&this.raiseRestNotLast(e.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(e.value,t);break;case"SpreadElement":this.checkToRestConversion(e),e.type="RestElement";var p=e.argument;this.toAssignable(p,t);break;case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(n=e.extra)?void 0:n.trailingComma,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,Em.MissingEqInAssignment),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(s,t)}return e},r.toAssignableObjectExpressionProp=function(e,t,r){if("ObjectMethod"===e.type){var n="get"===e.kind||"set"===e.kind?Em.PatternHasAccessor:Em.PatternHasMethod;this.raise(e.key.start,n)}else"SpreadElement"!==e.type||t?this.toAssignable(e,r):this.raiseRestNotLast(e.start)},r.toAssignableList=function(e,t,r){var n=e.length;if(n){var s=e[n-1];if("RestElement"===(null==s?void 0:s.type))--n;else if("SpreadElement"===(null==s?void 0:s.type)){s.type="RestElement";var a=s.argument;this.toAssignable(a,r),"Identifier"!==(a=Iy(a)).type&&"MemberExpression"!==a.type&&"ArrayPattern"!==a.type&&"ObjectPattern"!==a.type&&this.unexpected(a.start),t&&this.raiseTrailingCommaAfterRest(t),--n}}for(var i=0;i<n;i++){var o=e[i];o&&(this.toAssignable(o,r),"RestElement"===o.type&&this.raiseRestNotLast(o.start))}return e},r.toReferencedList=function(e,t){return e},r.toReferencedListDeep=function(e,t){this.toReferencedList(e,t);for(var r=0;r<e.length;r++){var n=e[r];"ArrayExpression"===(null==n?void 0:n.type)&&this.toReferencedListDeep(n.elements)}},r.parseSpread=function(e,t){var r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0,t),this.finishNode(r,"SpreadElement")},r.parseRestBinding=function(){var e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},r.parseBindingAtom=function(){switch(this.state.type){case lm.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(lm.bracketR,93,!0),this.finishNode(e,"ArrayPattern");case lm.braceL:return this.parseObjectLike(lm.braceR,!0)}return this.parseIdentifier()},r.parseBindingList=function(e,t,r,n){for(var s=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(lm.comma),r&&this.match(lm.comma))s.push(null);else{if(this.eat(e))break;if(this.match(lm.ellipsis)){s.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(t),this.expect(e);break}var i=[];for(this.match(lm.at)&&this.hasPlugin("decorators")&&this.raise(this.state.start,Em.UnsupportedParameterDecorator);this.match(lm.at);)i.push(this.parseDecorator());s.push(this.parseAssignableListItem(n,i))}return s},r.parseAssignableListItem=function(e,t){var r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r);var n=this.parseMaybeDefault(r.start,r.loc.start,r);return t.length&&(r.decorators=t),n},r.parseAssignableListItemTypes=function(e){return e},r.parseMaybeDefault=function(e,t,r){var n,s,a;if(t=null!=(n=t)?n:this.state.startLoc,e=null!=(s=e)?s:this.state.start,r=null!=(a=r)?a:this.parseBindingAtom(),!this.eat(lm.eq))return r;var i=this.startNodeAt(e,t);return i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")},r.checkLVal=function(e,t,r,n,s,a){switch(void 0===r&&(r=64),void 0===a&&(a=!1),e.type){case"Identifier":var i=e.name;this.state.strict&&(a?Tr(i,this.inModule):Sr(i))&&this.raise(e.start,64===r?Em.StrictEvalArguments:Em.StrictEvalArgumentsBinding,i),n&&(n.has(i)?this.raise(e.start,Em.ParamDupe):n.add(i)),s&&"let"===i&&this.raise(e.start,Em.LetInLexicalBinding),64&r||this.scope.declareName(i,r,e.start);break;case"MemberExpression":64!==r&&this.raise(e.start,Em.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(var o=0,u=e.properties;o<u.length;o++){var l=u[o];if(this.isObjectProperty(l))l=l.value;else if(this.isObjectMethod(l))continue;this.checkLVal(l,"object destructuring pattern",r,n,s)}break;case"ArrayPattern":for(var c=0,p=e.elements;c<p.length;c++){var d=p[c];d&&this.checkLVal(d,"array destructuring pattern",r,n,s)}break;case"AssignmentPattern":this.checkLVal(e.left,"assignment pattern",r,n);break;case"RestElement":this.checkLVal(e.argument,"rest element",r,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,"parenthesized expression",r,n);break;default:this.raise(e.start,64===r?Em.InvalidLhs:Em.InvalidLhsBinding,t)}},r.checkToRestConversion=function(e){"Identifier"!==e.argument.type&&"MemberExpression"!==e.argument.type&&this.raise(e.argument.start,Em.InvalidRestAssignmentPattern)},r.checkCommaAfterRest=function(e){this.match(lm.comma)&&(this.lookaheadCharCode()===e?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))},r.raiseRestNotLast=function(e){throw this.raise(e,Em.ElementAfterRest)},r.raiseTrailingCommaAfterRest=function(e){this.raise(e,Em.RestTrailingComma)},t}(Py)),ky={kind:"loop"},Oy={kind:"switch"},Ry=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ny=new RegExp("in(?:stanceof)?","y");var By=function(e){function t(t,r){var n;return t=function(e){for(var t={},r=0,n=Object.keys(fy);r<n.length;r++){var s=n[r];t[s]=e&&null!=e[s]?e[s]:fy[s]}return t}(t),(n=e.call(this,t,r)||this).options=t,n.initializeScopes(),n.plugins=function(e){for(var t=new Map,r=0;r<e.length;r++){var n=e[r],s=Array.isArray(n)?n:[n,{}],a=s[0],i=s[1];t.has(a)||t.set(a,i||{})}return t}(n.options.plugins),n.filename=t.sourceFilename,n}s(t,e);var r=t.prototype;return r.getScopeHandler=function(){return Bm},r.parse=function(){this.enterInitialScopes();var e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e},t}(function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var r=t.prototype;return r.parseTopLevel=function(e,t){return e.program=this.parseProgram(t),e.comments=this.state.comments,this.options.tokens&&(e.tokens=function(e){for(var t=0;t<e.length;t++){var r=e[t];if(r.type===lm.privateName){var n=r.loc,s=r.start,a=r.value,i=r.end,o=s+1,u=new mm(n.start.line,n.start.column+1);e.splice(t,1,new vy({type:lm.hash,value:"#",start:s,end:o,startLoc:n.start,endLoc:u}),new vy({type:lm.name,value:a,start:o,end:i,startLoc:u,endLoc:n.end}))}}return e}(this.tokens)),this.finishNode(e,"File")},r.parseProgram=function(e,t,r){if(void 0===t&&(t=lm.eof),void 0===r&&(r=this.options.sourceType),e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(var n=0,s=Array.from(this.scope.undefinedExports);n<s.length;n++){var a=s[n][0],i=this.scope.undefinedExports.get(a);this.raise(i,Em.ModuleExportUndefined,a)}return this.finishNode(e,"Program")},r.stmtToDirective=function(e){var t=e.expression,r=this.startNodeAt(t.start,t.loc.start),n=this.startNodeAt(e.start,e.loc.start),s=this.input.slice(t.start,t.end),a=r.value=s.slice(1,-1);return this.addExtra(r,"raw",s),this.addExtra(r,"rawValue",a),n.value=this.finishNodeAt(r,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(n,"Directive",e.end,e.loc.end)},r.parseInterpreterDirective=function(){if(!this.match(lm.interpreterDirective))return null;var e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")},r.isLet=function(e){return!!this.isContextual("let")&&this.isLetKeyword(e)},r.isLetKeyword=function(e){var t=this.nextTokenStart(),r=this.codePointAtPos(t);if(92===r||91===r)return!0;if(e)return!1;if(123===r)return!0;if(yr(r)){Ny.lastIndex=t;var n=Ny.exec(this.input);if(null!==n){var s=this.codePointAtPos(t+n[0].length);if(!gr(s)&&92!==s)return!1}return!0}return!1},r.parseStatement=function(e,t){return this.match(lm.at)&&this.parseDecorators(!0),this.parseStatementContent(e,t)},r.parseStatementContent=function(e,t){var r,n=this.state.type,s=this.startNode();switch(this.isLet(e)&&(n=lm._var,r="let"),n){case lm._break:case lm._continue:return this.parseBreakContinueStatement(s,n.keyword);case lm._debugger:return this.parseDebuggerStatement(s);case lm._do:return this.parseDoStatement(s);case lm._for:return this.parseForStatement(s);case lm._function:if(46===this.lookaheadCharCode())break;return e&&(this.state.strict?this.raise(this.state.start,Em.StrictFunction):"if"!==e&&"label"!==e&&this.raise(this.state.start,Em.SloppyFunction)),this.parseFunctionStatement(s,!1,!e);case lm._class:return e&&this.unexpected(),this.parseClass(s,!0);case lm._if:return this.parseIfStatement(s);case lm._return:return this.parseReturnStatement(s);case lm._switch:return this.parseSwitchStatement(s);case lm._throw:return this.parseThrowStatement(s);case lm._try:return this.parseTryStatement(s);case lm._const:case lm._var:return r=r||this.state.value,e&&"var"!==r&&this.raise(this.state.start,Em.UnexpectedLexicalDeclaration),this.parseVarStatement(s,r);case lm._while:return this.parseWhileStatement(s);case lm._with:return this.parseWithStatement(s);case lm.braceL:return this.parseBlock();case lm.semi:return this.parseEmptyStatement(s);case lm._import:var a=this.lookaheadCharCode();if(40===a||46===a)break;case lm._export:var i;return this.options.allowImportExportEverywhere||t||this.raise(this.state.start,Em.UnexpectedImportExport),this.next(),n===lm._import?"ImportDeclaration"!==(i=this.parseImport(s)).type||i.importKind&&"value"!==i.importKind||(this.sawUnambiguousESM=!0):("ExportNamedDeclaration"!==(i=this.parseExport(s)).type||i.exportKind&&"value"!==i.exportKind)&&("ExportAllDeclaration"!==i.type||i.exportKind&&"value"!==i.exportKind)&&"ExportDefaultDeclaration"!==i.type||(this.sawUnambiguousESM=!0),this.assertModuleNodeAllowed(s),i;default:if(this.isAsyncFunction())return e&&this.raise(this.state.start,Em.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(s,!0,!e)}var o=this.state.value,u=this.parseExpression();return n===lm.name&&"Identifier"===u.type&&this.eat(lm.colon)?this.parseLabeledStatement(s,o,u,e):this.parseExpressionStatement(s,u)},r.assertModuleNodeAllowed=function(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(e.start,xm.ImportOutsideModule)},r.takeDecorators=function(e){var t=this.state.decoratorStack[this.state.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])},r.canHaveLeadingDecorator=function(){return this.match(lm._class)},r.parseDecorators=function(e){for(var t=this.state.decoratorStack[this.state.decoratorStack.length-1];this.match(lm.at);){var r=this.parseDecorator();t.push(r)}if(this.match(lm._export))e||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,Em.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,Em.UnexpectedLeadingDecorator)},r.parseDecorator=function(){this.expectOnePlugin(["decorators-legacy","decorators"]);var e=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);var t,r=this.state.start,n=this.state.startLoc;if(this.eat(lm.parenL))t=this.parseExpression(),this.expect(lm.parenR);else for(t=this.parseIdentifier(!1);this.eat(lm.dot);){var s=this.startNodeAt(r,n);s.object=t,s.property=this.parseIdentifier(!0),s.computed=!1,t=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t),this.state.decoratorStack.pop()}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")},r.parseMaybeDecoratorArguments=function(e){if(this.eat(lm.parenL)){var t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(lm.parenR,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e},r.parseBreakContinueStatement=function(e,t){var r="break"===t;return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},r.verifyBreakContinue=function(e,t){var r,n="break"===t;for(r=0;r<this.state.labels.length;++r){var s=this.state.labels[r];if(null==e.label||s.name===e.label.name){if(null!=s.kind&&(n||"loop"===s.kind))break;if(e.label&&n)break}}r===this.state.labels.length&&this.raise(e.start,Em.IllegalBreakContinue,t)},r.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},r.parseHeaderExpression=function(){this.expect(lm.parenL);var e=this.parseExpression();return this.expect(lm.parenR),e},r.parseDoStatement=function(e){var t=this;return this.next(),this.state.labels.push(ky),e.body=this.withTopicForbiddingContext((function(){return t.parseStatement("do")})),this.state.labels.pop(),this.expect(lm._while),e.test=this.parseHeaderExpression(),this.eat(lm.semi),this.finishNode(e,"DoWhileStatement")},r.parseForStatement=function(e){this.next(),this.state.labels.push(ky);var t=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")&&(t=this.state.lastTokStart),this.scope.enter(0),this.expect(lm.parenL),this.match(lm.semi))return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isContextual("let"),n=r&&this.isLetKeyword();if(this.match(lm._var)||this.match(lm._const)||n){var s=this.startNode(),a=n?"let":this.state.value;return this.next(),this.parseVar(s,!0,a),this.finishNode(s,"VariableDeclaration"),(this.match(lm._in)||this.isContextual("of"))&&1===s.declarations.length?this.parseForIn(e,s,t):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var i=this.match(lm.name)&&!this.state.containsEsc,o=new Ty,u=this.parseExpression(!0,o),l=this.isContextual("of");if(l&&(r?this.raise(u.start,Em.ForOfLet):-1===t&&i&&"Identifier"===u.type&&"async"===u.name&&this.raise(u.start,Em.ForOfAsync)),l||this.match(lm._in)){this.toAssignable(u,!0);var c=l?"for-of statement":"for-in statement";return this.checkLVal(u,c),this.parseForIn(e,u,t)}return this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,u)},r.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,1|(r?0:2),t)},r.parseIfStatement=function(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(lm._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},r.parseReturnStatement=function(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,Em.IllegalReturn),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},r.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseHeaderExpression();var t,r,n=e.cases=[];for(this.expect(lm.braceL),this.state.labels.push(Oy),this.scope.enter(0);!this.match(lm.braceR);)if(this.match(lm._case)||this.match(lm._default)){var s=this.match(lm._case);t&&this.finishNode(t,"SwitchCase"),n.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(r&&this.raise(this.state.lastTokStart,Em.MultipleDefaultsInSwitch),r=!0,t.test=null),this.expect(lm.colon)}else t?t.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")},r.parseThrowStatement=function(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(this.state.lastTokEnd,Em.NewlineAfterThrow),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")},r.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.scope.enter(t?8:0),this.checkLVal(e,"catch clause",9),e},r.parseTryStatement=function(e){var t=this;if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(lm._catch)){var r=this.startNode();this.next(),this.match(lm.parenL)?(this.expect(lm.parenL),r.param=this.parseCatchClauseParam(),this.expect(lm.parenR)):(r.param=null,this.scope.enter(0)),r.body=this.withTopicForbiddingContext((function(){return t.parseBlock(!1,!1)})),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(lm._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,Em.NoCatchOrFinally),this.finishNode(e,"TryStatement")},r.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},r.parseWhileStatement=function(e){var t=this;return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(ky),e.body=this.withTopicForbiddingContext((function(){return t.parseStatement("while")})),this.state.labels.pop(),this.finishNode(e,"WhileStatement")},r.parseWithStatement=function(e){var t=this;return this.state.strict&&this.raise(this.state.start,Em.StrictWith),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withTopicForbiddingContext((function(){return t.parseStatement("with")})),this.finishNode(e,"WithStatement")},r.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},r.parseLabeledStatement=function(e,t,r,n){for(var s=0,a=this.state.labels;s<a.length;s++){a[s].name===t&&this.raise(r.start,Em.LabelRedeclaration,t)}for(var i=this.state.type.isLoop?"loop":this.match(lm._switch)?"switch":null,o=this.state.labels.length-1;o>=0;o--){var u=this.state.labels[o];if(u.statementStart!==e.start)break;u.statementStart=this.state.start,u.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},r.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},r.parseBlock=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!0);var n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(lm.braceL),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,lm.braceR,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")},r.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},r.parseBlockBody=function(e,t,r,n,s){var a=e.body=[],i=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?i:void 0,r,n,s)},r.parseBlockOrModuleBlockBody=function(e,t,r,n,s){for(var a=this.state.strict,i=!1,o=!1;!this.match(n);){var u=this.parseStatement(null,r);if(t&&!o){if(this.isValidDirective(u)){var l=this.stmtToDirective(u);t.push(l),i||"use strict"!==l.value.value||(i=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(u)}s&&s.call(this,i),a||this.setStrict(!1),this.next()},r.parseFor=function(e,t){var r=this;return e.init=t,this.semicolon(!1),e.test=this.match(lm.semi)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(lm.parenR)?null:this.parseExpression(),this.expect(lm.parenR),e.body=this.withTopicForbiddingContext((function(){return r.parseStatement("for")})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")},r.parseForIn=function(e,t,r){var n=this,s=this.match(lm._in);return this.next(),s?r>-1&&this.unexpected(r):e.await=r>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||s&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type?"AssignmentPattern"===t.type&&this.raise(t.start,Em.InvalidLhs,"for-loop"):this.raise(t.start,Em.ForInOfLoopInitializer,s?"for-in":"for-of"),e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(lm.parenR),e.body=this.withTopicForbiddingContext((function(){return n.parseStatement("for")})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")},r.parseVar=function(e,t,r){var n=e.declarations=[],s=this.hasPlugin("typescript");for(e.kind=r;;){var a=this.startNode();if(this.parseVarId(a,r),this.eat(lm.eq)?a.init=t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==r||this.match(lm._in)||this.isContextual("of")?"Identifier"===a.id.type||t&&(this.match(lm._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,Em.DeclarationMissingInitializer,"Complex binding patterns"):s||this.raise(this.state.lastTokEnd,Em.DeclarationMissingInitializer,"Const declarations"),a.init=null),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(lm.comma))break}return e},r.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"variable declaration","var"===t?5:9,void 0,"var"!==t)},r.parseFunction=function(e,t,r){var n=this;void 0===t&&(t=0),void 0===r&&(r=!1);var s=1&t,a=2&t,i=!(!s||4&t);this.initFunction(e,r),this.match(lm.star)&&a&&this.raise(this.state.start,Em.GeneratorInSingleStatementContext),e.generator=this.eat(lm.star),s&&(e.id=this.parseFunctionId(i));var o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(ty(r,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withTopicForbiddingContext((function(){n.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),s&&!a&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e},r.parseFunctionId=function(e){return e||this.match(lm.name)?this.parseIdentifier():null},r.parseFunctionParams=function(e,t){this.expect(lm.parenL),this.expressionScope.enter(new Dy(3)),e.params=this.parseBindingList(lm.parenR,41,!1,t),this.expressionScope.exit()},r.registerFunctionStatementId=function(e){e.id&&this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:9:17,e.id.start)},r.parseClass=function(e,t,r){this.next(),this.takeDecorators(e);var n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},r.isClassProperty=function(){return this.match(lm.eq)||this.match(lm.semi)||this.match(lm.braceR)},r.isClassMethod=function(){return this.match(lm.parenL)},r.isNonstaticConstructor=function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)},r.parseClassBody=function(e,t){var r=this;this.classScope.enter();var n={hadConstructor:!1,hadSuperClass:e},s=[],a=this.startNode();if(a.body=[],this.expect(lm.braceL),this.withTopicForbiddingContext((function(){for(;!r.match(lm.braceR);)if(r.eat(lm.semi)){if(s.length>0)throw r.raise(r.state.lastTokEnd,Em.DecoratorSemicolon)}else if(r.match(lm.at))s.push(r.parseDecorator());else{var e=r.startNode();s.length&&(e.decorators=s,r.resetStartLocationFromNode(e,s[0]),s=[]),r.parseClassMember(a,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&r.raise(e.start,Em.DecoratorConstructor)}})),this.state.strict=t,this.next(),s.length)throw this.raise(this.state.start,Em.TrailingDecorator);return this.classScope.exit(),this.finishNode(a,"ClassBody")},r.parseClassMemberFromModifier=function(e,t){var r=this.parseIdentifier(!0);if(this.isClassMethod()){var n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){var s=t;return s.computed=!1,s.key=r,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return!1},r.parseClassMember=function(e,t,r){var n=this.isContextual("static");if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(lm.braceL))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)},r.parseClassMemberWithIsStatic=function(e,t,r,n){var s=t,a=t,i=t,o=t,u=s,l=s;if(t.static=n,this.eat(lm.star)){u.kind="method";var c=this.match(lm.privateName);return this.parseClassElementName(u),c?void this.pushClassPrivateMethod(e,a,!0,!1):(this.isNonstaticConstructor(s)&&this.raise(s.key.start,Em.ConstructorIsGenerator),void this.pushClassMethod(e,s,!0,!1,!1,!1))}var p=this.state.containsEsc,d=this.match(lm.privateName),f=this.parseClassElementName(t),h="Identifier"===f.type,m=this.state.start;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(u.kind="method",d)return void this.pushClassPrivateMethod(e,a,!1,!1);var y=this.isNonstaticConstructor(s),g=!1;y&&(s.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(f.start,Em.DuplicateConstructor),y&&this.hasPlugin("typescript")&&t.override&&this.raise(f.start,Em.OverrideOnConstructor),r.hadConstructor=!0,g=r.hadSuperClass),this.pushClassMethod(e,s,!1,!1,y,g)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,i);else if(!h||"async"!==f.name||p||this.isLineTerminator())if(!h||"get"!==f.name&&"set"!==f.name||p||this.match(lm.star)&&this.isLineTerminator())this.isLineTerminator()?d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,i):this.unexpected();else{u.kind=f.name;var v=this.match(lm.privateName);this.parseClassElementName(s),v?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(s.key.start,Em.ConstructorIsAccessor),this.pushClassMethod(e,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}else{var b=this.eat(lm.star);l.optional&&this.unexpected(m),u.kind="method";var E=this.match(lm.privateName);this.parseClassElementName(u),this.parsePostMemberNameModifiers(l),E?this.pushClassPrivateMethod(e,a,b,!0):(this.isNonstaticConstructor(s)&&this.raise(s.key.start,Em.ConstructorIsAsync),this.pushClassMethod(e,s,b,!0,!1,!1))}},r.parseClassElementName=function(e){var t=this.state,r=t.type,n=t.value,s=t.start;return r!==lm.name&&r!==lm.string||!e.static||"prototype"!==n||this.raise(s,Em.StaticPrototype),r===lm.privateName&&"constructor"===n&&this.raise(s,Em.ConstructorClassPrivateField),this.parsePropertyName(e,!0)},r.parseClassStaticBlock=function(e,t){var r;this.expectPlugin("classStaticBlock",t.start),this.scope.enter(208);var n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);var s=t.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,lm.braceR),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(t.start,Em.DecoratorStaticBlock)},r.pushClassProperty=function(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(t.key.start,Em.ConstructorClassField),e.body.push(this.parseClassProperty(t))},r.pushClassPrivateProperty=function(e,t){var r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.start)},r.pushClassMethod=function(e,t,r,n,s,a){e.body.push(this.parseMethod(t,r,n,s,a,"ClassMethod",!0))},r.pushClassPrivateMethod=function(e,t,r,n){var s=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(s);var a="get"===s.kind?s.static?6:2:"set"===s.kind?s.static?5:1:0;this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),a,s.key.start)},r.parsePostMemberNameModifiers=function(e){},r.parseClassPrivateProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")},r.parseClassProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")},r.parseInitializer=function(e){this.scope.enter(80),this.expressionScope.enter(Cy()),this.prodParam.enter(0),e.value=this.eat(lm.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()},r.parseClassId=function(e,t,r,n){void 0===n&&(n=139),this.match(lm.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,"class name",n)):r||!t?e.id=null:this.unexpected(null,Em.MissingClassName)},r.parseClassSuper=function(e){e.superClass=this.eat(lm._extends)?this.parseExprSubscripts():null},r.parseExport=function(e){var t=this.maybeParseExportDefaultSpecifier(e),r=!t||this.eat(lm.comma),n=r&&this.eatExportStar(e),s=n&&this.maybeParseExportNamespaceSpecifier(e),a=r&&(!s||this.eat(lm.comma)),i=t||n;if(n&&!s)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");var o,u=this.maybeParseExportNamedSpecifiers(e);if(t&&r&&!n&&!u||s&&a&&!u)throw this.unexpected(null,lm.braceL);if(i||u?(o=!1,this.parseExportFrom(e,i)):o=this.maybeParseExportDeclaration(e),i||u||o)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(lm._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,lm.braceL)},r.eatExportStar=function(e){return this.eat(lm.star)},r.maybeParseExportDefaultSpecifier=function(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");var t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1},r.maybeParseExportNamespaceSpecifier=function(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]);var t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1},r.maybeParseExportNamedSpecifiers=function(e){var t;return!!this.match(lm.braceL)&&(e.specifiers||(e.specifiers=[]),(t=e.specifiers).push.apply(t,this.parseExportSpecifiers()),e.source=null,e.declaration=null,!0)},r.maybeParseExportDeclaration=function(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0)},r.isAsyncFunction=function(){if(!this.isContextual("async"))return!1;var e=this.nextTokenStart();return!cm.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")},r.parseExportDefaultExpression=function(){var e=this.startNode(),t=this.isAsyncFunction();if(this.match(lm._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,5,t);if(this.match(lm._class))return this.parseClass(e,!0,!0);if(this.match(lm.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,Em.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(lm._const)||this.match(lm._var)||this.isLet())throw this.raise(this.state.start,Em.UnsupportedDefaultExport);var r=this.parseMaybeAssignAllowIn();return this.semicolon(),r},r.parseExportDeclaration=function(e){return this.parseStatement(null)},r.isExportDefaultSpecifier=function(){if(this.match(lm.name)){var e=this.state.value;if("async"===e&&!this.state.containsEsc||"let"===e)return!1;if(("type"===e||"interface"===e)&&!this.state.containsEsc){var t=this.lookahead();if(t.type===lm.name&&"from"!==t.value||t.type===lm.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(lm._default))return!1;var r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(44===this.input.charCodeAt(r)||this.match(lm.name)&&n)return!0;if(this.match(lm._default)&&n){var s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return 34===s||39===s}return!1},r.parseExportFrom=function(e,t){if(this.eatContextual("from")){e.source=this.parseImportSource(),this.checkExport(e);var r=this.maybeParseImportAssertions();r&&(e.assertions=r)}else t?this.unexpected():e.source=null;this.semicolon()},r.shouldParseExportDeclaration=function(){if(this.match(lm.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,Em.DecoratorBeforeExport)}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isLet()||this.isAsyncFunction()},r.checkExport=function(e,t,r,n){if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s,a=e.declaration;"Identifier"!==a.type||"from"!==a.name||a.end-a.start!=4||null!=(s=a.extra)&&s.parenthesized||this.raise(a.start,Em.ExportDefaultFromAsIdentifier)}}else if(e.specifiers&&e.specifiers.length)for(var i=0,o=e.specifiers;i<o.length;i++){var u=o[i],l=u.exported,c="Identifier"===l.type?l.name:l.value;if(this.checkDuplicateExports(u,c),!n&&u.local){var p=u.local;"Identifier"!==p.type?this.raise(u.start,Em.ExportBindingIsString,p.value,c):(this.checkReservedWord(p.name,p.start,!0,!1),this.scope.checkLocalExport(p))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){var d=e.declaration.id;if(!d)throw new Error("Assertion failure");this.checkDuplicateExports(e,d.name)}else if("VariableDeclaration"===e.declaration.type)for(var f=0,h=e.declaration.declarations;f<h.length;f++){var m=h[f];this.checkDeclaration(m.id)}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(e.start,Em.UnsupportedDecoratorExport)},r.checkDeclaration=function(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(var t=0,r=e.properties;t<r.length;t++){var n=r[t];this.checkDeclaration(n)}else if("ArrayPattern"===e.type)for(var s=0,a=e.elements;s<a.length;s++){var i=a[s];i&&this.checkDeclaration(i)}else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)},r.checkDuplicateExports=function(e,t){this.exportedIdentifiers.has(t)&&this.raise(e.start,"default"===t?Em.DuplicateDefaultExport:Em.DuplicateExport,t),this.exportedIdentifiers.add(t)},r.parseExportSpecifiers=function(){var e=[],t=!0;for(this.expect(lm.braceL);!this.eat(lm.braceR);){if(t)t=!1;else if(this.expect(lm.comma),this.eat(lm.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return e},r.parseModuleExportName=function(){if(this.match(lm.string)){var e=this.parseStringLiteral(this.state.value),t=e.value.match(Ry);return t&&this.raise(e.start,Em.ModuleExportNameHasLoneSurrogate,t[0].charCodeAt(0).toString(16)),e}return this.parseIdentifier(!0)},r.parseImport=function(e){if(e.specifiers=[],!this.match(lm.string)){var t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(lm.comma),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}e.source=this.parseImportSource();var n=this.maybeParseImportAssertions();if(n)e.assertions=n;else{var s=this.maybeParseModuleAttributes();s&&(e.attributes=s)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")},r.parseImportSource=function(){return this.match(lm.string)||this.unexpected(),this.parseExprAtom()},r.shouldParseDefaultImport=function(e){return this.match(lm.name)},r.parseImportSpecifierLocal=function(e,t,r,n){t.local=this.parseIdentifier(),this.checkLVal(t.local,n,9),e.specifiers.push(this.finishNode(t,r))},r.parseAssertEntries=function(){var e=[],t=new Set;do{if(this.match(lm.braceR))break;var r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(this.state.start,Em.ModuleAttributesWithDuplicateKeys,n),t.add(n),this.match(lm.string)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(lm.colon),!this.match(lm.string))throw this.unexpected(this.state.start,Em.ModuleAttributeInvalidValue);r.value=this.parseStringLiteral(this.state.value),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(lm.comma));return e},r.maybeParseModuleAttributes=function(){if(!this.match(lm._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();var e=[],t=new Set;do{var r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(r.key.start,Em.ModuleAttributeDifferentFromType,r.key.name),t.has(r.key.name)&&this.raise(r.key.start,Em.ModuleAttributesWithDuplicateKeys,r.key.name),t.add(r.key.name),this.expect(lm.colon),!this.match(lm.string))throw this.unexpected(this.state.start,Em.ModuleAttributeInvalidValue);r.value=this.parseStringLiteral(this.state.value),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(lm.comma));return e},r.maybeParseImportAssertions=function(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(lm.braceL);var e=this.parseAssertEntries();return this.eat(lm.braceR),e},r.maybeParseDefaultImportSpecifier=function(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)},r.maybeParseStarImportSpecifier=function(e){if(this.match(lm.star)){var t=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1},r.parseNamedImportSpecifiers=function(e){var t=!0;for(this.expect(lm.braceL);!this.eat(lm.braceR);){if(t)t=!1;else{if(this.eat(lm.colon))throw this.raise(this.state.start,Em.DestructureNamedImport);if(this.expect(lm.comma),this.eat(lm.braceR))break}this.parseImportSpecifier(e)}},r.parseImportSpecifier=function(e){var t=this.startNode(),r=this.match(lm.string);if(t.imported=this.parseModuleExportName(),this.eatContextual("as"))t.local=this.parseIdentifier();else{var n=t.imported;if(r)throw this.raise(t.start,Em.ImportBindingIsString,n.value);this.checkReservedWord(n.name,t.start,!0,!0),t.local=n.__clone()}this.checkLVal(t.local,"import specifier",9),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))},r.isThisParam=function(e){return"Identifier"===e.type&&"this"===e.name},t}(Fy));function _y(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return Ly(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";var n=Ly(t,e),s=n.parse();if(n.sawUnambiguousESM)return s;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",Ly(t,e).parse()}catch(e){}else s.program.sourceType="script";return s}catch(r){try{return t.sourceType="script",Ly(t,e).parse()}catch(e){}throw r}}function Ly(e,t){var r=By;return null!=e&&e.plugins&&(!function(e){if(oy(e,"decorators")){if(oy(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=uy(e,"decorators","decoratorsBeforeExport");if(null==t)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if("boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(oy(e,"flow")&&oy(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(oy(e,"placeholders")&&oy(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(oy(e,"pipelineOperator")&&!ly.includes(uy(e,"pipelineOperator","proposal")))throw new Error("'pipelineOperator' requires 'proposal' option whose value should be one of: "+ly.map((function(e){return"'"+e+"'"})).join(", "));if(oy(e,"moduleAttributes")){if(oy(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==uy(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(oy(e,"recordAndTuple")&&!cy.includes(uy(e,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+cy.map((function(e){return"'"+e+"'"})).join(", "));if(oy(e,"asyncDoExpressions")&&!oy(e,"doExpressions")){var r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw r.missingPlugins="doExpressions",r}}(e.plugins),r=function(e){var t=dy.filter((function(t){return oy(e,t)})),r=t.join("/"),n=My[r];if(!n){n=By;for(var s=0;s<t.length;s++){var a=t[s];n=py[a](n)}My[r]=n}return n}(e.plugins)),new r(e,t)}var My={};var Uy={Scope:function(e,t){"let"===t.kind&&e.skip()},FunctionParent:function(e){e.skip()},VariableDeclaration:function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){if(!t.kind||e.node.kind===t.kind){for(var r,n,s=[],a=f(e.get("declarations"));!(n=a()).done;){var i=n.value;r=i.node.id,i.node.init&&s.push(ys(rs("=",i.node.id,i.node.init)));for(var o=0,u=Object.keys(i.getBindingIdentifiers());o<u.length;o++){var l=u[o];t.emit(Ds(l),l,null!==i.node.init)}}e.parentPath.isFor({left:e.node})?e.replaceWith(r):e.replaceWithMultiple(s)}}))};function Gy(e,t,r){void 0===r&&(r="var"),e.traverse(Uy,{kind:r,emit:t})}var Vy=Object.freeze({__proto__:null,replaceWithMultiple:function(e){var t;this.resync(),nl((e=this._verifyNodeList(e))[0],this.node),sl(e[e.length-1],this.node),null==(t=rp.get(this.parent))||t.delete(this.node),this.node=this.container[this.key]=null;var r=this.insertAfter(e);return this.node?this.requeue():this.remove(),r},replaceWithSourceString:function(e){this.resync();try{e=_y(e="("+e+")")}catch(r){var t=r.loc;throw t&&(r.message+=" - make sure this is an expression.\n"+Zh(e,{start:{line:t.line,column:t.column+1}}),r.code="BABEL_REPLACE_SOURCE_ERROR"),r}return e=e.program.body[0].expression,gv.removeProperties(e),this.replaceWith(e)},replaceWith:function(e){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");if(e instanceof ev&&(e=e.node),!e)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===e)return[this];if(this.isProgram()&&!G(e))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(e))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof e)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");var t="";if(this.isNodeType("Statement")&&vt(e)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(e)||this.parentPath.isExportDefaultDeclaration()||(e=ys(e),t="expression")),this.isNodeType("Expression")&&xt(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e))return this.replaceExpressionWithStatements([e]);var r=this.node;return r&&(al(e,r),il(r)),this._replaceWith(e),this.type=e.type,this.setScope(),this.requeue(),[t?this.get(t):this]},_replaceWith:function(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?zr(this.parent,this.key,[e]):zr(this.parent,this.key,e),this.debug("Replace with "+(null==e?void 0:e.type)),null==(t=rp.get(this.parent))||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e},replaceExpressionWithStatements:function(e){var t=this;this.resync();var r=dc(e,this.scope);if(r)return this.replaceWith(r)[0].get("expressions");var n=this.getFunctionParent(),s=null==n?void 0:n.is("async"),a=null==n?void 0:n.is("generator"),i=ea([],os(e));this.replaceWith(ls(i,[]));var o=this.get("callee");Gy(o.get("body"),(function(e){t.scope.push({id:e})}),"var");for(var u,l=f(this.get("callee").getCompletionRecords());!(u=l()).done;){var c=u.value;if(c.isExpressionStatement()){var p=c.findParent((function(e){return e.isLoop()}));if(p){var d=p.getData("expressionReplacementReturnUid");d?d=Ds(d.name):(d=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",Ls(Ju(d))),p.setData("expressionReplacementReturnUid",d)),c.get("expression").replaceWith(rs("=",Ju(d),c.node.expression))}else c.replaceWith(Ls(c.node.expression))}}o.arrowFunctionToExpression();var h=o,m=s&&gv.hasType(this.get("callee.body").node,"AwaitExpression",xl),y=a&&gv.hasType(this.get("callee.body").node,"YieldExpression",xl);return m&&(h.set("async",!0),y||this.replaceWith(Da(this.node))),y&&(h.set("generator",!0),this.replaceWith(xa(this.node,!0))),h.get("body.body")},replaceInline:function(e){if(this.resync(),Array.isArray(e)){if(Array.isArray(this.container)){e=this._verifyNodeList(e);var t=this._containerInsertAfter(e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)}}),Wy="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Hy=["String","Number","Math"],Xy=["random"];function qy(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}function $y(e,t){var r=e.node,n=t.seen;if(n.has(r)){var s=n.get(r);return s.resolved?s.value:void qy(e,t)}var a={resolved:!1};n.set(r,a);var i=function(e,t){if(!t.confident)return;if(e.isSequenceExpression()){var r=e.get("expressions");return $y(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return Ky(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){var n=e.get("tag.object"),s=n.node.name,a=e.get("tag.property");if(n.isIdentifier()&&"String"===s&&!e.scope.getBinding(s)&&a.isIdentifier()&&"raw"===a.node.name)return Ky(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){var i=$y(e.get("test"),t);if(!t.confident)return;return $y(i?e.get("consequent"):e.get("alternate"),t)}if(e.isExpressionWrapper())return $y(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){var o=e.get("property"),u=e.get("object");if(u.isLiteral()&&o.isIdentifier()){var l=u.node.value,c=typeof l;if("number"===c||"string"===c)return l[o.node.name]}}if(e.isReferencedIdentifier()){var p=e.scope.getBinding(e.node.name);if(p&&p.constantViolations.length>0)return qy(p.path,t);if(p&&e.node.start<p.path.node.end)return qy(p.path,t);if(null!=p&&p.hasValue)return p.value;if("undefined"===e.node.name)return p?qy(p.path,t):void 0;if("Infinity"===e.node.name)return p?qy(p.path,t):1/0;if("NaN"===e.node.name)return p?qy(p.path,t):NaN;var d=e.resolve();return d===e?qy(e,t):$y(d,t)}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;var h=e.get("argument");if("typeof"===e.node.operator&&(h.isFunction()||h.isClass()))return"function";var m=$y(h,t);if(!t.confident)return;switch(e.node.operator){case"!":return!m;case"+":return+m;case"-":return-m;case"~":return~m;case"typeof":return typeof m}}if(e.isArrayExpression()){for(var y,g=[],v=f(e.get("elements"));!(y=v()).done;){var b=y.value.evaluate();if(!b.confident)return qy(b.deopt,t);g.push(b.value)}return g}if(e.isObjectExpression()){for(var E,x={},D=f(e.get("properties"));!(E=D()).done;){var A=E.value;if(A.isObjectMethod()||A.isSpreadElement())return qy(A,t);var w=A.get("key");if(A.node.computed){if(!(w=w.evaluate()).confident)return qy(w.deopt,t);w=w.value}else w=w.isIdentifier()?w.node.name:w.node.value;var C=A.get("value").evaluate();if(!C.confident)return qy(C.deopt,t);C=C.value,x[w]=C}return x}if(e.isLogicalExpression()){var S=t.confident,T=$y(e.get("left"),t),j=t.confident;t.confident=S;var P=$y(e.get("right"),t),I=t.confident;switch(e.node.operator){case"||":if(t.confident=j&&(!!T||I),!t.confident)return;return T||P;case"&&":if(t.confident=j&&(!T||I),!t.confident)return;return T&&P}}if(e.isBinaryExpression()){var F=$y(e.get("left"),t);if(!t.confident)return;var k=$y(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return F-k;case"+":return F+k;case"/":return F/k;case"*":return F*k;case"%":return F%k;case"**":return Math.pow(F,k);case"<":return F<k;case">":return F>k;case"<=":return F<=k;case">=":return F>=k;case"==":return F==k;case"!=":return F!=k;case"===":return F===k;case"!==":return F!==k;case"|":return F|k;case"&":return F&k;case"^":return F^k;case"<<":return F<<k;case">>":return F>>k;case">>>":return F>>>k}}if(e.isCallExpression()){var O,R,N=e.get("callee");if(N.isIdentifier()&&!e.scope.getBinding(N.node.name)&&Hy.indexOf(N.node.name)>=0&&(R=Wy[N.node.name]),N.isMemberExpression()){var B=N.get("object"),_=N.get("property");if(B.isIdentifier()&&_.isIdentifier()&&Hy.indexOf(B.node.name)>=0&&Xy.indexOf(_.node.name)<0&&(R=(O=Wy[B.node.name])[_.node.name]),B.isLiteral()&&_.isIdentifier()){var L=typeof B.node.value;"string"!==L&&"number"!==L||(R=(O=B.node.value)[_.node.name])}}if(R){var M=e.get("arguments").map((function(e){return $y(e,t)}));if(!t.confident)return;return R.apply(O,M)}}qy(e,t)}(e,t);return t.confident&&(a.resolved=!0,a.value=i),i}function Ky(e,t,r,n){void 0===n&&(n=!1);for(var s,a="",i=0,o=e.get("expressions"),u=f(t);!(s=u()).done;){var l=s.value;if(!r.confident)break;a+=n?l.value.raw:l.value.cooked;var c=o[i++];c&&(a+=String($y(c,r)))}if(r.confident)return a}var zy=Object.freeze({__proto__:null,evaluateTruthy:function(){var e=this.evaluate();if(e.confident)return!!e.value},evaluate:function(){var e={confident:!0,deoptPath:null,seen:new Map},t=$y(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}});function Jy(e){return{code:function(e){return"/* @babel/template */;\n"+e},validate:function(){},unwrap:function(t){return e(t.program.body.slice(1))}}}var Yy=Jy((function(e){return e.length>1?e:e[0]})),Qy=Jy((function(e){return e})),Zy=Jy((function(e){if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]})),eg={code:function(e){return"(\n"+e+"\n)"},validate:function(e){if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===eg.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:function(e){var t=l(e.program.body,1)[0];return Lu(t),t.expression}};function tg(e,t){var r=t.placeholderWhitelist,n=void 0===r?e.placeholderWhitelist:r,s=t.placeholderPattern,a=void 0===s?e.placeholderPattern:s,i=t.preserveComments,o=void 0===i?e.preserveComments:i,u=t.syntacticPlaceholders,l=void 0===u?e.syntacticPlaceholders:u;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:n,placeholderPattern:a,preserveComments:o,syntacticPlaceholders:l}}function rg(e){if(null!=e&&"object"!=typeof e)throw new Error("Unknown template options.");var t=e||{},r=t.placeholderWhitelist,n=t.placeholderPattern,s=t.preserveComments,a=t.syntacticPlaceholders,o=i(t,["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]);if(null!=r&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=n&&!(n instanceof RegExp)&&!1!==n)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=s&&"boolean"!=typeof s)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=a&&"boolean"!=typeof a)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===a&&(null!=r||null!=n))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:o,placeholderWhitelist:r||void 0,placeholderPattern:null==n?void 0:n,preserveComments:null==s?void 0:s,syntacticPlaceholders:null==a?void 0:a}}function ng(e){if(Array.isArray(e))return e.reduce((function(e,t,r){return e["$"+r]=t,e}),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}var sg=/^[_$A-Z0-9]+$/;function ag(e,t,r){var n=r.placeholderWhitelist,s=r.placeholderPattern,a=r.preserveComments,i=r.syntacticPlaceholders,o=function(e,t,r){var n=(t.plugins||[]).slice();!1!==r&&n.push("placeholders");t=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},t,{plugins:n});try{return _y(e,t)}catch(t){var s=t.loc;throw s&&(t.message+="\n"+Zh(e,{start:s}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(t,r.parser,i);uc(o,{preserveComments:a}),e.validate(o);var u={placeholders:[],placeholderNames:new Set},l={placeholders:[],placeholderNames:new Set},c={value:void 0};return vc(o,ig,{syntactic:u,legacy:l,isLegacyRef:c,placeholderWhitelist:n,placeholderPattern:s,syntacticPlaceholders:i}),Object.assign({ast:o},c.value?l:u)}function ig(e,t,r){var n,s;if(tt(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,r.isLegacyRef.value=!1}else{if(!1===r.isLegacyRef.value||r.syntacticPlaceholders)return;if(F(e)||Je(e))s=e.name,r.isLegacyRef.value=!0;else{if(!R(e))return;s=e.value,r.isLegacyRef.value=!0}}if(!r.isLegacyRef.value&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!r.isLegacyRef.value||!1!==r.placeholderPattern&&(r.placeholderPattern||sg).test(s)||null!=(n=r.placeholderWhitelist)&&n.has(s)){var a,i=(t=t.slice())[t.length-1],o=i.node,u=i.key;R(e)||tt(e,{expectedNode:"StringLiteral"})?a="string":U(o)&&"arguments"===u||E(o)&&"arguments"===u||St(o)&&"params"===u?a="param":C(o)&&!tt(e)?(a="statement",t=t.slice(0,-1)):a=xt(e)&&tt(e)?"statement":"other";var l=r.isLegacyRef.value?r.legacy:r.syntactic,c=l.placeholders,p=l.placeholderNames;c.push({name:s,type:a,resolve:function(e){return function(e,t){for(var r=e,n=0;n<t.length-1;n++){var s=t[n],a=s.key,i=s.index;r=void 0===i?r[a]:r[a][i]}var o=t[t.length-1],u=o.key,l=o.index;return{parent:r,key:u,index:l}}(e,t)},isDuplicate:p.has(s)}),p.add(s)}}function og(e,t){var r=Ju(e.ast);return t&&(e.placeholders.forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e.name)){var r=e.name;throw new Error('Error: No substitution given for "'+r+"\". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['"+r+"'])}\n - { placeholderPattern: /^"+r+"$/ }")}})),Object.keys(t).forEach((function(t){if(!e.placeholderNames.has(t))throw new Error('Unknown substitution "'+t+'" given')}))),e.placeholders.slice().reverse().forEach((function(e){try{!function(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map((function(e){return Ju(e)})):"object"==typeof r&&(r=Ju(r)));var n=e.resolve(t),s=n.parent,a=n.key,i=n.index;if("string"===e.type){if("string"==typeof r&&(r=Cs(r)),!r||!R(r))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===i?r?Array.isArray(r)?r=os(r):"string"==typeof r?r=ys(Ds(r)):xt(r)||(r=ys(r)):r=ms():r&&!Array.isArray(r)&&("string"==typeof r&&(r=Ds(r)),xt(r)||(r=ys(r)));else if("param"===e.type){if("string"==typeof r&&(r=Ds(r)),void 0===i)throw new Error("Assertion failure.")}else if("string"==typeof r&&(r=Ds(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");if(void 0===i)zr(s,a,r),s[a]=r;else{var o=s[a].slice();"statement"===e.type||"param"===e.type?null==r?o.splice(i,1):Array.isArray(r)?o.splice.apply(o,[i,1].concat(c(r))):o[i]=r:o[i]=r,zr(s,a,o),s[a]=o}}(e,r,t&&t[e.name]||null)}catch(t){throw t.message='@babel/template placeholder "'+e.name+'": '+t.message,t}})),r}function ug(e,t,r){var n;return t=e.code(t),function(s){var a=ng(s);return n||(n=ag(e,t,r)),e.unwrap(og(n,a))}}function lg(e,t,r){var n=function(e,t,r){var n,s,a,i="";do{var o=cg(t,i+="$");n=o.names,s=new Set(n),a=ag(e,e.code(o.code),{parser:r.parser,placeholderWhitelist:new Set(o.names.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders})}while(a.placeholders.some((function(e){return e.isDuplicate&&s.has(e.name)})));return{metadata:a,names:n}}(e,t,r),s=n.metadata,a=n.names;return function(t){var r={};return t.forEach((function(e,t){r[a[t]]=e})),function(t){var n=ng(t);return n&&Object.keys(n).forEach((function(e){if(Object.prototype.hasOwnProperty.call(r,e))throw new Error("Unexpected replacement overlap.")})),e.unwrap(og(s,n?Object.assign(n,r):r))}}}function cg(e,t){for(var r=[],n=e[0],s=1;s<e.length;s++){var a=""+t+(s-1);r.push(a),n+=a+e[s]}return{names:r,code:n}}var pg=rg({placeholderPattern:!1});function dg(e,t){var r=new WeakMap,n=new WeakMap,s=t||rg(null);return Object.assign((function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];if("string"==typeof t){if(a.length>1)throw new Error("Unexpected extra params.");return fg(ug(e,t,tg(s,rg(a[0]))))}if(Array.isArray(t)){var o=r.get(t);return o||(o=lg(e,t,s),r.set(t,o)),fg(o(a))}if("object"==typeof t&&t){if(a.length>0)throw new Error("Unexpected extra params.");return dg(e,tg(s,rg(t)))}throw new Error("Unexpected template param "+typeof t)}),{ast:function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];if("string"==typeof t){if(a.length>1)throw new Error("Unexpected extra params.");return ug(e,t,tg(tg(s,rg(a[0])),pg))()}if(Array.isArray(t)){var o=n.get(t);return o||(o=lg(e,t,tg(s,pg)),n.set(t,o)),o(a)()}throw new Error("Unexpected template param "+typeof t)}})}function fg(e){var t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return function(r){try{return e(r)}catch(e){throw e.stack+="\n =============\n"+t,e}}}var hg=dg(Yy),mg=dg(Zy),yg=dg(Qy),gg=dg(eg),vg=dg({code:function(e){return e},validate:function(){},unwrap:function(e){return e.program}}),bg=Object.assign(hg.bind(void 0),{smart:hg,statement:mg,statements:yg,expression:gg,program:vg,ast:hg.ast}),Eg=bg("\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),xg=bg("\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),Dg={"ReferencedIdentifier|BindingIdentifier":function(e,t){e.node.name===t.name&&(e.scope.getBindingIdentifier(t.name)===t.outerDeclar&&(t.selfReference=!0,e.stop()))}};function Ag(e,t,r,n){if(e.selfReference){if(!n.hasBinding(r.name)||n.hasGlobal(r.name)){if(!St(t))return;var s=Eg;t.generator&&(s=xg);for(var a=s({FUNCTION:t,FUNCTION_ID:r,FUNCTION_KEY:n.generateUidIdentifier(r.name)}).expression,i=a.callee.body.body[0].params,o=0,u=function(e){for(var t=e.params,r=0;r<t.length;r++){var n=t[r];if(re(n)||X(n))return r}return t.length}(t);o<u;o++)i.push(n.generateUidIdentifier("x"));return a}n.rename(r.name)}t.id=r,n.getProgramParent().references[r.name]=!0}function wg(e,t){var r=e.node,n=e.parent,s=e.scope,a=e.id;if(void 0===t&&(t=!1),!r.id){if(!H(n)&&!W(n,{kind:"method"})||n.computed&&!Pt(n.key)){if(ee(n)){if(F(a=n.id)&&!t){var i=s.parent.getBinding(a.name);if(i&&i.constant&&s.getBinding(a.name)===i)return r.id=Ju(a),void(r.id[Kr]=!0)}}else if(y(n,{operator:"="}))a=n.left;else if(!a)return}else a=n.key;var o;if(a&&Pt(a)?o=function(e){return B(e)?"null":_(e)?"_"+e.pattern+"_"+e.flags:De(e)?e.quasis.map((function(e){return e.value.raw})).join(""):void 0!==e.value?e.value+"":""}(a):a&&F(a)&&(o=a.name),void 0!==o)return(a=Ds(o=tc(o)))[Kr]=!0,Ag(function(e,t,r){var n={selfAssignment:!1,selfReference:!1,outerDeclar:r.getBindingIdentifier(t),references:[],name:t},s=r.getOwnBinding(t);return s?"param"===s.kind&&(n.selfReference=!0):(n.outerDeclar||r.hasGlobal(t))&&r.traverse(e,Dg,n),n}(r,o,s),r,a,s)||r}}function Cg(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!0);var n=e.findParent((function(e){return e.isFunction()&&!e.isArrowFunctionExpression()||e.isProgram()||e.isClassProperty({static:!1})})),s="constructor"===(null==n?void 0:n.node.kind);if(n.isClassProperty())throw e.buildCodeFrameError("Unable to transform arrow inside class property");var a,i=function(e){var t=[],r=[],n=[],s=[],a=[];return e.traverse({ClassProperty:function(e){e.skip()},Function:function(e){e.isArrowFunctionExpression()||e.skip()},ThisExpression:function(e){t.push(e)},JSXIdentifier:function(e){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression:function(e){e.get("callee").isSuper()&&a.push(e)},MemberExpression:function(e){e.get("object").isSuper()&&s.push(e)},ReferencedIdentifier:function(e){"arguments"===e.node.name&&r.push(e)},MetaProperty:function(e){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&n.push(e)}}),{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:a}}(e),o=i.thisPaths,u=i.argumentsPaths,l=i.newTargetPaths,c=i.superProps,p=i.superCalls;if(s&&p.length>0){if(!r)throw p[0].buildCodeFrameError("Unable to handle nested super() usage in arrow");var d=[];n.traverse({Function:function(e){e.isArrowFunctionExpression()||e.skip()},ClassProperty:function(e){e.skip()},CallExpression:function(e){e.get("callee").isSuper()&&d.push(e)}});var f=function(e){return Tg(e,"supercall",(function(){var t=e.scope.generateUidIdentifier("args");return ea([_s(t)],ls(ga(),[ya(Ds(t.name))]))}))}(n);d.forEach((function(e){var t=Ds(f);t.loc=e.node.callee.loc,e.get("callee").replaceWith(t)}))}if(u.length>0){var h=Tg(n,"arguments",(function(){return Ds("arguments")}));u.forEach((function(e){var t=Ds(h);t.loc=e.node.loc,e.replaceWith(t)}))}if(l.length>0){var m=Tg(n,"newtarget",(function(){return fa(Ds("new"),Ds("target"))}));l.forEach((function(e){var t=Ds(m);t.loc=e.node.loc,e.replaceWith(t)}))}if(c.length>0){if(!r)throw c[0].buildCodeFrameError("Unable to handle nested super.prop usage");c.reduce((function(e,t){return e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){var t=e.parentPath,r=t.node.operator.slice(0,-1),n=t.node.right;if(t.node.operator="=",e.node.computed){var s=e.scope.generateDeclaredUidIdentifier("tmp");t.get("left").replaceWith(Fs(e.node.object,rs("=",s,e.node.property),!0)),t.get("right").replaceWith(ns(r,Fs(e.node.object,Ds(s.name),!0),n))}else t.get("left").replaceWith(Fs(e.node.object,e.node.property)),t.get("right").replaceWith(ns(r,Fs(e.node.object,Ds(e.node.property.name)),n));return[t.get("left"),t.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){var a=e.parentPath,i=e.scope.generateDeclaredUidIdentifier("tmp"),o=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,u=[rs("=",i,Fs(e.node.object,o?rs("=",o,e.node.property):e.node.property,e.node.computed)),rs("=",Fs(e.node.object,o?Ds(o.name):e.node.property,e.node.computed),ns("+",Ds(i.name),Ss(1)))];return e.parentPath.node.prefix||u.push(Ds(i.name)),a.replaceWith(Ms(u)),[a.get("expressions.0.right"),a.get("expressions.1.left")]}return[e]}(t))}),[]).forEach((function(e){var t=e.node.computed?"":e.get("property").node.name,r=e.parentPath.isAssignmentExpression({left:e.node}),s=e.parentPath.isCallExpression({callee:e.node}),a=function(e,t,r){return Tg(e,"superprop_"+(t?"set":"get")+":"+(r||""),(function(){var n,s=[];if(r)n=Fs(ga(),Ds(r));else{var a=e.scope.generateUidIdentifier("prop");s.unshift(a),n=Fs(ga(),Ds(a.name),!0)}if(t){var i=e.scope.generateUidIdentifier("value");s.push(i),n=rs("=",n,Ds(i.name))}return ea(s,n)}))}(n,r,t),i=[];if(e.node.computed&&i.push(e.get("property").node),r){var u=e.parentPath.node.right;i.push(u)}var l=ls(Ds(a),i);s?(e.parentPath.unshiftContainer("arguments",Ws()),e.replaceWith(Fs(l,Ds("call"))),o.push(e.parentPath.get("arguments.0"))):r?e.parentPath.replaceWith(l):e.replaceWith(l)}))}return(o.length>0||!t)&&(a=function(e,t){return Tg(e,"this",(function(r){if(!t||!Sg(e))return Ws();var n=new WeakSet;e.traverse({Function:function(e){e.isArrowFunctionExpression()||e.skip()},ClassProperty:function(e){e.skip()},CallExpression:function(e){e.get("callee").isSuper()&&(n.has(e.node)||(n.add(e.node),e.replaceWithMultiple([e.node,rs("=",Ds(r),Ds("this"))])))}})}))}(n,s),(t||s&&Sg(n))&&(o.forEach((function(e){var t=e.isJSX()?Xi(a):Ds(a);t.loc=e.node.loc,e.replaceWith(t)})),t||(a=null))),a}function Sg(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}function Tg(e,t,r){var n="binding:"+t,s=e.getData(n);if(!s){var a=e.scope.generateUidIdentifier(t);s=a.name,e.setData(n,s),e.scope.push({id:a,init:r(s)})}return s}var jg=Object.freeze({__proto__:null,toComputedKey:function(){var e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}return this.node.computed||F(e)&&(e=Cs(e.name)),e},ensureBlock:function(){var e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;var r,n,s=[],a="body";e.isStatement()?(n="body",r=0,s.push(e.node)):(a+=".body.0",this.isFunction()?(r="argument",s.push(Ls(e.node))):(r="expression",s.push(ys(e.node)))),this.node.body=os(s);var i=this.get(a);return e.setup(i,n?i.node[n]:i.node,n,r),this.node},arrowFunctionToShadowed:function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()},unwrapFunctionEnvironment:function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");Cg(this)},arrowFunctionToExpression:function(e){var t=void 0===e?{}:e,r=t.allowInsertArrow,n=void 0===r||r,s=t.specCompliant,a=void 0!==s&&s,i=t.noNewArrows,o=void 0===i?!a:i;if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");var u=Cg(this,o,n);if(this.ensureBlock(),this.node.type="FunctionExpression",!o){var l=u?null:this.parentPath.scope.generateUidIdentifier("arrowCheckId");l&&this.parentPath.scope.push({id:l,init:Rs([])}),this.get("body").unshiftContainer("body",ys(ls(this.hub.addHelper("newArrowCheck"),[Ws(),Ds(l?l.name:u)]))),this.replaceWith(ls(Fs(wg(this,!0)||this.node,Ds("bind")),[l?Ds(l.name):Ws()]))}}});function Pg(e){var t=this.node&&this.node[e];return t&&Array.isArray(t)?!!t.length:!!t}var Ig=Pg;function Fg(e){return(e.scope.getFunctionParent()||e.scope.getProgramParent()).path}function kg(e,t){switch(e){case"LogicalExpression":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"AssignmentPattern":return"right"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function Og(e,t){for(var r=0;r<t;r++){var n=e[r];if(kg(n.parent.type,n.parentKey))return!0}return!1}var Rg=new WeakSet;var Ng=Object.freeze({__proto__:null,matchesPattern:function(e,t){return Gt(this.node,e,t)},has:Pg,isStatic:function(){return this.scope.isStatic(this.node)},is:Ig,isnt:function(e){return!this.has(e)},equals:function(e,t){return this.node[e]===t},isNodeType:function(e){return ir(this.type,e)},canHaveVariableDeclarationOrExpression:function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},canSwapBetweenExpressionAndStatement:function(e){return!("body"!==this.key||!this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?v(e):!!this.isBlockStatement()&&vt(e))},isCompletionRecord:function(e){var t=this,r=!0;do{var n=t.container;if(t.isFunction()&&!r)return!!e;if(r=!1,Array.isArray(n)&&t.key!==n.length-1)return!1}while((t=t.parentPath)&&!t.isProgram());return!0},isStatementOrBlock:function(){return!this.parentPath.isLabeledStatement()&&!v(this.container)&&Ir.includes(this.key)},referencesImport:function(e,t){if(!this.isReferencedIdentifier()){if((this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?R(this.node.property,{value:t}):this.node.property.name===t)){var r=this.get("object");return r.isReferencedIdentifier()&&r.referencesImport(e,"*")}return!1}var n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;var s=n.path,a=s.parentPath;return!!a.isImportDeclaration()&&(a.node.source.value===e&&(!t||(!(!s.isImportDefaultSpecifier()||"default"!==t)||(!(!s.isImportNamespaceSpecifier()||"*"!==t)||!(!s.isImportSpecifier()||!F(s.node.imported,{name:t}))))))},getSource:function(){var e=this.node;if(e.end){var t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},willIMaybeExecuteBefore:function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},_guessExecutionStatusRelativeTo:function(e){var t={this:Fg(this),target:Fg(e)};if(t.target.node!==t.this.node)return this._guessExecutionStatusRelativeToDifferentFunctions(t.target);var r,n={target:e.getAncestry(),this:this.getAncestry()};if(n.target.indexOf(this)>=0)return"after";if(n.this.indexOf(e)>=0)return"before";for(var s={target:0,this:0};!r&&s.this<n.this.length;){var a=n.this[s.this];s.target=n.target.indexOf(a),s.target>=0?r=a:s.this++}if(!r)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(Og(n.this,s.this-1)||Og(n.target,s.target-1))return"unknown";var i={this:n.this[s.this-1],target:n.target[s.target-1]};if(i.target.listKey&&i.this.listKey&&i.target.container===i.this.container)return i.target.key>i.this.key?"before":"after";var o=Qr[r.type],u=o.indexOf(i.this.parentKey);return o.indexOf(i.target.parentKey)>u?"before":"after"},_guessExecutionStatusRelativeToDifferentFunctions:function(e){if(!e.isFunctionDeclaration()||e.parentPath.isExportDeclaration())return"unknown";var t=e.scope.getBinding(e.node.id.name);if(!t.references)return"before";for(var r,n,s=f(t.referencePaths);!(n=s()).done;){var a=n.value;if(!!!a.find((function(t){return t.node===e.node}))){if("callee"!==a.key||!a.parentPath.isCallExpression())return"unknown";if(!Rg.has(a.node)){Rg.add(a.node);var i=this._guessExecutionStatusRelativeTo(a);if(Rg.delete(a.node),r&&r!==i)return"unknown";r=i}}}return r},resolve:function(e,t){return this._resolve(e,t)||this},_resolve:function(e,t){if(!(t&&t.indexOf(this)>=0))if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){var r=this.scope.getBinding(this.node.name);if(!r)return;if(!r.constant)return;if("module"===r.kind)return;if(r.path!==this){var n=r.path.resolve(e,t);if(this.find((function(e){return e.node===n.node})))return;return n}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){var s=this.toComputedKey();if(!Pt(s))return;var a=s.value,i=this.get("object").resolve(e,t);if(i.isObjectExpression())for(var o,u=f(i.get("properties"));!(o=u()).done;){var l=o.value;if(l.isProperty()){var c=l.get("key"),p=l.isnt("computed")&&c.isIdentifier({name:a});if(p=p||c.isLiteral({value:a}))return l.get("value").resolve(e,t)}}else if(i.isArrayExpression()&&!isNaN(+a)){var d=i.get("elements")[a];if(d)return d.resolve(e,t)}}}},isConstantExpression:function(){if(this.isIdentifier()){var e=this.scope.getBinding(this.node.name);return!!e&&e.constant}return this.isLiteral()?!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every((function(e){return e.isConstantExpression()}))):this.isUnaryExpression()?"void"===this.node.operator&&this.get("argument").isConstantExpression():!!this.isBinaryExpression()&&(this.get("left").isConstantExpression()&&this.get("right").isConstantExpression())},isInStrictMode:function(){return!!(this.isProgram()?this:this.parentPath).find((function(e){if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(!e.isProgram()&&!e.isFunction())return!1;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;for(var t,r=f((e.isFunction()?e.node.body:e.node).directives);!(t=r()).done;){if("use strict"===t.value.value.value)return!0}}))}});function Bg(){var e,t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return t&&t.indexOf(this.node.type)>-1}var _g=Object.freeze({__proto__:null,call:function(e){var t=this.opts;return this.debug(e),!(!this.node||!this._call(t[e]))||!!this.node&&this._call(t[this.node.type]&&t[this.node.type][e])},_call:function(e){if(!e)return!1;for(var t,r=f(e);!(t=r()).done;){var n=t.value;if(n){var s=this.node;if(!s)return!0;var a=n.call(this.state,this,this.state);if(a&&"object"==typeof a&&"function"==typeof a.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(a)throw new Error("Unexpected return value from visitor method "+n);if(this.node!==s)return!0;if(this._traverseFlags>0)return!0}}return!1},isDenylisted:Bg,isBlacklisted:Bg,visit:function(){return!!this.node&&(!this.isDenylisted()&&((!this.opts.shouldSkip||!this.opts.shouldSkip(this))&&(this.shouldSkip||this.call("enter")||this.shouldSkip?(this.debug("Skip..."),this.shouldStop):(this.debug("Recursing into..."),gv.node(this.node,this.opts,this.scope,this.state,this,this.skipKeys),this.call("exit"),this.shouldStop))))},skip:function(){this.shouldSkip=!0},skipKey:function(e){null==this.skipKeys&&(this.skipKeys={}),this.skipKeys[e]=!0},stop:function(){this._traverseFlags|=Zg|Qg},setScope:function(){if(!this.opts||!this.opts.noScope){var e,t=this.parentPath;for("key"===this.key&&t.isMethod()&&(t=t.parentPath);t&&!e;){if(t.opts&&t.opts.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope&&this.scope.init()}},setContext:function(e){return null!=this.skipKeys&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),this.setScope(),this},resync:function(){this.removed||(this._resyncParent(),this._resyncList(),this._resyncKey())},_resyncParent:function(){this.parentPath&&(this.parent=this.parentPath.node)},_resyncKey:function(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(var e=0;e<this.container.length;e++)if(this.container[e]===this.node)return this.setKey(e)}else for(var t=0,r=Object.keys(this.container);t<r.length;t++){var n=r[t];if(this.container[n]===this.node)return this.setKey(n)}this.key=null}},_resyncList:function(){if(this.parent&&this.inList){var e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}},_resyncRemoved:function(){null!=this.key&&this.container&&this.container[this.key]===this.node||this._markRemoved()},popContext:function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},pushContext:function(e){this.contexts.push(e),this.setContext(e)},setup:function(e,t,r,n){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,this.setKey(n)},setKey:function(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type},requeue:function(e){if(void 0===e&&(e=this),!e.removed)for(var t,r=f(this.contexts);!(t=r()).done;){t.value.maybeQueue(e)}},_getQueueContexts:function(){for(var e=this,t=this.contexts;!t.length&&(e=e.parentPath);)t=e.contexts;return t}}),Lg=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&("consequent"===e.key||"alternate"===e.key)||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}];var Mg=Object.freeze({__proto__:null,remove:function(){var e;this._assertUnremoved(),this.resync(),null!=(e=this.opts)&&e.noScope||this._removeFromScope(),this._callRemovalHooks()||(this.shareCommentsWithSiblings(),this._remove()),this._markRemoved()},_removeFromScope:function(){var e=this,t=this.getBindingIdentifiers();Object.keys(t).forEach((function(t){return e.scope.removeBinding(t)}))},_callRemovalHooks:function(){for(var e,t=f(Lg);!(e=t()).done;){if((0,e.value)(this,this.parentPath))return!0}},_remove:function(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)},_markRemoved:function(){this._traverseFlags|=Zg|Yg,this.parent&&rp.get(this.parent).delete(this.node),this.node=null},_assertUnremoved:function(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}}),Ug={ReferencedIdentifier:function(e,t){if(!e.isJSXIdentifier()||!jc.isCompatTag(e.node.name)||e.parentPath.isJSXMemberExpression()){if("this"===e.node.name){var r=e.scope;do{if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);r&&t.breakOnScopePaths.push(r.path)}var n=e.scope.getBinding(e.node.name);if(n){for(var s,a=f(n.constantViolations);!(s=a()).done;){if(s.value.scope!==n.path.scope)return t.mutableBinding=!0,void e.stop()}n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}}},Gg=function(){function e(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}var t=e.prototype;return t.isCompatibleScope=function(e){for(var t=0,r=Object.keys(this.bindings);t<r.length;t++){var n=r[t],s=this.bindings[n];if(!e.bindingIdentifierEquals(n,s.identifier))return!1}return!0},t.getCompatibleScopes=function(){var e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.indexOf(e.path)>=0)break}while(e=e.parent)},t.getAttachmentPath=function(){var e=this._getAttachmentPath();if(e){var t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(var r=0,n=Object.keys(this.bindings);r<n.length;r++){var s=n[r];if(t.hasOwnBinding(s)){var a=this.bindings[s];if("param"!==a.kind&&"params"!==a.path.parentKey)if(this.getAttachmentParentForPath(a.path).key>=e.key){this.attachAfter=!0,e=a.path;for(var i,o=f(a.constantViolations);!(i=o()).done;){var u=i.value;this.getAttachmentParentForPath(u).key>e.key&&(e=u)}}}}return e}},t._getAttachmentPath=function(){var e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();if(this.scope===e)return;for(var t=e.path.get("body").get("body"),r=0;r<t.length;r++)if(!t[r].node._blockHoist)return t[r]}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()},t.getNextScopeAttachmentParent=function(){var e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)},t.getAttachmentParentForPath=function(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath)},t.hasOwnParamBindings=function(e){for(var t=0,r=Object.keys(this.bindings);t<r.length;t++){var n=r[t];if(e.hasOwnBinding(n)){var s=this.bindings[n];if("param"===s.kind&&s.constant)return!0}}return!1},t.run=function(){if(this.path.traverse(Ug,this),!this.mutableBinding){this.getCompatibleScopes();var e=this.getAttachmentPath();if(e&&e.getFunctionParent()!==this.path.getFunctionParent()){var t=e.scope.generateUidIdentifier("ref"),r=zs(t,this.path.node),n=l(e[this.attachAfter?"insertAfter":"insertBefore"]([e.isVariableDeclarator()?r:Ks("var",[r])]),1)[0],s=this.path.parentPath;return s.isJSXElement()&&this.path.container===s.node.children&&(t=Wi(t)),this.path.replaceWith(Ju(t)),e.isVariableDeclarator()?n.get("init"):n.get("declarations.0.init")}}},e}();var Vg=Object.freeze({__proto__:null,insertBefore:function(e){this._assertUnremoved();var t=this._verifyNodeList(e),r=this.parentPath;if(r.isExpressionStatement()||r.isLabeledStatement()||r.isExportNamedDeclaration()||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return this._containerInsertBefore(t);if(this.isStatementOrBlock()){var n=this.node,s=n&&(!this.isExpressionStatement()||null!=n.expression);return this.replaceWith(os(s?[n]:[])),this.unshiftContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},_containerInsert:function(e,t){var r;this.updateSiblingKeys(e,t.length);var n=[];(r=this.container).splice.apply(r,[e,0].concat(c(t)));for(var s=0;s<t.length;s++){var a=e+s,i=this.getSibling(a);n.push(i),this.context&&this.context.queue&&i.pushContext(this.context)}for(var o=this._getQueueContexts(),u=0,l=n;u<l.length;u++){var p=l[u];p.setScope(),p.debug("Inserted.");for(var d,h=f(o);!(d=h()).done;){d.value.maybeQueue(p,!0)}}return n},_containerInsertBefore:function(e){return this._containerInsert(this.key,e)},_containerInsertAfter:function(e){return this._containerInsert(this.key+1,e)},insertAfter:function(e){this._assertUnremoved();var t=this._verifyNodeList(e),r=this.parentPath;if(r.isExpressionStatement()||r.isLabeledStatement()||r.isExportNamedDeclaration()||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map((function(e){return vt(e)?ys(e):e})));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&"init"===this.key){if(this.node){var n=this.node,s=this.scope;if(s.path.isPattern())return Gu(n),this.replaceWith(ls(ea([],n),[])),this.get("callee.body").insertAfter(t),[this];r.isMethod({computed:!0,key:n})&&(s=s.parent);var a=s.generateDeclaredUidIdentifier();t.unshift(ys(rs("=",Ju(a),n))),t.push(ys(Ju(a)))}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return this._containerInsertAfter(t);if(this.isStatementOrBlock()){var i=this.node,o=i&&(!this.isExpressionStatement()||null!=i.expression);return this.replaceWith(os(o?[i]:[])),this.pushContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},updateSiblingKeys:function(e,t){if(this.parent)for(var r,n=f(rp.get(this.parent));!(r=n()).done;){var s=l(r.value,2)[1];s.key>=e&&(s.key+=t)}},_verifyNodeList:function(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(var t=0;t<e.length;t++){var r=e[t],n=void 0;if(r?"object"!=typeof r?n="contains a non-object node":r.type?r instanceof ev&&(n="has a NodePath when it expected a raw object"):n="without a type":n="has falsy node",n){var s=Array.isArray(r)?"array":typeof r;throw new Error("Node list "+n+" with the index of "+t+" and type of "+s)}}return e},unshiftContainer:function(e,t){return this._assertUnremoved(),t=this._verifyNodeList(t),ev.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0}).setContext(this.context)._containerInsertBefore(t)},pushContainer:function(e,t){this._assertUnremoved();var r=this._verifyNodeList(t),n=this.node[e];return ev.get({parentPath:this,parent:this.node,container:n,listKey:e,key:n.length}).setContext(this.context).replaceWithMultiple(r)},hoist:function(e){return void 0===e&&(e=this.scope),new Gg(this,e).run()}});function Wg(e,t,r){return e?t.concat($g(e,r)):t}function Hg(e){e.forEach((function(e){e.type=1}))}function Xg(e,t){e.forEach((function(e){e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(qs("void",Ss(0))):e.path.remove())}))}function qg(e,t){var r=[];if(t.canHaveBreak)for(var n=[],s=0;s<e.length;s++){var a=e[s],i=Object.assign({},t,{inCaseClause:!1});a.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?i.shouldPopulateBreak=!0:i.shouldPopulateBreak=!1;var o=$g(a,i);if(o.length>0&&o.every((function(e){return 1===e.type}))){n.length>0&&o.every((function(e){return e.path.isBreakStatement({label:null})}))?(Hg(n),r=r.concat(n),n.some((function(e){return e.path.isDeclaration()}))&&(r=r.concat(o),Xg(o,!0)),Xg(o,!1)):(r=r.concat(o),t.shouldPopulateBreak||Xg(o,!0));break}s===e.length-1?r=r.concat(o):(r=r.concat(o.filter((function(e){return 1===e.type}))),n=o.filter((function(e){return 0===e.type})))}else e.length&&(r=r.concat($g(e[e.length-1],t)));return r}function $g(e,t){var r=[];if(e.isIfStatement())r=Wg(e.get("consequent"),r,t),r=Wg(e.get("alternate"),r,t);else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())r=Wg(e.get("body"),r,t);else if(e.isProgram()||e.isBlockStatement())r=r.concat(qg(e.get("body"),t));else{if(e.isFunction())return $g(e.get("body"),t);e.isTryStatement()?(r=Wg(e.get("block"),r,t),r=Wg(e.get("handler"),r,t)):e.isCatchClause()?r=Wg(e.get("body"),r,t):e.isSwitchStatement()?r=function(e,t,r){for(var n=[],s=0;s<e.length;s++){for(var a,i=[],o=[],u=f($g(e[s],r));!(a=u()).done;){var l=a.value;0===l.type&&i.push(l),1===l.type&&o.push(l)}i.length&&(n=i),t=t.concat(o)}return t.concat(n)}(e.get("cases"),r,t):e.isSwitchCase()?r=r.concat(qg(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0})):e.isBreakStatement()?r.push(function(e){return{type:1,path:e}}(e)):r.push(function(e){return{type:0,path:e}}(e))}return r}var Kg=Object.freeze({__proto__:null,getOpposite:function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},getCompletionRecords:function(){return $g(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map((function(e){return e.path}))},getSibling:function(e){return ev.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)},getPrevSibling:function(){return this.getSibling(this.key-1)},getNextSibling:function(){return this.getSibling(this.key+1)},getAllNextSiblings:function(){for(var e=this.key,t=this.getSibling(++e),r=[];t.node;)r.push(t),t=this.getSibling(++e);return r},getAllPrevSiblings:function(){for(var e=this.key,t=this.getSibling(--e),r=[];t.node;)r.push(t),t=this.getSibling(--e);return r},get:function(e,t){void 0===t&&(t=!0),!0===t&&(t=this.context);var r=e.split(".");return 1===r.length?this._getKey(e,t):this._getPattern(r,t)},_getKey:function(e,t){var r=this,n=this.node,s=n[e];return Array.isArray(s)?s.map((function(a,i){return ev.get({listKey:e,parentPath:r,parent:n,container:s,key:i}).setContext(t)})):ev.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)},_getPattern:function(e,t){for(var r,n=this,s=f(e);!(r=s()).done;){var a=r.value;n="."===a?n.parentPath:Array.isArray(n)?n[a]:n.get(a,t)}return n},getBindingIdentifiers:function(e){return cc(this.node,e)},getOuterBindingIdentifiers:function(e){return gc(this.node,e)},getBindingIdentifierPaths:function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=[].concat(this),n=Object.create(null);r.length;){var s=r.shift();if(s&&s.node){var a=cc.keys[s.node.type];if(s.isIdentifier())e?(n[s.node.name]=n[s.node.name]||[]).push(s):n[s.node.name]=s;else if(s.isExportDeclaration()){var i=s.get("declaration");i.isDeclaration()&&r.push(i)}else{if(t){if(s.isFunctionDeclaration()){r.push(s.get("id"));continue}if(s.isFunctionExpression())continue}if(a)for(var o=0;o<a.length;o++){var u=a[o],l=s.get(u);(Array.isArray(l)||l.node)&&(r=r.concat(l))}}}}return n},getOuterBindingIdentifierPaths:function(e){return this.getBindingIdentifierPaths(e,!0)}});var zg=Object.freeze({__proto__:null,shareCommentsWithSiblings:function(){if("string"!=typeof this.key){var e=this.node;if(e){var t=e.trailingComments,r=e.leadingComments;if(t||r){var n=this.getSibling(this.key-1),s=this.getSibling(this.key+1),a=Boolean(n.node),i=Boolean(s.node);a&&!i?n.addComments("trailing",t):i&&!a&&s.addComments("leading",r)}}}},addComment:function(e,t,r){el(this.node,e,t,r)},addComments:function(e,t){Zu(this.node,e,t)}}),Jg=Jc("babel"),Yg=1,Qg=2,Zg=4,ev=function(){function e(e,t){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}e.get=function(t){var r=t.hub,n=t.parentPath,s=t.parent,a=t.container,i=t.listKey,o=t.key;if(!r&&n&&(r=n.hub),!s)throw new Error("To get a node path the parent needs to exist");var u=a[o],l=rp.get(s);l||(l=new Map,rp.set(s,l));var c=l.get(u);return c||(c=new e(r,s),u&&l.set(u,c)),c.setup(n,a,i,o),c};var t=e.prototype;return t.getScope=function(e){return this.isScope()?new cp(this):e},t.setData=function(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t},t.getData=function(e,t){null==this.data&&(this.data=Object.create(null));var r=this.data[e];return void 0===r&&void 0!==t&&(r=this.data[e]=t),r},t.buildCodeFrameError=function(e,t){return void 0===t&&(t=SyntaxError),this.hub.buildError(this.node,e,t)},t.traverse=function(e,t){gv(this.node,e,this.scope,t,this)},t.set=function(e,t){zr(this.node,e,t),this.node[e]=t},t.getPathLocation=function(){var e=[],t=this;do{var r=t.key;t.inList&&(r=t.listKey+"["+r+"]"),e.unshift(r)}while(t=t.parentPath);return e.join(".")},t.debug=function(e){Jg.enabled&&Jg(this.getPathLocation()+" "+this.type+": "+e)},t.toString=function(){return Bf(this.node).code},n(e,[{key:"inList",get:function(){return!!this.listKey},set:function(e){e||(this.listKey=null)}},{key:"parentKey",get:function(){return this.listKey||this.key}},{key:"shouldSkip",get:function(){return!!(this._traverseFlags&Zg)},set:function(e){e?this._traverseFlags|=Zg:this._traverseFlags&=~Zg}},{key:"shouldStop",get:function(){return!!(this._traverseFlags&Qg)},set:function(e){e?this._traverseFlags|=Qg:this._traverseFlags&=~Qg}},{key:"removed",get:function(){return!!(this._traverseFlags&Yg)},set:function(e){e?this._traverseFlags|=Yg:this._traverseFlags&=~Yg}}]),e}();Object.assign(ev.prototype,_f,vh,Vy,zy,jg,Ng,_g,Mg,Vg,Kg,zg);for(var tv,rv=function(){var e=tv.value,t="is"+e,r=Pc[t];ev.prototype[t]=function(e){return r(this.node,e)},ev.prototype["assert"+e]=function(t){if(!r(this.node,t))throw new TypeError("Expected node path of type "+e)}},nv=f(Zn);!(tv=nv()).done;)rv();for(var sv=function(){var e=iv[av];if("_"===e[0])return"continue";Zn.indexOf(e)<0&&Zn.push(e);var t=Uc[e];ev.prototype["is"+e]=function(e){return t.checkPath(this,e)}},av=0,iv=Object.keys(Uc);av<iv.length;av++)sv();var ov=function(){function e(e,t,r,n){this.queue=null,this.priorityQueue=null,this.parentPath=n,this.scope=e,this.state=r,this.opts=t}var t=e.prototype;return t.shouldVisit=function(e){var t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;var r=Qr[e.type];if(null==r||!r.length)return!1;for(var n,s=f(r);!(n=s()).done;){if(e[n.value])return!0}return!1},t.create=function(e,t,r,n){return ev.get({parentPath:this.parentPath,parent:e,container:t,key:r,listKey:n})},t.maybeQueue=function(e,t){if(this.trap)throw new Error("Infinite cycle detected");this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))},t.visitMultiple=function(e,t,r){if(0===e.length)return!1;for(var n=[],s=0;s<e.length;s++){var a=e[s];a&&this.shouldVisit(a)&&n.push(this.create(t,e,s,r))}return this.visitQueue(n)},t.visitSingle=function(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])},t.visitQueue=function(e){this.queue=e,this.priorityQueue=[];for(var t,r=new WeakSet,n=!1,s=f(e);!(t=s()).done;){var a=t.value;if(a.resync(),0!==a.contexts.length&&a.contexts[a.contexts.length-1]===this||a.pushContext(this),null!==a.key){var i=a.node;if(!r.has(i)){if(i&&r.add(i),a.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}}for(var o,u=f(e);!(o=u()).done;){o.value.popContext()}return this.queue=null,n},t.visit=function(e,t){var r=e[t];return!!r&&(Array.isArray(r)?this.visitMultiple(r,e,t):this.visitSingle(e,t))},e}();function uv(e){if(e._exploded)return e;e._exploded=!0;for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if(!hv(n)){var s=n.split("|");if(1!==s.length){var a=e[n];delete e[n];for(var i,o=f(s);!(i=o()).done;){e[i.value]=a}}}}lv(e),delete e.__esModule,function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if(!hv(n)){var s=e[n];"function"==typeof s&&(e[n]={enter:s})}}}(e),dv(e);for(var u=0,l=Object.keys(e);u<l.length;u++){var c=l[u];if(!hv(c)){var p=Uc[c];if(p){for(var d=e[c],h=0,m=Object.keys(d);h<m.length;h++){var y=m[h];d[y]=fv(p,d[y])}if(delete e[c],p.types)for(var g,v=f(p.types);!(g=v()).done;){var b=g.value;e[b]?mv(e[b],d):e[b]=d}else mv(e,d)}}}for(var E=0,x=Object.keys(e);E<x.length;E++){var D=x[E];if(!hv(D)){var A=e[D],w=en[D],C=nn[D];if(C&&(console.trace("Visitor defined for "+D+" but it has been renamed to "+C),w=[C]),w){delete e[D];for(var S,T=f(w);!(S=T()).done;){var j=S.value,P=e[j];P?mv(P,A):e[j]=Object.assign({},A)}}}}for(var I=0,F=Object.keys(e);I<F.length;I++){var k=F[I];hv(k)||dv(e[k])}return e}function lv(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if("enter"!==n&&"exit"!==n||cv(n,e[n]),!hv(n)){if(Zn.indexOf(n)<0)throw new Error("You gave us a visitor for the node type "+n+" but it's not a valid type");var s=e[n];if("object"==typeof s)for(var a=0,i=Object.keys(s);a<i.length;a++){var o=i[a];if("enter"!==o&&"exit"!==o)throw new Error("You passed `traverse()` a visitor object with the property "+n+" that has the invalid property "+o);cv(n+"."+o,s[o])}}}e._verified=!0}}function cv(e,t){for(var r,n=f([].concat(t));!(r=n()).done;){var s=r.value;if("function"!=typeof s)throw new TypeError("Non-function found defined in "+e+" with type "+typeof s)}}function pv(e,t,r){for(var n={},s=function(){var s=i[a],o=e[s];if(!Array.isArray(o))return"continue";o=o.map((function(e){var n=e;return t&&(n=function(r){return e.call(t,r,t)}),r&&(n=r(t.key,s,n)),n!==e&&(n.toString=function(){return e.toString()}),n})),n[s]=o},a=0,i=Object.keys(e);a<i.length;a++)s();return n}function dv(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function fv(e,t){var r=function(r){if(e.checkPath(r))return t.apply(this,arguments)};return r.toString=function(){return t.toString()},r}function hv(e){return"_"===e[0]||("enter"===e||"exit"===e||"shouldSkip"===e||("denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e))}function mv(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var s=n[r];e[s]=[].concat(e[s]||[],t[s])}}var yv=Object.freeze({__proto__:null,explode:uv,verify:lv,merge:function(e,t,r){void 0===t&&(t=[]);for(var n={},s=0;s<e.length;s++){var a=e[s],i=t[s];uv(a);for(var o=0,u=Object.keys(a);o<u.length;o++){var l=u[o],c=a[l];(i||r)&&(c=pv(c,i,r)),mv(n[l]=n[l]||{},c)}}return n}});function gv(e,t,r,n,s){if(void 0===t&&(t={}),e){if(!t.noScope&&!r&&"Program"!==e.type&&"File"!==e.type)throw new Error("You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a "+e.type+" node without passing scope and parentPath.");Qr[e.type]&&(uv(t),gv.node(e,t,r,n,s))}}function vv(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}gv.visitors=yv,gv.verify=lv,gv.explode=uv,gv.cheap=function(e,t){return sc(e,t)},gv.node=function(e,t,r,n,s,a){var i=Qr[e.type];if(i)for(var o,u=new ov(r,t,n,s),l=f(i);!(o=l()).done;){var c=o.value;if((!a||!a[c])&&u.visit(e,c))return}},gv.clearNode=function(e,t){oc(e,t),rp.delete(e)},gv.removeProperties=function(e,t){return sc(e,gv.clearNode,t),e},gv.hasType=function(e,t,r){if(null!=r&&r.includes(e.type))return!1;if(e.type===t)return!0;var n={has:!1,type:t};return gv(e,{noScope:!0,denylist:r,enter:vv},null,n),n.has},gv.cache=ip;var bv,Ev,xv,Dv,Av,wv,Cv,Sv,Tv,jv,Pv,Iv,Fv,kv,Ov,Rv,Nv,Bv,_v,Lv,Mv,Uv,Gv,Vv,Wv,Hv,Xv,qv,$v,Kv,zv,Jv,Yv,Qv,Zv,eb,tb,rb,nb,sb,ab,ib,ob,ub,lb,cb,pb,db,fb,hb,mb,yb,gb,vb,bb,Eb,xb,Db,Ab,wb,Cb,Sb,Tb,jb,Pb,Ib,Fb,kb,Ob,Rb,Nb,Bb,_b,Lb,Mb,Ub,Gb,Vb,Wb,Hb,Xb,qb,$b,Kb,zb={minVersion:"7.0.0-beta.0",ast:function(){return bg.program.ast('\nvar REACT_ELEMENT_TYPE;\nexport default function _createRawReactElement(type, props, key, children) {\n if (!REACT_ELEMENT_TYPE) {\n REACT_ELEMENT_TYPE =\n (typeof Symbol === "function" &&\n \n Symbol["for"] &&\n Symbol["for"]("react.element")) ||\n 0xeac7;\n }\n var defaultProps = type && type.defaultProps;\n var childrenLength = arguments.length - 3;\n if (!props && childrenLength !== 0) {\n \n \n props = { children: void 0 };\n }\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = new Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 3];\n }\n props.children = childArray;\n }\n if (props && defaultProps) {\n for (var propName in defaultProps) {\n if (props[propName] === void 0) {\n props[propName] = defaultProps[propName];\n }\n }\n } else if (!props) {\n props = defaultProps || {};\n }\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key === undefined ? null : "" + key,\n ref: null,\n props: props,\n _owner: null,\n };\n}\n')}},Jb={minVersion:"7.5.0",ast:function(){return bg.program.ast('\nimport defineProperty from "defineProperty";\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(\n target,\n key,\n Object.getOwnPropertyDescriptor(source, key)\n );\n });\n }\n }\n return target;\n}\n')}},Yb={minVersion:"7.0.0-beta.0",ast:function(){return bg.program.ast('\nexport default function _typeof(obj) {\n "@babel/helpers - typeof";\n if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj &&\n typeof Symbol === "function" &&\n obj.constructor === Symbol &&\n obj !== Symbol.prototype\n ? "symbol"\n : typeof obj;\n };\n }\n return _typeof(obj);\n}\n')}},Qb={minVersion:"7.2.6",ast:function(){return bg.program.ast('\nimport setPrototypeOf from "setPrototypeOf";\nimport inherits from "inherits";\nexport default function _wrapRegExp() {\n _wrapRegExp = function (re, groups) {\n return new BabelRegExp(re, undefined, groups);\n };\n var _super = RegExp.prototype;\n var _groups = new WeakMap();\n function BabelRegExp(re, flags, groups) {\n var _this = new RegExp(re, flags);\n \n _groups.set(_this, groups || _groups.get(re));\n return setPrototypeOf(_this, BabelRegExp.prototype);\n }\n inherits(BabelRegExp, RegExp);\n BabelRegExp.prototype.exec = function (str) {\n var result = _super.exec.call(this, str);\n if (result) result.groups = buildGroups(result, this);\n return result;\n };\n BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {\n if (typeof substitution === "string") {\n var groups = _groups.get(this);\n return _super[Symbol.replace].call(\n this,\n str,\n substitution.replace(/\\$<([^>]+)>/g, function (_, name) {\n return "$" + groups[name];\n })\n );\n } else if (typeof substitution === "function") {\n var _this = this;\n return _super[Symbol.replace].call(this, str, function () {\n var args = arguments;\n \n if (typeof args[args.length - 1] !== "object") {\n args = [].slice.call(args);\n args.push(buildGroups(args, _this));\n }\n return substitution.apply(this, args);\n });\n } else {\n return _super[Symbol.replace].call(this, str, substitution);\n }\n };\n function buildGroups(result, re) {\n \n \n var g = _groups.get(re);\n return Object.keys(g).reduce(function (groups, name) {\n groups[name] = result[g[name]];\n return groups;\n }, Object.create(null));\n }\n return _wrapRegExp.apply(this, arguments);\n}\n')}},Zb=Object.freeze({__proto__:null,jsx:zb,objectSpread2:Jb,typeof:Yb,wrapRegExp:Qb}),eE=Object.assign({__proto__:null},Zb),tE=function(e){return function(t){return{minVersion:e,ast:function(){return bg.program.ast(t)}}}};function rE(e){for(var t=[];e.parentPath;e=e.parentPath)t.push(e.key),e.inList&&t.push(e.listKey);return t.reverse().join(".")}eE.asyncIterator=tE("7.0.0-beta.0")(bv||(bv=u(['\n export default function _asyncIterator(iterable) {\n var method;\n if (typeof Symbol !== "undefined") {\n if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator];\n if (method == null && Symbol.iterator) method = iterable[Symbol.iterator];\n }\n if (method == null) method = iterable["@@asyncIterator"];\n if (method == null) method = iterable["@@iterator"]\n if (method == null) throw new TypeError("Object is not async iterable");\n return method.call(iterable);\n }\n']))),eE.AwaitValue=tE("7.0.0-beta.0")(Ev||(Ev=u(["\n export default function _AwaitValue(value) {\n this.wrapped = value;\n }\n"]))),eE.AsyncGenerator=tE("7.0.0-beta.0")(xv||(xv=u(['\n import AwaitValue from "AwaitValue";\n\n export default function AsyncGenerator(gen) {\n var front, back;\n\n function send(key, arg) {\n return new Promise(function (resolve, reject) {\n var request = {\n key: key,\n arg: arg,\n resolve: resolve,\n reject: reject,\n next: null,\n };\n\n if (back) {\n back = back.next = request;\n } else {\n front = back = request;\n resume(key, arg);\n }\n });\n }\n\n function resume(key, arg) {\n try {\n var result = gen[key](arg)\n var value = result.value;\n var wrappedAwait = value instanceof AwaitValue;\n\n Promise.resolve(wrappedAwait ? value.wrapped : value).then(\n function (arg) {\n if (wrappedAwait) {\n resume(key === "return" ? "return" : "next", arg);\n return\n }\n\n settle(result.done ? "return" : "normal", arg);\n },\n function (err) { resume("throw", err); });\n } catch (err) {\n settle("throw", err);\n }\n }\n\n function settle(type, value) {\n switch (type) {\n case "return":\n front.resolve({ value: value, done: true });\n break;\n case "throw":\n front.reject(value);\n break;\n default:\n front.resolve({ value: value, done: false });\n break;\n }\n\n front = front.next;\n if (front) {\n resume(front.key, front.arg);\n } else {\n back = null;\n }\n }\n\n this._invoke = send;\n\n // Hide "return" method if generator return is not supported\n if (typeof gen.return !== "function") {\n this.return = undefined;\n }\n }\n\n AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () { return this; };\n\n AsyncGenerator.prototype.next = function (arg) { return this._invoke("next", arg); };\n AsyncGenerator.prototype.throw = function (arg) { return this._invoke("throw", arg); };\n AsyncGenerator.prototype.return = function (arg) { return this._invoke("return", arg); };\n']))),eE.wrapAsyncGenerator=tE("7.0.0-beta.0")(Dv||(Dv=u(['\n import AsyncGenerator from "AsyncGenerator";\n\n export default function _wrapAsyncGenerator(fn) {\n return function () {\n return new AsyncGenerator(fn.apply(this, arguments));\n };\n }\n']))),eE.awaitAsyncGenerator=tE("7.0.0-beta.0")(Av||(Av=u(['\n import AwaitValue from "AwaitValue";\n\n export default function _awaitAsyncGenerator(value) {\n return new AwaitValue(value);\n }\n']))),eE.asyncGeneratorDelegate=tE("7.0.0-beta.0")(wv||(wv=u(['\n export default function _asyncGeneratorDelegate(inner, awaitWrap) {\n var iter = {}, waiting = false;\n\n function pump(key, value) {\n waiting = true;\n value = new Promise(function (resolve) { resolve(inner[key](value)); });\n return { done: false, value: awaitWrap(value) };\n };\n\n iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () { return this; };\n\n iter.next = function (value) {\n if (waiting) {\n waiting = false;\n return value;\n }\n return pump("next", value);\n };\n\n if (typeof inner.throw === "function") {\n iter.throw = function (value) {\n if (waiting) {\n waiting = false;\n throw value;\n }\n return pump("throw", value);\n };\n }\n\n if (typeof inner.return === "function") {\n iter.return = function (value) {\n if (waiting) {\n waiting = false;\n return value;\n }\n return pump("return", value);\n };\n }\n\n return iter;\n }\n']))),eE.asyncToGenerator=tE("7.0.0-beta.0")(Cv||(Cv=u(['\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n }\n\n export default function _asyncToGenerator(fn) {\n return function () {\n var self = this, args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);\n }\n\n _next(undefined);\n });\n };\n }\n']))),eE.classCallCheck=tE("7.0.0-beta.0")(Sv||(Sv=u(['\n export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError("Cannot call a class as a function");\n }\n }\n']))),eE.createClass=tE("7.0.0-beta.0")(Tv||(Tv=u(['\n function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i ++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if ("value" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n export default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n }\n']))),eE.defineEnumerableProperties=tE("7.0.0-beta.0")(jv||(jv=u(['\n export default function _defineEnumerableProperties(obj, descs) {\n for (var key in descs) {\n var desc = descs[key];\n desc.configurable = desc.enumerable = true;\n if ("value" in desc) desc.writable = true;\n Object.defineProperty(obj, key, desc);\n }\n\n // Symbols are not enumerated over by for-in loops. If native\n // Symbols are available, fetch all of the descs object\'s own\n // symbol properties and define them on our target object too.\n if (Object.getOwnPropertySymbols) {\n var objectSymbols = Object.getOwnPropertySymbols(descs);\n for (var i = 0; i < objectSymbols.length; i++) {\n var sym = objectSymbols[i];\n var desc = descs[sym];\n desc.configurable = desc.enumerable = true;\n if ("value" in desc) desc.writable = true;\n Object.defineProperty(obj, sym, desc);\n }\n }\n return obj;\n }\n']))),eE.defaults=tE("7.0.0-beta.0")(Pv||(Pv=u(["\n export default function _defaults(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = Object.getOwnPropertyDescriptor(defaults, key);\n if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }\n return obj;\n }\n"]))),eE.defineProperty=tE("7.0.0-beta.0")(Iv||(Iv=u(["\n export default function _defineProperty(obj, key, value) {\n // Shortcircuit the slow defineProperty path when possible.\n // We are trying to avoid issues where setters defined on the\n // prototype cause side effects under the fast path of simple\n // assignment. By checking for existence of the property with\n // the in operator, we can optimize most of this overhead away.\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n }\n"]))),eE.extends=tE("7.0.0-beta.0")(Fv||(Fv=u(["\n export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n\n return _extends.apply(this, arguments);\n }\n"]))),eE.objectSpread=tE("7.0.0-beta.0")(kv||(kv=u(["\n import defineProperty from \"defineProperty\";\n\n export default function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = (arguments[i] != null) ? Object(arguments[i]) : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n defineProperty(target, key, source[key]);\n });\n }\n return target;\n }\n"]))),eE.inherits=tE("7.0.0-beta.0")(Ov||(Ov=u(['\n import setPrototypeOf from "setPrototypeOf";\n\n export default function _inherits(subClass, superClass) {\n if (typeof superClass !== "function" && superClass !== null) {\n throw new TypeError("Super expression must either be null or a function");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n }\n']))),eE.inheritsLoose=tE("7.0.0-beta.0")(Rv||(Rv=u(['\n import setPrototypeOf from "setPrototypeOf";\n\n export default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n }\n']))),eE.getPrototypeOf=tE("7.0.0-beta.0")(Nv||(Nv=u(["\n export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf\n ? Object.getPrototypeOf\n : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n }\n"]))),eE.setPrototypeOf=tE("7.0.0-beta.0")(Bv||(Bv=u(["\n export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n }\n"]))),eE.isNativeReflectConstruct=tE("7.9.0")(_v||(_v=u(["\n export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n\n // core-js@3\n if (Reflect.construct.sham) return false;\n\n // Proxy can't be polyfilled. Every browser implemented\n // proxies before or at the same time as Reflect.construct,\n // so if they support Proxy they also support Reflect.construct.\n if (typeof Proxy === \"function\") return true;\n\n // Since Reflect.construct can't be properly polyfilled, some\n // implementations (e.g. core-js@2) don't set the correct internal slots.\n // Those polyfills don't allow us to subclass built-ins, so we need to\n // use our fallback implementation.\n try {\n // If the internal slots aren't set, this throws an error similar to\n // TypeError: this is not a Boolean object.\n\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n"]))),eE.construct=tE("7.0.0-beta.0")(Lv||(Lv=u(['\n import setPrototypeOf from "setPrototypeOf";\n import isNativeReflectConstruct from "isNativeReflectConstruct";\n\n export default function _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n // NOTE: If Parent !== Class, the correct __proto__ is set *after*\n // calling the constructor.\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n // Avoid issues with Class being present but undefined when it wasn\'t\n // present in the original call.\n return _construct.apply(null, arguments);\n }\n']))),eE.isNativeFunction=tE("7.0.0-beta.0")(Mv||(Mv=u(['\n export default function _isNativeFunction(fn) {\n // Note: This function returns "true" for core-js functions.\n return Function.toString.call(fn).indexOf("[native code]") !== -1;\n }\n']))),eE.wrapNativeSuper=tE("7.0.0-beta.0")(Uv||(Uv=u(['\n import getPrototypeOf from "getPrototypeOf";\n import setPrototypeOf from "setPrototypeOf";\n import isNativeFunction from "isNativeFunction";\n import construct from "construct";\n\n export default function _wrapNativeSuper(Class) {\n var _cache = typeof Map === "function" ? new Map() : undefined;\n\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n if (typeof Class !== "function") {\n throw new TypeError("Super expression must either be null or a function");\n }\n if (typeof _cache !== "undefined") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor)\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true,\n }\n });\n\n return setPrototypeOf(Wrapper, Class);\n }\n\n return _wrapNativeSuper(Class)\n }\n']))),eE.instanceof=tE("7.0.0-beta.0")(Gv||(Gv=u(['\n export default function _instanceof(left, right) {\n if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {\n return !!right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n }\n']))),eE.interopRequireDefault=tE("7.0.0-beta.0")(Vv||(Vv=u(["\n export default function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n }\n"]))),eE.interopRequireWildcard=tE("7.14.0")(Wv||(Wv=u(['\n function _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== "function") return null;\n\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n return (_getRequireWildcardCache = function (nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n }\n\n export default function _interopRequireWildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) {\n return obj;\n }\n\n if (obj === null || (typeof obj !== "object" && typeof obj !== "function")) {\n return { default: obj }\n }\n\n var cache = _getRequireWildcardCache(nodeInterop);\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for (var key in obj) {\n if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor\n ? Object.getOwnPropertyDescriptor(obj, key)\n : null;\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n if (cache) {\n cache.set(obj, newObj);\n }\n return newObj;\n }\n']))),eE.newArrowCheck=tE("7.0.0-beta.0")(Hv||(Hv=u(['\n export default function _newArrowCheck(innerThis, boundThis) {\n if (innerThis !== boundThis) {\n throw new TypeError("Cannot instantiate an arrow function");\n }\n }\n']))),eE.objectDestructuringEmpty=tE("7.0.0-beta.0")(Xv||(Xv=u(['\n export default function _objectDestructuringEmpty(obj) {\n if (obj == null) throw new TypeError("Cannot destructure undefined");\n }\n']))),eE.objectWithoutPropertiesLoose=tE("7.0.0-beta.0")(qv||(qv=u(["\n export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n }\n"]))),eE.objectWithoutProperties=tE("7.0.0-beta.0")($v||($v=u(['\n import objectWithoutPropertiesLoose from "objectWithoutPropertiesLoose";\n\n export default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n }\n']))),eE.assertThisInitialized=tE("7.0.0-beta.0")(Kv||(Kv=u(["\n export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n }\n"]))),eE.possibleConstructorReturn=tE("7.0.0-beta.0")(zv||(zv=u(['\n import assertThisInitialized from "assertThisInitialized";\n\n export default function _possibleConstructorReturn(self, call) {\n if (call && (typeof call === "object" || typeof call === "function")) {\n return call;\n }\n return assertThisInitialized(self);\n }\n']))),eE.createSuper=tE("7.9.0")(Jv||(Jv=u(['\n import getPrototypeOf from "getPrototypeOf";\n import isNativeReflectConstruct from "isNativeReflectConstruct";\n import possibleConstructorReturn from "possibleConstructorReturn";\n\n export default function _createSuper(Derived) {\n var hasNativeReflectConstruct = isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = getPrototypeOf(Derived), result;\n if (hasNativeReflectConstruct) {\n // NOTE: This doesn\'t work if this.__proto__.constructor has been modified.\n var NewTarget = getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return possibleConstructorReturn(this, result);\n }\n }\n ']))),eE.superPropBase=tE("7.0.0-beta.0")(Yv||(Yv=u(['\n import getPrototypeOf from "getPrototypeOf";\n\n export default function _superPropBase(object, property) {\n // Yes, this throws if object is null to being with, that\'s on purpose.\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n return object;\n }\n']))),eE.get=tE("7.0.0-beta.0")(Qv||(Qv=u(['\n import superPropBase from "superPropBase";\n\n export default function _get(target, property, receiver) {\n if (typeof Reflect !== "undefined" && Reflect.get) {\n _get = Reflect.get;\n } else {\n _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n\n if (!base) return;\n\n var desc = Object.getOwnPropertyDescriptor(base, property);\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n return _get(target, property, receiver || target);\n }\n']))),eE.set=tE("7.0.0-beta.0")(Zv||(Zv=u(['\n import superPropBase from "superPropBase";\n import defineProperty from "defineProperty";\n\n function set(target, property, value, receiver) {\n if (typeof Reflect !== "undefined" && Reflect.set) {\n set = Reflect.set;\n } else {\n set = function set(target, property, value, receiver) {\n var base = superPropBase(target, property);\n var desc;\n\n if (base) {\n desc = Object.getOwnPropertyDescriptor(base, property);\n if (desc.set) {\n desc.set.call(receiver, value);\n return true;\n } else if (!desc.writable) {\n // Both getter and non-writable fall into this.\n return false;\n }\n }\n\n // Without a super that defines the property, spec boils down to\n // "define on receiver" for some reason.\n desc = Object.getOwnPropertyDescriptor(receiver, property);\n if (desc) {\n if (!desc.writable) {\n // Setter, getter, and non-writable fall into this.\n return false;\n }\n\n desc.value = value;\n Object.defineProperty(receiver, property, desc);\n } else {\n // Avoid setters that may be defined on Sub\'s prototype, but not on\n // the instance.\n defineProperty(receiver, property, value);\n }\n\n return true;\n };\n }\n\n return set(target, property, value, receiver);\n }\n\n export default function _set(target, property, value, receiver, isStrict) {\n var s = set(target, property, value, receiver || target);\n if (!s && isStrict) {\n throw new Error(\'failed to set property\');\n }\n\n return value;\n }\n']))),eE.taggedTemplateLiteral=tE("7.0.0-beta.0")(eb||(eb=u(["\n export default function _taggedTemplateLiteral(strings, raw) {\n if (!raw) { raw = strings.slice(0); }\n return Object.freeze(Object.defineProperties(strings, {\n raw: { value: Object.freeze(raw) }\n }));\n }\n"]))),eE.taggedTemplateLiteralLoose=tE("7.0.0-beta.0")(tb||(tb=u(["\n export default function _taggedTemplateLiteralLoose(strings, raw) {\n if (!raw) { raw = strings.slice(0); }\n strings.raw = raw;\n return strings;\n }\n"]))),eE.readOnlyError=tE("7.0.0-beta.0")(rb||(rb=u(['\n export default function _readOnlyError(name) {\n throw new TypeError("\\"" + name + "\\" is read-only");\n }\n'],['\n export default function _readOnlyError(name) {\n throw new TypeError("\\\\"" + name + "\\\\" is read-only");\n }\n']))),eE.writeOnlyError=tE("7.12.13")(nb||(nb=u(['\n export default function _writeOnlyError(name) {\n throw new TypeError("\\"" + name + "\\" is write-only");\n }\n'],['\n export default function _writeOnlyError(name) {\n throw new TypeError("\\\\"" + name + "\\\\" is write-only");\n }\n']))),eE.classNameTDZError=tE("7.0.0-beta.0")(sb||(sb=u(['\n export default function _classNameTDZError(name) {\n throw new Error("Class \\"" + name + "\\" cannot be referenced in computed property keys.");\n }\n'],['\n export default function _classNameTDZError(name) {\n throw new Error("Class \\\\"" + name + "\\\\" cannot be referenced in computed property keys.");\n }\n']))),eE.temporalUndefined=tE("7.0.0-beta.0")(ab||(ab=u(["\n // This function isn't mean to be called, but to be used as a reference.\n // We can't use a normal object because it isn't hoisted.\n export default function _temporalUndefined() {}\n"]))),eE.tdz=tE("7.5.5")(ib||(ib=u(['\n export default function _tdzError(name) {\n throw new ReferenceError(name + " is not defined - temporal dead zone");\n }\n']))),eE.temporalRef=tE("7.0.0-beta.0")(ob||(ob=u(['\n import undef from "temporalUndefined";\n import err from "tdz";\n\n export default function _temporalRef(val, name) {\n return val === undef ? err(name) : val;\n }\n']))),eE.slicedToArray=tE("7.0.0-beta.0")(ub||(ub=u(['\n import arrayWithHoles from "arrayWithHoles";\n import iterableToArrayLimit from "iterableToArrayLimit";\n import unsupportedIterableToArray from "unsupportedIterableToArray";\n import nonIterableRest from "nonIterableRest";\n\n export default function _slicedToArray(arr, i) {\n return (\n arrayWithHoles(arr) ||\n iterableToArrayLimit(arr, i) ||\n unsupportedIterableToArray(arr, i) ||\n nonIterableRest()\n );\n }\n']))),eE.slicedToArrayLoose=tE("7.0.0-beta.0")(lb||(lb=u(['\n import arrayWithHoles from "arrayWithHoles";\n import iterableToArrayLimitLoose from "iterableToArrayLimitLoose";\n import unsupportedIterableToArray from "unsupportedIterableToArray";\n import nonIterableRest from "nonIterableRest";\n\n export default function _slicedToArrayLoose(arr, i) {\n return (\n arrayWithHoles(arr) ||\n iterableToArrayLimitLoose(arr, i) ||\n unsupportedIterableToArray(arr, i) ||\n nonIterableRest()\n );\n }\n']))),eE.toArray=tE("7.0.0-beta.0")(cb||(cb=u(['\n import arrayWithHoles from "arrayWithHoles";\n import iterableToArray from "iterableToArray";\n import unsupportedIterableToArray from "unsupportedIterableToArray";\n import nonIterableRest from "nonIterableRest";\n\n export default function _toArray(arr) {\n return (\n arrayWithHoles(arr) ||\n iterableToArray(arr) ||\n unsupportedIterableToArray(arr) ||\n nonIterableRest()\n );\n }\n']))),eE.toConsumableArray=tE("7.0.0-beta.0")(pb||(pb=u(['\n import arrayWithoutHoles from "arrayWithoutHoles";\n import iterableToArray from "iterableToArray";\n import unsupportedIterableToArray from "unsupportedIterableToArray";\n import nonIterableSpread from "nonIterableSpread";\n\n export default function _toConsumableArray(arr) {\n return (\n arrayWithoutHoles(arr) ||\n iterableToArray(arr) ||\n unsupportedIterableToArray(arr) ||\n nonIterableSpread()\n );\n }\n']))),eE.arrayWithoutHoles=tE("7.0.0-beta.0")(db||(db=u(['\n import arrayLikeToArray from "arrayLikeToArray";\n\n export default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n }\n']))),eE.arrayWithHoles=tE("7.0.0-beta.0")(fb||(fb=u(["\n export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n }\n"]))),eE.maybeArrayLike=tE("7.9.0")(hb||(hb=u(['\n import arrayLikeToArray from "arrayLikeToArray";\n\n export default function _maybeArrayLike(next, arr, i) {\n if (arr && !Array.isArray(arr) && typeof arr.length === "number") {\n var len = arr.length;\n return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);\n }\n return next(arr, i);\n }\n']))),eE.iterableToArray=tE("7.0.0-beta.0")(mb||(mb=u(['\n export default function _iterableToArray(iter) {\n if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);\n }\n']))),eE.iterableToArrayLimit=tE("7.0.0-beta.0")(yb||(yb=u(['\n export default function _iterableToArrayLimit(arr, i) {\n // this is an expanded form of `for...of` that properly supports abrupt completions of\n // iterators etc. variable names have been minimised to reduce the size of this massive\n // helper. sometimes spec compliance is annoying :(\n //\n // _n = _iteratorNormalCompletion\n // _d = _didIteratorError\n // _e = _iteratorError\n // _i = _iterator\n // _s = _step\n\n var _i = arr == null ? null : (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);\n if (_i == null) return;\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i["return"] != null) _i["return"]();\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n'],['\n export default function _iterableToArrayLimit(arr, i) {\n // this is an expanded form of \\`for...of\\` that properly supports abrupt completions of\n // iterators etc. variable names have been minimised to reduce the size of this massive\n // helper. sometimes spec compliance is annoying :(\n //\n // _n = _iteratorNormalCompletion\n // _d = _didIteratorError\n // _e = _iteratorError\n // _i = _iterator\n // _s = _step\n\n var _i = arr == null ? null : (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);\n if (_i == null) return;\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i["return"] != null) _i["return"]();\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n']))),eE.iterableToArrayLimitLoose=tE("7.0.0-beta.0")(gb||(gb=u(['\n export default function _iterableToArrayLimitLoose(arr, i) {\n var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);\n if (_i == null) return;\n\n var _arr = [];\n for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) {\n _arr.push(_step.value);\n if (i && _arr.length === i) break;\n }\n return _arr;\n }\n']))),eE.unsupportedIterableToArray=tE("7.9.0")(vb||(vb=u(['\n import arrayLikeToArray from "arrayLikeToArray";\n\n export default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === "string") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === "Object" && o.constructor) n = o.constructor.name;\n if (n === "Map" || n === "Set") return Array.from(o);\n if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))\n return arrayLikeToArray(o, minLen);\n }\n']))),eE.arrayLikeToArray=tE("7.9.0")(bb||(bb=u(["\n export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n }\n"]))),eE.nonIterableSpread=tE("7.0.0-beta.0")(Eb||(Eb=u(['\n export default function _nonIterableSpread() {\n throw new TypeError(\n "Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."\n );\n }\n'],['\n export default function _nonIterableSpread() {\n throw new TypeError(\n "Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."\n );\n }\n']))),eE.nonIterableRest=tE("7.0.0-beta.0")(xb||(xb=u(['\n export default function _nonIterableRest() {\n throw new TypeError(\n "Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."\n );\n }\n'],['\n export default function _nonIterableRest() {\n throw new TypeError(\n "Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."\n );\n }\n']))),eE.createForOfIteratorHelper=tE("7.9.0")(Db||(Db=u(['\n import unsupportedIterableToArray from "unsupportedIterableToArray";\n\n // s: start (create the iterator)\n // n: next\n // e: error (called whenever something throws)\n // f: finish (always called at the end)\n\n export default function _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];\n\n if (!it) {\n // Fallback for engines without symbol support\n if (\n Array.isArray(o) ||\n (it = unsupportedIterableToArray(o)) ||\n (allowArrayLike && o && typeof o.length === "number")\n ) {\n if (it) o = it;\n var i = 0;\n var F = function(){};\n return {\n s: F,\n n: function() {\n if (i >= o.length) return { done: true };\n return { done: false, value: o[i++] };\n },\n e: function(e) { throw e; },\n f: F,\n };\n }\n\n throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");\n }\n\n var normalCompletion = true, didErr = false, err;\n\n return {\n s: function() {\n it = it.call(o);\n },\n n: function() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function(e) {\n didErr = true;\n err = e;\n },\n f: function() {\n try {\n if (!normalCompletion && it.return != null) it.return();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n }\n'],['\n import unsupportedIterableToArray from "unsupportedIterableToArray";\n\n // s: start (create the iterator)\n // n: next\n // e: error (called whenever something throws)\n // f: finish (always called at the end)\n\n export default function _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];\n\n if (!it) {\n // Fallback for engines without symbol support\n if (\n Array.isArray(o) ||\n (it = unsupportedIterableToArray(o)) ||\n (allowArrayLike && o && typeof o.length === "number")\n ) {\n if (it) o = it;\n var i = 0;\n var F = function(){};\n return {\n s: F,\n n: function() {\n if (i >= o.length) return { done: true };\n return { done: false, value: o[i++] };\n },\n e: function(e) { throw e; },\n f: F,\n };\n }\n\n throw new TypeError("Invalid attempt to iterate non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");\n }\n\n var normalCompletion = true, didErr = false, err;\n\n return {\n s: function() {\n it = it.call(o);\n },\n n: function() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function(e) {\n didErr = true;\n err = e;\n },\n f: function() {\n try {\n if (!normalCompletion && it.return != null) it.return();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n }\n']))),eE.createForOfIteratorHelperLoose=tE("7.9.0")(Ab||(Ab=u(['\n import unsupportedIterableToArray from "unsupportedIterableToArray";\n\n export default function _createForOfIteratorHelperLoose(o, allowArrayLike) {\n var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];\n\n if (it) return (it = it.call(o)).next.bind(it);\n\n // Fallback for engines without symbol support\n if (\n Array.isArray(o) ||\n (it = unsupportedIterableToArray(o)) ||\n (allowArrayLike && o && typeof o.length === "number")\n ) {\n if (it) o = it;\n var i = 0;\n return function() {\n if (i >= o.length) return { done: true };\n return { done: false, value: o[i++] };\n }\n }\n\n throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");\n }\n'],['\n import unsupportedIterableToArray from "unsupportedIterableToArray";\n\n export default function _createForOfIteratorHelperLoose(o, allowArrayLike) {\n var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];\n\n if (it) return (it = it.call(o)).next.bind(it);\n\n // Fallback for engines without symbol support\n if (\n Array.isArray(o) ||\n (it = unsupportedIterableToArray(o)) ||\n (allowArrayLike && o && typeof o.length === "number")\n ) {\n if (it) o = it;\n var i = 0;\n return function() {\n if (i >= o.length) return { done: true };\n return { done: false, value: o[i++] };\n }\n }\n\n throw new TypeError("Invalid attempt to iterate non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");\n }\n']))),eE.skipFirstGeneratorNext=tE("7.0.0-beta.0")(wb||(wb=u(["\n export default function _skipFirstGeneratorNext(fn) {\n return function () {\n var it = fn.apply(this, arguments);\n it.next();\n return it;\n }\n }\n"]))),eE.toPrimitive=tE("7.1.5")(Cb||(Cb=u(['\n export default function _toPrimitive(\n input,\n hint /*: "default" | "string" | "number" | void */\n ) {\n if (typeof input !== "object" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || "default");\n if (typeof res !== "object") return res;\n throw new TypeError("@@toPrimitive must return a primitive value.");\n }\n return (hint === "string" ? String : Number)(input);\n }\n']))),eE.toPropertyKey=tE("7.1.5")(Sb||(Sb=u(['\n import toPrimitive from "toPrimitive";\n\n export default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, "string");\n return typeof key === "symbol" ? key : String(key);\n }\n']))),eE.initializerWarningHelper=tE("7.0.0-beta.0")(Tb||(Tb=u(["\n export default function _initializerWarningHelper(descriptor, context){\n throw new Error(\n 'Decorating class property failed. Please ensure that ' +\n 'proposal-class-properties is enabled and runs after the decorators transform.'\n );\n }\n"]))),eE.initializerDefineProperty=tE("7.0.0-beta.0")(jb||(jb=u(["\n export default function _initializerDefineProperty(target, property, descriptor, context){\n if (!descriptor) return;\n\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0,\n });\n }\n"]))),eE.applyDecoratedDescriptor=tE("7.0.0-beta.0")(Pb||(Pb=u(["\n export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context){\n var desc = {};\n Object.keys(descriptor).forEach(function(key){\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n if ('value' in desc || desc.initializer){\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function(desc, decorator){\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0){\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0){\n Object.defineProperty(target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n"]))),eE.classPrivateFieldLooseKey=tE("7.0.0-beta.0")(Ib||(Ib=u(['\n var id = 0;\n export default function _classPrivateFieldKey(name) {\n return "__private_" + (id++) + "_" + name;\n }\n']))),eE.classPrivateFieldLooseBase=tE("7.0.0-beta.0")(Fb||(Fb=u(['\n export default function _classPrivateFieldBase(receiver, privateKey) {\n if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {\n throw new TypeError("attempted to use private field on non-instance");\n }\n return receiver;\n }\n']))),eE.classPrivateFieldGet=tE("7.0.0-beta.0")(kb||(kb=u(['\n import classApplyDescriptorGet from "classApplyDescriptorGet";\n import classExtractFieldDescriptor from "classExtractFieldDescriptor";\n export default function _classPrivateFieldGet(receiver, privateMap) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get");\n return classApplyDescriptorGet(receiver, descriptor);\n }\n']))),eE.classPrivateFieldSet=tE("7.0.0-beta.0")(Ob||(Ob=u(['\n import classApplyDescriptorSet from "classApplyDescriptorSet";\n import classExtractFieldDescriptor from "classExtractFieldDescriptor";\n export default function _classPrivateFieldSet(receiver, privateMap, value) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");\n classApplyDescriptorSet(receiver, descriptor, value);\n return value;\n }\n']))),eE.classPrivateFieldDestructureSet=tE("7.4.4")(Rb||(Rb=u(['\n import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet";\n import classExtractFieldDescriptor from "classExtractFieldDescriptor";\n export default function _classPrivateFieldDestructureSet(receiver, privateMap) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");\n return classApplyDescriptorDestructureSet(receiver, descriptor);\n }\n']))),eE.classExtractFieldDescriptor=tE("7.13.10")(Nb||(Nb=u(['\n export default function _classExtractFieldDescriptor(receiver, privateMap, action) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to " + action + " private field on non-instance");\n }\n return privateMap.get(receiver);\n }\n']))),eE.classStaticPrivateFieldSpecGet=tE("7.0.2")(Bb||(Bb=u(['\n import classApplyDescriptorGet from "classApplyDescriptorGet";\n import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";\n import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";\n export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {\n classCheckPrivateStaticAccess(receiver, classConstructor);\n classCheckPrivateStaticFieldDescriptor(descriptor, "get");\n return classApplyDescriptorGet(receiver, descriptor);\n }\n']))),eE.classStaticPrivateFieldSpecSet=tE("7.0.2")(_b||(_b=u(['\n import classApplyDescriptorSet from "classApplyDescriptorSet";\n import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";\n import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";\n export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {\n classCheckPrivateStaticAccess(receiver, classConstructor);\n classCheckPrivateStaticFieldDescriptor(descriptor, "set");\n classApplyDescriptorSet(receiver, descriptor, value);\n return value;\n }\n']))),eE.classStaticPrivateMethodGet=tE("7.3.2")(Lb||(Lb=u(['\n import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";\n export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) {\n classCheckPrivateStaticAccess(receiver, classConstructor);\n return method;\n }\n']))),eE.classStaticPrivateMethodSet=tE("7.3.2")(Mb||(Mb=u(['\n export default function _classStaticPrivateMethodSet() {\n throw new TypeError("attempted to set read only static private field");\n }\n']))),eE.classApplyDescriptorGet=tE("7.13.10")(Ub||(Ub=u(["\n export default function _classApplyDescriptorGet(receiver, descriptor) {\n if (descriptor.get) {\n return descriptor.get.call(receiver);\n }\n return descriptor.value;\n }\n"]))),eE.classApplyDescriptorSet=tE("7.13.10")(Gb||(Gb=u(['\n export default function _classApplyDescriptorSet(receiver, descriptor, value) {\n if (descriptor.set) {\n descriptor.set.call(receiver, value);\n } else {\n if (!descriptor.writable) {\n // This should only throw in strict mode, but class bodies are\n // always strict and private fields can only be used inside\n // class bodies.\n throw new TypeError("attempted to set read only private field");\n }\n descriptor.value = value;\n }\n }\n']))),eE.classApplyDescriptorDestructureSet=tE("7.13.10")(Vb||(Vb=u(['\n export default function _classApplyDescriptorDestructureSet(receiver, descriptor) {\n if (descriptor.set) {\n if (!("__destrObj" in descriptor)) {\n descriptor.__destrObj = {\n set value(v) {\n descriptor.set.call(receiver, v)\n },\n };\n }\n return descriptor.__destrObj;\n } else {\n if (!descriptor.writable) {\n // This should only throw in strict mode, but class bodies are\n // always strict and private fields can only be used inside\n // class bodies.\n throw new TypeError("attempted to set read only private field");\n }\n\n return descriptor;\n }\n }\n']))),eE.classStaticPrivateFieldDestructureSet=tE("7.13.10")(Wb||(Wb=u(['\n import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet";\n import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";\n import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";\n export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {\n classCheckPrivateStaticAccess(receiver, classConstructor);\n classCheckPrivateStaticFieldDescriptor(descriptor, "set");\n return classApplyDescriptorDestructureSet(receiver, descriptor);\n }\n']))),eE.classCheckPrivateStaticAccess=tE("7.13.10")(Hb||(Hb=u(['\n export default function _classCheckPrivateStaticAccess(receiver, classConstructor) {\n if (receiver !== classConstructor) {\n throw new TypeError("Private static access of wrong provenance");\n }\n }\n']))),eE.classCheckPrivateStaticFieldDescriptor=tE("7.13.10")(Xb||(Xb=u(['\n export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {\n if (descriptor === undefined) {\n throw new TypeError("attempted to " + action + " private static field before its declaration");\n }\n }\n']))),eE.decorate=tE("7.1.5")(qb||(qb=u(['\n import toArray from "toArray";\n import toPropertyKey from "toPropertyKey";\n\n // These comments are stripped by @babel/template\n /*::\n type PropertyDescriptor =\n | {\n value: any,\n writable: boolean,\n configurable: boolean,\n enumerable: boolean,\n }\n | {\n get?: () => any,\n set?: (v: any) => void,\n configurable: boolean,\n enumerable: boolean,\n };\n\n type FieldDescriptor ={\n writable: boolean,\n configurable: boolean,\n enumerable: boolean,\n };\n\n type Placement = "static" | "prototype" | "own";\n type Key = string | symbol; // PrivateName is not supported yet.\n\n type ElementDescriptor =\n | {\n kind: "method",\n key: Key,\n placement: Placement,\n descriptor: PropertyDescriptor\n }\n | {\n kind: "field",\n key: Key,\n placement: Placement,\n descriptor: FieldDescriptor,\n initializer?: () => any,\n };\n\n // This is exposed to the user code\n type ElementObjectInput = ElementDescriptor & {\n [@@toStringTag]?: "Descriptor"\n };\n\n // This is exposed to the user code\n type ElementObjectOutput = ElementDescriptor & {\n [@@toStringTag]?: "Descriptor"\n extras?: ElementDescriptor[],\n finisher?: ClassFinisher,\n };\n\n // This is exposed to the user code\n type ClassObject = {\n [@@toStringTag]?: "Descriptor",\n kind: "class",\n elements: ElementDescriptor[],\n };\n\n type ElementDecorator = (descriptor: ElementObjectInput) => ?ElementObjectOutput;\n type ClassDecorator = (descriptor: ClassObject) => ?ClassObject;\n type ClassFinisher = <A, B>(cl: Class<A>) => Class<B>;\n\n // Only used by Babel in the transform output, not part of the spec.\n type ElementDefinition =\n | {\n kind: "method",\n value: any,\n key: Key,\n static?: boolean,\n decorators?: ElementDecorator[],\n }\n | {\n kind: "field",\n value: () => any,\n key: Key,\n static?: boolean,\n decorators?: ElementDecorator[],\n };\n\n declare function ClassFactory<C>(initialize: (instance: C) => void): {\n F: Class<C>,\n d: ElementDefinition[]\n }\n\n */\n\n /*::\n // Various combinations with/without extras and with one or many finishers\n\n type ElementFinisherExtras = {\n element: ElementDescriptor,\n finisher?: ClassFinisher,\n extras?: ElementDescriptor[],\n };\n\n type ElementFinishersExtras = {\n element: ElementDescriptor,\n finishers: ClassFinisher[],\n extras: ElementDescriptor[],\n };\n\n type ElementsFinisher = {\n elements: ElementDescriptor[],\n finisher?: ClassFinisher,\n };\n\n type ElementsFinishers = {\n elements: ElementDescriptor[],\n finishers: ClassFinisher[],\n };\n\n */\n\n /*::\n\n type Placements = {\n static: Key[],\n prototype: Key[],\n own: Key[],\n };\n\n */\n\n // ClassDefinitionEvaluation (Steps 26-*)\n export default function _decorate(\n decorators /*: ClassDecorator[] */,\n factory /*: ClassFactory */,\n superClass /*: ?Class<*> */,\n mixins /*: ?Array<Function> */,\n ) /*: Class<*> */ {\n var api = _getDecoratorsApi();\n if (mixins) {\n for (var i = 0; i < mixins.length; i++) {\n api = mixins[i](api);\n }\n }\n\n var r = factory(function initialize(O) {\n api.initializeInstanceElements(O, decorated.elements);\n }, superClass);\n var decorated = api.decorateClass(\n _coalesceClassElements(r.d.map(_createElementDescriptor)),\n decorators,\n );\n\n api.initializeClassElements(r.F, decorated.elements);\n\n return api.runClassFinishers(r.F, decorated.finishers);\n }\n\n function _getDecoratorsApi() {\n _getDecoratorsApi = function() {\n return api;\n };\n\n var api = {\n elementsDefinitionOrder: [["method"], ["field"]],\n\n // InitializeInstanceElements\n initializeInstanceElements: function(\n /*::<C>*/ O /*: C */,\n elements /*: ElementDescriptor[] */,\n ) {\n ["method", "field"].forEach(function(kind) {\n elements.forEach(function(element /*: ElementDescriptor */) {\n if (element.kind === kind && element.placement === "own") {\n this.defineClassElement(O, element);\n }\n }, this);\n }, this);\n },\n\n // InitializeClassElements\n initializeClassElements: function(\n /*::<C>*/ F /*: Class<C> */,\n elements /*: ElementDescriptor[] */,\n ) {\n var proto = F.prototype;\n\n ["method", "field"].forEach(function(kind) {\n elements.forEach(function(element /*: ElementDescriptor */) {\n var placement = element.placement;\n if (\n element.kind === kind &&\n (placement === "static" || placement === "prototype")\n ) {\n var receiver = placement === "static" ? F : proto;\n this.defineClassElement(receiver, element);\n }\n }, this);\n }, this);\n },\n\n // DefineClassElement\n defineClassElement: function(\n /*::<C>*/ receiver /*: C | Class<C> */,\n element /*: ElementDescriptor */,\n ) {\n var descriptor /*: PropertyDescriptor */ = element.descriptor;\n if (element.kind === "field") {\n var initializer = element.initializer;\n descriptor = {\n enumerable: descriptor.enumerable,\n writable: descriptor.writable,\n configurable: descriptor.configurable,\n value: initializer === void 0 ? void 0 : initializer.call(receiver),\n };\n }\n Object.defineProperty(receiver, element.key, descriptor);\n },\n\n // DecorateClass\n decorateClass: function(\n elements /*: ElementDescriptor[] */,\n decorators /*: ClassDecorator[] */,\n ) /*: ElementsFinishers */ {\n var newElements /*: ElementDescriptor[] */ = [];\n var finishers /*: ClassFinisher[] */ = [];\n var placements /*: Placements */ = {\n static: [],\n prototype: [],\n own: [],\n };\n\n elements.forEach(function(element /*: ElementDescriptor */) {\n this.addElementPlacement(element, placements);\n }, this);\n\n elements.forEach(function(element /*: ElementDescriptor */) {\n if (!_hasDecorators(element)) return newElements.push(element);\n\n var elementFinishersExtras /*: ElementFinishersExtras */ = this.decorateElement(\n element,\n placements,\n );\n newElements.push(elementFinishersExtras.element);\n newElements.push.apply(newElements, elementFinishersExtras.extras);\n finishers.push.apply(finishers, elementFinishersExtras.finishers);\n }, this);\n\n if (!decorators) {\n return { elements: newElements, finishers: finishers };\n }\n\n var result /*: ElementsFinishers */ = this.decorateConstructor(\n newElements,\n decorators,\n );\n finishers.push.apply(finishers, result.finishers);\n result.finishers = finishers;\n\n return result;\n },\n\n // AddElementPlacement\n addElementPlacement: function(\n element /*: ElementDescriptor */,\n placements /*: Placements */,\n silent /*: boolean */,\n ) {\n var keys = placements[element.placement];\n if (!silent && keys.indexOf(element.key) !== -1) {\n throw new TypeError("Duplicated element (" + element.key + ")");\n }\n keys.push(element.key);\n },\n\n // DecorateElement\n decorateElement: function(\n element /*: ElementDescriptor */,\n placements /*: Placements */,\n ) /*: ElementFinishersExtras */ {\n var extras /*: ElementDescriptor[] */ = [];\n var finishers /*: ClassFinisher[] */ = [];\n\n for (\n var decorators = element.decorators, i = decorators.length - 1;\n i >= 0;\n i--\n ) {\n // (inlined) RemoveElementPlacement\n var keys = placements[element.placement];\n keys.splice(keys.indexOf(element.key), 1);\n\n var elementObject /*: ElementObjectInput */ = this.fromElementDescriptor(\n element,\n );\n var elementFinisherExtras /*: ElementFinisherExtras */ = this.toElementFinisherExtras(\n (0, decorators[i])(elementObject) /*: ElementObjectOutput */ ||\n elementObject,\n );\n\n element = elementFinisherExtras.element;\n this.addElementPlacement(element, placements);\n\n if (elementFinisherExtras.finisher) {\n finishers.push(elementFinisherExtras.finisher);\n }\n\n var newExtras /*: ElementDescriptor[] | void */ =\n elementFinisherExtras.extras;\n if (newExtras) {\n for (var j = 0; j < newExtras.length; j++) {\n this.addElementPlacement(newExtras[j], placements);\n }\n extras.push.apply(extras, newExtras);\n }\n }\n\n return { element: element, finishers: finishers, extras: extras };\n },\n\n // DecorateConstructor\n decorateConstructor: function(\n elements /*: ElementDescriptor[] */,\n decorators /*: ClassDecorator[] */,\n ) /*: ElementsFinishers */ {\n var finishers /*: ClassFinisher[] */ = [];\n\n for (var i = decorators.length - 1; i >= 0; i--) {\n var obj /*: ClassObject */ = this.fromClassDescriptor(elements);\n var elementsAndFinisher /*: ElementsFinisher */ = this.toClassDescriptor(\n (0, decorators[i])(obj) /*: ClassObject */ || obj,\n );\n\n if (elementsAndFinisher.finisher !== undefined) {\n finishers.push(elementsAndFinisher.finisher);\n }\n\n if (elementsAndFinisher.elements !== undefined) {\n elements = elementsAndFinisher.elements;\n\n for (var j = 0; j < elements.length - 1; j++) {\n for (var k = j + 1; k < elements.length; k++) {\n if (\n elements[j].key === elements[k].key &&\n elements[j].placement === elements[k].placement\n ) {\n throw new TypeError(\n "Duplicated element (" + elements[j].key + ")",\n );\n }\n }\n }\n }\n }\n\n return { elements: elements, finishers: finishers };\n },\n\n // FromElementDescriptor\n fromElementDescriptor: function(\n element /*: ElementDescriptor */,\n ) /*: ElementObject */ {\n var obj /*: ElementObject */ = {\n kind: element.kind,\n key: element.key,\n placement: element.placement,\n descriptor: element.descriptor,\n };\n\n var desc = {\n value: "Descriptor",\n configurable: true,\n };\n Object.defineProperty(obj, Symbol.toStringTag, desc);\n\n if (element.kind === "field") obj.initializer = element.initializer;\n\n return obj;\n },\n\n // ToElementDescriptors\n toElementDescriptors: function(\n elementObjects /*: ElementObject[] */,\n ) /*: ElementDescriptor[] */ {\n if (elementObjects === undefined) return;\n return toArray(elementObjects).map(function(elementObject) {\n var element = this.toElementDescriptor(elementObject);\n this.disallowProperty(elementObject, "finisher", "An element descriptor");\n this.disallowProperty(elementObject, "extras", "An element descriptor");\n return element;\n }, this);\n },\n\n // ToElementDescriptor\n toElementDescriptor: function(\n elementObject /*: ElementObject */,\n ) /*: ElementDescriptor */ {\n var kind = String(elementObject.kind);\n if (kind !== "method" && kind !== "field") {\n throw new TypeError(\n \'An element descriptor\\\'s .kind property must be either "method" or\' +\n \' "field", but a decorator created an element descriptor with\' +\n \' .kind "\' +\n kind +\n \'"\',\n );\n }\n\n var key = toPropertyKey(elementObject.key);\n\n var placement = String(elementObject.placement);\n if (\n placement !== "static" &&\n placement !== "prototype" &&\n placement !== "own"\n ) {\n throw new TypeError(\n \'An element descriptor\\\'s .placement property must be one of "static",\' +\n \' "prototype" or "own", but a decorator created an element descriptor\' +\n \' with .placement "\' +\n placement +\n \'"\',\n );\n }\n\n var descriptor /*: PropertyDescriptor */ = elementObject.descriptor;\n\n this.disallowProperty(elementObject, "elements", "An element descriptor");\n\n var element /*: ElementDescriptor */ = {\n kind: kind,\n key: key,\n placement: placement,\n descriptor: Object.assign({}, descriptor),\n };\n\n if (kind !== "field") {\n this.disallowProperty(elementObject, "initializer", "A method descriptor");\n } else {\n this.disallowProperty(\n descriptor,\n "get",\n "The property descriptor of a field descriptor",\n );\n this.disallowProperty(\n descriptor,\n "set",\n "The property descriptor of a field descriptor",\n );\n this.disallowProperty(\n descriptor,\n "value",\n "The property descriptor of a field descriptor",\n );\n\n element.initializer = elementObject.initializer;\n }\n\n return element;\n },\n\n toElementFinisherExtras: function(\n elementObject /*: ElementObject */,\n ) /*: ElementFinisherExtras */ {\n var element /*: ElementDescriptor */ = this.toElementDescriptor(\n elementObject,\n );\n var finisher /*: ClassFinisher */ = _optionalCallableProperty(\n elementObject,\n "finisher",\n );\n var extras /*: ElementDescriptors[] */ = this.toElementDescriptors(\n elementObject.extras,\n );\n\n return { element: element, finisher: finisher, extras: extras };\n },\n\n // FromClassDescriptor\n fromClassDescriptor: function(\n elements /*: ElementDescriptor[] */,\n ) /*: ClassObject */ {\n var obj = {\n kind: "class",\n elements: elements.map(this.fromElementDescriptor, this),\n };\n\n var desc = { value: "Descriptor", configurable: true };\n Object.defineProperty(obj, Symbol.toStringTag, desc);\n\n return obj;\n },\n\n // ToClassDescriptor\n toClassDescriptor: function(\n obj /*: ClassObject */,\n ) /*: ElementsFinisher */ {\n var kind = String(obj.kind);\n if (kind !== "class") {\n throw new TypeError(\n \'A class descriptor\\\'s .kind property must be "class", but a decorator\' +\n \' created a class descriptor with .kind "\' +\n kind +\n \'"\',\n );\n }\n\n this.disallowProperty(obj, "key", "A class descriptor");\n this.disallowProperty(obj, "placement", "A class descriptor");\n this.disallowProperty(obj, "descriptor", "A class descriptor");\n this.disallowProperty(obj, "initializer", "A class descriptor");\n this.disallowProperty(obj, "extras", "A class descriptor");\n\n var finisher = _optionalCallableProperty(obj, "finisher");\n var elements = this.toElementDescriptors(obj.elements);\n\n return { elements: elements, finisher: finisher };\n },\n\n // RunClassFinishers\n runClassFinishers: function(\n constructor /*: Class<*> */,\n finishers /*: ClassFinisher[] */,\n ) /*: Class<*> */ {\n for (var i = 0; i < finishers.length; i++) {\n var newConstructor /*: ?Class<*> */ = (0, finishers[i])(constructor);\n if (newConstructor !== undefined) {\n // NOTE: This should check if IsConstructor(newConstructor) is false.\n if (typeof newConstructor !== "function") {\n throw new TypeError("Finishers must return a constructor.");\n }\n constructor = newConstructor;\n }\n }\n return constructor;\n },\n\n disallowProperty: function(obj, name, objectType) {\n if (obj[name] !== undefined) {\n throw new TypeError(objectType + " can\'t have a ." + name + " property.");\n }\n }\n };\n\n return api;\n }\n\n // ClassElementEvaluation\n function _createElementDescriptor(\n def /*: ElementDefinition */,\n ) /*: ElementDescriptor */ {\n var key = toPropertyKey(def.key);\n\n var descriptor /*: PropertyDescriptor */;\n if (def.kind === "method") {\n descriptor = {\n value: def.value,\n writable: true,\n configurable: true,\n enumerable: false,\n };\n } else if (def.kind === "get") {\n descriptor = { get: def.value, configurable: true, enumerable: false };\n } else if (def.kind === "set") {\n descriptor = { set: def.value, configurable: true, enumerable: false };\n } else if (def.kind === "field") {\n descriptor = { configurable: true, writable: true, enumerable: true };\n }\n\n var element /*: ElementDescriptor */ = {\n kind: def.kind === "field" ? "field" : "method",\n key: key,\n placement: def.static\n ? "static"\n : def.kind === "field"\n ? "own"\n : "prototype",\n descriptor: descriptor,\n };\n if (def.decorators) element.decorators = def.decorators;\n if (def.kind === "field") element.initializer = def.value;\n\n return element;\n }\n\n // CoalesceGetterSetter\n function _coalesceGetterSetter(\n element /*: ElementDescriptor */,\n other /*: ElementDescriptor */,\n ) {\n if (element.descriptor.get !== undefined) {\n other.descriptor.get = element.descriptor.get;\n } else {\n other.descriptor.set = element.descriptor.set;\n }\n }\n\n // CoalesceClassElements\n function _coalesceClassElements(\n elements /*: ElementDescriptor[] */,\n ) /*: ElementDescriptor[] */ {\n var newElements /*: ElementDescriptor[] */ = [];\n\n var isSameElement = function(\n other /*: ElementDescriptor */,\n ) /*: boolean */ {\n return (\n other.kind === "method" &&\n other.key === element.key &&\n other.placement === element.placement\n );\n };\n\n for (var i = 0; i < elements.length; i++) {\n var element /*: ElementDescriptor */ = elements[i];\n var other /*: ElementDescriptor */;\n\n if (\n element.kind === "method" &&\n (other = newElements.find(isSameElement))\n ) {\n if (\n _isDataDescriptor(element.descriptor) ||\n _isDataDescriptor(other.descriptor)\n ) {\n if (_hasDecorators(element) || _hasDecorators(other)) {\n throw new ReferenceError(\n "Duplicated methods (" + element.key + ") can\'t be decorated.",\n );\n }\n other.descriptor = element.descriptor;\n } else {\n if (_hasDecorators(element)) {\n if (_hasDecorators(other)) {\n throw new ReferenceError(\n "Decorators can\'t be placed on different accessors with for " +\n "the same property (" +\n element.key +\n ").",\n );\n }\n other.decorators = element.decorators;\n }\n _coalesceGetterSetter(element, other);\n }\n } else {\n newElements.push(element);\n }\n }\n\n return newElements;\n }\n\n function _hasDecorators(element /*: ElementDescriptor */) /*: boolean */ {\n return element.decorators && element.decorators.length;\n }\n\n function _isDataDescriptor(desc /*: PropertyDescriptor */) /*: boolean */ {\n return (\n desc !== undefined &&\n !(desc.value === undefined && desc.writable === undefined)\n );\n }\n\n function _optionalCallableProperty /*::<T>*/(\n obj /*: T */,\n name /*: $Keys<T> */,\n ) /*: ?Function */ {\n var value = obj[name];\n if (value !== undefined && typeof value !== "function") {\n throw new TypeError("Expected \'" + name + "\' to be a function");\n }\n return value;\n }\n\n'],['\n import toArray from "toArray";\n import toPropertyKey from "toPropertyKey";\n\n // These comments are stripped by @babel/template\n /*::\n type PropertyDescriptor =\n | {\n value: any,\n writable: boolean,\n configurable: boolean,\n enumerable: boolean,\n }\n | {\n get?: () => any,\n set?: (v: any) => void,\n configurable: boolean,\n enumerable: boolean,\n };\n\n type FieldDescriptor ={\n writable: boolean,\n configurable: boolean,\n enumerable: boolean,\n };\n\n type Placement = "static" | "prototype" | "own";\n type Key = string | symbol; // PrivateName is not supported yet.\n\n type ElementDescriptor =\n | {\n kind: "method",\n key: Key,\n placement: Placement,\n descriptor: PropertyDescriptor\n }\n | {\n kind: "field",\n key: Key,\n placement: Placement,\n descriptor: FieldDescriptor,\n initializer?: () => any,\n };\n\n // This is exposed to the user code\n type ElementObjectInput = ElementDescriptor & {\n [@@toStringTag]?: "Descriptor"\n };\n\n // This is exposed to the user code\n type ElementObjectOutput = ElementDescriptor & {\n [@@toStringTag]?: "Descriptor"\n extras?: ElementDescriptor[],\n finisher?: ClassFinisher,\n };\n\n // This is exposed to the user code\n type ClassObject = {\n [@@toStringTag]?: "Descriptor",\n kind: "class",\n elements: ElementDescriptor[],\n };\n\n type ElementDecorator = (descriptor: ElementObjectInput) => ?ElementObjectOutput;\n type ClassDecorator = (descriptor: ClassObject) => ?ClassObject;\n type ClassFinisher = <A, B>(cl: Class<A>) => Class<B>;\n\n // Only used by Babel in the transform output, not part of the spec.\n type ElementDefinition =\n | {\n kind: "method",\n value: any,\n key: Key,\n static?: boolean,\n decorators?: ElementDecorator[],\n }\n | {\n kind: "field",\n value: () => any,\n key: Key,\n static?: boolean,\n decorators?: ElementDecorator[],\n };\n\n declare function ClassFactory<C>(initialize: (instance: C) => void): {\n F: Class<C>,\n d: ElementDefinition[]\n }\n\n */\n\n /*::\n // Various combinations with/without extras and with one or many finishers\n\n type ElementFinisherExtras = {\n element: ElementDescriptor,\n finisher?: ClassFinisher,\n extras?: ElementDescriptor[],\n };\n\n type ElementFinishersExtras = {\n element: ElementDescriptor,\n finishers: ClassFinisher[],\n extras: ElementDescriptor[],\n };\n\n type ElementsFinisher = {\n elements: ElementDescriptor[],\n finisher?: ClassFinisher,\n };\n\n type ElementsFinishers = {\n elements: ElementDescriptor[],\n finishers: ClassFinisher[],\n };\n\n */\n\n /*::\n\n type Placements = {\n static: Key[],\n prototype: Key[],\n own: Key[],\n };\n\n */\n\n // ClassDefinitionEvaluation (Steps 26-*)\n export default function _decorate(\n decorators /*: ClassDecorator[] */,\n factory /*: ClassFactory */,\n superClass /*: ?Class<*> */,\n mixins /*: ?Array<Function> */,\n ) /*: Class<*> */ {\n var api = _getDecoratorsApi();\n if (mixins) {\n for (var i = 0; i < mixins.length; i++) {\n api = mixins[i](api);\n }\n }\n\n var r = factory(function initialize(O) {\n api.initializeInstanceElements(O, decorated.elements);\n }, superClass);\n var decorated = api.decorateClass(\n _coalesceClassElements(r.d.map(_createElementDescriptor)),\n decorators,\n );\n\n api.initializeClassElements(r.F, decorated.elements);\n\n return api.runClassFinishers(r.F, decorated.finishers);\n }\n\n function _getDecoratorsApi() {\n _getDecoratorsApi = function() {\n return api;\n };\n\n var api = {\n elementsDefinitionOrder: [["method"], ["field"]],\n\n // InitializeInstanceElements\n initializeInstanceElements: function(\n /*::<C>*/ O /*: C */,\n elements /*: ElementDescriptor[] */,\n ) {\n ["method", "field"].forEach(function(kind) {\n elements.forEach(function(element /*: ElementDescriptor */) {\n if (element.kind === kind && element.placement === "own") {\n this.defineClassElement(O, element);\n }\n }, this);\n }, this);\n },\n\n // InitializeClassElements\n initializeClassElements: function(\n /*::<C>*/ F /*: Class<C> */,\n elements /*: ElementDescriptor[] */,\n ) {\n var proto = F.prototype;\n\n ["method", "field"].forEach(function(kind) {\n elements.forEach(function(element /*: ElementDescriptor */) {\n var placement = element.placement;\n if (\n element.kind === kind &&\n (placement === "static" || placement === "prototype")\n ) {\n var receiver = placement === "static" ? F : proto;\n this.defineClassElement(receiver, element);\n }\n }, this);\n }, this);\n },\n\n // DefineClassElement\n defineClassElement: function(\n /*::<C>*/ receiver /*: C | Class<C> */,\n element /*: ElementDescriptor */,\n ) {\n var descriptor /*: PropertyDescriptor */ = element.descriptor;\n if (element.kind === "field") {\n var initializer = element.initializer;\n descriptor = {\n enumerable: descriptor.enumerable,\n writable: descriptor.writable,\n configurable: descriptor.configurable,\n value: initializer === void 0 ? void 0 : initializer.call(receiver),\n };\n }\n Object.defineProperty(receiver, element.key, descriptor);\n },\n\n // DecorateClass\n decorateClass: function(\n elements /*: ElementDescriptor[] */,\n decorators /*: ClassDecorator[] */,\n ) /*: ElementsFinishers */ {\n var newElements /*: ElementDescriptor[] */ = [];\n var finishers /*: ClassFinisher[] */ = [];\n var placements /*: Placements */ = {\n static: [],\n prototype: [],\n own: [],\n };\n\n elements.forEach(function(element /*: ElementDescriptor */) {\n this.addElementPlacement(element, placements);\n }, this);\n\n elements.forEach(function(element /*: ElementDescriptor */) {\n if (!_hasDecorators(element)) return newElements.push(element);\n\n var elementFinishersExtras /*: ElementFinishersExtras */ = this.decorateElement(\n element,\n placements,\n );\n newElements.push(elementFinishersExtras.element);\n newElements.push.apply(newElements, elementFinishersExtras.extras);\n finishers.push.apply(finishers, elementFinishersExtras.finishers);\n }, this);\n\n if (!decorators) {\n return { elements: newElements, finishers: finishers };\n }\n\n var result /*: ElementsFinishers */ = this.decorateConstructor(\n newElements,\n decorators,\n );\n finishers.push.apply(finishers, result.finishers);\n result.finishers = finishers;\n\n return result;\n },\n\n // AddElementPlacement\n addElementPlacement: function(\n element /*: ElementDescriptor */,\n placements /*: Placements */,\n silent /*: boolean */,\n ) {\n var keys = placements[element.placement];\n if (!silent && keys.indexOf(element.key) !== -1) {\n throw new TypeError("Duplicated element (" + element.key + ")");\n }\n keys.push(element.key);\n },\n\n // DecorateElement\n decorateElement: function(\n element /*: ElementDescriptor */,\n placements /*: Placements */,\n ) /*: ElementFinishersExtras */ {\n var extras /*: ElementDescriptor[] */ = [];\n var finishers /*: ClassFinisher[] */ = [];\n\n for (\n var decorators = element.decorators, i = decorators.length - 1;\n i >= 0;\n i--\n ) {\n // (inlined) RemoveElementPlacement\n var keys = placements[element.placement];\n keys.splice(keys.indexOf(element.key), 1);\n\n var elementObject /*: ElementObjectInput */ = this.fromElementDescriptor(\n element,\n );\n var elementFinisherExtras /*: ElementFinisherExtras */ = this.toElementFinisherExtras(\n (0, decorators[i])(elementObject) /*: ElementObjectOutput */ ||\n elementObject,\n );\n\n element = elementFinisherExtras.element;\n this.addElementPlacement(element, placements);\n\n if (elementFinisherExtras.finisher) {\n finishers.push(elementFinisherExtras.finisher);\n }\n\n var newExtras /*: ElementDescriptor[] | void */ =\n elementFinisherExtras.extras;\n if (newExtras) {\n for (var j = 0; j < newExtras.length; j++) {\n this.addElementPlacement(newExtras[j], placements);\n }\n extras.push.apply(extras, newExtras);\n }\n }\n\n return { element: element, finishers: finishers, extras: extras };\n },\n\n // DecorateConstructor\n decorateConstructor: function(\n elements /*: ElementDescriptor[] */,\n decorators /*: ClassDecorator[] */,\n ) /*: ElementsFinishers */ {\n var finishers /*: ClassFinisher[] */ = [];\n\n for (var i = decorators.length - 1; i >= 0; i--) {\n var obj /*: ClassObject */ = this.fromClassDescriptor(elements);\n var elementsAndFinisher /*: ElementsFinisher */ = this.toClassDescriptor(\n (0, decorators[i])(obj) /*: ClassObject */ || obj,\n );\n\n if (elementsAndFinisher.finisher !== undefined) {\n finishers.push(elementsAndFinisher.finisher);\n }\n\n if (elementsAndFinisher.elements !== undefined) {\n elements = elementsAndFinisher.elements;\n\n for (var j = 0; j < elements.length - 1; j++) {\n for (var k = j + 1; k < elements.length; k++) {\n if (\n elements[j].key === elements[k].key &&\n elements[j].placement === elements[k].placement\n ) {\n throw new TypeError(\n "Duplicated element (" + elements[j].key + ")",\n );\n }\n }\n }\n }\n }\n\n return { elements: elements, finishers: finishers };\n },\n\n // FromElementDescriptor\n fromElementDescriptor: function(\n element /*: ElementDescriptor */,\n ) /*: ElementObject */ {\n var obj /*: ElementObject */ = {\n kind: element.kind,\n key: element.key,\n placement: element.placement,\n descriptor: element.descriptor,\n };\n\n var desc = {\n value: "Descriptor",\n configurable: true,\n };\n Object.defineProperty(obj, Symbol.toStringTag, desc);\n\n if (element.kind === "field") obj.initializer = element.initializer;\n\n return obj;\n },\n\n // ToElementDescriptors\n toElementDescriptors: function(\n elementObjects /*: ElementObject[] */,\n ) /*: ElementDescriptor[] */ {\n if (elementObjects === undefined) return;\n return toArray(elementObjects).map(function(elementObject) {\n var element = this.toElementDescriptor(elementObject);\n this.disallowProperty(elementObject, "finisher", "An element descriptor");\n this.disallowProperty(elementObject, "extras", "An element descriptor");\n return element;\n }, this);\n },\n\n // ToElementDescriptor\n toElementDescriptor: function(\n elementObject /*: ElementObject */,\n ) /*: ElementDescriptor */ {\n var kind = String(elementObject.kind);\n if (kind !== "method" && kind !== "field") {\n throw new TypeError(\n \'An element descriptor\\\\\'s .kind property must be either "method" or\' +\n \' "field", but a decorator created an element descriptor with\' +\n \' .kind "\' +\n kind +\n \'"\',\n );\n }\n\n var key = toPropertyKey(elementObject.key);\n\n var placement = String(elementObject.placement);\n if (\n placement !== "static" &&\n placement !== "prototype" &&\n placement !== "own"\n ) {\n throw new TypeError(\n \'An element descriptor\\\\\'s .placement property must be one of "static",\' +\n \' "prototype" or "own", but a decorator created an element descriptor\' +\n \' with .placement "\' +\n placement +\n \'"\',\n );\n }\n\n var descriptor /*: PropertyDescriptor */ = elementObject.descriptor;\n\n this.disallowProperty(elementObject, "elements", "An element descriptor");\n\n var element /*: ElementDescriptor */ = {\n kind: kind,\n key: key,\n placement: placement,\n descriptor: Object.assign({}, descriptor),\n };\n\n if (kind !== "field") {\n this.disallowProperty(elementObject, "initializer", "A method descriptor");\n } else {\n this.disallowProperty(\n descriptor,\n "get",\n "The property descriptor of a field descriptor",\n );\n this.disallowProperty(\n descriptor,\n "set",\n "The property descriptor of a field descriptor",\n );\n this.disallowProperty(\n descriptor,\n "value",\n "The property descriptor of a field descriptor",\n );\n\n element.initializer = elementObject.initializer;\n }\n\n return element;\n },\n\n toElementFinisherExtras: function(\n elementObject /*: ElementObject */,\n ) /*: ElementFinisherExtras */ {\n var element /*: ElementDescriptor */ = this.toElementDescriptor(\n elementObject,\n );\n var finisher /*: ClassFinisher */ = _optionalCallableProperty(\n elementObject,\n "finisher",\n );\n var extras /*: ElementDescriptors[] */ = this.toElementDescriptors(\n elementObject.extras,\n );\n\n return { element: element, finisher: finisher, extras: extras };\n },\n\n // FromClassDescriptor\n fromClassDescriptor: function(\n elements /*: ElementDescriptor[] */,\n ) /*: ClassObject */ {\n var obj = {\n kind: "class",\n elements: elements.map(this.fromElementDescriptor, this),\n };\n\n var desc = { value: "Descriptor", configurable: true };\n Object.defineProperty(obj, Symbol.toStringTag, desc);\n\n return obj;\n },\n\n // ToClassDescriptor\n toClassDescriptor: function(\n obj /*: ClassObject */,\n ) /*: ElementsFinisher */ {\n var kind = String(obj.kind);\n if (kind !== "class") {\n throw new TypeError(\n \'A class descriptor\\\\\'s .kind property must be "class", but a decorator\' +\n \' created a class descriptor with .kind "\' +\n kind +\n \'"\',\n );\n }\n\n this.disallowProperty(obj, "key", "A class descriptor");\n this.disallowProperty(obj, "placement", "A class descriptor");\n this.disallowProperty(obj, "descriptor", "A class descriptor");\n this.disallowProperty(obj, "initializer", "A class descriptor");\n this.disallowProperty(obj, "extras", "A class descriptor");\n\n var finisher = _optionalCallableProperty(obj, "finisher");\n var elements = this.toElementDescriptors(obj.elements);\n\n return { elements: elements, finisher: finisher };\n },\n\n // RunClassFinishers\n runClassFinishers: function(\n constructor /*: Class<*> */,\n finishers /*: ClassFinisher[] */,\n ) /*: Class<*> */ {\n for (var i = 0; i < finishers.length; i++) {\n var newConstructor /*: ?Class<*> */ = (0, finishers[i])(constructor);\n if (newConstructor !== undefined) {\n // NOTE: This should check if IsConstructor(newConstructor) is false.\n if (typeof newConstructor !== "function") {\n throw new TypeError("Finishers must return a constructor.");\n }\n constructor = newConstructor;\n }\n }\n return constructor;\n },\n\n disallowProperty: function(obj, name, objectType) {\n if (obj[name] !== undefined) {\n throw new TypeError(objectType + " can\'t have a ." + name + " property.");\n }\n }\n };\n\n return api;\n }\n\n // ClassElementEvaluation\n function _createElementDescriptor(\n def /*: ElementDefinition */,\n ) /*: ElementDescriptor */ {\n var key = toPropertyKey(def.key);\n\n var descriptor /*: PropertyDescriptor */;\n if (def.kind === "method") {\n descriptor = {\n value: def.value,\n writable: true,\n configurable: true,\n enumerable: false,\n };\n } else if (def.kind === "get") {\n descriptor = { get: def.value, configurable: true, enumerable: false };\n } else if (def.kind === "set") {\n descriptor = { set: def.value, configurable: true, enumerable: false };\n } else if (def.kind === "field") {\n descriptor = { configurable: true, writable: true, enumerable: true };\n }\n\n var element /*: ElementDescriptor */ = {\n kind: def.kind === "field" ? "field" : "method",\n key: key,\n placement: def.static\n ? "static"\n : def.kind === "field"\n ? "own"\n : "prototype",\n descriptor: descriptor,\n };\n if (def.decorators) element.decorators = def.decorators;\n if (def.kind === "field") element.initializer = def.value;\n\n return element;\n }\n\n // CoalesceGetterSetter\n function _coalesceGetterSetter(\n element /*: ElementDescriptor */,\n other /*: ElementDescriptor */,\n ) {\n if (element.descriptor.get !== undefined) {\n other.descriptor.get = element.descriptor.get;\n } else {\n other.descriptor.set = element.descriptor.set;\n }\n }\n\n // CoalesceClassElements\n function _coalesceClassElements(\n elements /*: ElementDescriptor[] */,\n ) /*: ElementDescriptor[] */ {\n var newElements /*: ElementDescriptor[] */ = [];\n\n var isSameElement = function(\n other /*: ElementDescriptor */,\n ) /*: boolean */ {\n return (\n other.kind === "method" &&\n other.key === element.key &&\n other.placement === element.placement\n );\n };\n\n for (var i = 0; i < elements.length; i++) {\n var element /*: ElementDescriptor */ = elements[i];\n var other /*: ElementDescriptor */;\n\n if (\n element.kind === "method" &&\n (other = newElements.find(isSameElement))\n ) {\n if (\n _isDataDescriptor(element.descriptor) ||\n _isDataDescriptor(other.descriptor)\n ) {\n if (_hasDecorators(element) || _hasDecorators(other)) {\n throw new ReferenceError(\n "Duplicated methods (" + element.key + ") can\'t be decorated.",\n );\n }\n other.descriptor = element.descriptor;\n } else {\n if (_hasDecorators(element)) {\n if (_hasDecorators(other)) {\n throw new ReferenceError(\n "Decorators can\'t be placed on different accessors with for " +\n "the same property (" +\n element.key +\n ").",\n );\n }\n other.decorators = element.decorators;\n }\n _coalesceGetterSetter(element, other);\n }\n } else {\n newElements.push(element);\n }\n }\n\n return newElements;\n }\n\n function _hasDecorators(element /*: ElementDescriptor */) /*: boolean */ {\n return element.decorators && element.decorators.length;\n }\n\n function _isDataDescriptor(desc /*: PropertyDescriptor */) /*: boolean */ {\n return (\n desc !== undefined &&\n !(desc.value === undefined && desc.writable === undefined)\n );\n }\n\n function _optionalCallableProperty /*::<T>*/(\n obj /*: T */,\n name /*: $Keys<T> */,\n ) /*: ?Function */ {\n var value = obj[name];\n if (value !== undefined && typeof value !== "function") {\n throw new TypeError("Expected \'" + name + "\' to be a function");\n }\n return value;\n }\n\n']))),eE.classPrivateMethodGet=tE("7.1.6")($b||($b=u(['\n export default function _classPrivateMethodGet(receiver, privateSet, fn) {\n if (!privateSet.has(receiver)) {\n throw new TypeError("attempted to get private field on non-instance");\n }\n return fn;\n }\n']))),eE.classPrivateMethodSet=tE("7.1.6")(Kb||(Kb=u(['\n export default function _classPrivateMethodSet() {\n throw new TypeError("attempted to reassign private method");\n }\n '])));var nE=void 0;var sE=Object.create(null);function aE(e){if(!sE[e]){var t=eE[e];if(!t)throw Object.assign(new ReferenceError("Unknown helper "+e),{code:"BABEL_HELPER_UNKNOWN",helper:e});var r=function(){var r={ast:gs(t.ast())};return nE?new nE({filename:"babel-helper://"+e},r):r},n=function(e){var t,r,n=new Set,s=new Set,a=new Map,i=[],o=[],u=[],l={ImportDeclaration:function(e){var t=e.node.source.value;if(!eE[t])throw e.buildCodeFrameError("Unknown helper "+t);if(1!==e.get("specifiers").length||!e.get("specifiers.0").isImportDefaultSpecifier())throw e.buildCodeFrameError("Helpers can only import a default value");var r=e.node.specifiers[0].local;a.set(r,t),o.push(rE(e))},ExportDefaultDeclaration:function(e){var n=e.get("declaration");if(n.isFunctionDeclaration()){if(!n.node.id)throw n.buildCodeFrameError("Helpers should give names to their exported func declaration");t=n.node.id.name}r=rE(e)},ExportAllDeclaration:function(e){throw e.buildCodeFrameError("Helpers can only export default")},ExportNamedDeclaration:function(e){throw e.buildCodeFrameError("Helpers can only export default")},Statement:function(e){e.isModuleDeclaration()||e.skip()}},c={Program:function(e){var r=e.scope.getAllBindings();Object.keys(r).forEach((function(e){e!==t&&(a.has(r[e].identifier)||s.add(e))}))},ReferencedIdentifier:function(e){var t=e.node.name,r=e.scope.getBinding(t,!0);r?a.has(r.identifier)&&u.push(rE(e)):n.add(t)},AssignmentExpression:function(e){var r=e.get("left");if(t in r.getBindingIdentifiers()){if(!r.isIdentifier())throw r.buildCodeFrameError("Only simple assignments to exports are allowed in helpers");var n=e.scope.getBinding(t);null!=n&&n.scope.path.isProgram()&&i.push(rE(e))}}};if(gv(e.ast,l,e.scope),gv(e.ast,c,e.scope),!r)throw new Error("Helpers must default-export something.");return i.reverse(),{globals:Array.from(n),localBindingNames:Array.from(s),dependencies:a,exportBindingAssignments:i,exportPath:r,exportName:t,importBindingsReferences:u,importPaths:o}}(r());sE[e]={build:function(e,t,s){var a=r();return function(e,t,r,n,s){if(n&&!r)throw new Error("Unexpected local bindings for module-based helpers.");if(r){var a=t.localBindingNames,i=t.dependencies,o=t.exportBindingAssignments,u=t.exportPath,l=t.exportName,c=t.importBindingsReferences,p=t.importPaths,d={};i.forEach((function(e,t){d[t.name]="function"==typeof s&&s(e)||t}));var h={},m=new Set(n||[]);a.forEach((function(e){for(var t=e;m.has(t);)t="_"+t;t!==e&&(h[e]=t)})),"Identifier"===r.type&&l!==r.name&&(h[l]=r.name);var y={Program:function(e){var t=e.get(u),n=p.map((function(t){return e.get(t)})),s=c.map((function(t){return e.get(t)})),a=t.get("declaration");if("Identifier"===r.type)a.isFunctionDeclaration()?t.replaceWith(a):t.replaceWith(Ks("var",[zs(r,a.node)]));else{if("MemberExpression"!==r.type)throw new Error("Unexpected helper format.");a.isFunctionDeclaration()?(o.forEach((function(t){var n=e.get(t);n.replaceWith(rs("=",r,n.node))})),t.replaceWith(a),e.pushContainer("body",ys(rs("=",r,Ds(l))))):t.replaceWith(ys(rs("=",r,a.node)))}Object.keys(h).forEach((function(t){e.scope.rename(t,h[t])}));for(var i,m=f(n);!(i=m()).done;)i.value.remove();for(var y,g=f(s);!(y=g()).done;){var v=y.value,b=Ju(d[v.node.name]);v.replaceWith(b)}e.stop()}};gv(e.ast,y,e.scope)}}(a,n,t,s,e),{nodes:a.ast.program.body,globals:n.globals}},minVersion:function(){return t.minVersion},dependencies:n.dependencies}}return sE[e]}function iE(e,t,r,n){return aE(e).build(t,r,n)}function oE(e,t){nE||(nE=t),aE(e)}var uE=Object.keys(eE).map((function(e){return e.replace(/^_/,"")})).filter((function(e){return"__esModule"!==e})),lE=Object.getOwnPropertySymbols,cE=Object.prototype.hasOwnProperty,pE=Object.prototype.propertyIsEnumerable; +/* + object-assign + (c) Sindre Sorhus + @license MIT + */function dE(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var fE=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,s=dE(e),a=1;a<arguments.length;a++){for(var i in r=Object(arguments[a]))cE.call(r,i)&&(s[i]=r[i]);if(lE){n=lE(r);for(var o=0;o<n.length;o++)pE.call(r,n[o])&&(s[n[o]]=r[n[o]])}}return s},hE=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8},mE=zt((function(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}),"/$$rollup_base$$/node_modules/util/node_modules/inherits"),yE=zt((function(e,t){var r=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var s=arguments,i=s.length,o=String(e).replace(r,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(s[n++]);case"%d":return Number(s[n++]);case"%j":try{return JSON.stringify(s[n++])}catch(e){return"[Circular]"}default:return e}})),u=s[n];n<i;u=s[++n])f(u)||!v(u)?o+=" "+u:o+=" "+a(u);return o},t.deprecate=function(e,r){if(y($t.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===ar.noDeprecation)return e;var n=!1;return function(){if(!n){if(ar.throwDeprecation)throw new Error(r);ar.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var n,s={};function a(e,r){var n={seen:[],stylize:o};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&t._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=i),u(n,e,n.depth)}function i(e,t){var r=a.styles[t];return r?"\x1b["+a.colors[r][0]+"m"+e+"\x1b["+a.colors[r][1]+"m":e}function o(e,t){return e}function u(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var s=r.inspect(n,e);return m(s)||(s=u(e,s,n)),s}var a=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(h(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(f(t))return e.stylize("null","null")}(e,r);if(a)return a;var i=Object.keys(r),o=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),E(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return l(r);if(0===i.length){if(x(r)){var v=r.name?": "+r.name:"";return e.stylize("[Function"+v+"]","special")}if(g(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return l(r)}var D,A="",w=!1,C=["{","}"];(p(r)&&(w=!0,C=["[","]"]),x(r))&&(A=" [Function"+(r.name?": "+r.name:"")+"]");return g(r)&&(A=" "+RegExp.prototype.toString.call(r)),b(r)&&(A=" "+Date.prototype.toUTCString.call(r)),E(r)&&(A=" "+l(r)),0!==i.length||w&&0!=r.length?n<0?g(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),D=w?function(e,t,r,n,s){for(var a=[],i=0,o=t.length;i<o;++i)S(t,String(i))?a.push(c(e,t,r,n,String(i),!0)):a.push("");return s.forEach((function(s){s.match(/^\d+$/)||a.push(c(e,t,r,n,s,!0))})),a}(e,r,n,o,i):i.map((function(t){return c(e,r,n,o,t,w)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(D,A,C)):C[0]+A+C[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function c(e,t,r,n,s,a){var i,o,l;if((l=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?o=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(o=e.stylize("[Setter]","special")),S(n,s)||(i="["+s+"]"),o||(e.seen.indexOf(l.value)<0?(o=f(r)?u(e,l.value,null):u(e,l.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n")):o=e.stylize("[Circular]","special")),y(i)){if(a&&s.match(/^\d+$/))return o;(i=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+o}function p(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function f(e){return null===e}function h(e){return"number"==typeof e}function m(e){return"string"==typeof e}function y(e){return void 0===e}function g(e){return v(e)&&"[object RegExp]"===D(e)}function v(e){return"object"==typeof e&&null!==e}function b(e){return v(e)&&"[object Date]"===D(e)}function E(e){return v(e)&&("[object Error]"===D(e)||e instanceof Error)}function x(e){return"function"==typeof e}function D(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(n)&&(n=ar.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(n)){var r=ar.pid;s[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=d,t.isNull=f,t.isNullOrUndefined=function(e){return null==e},t.isNumber=h,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=g,t.isObject=v,t.isDate=b,t.isError=E,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=hE;var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":");return[e.getDate(),w[e.getMonth()],t].join(" ")}function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=mE,t._extend=function(e,t){if(!t||!v(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}),"/$$rollup_base$$/node_modules/util"),gE=zt((function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> + * @license MIT + */ +function t(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,s=0,a=Math.min(r,n);s<a;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0}function r(e){return $t.Buffer&&"function"==typeof $t.Buffer.isBuffer?$t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var n=Object.prototype.hasOwnProperty,s=Array.prototype.slice,a="foo"===function(){}.name;function i(e){return Object.prototype.toString.call(e)}function o(e){return!r(e)&&("function"==typeof $t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var u=e.exports=h,l=/\s*function\s+([^\(\s]*)\s*/;function c(e){if(yE.isFunction(e)){if(a)return e.name;var t=e.toString().match(l);return t&&t[1]}}function p(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function d(e){if(a||!yE.isFunction(e))return yE.inspect(e);var t=c(e);return"[Function"+(t?": "+t:"")+"]"}function f(e,t,r,n,s){throw new u.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:s})}function h(e,t){e||f(e,!0,t,"==",u.ok)}function m(e,n,a,u){if(e===n)return!0;if(r(e)&&r(n))return 0===t(e,n);if(yE.isDate(e)&&yE.isDate(n))return e.getTime()===n.getTime();if(yE.isRegExp(e)&&yE.isRegExp(n))return e.source===n.source&&e.global===n.global&&e.multiline===n.multiline&&e.lastIndex===n.lastIndex&&e.ignoreCase===n.ignoreCase;if(null!==e&&"object"==typeof e||null!==n&&"object"==typeof n){if(o(e)&&o(n)&&i(e)===i(n)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===t(new Uint8Array(e.buffer),new Uint8Array(n.buffer));if(r(e)!==r(n))return!1;var l=(u=u||{actual:[],expected:[]}).actual.indexOf(e);return-1!==l&&l===u.expected.indexOf(n)||(u.actual.push(e),u.expected.push(n),function(e,t,r,n){if(null==e||null==t)return!1;if(yE.isPrimitive(e)||yE.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var a=y(e),i=y(t);if(a&&!i||!a&&i)return!1;if(a)return m(e=s.call(e),t=s.call(t),r);var o,u,l=b(e),c=b(t);if(l.length!==c.length)return!1;for(l.sort(),c.sort(),u=l.length-1;u>=0;u--)if(l[u]!==c[u])return!1;for(u=l.length-1;u>=0;u--)if(!m(e[o=l[u]],t[o],r,n))return!1;return!0}(e,n,a,u))}return a?e===n:e==n}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function g(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function v(e,t,r,n){var s;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),s=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!s&&f(s,r,"Missing expected exception"+n);var a="string"==typeof n,i=!e&&s&&!r;if((!e&&yE.isError(s)&&a&&g(s,r)||i)&&f(s,r,"Got unwanted exception"+n),e&&s&&r&&!g(s,r)||!e&&s)throw s}u.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return p(d(e.actual),128)+" "+e.operator+" "+p(d(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||f;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,s=c(t),a=n.indexOf("\n"+s);if(a>=0){var i=n.indexOf("\n",a+1);n=n.substring(i+1)}this.stack=n}}},yE.inherits(u.AssertionError,Error),u.fail=f,u.ok=h,u.equal=function(e,t,r){e!=t&&f(e,t,r,"==",u.equal)},u.notEqual=function(e,t,r){e==t&&f(e,t,r,"!=",u.notEqual)},u.deepEqual=function(e,t,r){m(e,t,!1)||f(e,t,r,"deepEqual",u.deepEqual)},u.deepStrictEqual=function(e,t,r){m(e,t,!0)||f(e,t,r,"deepStrictEqual",u.deepStrictEqual)},u.notDeepEqual=function(e,t,r){m(e,t,!1)&&f(e,t,r,"notDeepEqual",u.notDeepEqual)},u.notDeepStrictEqual=function e(t,r,n){m(t,r,!0)&&f(t,r,n,"notDeepStrictEqual",e)},u.strictEqual=function(e,t,r){e!==t&&f(e,t,r,"===",u.strictEqual)},u.notStrictEqual=function(e,t,r){e===t&&f(e,t,r,"!==",u.notStrictEqual)},u.throws=function(e,t,r){v(!0,e,t,r)},u.doesNotThrow=function(e,t,r){v(!1,e,t,r)},u.ifError=function(e){if(e)throw e},u.strict=fE((function e(t,r){t||f(t,!0,r,"==",e)}),u,{equal:u.strictEqual,deepEqual:u.deepStrictEqual,notEqual:u.notStrictEqual,notDeepEqual:u.notDeepStrictEqual}),u.strict.strict=u.strict;var b=Object.keys||function(e){var t=[];for(var r in e)n.call(e,r)&&t.push(r);return t}}),"/$$rollup_base$$/node_modules/assert"),vE=function(){function e(e,t,r){this._statements=[],this._resultName=null,this._scope=null,this._hub=null,this._importedSource=void 0,this._scope=t,this._hub=r,this._importedSource=e}var t=e.prototype;return t.done=function(){return{statements:this._statements,resultName:this._resultName}},t.import=function(){return this._statements.push(la([],Cs(this._importedSource))),this},t.require=function(){return this._statements.push(ys(ls(Ds("require"),[Cs(this._importedSource)]))),this},t.namespace=function(e){void 0===e&&(e="namespace");var t=this._scope.generateUidIdentifier(e),r=this._statements[this._statements.length-1];return gE("ImportDeclaration"===r.type),gE(0===r.specifiers.length),r.specifiers=[pa(t)],this._resultName=Ju(t),this},t.default=function(e){e=this._scope.generateUidIdentifier(e);var t=this._statements[this._statements.length-1];return gE("ImportDeclaration"===t.type),gE(0===t.specifiers.length),t.specifiers=[ca(e)],this._resultName=Ju(e),this},t.named=function(e,t){if("default"===t)return this.default(e);e=this._scope.generateUidIdentifier(e);var r=this._statements[this._statements.length-1];return gE("ImportDeclaration"===r.type),gE(0===r.specifiers.length),r.specifiers=[da(e,Ds(t))],this._resultName=Ju(e),this},t.var=function(e){e=this._scope.generateUidIdentifier(e);var t=this._statements[this._statements.length-1];return"ExpressionStatement"!==t.type&&(gE(this._resultName),t=ys(this._resultName),this._statements.push(t)),this._statements[this._statements.length-1]=Ks("var",[zs(e,t.expression)]),this._resultName=Ju(e),this},t.defaultInterop=function(){return this._interop(this._hub.addHelper("interopRequireDefault"))},t.wildcardInterop=function(){return this._interop(this._hub.addHelper("interopRequireWildcard"))},t._interop=function(e){var t=this._statements[this._statements.length-1];return"ExpressionStatement"===t.type?t.expression=ls(e,[t.expression]):"VariableDeclaration"===t.type?(gE(1===t.declarations.length),t.declarations[0].init=ls(e,[t.declarations[0].init])):gE.fail("Unexpected type."),this},t.prop=function(e){var t=this._statements[this._statements.length-1];return"ExpressionStatement"===t.type?t.expression=Fs(t.expression,Ds(e)):"VariableDeclaration"===t.type?(gE(1===t.declarations.length),t.declarations[0].init=Fs(t.declarations[0].init,Ds(e))):gE.fail("Unexpected type:"+t.type),this},t.read=function(e){this._resultName=Fs(this._resultName,Ds(e))},e}();function bE(e){var t=e.node.sourceType;if("module"!==t&&"script"!==t)throw e.buildCodeFrameError('Unknown sourceType "'+t+'", cannot transform.');return"module"===e.node.sourceType}var EE=function(){function e(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:!1,ensureNoContext:!1,importPosition:"before"};var n=e.find((function(e){return e.isProgram()}));this._programPath=n,this._programScope=n.scope,this._hub=n.hub,this._defaultOpts=this._applyDefaults(t,r,!0)}var t=e.prototype;return t.addDefault=function(e,t){return this.addNamed("default",e,t)},t.addNamed=function(e,t,r){return gE("string"==typeof e),this._generateImport(this._applyDefaults(t,r),e)},t.addNamespace=function(e,t){return this._generateImport(this._applyDefaults(e,t),null)},t.addSideEffect=function(e,t){return this._generateImport(this._applyDefaults(e,t),!1)},t._applyDefaults=function(e,t,r){void 0===r&&(r=!1);var n=[];"string"==typeof e?(n.push({importedSource:e}),n.push(t)):(gE(!t,"Unexpected secondary arguments."),n.push(e));for(var s=Object.assign({},this._defaultOpts),a=function(){var e=o[i];if(!e)return"continue";Object.keys(s).forEach((function(t){void 0!==e[t]&&(s[t]=e[t])})),r||(void 0!==e.nameHint&&(s.nameHint=e.nameHint),void 0!==e.blockHoist&&(s.blockHoist=e.blockHoist))},i=0,o=n;i<o.length;i++)a();return s},t._generateImport=function(e,t){var r="default"===t,n=!!t&&!r,s=null===t,a=e.importedSource,i=e.importedType,o=e.importedInterop,u=e.importingInterop,l=e.ensureLiveReference,c=e.ensureNoContext,p=e.nameHint,d=e.importPosition,f=e.blockHoist,h=p||t,m=bE(this._programPath),y=m&&"node"===u,g=m&&"babel"===u;if("after"===d&&!m)throw new Error('"importPosition": "after" is only supported in modules');var v=new vE(a,this._programScope,this._hub);if("es6"===i){if(!y&&!g)throw new Error("Cannot import an ES6 module from CommonJS");v.import(),s?v.namespace(p||a):(r||n)&&v.named(h,t)}else{if("commonjs"!==i)throw new Error('Unexpected interopType "'+i+'"');if("babel"===o)if(y){h="default"!==h?h:a;var b=a+"$es6Default";v.import(),s?v.default(b).var(h||a).wildcardInterop():r?l?v.default(b).var(h||a).defaultInterop().read("default"):v.default(b).var(h).defaultInterop().prop(t):n&&v.default(b).read(t)}else g?(v.import(),s?v.namespace(h||a):(r||n)&&v.named(h,t)):(v.require(),s?v.var(h||a).wildcardInterop():(r||n)&&l?r?(h="default"!==h?h:a,v.var(h).read(t),v.defaultInterop()):v.var(a).read(t):r?v.var(h).defaultInterop().prop(t):n&&v.var(h).prop(t));else if("compiled"===o)y?(v.import(),s?v.default(h||a):(r||n)&&v.default(a).read(h)):g?(v.import(),s?v.namespace(h||a):(r||n)&&v.named(h,t)):(v.require(),s?v.var(h||a):(r||n)&&(l?v.var(a).read(h):v.prop(t).var(h)));else{if("uncompiled"!==o)throw new Error('Unknown importedInterop "'+o+'".');if(r&&l)throw new Error("No live reference for commonjs default");y?(v.import(),s?v.default(h||a):r?v.default(h):n&&v.default(a).read(h)):g?(v.import(),s?v.default(h||a):r?v.default(h):n&&v.named(h,t)):(v.require(),s?v.var(h||a):r?v.var(h):n&&(l?v.var(a).read(h):v.var(h).prop(t)))}}var E=v.done(),x=E.statements,D=E.resultName;return this._insertStatements(x,d,f),(r||n)&&c&&"Identifier"!==D.type?Ms([Ss(0),D]):D},t._insertStatements=function(e,t,r){void 0===t&&(t="before"),void 0===r&&(r=3);var n=this._programPath.get("body");if("after"===t){for(var s=n.length-1;s>=0;s--)if(n[s].isImportDeclaration())return void n[s].insertAfter(e)}else{e.forEach((function(e){e._blockHoist=r}));var a=n.find((function(e){var t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(a)return void a.insertBefore(e)}this._programPath.unshiftContainer("body",e)},e}();function xE(e,t,r,n){return new EE(e).addNamed(t,r,n)}function DE(e){var t=e,r=t.node,n=t.parentPath;if(n.isLogicalExpression()){var s=n.node,a=s.operator,i=s.right;if("&&"===a||"||"===a||"??"===a&&r===i)return DE(n)}if(n.isSequenceExpression()){var o=n.node.expressions;return o[o.length-1]!==r||DE(n)}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isLoop({test:r})}var AE=function(){function e(){this._map=void 0,this._map=new WeakMap}var t=e.prototype;return t.has=function(e){return this._map.has(e)},t.get=function(e){if(this.has(e)){var t=this._map.get(e),r=t.value;return t.count--,0===t.count?rs("=",r,e):r}},t.set=function(e,t,r){return this._map.set(e,{count:r,value:t})},e}();function wE(e,t){var r=e.node;if(e.isOptionalMemberExpression())return Fs(t,r.property,r.computed);if(e.isOptionalCallExpression()){var n=e.get("callee");if(e.node.optional&&n.isOptionalMemberExpression()){var s=n.node.object,a=e.scope.maybeGenerateMemoised(s)||s;return n.get("object").replaceWith(rs("=",a,s)),ls(Fs(t,Ds("call")),[a].concat(c(r.arguments)))}return ls(t,r.arguments)}return e.node}var CE,SE={memoise:function(){},handle:function(e,t){var r=e.node,n=e.parent,s=e.parentPath,a=e.scope;if(e.isOptionalMemberExpression()){if(function(e){for(;e&&!e.isProgram();){var t=e,r=t.parentPath,n=t.container,s=t.listKey,a=r.node;if(s){if(n!==a[s])return!0}else if(n!==a)return!0;e=r}return!1}(e))return;var i=e.find((function(t){var r=t.node,n=t.parent,s=t.parentPath;return s.isOptionalMemberExpression()?n.optional||n.object!==r:!s.isOptionalCallExpression()||(r!==e.node&&n.optional||n.callee!==r)}));if(a.path.isPattern())return void i.replaceWith(ls(ea([],i.node),[]));var o=DE(i),u=i.parentPath;if(u.isUpdateExpression({argument:r})||u.isAssignmentExpression({left:r}))throw e.buildCodeFrameError("can't handle assignment");var l=u.isUnaryExpression({operator:"delete"});if(l&&i.isOptionalMemberExpression()&&i.get("property").isPrivateName())throw e.buildCodeFrameError("can't delete a private class element");for(var p=e;;)if(p.isOptionalMemberExpression()){if(p.node.optional)break;p=p.get("object")}else{if(!p.isOptionalCallExpression())throw new Error("Internal error: unexpected "+p.node.type);if(p.node.optional)break;p=p.get("callee")}var d=p.isOptionalMemberExpression()?"object":"callee",f=p.node[d],h=a.maybeGenerateMemoised(f),m=null!=h?h:f,y=s.isOptionalCallExpression({callee:r}),g=s.isCallExpression({callee:r});p.replaceWith(wE(p,m)),y?n.optional?s.replaceWith(this.optionalCall(e,n.arguments)):s.replaceWith(this.call(e,n.arguments)):g?e.replaceWith(this.boundGet(e)):e.replaceWith(this.get(e));for(var v,b=e.node,E=e;E!==i;){var x=E.parentPath;if(x===i&&y&&n.optional){b=x.node;break}b=wE(x,b),E=x}var D=i.parentPath;if(M(b)&&D.isOptionalCallExpression({callee:i.node,optional:!0})){var A=b.object;(v=e.scope.maybeGenerateMemoised(A))&&(b.object=rs("=",v,A))}var w=i;l&&(w=D,b=D.node);var C,S,T=h?rs("=",Ju(m),Ju(f)):Ju(m);if(o?(C=t?ns("!=",T,Ts()):Is("&&",ns("!==",T,Ts()),ns("!==",Ju(m),a.buildUndefinedNode())),w.replaceWith(Is("&&",C,b))):(S=t?ns("==",T,Ts()):Is("||",ns("===",T,Ts()),ns("===",Ju(m),a.buildUndefinedNode())),w.replaceWith(ps(S,l?js(!0):a.buildUndefinedNode(),b))),v){var j=D.node;D.replaceWith(Ta(Sa(j.callee,Ds("call"),!1,!0),[Ju(v)].concat(c(j.arguments)),!1))}}else if(s.isUpdateExpression({argument:r})){if(this.simpleSet)return void e.replaceWith(this.simpleSet(e));var P=n.operator,I=n.prefix;this.memoise(e,2);var F=ns(P[0],qs("+",this.get(e)),Ss(1));if(I)s.replaceWith(this.set(e,F));else{var k=e.scope,O=k.generateUidIdentifierBasedOnNode(r);k.push({id:O}),F.left=rs("=",Ju(O),F.left),s.replaceWith(Ms([this.set(e,F),Ju(O)]))}}else if(s.isAssignmentExpression({left:r})){if(this.simpleSet)return void e.replaceWith(this.simpleSet(e));var R=n.operator,N=n.right;if("="===R)s.replaceWith(this.set(e,N));else{var B=R.slice(0,-1);Or.includes(B)?(this.memoise(e,1),s.replaceWith(Is(B,this.get(e),this.set(e,N)))):(this.memoise(e,2),s.replaceWith(this.set(e,ns(B,this.get(e),N))))}}else{if(!s.isCallExpression({callee:r}))return s.isOptionalCallExpression({callee:r})?a.path.isPattern()?void s.replaceWith(ls(ea([],s.node),[])):void s.replaceWith(this.optionalCall(e,n.arguments)):void(s.isForXStatement({left:r})||s.isObjectProperty({value:r})&&s.parentPath.isObjectPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isObjectProperty({value:n})&&s.parentPath.parentPath.isObjectPattern()||s.isArrayPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isArrayPattern()||s.isRestElement()?e.replaceWith(this.destructureSet(e)):e.replaceWith(this.get(e)));s.replaceWith(this.call(e,n.arguments))}}};function TE(e,t,r){e.traverse(t,Object.assign({},SE,r,{memoiser:new AE}))}function jE(e,t,r,n){return 1===r.length&&be(r[0])&&F(r[0].argument,{name:"arguments"})?n?Ta(Sa(e,Ds("apply"),!1,!0),[t,r[0].argument],!1):ls(Fs(e,Ds("apply")),[t,r[0].argument]):n?Ta(Sa(e,Ds("call"),!1,!0),[t].concat(c(r)),!1):ls(Fs(e,Ds("call")),[t].concat(c(r)))}function PE(e,t,r,n){e=Ju(e);var s=t||n?e:Fs(e,Ds("prototype"));return ls(r.addHelper("getPrototypeOf"),[s])}var IE=((CE={})[(Eo?"StaticBlock|":"")+"ClassPrivateProperty|TypeAnnotation"]=function(e){e.skip()},CE.Function=function(e){e.isMethod()||e.isArrowFunctionExpression()||e.skip()},CE["Method|ClassProperty"]=function(e){!function(e){if(e.node.computed)for(var t,r=f(Qr[e.type]);!(t=r()).done;){var n=t.value;"key"!==n&&e.skipKey(n)}else e.skip()}(e)},CE),FE=gv.visitors.merge([IE,{Super:function(e,t){var r=e.node,n=e.parentPath;n.isMemberExpression({object:r})&&t.handle(n)}}]),kE=gv.visitors.merge([IE,{Scopable:function(e,t){var r=t.refName,n=e.scope.getOwnBinding(r);n&&n.identifier.name===r&&e.scope.rename(r)}}]),OE={memoise:function(e,t){var r=e.scope,n=e.node,s=n.computed,a=n.property;if(s){var i=r.maybeGenerateMemoised(a);i&&this.memoiser.set(a,i,t)}},prop:function(e){var t=e.node,r=t.computed,n=t.property;return this.memoiser.has(n)?Ju(this.memoiser.get(n)):r?Ju(n):Cs(n.name)},get:function(e){return this._get(e,this._getThisRefs())},_get:function(e,t){var r=PE(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return ls(this.file.addHelper("get"),[t.memo?Ms([t.memo,r]):r,this.prop(e),t.this])},_getThisRefs:function(){if(!this.isDerivedConstructor)return{this:Ws()};var e=this.scope.generateDeclaredUidIdentifier("thisSuper");return{memo:rs("=",e,Ws()),this:Ju(e)}},set:function(e,t){var r=this._getThisRefs(),n=PE(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return ls(this.file.addHelper("set"),[r.memo?Ms([r.memo,n]):n,this.prop(e),t,r.this,js(e.isInStrictMode())])},destructureSet:function(e){throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call:function(e,t){var r=this._getThisRefs();return jE(this._get(e,r),Ju(r.this),t,!1)},optionalCall:function(e,t){var r=this._getThisRefs();return jE(this._get(e,r),Ju(r.this),t,!0)}},RE=Object.assign({},OE,{prop:function(e){var t=e.node.property;return this.memoiser.has(t)?Ju(this.memoiser.get(t)):Ju(t)},get:function(e){var t,r,n,s=this.isStatic,a=this.getSuperRef,i=e.node.computed,o=this.prop(e);s?t=null!=(r=a())?r:Fs(Ds("Function"),Ds("prototype")):t=Fs(null!=(n=a())?n:Ds("Object"),Ds("prototype"));return Fs(t,o,i)},set:function(e,t){var r=e.node.computed,n=this.prop(e);return rs("=",Fs(Ws(),n,r),t)},destructureSet:function(e){var t=e.node.computed,r=this.prop(e);return Fs(Ws(),r,t)},call:function(e,t){return jE(this.get(e),Ws(),t,!1)},optionalCall:function(e,t){return jE(this.get(e),Ws(),t,!0)}}),NE=function(){function e(e){var t,r=e.methodPath;this.methodPath=r,this.isDerivedConstructor=r.isClassMethod({kind:"constructor"})&&!!e.superRef,this.isStatic=r.isObjectMethod()||r.node.static||(null==r.isStaticBlock?void 0:r.isStaticBlock()),this.isPrivateMethod=r.isPrivate()&&r.isMethod(),this.file=e.file,this.constantSuper=null!=(t=e.constantSuper)?t:e.isLoose,this.opts=e}var t=e.prototype;return t.getObjectRef=function(){return Ju(this.opts.objectRef||this.opts.getObjectRef())},t.getSuperRef=function(){return this.opts.superRef?Ju(this.opts.superRef):this.opts.getSuperRef?Ju(this.opts.getSuperRef()):void 0},t.replace=function(){this.opts.refToPreserve&&this.methodPath.traverse(kE,{refName:this.opts.refToPreserve.name});var e=this.constantSuper?RE:OE;TE(this.methodPath,FE,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this)},e))},e}();function BE(e){gv(e.node,Object.assign({},_E,{noScope:!0}))}var _E=gv.visitors.merge([IE,{ThisExpression:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e.replaceWith(qs("void",Ss(0),!0))}))}]);function LE(e,t){e.traverse(UE,{scope:e.scope,bindingNames:t,seen:new WeakSet})}var ME,UE={UpdateExpression:{exit:function(e){var t=this.scope,r=this.bindingNames,n=e.get("argument");if(n.isIdentifier()){var s=n.node.name;if(r.has(s)&&t.getBinding(s)===e.scope.getBinding(s))if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()){var a="++"==e.node.operator?"+=":"-=";e.replaceWith(rs(a,n.node,Ss(1)))}else if(e.node.prefix)e.replaceWith(rs("=",Ds(s),ns(e.node.operator[0],qs("+",n.node),Ss(1))));else{var i=e.scope.generateUidIdentifierBasedOnNode(n.node,"old"),o=i.name;e.scope.push({id:i});var u=ns(e.node.operator[0],Ds(o),Ss(1));e.replaceWith(Ms([rs("=",Ds(o),qs("+",n.node)),rs("=",Ju(n.node),u),Ds(o)]))}}}},AssignmentExpression:{exit:function(e){var t=this.scope,r=this.seen,n=this.bindingNames;if("="!==e.node.operator&&!r.has(e.node)){r.add(e.node);var s=e.get("left");if(s.isIdentifier()){var a=s.node.name;n.has(a)&&t.getBinding(a)===e.scope.getBinding(a)&&(e.node.right=ns(e.node.operator.slice(0,-1),Ju(e.node.left),e.node.right),e.node.operator="=")}}}}};var GE={Scope:function(e){e.skip()},ClassDeclaration:function(e){var t=this.requeueInParent,r=this.exported,n=this.metadata,s=e.node.id;if(!s)throw new Error("Expected class to have a name");var a=s.name,i=r.get(a)||[];if(i.length>0){var o=ys(VE(n,i,Ds(a)));o._blockHoist=e.node._blockHoist,t(e.insertAfter(o)[0])}},VariableDeclaration:function(e){var t=this.requeueInParent,r=this.exported,n=this.metadata;Object.keys(e.getOuterBindingIdentifiers()).forEach((function(s){var a=r.get(s)||[];if(a.length>0){var i=ys(VE(n,a,Ds(s)));i._blockHoist=e.node._blockHoist,t(e.insertAfter(i)[0])}}))}},VE=function(e,t,r){return(t||[]).reduce((function(t,r){var n=e.stringSpecifiers.has(r);return rs("=",Fs(Ds(e.exportName),n?Cs(r):Ds(r),n),t)}),r)},WE=function(e){return bg.expression.ast(ME||(ME=u(["\n (function() {\n throw new Error('\"' + '","' + '\" is read-only.');\n })()\n "])),e)},HE={ReferencedIdentifier:function(e){var t=this.seen,r=this.buildImportReference,n=this.scope,s=this.imported,a=this.requeueInParent;if(!t.has(e.node)){t.add(e.node);var i=e.node.name,o=s.get(i);if(o){var u=e.scope.getBinding(i);if(n.getBinding(i)!==u)return;var l=r(o,e.node);if(l.loc=e.node.loc,(e.parentPath.isCallExpression({callee:e.node})||e.parentPath.isOptionalCallExpression({callee:e.node})||e.parentPath.isTaggedTemplateExpression({tag:e.node}))&&M(l))e.replaceWith(Ms([Ss(0),l]));else if(e.isJSXIdentifier()&&M(l)){var c=l.object,p=l.property;e.replaceWith(qi(Xi(c.name),Xi(p.name)))}else e.replaceWith(l);a(e),e.skip()}}},AssignmentExpression:{exit:function(e){var t=this,r=this.scope,n=this.seen,s=this.imported,a=this.exported,i=this.requeueInParent,o=this.buildImportReference;if(!n.has(e.node)){n.add(e.node);var u=e.get("left");if(!u.isMemberExpression())if(u.isIdentifier()){var l=u.node.name;if(r.getBinding(l)!==e.scope.getBinding(l))return;var c=a.get(l),p=s.get(l);if((null==c?void 0:c.length)>0||p){gE("="===e.node.operator,"Path was not simplified");var d=e.node;p&&(d.left=o(p,d.left),d.right=Ms([d.right,WE(l)])),e.replaceWith(VE(this.metadata,c,d)),i(e)}}else{var f=u.getOuterBindingIdentifiers(),h=Object.keys(f).filter((function(t){return r.getBinding(t)===e.scope.getBinding(t)})),m=h.find((function(e){return s.has(e)}));m&&(e.node.right=Ms([e.node.right,WE(m)]));var y=[];if(h.forEach((function(e){var r=a.get(e)||[];r.length>0&&y.push(VE(t.metadata,r,Ds(e)))})),y.length>0){var g=Ms(y);e.parentPath.isExpressionStatement()&&((g=ys(g))._blockHoist=e.parentPath.node._blockHoist),i(e.insertAfter(g)[0])}}}}},"ForOfStatement|ForInStatement":function(e){var t=e.scope,r=e.node.left,n=this.exported,s=this.scope;if(!Z(r)){for(var a=!1,i=e.get("body"),o=i.scope,u=0,l=Object.keys(gc(r));u<l.length;u++){var c=l[u];n.get(c)&&s.getBinding(c)===t.getBinding(c)&&(a=!0,o.hasOwnBinding(c)&&o.rename(c))}if(!a)return;var p=t.generateUidIdentifierBasedOnNode(r);i.unshiftContainer("body",ys(rs("=",r,p))),e.get("left").replaceWith(Ks("let",[zs(Ju(p))])),t.registerDeclaration(e.get("left"))}}};function XE(e,t){for(var r=0,n=e.length-1;n>=0;n--){var s=e[n];"."===s?e.splice(n,1):".."===s?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var qE=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,$E=function(e){return qE.exec(e).slice(1)};function KE(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=XE(nx(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function zE(e){var t=JE(e),r="/"===sx(e,-1);return(e=XE(nx(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function JE(e){return"/"===e.charAt(0)}function YE(){var e=Array.prototype.slice.call(arguments,0);return zE(nx(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function QE(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=KE(e).substr(1),t=KE(t).substr(1);for(var n=r(e.split("/")),s=r(t.split("/")),a=Math.min(n.length,s.length),i=a,o=0;o<a;o++)if(n[o]!==s[o]){i=o;break}var u=[];for(o=i;o<n.length;o++)u.push("..");return(u=u.concat(s.slice(i))).join("/")}function ZE(e){var t=$E(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."}function ex(e,t){var r=$E(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function tx(e){return $E(e)[3]}var rx={extname:tx,basename:ex,dirname:ZE,sep:"/",delimiter:":",relative:QE,join:YE,isAbsolute:JE,normalize:zE,resolve:KE};function nx(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}var sx="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)},ax=Object.freeze({__proto__:null,resolve:KE,normalize:zE,isAbsolute:JE,join:YE,relative:QE,sep:"/",delimiter:":",dirname:ZE,basename:ex,extname:tx,default:rx});function ix(e){return e.hasExports}function ox(e){return 0===e.imports.size&&0===e.importsNamespace.size&&0===e.reexports.size&&0===e.reexportNamespace.size&&!e.reexportAll}function ux(e){if("function"!=typeof e&&"none"!==e&&"babel"!==e&&"node"!==e)throw new Error('.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received '+e+").");return e}function lx(e,t){return"function"==typeof e?ux(e(t)):e}function cx(e,t,r){var n=r.importInterop,s=r.initializeReexports,a=void 0!==s&&s,i=r.lazy,o=void 0!==i&&i,u=r.esNamespaceOnly,c=void 0!==u&&u;t||(t=e.scope.generateUidIdentifier("exports").name);var p=new Set;!function(e){e.get("body").forEach((function(e){e.isExportDefaultDeclaration()&&Qc(e)}))}(e);var d=function(e,t,r){var n=t.lazy,s=t.initializeReexports,a=function(e,t,r){var n=new Map;e.get("body").forEach((function(e){var r;if(e.isImportDeclaration())r="import";else{if(e.isExportDefaultDeclaration()&&(e=e.get("declaration")),e.isExportNamedDeclaration())if(e.node.declaration)e=e.get("declaration");else if(t&&e.node.source&&e.get("source").isStringLiteral())return void e.get("specifiers").forEach((function(e){dx(e),n.set(e.get("local").node.name,"block")}));if(e.isFunctionDeclaration())r="hoisted";else if(e.isClassDeclaration())r="block";else if(e.isVariableDeclaration({kind:"var"}))r="var";else{if(!e.isVariableDeclaration())return;r="block"}}Object.keys(e.getOuterBindingIdentifiers()).forEach((function(e){n.set(e,r)}))}));var s=new Map,a=function(e){var t=e.node.name,r=s.get(t);if(!r){var a=n.get(t);if(void 0===a)throw e.buildCodeFrameError('Exporting local "'+t+'", which is not declared.');r={names:[],kind:a},s.set(t,r)}return r};return e.get("body").forEach((function(e){if(!e.isExportNamedDeclaration()||!t&&e.node.source){if(e.isExportDefaultDeclaration()){var n=e.get("declaration");if(!n.isFunctionDeclaration()&&!n.isClassDeclaration())throw n.buildCodeFrameError("Unexpected default expression export.");a(n.get("id")).names.push("default")}}else if(e.node.declaration){var s=e.get("declaration"),i=s.getOuterBindingIdentifierPaths();Object.keys(i).forEach((function(e){if("__esModule"===e)throw s.buildCodeFrameError('Illegal export "__esModule".');a(i[e]).names.push(e)}))}else e.get("specifiers").forEach((function(e){var t=e.get("local"),n=e.get("exported"),s=a(t),i=px(n,r);if("__esModule"===i)throw n.buildCodeFrameError('Illegal export "__esModule".');s.names.push(i)}))})),s}(e,s,r),i=new Map,o=function(t){var r=t.value,n=i.get(r);return n||(n={name:e.scope.generateUidIdentifier(ex(r,tx(r))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,lazy:!1,source:r},i.set(r,n)),n},u=!1;e.get("body").forEach((function(e){if(e.isImportDeclaration()){var t=o(e.node.source);t.loc||(t.loc=e.node.loc),e.get("specifiers").forEach((function(e){if(e.isImportDefaultSpecifier()){var n=e.get("local").node.name;t.imports.set(n,"default");var s=a.get(n);s&&(a.delete(n),s.names.forEach((function(e){t.reexports.set(e,"default")})))}else if(e.isImportNamespaceSpecifier()){var i=e.get("local").node.name;t.importsNamespace.add(i);var o=a.get(i);o&&(a.delete(i),o.names.forEach((function(e){t.reexportNamespace.add(e)})))}else if(e.isImportSpecifier()){var u=px(e.get("imported"),r),l=e.get("local").node.name;t.imports.set(l,u);var c=a.get(l);c&&(a.delete(l),c.names.forEach((function(e){t.reexports.set(e,u)})))}}))}else if(e.isExportAllDeclaration()){u=!0;var n=o(e.node.source);n.loc||(n.loc=e.node.loc),n.reexportAll={loc:e.node.loc}}else if(e.isExportNamedDeclaration()&&e.node.source){u=!0;var s=o(e.node.source);s.loc||(s.loc=e.node.loc),e.get("specifiers").forEach((function(e){dx(e);var t=px(e.get("local"),r),n=px(e.get("exported"),r);if(s.reexports.set(n,t),"__esModule"===n)throw e.get("exported").buildCodeFrameError('Illegal export "__esModule".')}))}else(e.isExportNamedDeclaration()||e.isExportDefaultDeclaration())&&(u=!0)}));for(var c,p=f(i.values());!(c=p()).done;){var d=c.value,h=!1,m=!1;d.importsNamespace.size>0&&(h=!0,m=!0),d.reexportAll&&(m=!0);for(var y,g=f(d.imports.values());!(y=g()).done;){"default"===y.value?h=!0:m=!0}for(var v,b=f(d.reexports.values());!(v=b()).done;){"default"===v.value?h=!0:m=!0}h&&m?d.interop="namespace":h&&(d.interop="default")}for(var E,x=f(i);!(E=x()).done;){var D=l(E.value,2),A=D[0],w=D[1];if(!1!==n&&!ox(w)&&!w.reexportAll)if(!0===n)w.lazy=!/\./.test(A);else if(Array.isArray(n))w.lazy=-1!==n.indexOf(A);else{if("function"!=typeof n)throw new Error(".lazy must be a boolean, string array, or function");w.lazy=n(A)}}return{hasExports:u,local:a,source:i}}(e,{initializeReexports:a,lazy:o},p),h=d.local,m=d.source,y=d.hasExports;!function(e){e.get("body").forEach((function(e){if(e.isImportDeclaration())e.remove();else if(e.isExportNamedDeclaration())e.node.declaration?(e.node.declaration._blockHoist=e.node._blockHoist,e.replaceWith(e.node.declaration)):e.remove();else if(e.isExportDefaultDeclaration()){var t=e.get("declaration");if(!t.isFunctionDeclaration()&&!t.isClassDeclaration())throw t.buildCodeFrameError("Unexpected default expression export.");t._blockHoist=e.node._blockHoist,e.replaceWith(t)}else e.isExportAllDeclaration()&&e.remove()}))}(e);for(var g,v=f(m);!(g=v()).done;){var b=l(g.value,2)[1];b.importsNamespace.size>0&&(b.name=b.importsNamespace.values().next().value);var E=lx(n,b.source);"none"===E?b.interop="none":"node"===E&&"namespace"===b.interop?b.interop="node-namespace":"node"===E&&"default"===b.interop?b.interop="node-default":c&&"namespace"===b.interop&&(b.interop="default")}return{exportName:t,exportNameListName:null,hasExports:y,local:h,source:m,stringSpecifiers:p}}function px(e,t){if(e.isIdentifier())return e.node.name;if(e.isStringLiteral()){var r=e.node.value;return vr(r)||t.add(r),r}throw new Error("Expected export specifier to be either Identifier or StringLiteral, got "+e.node.type)}function dx(e){if(!e.isExportSpecifier())throw e.isExportNamespaceSpecifier()?e.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`."):e.buildCodeFrameError("Unexpected export specifier type")}var fx,hx,mx,yx,gx,vx,bx,Ex,xx,Dx,Ax,wx,Cx,Sx=Tx;function Tx(e,t){var r=e.filename,n=e.filenameRelative,s=void 0===n?r:n,a=e.sourceRoot,i=void 0===a?t.moduleRoot:a,o=t.moduleId,u=t.moduleIds,l=void 0===u?!!o:u,c=t.getModuleId,p=t.moduleRoot,d=void 0===p?i:p;if(!l)return null;if(null!=o&&!c)return o;var f=null!=d?d+"/":"";if(s){var h=null!=i?new RegExp("^"+i+"/?"):"";f+=s.replace(h,"").replace(/\.(\w*?)$/,"")}return f=f.replace(/\\/g,"/"),c&&c(f)||f}function jx(e,t){var r=t.loose,n=t.exportName,s=t.strict,a=t.allowTopLevelThis,i=t.strictMode,o=t.noInterop,p=t.importInterop,d=void 0===p?o?"none":"babel":p,h=t.lazy,m=t.esNamespaceOnly,y=t.constantReexports,g=void 0===y?r:y,v=t.enumerableModuleMeta,b=void 0===v?r:v;ux(d),gE(bE(e),"Cannot process module statements in a script"),e.node.sourceType="script";var E=cx(e,n,{importInterop:d,initializeReexports:g,lazy:h,esNamespaceOnly:m});(a||BE(e),function(e,t){for(var r,n=new Map,s=new Map,a=function(t){e.requeue(t)},i=f(t.source);!(r=i()).done;){for(var o,u=l(r.value,2),p=u[0],d=u[1],h=f(d.imports);!(o=h()).done;){var m=l(o.value,2),y=m[0],g=m[1];n.set(y,[p,g,null])}for(var v,b=f(d.importsNamespace);!(v=b()).done;){var E=v.value;n.set(E,[p,null,E])}}for(var x,D=f(t.local);!(x=D()).done;){var A,w=l(x.value,2),C=w[0],S=w[1],T=s.get(C);T||(T=[],s.set(C,T)),(A=T).push.apply(A,c(S.names))}var j={metadata:t,requeueInParent:a,scope:e.scope,exported:s};e.traverse(GE,j),LE(e,new Set([].concat(c(Array.from(n.keys())),c(Array.from(s.keys())))));var P={seen:new WeakSet,metadata:t,requeueInParent:a,scope:e.scope,imported:n,exported:s,buildImportReference:function(e,r){var n=l(e,3),s=n[0],a=n[1],i=n[2],o=t.source.get(s);if(i)return o.lazy&&(r=ls(r,[])),r;var u=Ds(o.name);if(o.lazy&&(u=ls(u,[])),"default"===a&&"node-default"===o.interop)return u;var c=t.stringSpecifiers.has(a);return Fs(u,c?Cs(a):Ds(a),c)}};e.traverse(HE,P)}(e,E),!1!==i)&&(e.node.directives.some((function(e){return"use strict"===e.value.value}))||e.unshiftContainer("directives",as(is("use strict"))));var x=[];ix(E)&&!s&&x.push(function(e,t){void 0===t&&(t=!1);return(t?bg.statement(bx||(bx=u(["\n EXPORTS.__esModule = true;\n "]))):bg.statement(Ex||(Ex=u(['\n Object.defineProperty(EXPORTS, "__esModule", {\n value: true,\n });\n ']))))({EXPORTS:e.exportName})}(E,b));var D=function(e,t){for(var r,n=Object.create(null),s=f(t.local.values());!(r=s()).done;)for(var a,i=f(r.value.names);!(a=i()).done;){n[a.value]=!0}for(var o,u=!1,l=f(t.source.values());!(o=l()).done;){for(var c,p=o.value,d=f(p.reexports.keys());!(c=d()).done;){n[c.value]=!0}for(var h,m=f(p.reexportNamespace);!(h=m()).done;){n[h.value]=!0}u=u||!!p.reexportAll}if(!u||0===Object.keys(n).length)return null;var y=e.scope.generateUidIdentifier("exportNames");return delete n.default,{name:y.name,statement:Ks("var",[zs(y,mc(n))])}}(e,E);return D&&(E.exportNameListName=D.name,x.push(D.statement)),x.push.apply(x,c(function(e,t,r){void 0===r&&(r=!1);for(var n,s=[],a=[],i=f(t.local);!(n=i()).done;){var o=l(n.value,2),u=o[0],p=o[1];"import"===p.kind||("hoisted"===p.kind?s.push(Nx(t,p.names,Ds(u))):a.push.apply(a,c(p.names)))}for(var d,h=f(t.source.values());!(d=h()).done;){var m=d.value;r||s.push.apply(s,c(Ox(t,m,!1)));for(var y,g=f(m.reexportNamespace);!(y=g()).done;){var v=y.value;a.push(v)}}return s.push.apply(s,c(function(e,t){for(var r=[],n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r}(a,100).map((function(r){return Nx(t,r,e.scope.buildUndefinedNode())})))),s}(e,E,g))),{meta:E,headers:x}}function Px(e){e.forEach((function(e){e._blockHoist=3}))}function Ix(e,t,r){if("none"===r)return null;if("node-namespace"===r)return ls(e.hub.addHelper("interopRequireWildcard"),[t,js(!0)]);if("node-default"===r)return null;var n;if("default"===r)n="interopRequireDefault";else{if("namespace"!==r)throw new Error("Unknown interop: "+r);n="interopRequireWildcard"}return ls(e.hub.addHelper(n),[t])}function Fx(e,t,r){void 0===r&&(r=!1);var n=[],s=Ds(t.name);t.lazy&&(s=ls(s,[]));for(var a,i=f(t.importsNamespace);!(a=i()).done;){var o=a.value;o!==t.name&&n.push(bg.statement(fx||(fx=u(["var NAME = SOURCE;"])))({NAME:o,SOURCE:Ju(s)}))}r&&n.push.apply(n,c(Ox(e,t,!0)));for(var l,p=f(t.reexportNamespace);!(l=p()).done;){var d=l.value;n.push((t.lazy?bg.statement(hx||(hx=u(['\n Object.defineProperty(EXPORTS, "NAME", {\n enumerable: true,\n get: function() {\n return NAMESPACE;\n }\n });\n ']))):bg.statement(mx||(mx=u(["EXPORTS.NAME = NAMESPACE;"]))))({EXPORTS:e.exportName,NAME:d,NAMESPACE:Ju(s)}))}if(t.reexportAll){var h=function(e,t,r){return(r?bg.statement(xx||(xx=u(['\n Object.keys(NAMESPACE).forEach(function(key) {\n if (key === "default" || key === "__esModule") return;\n VERIFY_NAME_LIST;\n if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;\n\n EXPORTS[key] = NAMESPACE[key];\n });\n ']))):bg.statement(Dx||(Dx=u(['\n Object.keys(NAMESPACE).forEach(function(key) {\n if (key === "default" || key === "__esModule") return;\n VERIFY_NAME_LIST;\n if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;\n\n Object.defineProperty(EXPORTS, key, {\n enumerable: true,\n get: function() {\n return NAMESPACE[key];\n },\n });\n });\n ']))))({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?bg(Ax||(Ax=u(["\n if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;\n "])))({EXPORTS_LIST:e.exportNameListName}):null})}(e,Ju(s),r);h.loc=t.reexportAll.loc,n.push(h)}return n}Tx=function(e,t){var r,n,s,a;return Sx(e,{moduleId:null!=(r=t.moduleId)?r:e.moduleId,moduleIds:null!=(n=t.moduleIds)?n:e.moduleIds,getModuleId:null!=(s=t.getModuleId)?s:e.getModuleId,moduleRoot:null!=(a=t.moduleRoot)?a:e.moduleRoot})};var kx={constant:bg.statement(yx||(yx=u(["EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;"]))),constantComputed:bg.statement(gx||(gx=u(['EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;']))),spec:bg(vx||(vx=u(['\n Object.defineProperty(EXPORTS, "EXPORT_NAME", {\n enumerable: true,\n get: function() {\n return NAMESPACE_IMPORT;\n },\n });\n '])))},Ox=function(e,t,r){var n=t.lazy?ls(Ds(t.name),[]):Ds(t.name),s=e.stringSpecifiers;return Array.from(t.reexports,(function(a){var i=l(a,2),o=i[0],u=i[1],c=Ju(n);"default"===u&&"node-default"===t.interop||(c=s.has(u)?Fs(c,Cs(u),!0):Fs(c,Ds(u)));var p={EXPORTS:e.exportName,EXPORT_NAME:o,NAMESPACE_IMPORT:c};return r||F(c)?s.has(o)?kx.constantComputed(p):kx.constant(p):kx.spec(p)}))};var Rx={computed:bg.expression(wx||(wx=u(['EXPORTS["NAME"] = VALUE']))),default:bg.expression(Cx||(Cx=u(["EXPORTS.NAME = VALUE"])))};function Nx(e,t,r){var n=e.stringSpecifiers,s=e.exportName;return ys(t.reduce((function(e,t){var r={EXPORTS:s,NAME:t,VALUE:e};return n.has(t)?Rx.computed(r):Rx.default(r)}),r))}var Bx={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},_x="object"==typeof ar&&ar.env&&ar.env.NODE_DEBUG&&/\bsemver\b/i.test(ar.env.NODE_DEBUG)?function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=console).error.apply(e,["SEMVER"].concat(r))}:function(){},Lx=zt((function(e,t){var r=Bx.MAX_SAFE_COMPONENT_LENGTH,n=(t=e.exports={}).re=[],s=t.src=[],a=t.t={},i=0,o=function(e,t,r){var o=i++;_x(o,t),a[e]=o,s[o]=t,n[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION","("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")"),o("MAINVERSIONLOOSE","("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")"),o("PRERELEASEIDENTIFIER","(?:"+s[a.NUMERICIDENTIFIER]+"|"+s[a.NONNUMERICIDENTIFIER]+")"),o("PRERELEASEIDENTIFIERLOOSE","(?:"+s[a.NUMERICIDENTIFIERLOOSE]+"|"+s[a.NONNUMERICIDENTIFIER]+")"),o("PRERELEASE","(?:-("+s[a.PRERELEASEIDENTIFIER]+"(?:\\."+s[a.PRERELEASEIDENTIFIER]+")*))"),o("PRERELEASELOOSE","(?:-?("+s[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[a.PRERELEASEIDENTIFIERLOOSE]+")*))"),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD","(?:\\+("+s[a.BUILDIDENTIFIER]+"(?:\\."+s[a.BUILDIDENTIFIER]+")*))"),o("FULLPLAIN","v?"+s[a.MAINVERSION]+s[a.PRERELEASE]+"?"+s[a.BUILD]+"?"),o("FULL","^"+s[a.FULLPLAIN]+"$"),o("LOOSEPLAIN","[v=\\s]*"+s[a.MAINVERSIONLOOSE]+s[a.PRERELEASELOOSE]+"?"+s[a.BUILD]+"?"),o("LOOSE","^"+s[a.LOOSEPLAIN]+"$"),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",s[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),o("XRANGEIDENTIFIER",s[a.NUMERICIDENTIFIER]+"|x|X|\\*"),o("XRANGEPLAIN","[v=\\s]*("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:"+s[a.PRERELEASE]+")?"+s[a.BUILD]+"?)?)?"),o("XRANGEPLAINLOOSE","[v=\\s]*("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:"+s[a.PRERELEASELOOSE]+")?"+s[a.BUILD]+"?)?)?"),o("XRANGE","^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAIN]+"$"),o("XRANGELOOSE","^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAINLOOSE]+"$"),o("COERCE","(^|[^\\d])(\\d{1,"+r+"})(?:\\.(\\d{1,"+r+"}))?(?:\\.(\\d{1,"+r+"}))?(?:$|[^\\d])"),o("COERCERTL",s[a.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM","(\\s*)"+s[a.LONETILDE]+"\\s+",!0),t.tildeTrimReplace="$1~",o("TILDE","^"+s[a.LONETILDE]+s[a.XRANGEPLAIN]+"$"),o("TILDELOOSE","^"+s[a.LONETILDE]+s[a.XRANGEPLAINLOOSE]+"$"),o("LONECARET","(?:\\^)"),o("CARETTRIM","(\\s*)"+s[a.LONECARET]+"\\s+",!0),t.caretTrimReplace="$1^",o("CARET","^"+s[a.LONECARET]+s[a.XRANGEPLAIN]+"$"),o("CARETLOOSE","^"+s[a.LONECARET]+s[a.XRANGEPLAINLOOSE]+"$"),o("COMPARATORLOOSE","^"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+")$|^$"),o("COMPARATOR","^"+s[a.GTLT]+"\\s*("+s[a.FULLPLAIN]+")$|^$"),o("COMPARATORTRIM","(\\s*)"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+"|"+s[a.XRANGEPLAIN]+")",!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE","^\\s*("+s[a.XRANGEPLAIN]+")\\s+-\\s+("+s[a.XRANGEPLAIN]+")\\s*$"),o("HYPHENRANGELOOSE","^\\s*("+s[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[a.XRANGEPLAINLOOSE]+")\\s*$"),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),"/$$rollup_base$$/packages/babel-core/node_modules/semver/node_modules/semver-BABEL_8_BREAKING-true/internal"),Mx=["includePrerelease","loose","rtl"],Ux=function(e){return e?"object"!=typeof e?{loose:!0}:Mx.filter((function(t){return e[t]})).reduce((function(e,t){return e[t]=!0,e}),{}):{}},Gx=/^[0-9]+$/,Vx=function(e,t){var r=Gx.test(e),n=Gx.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Wx=Vx,Hx=Bx.MAX_LENGTH,Xx=Bx.MAX_SAFE_INTEGER,qx=Lx.re,$x=Lx.t,Kx=Wx,zx=function(){function e(t,r){if(r=Ux(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>Hx)throw new TypeError("version is longer than "+Hx+" characters");_x("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var n=t.trim().match(r.loose?qx[$x.LOOSE]:qx[$x.FULL]);if(!n)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Xx||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Xx||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Xx||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<Xx)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}var t=e.prototype;return t.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},t.toString=function(){return this.version},t.compare=function(t){if(_x("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)},t.compareMain=function(t){return t instanceof e||(t=new e(t,this.options)),Kx(this.major,t.major)||Kx(this.minor,t.minor)||Kx(this.patch,t.patch)},t.comparePre=function(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var r=0;do{var n=this.prerelease[r],s=t.prerelease[r];if(_x("prerelease compare",r,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return Kx(n,s)}while(++r)},t.compareBuild=function(t){t instanceof e||(t=new e(t,this.options));var r=0;do{var n=this.build[r],s=t.build[r];if(_x("prerelease compare",r,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return Kx(n,s)}while(++r)},t.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e}(),Jx=(Lx.re,Lx.t,function(e,t,r){return new zx(e,r).compare(new zx(t,r))}),Yx=function(e,t,r){return 0===Jx(e,t,r)},Qx=function(e,t,r){return Jx(e,t,r)>0},Zx=function(e,t,r){return Jx(e,t,r)<0},eD=function(e,t,r){return 0!==Jx(e,t,r)},tD=function(e,t,r){return Jx(e,t,r)>=0},rD=function(e,t,r){return Jx(e,t,r)<=0},nD=function(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return Yx(e,r,n);case"!=":return eD(e,r,n);case">":return Qx(e,r,n);case">=":return tD(e,r,n);case"<":return Zx(e,r,n);case"<=":return rD(e,r,n);default:throw new TypeError("Invalid operator: "+t)}},sD=(Lx.re,Lx.t,aD);function aD(e){var t=this;if(t instanceof aD||(t=new aD),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}function iD(e,t,r){var n=t===e.head?new lD(r,null,t,e):new lD(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function oD(e,t){e.tail=new lD(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function uD(e,t){e.head=new lD(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function lD(e,t,r,n){if(!(this instanceof lD))return new lD(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}aD.Node=lD,aD.create=aD,aD.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},aD.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},aD.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},aD.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)oD(this,arguments[e]);return this.length},aD.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)uD(this,arguments[e]);return this.length},aD.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},aD.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},aD.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},aD.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},aD.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},aD.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},aD.prototype.map=function(e,t){t=t||this;for(var r=new aD,n=this.head;null!==n;)r.push(e.call(t,n.value,this)),n=n.next;return r},aD.prototype.mapReverse=function(e,t){t=t||this;for(var r=new aD,n=this.tail;null!==n;)r.push(e.call(t,n.value,this)),n=n.prev;return r},aD.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var s=0;null!==n;s++)r=e(r,n.value,s),n=n.next;return r},aD.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var s=this.length-1;null!==n;s--)r=e(r,n.value,s),n=n.prev;return r},aD.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},aD.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},aD.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new aD;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,s=this.head;null!==s&&n<e;n++)s=s.next;for(;null!==s&&n<t;n++,s=s.next)r.push(s.value);return r},aD.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new aD;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,s=this.tail;null!==s&&n>t;n--)s=s.prev;for(;null!==s&&n>e;n--,s=s.prev)r.push(s.value);return r},aD.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;null!==n&&r<e;r++)n=n.next;var s=[];for(r=0;n&&r<t;r++)s.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(r=0;r<(arguments.length<=2?0:arguments.length-2);r++)n=iD(this,n,r+2<2||arguments.length<=r+2?void 0:arguments[r+2]);return s},aD.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{!function(e){e.prototype[Symbol.iterator]=bh.mark((function e(){var t;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}(aD)}catch(e){}var cD=Symbol("max"),pD=Symbol("length"),dD=Symbol("lengthCalculator"),fD=Symbol("allowStale"),hD=Symbol("maxAge"),mD=Symbol("dispose"),yD=Symbol("noDisposeOnSet"),gD=Symbol("lruList"),vD=Symbol("cache"),bD=Symbol("updateAgeOnGet"),ED=function(){return 1},xD=function(){function e(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[cD]=e.max||1/0;var t=e.length||ED;if(this[dD]="function"!=typeof t?ED:t,this[fD]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[hD]=e.maxAge||0,this[mD]=e.dispose,this[yD]=e.noDisposeOnSet||!1,this[bD]=e.updateAgeOnGet||!1,this.reset()}var t=e.prototype;return t.rforEach=function(e,t){t=t||this;for(var r=this[gD].tail;null!==r;){var n=r.prev;TD(this,e,r,t),r=n}},t.forEach=function(e,t){t=t||this;for(var r=this[gD].head;null!==r;){var n=r.next;TD(this,e,r,t),r=n}},t.keys=function(){return this[gD].toArray().map((function(e){return e.key}))},t.values=function(){return this[gD].toArray().map((function(e){return e.value}))},t.reset=function(){var e=this;this[mD]&&this[gD]&&this[gD].length&&this[gD].forEach((function(t){return e[mD](t.key,t.value)})),this[vD]=new Map,this[gD]=new sD,this[pD]=0},t.dump=function(){var e=this;return this[gD].map((function(t){return!AD(e,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}})).toArray().filter((function(e){return e}))},t.dumpLru=function(){return this[gD]},t.set=function(e,t,r){if((r=r||this[hD])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");var n=r?Date.now():0,s=this[dD](t,e);if(this[vD].has(e)){if(s>this[cD])return CD(this,this[vD].get(e)),!1;var a=this[vD].get(e).value;return this[mD]&&(this[yD]||this[mD](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[pD]+=s-a.length,a.length=s,this.get(e),wD(this),!0}var i=new SD(e,t,s,n,r);return i.length>this[cD]?(this[mD]&&this[mD](e,t),!1):(this[pD]+=i.length,this[gD].unshift(i),this[vD].set(e,this[gD].head),wD(this),!0)},t.has=function(e){if(!this[vD].has(e))return!1;var t=this[vD].get(e).value;return!AD(this,t)},t.get=function(e){return DD(this,e,!0)},t.peek=function(e){return DD(this,e,!1)},t.pop=function(){var e=this[gD].tail;return e?(CD(this,e),e.value):null},t.del=function(e){CD(this,this[vD].get(e))},t.load=function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],s=n.e||0;if(0===s)this.set(n.k,n.v);else{var a=s-t;a>0&&this.set(n.k,n.v,a)}}},t.prune=function(){var e=this;this[vD].forEach((function(t,r){return DD(e,r,!1)}))},n(e,[{key:"max",get:function(){return this[cD]},set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[cD]=e||1/0,wD(this)}},{key:"allowStale",get:function(){return this[fD]},set:function(e){this[fD]=!!e}},{key:"maxAge",get:function(){return this[hD]},set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[hD]=e,wD(this)}},{key:"lengthCalculator",get:function(){return this[dD]},set:function(e){var t=this;"function"!=typeof e&&(e=ED),e!==this[dD]&&(this[dD]=e,this[pD]=0,this[gD].forEach((function(e){e.length=t[dD](e.value,e.key),t[pD]+=e.length}))),wD(this)}},{key:"length",get:function(){return this[pD]}},{key:"itemCount",get:function(){return this[gD].length}}]),e}(),DD=function(e,t,r){var n=e[vD].get(t);if(n){var s=n.value;if(AD(e,s)){if(CD(e,n),!e[fD])return}else r&&(e[bD]&&(n.value.now=Date.now()),e[gD].unshiftNode(n));return s.value}},AD=function(e,t){if(!t||!t.maxAge&&!e[hD])return!1;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[hD]&&r>e[hD]},wD=function(e){if(e[pD]>e[cD])for(var t=e[gD].tail;e[pD]>e[cD]&&null!==t;){var r=t.prev;CD(e,t),t=r}},CD=function(e,t){if(t){var r=t.value;e[mD]&&e[mD](r.key,r.value),e[pD]-=r.length,e[vD].delete(r.key),e[gD].removeNode(t)}},SD=function(e,t,r,n,s){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=s||0},TD=function(e,t,r,n){var s=r.value;AD(e,s)&&(CD(e,r),e[fD]||(s=void 0)),s&&t.call(n,s.value,s.key,e)},jD=xD,PD=function(){function e(t,r){var n=this;if(r=Ux(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof QD)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((function(e){return n.parseRange(e.trim())})).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);if(this.set.length>1){var s=this.set[0];if(this.set=this.set.filter((function(e){return!BD(e[0])})),0===this.set.length)this.set=[s];else if(this.set.length>1)for(var a,i=f(this.set);!(a=i()).done;){var o=a.value;if(1===o.length&&_D(o[0])){this.set=[o];break}}}this.format()}var t=e.prototype;return t.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},t.toString=function(){return this.range},t.parseRange=function(e){var t=this;e=e.trim();var r="parseRange:"+Object.keys(this.options).join(",")+":"+e,n=ID.get(r);if(n)return n;var s=this.options.loose,a=s?FD[kD.HYPHENRANGELOOSE]:FD[kD.HYPHENRANGE];e=e.replace(a,zD(this.options.includePrerelease)),_x("hyphen replace",e),e=e.replace(FD[kD.COMPARATORTRIM],OD),_x("comparator trim",e,FD[kD.COMPARATORTRIM]),e=(e=(e=e.replace(FD[kD.TILDETRIM],RD)).replace(FD[kD.CARETTRIM],ND)).split(/\s+/).join(" ");var i=s?FD[kD.COMPARATORLOOSE]:FD[kD.COMPARATOR],o=e.split(" ").map((function(e){return MD(e,t.options)})).join(" ").split(/\s+/).map((function(e){return KD(e,t.options)})).filter(this.options.loose?function(e){return!!e.match(i)}:function(){return!0}).map((function(e){return new QD(e,t.options)}));o.length;for(var u,l=new Map,p=f(o);!(u=p()).done;){var d=u.value;if(BD(d))return[d];l.set(d.value,d)}l.size>1&&l.has("")&&l.delete("");var h=c(l.values());return ID.set(r,h),h},t.intersects=function(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((function(e){return LD(e,r)&&t.set.some((function(t){return LD(t,r)&&e.every((function(e){return t.every((function(t){return e.intersects(t,r)}))}))}))}))},t.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new zx(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(JD(this.set[t],e,this.options))return!0;return!1},e}(),ID=new jD({max:1e3}),FD=Lx.re,kD=Lx.t,OD=Lx.comparatorTrimReplace,RD=Lx.tildeTrimReplace,ND=Lx.caretTrimReplace,BD=function(e){return"<0.0.0-0"===e.value},_D=function(e){return""===e.value},LD=function(e,t){for(var r=!0,n=e.slice(),s=n.pop();r&&n.length;)r=n.every((function(e){return s.intersects(e,t)})),s=n.pop();return r},MD=function(e,t){return _x("comp",e,t),e=WD(e,t),_x("caret",e),e=GD(e,t),_x("tildes",e),e=XD(e,t),_x("xrange",e),e=$D(e,t),_x("stars",e),e},UD=function(e){return!e||"x"===e.toLowerCase()||"*"===e},GD=function(e,t){return e.trim().split(/\s+/).map((function(e){return VD(e,t)})).join(" ")},VD=function(e,t){var r=t.loose?FD[kD.TILDELOOSE]:FD[kD.TILDE];return e.replace(r,(function(t,r,n,s,a){var i;return _x("tilde",e,t,r,n,s,a),UD(r)?i="":UD(n)?i=">="+r+".0.0 <"+(+r+1)+".0.0-0":UD(s)?i=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0-0":a?(_x("replaceTilde pr",a),i=">="+r+"."+n+"."+s+"-"+a+" <"+r+"."+(+n+1)+".0-0"):i=">="+r+"."+n+"."+s+" <"+r+"."+(+n+1)+".0-0",_x("tilde return",i),i}))},WD=function(e,t){return e.trim().split(/\s+/).map((function(e){return HD(e,t)})).join(" ")},HD=function(e,t){_x("caret",e,t);var r=t.loose?FD[kD.CARETLOOSE]:FD[kD.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(function(t,r,s,a,i){var o;return _x("caret",e,t,r,s,a,i),UD(r)?o="":UD(s)?o=">="+r+".0.0"+n+" <"+(+r+1)+".0.0-0":UD(a)?o="0"===r?">="+r+"."+s+".0"+n+" <"+r+"."+(+s+1)+".0-0":">="+r+"."+s+".0"+n+" <"+(+r+1)+".0.0-0":i?(_x("replaceCaret pr",i),o="0"===r?"0"===s?">="+r+"."+s+"."+a+"-"+i+" <"+r+"."+s+"."+(+a+1)+"-0":">="+r+"."+s+"."+a+"-"+i+" <"+r+"."+(+s+1)+".0-0":">="+r+"."+s+"."+a+"-"+i+" <"+(+r+1)+".0.0-0"):(_x("no pr"),o="0"===r?"0"===s?">="+r+"."+s+"."+a+n+" <"+r+"."+s+"."+(+a+1)+"-0":">="+r+"."+s+"."+a+n+" <"+r+"."+(+s+1)+".0-0":">="+r+"."+s+"."+a+" <"+(+r+1)+".0.0-0"),_x("caret return",o),o}))},XD=function(e,t){return _x("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return qD(e,t)})).join(" ")},qD=function(e,t){e=e.trim();var r=t.loose?FD[kD.XRANGELOOSE]:FD[kD.XRANGE];return e.replace(r,(function(r,n,s,a,i,o){_x("xRange",e,r,n,s,a,i,o);var u=UD(s),l=u||UD(a),c=l||UD(i),p=c;return"="===n&&p&&(n=""),o=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(l&&(a=0),i=0,">"===n?(n=">=",l?(s=+s+1,a=0,i=0):(a=+a+1,i=0)):"<="===n&&(n="<",l?s=+s+1:a=+a+1),"<"===n&&(o="-0"),r=n+s+"."+a+"."+i+o):l?r=">="+s+".0.0"+o+" <"+(+s+1)+".0.0-0":c&&(r=">="+s+"."+a+".0"+o+" <"+s+"."+(+a+1)+".0-0"),_x("xRange return",r),r}))},$D=function(e,t){return _x("replaceStars",e,t),e.trim().replace(FD[kD.STAR],"")},KD=function(e,t){return _x("replaceGTE0",e,t),e.trim().replace(FD[t.includePrerelease?kD.GTE0PRE:kD.GTE0],"")},zD=function(e){return function(t,r,n,s,a,i,o,u,l,c,p,d,f){return((r=UD(n)?"":UD(s)?">="+n+".0.0"+(e?"-0":""):UD(a)?">="+n+"."+s+".0"+(e?"-0":""):i?">="+r:">="+r+(e?"-0":""))+" "+(u=UD(l)?"":UD(c)?"<"+(+l+1)+".0.0-0":UD(p)?"<"+l+"."+(+c+1)+".0-0":d?"<="+l+"."+c+"."+p+"-"+d:e?"<"+l+"."+c+"."+(+p+1)+"-0":"<="+u)).trim()}},JD=function(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(var s=0;s<e.length;s++)if(_x(e[s].semver),e[s].semver!==QD.ANY&&e[s].semver.prerelease.length>0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0},YD=Symbol("SemVer ANY"),QD=function(){function e(t,r){if(r=Ux(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}_x("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===YD?this.value="":this.value=this.operator+this.semver.version,_x("comp",this)}var t=e.prototype;return t.parse=function(e){var t=this.options.loose?ZD[eA.COMPARATORLOOSE]:ZD[eA.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new zx(r[2],this.options.loose):this.semver=YD},t.toString=function(){return this.value},t.test=function(e){if(_x("Comparator.test",e,this.options.loose),this.semver===YD||e===YD)return!0;if("string"==typeof e)try{e=new zx(e,this.options)}catch(e){return!1}return nD(e,this.operator,this.semver,this.options)},t.intersects=function(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");if(r&&"object"==typeof r||(r={loose:!!r,includePrerelease:!1}),""===this.operator)return""===this.value||new PD(t.value,r).test(this.value);if(""===t.operator)return""===t.value||new PD(this.value,r).test(t.semver);var n=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),a=this.semver.version===t.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),o=nD(this.semver,"<",t.semver,r)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),u=nD(this.semver,">",t.semver,r)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return n||s||a&&i||o||u},n(e,null,[{key:"ANY",get:function(){return YD}}]),e}(),ZD=Lx.re,eA=Lx.t;QD.ANY,QD.ANY;Lx.re,Lx.src,Lx.t;var tA,rA=zt((function(e,t){var r;t=e.exports=p,r="object"==typeof ar&&ar.env&&ar.env.NODE_DEBUG&&/\bsemver\b/i.test(ar.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=Number.MAX_SAFE_INTEGER||9007199254740991,s=t.re=[],a=t.src=[],i=t.tokens={},o=0;function u(e){i[e]=o++}u("NUMERICIDENTIFIER"),a[i.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),a[i.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),a[i.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),a[i.MAINVERSION]="("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),a[i.MAINVERSIONLOOSE]="("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),a[i.PRERELEASEIDENTIFIER]="(?:"+a[i.NUMERICIDENTIFIER]+"|"+a[i.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),a[i.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[i.NUMERICIDENTIFIERLOOSE]+"|"+a[i.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),a[i.PRERELEASE]="(?:-("+a[i.PRERELEASEIDENTIFIER]+"(?:\\."+a[i.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),a[i.PRERELEASELOOSE]="(?:-?("+a[i.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[i.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),a[i.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),a[i.BUILD]="(?:\\+("+a[i.BUILDIDENTIFIER]+"(?:\\."+a[i.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),a[i.FULLPLAIN]="v?"+a[i.MAINVERSION]+a[i.PRERELEASE]+"?"+a[i.BUILD]+"?",a[i.FULL]="^"+a[i.FULLPLAIN]+"$",u("LOOSEPLAIN"),a[i.LOOSEPLAIN]="[v=\\s]*"+a[i.MAINVERSIONLOOSE]+a[i.PRERELEASELOOSE]+"?"+a[i.BUILD]+"?",u("LOOSE"),a[i.LOOSE]="^"+a[i.LOOSEPLAIN]+"$",u("GTLT"),a[i.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),a[i.XRANGEIDENTIFIERLOOSE]=a[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),a[i.XRANGEIDENTIFIER]=a[i.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),a[i.XRANGEPLAIN]="[v=\\s]*("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:"+a[i.PRERELEASE]+")?"+a[i.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),a[i.XRANGEPLAINLOOSE]="[v=\\s]*("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:"+a[i.PRERELEASELOOSE]+")?"+a[i.BUILD]+"?)?)?",u("XRANGE"),a[i.XRANGE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAIN]+"$",u("XRANGELOOSE"),a[i.XRANGELOOSE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAINLOOSE]+"$",u("COERCE"),a[i.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),s[i.COERCERTL]=new RegExp(a[i.COERCE],"g"),u("LONETILDE"),a[i.LONETILDE]="(?:~>?)",u("TILDETRIM"),a[i.TILDETRIM]="(\\s*)"+a[i.LONETILDE]+"\\s+",s[i.TILDETRIM]=new RegExp(a[i.TILDETRIM],"g");u("TILDE"),a[i.TILDE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAIN]+"$",u("TILDELOOSE"),a[i.TILDELOOSE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAINLOOSE]+"$",u("LONECARET"),a[i.LONECARET]="(?:\\^)",u("CARETTRIM"),a[i.CARETTRIM]="(\\s*)"+a[i.LONECARET]+"\\s+",s[i.CARETTRIM]=new RegExp(a[i.CARETTRIM],"g");u("CARET"),a[i.CARET]="^"+a[i.LONECARET]+a[i.XRANGEPLAIN]+"$",u("CARETLOOSE"),a[i.CARETLOOSE]="^"+a[i.LONECARET]+a[i.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),a[i.COMPARATORLOOSE]="^"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),a[i.COMPARATOR]="^"+a[i.GTLT]+"\\s*("+a[i.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),a[i.COMPARATORTRIM]="(\\s*)"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+"|"+a[i.XRANGEPLAIN]+")",s[i.COMPARATORTRIM]=new RegExp(a[i.COMPARATORTRIM],"g");u("HYPHENRANGE"),a[i.HYPHENRANGE]="^\\s*("+a[i.XRANGEPLAIN]+")\\s+-\\s+("+a[i.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),a[i.HYPHENRANGELOOSE]="^\\s*("+a[i.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[i.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),a[i.STAR]="(<|>)?=?\\s*\\*";for(var l=0;l<o;l++)r(l,a[l]),s[l]||(s[l]=new RegExp(a[l]));function c(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?s[i.LOOSE]:s[i.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?s[i.LOOSE]:s[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=c,t.valid=function(e,t){var r=c(e,t);return r?r.version:null},t.clean=function(e,t){var r=c(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return f(n,s)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var n=this.build[t],s=e.build[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return f(n,s)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new p(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var r=c(e),n=c(t),s="";if(r.prerelease.length||n.prerelease.length){s="pre";var a="prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return s+i;return a},t.compareIdentifiers=f;var d=/^[0-9]+$/;function f(e,t){var r=d.test(e),n=d.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function h(e,t,r){return new p(e,r).compare(new p(t,r))}function m(e,t,r){return h(e,t,r)>0}function y(e,t,r){return h(e,t,r)<0}function g(e,t,r){return 0===h(e,t,r)}function v(e,t,r){return 0!==h(e,t,r)}function b(e,t,r){return h(e,t,r)>=0}function E(e,t,r){return h(e,t,r)<=0}function x(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return g(e,r,n);case"!=":return v(e,r,n);case">":return m(e,r,n);case">=":return b(e,r,n);case"<":return y(e,r,n);case"<=":return E(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function D(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof D){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof D))return new D(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===A?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,r){var n=new p(e,r),s=new p(t,r);return n.compare(s)||n.compareBuild(s)},t.rcompare=function(e,t,r){return h(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=m,t.lt=y,t.eq=g,t.neq=v,t.gte=b,t.lte=E,t.cmp=x,t.Comparator=D;var A={};function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new w(e.raw,t);if(e instanceof D)return new w(e.value,t);if(!(this instanceof w))return new w(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function C(e,t){for(var r=!0,n=e.slice(),s=n.pop();r&&n.length;)r=n.every((function(e){return s.intersects(e,t)})),s=n.pop();return r}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function T(e,t,r,n,s,a,i,o,u,l,c,p,d){return((t=S(r)?"":S(n)?">="+r+".0.0":S(s)?">="+r+"."+n+".0":">="+t)+" "+(o=S(u)?"":S(l)?"<"+(+u+1)+".0.0":S(c)?"<"+u+"."+(+l+1)+".0":p?"<="+u+"."+l+"."+c+"-"+p:"<="+o)).trim()}function j(e,t,n){for(var s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(s=0;s<e.length;s++)if(r(e[s].semver),e[s].semver!==A&&e[s].semver.prerelease.length>0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function P(e,t,r){try{t=new w(t,r)}catch(e){return!1}return t.test(e)}function I(e,t,r,n){var s,a,i,o,u;switch(e=new p(e,n),t=new w(t,n),r){case">":s=m,a=E,i=y,o=">",u=">=";break;case"<":s=y,a=b,i=m,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,t,n))return!1;for(var l=0;l<t.set.length;++l){var c=t.set[l],d=null,f=null;if(c.forEach((function(e){e.semver===A&&(e=new D(">=0.0.0")),d=d||e,f=f||e,s(e.semver,d.semver,n)?d=e:i(e.semver,f.semver,n)&&(f=e)})),d.operator===o||d.operator===u)return!1;if((!f.operator||f.operator===o)&&a(e,f.semver))return!1;if(f.operator===u&&i(e,f.semver))return!1}return!0}D.prototype.parse=function(e){var t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new p(r[2],this.options.loose):this.semver=A},D.prototype.toString=function(){return this.value},D.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return x(e,this.operator,this.semver,this.options)},D.prototype.intersects=function(e,t){if(!(e instanceof D))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new w(e.value,t),P(this.value,r,t));if(""===e.operator)return""===e.value||(r=new w(this.value,t),P(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||s||a&&i||o||u},t.Range=w,w.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},w.prototype.toString=function(){return this.range},w.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[i.HYPHENRANGELOOSE]:s[i.HYPHENRANGE];e=e.replace(n,T),r("hyphen replace",e),e=e.replace(s[i.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,s[i.COMPARATORTRIM]),e=(e=(e=e.replace(s[i.TILDETRIM],"$1~")).replace(s[i.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?s[i.CARETLOOSE]:s[i.CARET];return e.replace(n,(function(t,n,s,a,i){var o;return r("caret",e,t,n,s,a,i),S(n)?o="":S(s)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o="0"===n?">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":">="+n+"."+s+".0 <"+(+n+1)+".0.0":i?(r("replaceCaret pr",i),o="0"===n?"0"===s?">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+s+"."+(+a+1):">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+a+"-"+i+" <"+(+n+1)+".0.0"):(r("no pr"),o="0"===n?"0"===s?">="+n+"."+s+"."+a+" <"+n+"."+s+"."+(+a+1):">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+a+" <"+(+n+1)+".0.0"),r("caret return",o),o}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?s[i.TILDELOOSE]:s[i.TILDE];return e.replace(n,(function(t,n,s,a,i){var o;return r("tilde",e,t,n,s,a,i),S(n)?o="":S(s)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":i?(r("replaceTilde pr",i),o=">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+(+s+1)+".0"):o=">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0",r("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?s[i.XRANGELOOSE]:s[i.XRANGE];return e.replace(n,(function(n,s,a,i,o,u){r("xRange",e,n,s,a,i,o,u);var l=S(a),c=l||S(i),p=c||S(o),d=p;return"="===s&&d&&(s=""),u=t.includePrerelease?"-0":"",l?n=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(c&&(i=0),o=0,">"===s?(s=">=",c?(a=+a+1,i=0,o=0):(i=+i+1,o=0)):"<="===s&&(s="<",c?a=+a+1:i=+i+1),n=s+a+"."+i+"."+o+u):c?n=">="+a+".0.0"+u+" <"+(+a+1)+".0.0"+u:p&&(n=">="+a+"."+i+".0"+u+" <"+a+"."+(+i+1)+".0"+u),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(s[i.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(a)}))),o=o.map((function(e){return new D(e,this.options)}),this)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Range is required");return this.set.some((function(r){return C(r,t)&&e.set.some((function(e){return C(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new w(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},w.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(j(this.set[t],e,this.options))return!0;return!1},t.satisfies=P,t.maxSatisfying=function(e,t,r){var n=null,s=null;try{var a=new w(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&-1!==s.compare(e)||(s=new p(n=e,r)))})),n},t.minSatisfying=function(e,t,r){var n=null,s=null;try{var a=new w(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&1!==s.compare(e)||(s=new p(n=e,r)))})),n},t.minVersion=function(e,t){e=new w(e,t);var r=new p("0.0.0");if(e.test(r))return r;if(r=new p("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n){e.set[n].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!m(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new w(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return I(e,t,"<",r)},t.gtr=function(e,t,r){return I(e,t,">",r)},t.outside=I,t.prerelease=function(e,t){var r=c(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new w(e,r),t=new w(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),s[i.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);if(null===r)return null;return c(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}}),"/$$rollup_base$$/packages/babel-core/node_modules/semver/node_modules/semver-BABEL_8_BREAKING-false"),nA={enter:function(e,t){var r=e.node.loc;r&&(t.loc=r,e.stop())}},sA=function(){function e(e,t){var r=this,n=t.code,s=t.ast,a=t.inputMap;this._map=new Map,this.opts=void 0,this.declarations={},this.path=null,this.ast={},this.scope=void 0,this.metadata={},this.code="",this.inputMap=null,this.hub={file:this,getCode:function(){return r.code},getScope:function(){return r.scope},addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)},this.opts=e,this.code=n,this.ast=s,this.inputMap=a,this.path=ev.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext(),this.scope=this.path.scope}var t=e.prototype;return t.set=function(e,t){if("helpersNamespace"===e)throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.If you are using @babel/plugin-external-helpers you will need to use a newer version than the one you currently have installed. If you have your own implementation, you'll want to explore using 'helperGenerator' alongside 'file.availableHelper()'.");this._map.set(e,t)},t.get=function(e){return this._map.get(e)},t.has=function(e){return this._map.has(e)},t.getModuleName=function(){return Tx(this.opts,this.opts)},t.addImport=function(){throw new Error("This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'.")},t.availableHelper=function(e,t){var r;try{r=function(e){return aE(e).minVersion()}(e)}catch(e){if("BABEL_HELPER_UNKNOWN"!==e.code)throw e;return!1}return"string"!=typeof t||(rA.valid(t)&&(t="^"+t),!rA.intersects("<"+r,t)&&!rA.intersects(">=8.0.0",t))},t.addHelper=function(t){var r=this,n=this.declarations[t];if(n)return Ju(n);var s=this.get("helperGenerator");if(s){var a=s(t);if(a)return a}oE(t,e);for(var i,o=this.declarations[t]=this.scope.generateUidIdentifier(t),u={},l=f(function(e){return Array.from(aE(e).dependencies.values())}(t));!(i=l()).done;){var c=i.value;u[c]=this.addHelper(c)}var p=iE(t,(function(e){return u[e]}),o,Object.keys(this.scope.getAllBindings())),d=p.nodes;return p.globals.forEach((function(e){r.path.scope.hasBinding(e,!0)&&r.path.scope.rename(e)})),d.forEach((function(e){e._compact=!0})),this.path.unshiftContainer("body",d),this.path.get("body").forEach((function(e){-1!==d.indexOf(e.node)&&e.isVariableDeclaration()&&r.scope.registerDeclaration(e)})),o},t.addTemplateObject=function(){throw new Error("This function has been moved into the template literal transform itself.")},t.buildCodeFrameError=function(e,t,r){void 0===r&&(r=SyntaxError);var n=e&&(e.loc||e._loc);if(!n&&e){var s={loc:null};gv(e,nA,this.scope,s);var a="This is an error on an internal node. Probably an internal error.";(n=s.loc)&&(a+=" Location has been estimated."),t+=" ("+a+")"}if(n){var i=this.opts.highlightCode,o=void 0===i||i;t+="\n"+Zh(this.code,{start:{line:n.start.line,column:n.start.column+1},end:n.end&&n.start.line===n.end.line?{line:n.end.line,column:n.end.column+1}:void 0},{highlightCode:o})}return new r(t)},n(e,[{key:"shebang",get:function(){var e=this.path.node.interpreter;return e?e.value:""},set:function(e){e?this.path.get("interpreter").replaceWith(ss(e)):this.path.get("interpreter").remove()}}]),e}();function aA(e){var t=Ds("babelHelpers"),r=[],n=Os([ys(ls(xs(null,[Ds("global")],os(r)),[ps(ns("===",qs("typeof",Ds("global")),Cs("undefined")),Ds("self"),Ds("global"))]))]);return r.push(Ks("var",[zs(t,rs("=",Fs(Ds("global"),t),Rs([])))])),lA(r,t,e),n}function iA(e){var t=[],r=lA(t,null,e);return t.unshift(ia(null,Object.keys(r).map((function(e){return oa(Ju(r[e]),Ds(e))})))),Os(t,[],"module")}function oA(e){var t,r=Ds("babelHelpers"),n=[];return n.push(Ks("var",[zs(r,Ds("global"))])),lA(n,r,e),Os([(t={FACTORY_PARAMETERS:Ds("global"),BROWSER_ARGUMENTS:rs("=",Fs(Ds("root"),r),Rs([])),COMMON_ARGUMENTS:Ds("exports"),AMD_ARGUMENTS:ts([Cs("exports")]),FACTORY_BODY:n,UMD_ROOT:Ds("this")},bg(tA||(tA=u(['\n (function (root, factory) {\n if (typeof define === "function" && define.amd) {\n define(AMD_ARGUMENTS, factory);\n } else if (typeof exports === "object") {\n factory(COMMON_ARGUMENTS);\n } else {\n factory(BROWSER_ARGUMENTS);\n }\n })(UMD_ROOT, function (FACTORY_PARAMETERS) {\n FACTORY_BODY\n });\n '])))(t))])}function uA(e){var t=Ds("babelHelpers"),r=[];r.push(Ks("var",[zs(t,Rs([]))]));var n=Os(r);return lA(r,t,e),r.push(ys(t)),n}function lA(e,t,r){var n=function(e){return t?Fs(t,Ds(e)):Ds("_"+e)},s={};return uE.forEach((function(t){if(!(r&&r.indexOf(t)<0)){var a=s[t]=n(t);oE(t,sA);var i=iE(t,n,a).nodes;e.push.apply(e,c(i))}})),s}function cA(e,t){void 0===t&&(t="global");var r={global:aA,module:iA,umd:oA,var:uA}[t];if(!r)throw new Error("Unsupported output type "+t);return Bf(r(e)).code}var pA=bh.mark(yA),dA=bh.mark(gA),fA=bh.mark(vA),hA=bh.mark(bA),mA=bh.mark(EA);function yA(e){return bh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{filepath:e,directories:[],pkg:null,isPackage:!1});case 1:case"end":return t.stop()}}),pA)}function gA(e,t,r){return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{config:null,ignore:null});case 1:case"end":return e.stop()}}),dA)}function vA(e,t,r){return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),fA)}function bA(e,t,r,n){return bh.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:throw new Error("Cannot load "+e+" relative to "+t+" in a browser");case 1:case"end":return r.stop()}}),hA)}function EA(e){return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),mA)}var xA=[];function DA(e,t){return null}function AA(e,t){return null}function wA(e,t){throw new Error("Cannot load plugin "+e+" relative to "+t+" in a browser")}function CA(e,t){throw new Error("Cannot load preset "+e+" relative to "+t+" in a browser")}function SA(e){return void 0===e&&(e="development"),ar.env.BABEL_ENV||e}var TA=Symbol.for("gensync:v1:start"),jA=Symbol.for("gensync:v1:suspend"),PA="GENSYNC_EXPECTED_SUSPEND",IA="GENSYNC_OPTIONS_ERROR",FA="GENSYNC_RACE_NONEMPTY",kA="GENSYNC_ERRBACK_NO_CALLBACK",OA=Object.assign((function(e){var t=e;return t="function"!=typeof e?function(e){var t=e.name,r=e.arity,n=e.sync,s=e.async,a=e.errback;if(RA("string","name",t,!0),RA("number","arity",r,!0),RA("function","sync",n),RA("function","async",s,!0),RA("function","errback",a,!0),s&&a)throw NA("Expected one of either opts.async or opts.errback, but got _both_.",IA);if("string"!=typeof t){var i;a&&a.name&&"errback"!==a.name&&(i=a.name),s&&s.name&&"async"!==s.name&&(i=s.name.replace(/Async$/,"")),n&&n.name&&"sync"!==n.name&&(i=n.name.replace(/Sync$/,"")),"string"==typeof i&&(t=i)}"number"!=typeof r&&(r=n.length);return BA({name:t,arity:r,sync:function(e){return n.apply(this,e)},async:function(e,t,r){s?s.apply(this,e).then(t,r):a?a.call.apply(a,[this].concat(c(e),[function(e,n){null==e?t(n):r(e)}])):t(n.apply(this,e))}})}(e):function(e){return GA(e.name,e.length,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}))}(e),Object.assign(t,function(e){return{sync:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _A(e.apply(this,r))},async:function(){for(var t=this,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return new Promise((function(r,s){LA(e.apply(t,n),r,s)}))},errback:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var s,a=r.pop();if("function"!=typeof a)throw NA("Asynchronous function called without callback",kA);try{s=e.apply(this,r)}catch(e){return void a(e)}LA(s,(function(e){return a(void 0,e)}),(function(e){return a(e)}))}}}(t))}),{all:BA({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map((function(e){return _A(e)}))},async:function(e,t,r){var n=Array.from(e[0]);if(0!==n.length){var s=0,a=n.map((function(){}));n.forEach((function(e,n){LA(e,(function(e){a[n]=e,(s+=1)===a.length&&t(a)}),r)}))}else Promise.resolve().then((function(){return t([])}))}}),race:BA({name:"race",arity:1,sync:function(e){var t=Array.from(e[0]);if(0===t.length)throw NA("Must race at least 1 item",FA);return _A(t[0])},async:function(e,t,r){var n=Array.from(e[0]);if(0===n.length)throw NA("Must race at least 1 item",FA);for(var s=0,a=n;s<a.length;s++){LA(a[s],t,r)}}})});function RA(e,t,r,n){if(!(typeof r===e||n&&void 0===r))throw NA(n?"Expected opts."+t+" to be either a "+e+", or undefined.":"Expected opts."+t+" to be a "+e+".",IA)}function NA(e,t){return Object.assign(new Error(e),{code:t})}function BA(e){var t=e.name,r=e.arity,n=e.sync,s=e.async;return GA(t,r,bh.mark((function e(){var t,r,a,i,o,u,l=arguments;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,TA;case 2:for(t=e.sent,r=l.length,a=new Array(r),i=0;i<r;i++)a[i]=l[i];if(t){e.next=7;break}return o=n.call(this,a),e.abrupt("return",o);case 7:try{s.call(this,a,(function(e){u||(u={value:e},t())}),(function(e){u||(u={err:e},t())}))}catch(e){u={err:e},t()}return e.next=10,jA;case 10:if(!u.hasOwnProperty("err")){e.next=12;break}throw u.err;case 12:return e.abrupt("return",u.value);case 13:case"end":return e.stop()}}),e,this)})))}function _A(e){for(var t;!(r=e.next(),t=r.value,r).done;){var r;MA(t,e)}return t}function LA(e,t,r){!function n(){try{for(var s,a=function(){MA(s,e);var t=!0,r=!1,a=e.next((function(){t?r=!0:n()}));if(t=!1,function(e,t){var r=e.value,n=e.done;if(!n&&r===jA)return;UA(t,NA(n?"Unexpected generator completion. If you get this, it is probably a gensync bug.":"Expected GENSYNC_SUSPEND, got "+JSON.stringify(r)+". If you get this, it is probably a gensync bug.",PA))}(a,e),!r)return{v:void 0}};!(i=e.next(),s=i.value,i).done;){var i,o=a();if("object"==typeof o)return o.v}return t(s)}catch(e){return r(e)}}()}function MA(e,t){e!==TA&&UA(t,NA("Got unexpected yielded value in gensync generator: "+JSON.stringify(e)+". Did you perhaps mean to use 'yield*' instead of 'yield'?","GENSYNC_EXPECTED_START"))}function UA(e,t){throw e.throw&&e.throw(t),t}function GA(e,t,r){if("string"==typeof e){var n=Object.getOwnPropertyDescriptor(r,"name");n&&!n.configurable||Object.defineProperty(r,"name",Object.assign(n||{},{configurable:!0,value:e}))}if("number"==typeof t){var s=Object.getOwnPropertyDescriptor(r,"length");s&&!s.configurable||Object.defineProperty(r,"length",Object.assign(s||{},{configurable:!0,value:t}))}return r}var VA=function(e){return e},WA=OA(bh.mark((function e(t){return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(t,"t0",1);case 1:return e.abrupt("return",e.t0);case 2:case"end":return e.stop()}}),e)}))),HA=OA({sync:function(){return!1},errback:function(e){return e(null,!0)}});function XA(e,t){return OA({sync:function(){for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];var a=e.apply(this,n);if(JA(a))throw new Error(t);return a},async:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Promise.resolve(e.apply(this,r))}})}var qA=OA({sync:function(e){return e("sync")},async:function(e){return e("async")}});function $A(e,t){var r=OA(e);return qA((function(e){var n=r[e];return t(n)}))}var KA=OA({name:"onFirstPause",arity:2,sync:function(e){return WA.sync(e)},errback:function(e,t,r){var n=!1;WA.errback(e,(function(e,t){n=!0,r(e,t)})),n||t()}}),zA=OA({sync:VA,async:VA});function JA(e){return!(!e||"object"!=typeof e&&"function"!=typeof e||!e.then||"function"!=typeof e.then)}function YA(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var s=n[r];if("parserOpts"!==s&&"generatorOpts"!==s&&"assumptions"!==s||!t[s]){var a=t[s];void 0!==a&&(e[s]=a)}else{var i=t[s];QA(e[s]||(e[s]={}),i)}}}function QA(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var s=n[r],a=t[s];void 0!==a&&(e[s]=a)}}function ZA(e){return!!e&&"function"==typeof e.next&&"function"==typeof e[Symbol.iterator]}var ew=function(e,t,r){this.key=void 0,this.manipulateOptions=void 0,this.post=void 0,this.pre=void 0,this.visitor=void 0,this.parserOverride=void 0,this.generatorOverride=void 0,this.options=void 0,this.key=e.name||r,this.manipulateOptions=e.manipulateOptions,this.post=e.post,this.pre=e.pre,this.visitor=e.visitor||{},this.parserOverride=e.parserOverride,this.generatorOverride=e.generatorOverride,this.options=t},tw=bh.mark(aw),rw=bh.mark(pw),nw=bh.mark(dw),sw=function(e){return OA(e).sync};function aw(){return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),tw)}function iw(e){return cw(WeakMap,e)}function ow(e){return sw(iw(e))}function uw(e){return cw(Map,e)}function lw(e){return sw(uw(e))}function cw(e,t){var r=new e,n=new e,s=new e;return bh.mark((function e(a,i){var o,u,l,c,p,d,f,h;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(HA(),"t0",1);case 1:return o=e.t0,u=o?n:r,e.delegateYield(dw(o,u,s,a,i),"t1",4);case 4:if(!(l=e.t1).valid){e.next=7;break}return e.abrupt("return",l.value);case 7:if(c=new mw(i),!ZA(p=t(a,c))){e.next=15;break}return h=p,e.delegateYield(KA(h,(function(){d=fw(c,s,a)})),"t2",12);case 12:f=e.t2,e.next=16;break;case 15:f=p;case 16:return hw(u,c,a,f),d&&(s.delete(a),d.release(f)),e.abrupt("return",f);case 19:case"end":return e.stop()}}),e)}))}function pw(e,t,r){var n,s,a,i,o,u;return bh.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(!(n=e.get(t))){l.next=10;break}s=f(n);case 3:if((a=s()).done){l.next=10;break}return i=a.value,o=i.value,u=i.valid,l.delegateYield(u(r),"t0",6);case 6:if(!l.t0){l.next=8;break}return l.abrupt("return",{valid:!0,value:o});case 8:l.next=3;break;case 10:return l.abrupt("return",{valid:!1,value:null});case 11:case"end":return l.stop()}}),rw)}function dw(e,t,r,n,s){var a,i,o;return bh.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.delegateYield(pw(t,n,s),"t0",1);case 1:if(!(a=u.t0).valid){u.next=4;break}return u.abrupt("return",a);case 4:if(!e){u.next=11;break}return u.delegateYield(pw(r,n,s),"t1",6);case 6:if(!(i=u.t1).valid){u.next=11;break}return u.delegateYield(zA(i.value.promise),"t2",9);case 9:return o=u.t2,u.abrupt("return",{valid:!0,value:o});case 11:return u.abrupt("return",{valid:!1,value:null});case 12:case"end":return u.stop()}}),nw)}function fw(e,t,r){var n=new gw;return hw(t,e,r,n),n}function hw(e,t,r,n){t.configured()||t.forever();var s=e.get(r);switch(t.deactivate(),t.mode()){case"forever":s=[{value:n,valid:aw}],e.set(r,s);break;case"invalidate":s=[{value:n,valid:t.validator()}],e.set(r,s);break;case"valid":s?s.push({value:n,valid:t.validator()}):(s=[{value:n,valid:t.validator()}],e.set(r,s))}}var mw=function(){function e(e){this._active=!0,this._never=!1,this._forever=!1,this._invalidate=!1,this._configured=!1,this._pairs=[],this._data=void 0,this._data=e}var t=e.prototype;return t.simple=function(){return function(e){function t(t){if("boolean"!=typeof t)return e.using((function(){return yw(t())}));t?e.forever():e.never()}return t.forever=function(){return e.forever()},t.never=function(){return e.never()},t.using=function(t){return e.using((function(){return yw(t())}))},t.invalidate=function(t){return e.invalidate((function(){return yw(t())}))},t}(this)},t.mode=function(){return this._never?"never":this._forever?"forever":this._invalidate?"invalidate":"valid"},t.forever=function(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never)throw new Error("Caching has already been configured with .never()");this._forever=!0,this._configured=!0},t.never=function(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._forever)throw new Error("Caching has already been configured with .forever()");this._never=!0,this._configured=!0},t.using=function(e){var t=this;if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never||this._forever)throw new Error("Caching has already been configured with .never or .forever()");this._configured=!0;var r=e(this._data),n=XA(e,"You appear to be using an async cache handler, but Babel has been called synchronously");return JA(r)?r.then((function(e){return t._pairs.push([e,n]),e})):(this._pairs.push([r,n]),r)},t.invalidate=function(e){return this._invalidate=!0,this.using(e)},t.validator=function(){var e=this._pairs;return bh.mark((function t(r){var n,s,a,i,o;return bh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=f(e);case 1:if((s=n()).done){t.next=10;break}return a=l(s.value,2),i=a[0],o=a[1],t.t0=i,t.delegateYield(o(r),"t1",5);case 5:if(t.t2=t.t1,t.t0===t.t2){t.next=8;break}return t.abrupt("return",!1);case 8:t.next=1;break;case 10:return t.abrupt("return",!0);case 11:case"end":return t.stop()}}),t)}))},t.deactivate=function(){this._active=!1},t.configured=function(){return this._configured},e}();function yw(e){if(JA(e))throw new Error("You appear to be using an async cache handler, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously handle your caching logic.");if(null!=e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e)throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");return e}var gw=function(){function e(){var e=this;this.released=!1,this.promise=void 0,this._resolve=void 0,this.promise=new Promise((function(t){e._resolve=t}))}return e.prototype.release=function(e){this.released=!0,this._resolve(e)},e}(),vw=[{name:"nodejs",version:"0.2.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.3.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.4.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.5.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.6.0",date:"2011-11-04",lts:!1,security:!1},{name:"nodejs",version:"0.7.0",date:"2012-01-17",lts:!1,security:!1},{name:"nodejs",version:"0.8.0",date:"2012-06-22",lts:!1,security:!1},{name:"nodejs",version:"0.9.0",date:"2012-07-20",lts:!1,security:!1},{name:"nodejs",version:"0.10.0",date:"2013-03-11",lts:!1,security:!1},{name:"nodejs",version:"0.11.0",date:"2013-03-28",lts:!1,security:!1},{name:"nodejs",version:"0.12.0",date:"2015-02-06",lts:!1,security:!1},{name:"iojs",version:"1.0.0",date:"2015-01-14"},{name:"iojs",version:"1.1.0",date:"2015-02-03"},{name:"iojs",version:"1.2.0",date:"2015-02-11"},{name:"iojs",version:"1.3.0",date:"2015-02-20"},{name:"iojs",version:"1.5.0",date:"2015-03-06"},{name:"iojs",version:"1.6.0",date:"2015-03-20"},{name:"iojs",version:"2.0.0",date:"2015-05-04"},{name:"iojs",version:"2.1.0",date:"2015-05-24"},{name:"iojs",version:"2.2.0",date:"2015-06-01"},{name:"iojs",version:"2.3.0",date:"2015-06-13"},{name:"iojs",version:"2.4.0",date:"2015-07-17"},{name:"iojs",version:"2.5.0",date:"2015-07-28"},{name:"iojs",version:"3.0.0",date:"2015-08-04"},{name:"iojs",version:"3.1.0",date:"2015-08-19"},{name:"iojs",version:"3.2.0",date:"2015-08-25"},{name:"iojs",version:"3.3.0",date:"2015-09-02"},{name:"nodejs",version:"4.0.0",date:"2015-09-08",lts:!1,security:!1},{name:"nodejs",version:"4.1.0",date:"2015-09-17",lts:!1,security:!1},{name:"nodejs",version:"4.2.0",date:"2015-10-12",lts:"Argon",security:!1},{name:"nodejs",version:"4.3.0",date:"2016-02-09",lts:"Argon",security:!1},{name:"nodejs",version:"4.4.0",date:"2016-03-08",lts:"Argon",security:!1},{name:"nodejs",version:"4.5.0",date:"2016-08-16",lts:"Argon",security:!1},{name:"nodejs",version:"4.6.0",date:"2016-09-27",lts:"Argon",security:!0},{name:"nodejs",version:"4.7.0",date:"2016-12-06",lts:"Argon",security:!1},{name:"nodejs",version:"4.8.0",date:"2017-02-21",lts:"Argon",security:!1},{name:"nodejs",version:"4.9.0",date:"2018-03-28",lts:"Argon",security:!0},{name:"nodejs",version:"5.0.0",date:"2015-10-29",lts:!1,security:!1},{name:"nodejs",version:"5.1.0",date:"2015-11-17",lts:!1,security:!1},{name:"nodejs",version:"5.2.0",date:"2015-12-09",lts:!1,security:!1},{name:"nodejs",version:"5.3.0",date:"2015-12-15",lts:!1,security:!1},{name:"nodejs",version:"5.4.0",date:"2016-01-06",lts:!1,security:!1},{name:"nodejs",version:"5.5.0",date:"2016-01-21",lts:!1,security:!1},{name:"nodejs",version:"5.6.0",date:"2016-02-09",lts:!1,security:!1},{name:"nodejs",version:"5.7.0",date:"2016-02-23",lts:!1,security:!1},{name:"nodejs",version:"5.8.0",date:"2016-03-09",lts:!1,security:!1},{name:"nodejs",version:"5.9.0",date:"2016-03-16",lts:!1,security:!1},{name:"nodejs",version:"5.10.0",date:"2016-04-01",lts:!1,security:!1},{name:"nodejs",version:"5.11.0",date:"2016-04-21",lts:!1,security:!1},{name:"nodejs",version:"5.12.0",date:"2016-06-23",lts:!1,security:!1},{name:"nodejs",version:"6.0.0",date:"2016-04-26",lts:!1,security:!1},{name:"nodejs",version:"6.1.0",date:"2016-05-05",lts:!1,security:!1},{name:"nodejs",version:"6.2.0",date:"2016-05-17",lts:!1,security:!1},{name:"nodejs",version:"6.3.0",date:"2016-07-06",lts:!1,security:!1},{name:"nodejs",version:"6.4.0",date:"2016-08-12",lts:!1,security:!1},{name:"nodejs",version:"6.5.0",date:"2016-08-26",lts:!1,security:!1},{name:"nodejs",version:"6.6.0",date:"2016-09-14",lts:!1,security:!1},{name:"nodejs",version:"6.7.0",date:"2016-09-27",lts:!1,security:!0},{name:"nodejs",version:"6.8.0",date:"2016-10-12",lts:!1,security:!1},{name:"nodejs",version:"6.9.0",date:"2016-10-18",lts:"Boron",security:!1},{name:"nodejs",version:"6.10.0",date:"2017-02-21",lts:"Boron",security:!1},{name:"nodejs",version:"6.11.0",date:"2017-06-06",lts:"Boron",security:!1},{name:"nodejs",version:"6.12.0",date:"2017-11-06",lts:"Boron",security:!1},{name:"nodejs",version:"6.13.0",date:"2018-02-10",lts:"Boron",security:!1},{name:"nodejs",version:"6.14.0",date:"2018-03-28",lts:"Boron",security:!0},{name:"nodejs",version:"6.15.0",date:"2018-11-27",lts:"Boron",security:!0},{name:"nodejs",version:"6.16.0",date:"2018-12-26",lts:"Boron",security:!1},{name:"nodejs",version:"6.17.0",date:"2019-02-28",lts:"Boron",security:!0},{name:"nodejs",version:"7.0.0",date:"2016-10-25",lts:!1,security:!1},{name:"nodejs",version:"7.1.0",date:"2016-11-08",lts:!1,security:!1},{name:"nodejs",version:"7.2.0",date:"2016-11-22",lts:!1,security:!1},{name:"nodejs",version:"7.3.0",date:"2016-12-20",lts:!1,security:!1},{name:"nodejs",version:"7.4.0",date:"2017-01-04",lts:!1,security:!1},{name:"nodejs",version:"7.5.0",date:"2017-01-31",lts:!1,security:!1},{name:"nodejs",version:"7.6.0",date:"2017-02-21",lts:!1,security:!1},{name:"nodejs",version:"7.7.0",date:"2017-02-28",lts:!1,security:!1},{name:"nodejs",version:"7.8.0",date:"2017-03-29",lts:!1,security:!1},{name:"nodejs",version:"7.9.0",date:"2017-04-11",lts:!1,security:!1},{name:"nodejs",version:"7.10.0",date:"2017-05-02",lts:!1,security:!1},{name:"nodejs",version:"8.0.0",date:"2017-05-30",lts:!1,security:!1},{name:"nodejs",version:"8.1.0",date:"2017-06-08",lts:!1,security:!1},{name:"nodejs",version:"8.2.0",date:"2017-07-19",lts:!1,security:!1},{name:"nodejs",version:"8.3.0",date:"2017-08-08",lts:!1,security:!1},{name:"nodejs",version:"8.4.0",date:"2017-08-15",lts:!1,security:!1},{name:"nodejs",version:"8.5.0",date:"2017-09-12",lts:!1,security:!1},{name:"nodejs",version:"8.6.0",date:"2017-09-26",lts:!1,security:!1},{name:"nodejs",version:"8.7.0",date:"2017-10-11",lts:!1,security:!1},{name:"nodejs",version:"8.8.0",date:"2017-10-24",lts:!1,security:!1},{name:"nodejs",version:"8.9.0",date:"2017-10-31",lts:"Carbon",security:!1},{name:"nodejs",version:"8.10.0",date:"2018-03-06",lts:"Carbon",security:!1},{name:"nodejs",version:"8.11.0",date:"2018-03-28",lts:"Carbon",security:!0},{name:"nodejs",version:"8.12.0",date:"2018-09-10",lts:"Carbon",security:!1},{name:"nodejs",version:"8.13.0",date:"2018-11-20",lts:"Carbon",security:!1},{name:"nodejs",version:"8.14.0",date:"2018-11-27",lts:"Carbon",security:!0},{name:"nodejs",version:"8.15.0",date:"2018-12-26",lts:"Carbon",security:!1},{name:"nodejs",version:"8.16.0",date:"2019-04-16",lts:"Carbon",security:!1},{name:"nodejs",version:"8.17.0",date:"2019-12-17",lts:"Carbon",security:!0},{name:"nodejs",version:"9.0.0",date:"2017-10-31",lts:!1,security:!1},{name:"nodejs",version:"9.1.0",date:"2017-11-07",lts:!1,security:!1},{name:"nodejs",version:"9.2.0",date:"2017-11-14",lts:!1,security:!1},{name:"nodejs",version:"9.3.0",date:"2017-12-12",lts:!1,security:!1},{name:"nodejs",version:"9.4.0",date:"2018-01-10",lts:!1,security:!1},{name:"nodejs",version:"9.5.0",date:"2018-01-31",lts:!1,security:!1},{name:"nodejs",version:"9.6.0",date:"2018-02-21",lts:!1,security:!1},{name:"nodejs",version:"9.7.0",date:"2018-03-01",lts:!1,security:!1},{name:"nodejs",version:"9.8.0",date:"2018-03-07",lts:!1,security:!1},{name:"nodejs",version:"9.9.0",date:"2018-03-21",lts:!1,security:!1},{name:"nodejs",version:"9.10.0",date:"2018-03-28",lts:!1,security:!0},{name:"nodejs",version:"9.11.0",date:"2018-04-04",lts:!1,security:!1},{name:"nodejs",version:"10.0.0",date:"2018-04-24",lts:!1,security:!1},{name:"nodejs",version:"10.1.0",date:"2018-05-08",lts:!1,security:!1},{name:"nodejs",version:"10.2.0",date:"2018-05-23",lts:!1,security:!1},{name:"nodejs",version:"10.3.0",date:"2018-05-29",lts:!1,security:!1},{name:"nodejs",version:"10.4.0",date:"2018-06-06",lts:!1,security:!1},{name:"nodejs",version:"10.5.0",date:"2018-06-20",lts:!1,security:!1},{name:"nodejs",version:"10.6.0",date:"2018-07-04",lts:!1,security:!1},{name:"nodejs",version:"10.7.0",date:"2018-07-18",lts:!1,security:!1},{name:"nodejs",version:"10.8.0",date:"2018-08-01",lts:!1,security:!1},{name:"nodejs",version:"10.9.0",date:"2018-08-15",lts:!1,security:!1},{name:"nodejs",version:"10.10.0",date:"2018-09-06",lts:!1,security:!1},{name:"nodejs",version:"10.11.0",date:"2018-09-19",lts:!1,security:!1},{name:"nodejs",version:"10.12.0",date:"2018-10-10",lts:!1,security:!1},{name:"nodejs",version:"10.13.0",date:"2018-10-30",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.14.0",date:"2018-11-27",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.15.0",date:"2018-12-26",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.16.0",date:"2019-05-28",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.17.0",date:"2019-10-22",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.18.0",date:"2019-12-17",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.19.0",date:"2020-02-05",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.20.0",date:"2020-03-26",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.21.0",date:"2020-06-02",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.22.0",date:"2020-07-21",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.23.0",date:"2020-10-27",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.24.0",date:"2021-02-23",lts:"Dubnium",security:!0},{name:"nodejs",version:"11.0.0",date:"2018-10-23",lts:!1,security:!1},{name:"nodejs",version:"11.1.0",date:"2018-10-30",lts:!1,security:!1},{name:"nodejs",version:"11.2.0",date:"2018-11-15",lts:!1,security:!1},{name:"nodejs",version:"11.3.0",date:"2018-11-27",lts:!1,security:!0},{name:"nodejs",version:"11.4.0",date:"2018-12-07",lts:!1,security:!1},{name:"nodejs",version:"11.5.0",date:"2018-12-18",lts:!1,security:!1},{name:"nodejs",version:"11.6.0",date:"2018-12-26",lts:!1,security:!1},{name:"nodejs",version:"11.7.0",date:"2019-01-17",lts:!1,security:!1},{name:"nodejs",version:"11.8.0",date:"2019-01-24",lts:!1,security:!1},{name:"nodejs",version:"11.9.0",date:"2019-01-30",lts:!1,security:!1},{name:"nodejs",version:"11.10.0",date:"2019-02-14",lts:!1,security:!1},{name:"nodejs",version:"11.11.0",date:"2019-03-05",lts:!1,security:!1},{name:"nodejs",version:"11.12.0",date:"2019-03-14",lts:!1,security:!1},{name:"nodejs",version:"11.13.0",date:"2019-03-28",lts:!1,security:!1},{name:"nodejs",version:"11.14.0",date:"2019-04-10",lts:!1,security:!1},{name:"nodejs",version:"11.15.0",date:"2019-04-30",lts:!1,security:!1},{name:"nodejs",version:"12.0.0",date:"2019-04-23",lts:!1,security:!1},{name:"nodejs",version:"12.1.0",date:"2019-04-29",lts:!1,security:!1},{name:"nodejs",version:"12.2.0",date:"2019-05-07",lts:!1,security:!1},{name:"nodejs",version:"12.3.0",date:"2019-05-21",lts:!1,security:!1},{name:"nodejs",version:"12.4.0",date:"2019-06-04",lts:!1,security:!1},{name:"nodejs",version:"12.5.0",date:"2019-06-26",lts:!1,security:!1},{name:"nodejs",version:"12.6.0",date:"2019-07-03",lts:!1,security:!1},{name:"nodejs",version:"12.7.0",date:"2019-07-23",lts:!1,security:!1},{name:"nodejs",version:"12.8.0",date:"2019-08-06",lts:!1,security:!1},{name:"nodejs",version:"12.9.0",date:"2019-08-20",lts:!1,security:!1},{name:"nodejs",version:"12.10.0",date:"2019-09-04",lts:!1,security:!1},{name:"nodejs",version:"12.11.0",date:"2019-09-25",lts:!1,security:!1},{name:"nodejs",version:"12.12.0",date:"2019-10-11",lts:!1,security:!1},{name:"nodejs",version:"12.13.0",date:"2019-10-21",lts:"Erbium",security:!1},{name:"nodejs",version:"12.14.0",date:"2019-12-17",lts:"Erbium",security:!0},{name:"nodejs",version:"12.15.0",date:"2020-02-05",lts:"Erbium",security:!0},{name:"nodejs",version:"12.16.0",date:"2020-02-11",lts:"Erbium",security:!1},{name:"nodejs",version:"12.17.0",date:"2020-05-26",lts:"Erbium",security:!1},{name:"nodejs",version:"12.18.0",date:"2020-06-02",lts:"Erbium",security:!0},{name:"nodejs",version:"12.19.0",date:"2020-10-06",lts:"Erbium",security:!1},{name:"nodejs",version:"12.20.0",date:"2020-11-24",lts:"Erbium",security:!1},{name:"nodejs",version:"12.21.0",date:"2021-02-23",lts:"Erbium",security:!0},{name:"nodejs",version:"13.0.0",date:"2019-10-22",lts:!1,security:!1},{name:"nodejs",version:"13.1.0",date:"2019-11-05",lts:!1,security:!1},{name:"nodejs",version:"13.2.0",date:"2019-11-21",lts:!1,security:!1},{name:"nodejs",version:"13.3.0",date:"2019-12-03",lts:!1,security:!1},{name:"nodejs",version:"13.4.0",date:"2019-12-17",lts:!1,security:!0},{name:"nodejs",version:"13.5.0",date:"2019-12-18",lts:!1,security:!1},{name:"nodejs",version:"13.6.0",date:"2020-01-07",lts:!1,security:!1},{name:"nodejs",version:"13.7.0",date:"2020-01-21",lts:!1,security:!1},{name:"nodejs",version:"13.8.0",date:"2020-02-05",lts:!1,security:!0},{name:"nodejs",version:"13.9.0",date:"2020-02-18",lts:!1,security:!1},{name:"nodejs",version:"13.10.0",date:"2020-03-04",lts:!1,security:!1},{name:"nodejs",version:"13.11.0",date:"2020-03-12",lts:!1,security:!1},{name:"nodejs",version:"13.12.0",date:"2020-03-26",lts:!1,security:!1},{name:"nodejs",version:"13.13.0",date:"2020-04-14",lts:!1,security:!1},{name:"nodejs",version:"13.14.0",date:"2020-04-29",lts:!1,security:!1},{name:"nodejs",version:"14.0.0",date:"2020-04-21",lts:!1,security:!1},{name:"nodejs",version:"14.1.0",date:"2020-04-29",lts:!1,security:!1},{name:"nodejs",version:"14.2.0",date:"2020-05-05",lts:!1,security:!1},{name:"nodejs",version:"14.3.0",date:"2020-05-19",lts:!1,security:!1},{name:"nodejs",version:"14.4.0",date:"2020-06-02",lts:!1,security:!0},{name:"nodejs",version:"14.5.0",date:"2020-06-30",lts:!1,security:!1},{name:"nodejs",version:"14.6.0",date:"2020-07-20",lts:!1,security:!1},{name:"nodejs",version:"14.7.0",date:"2020-07-29",lts:!1,security:!1},{name:"nodejs",version:"14.8.0",date:"2020-08-11",lts:!1,security:!1},{name:"nodejs",version:"14.9.0",date:"2020-08-27",lts:!1,security:!1},{name:"nodejs",version:"14.10.0",date:"2020-09-08",lts:!1,security:!1},{name:"nodejs",version:"14.11.0",date:"2020-09-15",lts:!1,security:!0},{name:"nodejs",version:"14.12.0",date:"2020-09-22",lts:!1,security:!1},{name:"nodejs",version:"14.13.0",date:"2020-09-29",lts:!1,security:!1},{name:"nodejs",version:"14.14.0",date:"2020-10-15",lts:!1,security:!1},{name:"nodejs",version:"14.15.0",date:"2020-10-27",lts:"Fermium",security:!1},{name:"nodejs",version:"14.16.0",date:"2021-02-23",lts:"Fermium",security:!0},{name:"nodejs",version:"15.0.0",date:"2020-10-20",lts:!1,security:!1},{name:"nodejs",version:"15.1.0",date:"2020-11-04",lts:!1,security:!1},{name:"nodejs",version:"15.2.0",date:"2020-11-10",lts:!1,security:!1},{name:"nodejs",version:"15.3.0",date:"2020-11-24",lts:!1,security:!1},{name:"nodejs",version:"15.4.0",date:"2020-12-09",lts:!1,security:!1},{name:"nodejs",version:"15.5.0",date:"2020-12-22",lts:!1,security:!1},{name:"nodejs",version:"15.6.0",date:"2021-01-14",lts:!1,security:!1},{name:"nodejs",version:"15.7.0",date:"2021-01-25",lts:!1,security:!1},{name:"nodejs",version:"15.8.0",date:"2021-02-02",lts:!1,security:!1},{name:"nodejs",version:"15.9.0",date:"2021-02-18",lts:!1,security:!1},{name:"nodejs",version:"15.10.0",date:"2021-02-23",lts:!1,security:!0}],bw={A:{A:{I:.0131217,D:.00621152,E:.0199047,F:.0928884,A:.0132698,B:.849265,gB:.009298},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","gB","I","D","E","F","A","B","","",""],E:"IE",F:{gB:962323200,I:998870400,D:1161129600,E:1237420800,F:1300060800,A:1346716800,B:1381968e3}},B:{A:{C:.008408,J:.004267,K:.004204,L:.004204,M:.008408,N:.033632,O:.092488,R:0,S:.004298,T:.00944,U:.00415,V:.008408,W:.008408,X:.012612,P:.012612,Y:.016816,Z:.079876,G:3.01006,a:.2102},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","J","K","L","M","N","O","R","S","T","U","V","W","X","P","Y","Z","G","a","","",""],E:"Edge",F:{C:1438128e3,J:1447286400,K:1470096e3,L:1491868800,M:1508198400,N:1525046400,O:1542067200,R:1579046400,S:1581033600,T:1586736e3,U:1590019200,V:1594857600,W:1598486400,X:1602201600,P:1605830400,Y:161136e4,Z:1614816e3,G:1618358400,a:1622073600},D:{C:"ms",J:"ms",K:"ms",L:"ms",M:"ms",N:"ms",O:"ms"}},C:{A:{0:.058856,1:.004204,2:.004204,3:.004525,4:.004271,5:.008408,6:.004538,7:.004267,8:.004204,9:.071468,hB:.012813,XB:.004271,H:.02102,b:.004879,I:.020136,D:.005725,E:.004525,F:.00533,A:.004283,B:.008408,C:.004471,J:.004486,K:.00453,L:.008542,M:.004417,N:.004425,O:.008542,c:.004443,d:.004283,e:.008542,f:.013698,g:.008542,h:.008786,i:.017084,j:.004317,k:.004393,l:.004418,m:.008834,n:.008542,o:.008928,p:.004471,q:.009284,r:.004707,s:.009076,t:.004425,u:.004783,v:.004271,w:.004783,x:.00487,y:.005029,z:.0047,AB:.004335,BB:.004204,CB:.004204,DB:.012612,EB:.004425,FB:.004204,YB:.004204,GB:.008408,ZB:.00472,Q:.004425,HB:.02102,IB:.00415,JB:.004267,KB:.008408,LB:.004267,MB:.012612,NB:.00415,OB:.004204,PB:.004425,QB:.008408,RB:.00415,SB:.00415,TB:.008542,UB:.004298,aB:.004204,bB:.14714,R:.008408,S:.008408,T:.012612,iB:.016816,U:.012612,V:.025224,W:.02102,X:.033632,P:.071468,Y:2.3122,Z:.029428,G:0,a:0,jB:.008786,kB:.00487},B:"moz",C:["hB","XB","jB","kB","H","b","I","D","E","F","A","B","C","J","K","L","M","N","O","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","YB","GB","ZB","Q","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","aB","bB","R","S","T","iB","U","V","W","X","P","Y","Z","G","a",""],E:"Firefox",F:{0:1450137600,1:1453852800,2:1457395200,3:1461628800,4:1465257600,5:1470096e3,6:1474329600,7:1479168e3,8:1485216e3,9:1488844800,hB:1161648e3,XB:1213660800,jB:124632e4,kB:1264032e3,H:1300752e3,b:1308614400,I:1313452800,D:1317081600,E:1317081600,F:1320710400,A:1324339200,B:1327968e3,C:1331596800,J:1335225600,K:1338854400,L:1342483200,M:1346112e3,N:1349740800,O:1353628800,c:1357603200,d:1361232e3,e:1364860800,f:1368489600,g:1372118400,h:1375747200,i:1379376e3,j:1386633600,k:1391472e3,l:1395100800,m:1398729600,n:1402358400,o:1405987200,p:1409616e3,q:1413244800,r:1417392e3,s:1421107200,t:1424736e3,u:1428278400,v:1431475200,w:1435881600,x:1439251200,y:144288e4,z:1446508800,AB:149256e4,BB:1497312e3,CB:1502150400,DB:1506556800,EB:1510617600,FB:1516665600,YB:1520985600,GB:1525824e3,ZB:1529971200,Q:1536105600,HB:1540252800,IB:1544486400,JB:154872e4,KB:1552953600,LB:1558396800,MB:1562630400,NB:1567468800,OB:1571788800,PB:1575331200,QB:1578355200,RB:1581379200,SB:1583798400,TB:1586304e3,UB:1588636800,aB:1591056e3,bB:1593475200,R:1595894400,S:1598313600,T:1600732800,iB:1603152e3,U:1605571200,V:1607990400,W:1611619200,X:1614038400,P:1616457600,Y:1618790400,Z:1622505600,G:null,a:null}},D:{A:{0:.008408,1:.004465,2:.004642,3:.004891,4:.008408,5:.02102,6:.214404,7:.004204,8:.016816,9:.004204,H:.004706,b:.004879,I:.004879,D:.005591,E:.005591,F:.005591,A:.004534,B:.004464,C:.010424,J:.0083,K:.004706,L:.015087,M:.004393,N:.004393,O:.008652,c:.008542,d:.004393,e:.004317,f:.012612,g:.008786,h:.008408,i:.004461,j:.004298,k:.004326,l:.0047,m:.004538,n:.008542,o:.008596,p:.004566,q:.004204,r:.008408,s:.012612,t:.004335,u:.004464,v:.025224,w:.004464,x:.012612,y:.0236,z:.004403,AB:.058856,BB:.008408,CB:.012612,DB:.04204,EB:.008408,FB:.008408,YB:.008408,GB:.016816,ZB:.121916,Q:.008408,HB:.02102,IB:.025224,JB:.02102,KB:.02102,LB:.033632,MB:.029428,NB:.067264,OB:.071468,PB:.025224,QB:.058856,RB:.02102,SB:.113508,TB:.092488,UB:.067264,aB:.029428,bB:.075672,R:.18918,S:.1051,T:.079876,U:.130324,V:.100896,W:.243832,X:.16816,P:.311096,Y:.344728,Z:1.0468,G:21.4866,a:.790352,lB:.025224,mB:.004204,nB:0},B:"webkit",C:["","","","H","b","I","D","E","F","A","B","C","J","K","L","M","N","O","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","YB","GB","ZB","Q","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","aB","bB","R","S","T","U","V","W","X","P","Y","Z","G","a","lB","mB","nB"],E:"Chrome",F:{0:143208e4,1:1437523200,2:1441152e3,3:1444780800,4:1449014400,5:1453248e3,6:1456963200,7:1460592e3,8:1464134400,9:1469059200,H:1264377600,b:1274745600,I:1283385600,D:1287619200,E:1291248e3,F:1296777600,A:1299542400,B:1303862400,C:1307404800,J:1312243200,K:1316131200,L:1316131200,M:1319500800,N:1323734400,O:1328659200,c:1332892800,d:133704e4,e:1340668800,f:1343692800,g:1348531200,h:1352246400,i:1357862400,j:1361404800,k:1364428800,l:1369094400,m:1374105600,n:1376956800,o:1384214400,p:1389657600,q:1392940800,r:1397001600,s:1400544e3,t:1405468800,u:1409011200,v:141264e4,w:1416268800,x:1421798400,y:1425513600,z:1429401600,AB:1472601600,BB:1476230400,CB:1480550400,DB:1485302400,EB:1489017600,FB:149256e4,YB:1496707200,GB:1500940800,ZB:1504569600,Q:1508198400,HB:1512518400,IB:1516752e3,JB:1520294400,KB:1523923200,LB:1527552e3,MB:1532390400,NB:1536019200,OB:1539648e3,PB:1543968e3,QB:154872e4,RB:1552348800,SB:1555977600,TB:1559606400,UB:1564444800,aB:1568073600,bB:1571702400,R:1575936e3,S:1580860800,T:1586304e3,U:1589846400,V:1594684800,W:1598313600,X:1601942400,P:1605571200,Y:1611014400,Z:1614556800,G:1618272e3,a:1621987200,lB:null,mB:null,nB:null}},E:{A:{H:0,b:.008542,I:.004656,D:.004465,E:.218608,F:.004891,A:.004425,B:.008408,C:.012612,J:.088284,K:2.26175,oB:0,cB:.008692,pB:.109304,qB:.00456,rB:.004283,sB:.02102,dB:.02102,VB:.058856,WB:.088284,tB:.395176,uB:.748312,vB:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","oB","cB","H","b","pB","I","qB","D","rB","E","F","sB","A","dB","B","VB","C","WB","J","tB","K","uB","vB","",""],E:"Safari",F:{oB:1205798400,cB:1226534400,H:1244419200,b:1275868800,pB:131112e4,I:1343174400,qB:13824e5,D:13824e5,rB:1410998400,E:1413417600,F:1443657600,sB:1458518400,A:1474329600,dB:1490572800,B:1505779200,VB:1522281600,C:1537142400,WB:1553472e3,J:1568851200,tB:1585008e3,K:1600214400,uB:1619395200,vB:null}},F:{A:{0:.008542,1:.004227,2:.004725,3:.008408,4:.008942,5:.004707,6:.004827,7:.004707,8:.004707,9:.004326,F:.0082,B:.016581,C:.004317,L:.00685,M:.00685,N:.00685,O:.005014,c:.006015,d:.004879,e:.006597,f:.006597,g:.013434,h:.006702,i:.006015,j:.005595,k:.004393,l:.008652,m:.004879,n:.004879,o:.004711,p:.005152,q:.005014,r:.009758,s:.004879,t:.008408,u:.004283,v:.004367,w:.004534,x:.008408,y:.004227,z:.004418,AB:.008922,BB:.014349,CB:.004425,DB:.00472,EB:.004425,FB:.004425,GB:.00472,Q:.004532,HB:.004566,IB:.02283,JB:.00867,KB:.004656,LB:.004642,MB:.004298,NB:.00944,OB:.00415,PB:.004271,QB:.004298,RB:.096692,SB:.008408,TB:.433012,UB:.437216,wB:.00685,xB:0,yB:.008392,zB:.004706,VB:.006229,eB:.004879,"0B":.008786,WB:.00472},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","F","wB","xB","yB","zB","B","VB","eB","0B","C","WB","L","M","N","O","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","GB","Q","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","","",""],E:"Opera",F:{0:1486425600,1:1490054400,2:1494374400,3:1498003200,4:1502236800,5:1506470400,6:1510099200,7:1515024e3,8:1517961600,9:1521676800,F:1150761600,wB:1223424e3,xB:1251763200,yB:1267488e3,zB:1277942400,B:1292457600,VB:1302566400,eB:1309219200,"0B":1323129600,C:1323129600,WB:1352073600,L:1372723200,M:1377561600,N:1381104e3,O:1386288e3,c:1390867200,d:1393891200,e:1399334400,f:1401753600,g:1405987200,h:1409616e3,i:1413331200,j:1417132800,k:1422316800,l:1425945600,m:1430179200,n:1433808e3,o:1438646400,p:1442448e3,q:1445904e3,r:1449100800,s:1454371200,t:1457308800,u:146232e4,v:1465344e3,w:1470096e3,x:1474329600,y:1477267200,z:1481587200,AB:1525910400,BB:1530144e3,CB:1534982400,DB:1537833600,EB:1543363200,FB:1548201600,GB:1554768e3,Q:1561593600,HB:1566259200,IB:1570406400,JB:1573689600,KB:1578441600,LB:1583971200,MB:1587513600,NB:1592956800,OB:1595894400,PB:1600128e3,QB:1603238400,RB:161352e4,SB:1612224e3,TB:1616544e3,UB:1619568e3},D:{F:"o",B:"o",C:"o",wB:"o",xB:"o",yB:"o",zB:"o",VB:"o",eB:"o","0B":"o",WB:"o"}},G:{A:{E:.00144955,cB:0,"1B":0,fB:.00289911,"2B":.00869732,"3B":.0449361,"4B":.0304406,"5B":.0202937,"6B":.0217433,"7B":.147854,"8B":.0347893,"9B":.149304,AC:.0855236,BC:.0739272,CC:.0768263,DC:.246424,EC:.0666794,FC:.0333397,GC:.172497,HC:.572573,IC:10.1498,JC:1.93225},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","cB","1B","fB","2B","3B","4B","E","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","HC","IC","JC","","",""],E:"Safari on iOS",F:{cB:1270252800,"1B":1283904e3,fB:1299628800,"2B":1331078400,"3B":1359331200,"4B":1394409600,E:1410912e3,"5B":1413763200,"6B":1442361600,"7B":1458518400,"8B":1473724800,"9B":1490572800,AC:1505779200,BC:1522281600,CC:1537142400,DC:1553472e3,EC:1568851200,FC:1572220800,GC:1580169600,HC:1585008e3,IC:1600214400,JC:1619395200}},H:{A:{KC:1.18546},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","KC","","",""],E:"Opera Mini",F:{KC:1426464e3}},I:{A:{XB:0,H:.0263634,G:0,LC:0,MC:0,NC:0,OC:.0301296,fB:.0979213,PC:0,QC:.43688},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","LC","MC","NC","XB","H","OC","fB","PC","QC","G","","",""],E:"Android Browser",F:{LC:1256515200,MC:1274313600,NC:1291593600,XB:1298332800,H:1318896e3,OC:1341792e3,fB:1374624e3,PC:1386547200,QC:1401667200,G:1618704e3}},J:{A:{D:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","A","","",""],E:"Blackberry Browser",F:{D:1325376e3,A:1359504e3}},K:{A:{A:0,B:0,C:0,Q:.0111391,VB:0,eB:0,WB:0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","VB","eB","C","WB","Q","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752e3,VB:1314835200,eB:1318291200,C:1330300800,WB:1349740800,Q:1613433600},D:{Q:"webkit"}},L:{A:{G:38.7167},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","G","","",""],E:"Chrome for Android",F:{G:1618704e3}},M:{A:{P:.278256},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","P","","",""],E:"Firefox for Android",F:{P:1616457600}},N:{A:{A:.0115934,B:.022664},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456e3}},O:{A:{RC:1.36809},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","RC","","",""],E:"UC Browser for Android",F:{RC:1471392e3},D:{RC:"webkit"}},P:{A:{H:.309232,SC:.0103543,TC:.010304,UC:.0824619,VC:.0103584,WC:.0721541,dB:.0412309,XC:.164924,YC:.113385,ZC:.412309,aC:2.19555},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","H","SC","TC","UC","VC","WC","dB","XC","YC","ZC","aC","","",""],E:"Samsung Internet",F:{H:1461024e3,SC:1481846400,TC:1509408e3,UC:1528329600,VC:1546128e3,WC:1554163200,dB:1567900800,XC:1582588800,YC:1593475200,ZC:1605657600,aC:1618531200}},Q:{A:{bC:.185504},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","bC","","",""],E:"QQ Browser",F:{bC:1589846400}},R:{A:{cC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","cC","","",""],E:"Baidu Browser",F:{cC:1491004800}},S:{A:{dC:.098549},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","dC","","",""],E:"KaiOS Browser",F:{dC:1527811200}}},Ew={browsers:{A:"ie",B:"edge",C:"firefox",D:"chrome",E:"safari",F:"opera",G:"ios_saf",H:"op_mini",I:"android",J:"bb",K:"op_mob",L:"and_chr",M:"and_ff",N:"ie_mob",O:"and_uc",P:"samsung",Q:"and_qq",R:"baidu",S:"kaios"}}.browsers,xw={browserVersions:{0:"43",1:"44",2:"45",3:"46",4:"47",5:"48",6:"49",7:"50",8:"51",9:"52",A:"10",B:"11",C:"12",D:"7",E:"8",F:"9",G:"90",H:"4",I:"6",J:"13",K:"14",L:"15",M:"16",N:"17",O:"18",P:"87",Q:"62",R:"79",S:"80",T:"81",U:"83",V:"84",W:"85",X:"86",Y:"88",Z:"89",a:"91",b:"5",c:"19",d:"20",e:"21",f:"22",g:"23",h:"24",i:"25",j:"26",k:"27",l:"28",m:"29",n:"30",o:"31",p:"32",q:"33",r:"34",s:"35",t:"36",u:"37",v:"38",w:"39",x:"40",y:"41",z:"42",AB:"53",BB:"54",CB:"55",DB:"56",EB:"57",FB:"58",GB:"60",HB:"63",IB:"64",JB:"65",KB:"66",LB:"67",MB:"68",NB:"69",OB:"70",PB:"71",QB:"72",RB:"73",SB:"74",TB:"75",UB:"76",VB:"11.1",WB:"12.1",XB:"3",YB:"59",ZB:"61",aB:"77",bB:"78",cB:"3.2",dB:"10.1",eB:"11.5",fB:"4.2-4.3",gB:"5.5",hB:"2",iB:"82",jB:"3.5",kB:"3.6",lB:"92",mB:"93",nB:"94",oB:"3.1",pB:"5.1",qB:"6.1",rB:"7.1",sB:"9.1",tB:"13.1",uB:"14.1",vB:"TP",wB:"9.5-9.6",xB:"10.0-10.1",yB:"10.5",zB:"10.6","0B":"11.6","1B":"4.0-4.1","2B":"5.0-5.1","3B":"6.0-6.1","4B":"7.0-7.1","5B":"8.1-8.4","6B":"9.0-9.2","7B":"9.3","8B":"10.0-10.2","9B":"10.3",AC:"11.0-11.2",BC:"11.3-11.4",CC:"12.0-12.1",DC:"12.2-12.4",EC:"13.0-13.1",FC:"13.2",GC:"13.3",HC:"13.4-13.7",IC:"14.0-14.4",JC:"14.5-14.6",KC:"all",LC:"2.1",MC:"2.2",NC:"2.3",OC:"4.1",PC:"4.4",QC:"4.4.3-4.4.4",RC:"12.12",SC:"5.0-5.4",TC:"6.2-6.4",UC:"7.2-7.4",VC:"8.2",WC:"9.2",XC:"11.1-11.2",YC:"12.0",ZC:"13.0",aC:"14.0",bC:"10.4",cC:"7.12",dC:"2.5"}}.browserVersions;function Dw(e){return Object.keys(e).reduce((function(t,r){return t[xw[r]]=e[r],t}),{})}var Aw={agents:Object.keys(bw).reduce((function(e,t){var r=bw[t];return e[Ew[t]]=Object.keys(r).reduce((function(e,t){return"A"===t?e.usage_global=Dw(r[t]):"C"===t?e.versions=r[t].reduce((function(e,t){return""===t?e.push(null):e.push(xw[t]),e}),[]):"D"===t?e.prefix_exceptions=Dw(r[t]):"E"===t?e.browser=r[t]:"F"===t?e.release_date=Object.keys(r[t]).reduce((function(e,n){return e[xw[n]]=r[t][n],e}),{}):e.prefix=r[t],e}),{}),e}),{})},ww={"v0.8":{start:"2012-06-25",end:"2014-07-31"},"v0.10":{start:"2013-03-11",end:"2016-10-31"},"v0.12":{start:"2015-02-06",end:"2016-12-31"},v4:{start:"2015-09-08",lts:"2015-10-12",maintenance:"2017-04-01",end:"2018-04-30",codename:"Argon"},v5:{start:"2015-10-29",maintenance:"2016-04-30",end:"2016-06-30"},v6:{start:"2016-04-26",lts:"2016-10-18",maintenance:"2018-04-30",end:"2019-04-30",codename:"Boron"},v7:{start:"2016-10-25",maintenance:"2017-04-30",end:"2017-06-30"},v8:{start:"2017-05-30",lts:"2017-10-31",maintenance:"2019-01-01",end:"2019-12-31",codename:"Carbon"},v9:{start:"2017-10-01",maintenance:"2018-04-01",end:"2018-06-30"},v10:{start:"2018-04-24",lts:"2018-10-30",maintenance:"2020-05-19",end:"2021-04-30",codename:"Dubnium"},v11:{start:"2018-10-23",maintenance:"2019-04-22",end:"2019-06-01"},v12:{start:"2019-04-23",lts:"2019-10-21",maintenance:"2020-11-30",end:"2022-04-30",codename:"Erbium"},v13:{start:"2019-10-22",maintenance:"2020-04-01",end:"2020-06-01"},v14:{start:"2020-04-21",lts:"2020-10-27",maintenance:"2021-10-19",end:"2023-04-30",codename:"Fermium"},v15:{start:"2020-10-20",maintenance:"2021-04-01",end:"2021-06-01"},v16:{start:"2021-04-20",lts:"2021-10-26",maintenance:"2022-10-18",end:"2024-04-30",codename:""}},Cw=Object.freeze({__proto__:null,default:{}}),Sw={"0.20":"39",.21:"41",.22:"41",.23:"41",.24:"41",.25:"42",.26:"42",.27:"43",.28:"43",.29:"43","0.30":"44",.31:"45",.32:"45",.33:"45",.34:"45",.35:"45",.36:"47",.37:"49","1.0":"49",1.1:"50",1.2:"51",1.3:"52",1.4:"53",1.5:"54",1.6:"56",1.7:"58",1.8:"59","2.0":"61",2.1:"61","3.0":"66",3.1:"66","4.0":"69",4.1:"69",4.2:"69","5.0":"73","6.0":"76",6.1:"76","7.0":"78",7.1:"78",7.2:"78",7.3:"78","8.0":"80",8.1:"80",8.2:"80",8.3:"80",8.4:"80",8.5:"80","9.0":"83",9.1:"83",9.2:"83",9.3:"83",9.4:"83","10.0":"85",10.1:"85",10.2:"85",10.3:"85",10.4:"85","11.0":"87",11.1:"87",11.2:"87",11.3:"87",11.4:"87","12.0":"89","13.0":"91",13.1:"91","14.0":"92"};function Tw(e){this.name="BrowserslistError",this.message=e,this.browserslist=!0,Error.captureStackTrace&&Error.captureStackTrace(this,Tw)}Tw.prototype=Error.prototype;var jw=Tw;function Pw(){}var Iw={loadQueries:function(){throw new jw("Sharable configs are not supported in client-side build of Browserslist")},getStat:function(e){return e.stats},loadConfig:function(e){if(e.config)throw new jw("Browserslist config are not supported in client-side build")},loadCountry:function(){throw new jw("Country statistics are not supported in client-side build of Browserslist")},loadFeature:function(){throw new jw("Supports queries are not available in client-side build of Browserslist")},currentNode:function(e,t){return e(["maintained node versions"],t)[0]},parseConfig:Pw,readConfig:Pw,findConfig:Pw,clearCaches:Pw,oldDataWarning:Pw},Fw=Kt(Cw),kw=Aw.agents;function Ow(e,t){return 0===(e+".").indexOf(t+".")}function Rw(e){return e.filter((function(e){return"string"==typeof e}))}function Nw(e){var t=e;return 3===e.split(".").length&&(t=e.split(".").slice(0,-1).join(".")),t}function Bw(e){return function(t){return e+" "+t}}function _w(e){return parseInt(e.split(".")[0])}function Lw(e,t){if(0===e.length)return[];var r=Mw(e.map(_w)),n=r[r.length-t];if(!n)return e;for(var s=[],a=e.length-1;a>=0&&!(n>_w(e[a]));a--)s.unshift(e[a]);return s}function Mw(e){for(var t=[],r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}function Uw(e,t,r){for(var n in r)e[t+" "+n]=r[n]}function Gw(e,t){return t=parseFloat(t),">"===e?function(e){return parseFloat(e)>t}:">="===e?function(e){return parseFloat(e)>=t}:"<"===e?function(e){return parseFloat(e)<t}:function(e){return parseFloat(e)<=t}}function Vw(e){return parseInt(e)}function Ww(e,t){return e<t?-1:e>t?1:0}function Hw(e,t){return Ww(parseInt(e[0]),parseInt(t[0]))||Ww(parseInt(e[1]||"0"),parseInt(t[1]||"0"))||Ww(parseInt(e[2]||"0"),parseInt(t[2]||"0"))}function Xw(e,t){switch(void 0===(t=t.split(".").map(Vw))[1]&&(t[1]="x"),e){case"<=":return function(e){return qw(e=e.split(".").map(Vw),t)<=0};default:case">=":return function(e){return qw(e=e.split(".").map(Vw),t)>=0}}}function qw(e,t){return e[0]!==t[0]?e[0]<t[0]?-1:1:"x"===t[1]?0:e[1]!==t[1]?e[1]<t[1]?-1:1:0}function $w(e,t){var r=function(e,t){return-1!==e.versions.indexOf(t)?t:!!nC.versionAliases[e.name][t]&&nC.versionAliases[e.name][t]}(e,t);return r||1===e.versions.length&&e.versions[0]}function Kw(e,t){return e/=1e3,Object.keys(kw).reduce((function(r,n){var s=Jw(n,t);if(!s)return r;var a=Object.keys(s.releaseDate).filter((function(t){return s.releaseDate[t]>=e}));return r.concat(a.map(Bw(s.name)))}),[])}function zw(e){return{name:e.name,versions:e.versions,released:e.released,releaseDate:e.releaseDate}}function Jw(e,t){if(e=e.toLowerCase(),e=nC.aliases[e]||e,t.mobileToDesktop&&nC.desktopNames[e]){var r=nC.data[nC.desktopNames[e]];if("android"===e)return s=zw(nC.data[e]),a=r,s.released=Yw(s.released,a.released),s.versions=Yw(s.versions,a.versions),s;var n=zw(r);return n.name=e,"op_mob"===e&&(n=function(e,t){e.versions=e.versions.map((function(e){return t[e]||e})),e.released=e.versions.map((function(e){return t[e]||e}));var r={};for(var n in e.releaseDate)r[t[n]||n]=e.releaseDate[n];return e.releaseDate=r,e}(n,{"10.0-10.1":"10"})),n}var s,a;return nC.data[e]}function Yw(e,t){var r=t[t.length-1];return e.filter((function(e){return/^(?:[2-4]\.|[34]$)/.test(e)})).concat(t.slice(37-r-1))}function Qw(e,t){var r=Jw(e,t);if(!r)throw new jw("Unknown browser "+e);return r}function Zw(e){return new jw("Unknown browser query `"+e+"`. Maybe you are using old Browserslist or made typo in query.")}function eC(e,t,r){if(r.mobileToDesktop)return e;var n=nC.data.android.released,s=n[n.length-1]-37-t;return s>0?e.slice(-1):e.slice(s-1)}function tC(e,t){return(e=Array.isArray(e)?iC(e.map(sC)):sC(e)).reduce((function(e,r,n){var s=r.queryString,a=0===s.indexOf("not ");if(a){if(0===n)throw new jw("Write any browsers query (for instance, `defaults`) before `"+s+"`");s=s.slice(4)}for(var i=0;i<cC.length;i++){var o=cC[i],u=s.match(o.regexp);if(u){var l=[t].concat(u.slice(1)),c=o.select.apply(nC,l).map((function(e){var r=e.split(" ");return"0"===r[1]?r[0]+" "+Jw(r[0],t).versions[0]:e}));switch(r.type){case 2:return a?e.filter((function(e){return-1===c.indexOf(e)})):e.filter((function(e){return-1!==c.indexOf(e)}));case 1:default:if(a){var p={};return c.forEach((function(e){p[e]=!0})),e.filter((function(e){return!p[e]}))}return e.concat(c)}}}throw Zw(s)}),[])}var rC={};function nC(e,t){if(void 0===t&&(t={}),void 0===t.path&&(t.path=Fw.resolve?Fw.resolve("."):"."),null==e){var r=nC.loadConfig(t);e=r||nC.defaults}if("string"!=typeof e&&!Array.isArray(e))throw new jw("Browser queries must be an array or string. Got "+typeof e+".");var n={ignoreUnknownVersions:t.ignoreUnknownVersions,dangerousExtend:t.dangerousExtend,mobileToDesktop:t.mobileToDesktop,path:t.path,env:t.env};Iw.oldDataWarning(nC.data);var s=Iw.getStat(t,nC.data);if(s)for(var a in n.customUsage={},s)Uw(n.customUsage,a,s[a]);var i=JSON.stringify([e,n]);if(rC[i])return rC[i];var o=Mw(tC(e,n)).sort((function(e,t){if(e=e.split(" "),t=t.split(" "),e[0]===t[0]){var r=e[1].split("-")[0];return Hw(t[1].split("-")[0].split("."),r.split("."))}return Ww(e[0],t[0])}));return ar.env.BROWSERSLIST_DISABLE_CACHE||(rC[i]=o),o}function sC(e){var t=[];do{e=aC(e,t)}while(e);return t}function aC(e,t){var r=/^(?:,\s*|\s+or\s+)(.*)/i,n=/^\s+and\s+(.*)/i;return function(e,t){for(var r=1,n=e.length;r<=n;r++){if(t(e.substr(-r,r),r,n))return e.slice(0,-r)}return""}(e,(function(e,s,a){return n.test(e)?(t.unshift({type:2,queryString:e.match(n)[1]}),!0):r.test(e)?(t.unshift({type:1,queryString:e.match(r)[1]}),!0):s===a&&(t.unshift({type:1,queryString:e.trim()}),!0)}))}function iC(e){return Array.isArray(e)?e.reduce((function(e,t){return e.concat(iC(t))}),[]):[e]}function oC(e,t){var r=vw.filter((function(e){return"nodejs"===e.name})).filter((function(e){return Ow(e.version,t)}));if(0===r.length){if(e.ignoreUnknownVersions)return[];throw new jw("Unknown version "+t+" of Node.js")}return["node "+r[r.length-1].version]}function uC(e,t,r,n){return t=parseInt(t),r=parseInt(r||"01")-1,n=parseInt(n||"01"),Kw(Date.UTC(t,r,n,0,0,0),e)}function lC(e,t,r){t=parseFloat(t);var n=nC.usage.global;if(r)if(r.match(/^my\s+stats$/)){if(!e.customUsage)throw new jw("Custom usage statistics was not provided");n=e.customUsage}else{var s;s=2===r.length?r.toUpperCase():r.toLowerCase(),Iw.loadCountry(nC.usage,s,nC.data),n=nC.usage[s]}for(var a,i=Object.keys(n).sort((function(e,t){return n[t]-n[e]})),o=0,u=[],l=0;l<=i.length&&(a=i[l],0!==n[a])&&(o+=n[a],u.push(a),!(o>=t));l++);return u}nC.cache={},nC.data={},nC.usage={global:{},custom:null},nC.defaults=["> 0.5%","last 2 versions","Firefox ESR","not dead"],nC.aliases={fx:"firefox",ff:"firefox",ios:"ios_saf",explorer:"ie",blackberry:"bb",explorermobile:"ie_mob",operamini:"op_mini",operamobile:"op_mob",chromeandroid:"and_chr",firefoxandroid:"and_ff",ucandroid:"and_uc",qqandroid:"and_qq"},nC.desktopNames={and_chr:"chrome",and_ff:"firefox",ie_mob:"ie",op_mob:"opera",android:"chrome"},nC.versionAliases={},nC.clearCaches=Iw.clearCaches,nC.parseConfig=Iw.parseConfig,nC.readConfig=Iw.readConfig,nC.findConfig=Iw.findConfig,nC.loadConfig=Iw.loadConfig,nC.coverage=function(e,t){var r;if(void 0===t)r=nC.usage.global;else if("my stats"===t){var n={};n.path=Fw.resolve?Fw.resolve("."):".";var s=Iw.getStat(n);if(!s)throw new jw("Custom usage statistics was not provided");for(var a in r={},s)Uw(r,a,s[a])}else if("string"==typeof t)t=t.length>2?t.toLowerCase():t.toUpperCase(),Iw.loadCountry(nC.usage,t,nC.data),r=nC.usage[t];else for(var i in"dataByBrowser"in t&&(t=t.dataByBrowser),r={},t)for(var o in t[i])r[i+" "+o]=t[i][o];return e.reduce((function(e,t){var n=r[t];return void 0===n&&(n=r[t.replace(/ \S+$/," 0")]),e+(n||0)}),0)};var cC=[{regexp:/^last\s+(\d+)\s+major\s+versions?$/i,select:function(e,t){return Object.keys(kw).reduce((function(r,n){var s=Jw(n,e);if(!s)return r;var a=Lw(s.released,t);return a=a.map(Bw(s.name)),"android"===s.name&&(a=eC(a,t,e)),r.concat(a)}),[])}},{regexp:/^last\s+(\d+)\s+versions?$/i,select:function(e,t){return Object.keys(kw).reduce((function(r,n){var s=Jw(n,e);if(!s)return r;var a=s.released.slice(-t);return a=a.map(Bw(s.name)),"android"===s.name&&(a=eC(a,t,e)),r.concat(a)}),[])}},{regexp:/^last\s+(\d+)\s+electron\s+major\s+versions?$/i,select:function(e,t){return Lw(Object.keys(Sw),t).map((function(e){return"chrome "+Sw[e]}))}},{regexp:/^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i,select:function(e,t,r){var n=Qw(r,e),s=Lw(n.released,t).map(Bw(n.name));return"android"===n.name&&(s=eC(s,t,e)),s}},{regexp:/^last\s+(\d+)\s+electron\s+versions?$/i,select:function(e,t){return Object.keys(Sw).slice(-t).map((function(e){return"chrome "+Sw[e]}))}},{regexp:/^last\s+(\d+)\s+(\w+)\s+versions?$/i,select:function(e,t,r){var n=Qw(r,e),s=n.released.slice(-t).map(Bw(n.name));return"android"===n.name&&(s=eC(s,t,e)),s}},{regexp:/^unreleased\s+versions$/i,select:function(e){return Object.keys(kw).reduce((function(t,r){var n=Jw(r,e);if(!n)return t;var s=n.versions.filter((function(e){return-1===n.released.indexOf(e)}));return s=s.map(Bw(n.name)),t.concat(s)}),[])}},{regexp:/^unreleased\s+electron\s+versions?$/i,select:function(){return[]}},{regexp:/^unreleased\s+(\w+)\s+versions?$/i,select:function(e,t){var r=Qw(t,e);return r.versions.filter((function(e){return-1===r.released.indexOf(e)})).map(Bw(r.name))}},{regexp:/^last\s+(\d*.?\d+)\s+years?$/i,select:function(e,t){return Kw(Date.now()-31558432982.4*t,e)}},{regexp:/^since (\d+)$/i,select:uC},{regexp:/^since (\d+)-(\d+)$/i,select:uC},{regexp:/^since (\d+)-(\d+)-(\d+)$/i,select:uC},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/,select:function(e,t,r){r=parseFloat(r);var n=nC.usage.global;return Object.keys(n).reduce((function(e,s){return">"===t?n[s]>r&&e.push(s):"<"===t?n[s]<r&&e.push(s):"<="===t?n[s]<=r&&e.push(s):n[s]>=r&&e.push(s),e}),[])}},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/,select:function(e,t,r){if(r=parseFloat(r),!e.customUsage)throw new jw("Custom usage statistics was not provided");var n=e.customUsage;return Object.keys(n).reduce((function(e,s){return">"===t?n[s]>r&&e.push(s):"<"===t?n[s]<r&&e.push(s):"<="===t?n[s]<=r&&e.push(s):n[s]>=r&&e.push(s),e}),[])}},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/,select:function(e,t,r,n){r=parseFloat(r);var s=Iw.loadStat(e,n,nC.data);if(s)for(var a in e.customUsage={},s)Uw(e.customUsage,a,s[a]);if(!e.customUsage)throw new jw("Custom usage statistics was not provided");var i=e.customUsage;return Object.keys(i).reduce((function(e,n){return">"===t?i[n]>r&&e.push(n):"<"===t?i[n]<r&&e.push(n):"<="===t?i[n]<=r&&e.push(n):i[n]>=r&&e.push(n),e}),[])}},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/,select:function(e,t,r,n){r=parseFloat(r),n=2===n.length?n.toUpperCase():n.toLowerCase(),Iw.loadCountry(nC.usage,n,nC.data);var s=nC.usage[n];return Object.keys(s).reduce((function(e,n){return">"===t?s[n]>r&&e.push(n):"<"===t?s[n]<r&&e.push(n):"<="===t?s[n]<=r&&e.push(n):s[n]>=r&&e.push(n),e}),[])}},{regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%$/,select:lC},{regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/,select:lC},{regexp:/^supports\s+([\w-]+)$/,select:function(e,t){Iw.loadFeature(nC.cache,t);var r=nC.cache[t];return Object.keys(r).reduce((function(e,t){var n=r[t];return(n.indexOf("y")>=0||n.indexOf("a")>=0)&&e.push(t),e}),[])}},{regexp:/^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t,r){var n=Nw(t),s=Nw(r);if(!Sw[n])throw new jw("Unknown version "+t+" of electron");if(!Sw[s])throw new jw("Unknown version "+r+" of electron");return t=parseFloat(t),r=parseFloat(r),Object.keys(Sw).filter((function(e){var n=parseFloat(e);return n>=t&&n<=r})).map((function(e){return"chrome "+Sw[e]}))}},{regexp:/^node\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t,r){return vw.filter((function(e){return"nodejs"===e.name})).map((function(e){return e.version})).filter(Xw(">=",t)).filter(Xw("<=",r)).map((function(e){return"node "+e}))}},{regexp:/^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t,r,n){var s=Qw(t,e);return r=parseFloat($w(s,r)||r),n=parseFloat($w(s,n)||n),s.released.filter((function(e){var t=parseFloat(e);return t>=r&&t<=n})).map(Bw(s.name))}},{regexp:/^electron\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,t,r){var n=Nw(r);return Object.keys(Sw).filter(Gw(t,n)).map((function(e){return"chrome "+Sw[e]}))}},{regexp:/^node\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,t,r){return vw.filter((function(e){return"nodejs"===e.name})).map((function(e){return e.version})).filter(function(e,t){return(t=t.split(".").map(Vw))[1]=t[1]||0,t[2]=t[2]||0,">"===e?function(e){return Hw(e=e.split(".").map(Vw),t)>0}:">="===e?function(e){return Hw(e=e.split(".").map(Vw),t)>=0}:"<"===e?function(e){return e=e.split(".").map(Vw),Hw(t,e)>0}:function(e){return e=e.split(".").map(Vw),Hw(t,e)>=0}}(t,r)).map((function(e){return"node "+e}))}},{regexp:/^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/,select:function(e,t,r,n){var s=Qw(t,e),a=nC.versionAliases[s.name][n];return a&&(n=a),s.released.filter(Gw(r,n)).map((function(e){return s.name+" "+e}))}},{regexp:/^(firefox|ff|fx)\s+esr$/i,select:function(){return["firefox 78"]}},{regexp:/(operamini|op_mini)\s+all/i,select:function(){return["op_mini all"]}},{regexp:/^electron\s+([\d.]+)$/i,select:function(e,t){var r=Nw(t),n=Sw[r];if(!n)throw new jw("Unknown version "+t+" of electron");return["chrome "+n]}},{regexp:/^node\s+(\d+)$/i,select:oC},{regexp:/^node\s+(\d+\.\d+)$/i,select:oC},{regexp:/^node\s+(\d+\.\d+\.\d+)$/i,select:oC},{regexp:/^current\s+node$/i,select:function(e){return[Iw.currentNode(tC,e)]}},{regexp:/^maintained\s+node\s+versions$/i,select:function(e){var t=Date.now();return tC(Object.keys(ww).filter((function(e){return t<Date.parse(ww[e].end)&&t>Date.parse(ww[e].start)&&function(e){var t=e.slice(1);return vw.some((function(e){return Ow(e.version,t)}))}(e)})).map((function(e){return"node "+e.slice(1)})),e)}},{regexp:/^phantomjs\s+1.9$/i,select:function(){return["safari 5"]}},{regexp:/^phantomjs\s+2.1$/i,select:function(){return["safari 6"]}},{regexp:/^(\w+)\s+(tp|[\d.]+)$/i,select:function(e,t,r){/^tp$/i.test(r)&&(r="TP");var n=Qw(t,e),s=$w(n,r);if(s)r=s;else{if(!(s=$w(n,s=-1===r.indexOf(".")?r+".0":r.replace(/\.0$/,"")))){if(e.ignoreUnknownVersions)return[];throw new jw("Unknown version "+r+" of "+t)}r=s}return[n.name+" "+r]}},{regexp:/^browserslist config$/i,select:function(e){return nC(void 0,e)}},{regexp:/^extends (.+)$/i,select:function(e,t){return tC(Iw.loadQueries(e,t),e)}},{regexp:/^defaults$/i,select:function(e){return tC(nC.defaults,e)}},{regexp:/^dead$/i,select:function(e){return tC(["ie <= 10","ie_mob <= 11","bb <= 10","op_mob <= 12.1","samsung 4"],e)}},{regexp:/^(\w+)$/i,select:function(e,t){throw Jw(t,e)?new jw("Specify versions in Browserslist query for browser "+t):Zw(t)}}];!function(){for(var e in kw){var t=kw[e];nC.data[e]={name:e,versions:Rw(kw[e].versions),released:Rw(kw[e].versions.slice(0,-3)),releaseDate:kw[e].release_date},Uw(nC.usage.global,e,t.usage_global),nC.versionAliases[e]={};for(var r=0;r<t.versions.length;r++){var n=t.versions[r];if(n&&-1!==n.indexOf("-"))for(var s=n.split("-"),a=0;a<s.length;a++)nC.versionAliases[e][s[a]]=n}}nC.versionAliases.op_mob[59]="58"}();var pC=nC,dC=Math.min;function fC(e,t){var r=t.map((function(t){return function(e,t){var r,n,s=[],a=[],i=e.length,o=t.length;if(!i)return o;if(!o)return i;for(n=0;n<=o;n++)s[n]=n;for(r=1;r<=i;r++){for(a=[r],n=1;n<=o;n++)a[n]=e[r-1]===t[n-1]?s[n-1]:dC(s[n-1],s[n],a[n-1])+1;s=a}return a[o]}(t,e)}));return t[r.indexOf(dC.apply(void 0,c(r)))]}var hC=function(){function e(e){this.descriptor=e}var t=e.prototype;return t.validateTopLevelOptions=function(e,t){for(var r=Object.keys(t),n=0,s=Object.keys(e);n<s.length;n++){var a=s[n];if(!r.includes(a))throw new Error(this.formatMessage("'"+a+"' is not a valid top-level option.\n- Did you mean '"+fC(a,r)+"'?"))}},t.validateBooleanOption=function(e,t,r){return void 0===t?r:(this.invariant("boolean"==typeof t,"'"+e+"' option must be a boolean."),t)},t.validateStringOption=function(e,t,r){return void 0===t?r:(this.invariant("string"==typeof t,"'"+e+"' option must be a string."),t)},t.invariant=function(e,t){if(!e)throw new Error(this.formatMessage(t))},t.formatMessage=function(e){return this.descriptor+": "+e},e}(),mC={"es6.module":{chrome:"61",and_chr:"61",edge:"16",firefox:"60",and_ff:"60",node:"13.2.0",opera:"48",op_mob:"48",safari:"10.1",ios:"10.3",samsung:"8.2",android:"61",electron:"2.0",ios_saf:"10.3"}},yC={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},gC="object"==typeof ar&&ar.env&&ar.env.NODE_DEBUG&&/\bsemver\b/i.test(ar.env.NODE_DEBUG)?function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=console).error.apply(e,["SEMVER"].concat(r))}:function(){},vC=zt((function(e,t){var r=yC.MAX_SAFE_COMPONENT_LENGTH,n=(t=e.exports={}).re=[],s=t.src=[],a=t.t={},i=0,o=function(e,t,r){var o=i++;gC(o,t),a[e]=o,s[o]=t,n[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION","("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")"),o("MAINVERSIONLOOSE","("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")"),o("PRERELEASEIDENTIFIER","(?:"+s[a.NUMERICIDENTIFIER]+"|"+s[a.NONNUMERICIDENTIFIER]+")"),o("PRERELEASEIDENTIFIERLOOSE","(?:"+s[a.NUMERICIDENTIFIERLOOSE]+"|"+s[a.NONNUMERICIDENTIFIER]+")"),o("PRERELEASE","(?:-("+s[a.PRERELEASEIDENTIFIER]+"(?:\\."+s[a.PRERELEASEIDENTIFIER]+")*))"),o("PRERELEASELOOSE","(?:-?("+s[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[a.PRERELEASEIDENTIFIERLOOSE]+")*))"),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD","(?:\\+("+s[a.BUILDIDENTIFIER]+"(?:\\."+s[a.BUILDIDENTIFIER]+")*))"),o("FULLPLAIN","v?"+s[a.MAINVERSION]+s[a.PRERELEASE]+"?"+s[a.BUILD]+"?"),o("FULL","^"+s[a.FULLPLAIN]+"$"),o("LOOSEPLAIN","[v=\\s]*"+s[a.MAINVERSIONLOOSE]+s[a.PRERELEASELOOSE]+"?"+s[a.BUILD]+"?"),o("LOOSE","^"+s[a.LOOSEPLAIN]+"$"),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",s[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),o("XRANGEIDENTIFIER",s[a.NUMERICIDENTIFIER]+"|x|X|\\*"),o("XRANGEPLAIN","[v=\\s]*("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:"+s[a.PRERELEASE]+")?"+s[a.BUILD]+"?)?)?"),o("XRANGEPLAINLOOSE","[v=\\s]*("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:"+s[a.PRERELEASELOOSE]+")?"+s[a.BUILD]+"?)?)?"),o("XRANGE","^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAIN]+"$"),o("XRANGELOOSE","^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAINLOOSE]+"$"),o("COERCE","(^|[^\\d])(\\d{1,"+r+"})(?:\\.(\\d{1,"+r+"}))?(?:\\.(\\d{1,"+r+"}))?(?:$|[^\\d])"),o("COERCERTL",s[a.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM","(\\s*)"+s[a.LONETILDE]+"\\s+",!0),t.tildeTrimReplace="$1~",o("TILDE","^"+s[a.LONETILDE]+s[a.XRANGEPLAIN]+"$"),o("TILDELOOSE","^"+s[a.LONETILDE]+s[a.XRANGEPLAINLOOSE]+"$"),o("LONECARET","(?:\\^)"),o("CARETTRIM","(\\s*)"+s[a.LONECARET]+"\\s+",!0),t.caretTrimReplace="$1^",o("CARET","^"+s[a.LONECARET]+s[a.XRANGEPLAIN]+"$"),o("CARETLOOSE","^"+s[a.LONECARET]+s[a.XRANGEPLAINLOOSE]+"$"),o("COMPARATORLOOSE","^"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+")$|^$"),o("COMPARATOR","^"+s[a.GTLT]+"\\s*("+s[a.FULLPLAIN]+")$|^$"),o("COMPARATORTRIM","(\\s*)"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+"|"+s[a.XRANGEPLAIN]+")",!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE","^\\s*("+s[a.XRANGEPLAIN]+")\\s+-\\s+("+s[a.XRANGEPLAIN]+")\\s*$"),o("HYPHENRANGELOOSE","^\\s*("+s[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[a.XRANGEPLAINLOOSE]+")\\s*$"),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),"/$$rollup_base$$/packages/babel-helper-compilation-targets/node_modules/semver/node_modules/semver-BABEL_8_BREAKING-true/internal"),bC=["includePrerelease","loose","rtl"],EC=function(e){return e?"object"!=typeof e?{loose:!0}:bC.filter((function(t){return e[t]})).reduce((function(e,t){return e[t]=!0,e}),{}):{}},xC=/^[0-9]+$/,DC=function(e,t){var r=xC.test(e),n=xC.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},AC=DC,wC=yC.MAX_LENGTH,CC=yC.MAX_SAFE_INTEGER,SC=vC.re,TC=vC.t,jC=AC,PC=function(){function e(t,r){if(r=EC(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>wC)throw new TypeError("version is longer than "+wC+" characters");gC("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var n=t.trim().match(r.loose?SC[TC.LOOSE]:SC[TC.FULL]);if(!n)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>CC||this.major<0)throw new TypeError("Invalid major version");if(this.minor>CC||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>CC||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<CC)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}var t=e.prototype;return t.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},t.toString=function(){return this.version},t.compare=function(t){if(gC("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)},t.compareMain=function(t){return t instanceof e||(t=new e(t,this.options)),jC(this.major,t.major)||jC(this.minor,t.minor)||jC(this.patch,t.patch)},t.comparePre=function(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var r=0;do{var n=this.prerelease[r],s=t.prerelease[r];if(gC("prerelease compare",r,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return jC(n,s)}while(++r)},t.compareBuild=function(t){t instanceof e||(t=new e(t,this.options));var r=0;do{var n=this.build[r],s=t.build[r];if(gC("prerelease compare",r,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return jC(n,s)}while(++r)},t.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e}(),IC=(vC.re,vC.t,function(e,t,r){return new PC(e,r).compare(new PC(t,r))}),FC=function(e,t,r){return 0===IC(e,t,r)},kC=function(e,t,r){return IC(e,t,r)>0},OC=function(e,t,r){return IC(e,t,r)<0},RC=function(e,t,r){return 0!==IC(e,t,r)},NC=function(e,t,r){return IC(e,t,r)>=0},BC=function(e,t,r){return IC(e,t,r)<=0},_C=function(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return FC(e,r,n);case"!=":return RC(e,r,n);case">":return kC(e,r,n);case">=":return NC(e,r,n);case"<":return OC(e,r,n);case"<=":return BC(e,r,n);default:throw new TypeError("Invalid operator: "+t)}},LC=(vC.re,vC.t,MC);function MC(e){var t=this;if(t instanceof MC||(t=new MC),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}function UC(e,t,r){var n=t===e.head?new WC(r,null,t,e):new WC(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function GC(e,t){e.tail=new WC(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function VC(e,t){e.head=new WC(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function WC(e,t,r,n){if(!(this instanceof WC))return new WC(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}MC.Node=WC,MC.create=MC,MC.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},MC.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},MC.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},MC.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)GC(this,arguments[e]);return this.length},MC.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)VC(this,arguments[e]);return this.length},MC.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},MC.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},MC.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},MC.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},MC.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},MC.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},MC.prototype.map=function(e,t){t=t||this;for(var r=new MC,n=this.head;null!==n;)r.push(e.call(t,n.value,this)),n=n.next;return r},MC.prototype.mapReverse=function(e,t){t=t||this;for(var r=new MC,n=this.tail;null!==n;)r.push(e.call(t,n.value,this)),n=n.prev;return r},MC.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var s=0;null!==n;s++)r=e(r,n.value,s),n=n.next;return r},MC.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var s=this.length-1;null!==n;s--)r=e(r,n.value,s),n=n.prev;return r},MC.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},MC.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},MC.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new MC;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,s=this.head;null!==s&&n<e;n++)s=s.next;for(;null!==s&&n<t;n++,s=s.next)r.push(s.value);return r},MC.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new MC;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,s=this.tail;null!==s&&n>t;n--)s=s.prev;for(;null!==s&&n>e;n--,s=s.prev)r.push(s.value);return r},MC.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;null!==n&&r<e;r++)n=n.next;var s=[];for(r=0;n&&r<t;r++)s.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(r=0;r<(arguments.length<=2?0:arguments.length-2);r++)n=UC(this,n,r+2<2||arguments.length<=r+2?void 0:arguments[r+2]);return s},MC.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{!function(e){e.prototype[Symbol.iterator]=bh.mark((function e(){var t;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}(MC)}catch(e){}var HC=Symbol("max"),XC=Symbol("length"),qC=Symbol("lengthCalculator"),$C=Symbol("allowStale"),KC=Symbol("maxAge"),zC=Symbol("dispose"),JC=Symbol("noDisposeOnSet"),YC=Symbol("lruList"),QC=Symbol("cache"),ZC=Symbol("updateAgeOnGet"),eS=function(){return 1},tS=function(){function e(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[HC]=e.max||1/0;var t=e.length||eS;if(this[qC]="function"!=typeof t?eS:t,this[$C]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[KC]=e.maxAge||0,this[zC]=e.dispose,this[JC]=e.noDisposeOnSet||!1,this[ZC]=e.updateAgeOnGet||!1,this.reset()}var t=e.prototype;return t.rforEach=function(e,t){t=t||this;for(var r=this[YC].tail;null!==r;){var n=r.prev;oS(this,e,r,t),r=n}},t.forEach=function(e,t){t=t||this;for(var r=this[YC].head;null!==r;){var n=r.next;oS(this,e,r,t),r=n}},t.keys=function(){return this[YC].toArray().map((function(e){return e.key}))},t.values=function(){return this[YC].toArray().map((function(e){return e.value}))},t.reset=function(){var e=this;this[zC]&&this[YC]&&this[YC].length&&this[YC].forEach((function(t){return e[zC](t.key,t.value)})),this[QC]=new Map,this[YC]=new LC,this[XC]=0},t.dump=function(){var e=this;return this[YC].map((function(t){return!nS(e,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}})).toArray().filter((function(e){return e}))},t.dumpLru=function(){return this[YC]},t.set=function(e,t,r){if((r=r||this[KC])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");var n=r?Date.now():0,s=this[qC](t,e);if(this[QC].has(e)){if(s>this[HC])return aS(this,this[QC].get(e)),!1;var a=this[QC].get(e).value;return this[zC]&&(this[JC]||this[zC](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[XC]+=s-a.length,a.length=s,this.get(e),sS(this),!0}var i=new iS(e,t,s,n,r);return i.length>this[HC]?(this[zC]&&this[zC](e,t),!1):(this[XC]+=i.length,this[YC].unshift(i),this[QC].set(e,this[YC].head),sS(this),!0)},t.has=function(e){if(!this[QC].has(e))return!1;var t=this[QC].get(e).value;return!nS(this,t)},t.get=function(e){return rS(this,e,!0)},t.peek=function(e){return rS(this,e,!1)},t.pop=function(){var e=this[YC].tail;return e?(aS(this,e),e.value):null},t.del=function(e){aS(this,this[QC].get(e))},t.load=function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],s=n.e||0;if(0===s)this.set(n.k,n.v);else{var a=s-t;a>0&&this.set(n.k,n.v,a)}}},t.prune=function(){var e=this;this[QC].forEach((function(t,r){return rS(e,r,!1)}))},n(e,[{key:"max",get:function(){return this[HC]},set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[HC]=e||1/0,sS(this)}},{key:"allowStale",get:function(){return this[$C]},set:function(e){this[$C]=!!e}},{key:"maxAge",get:function(){return this[KC]},set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[KC]=e,sS(this)}},{key:"lengthCalculator",get:function(){return this[qC]},set:function(e){var t=this;"function"!=typeof e&&(e=eS),e!==this[qC]&&(this[qC]=e,this[XC]=0,this[YC].forEach((function(e){e.length=t[qC](e.value,e.key),t[XC]+=e.length}))),sS(this)}},{key:"length",get:function(){return this[XC]}},{key:"itemCount",get:function(){return this[YC].length}}]),e}(),rS=function(e,t,r){var n=e[QC].get(t);if(n){var s=n.value;if(nS(e,s)){if(aS(e,n),!e[$C])return}else r&&(e[ZC]&&(n.value.now=Date.now()),e[YC].unshiftNode(n));return s.value}},nS=function(e,t){if(!t||!t.maxAge&&!e[KC])return!1;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[KC]&&r>e[KC]},sS=function(e){if(e[XC]>e[HC])for(var t=e[YC].tail;e[XC]>e[HC]&&null!==t;){var r=t.prev;aS(e,t),t=r}},aS=function(e,t){if(t){var r=t.value;e[zC]&&e[zC](r.key,r.value),e[XC]-=r.length,e[QC].delete(r.key),e[YC].removeNode(t)}},iS=function(e,t,r,n,s){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=s||0},oS=function(e,t,r,n){var s=r.value;nS(e,s)&&(aS(e,r),e[$C]||(s=void 0)),s&&t.call(n,s.value,s.key,e)},uS=tS,lS=function(){function e(t,r){var n=this;if(r=EC(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof kS)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((function(e){return n.parseRange(e.trim())})).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);if(this.set.length>1){var s=this.set[0];if(this.set=this.set.filter((function(e){return!yS(e[0])})),0===this.set.length)this.set=[s];else if(this.set.length>1)for(var a,i=f(this.set);!(a=i()).done;){var o=a.value;if(1===o.length&&gS(o[0])){this.set=[o];break}}}this.format()}var t=e.prototype;return t.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},t.toString=function(){return this.range},t.parseRange=function(e){var t=this;e=e.trim();var r="parseRange:"+Object.keys(this.options).join(",")+":"+e,n=cS.get(r);if(n)return n;var s=this.options.loose,a=s?pS[dS.HYPHENRANGELOOSE]:pS[dS.HYPHENRANGE];e=e.replace(a,PS(this.options.includePrerelease)),gC("hyphen replace",e),e=e.replace(pS[dS.COMPARATORTRIM],fS),gC("comparator trim",e,pS[dS.COMPARATORTRIM]),e=(e=(e=e.replace(pS[dS.TILDETRIM],hS)).replace(pS[dS.CARETTRIM],mS)).split(/\s+/).join(" ");var i=s?pS[dS.COMPARATORLOOSE]:pS[dS.COMPARATOR],o=e.split(" ").map((function(e){return bS(e,t.options)})).join(" ").split(/\s+/).map((function(e){return jS(e,t.options)})).filter(this.options.loose?function(e){return!!e.match(i)}:function(){return!0}).map((function(e){return new kS(e,t.options)}));o.length;for(var u,l=new Map,p=f(o);!(u=p()).done;){var d=u.value;if(yS(d))return[d];l.set(d.value,d)}l.size>1&&l.has("")&&l.delete("");var h=c(l.values());return cS.set(r,h),h},t.intersects=function(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((function(e){return vS(e,r)&&t.set.some((function(t){return vS(t,r)&&e.every((function(e){return t.every((function(t){return e.intersects(t,r)}))}))}))}))},t.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new PC(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(IS(this.set[t],e,this.options))return!0;return!1},e}(),cS=new uS({max:1e3}),pS=vC.re,dS=vC.t,fS=vC.comparatorTrimReplace,hS=vC.tildeTrimReplace,mS=vC.caretTrimReplace,yS=function(e){return"<0.0.0-0"===e.value},gS=function(e){return""===e.value},vS=function(e,t){for(var r=!0,n=e.slice(),s=n.pop();r&&n.length;)r=n.every((function(e){return s.intersects(e,t)})),s=n.pop();return r},bS=function(e,t){return gC("comp",e,t),e=AS(e,t),gC("caret",e),e=xS(e,t),gC("tildes",e),e=CS(e,t),gC("xrange",e),e=TS(e,t),gC("stars",e),e},ES=function(e){return!e||"x"===e.toLowerCase()||"*"===e},xS=function(e,t){return e.trim().split(/\s+/).map((function(e){return DS(e,t)})).join(" ")},DS=function(e,t){var r=t.loose?pS[dS.TILDELOOSE]:pS[dS.TILDE];return e.replace(r,(function(t,r,n,s,a){var i;return gC("tilde",e,t,r,n,s,a),ES(r)?i="":ES(n)?i=">="+r+".0.0 <"+(+r+1)+".0.0-0":ES(s)?i=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0-0":a?(gC("replaceTilde pr",a),i=">="+r+"."+n+"."+s+"-"+a+" <"+r+"."+(+n+1)+".0-0"):i=">="+r+"."+n+"."+s+" <"+r+"."+(+n+1)+".0-0",gC("tilde return",i),i}))},AS=function(e,t){return e.trim().split(/\s+/).map((function(e){return wS(e,t)})).join(" ")},wS=function(e,t){gC("caret",e,t);var r=t.loose?pS[dS.CARETLOOSE]:pS[dS.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(function(t,r,s,a,i){var o;return gC("caret",e,t,r,s,a,i),ES(r)?o="":ES(s)?o=">="+r+".0.0"+n+" <"+(+r+1)+".0.0-0":ES(a)?o="0"===r?">="+r+"."+s+".0"+n+" <"+r+"."+(+s+1)+".0-0":">="+r+"."+s+".0"+n+" <"+(+r+1)+".0.0-0":i?(gC("replaceCaret pr",i),o="0"===r?"0"===s?">="+r+"."+s+"."+a+"-"+i+" <"+r+"."+s+"."+(+a+1)+"-0":">="+r+"."+s+"."+a+"-"+i+" <"+r+"."+(+s+1)+".0-0":">="+r+"."+s+"."+a+"-"+i+" <"+(+r+1)+".0.0-0"):(gC("no pr"),o="0"===r?"0"===s?">="+r+"."+s+"."+a+n+" <"+r+"."+s+"."+(+a+1)+"-0":">="+r+"."+s+"."+a+n+" <"+r+"."+(+s+1)+".0-0":">="+r+"."+s+"."+a+" <"+(+r+1)+".0.0-0"),gC("caret return",o),o}))},CS=function(e,t){return gC("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return SS(e,t)})).join(" ")},SS=function(e,t){e=e.trim();var r=t.loose?pS[dS.XRANGELOOSE]:pS[dS.XRANGE];return e.replace(r,(function(r,n,s,a,i,o){gC("xRange",e,r,n,s,a,i,o);var u=ES(s),l=u||ES(a),c=l||ES(i),p=c;return"="===n&&p&&(n=""),o=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(l&&(a=0),i=0,">"===n?(n=">=",l?(s=+s+1,a=0,i=0):(a=+a+1,i=0)):"<="===n&&(n="<",l?s=+s+1:a=+a+1),"<"===n&&(o="-0"),r=n+s+"."+a+"."+i+o):l?r=">="+s+".0.0"+o+" <"+(+s+1)+".0.0-0":c&&(r=">="+s+"."+a+".0"+o+" <"+s+"."+(+a+1)+".0-0"),gC("xRange return",r),r}))},TS=function(e,t){return gC("replaceStars",e,t),e.trim().replace(pS[dS.STAR],"")},jS=function(e,t){return gC("replaceGTE0",e,t),e.trim().replace(pS[t.includePrerelease?dS.GTE0PRE:dS.GTE0],"")},PS=function(e){return function(t,r,n,s,a,i,o,u,l,c,p,d,f){return((r=ES(n)?"":ES(s)?">="+n+".0.0"+(e?"-0":""):ES(a)?">="+n+"."+s+".0"+(e?"-0":""):i?">="+r:">="+r+(e?"-0":""))+" "+(u=ES(l)?"":ES(c)?"<"+(+l+1)+".0.0-0":ES(p)?"<"+l+"."+(+c+1)+".0-0":d?"<="+l+"."+c+"."+p+"-"+d:e?"<"+l+"."+c+"."+(+p+1)+"-0":"<="+u)).trim()}},IS=function(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(var s=0;s<e.length;s++)if(gC(e[s].semver),e[s].semver!==kS.ANY&&e[s].semver.prerelease.length>0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0},FS=Symbol("SemVer ANY"),kS=function(){function e(t,r){if(r=EC(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}gC("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===FS?this.value="":this.value=this.operator+this.semver.version,gC("comp",this)}var t=e.prototype;return t.parse=function(e){var t=this.options.loose?OS[RS.COMPARATORLOOSE]:OS[RS.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new PC(r[2],this.options.loose):this.semver=FS},t.toString=function(){return this.value},t.test=function(e){if(gC("Comparator.test",e,this.options.loose),this.semver===FS||e===FS)return!0;if("string"==typeof e)try{e=new PC(e,this.options)}catch(e){return!1}return _C(e,this.operator,this.semver,this.options)},t.intersects=function(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");if(r&&"object"==typeof r||(r={loose:!!r,includePrerelease:!1}),""===this.operator)return""===this.value||new lS(t.value,r).test(this.value);if(""===t.operator)return""===t.value||new lS(this.value,r).test(t.semver);var n=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),a=this.semver.version===t.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),o=_C(this.semver,"<",t.semver,r)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),u=_C(this.semver,">",t.semver,r)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return n||s||a&&i||o||u},n(e,null,[{key:"ANY",get:function(){return FS}}]),e}(),OS=vC.re,RS=vC.t;kS.ANY,kS.ANY;vC.re,vC.src,vC.t;var NS=zt((function(e,t){var r;t=e.exports=p,r="object"==typeof ar&&ar.env&&ar.env.NODE_DEBUG&&/\bsemver\b/i.test(ar.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=Number.MAX_SAFE_INTEGER||9007199254740991,s=t.re=[],a=t.src=[],i=t.tokens={},o=0;function u(e){i[e]=o++}u("NUMERICIDENTIFIER"),a[i.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),a[i.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),a[i.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),a[i.MAINVERSION]="("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),a[i.MAINVERSIONLOOSE]="("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),a[i.PRERELEASEIDENTIFIER]="(?:"+a[i.NUMERICIDENTIFIER]+"|"+a[i.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),a[i.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[i.NUMERICIDENTIFIERLOOSE]+"|"+a[i.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),a[i.PRERELEASE]="(?:-("+a[i.PRERELEASEIDENTIFIER]+"(?:\\."+a[i.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),a[i.PRERELEASELOOSE]="(?:-?("+a[i.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[i.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),a[i.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),a[i.BUILD]="(?:\\+("+a[i.BUILDIDENTIFIER]+"(?:\\."+a[i.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),a[i.FULLPLAIN]="v?"+a[i.MAINVERSION]+a[i.PRERELEASE]+"?"+a[i.BUILD]+"?",a[i.FULL]="^"+a[i.FULLPLAIN]+"$",u("LOOSEPLAIN"),a[i.LOOSEPLAIN]="[v=\\s]*"+a[i.MAINVERSIONLOOSE]+a[i.PRERELEASELOOSE]+"?"+a[i.BUILD]+"?",u("LOOSE"),a[i.LOOSE]="^"+a[i.LOOSEPLAIN]+"$",u("GTLT"),a[i.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),a[i.XRANGEIDENTIFIERLOOSE]=a[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),a[i.XRANGEIDENTIFIER]=a[i.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),a[i.XRANGEPLAIN]="[v=\\s]*("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:"+a[i.PRERELEASE]+")?"+a[i.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),a[i.XRANGEPLAINLOOSE]="[v=\\s]*("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:"+a[i.PRERELEASELOOSE]+")?"+a[i.BUILD]+"?)?)?",u("XRANGE"),a[i.XRANGE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAIN]+"$",u("XRANGELOOSE"),a[i.XRANGELOOSE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAINLOOSE]+"$",u("COERCE"),a[i.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),s[i.COERCERTL]=new RegExp(a[i.COERCE],"g"),u("LONETILDE"),a[i.LONETILDE]="(?:~>?)",u("TILDETRIM"),a[i.TILDETRIM]="(\\s*)"+a[i.LONETILDE]+"\\s+",s[i.TILDETRIM]=new RegExp(a[i.TILDETRIM],"g");u("TILDE"),a[i.TILDE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAIN]+"$",u("TILDELOOSE"),a[i.TILDELOOSE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAINLOOSE]+"$",u("LONECARET"),a[i.LONECARET]="(?:\\^)",u("CARETTRIM"),a[i.CARETTRIM]="(\\s*)"+a[i.LONECARET]+"\\s+",s[i.CARETTRIM]=new RegExp(a[i.CARETTRIM],"g");u("CARET"),a[i.CARET]="^"+a[i.LONECARET]+a[i.XRANGEPLAIN]+"$",u("CARETLOOSE"),a[i.CARETLOOSE]="^"+a[i.LONECARET]+a[i.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),a[i.COMPARATORLOOSE]="^"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),a[i.COMPARATOR]="^"+a[i.GTLT]+"\\s*("+a[i.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),a[i.COMPARATORTRIM]="(\\s*)"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+"|"+a[i.XRANGEPLAIN]+")",s[i.COMPARATORTRIM]=new RegExp(a[i.COMPARATORTRIM],"g");u("HYPHENRANGE"),a[i.HYPHENRANGE]="^\\s*("+a[i.XRANGEPLAIN]+")\\s+-\\s+("+a[i.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),a[i.HYPHENRANGELOOSE]="^\\s*("+a[i.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[i.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),a[i.STAR]="(<|>)?=?\\s*\\*";for(var l=0;l<o;l++)r(l,a[l]),s[l]||(s[l]=new RegExp(a[l]));function c(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?s[i.LOOSE]:s[i.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?s[i.LOOSE]:s[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=c,t.valid=function(e,t){var r=c(e,t);return r?r.version:null},t.clean=function(e,t){var r=c(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return f(n,s)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var n=this.build[t],s=e.build[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return f(n,s)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new p(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var r=c(e),n=c(t),s="";if(r.prerelease.length||n.prerelease.length){s="pre";var a="prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return s+i;return a},t.compareIdentifiers=f;var d=/^[0-9]+$/;function f(e,t){var r=d.test(e),n=d.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function h(e,t,r){return new p(e,r).compare(new p(t,r))}function m(e,t,r){return h(e,t,r)>0}function y(e,t,r){return h(e,t,r)<0}function g(e,t,r){return 0===h(e,t,r)}function v(e,t,r){return 0!==h(e,t,r)}function b(e,t,r){return h(e,t,r)>=0}function E(e,t,r){return h(e,t,r)<=0}function x(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return g(e,r,n);case"!=":return v(e,r,n);case">":return m(e,r,n);case">=":return b(e,r,n);case"<":return y(e,r,n);case"<=":return E(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function D(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof D){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof D))return new D(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===A?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,r){var n=new p(e,r),s=new p(t,r);return n.compare(s)||n.compareBuild(s)},t.rcompare=function(e,t,r){return h(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=m,t.lt=y,t.eq=g,t.neq=v,t.gte=b,t.lte=E,t.cmp=x,t.Comparator=D;var A={};function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new w(e.raw,t);if(e instanceof D)return new w(e.value,t);if(!(this instanceof w))return new w(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function C(e,t){for(var r=!0,n=e.slice(),s=n.pop();r&&n.length;)r=n.every((function(e){return s.intersects(e,t)})),s=n.pop();return r}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function T(e,t,r,n,s,a,i,o,u,l,c,p,d){return((t=S(r)?"":S(n)?">="+r+".0.0":S(s)?">="+r+"."+n+".0":">="+t)+" "+(o=S(u)?"":S(l)?"<"+(+u+1)+".0.0":S(c)?"<"+u+"."+(+l+1)+".0":p?"<="+u+"."+l+"."+c+"-"+p:"<="+o)).trim()}function j(e,t,n){for(var s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(s=0;s<e.length;s++)if(r(e[s].semver),e[s].semver!==A&&e[s].semver.prerelease.length>0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function P(e,t,r){try{t=new w(t,r)}catch(e){return!1}return t.test(e)}function I(e,t,r,n){var s,a,i,o,u;switch(e=new p(e,n),t=new w(t,n),r){case">":s=m,a=E,i=y,o=">",u=">=";break;case"<":s=y,a=b,i=m,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,t,n))return!1;for(var l=0;l<t.set.length;++l){var c=t.set[l],d=null,f=null;if(c.forEach((function(e){e.semver===A&&(e=new D(">=0.0.0")),d=d||e,f=f||e,s(e.semver,d.semver,n)?d=e:i(e.semver,f.semver,n)&&(f=e)})),d.operator===o||d.operator===u)return!1;if((!f.operator||f.operator===o)&&a(e,f.semver))return!1;if(f.operator===u&&i(e,f.semver))return!1}return!0}D.prototype.parse=function(e){var t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new p(r[2],this.options.loose):this.semver=A},D.prototype.toString=function(){return this.value},D.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return x(e,this.operator,this.semver,this.options)},D.prototype.intersects=function(e,t){if(!(e instanceof D))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new w(e.value,t),P(this.value,r,t));if(""===e.operator)return""===e.value||(r=new w(this.value,t),P(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||s||a&&i||o||u},t.Range=w,w.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},w.prototype.toString=function(){return this.range},w.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[i.HYPHENRANGELOOSE]:s[i.HYPHENRANGE];e=e.replace(n,T),r("hyphen replace",e),e=e.replace(s[i.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,s[i.COMPARATORTRIM]),e=(e=(e=e.replace(s[i.TILDETRIM],"$1~")).replace(s[i.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?s[i.CARETLOOSE]:s[i.CARET];return e.replace(n,(function(t,n,s,a,i){var o;return r("caret",e,t,n,s,a,i),S(n)?o="":S(s)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o="0"===n?">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":">="+n+"."+s+".0 <"+(+n+1)+".0.0":i?(r("replaceCaret pr",i),o="0"===n?"0"===s?">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+s+"."+(+a+1):">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+a+"-"+i+" <"+(+n+1)+".0.0"):(r("no pr"),o="0"===n?"0"===s?">="+n+"."+s+"."+a+" <"+n+"."+s+"."+(+a+1):">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+a+" <"+(+n+1)+".0.0"),r("caret return",o),o}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?s[i.TILDELOOSE]:s[i.TILDE];return e.replace(n,(function(t,n,s,a,i){var o;return r("tilde",e,t,n,s,a,i),S(n)?o="":S(s)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":i?(r("replaceTilde pr",i),o=">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+(+s+1)+".0"):o=">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0",r("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?s[i.XRANGELOOSE]:s[i.XRANGE];return e.replace(n,(function(n,s,a,i,o,u){r("xRange",e,n,s,a,i,o,u);var l=S(a),c=l||S(i),p=c||S(o),d=p;return"="===s&&d&&(s=""),u=t.includePrerelease?"-0":"",l?n=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(c&&(i=0),o=0,">"===s?(s=">=",c?(a=+a+1,i=0,o=0):(i=+i+1,o=0)):"<="===s&&(s="<",c?a=+a+1:i=+i+1),n=s+a+"."+i+"."+o+u):c?n=">="+a+".0.0"+u+" <"+(+a+1)+".0.0"+u:p&&(n=">="+a+"."+i+".0"+u+" <"+a+"."+(+i+1)+".0"+u),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(s[i.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(a)}))),o=o.map((function(e){return new D(e,this.options)}),this)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Range is required");return this.set.some((function(r){return C(r,t)&&e.set.some((function(e){return C(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new w(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},w.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(j(this.set[t],e,this.options))return!0;return!1},t.satisfies=P,t.maxSatisfying=function(e,t,r){var n=null,s=null;try{var a=new w(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&-1!==s.compare(e)||(s=new p(n=e,r)))})),n},t.minSatisfying=function(e,t,r){var n=null,s=null;try{var a=new w(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&1!==s.compare(e)||(s=new p(n=e,r)))})),n},t.minVersion=function(e,t){e=new w(e,t);var r=new p("0.0.0");if(e.test(r))return r;if(r=new p("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n){e.set[n].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!m(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new w(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return I(e,t,"<",r)},t.gtr=function(e,t,r){return I(e,t,">",r)},t.outside=I,t.prerelease=function(e,t){var r=c(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new w(e,r),t=new w(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),s[i.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);if(null===r)return null;return c(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}}),"/$$rollup_base$$/packages/babel-helper-compilation-targets/node_modules/semver/node_modules/semver-BABEL_8_BREAKING-false"),BS={safari:"tp"},_S={and_chr:"chrome",and_ff:"firefox",android:"android",chrome:"chrome",edge:"edge",firefox:"firefox",ie:"ie",ie_mob:"ie",ios_saf:"ios",node:"node",op_mob:"opera",opera:"opera",safari:"safari",samsung:"samsung"},LS=/^(\d+|\d+.\d+)$/,MS=new hC("@babel/helper-compilation-targets");function US(e,t){return e&&NS.lt(e,t)?e:t}function GS(e){if("string"==typeof e&&NS.valid(e))return e;MS.invariant("number"==typeof e||"string"==typeof e&&LS.test(e),"'"+e+"' is not a valid version");for(var t=e.toString().split(".");t.length<3;)t.push("0");return t.join(".")}function VS(e,t){var r=BS[t];return!!r&&r===e.toString().toLowerCase()}function WS(e,t,r){var n=BS[r],s=[e,t].some((function(e){return e===n}));return s?e===s?t:e||t:US(e,t)}function HS(e,t){var r=e[t];return r||"android"!==t?r:e.chrome}var XS={node:"node",chrome:"chrome",opera:"opera",edge:"edge",firefox:"firefox",safari:"safari",ie:"ie",ios:"ios",android:"android",electron:"electron",samsung:"samsung"};function qS(e){if("string"!=typeof e)return e;var t=[NS.major(e)],r=NS.minor(e),n=NS.patch(e);return(r||n)&&t.push(r),n&&t.push(n),t.join(".")}function $S(e){return Object.keys(e).reduce((function(t,r){var n=e[r];return"string"==typeof n&&BS[r]!==n&&(n=qS(n)),t[r]=n,t}),{})}function KS(e,t,r){var n=r[e]||{};return Object.keys(t).reduce((function(e,r){var s=HS(n,r),a=t[r];if(s){var i=VS(s,r);VS(a,r)||!i&&!NS.lt(a.toString(),GS(s))||(e[r]=qS(a))}else e[r]=qS(a);return e}),{})}var zS={"proposal-class-static-block":{chrome:"91",electron:"13.0"},"proposal-private-property-in-object":{chrome:"91",firefox:"90",electron:"13.0"},"proposal-class-properties":{chrome:"74",opera:"62",edge:"79",firefox:"90",safari:"14.1",node:"12",samsung:"11",electron:"6.0"},"proposal-private-methods":{chrome:"84",opera:"70",edge:"84",firefox:"90",safari:"15",node:"14.6",electron:"10.0"},"proposal-numeric-separator":{chrome:"75",opera:"62",edge:"79",firefox:"70",safari:"13",node:"12.5",ios:"13",samsung:"11",electron:"6.0"},"proposal-logical-assignment-operators":{chrome:"85",opera:"71",edge:"85",firefox:"79",safari:"14",node:"15",ios:"14",electron:"10.0"},"proposal-nullish-coalescing-operator":{chrome:"80",opera:"67",edge:"80",firefox:"72",safari:"13.1",node:"14",ios:"13.4",samsung:"13",electron:"8.0"},"proposal-optional-chaining":{firefox:"74",safari:"13.1",ios:"13.4"},"proposal-json-strings":{chrome:"66",opera:"53",edge:"79",firefox:"62",safari:"12",node:"10",ios:"12",samsung:"9",electron:"3.0"},"proposal-optional-catch-binding":{chrome:"66",opera:"53",edge:"79",firefox:"58",safari:"11.1",node:"10",ios:"11.3",samsung:"9",electron:"3.0"},"transform-parameters":{chrome:"49",opera:"36",edge:"18",firefox:"53",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"proposal-async-generator-functions":{chrome:"63",opera:"50",edge:"79",firefox:"57",safari:"12",node:"10",ios:"12",samsung:"8",electron:"3.0"},"proposal-object-rest-spread":{chrome:"60",opera:"47",edge:"79",firefox:"55",safari:"11.1",node:"8.3",ios:"11.3",samsung:"8",electron:"2.0"},"transform-dotall-regex":{chrome:"62",opera:"49",edge:"79",firefox:"78",safari:"11.1",node:"8.10",ios:"11.3",samsung:"8",electron:"3.0"},"proposal-unicode-property-regex":{chrome:"64",opera:"51",edge:"79",firefox:"78",safari:"11.1",node:"10",ios:"11.3",samsung:"9",electron:"3.0"},"transform-named-capturing-groups-regex":{chrome:"64",opera:"51",edge:"79",firefox:"78",safari:"11.1",node:"10",ios:"11.3",samsung:"9",electron:"3.0"},"transform-async-to-generator":{chrome:"55",opera:"42",edge:"15",firefox:"52",safari:"11",node:"7.6",ios:"11",samsung:"6",electron:"1.6"},"transform-exponentiation-operator":{chrome:"52",opera:"39",edge:"14",firefox:"52",safari:"10.1",node:"7",ios:"10.3",samsung:"6",electron:"1.3"},"transform-template-literals":{chrome:"41",opera:"28",edge:"13",firefox:"34",safari:"13",node:"4",ios:"13",samsung:"3.4",electron:"0.21"},"transform-literals":{chrome:"44",opera:"31",edge:"12",firefox:"53",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.30"},"transform-function-name":{chrome:"51",opera:"38",edge:"79",firefox:"53",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"transform-arrow-functions":{chrome:"47",opera:"34",edge:"13",firefox:"45",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.36"},"transform-block-scoped-functions":{chrome:"41",opera:"28",edge:"12",firefox:"46",safari:"10",node:"4",ie:"11",ios:"10",samsung:"3.4",electron:"0.21"},"transform-classes":{chrome:"46",opera:"33",edge:"13",firefox:"45",safari:"10",node:"5",ios:"10",samsung:"5",electron:"0.36"},"transform-object-super":{chrome:"46",opera:"33",edge:"13",firefox:"45",safari:"10",node:"5",ios:"10",samsung:"5",electron:"0.36"},"transform-shorthand-properties":{chrome:"43",opera:"30",edge:"12",firefox:"33",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.27"},"transform-duplicate-keys":{chrome:"42",opera:"29",edge:"12",firefox:"34",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.25"},"transform-computed-properties":{chrome:"44",opera:"31",edge:"12",firefox:"34",safari:"7.1",node:"4",ios:"8",samsung:"4",electron:"0.30"},"transform-for-of":{chrome:"51",opera:"38",edge:"15",firefox:"53",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"transform-sticky-regex":{chrome:"49",opera:"36",edge:"13",firefox:"3",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"transform-unicode-escapes":{chrome:"44",opera:"31",edge:"12",firefox:"53",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.30"},"transform-unicode-regex":{chrome:"50",opera:"37",edge:"13",firefox:"46",safari:"12",node:"6",ios:"12",samsung:"5",electron:"1.1"},"transform-spread":{chrome:"46",opera:"33",edge:"13",firefox:"45",safari:"10",node:"5",ios:"10",samsung:"5",electron:"0.36"},"transform-destructuring":{chrome:"51",opera:"38",edge:"15",firefox:"53",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"transform-block-scoping":{chrome:"49",opera:"36",edge:"14",firefox:"51",safari:"11",node:"6",ios:"11",samsung:"5",electron:"0.37"},"transform-typeof-symbol":{chrome:"38",opera:"25",edge:"12",firefox:"36",safari:"9",node:"0.12",ios:"9",samsung:"3",electron:"0.20"},"transform-new-target":{chrome:"46",opera:"33",edge:"14",firefox:"41",safari:"10",node:"5",ios:"10",samsung:"5",electron:"0.36"},"transform-regenerator":{chrome:"50",opera:"37",edge:"13",firefox:"53",safari:"10",node:"6",ios:"10",samsung:"5",electron:"1.1"},"transform-member-expression-literals":{chrome:"7",opera:"12",edge:"12",firefox:"2",safari:"5.1",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"transform-property-literals":{chrome:"7",opera:"12",edge:"12",firefox:"2",safari:"5.1",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"transform-reserved-words":{chrome:"13",opera:"10.50",edge:"12",firefox:"2",safari:"3.1",node:"0.10",ie:"9",android:"4.4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"proposal-export-namespace-from":{chrome:"72",and_chr:"72",edge:"79",firefox:"80",and_ff:"80",node:"13.2",opera:"60",op_mob:"51",samsung:"11.0",android:"72",electron:"5.0"}};function JS(e,t,r){var n,s,a,i=void 0===r?{}:r,o=i.compatData,u=void 0===o?zS:o,l=i.includes,c=i.excludes;return(null==c||!c.has(e))&&(!(null==l||!l.has(e))||(n=t,s=u[e],!(0!==(a=Object.keys(n)).length&&0===a.filter((function(e){var t=HS(s,e);if(!t)return!0;var r=n[e];if(VS(r,e))return!1;if(VS(t,e))return!0;if(!NS.valid(r.toString()))throw new Error('Invalid version passed for target "'+e+'": "'+r+'". Versions must be in semver format (major.minor.patch)');return NS.gt(GS(t),r.toString())})).length)))}var YS=mC["es6.module"],QS=new hC("@babel/helper-compilation-targets");function ZS(e){return"string"==typeof e||Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}function eT(e,t){try{return GS(t)}catch(r){throw new Error(QS.formatMessage("'"+t+"' is not a valid value for 'targets."+e+"'."))}}var tT={__default:function(e,t){return[e,VS(t,e)?t.toLowerCase():eT(e,t)]},node:function(e,t){return[e,!0===t||"current"===t?ar.versions.node:eT(e,t)]}};function rT(e){return function(e){return e.reduce((function(e,t){var r=l(t.split(" "),2),n=r[0],s=r[1],a=_S[n];if(!a)return e;try{var i=s.split("-")[0].toLowerCase(),o=VS(i,n);if(!e[a])return e[a]=o?i:GS(i),e;var u=e[a],c=VS(u,n);if(c&&o)e[a]=WS(u,i,n);else if(c)e[a]=GS(i);else if(!c&&!o){var p=GS(i);e[a]=US(u,p)}}catch(e){}return e}),{})}(pC(e,{mobileToDesktop:!0}))}function nT(e,t){var r;void 0===e&&(e={}),void 0===t&&(t={});var n=e,s=n.browsers,a=n.esmodules,i=t.configPath,o=void 0===i?".":i;!function(e){QS.invariant(void 0===e||ZS(e),"'"+String(e)+"' is not a valid browserslist query")}(s);var u,c,p=function(e){for(var t=Object.keys(XS),r=0,n=Object.keys(e);r<n.length;r++){var s=n[r];if(!(s in XS))throw new Error(QS.formatMessage("'"+s+"' is not a valid target\n- Did you mean '"+fC(s,t)+"'?"))}return e}(function(e){var t=Object.assign({},e);return delete t.esmodules,delete t.browsers,t}(e)),d=!!s||Object.keys(p).length>0,h=!t.ignoreBrowserslistConfig&&!d;if(!s&&h&&null==(s=pC.loadConfig({config:t.configFile,path:o,env:t.browserslistEnv}))&&(s=[]),!a||"intersect"===a&&null!=(r=s)&&r.length||(s=Object.keys(YS).map((function(e){return e+" >= "+YS[e]})).join(", "),a=!1),s){var m=rT(s);if("intersect"===a)for(var y=0,g=Object.keys(m);y<g.length;y++){var v=g[y],b=m[v];YS[v]?m[v]=(u=b,c=GS(YS[v]),WS(u,c,v)===u?c:u):delete m[v]}p=Object.assign(m,p)}for(var E,x,D={},A=[],w=f(Object.keys(p).sort());!(E=w()).done;){var C,S=E.value,T=p[S];"number"==typeof T&&T%1!=0&&A.push({target:S,value:T});var j=l((null!=(C=tT[S])?C:tT.__default)(S,T),2),P=j[0],I=j[1];I&&(D[P]=I)}return(x=A).length&&(console.warn("Warning, the following targets are using a decimal version:\n"),x.forEach((function(e){var t=e.target,r=e.value;return console.warn(" "+t+": "+r)})),console.warn("\nWe recommend using a string for minor/patch versions to avoid numbers like 6.10\ngetting parsed as 6.1, which can lead to unexpected behavior.\n")),D}function sT(e,t){var r=e.targets;return("string"==typeof r||Array.isArray(r))&&(r={browsers:r}),r&&r.esmodules&&(r=Object.assign({},r,{esmodules:"intersect"})),nT(r,{ignoreBrowserslistConfig:!0,browserslistEnv:e.browserslistEnv})}var aT=bh.mark(cT),iT=bh.mark(ET),oT=bh.mark(xT),uT=bh.mark(DT),lT=bh.mark(AT);function cT(e){return bh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}}),aT)}function pT(e,t){return"string"==typeof e.browserslistConfigFile&&(e.browserslistConfigFile=void e.browserslistConfigFile),e}function dT(e,t,r){var n=t.plugins,s=t.presets,a=t.passPerPreset;return{options:pT(t),plugins:n?function(){return gT(n,e)(r)}:function(){return cT([])},presets:s?function(){return mT(s,e)(r)(!!a)}:function(){return cT([])}}}function fT(e,t,r){var n,s;return{options:pT(t),plugins:bh.mark((function s(){return bh.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n){s.next=3;break}return s.delegateYield(xT(t.plugins||[],e,r),"t0",2);case 2:n=s.t0;case 3:return s.abrupt("return",n);case 4:case"end":return s.stop()}}),s)})),presets:bh.mark((function n(){return bh.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s){n.next=3;break}return n.delegateYield(ET(t.presets||[],e,r,!!t.passPerPreset),"t0",2);case 2:s=n.t0;case 3:return n.abrupt("return",s);case 4:case"end":return n.stop()}}),n)}))}}var hT=new WeakMap,mT=ow((function(e,t){var r=t.using((function(e){return e}));return lw((function(t){return uw(bh.mark((function n(s){var a;return bh.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.delegateYield(ET(e,r,t,s),"t0",1);case 1:return a=n.t0,n.abrupt("return",a.map((function(e){return bT(hT,e)})));case 3:case"end":return n.stop()}}),n)})))}))})),yT=new WeakMap,gT=ow((function(e,t){var r=t.using((function(e){return e}));return uw(bh.mark((function t(n){var s;return bh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(xT(e,r,n),"t0",1);case 1:return s=t.t0,t.abrupt("return",s.map((function(e){return bT(yT,e)})));case 3:case"end":return t.stop()}}),t)})))})),vT={};function bT(e,t){var r=t.value,n=t.options,s=void 0===n?vT:n;if(!1===s)return t;var a=e.get(r);a||(a=new WeakMap,e.set(r,a));var i=a.get(s);if(i||(i=[],a.set(s,i)),-1===i.indexOf(t)){var o=i.filter((function(e){return n=t,(r=e).name===n.name&&r.value===n.value&&r.options===n.options&&r.dirname===n.dirname&&r.alias===n.alias&&r.ownPass===n.ownPass&&(r.file&&r.file.request)===(n.file&&n.file.request)&&(r.file&&r.file.resolved)===(n.file&&n.file.resolved);var r,n}));if(o.length>0)return o[0];i.push(t)}return t}function ET(e,t,r,n){return bh.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.delegateYield(DT("preset",e,t,r,n),"t0",1);case 1:return s.abrupt("return",s.t0);case 2:case"end":return s.stop()}}),iT)}function xT(e,t,r){return bh.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.delegateYield(DT("plugin",e,t,r),"t0",1);case 1:return n.abrupt("return",n.t0);case 2:case"end":return n.stop()}}),oT)}function DT(e,t,r,n,s){var a;return bh.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.delegateYield(OA.all(t.map((function(t,a){return AT(t,r,{type:e,alias:n+"$"+a,ownPass:!!s})}))),"t0",1);case 1:return wT(a=i.t0),i.abrupt("return",a);case 4:case"end":return i.stop()}}),uT)}function AT(e,t,r){var n,s,a,i,o,u,c,p,d,f,h,m,y,g;return bh.wrap((function(v){for(;;)switch(v.prev=v.next){case 0:if(n=r.type,s=r.alias,a=r.ownPass,!(i=jT(e))){v.next=4;break}return v.abrupt("return",i);case 4:if(c=e,Array.isArray(c)&&(3===c.length?(p=l(c,3),c=p[0],u=p[1],o=p[2]):(d=l(c,2),c=d[0],u=d[1])),f=void 0,h=null,"string"!=typeof c){v.next=18;break}if("string"==typeof n){v.next=11;break}throw new Error("To resolve a string-based item, the type of item must be given");case 11:return m="plugin"===n?wA:CA,y=c,v.delegateYield(m(c,t),"t0",14);case 14:g=v.t0,h=g.filepath,c=g.value,f={request:y,resolved:h};case 18:if(c){v.next=20;break}throw new Error("Unexpected falsy value: "+String(c));case 20:if("object"!=typeof c||!c.__esModule){v.next=26;break}if(!c.default){v.next=25;break}c=c.default,v.next=26;break;case 25:throw new Error("Must export a default export when using ES6 modules.");case 26:if("object"==typeof c||"function"==typeof c){v.next=28;break}throw new Error("Unsupported format: "+typeof c+". Expected an object or a function.");case 28:if(null===h||"object"!=typeof c||!c){v.next=30;break}throw new Error("Plugin/Preset files are not allowed to export objects, only functions. In "+h);case 30:return v.abrupt("return",{name:o,alias:h||s,value:c,options:u,dirname:t,ownPass:a,file:f});case 31:case"end":return v.stop()}}),lT)}function wT(e){for(var t,r=new Map,n=function(){var n=t.value;if("function"!=typeof n.value)return"continue";var s=r.get(n.value);if(s||(s=new Set,r.set(n.value,s)),s.has(n.name)){var a=e.filter((function(e){return e.value===n.value}));throw new Error(["Duplicate plugin/preset detected.","If you'd like to use two separate instances of a plugin,","they need separate names, e.g.",""," plugins: ["," ['some-plugin', {}],"," ['some-plugin', {}, 'some unique name'],"," ]","","Duplicates detected are:",""+JSON.stringify(a,null,2)].join("\n"))}s.add(n.name)},s=f(e);!(t=s()).done;)n()}var CT=bh.mark(TT);function ST(e){return new IT(e)}function TT(e,t){var r,n,s,a,i;return bh.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n=(r=void 0===t?{}:t).dirname,s=void 0===n?".":n,a=r.type,o.delegateYield(AT(e,rx.resolve(s),{type:a,alias:"programmatic item"}),"t0",2);case 2:return i=o.t0,o.abrupt("return",ST(i));case 4:case"end":return o.stop()}}),CT)}function jT(e){if(null!=e&&e[PT])return e._descriptor}var PT=Symbol.for("@babel/core@7 - ConfigItem"),IT=function(e){this._descriptor=void 0,this[PT]=!0,this.value=void 0,this.options=void 0,this.dirname=void 0,this.name=void 0,this.file=void 0,this._descriptor=e,Object.defineProperty(this,"_descriptor",{enumerable:!1}),Object.defineProperty(this,PT,{enumerable:!1}),this.value=this._descriptor.value,this.options=this._descriptor.options,this.dirname=this._descriptor.dirname,this.name=this._descriptor.name,this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:void 0,Object.freeze(this)};Object.freeze(IT.prototype);var FT=1e3,kT=60*FT,OT=60*kT,RT=24*OT,NT=7*RT,BT=365.25*RT,_T=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*BT;case"weeks":case"week":case"w":return r*NT;case"days":case"day":case"d":return r*RT;case"hours":case"hour":case"hrs":case"hr":case"h":return r*OT;case"minutes":case"minute":case"mins":case"min":case"m":return r*kT;case"seconds":case"second":case"secs":case"sec":case"s":return r*FT;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=RT)return LT(e,t,RT,"day");if(t>=OT)return LT(e,t,OT,"hour");if(t>=kT)return LT(e,t,kT,"minute");if(t>=FT)return LT(e,t,FT,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=RT)return Math.round(e/RT)+"d";if(t>=OT)return Math.round(e/OT)+"h";if(t>=kT)return Math.round(e/kT)+"m";if(t>=FT)return Math.round(e/FT)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function LT(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}var MT=function(e){function t(e){var n,s,a,i=null;function o(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(o.enabled){var a=o,i=Number(new Date),u=i-(n||i);a.diff=u,a.prev=n,a.curr=i,n=i,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var l=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return"%";l++;var s=t.formatters[n];if("function"==typeof s){var i=r[l];e=s.call(a,i),r.splice(l,1),l--}return e})),t.formatArgs.call(a,r);var c=a.log||t.log;c.apply(a,r)}}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=r,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==i?i:(s!==t.namespaces&&(s=t.namespaces,a=t.enabled(e)),a)},set:function(e){i=e}}),"function"==typeof t.init&&t.init(o),o}function r(e,r){var n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(c(t.names.map(n)),c(t.skips.map(n).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(r=0;r<s;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=_T,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(r){t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t},UT=zt((function(e,t){var r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(s=n))})),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==ar&&"env"in ar&&(e=ar.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(r=!1,function(){r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=MT(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}),"/$$rollup_base$$/packages/babel-core/node_modules/debug/src"),GT={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."}};function VT(e){switch(e.type){case"root":return"";case"env":return VT(e.parent)+'.env["'+e.name+'"]';case"overrides":return VT(e.parent)+".overrides["+e.index+"]";case"option":return VT(e.parent)+"."+e.name;case"access":return VT(e.parent)+"["+JSON.stringify(e.name)+"]";default:throw new Error("Assertion failure: Unknown type "+e.type)}}function WT(e,t){return{type:"access",name:t,parent:e}}function HT(e,t){if(void 0!==t&&"boolean"!=typeof t&&"inline"!==t&&"both"!==t)throw new Error(VT(e)+' must be a boolean, "inline", "both", or undefined');return t}function XT(e,t){if(void 0!==t&&"string"!=typeof t)throw new Error(VT(e)+" must be a string, or undefined");return t}function qT(e,t){if(void 0!==t&&"function"!=typeof t)throw new Error(VT(e)+" must be a function, or undefined");return t}function $T(e,t){if(void 0!==t&&"boolean"!=typeof t)throw new Error(VT(e)+" must be a boolean, or undefined");return t}function KT(e,t){if(void 0!==t&&("object"!=typeof t||Array.isArray(t)||!t))throw new Error(VT(e)+" must be an object, or undefined");return t}function zT(e,t){if(null!=t&&!Array.isArray(t))throw new Error(VT(e)+" must be an array, or undefined");return t}function JT(e,t){var r=zT(e,t);return r&&r.forEach((function(t,r){return function(e,t){if("string"!=typeof t&&"function"!=typeof t&&!(t instanceof RegExp))throw new Error(VT(e)+" must be an array of string/Function/RegExp values, or undefined");return t}(WT(e,r),t)})),r}function YT(e,t){if(void 0===t)return t;if(Array.isArray(t))t.forEach((function(t,r){if(!QT(t))throw new Error(VT(WT(e,r))+" must be a string/Function/RegExp.")}));else if(!QT(t))throw new Error(VT(e)+" must be a string/Function/RegExp, or an array of those");return t}function QT(e){return"string"==typeof e||"function"==typeof e||e instanceof RegExp}function ZT(e,t){if(void 0!==t&&"boolean"!=typeof t&&"string"!=typeof t)throw new Error(VT(e)+" must be a undefined, a boolean, a string, got "+JSON.stringify(t));return t}function ej(e,t){var r=zT(e,t);return r&&r.forEach((function(t,r){return function(e,t){if(Array.isArray(t)){if(0===t.length)throw new Error(VT(e)+" must include an object");if(t.length>3)throw new Error(VT(e)+" may only be a two-tuple or three-tuple");if(tj(WT(e,0),t[0]),t.length>1){var r=t[1];if(void 0!==r&&!1!==r&&("object"!=typeof r||Array.isArray(r)||null===r))throw new Error(VT(WT(e,1))+" must be an object, false, or undefined")}if(3===t.length){var n=t[2];if(void 0!==n&&"string"!=typeof n)throw new Error(VT(WT(e,2))+" must be a string, or undefined")}}else tj(e,t);return t}(WT(e,r),t)})),r}function tj(e,t){if(("object"!=typeof t||!t)&&"string"!=typeof t&&"function"!=typeof t)throw new Error(VT(e)+" must be a string, object, function");return t}function rj(e,t){if(void 0!==t&&!ZS(t))throw new Error(VT(e)+" must be undefined, a string or an array of strings")}function nj(e,t){if(("number"!=typeof t||Math.round(t)!==t)&&"string"!=typeof t)throw new Error(VT(e)+" must be a string or an integer number")}var sj={cwd:XT,root:XT,rootMode:function(e,t){if(void 0!==t&&"root"!==t&&"upward"!==t&&"upward-optional"!==t)throw new Error(VT(e)+' must be a "root", "upward", "upward-optional" or undefined');return t},configFile:ZT,caller:function(e,t){var r=KT(e,t);if(r){if("string"!=typeof r.name)throw new Error(VT(e)+' set but does not contain "name" property string');for(var n=0,s=Object.keys(r);n<s.length;n++){var a=s[n],i=WT(e,a),o=r[a];if(null!=o&&"boolean"!=typeof o&&"string"!=typeof o&&"number"!=typeof o)throw new Error(VT(i)+" must be null, undefined, a boolean, a string, or a number.")}}return t},filename:XT,filenameRelative:XT,code:$T,ast:$T,cloneInputAst:$T,envName:XT},aj={babelrc:$T,babelrcRoots:function(e,t){if(void 0===t||"boolean"==typeof t)return t;if(Array.isArray(t))t.forEach((function(t,r){if(!QT(t))throw new Error(VT(WT(e,r))+" must be a string/Function/RegExp.")}));else if(!QT(t))throw new Error(VT(e)+" must be a undefined, a boolean, a string/Function/RegExp or an array of those, got "+JSON.stringify(t));return t}},ij={extends:XT,ignore:JT,only:JT,targets:function(e,t){if(ZS(t))return t;if("object"!=typeof t||!t||Array.isArray(t))throw new Error(VT(e)+" must be a string, an array of strings or an object");var r=WT(e,"browsers"),n=WT(e,"esmodules");rj(r,t.browsers),$T(n,t.esmodules);for(var s=0,a=Object.keys(t);s<a.length;s++){var i=a[s],o=t[i],u=WT(e,i);if("esmodules"===i)$T(u,o);else if("browsers"===i)rj(u,o);else{if(!Object.hasOwnProperty.call(XS,i)){var l=Object.keys(XS).join(", ");throw new Error(VT(u)+" is not a valid target. Supported targets are "+l)}nj(u,o)}}return t},browserslistConfigFile:ZT,browserslistEnv:XT},oj={inputSourceMap:function(e,t){if(void 0!==t&&"boolean"!=typeof t&&("object"!=typeof t||!t))throw new Error(VT(e)+" must be a boolean, object, or undefined");return t},presets:ej,plugins:ej,passPerPreset:$T,assumptions:function(e,t){if(void 0!==t){if("object"!=typeof t||null===t)throw new Error(VT(e)+" must be an object or undefined.");var r=e;do{r=r.parent}while("root"!==r.type);for(var n="preset"===r.source,s=0,a=Object.keys(t);s<a.length;s++){var i=a[s],o=WT(e,i);if(!uj.has(i))throw new Error(VT(o)+" is not a supported assumption.");if("boolean"!=typeof t[i])throw new Error(VT(o)+" must be a boolean.");if(n&&!1===t[i])throw new Error(VT(o)+" cannot be set to 'false' inside presets.")}return t}},env:function(e,t){if("env"===e.parent.type)throw new Error(VT(e)+" is not allowed inside of another .env block");var r=e.parent,n=KT(e,t);if(n)for(var s=0,a=Object.keys(n);s<a.length;s++){var i=a[s],o=KT(WT(e,i),n[i]);if(o)pj({type:"env",name:i,parent:r},o)}return n},overrides:function(e,t){if("env"===e.parent.type)throw new Error(VT(e)+" is not allowed inside an .env block");if("overrides"===e.parent.type)throw new Error(VT(e)+" is not allowed inside an .overrides block");var r=e.parent,n=zT(e,t);if(n)for(var s,a=f(n.entries());!(s=a()).done;){var i=l(s.value,2),o=i[0],u=i[1],c=WT(e,o),p=KT(c,u);if(!p)throw new Error(VT(c)+" must be an object");pj({type:"overrides",index:o,parent:r},p)}return n},test:YT,include:YT,exclude:YT,retainLines:$T,comments:$T,shouldPrintComment:qT,compact:function(e,t){if(void 0!==t&&"boolean"!=typeof t&&"auto"!==t)throw new Error(VT(e)+' must be a boolean, "auto", or undefined');return t},minified:$T,auxiliaryCommentBefore:XT,auxiliaryCommentAfter:XT,sourceType:function(e,t){if(void 0!==t&&"module"!==t&&"script"!==t&&"unambiguous"!==t)throw new Error(VT(e)+' must be "module", "script", "unambiguous", or undefined');return t},wrapPluginVisitorMethod:qT,highlightCode:$T,sourceMaps:HT,sourceMap:HT,sourceFileName:XT,sourceRoot:XT,parserOpts:KT,generatorOpts:KT};Object.assign(oj,{getModuleId:qT,moduleRoot:XT,moduleIds:$T,moduleId:XT});var uj=new Set(["arrayLikeIsIterable","constantReexports","constantSuper","enumerableModuleMeta","ignoreFunctionLength","ignoreToPrimitiveHint","iterableIsArray","mutableTemplateObject","noClassCalls","noDocumentAll","noNewArrows","objectRestNoSymbols","privateFieldsAsProperties","pureGetters","setClassMethods","setComputedProperties","setPublicClassFields","setSpreadProperties","skipForOfIteratorClosing","superIsCallableConstructor"]);function lj(e){return"root"===e.type?e.source:lj(e.parent)}function cj(e,t){return pj({type:"root",source:e},t)}function pj(e,t){var r=lj(e);return function(e){if(fj(e,"sourceMap")&&fj(e,"sourceMaps"))throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both")}(t),Object.keys(t).forEach((function(n){var s={type:"option",name:n,parent:e};if("preset"===r&&ij[n])throw new Error(VT(s)+" is not allowed in preset options");if("arguments"!==r&&sj[n])throw new Error(VT(s)+" is only allowed in root programmatic options");if("arguments"!==r&&"configfile"!==r&&aj[n]){if("babelrcfile"===r||"extendsfile"===r)throw new Error(VT(s)+' is not allowed in .babelrc or "extends"ed files, only in root programmatic options, or babel.config.js/config file options');throw new Error(VT(s)+" is only allowed in root programmatic options, or babel.config.js/config file options")}(oj[n]||ij[n]||aj[n]||sj[n]||dj)(s,t[n])})),t}function dj(e){var t=e.name;if(GT[t]){var r=GT[t],n=r.message,s=r.version;throw new Error("Using removed Babel "+(void 0===s?5:s)+" option: "+VT(e)+" - "+n)}var a=new Error("Unknown option: "+VT(e)+". Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.");throw a.code="BABEL_UNKNOWN_OPTION",a}function fj(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function hj(e,t,r,n){if(0!==t){var s=e[t-1],a=e[t];s.file&&void 0===s.options&&"object"==typeof a.value&&(n.message+='\n- Maybe you meant to use\n"'+r+'": [\n ["'+s.file.request+'", '+JSON.stringify(a.value,void 0,2)+"]\n]\nTo be a valid "+r+", its name and options should be wrapped in a pair of brackets")}}var mj="\\"+rx.sep,yj="(?:"+mj+"|$)",gj="[^"+mj+"]+",vj="(?:"+gj+mj+")",bj="(?:"+gj+yj+")",Ej=vj+"*?",xj=vj+"*?"+bj+"?";function Dj(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function Aj(e,t){var r=rx.resolve(t,e).split(rx.sep);return new RegExp(["^"].concat(c(r.map((function(e,t){var n=t===r.length-1;return"**"===e?n?xj:Ej:"*"===e?n?bj:vj:0===e.indexOf("*.")?gj+Dj(e.slice(1))+(n?yj:mj):Dj(e)+(n?yj:mj)})))).join(""))}var wj=0,Cj=1,Sj={title:function(e,t,r){var n="";return e===wj?(n="programmatic options",t&&(n+=" from "+t)):n="config "+r,n},loc:function(e,t){var r="";return null!=e&&(r+=".overrides["+e+"]"),null!=t&&(r+='.env["'+t+'"]'),r},optionsAndDescriptors:bh.mark((function e(t){var r,n,s;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(r=Object.assign({},t.options)).overrides,delete r.env,e.t0=c,e.delegateYield(t.plugins(),"t1",5);case 5:return e.t2=e.t1,(n=(0,e.t0)(e.t2)).length&&(r.plugins=n.map((function(e){return Tj(e)}))),e.t3=c,e.delegateYield(t.presets(),"t4",10);case 10:return e.t5=e.t4,(s=(0,e.t3)(e.t5)).length&&(r.presets=c(s).map((function(e){return Tj(e)}))),e.abrupt("return",JSON.stringify(r,void 0,2));case 14:case"end":return e.stop()}}),e)}))};function Tj(e){var t,r=null==(t=e.file)?void 0:t.request;return null==r&&("object"==typeof e.value?r=e.value:"function"==typeof e.value&&(r="[Function: "+e.value.toString().substr(0,50)+" ... ]")),null==r&&(r="[Unknown]"),void 0===e.options?r:null==e.name?[r,e.options]:[r,e.options,e.name]}var jj=function(){function e(){this._stack=[]}var t=e.prototype;return t.configure=function(e,t,r){var n=this,s=r.callerName,a=r.filepath;return e?function(e,r,i){n._stack.push({type:t,callerName:s,filepath:a,content:e,index:r,envName:i})}:function(){}},e.format=bh.mark((function e(t){var r,n,s;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Sj.title(t.type,t.callerName,t.filepath),(n=Sj.loc(t.index,t.envName))&&(r+=" "+n),e.delegateYield(Sj.optionsAndDescriptors(t.content),"t0",4);case 4:return s=e.t0,e.abrupt("return",r+"\n"+s);case 6:case"end":return e.stop()}}),e)})),t.output=bh.mark((function t(){var r;return bh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this._stack.length){t.next=2;break}return t.abrupt("return","");case 2:return t.delegateYield(OA.all(this._stack.map((function(t){return e.format(t)}))),"t0",3);case 3:return r=t.t0,t.abrupt("return",r.join("\n\n"));case 5:case"end":return t.stop()}}),t,this)})),e}(),Pj=bh.mark(Nj),Ij=bh.mark(Gj),Fj=bh.mark(Kj),kj=bh.mark(sP),Oj=bh.mark(iP),Rj=UT("babel:config:config-chain");function Nj(e,t){var r;return bh.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.delegateYield(Bj(e,t),"t0",1);case 1:if(r=n.t0){n.next=4;break}return n.abrupt("return",null);case 4:return n.abrupt("return",{plugins:lP(r.plugins),presets:lP(r.presets),options:r.options.map((function(e){return uP(e)})),files:new Set});case 5:case"end":return n.stop()}}),Pj)}var Bj=nP({root:function(e){return _j(e)},env:function(e,t){return Lj(e)(t)},overrides:function(e,t){return Mj(e)(t)},overridesEnv:function(e,t,r){return Uj(e)(t)(r)},createLogger:function(){return function(){}}}),_j=ow((function(e){return Zj(e,e.alias,fT)})),Lj=ow((function(e){return lw((function(t){return eP(e,e.alias,fT,t)}))})),Mj=ow((function(e){return lw((function(t){return tP(e,e.alias,fT,t)}))})),Uj=ow((function(e){return lw((function(t){return lw((function(r){return rP(e,e.alias,fT,t,r)}))}))}));function Gj(e,t){var r,n,s,a,i,o,u,l,c,p,d,f,h,m,y,g,v,b,E,x,D,A,w;return bh.wrap((function(C){for(;;)switch(C.prev=C.next){case 0:return s=new jj,C.delegateYield(qj({options:e,dirname:t.cwd},t,void 0,s),"t0",2);case 2:if(a=C.t0){C.next=5;break}return C.abrupt("return",null);case 5:return C.delegateYield(s.output(),"t1",6);case 6:if(i=C.t1,"string"!=typeof e.configFile){C.next=12;break}return C.delegateYield(bA(e.configFile,t.cwd,t.envName,t.caller),"t2",9);case 9:o=C.t2,C.next=15;break;case 12:if(!1===e.configFile){C.next=15;break}return C.delegateYield(vA(t.root,t.envName,t.caller),"t3",14);case 14:o=C.t3;case 15:if(u=e.babelrc,l=e.babelrcRoots,c=t.cwd,p=oP(),d=new jj,!o){C.next=30;break}return f=Wj(o),C.delegateYield(Kj(f,t,void 0,d),"t4",22);case 22:if(h=C.t4){C.next=25;break}return C.abrupt("return",null);case 25:return C.delegateYield(d.output(),"t5",26);case 26:r=C.t5,void 0===u&&(u=f.options.babelrc),void 0===l&&(c=f.dirname,l=f.options.babelrcRoots),aP(p,h);case 30:if(g=!1,v=oP(),!0!==u&&void 0!==u||"string"!=typeof t.filename){C.next=55;break}return C.delegateYield(yA(t.filename),"t6",34);case 34:if(!(b=C.t6)||!Vj(t,b,l,c)){C.next=55;break}return C.delegateYield(gA(0,t.envName,t.caller),"t7",37);case 37:if(E=C.t7,m=E.ignore,y=E.config,m&&v.files.add(m.filepath),m&&dP(t,m.ignore,null,m.dirname)&&(g=!0),!y||g){C.next=54;break}return x=Hj(y),D=new jj,C.delegateYield(Kj(x,t,void 0,D),"t8",46);case 46:if(A=C.t8){C.next=51;break}g=!0,C.next=54;break;case 51:return C.delegateYield(D.output(),"t9",52);case 52:n=C.t9,aP(v,A);case 54:y&&g&&v.files.add(y.filepath);case 55:return t.showConfig&&console.log('Babel configs on "'+t.filename+'" (ascending priority):\n'+[r,n,i].filter((function(e){return!!e})).join("\n\n")+"\n-----End Babel configs-----"),w=aP(aP(aP(oP(),p),v),a),C.abrupt("return",{plugins:g?[]:lP(w.plugins),presets:g?[]:lP(w.presets),options:g?[]:w.options.map((function(e){return uP(e)})),fileHandling:g?"ignored":"transpile",ignore:m||void 0,babelrc:y||void 0,config:o||void 0,files:w.files});case 58:case"end":return C.stop()}}),Ij)}function Vj(e,t,r,n){if("boolean"==typeof r)return r;var s=e.root;if(void 0===r)return-1!==t.directories.indexOf(s);var a=r;return Array.isArray(a)||(a=[a]),1===(a=a.map((function(e){return"string"==typeof e?rx.resolve(n,e):e}))).length&&a[0]===s?-1!==t.directories.indexOf(s):a.some((function(r){return"string"==typeof r&&(r=Aj(r,n)),t.directories.some((function(t){return hP(r,n,t,e)}))}))}var Wj=ow((function(e){return{filepath:e.filepath,dirname:e.dirname,options:cj("configfile",e.options)}})),Hj=ow((function(e){return{filepath:e.filepath,dirname:e.dirname,options:cj("babelrcfile",e.options)}})),Xj=ow((function(e){return{filepath:e.filepath,dirname:e.dirname,options:cj("extendsfile",e.options)}})),qj=nP({root:function(e){return Zj(e,"base",dT)},env:function(e,t){return eP(e,"base",dT,t)},overrides:function(e,t){return tP(e,"base",dT,t)},overridesEnv:function(e,t,r){return rP(e,"base",dT,t,r)},createLogger:function(e,t,r){return function(e,t,r){var n;if(!r)return function(){};return r.configure(t.showConfig,wj,{callerName:null==(n=t.caller)?void 0:n.name})}(0,t,r)}}),$j=nP({root:function(e){return zj(e)},env:function(e,t){return Jj(e)(t)},overrides:function(e,t){return Yj(e)(t)},overridesEnv:function(e,t,r){return Qj(e)(t)(r)},createLogger:function(e,t,r){return function(e,t,r){if(!r)return function(){};return r.configure(t.showConfig,Cj,{filepath:e})}(e.filepath,t,r)}});function Kj(e,t,r,n){var s;return bh.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.delegateYield($j(e,t,r,n),"t0",1);case 1:return(s=a.t0)&&s.files.add(e.filepath),a.abrupt("return",s);case 4:case"end":return a.stop()}}),Fj)}var zj=ow((function(e){return Zj(e,e.filepath,fT)})),Jj=ow((function(e){return lw((function(t){return eP(e,e.filepath,fT,t)}))})),Yj=ow((function(e){return lw((function(t){return tP(e,e.filepath,fT,t)}))})),Qj=ow((function(e){return lw((function(t){return lw((function(r){return rP(e,e.filepath,fT,t,r)}))}))}));function Zj(e,t,r){return r(e.dirname,e.options,t)}function eP(e,t,r,n){var s=e.dirname,a=e.options,i=a.env&&a.env[n];return i?r(s,i,t+'.env["'+n+'"]'):null}function tP(e,t,r,n){var s=e.dirname,a=e.options,i=a.overrides&&a.overrides[n];if(!i)throw new Error("Assertion failure - missing override");return r(s,i,t+".overrides["+n+"]")}function rP(e,t,r,n,s){var a=e.dirname,i=e.options,o=i.overrides&&i.overrides[n];if(!o)throw new Error("Assertion failure - missing override");var u=o.env&&o.env[s];return u?r(a,u,t+".overrides["+n+'].env["'+s+'"]'):null}function nP(e){var t=e.root,r=e.env,n=e.overrides,s=e.overridesEnv,a=e.createLogger;return bh.mark((function e(i,o,u,l){var c,p,d,f,h,m,y,g,v,b,E,x;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===u&&(u=new Set),c=i.dirname,p=[],cP(d=t(i),c,o)&&(p.push({config:d,envName:void 0,index:void 0}),(f=r(i,o.envName))&&cP(f,c,o)&&p.push({config:f,envName:o.envName,index:void 0}),(d.options.overrides||[]).forEach((function(e,t){var r=n(i,t);if(cP(r,c,o)){p.push({config:r,index:t,envName:void 0});var a=s(i,t,o.envName);a&&cP(a,c,o)&&p.push({config:a,index:t,envName:o.envName})}}))),!p.some((function(e){var t=e.config.options,r=t.ignore,n=t.only;return dP(o,r,n,c)}))){e.next=7;break}return e.abrupt("return",null);case 7:h=oP(),m=a(i,o,l),y=0,g=p;case 10:if(!(y<g.length)){e.next=20;break}return v=g[y],b=v.config,E=v.index,x=v.envName,e.delegateYield(sP(h,b.options,c,o,u,l),"t0",13);case 13:if(e.t0){e.next=15;break}return e.abrupt("return",null);case 15:return m(b,E,x),e.delegateYield(iP(h,b),"t1",17);case 17:y++,e.next=10;break;case 20:return e.abrupt("return",h);case 21:case"end":return e.stop()}}),e)}))}function sP(e,t,r,n,s,a){var i,o;return bh.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(void 0!==t.extends){u.next=2;break}return u.abrupt("return",!0);case 2:return u.delegateYield(bA(t.extends,r,n.envName,n.caller),"t0",3);case 3:if(i=u.t0,!s.has(i)){u.next=6;break}throw new Error("Configuration cycle detected loading "+i.filepath+".\nFile already loaded following the config chain:\n"+Array.from(s,(function(e){return" - "+e.filepath})).join("\n"));case 6:return s.add(i),u.delegateYield(Kj(Xj(i),n,s,a),"t1",8);case 8:if(o=u.t1,s.delete(i),o){u.next=12;break}return u.abrupt("return",!1);case 12:return aP(e,o),u.abrupt("return",!0);case 14:case"end":return u.stop()}}),kj)}function aP(e,t){var r,n,s;(r=e.options).push.apply(r,c(t.options)),(n=e.plugins).push.apply(n,c(t.plugins)),(s=e.presets).push.apply(s,c(t.presets));for(var a,i=f(t.files);!(a=i()).done;){var o=a.value;e.files.add(o)}return e}function iP(e,t){var r,n,s,a,i;return bh.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=t.options,a=t.plugins,i=t.presets,e.options.push(s),o.t0=(r=e.plugins).push,o.t1=r,o.t2=c,o.delegateYield(a(),"t3",6);case 6:return o.t4=o.t3,o.t5=(0,o.t2)(o.t4),o.t0.apply.call(o.t0,o.t1,o.t5),o.t6=(n=e.presets).push,o.t7=n,o.t8=c,o.delegateYield(i(),"t9",13);case 13:return o.t10=o.t9,o.t11=(0,o.t8)(o.t10),o.t6.apply.call(o.t6,o.t7,o.t11),o.abrupt("return",e);case 17:case"end":return o.stop()}}),Oj)}function oP(){return{options:[],presets:[],plugins:[],files:new Set}}function uP(e){var t=Object.assign({},e);return delete t.extends,delete t.env,delete t.overrides,delete t.plugins,delete t.presets,delete t.passPerPreset,delete t.ignore,delete t.only,delete t.test,delete t.include,delete t.exclude,Object.prototype.hasOwnProperty.call(t,"sourceMap")&&(t.sourceMaps=t.sourceMap,delete t.sourceMap),t}function lP(e){for(var t,r=new Map,n=[],s=f(e);!(t=s()).done;){var a=t.value;if("function"==typeof a.value){var i=a.value,o=r.get(i);o||(o=new Map,r.set(i,o));var u=o.get(a.name);u?u.value=a:(u={value:a},n.push(u),a.ownPass||o.set(a.name,u))}else n.push({value:a})}return n.reduce((function(e,t){return e.push(t.value),e}),[])}function cP(e,t,r){var n=e.options;return(void 0===n.test||pP(r,n.test,t))&&(void 0===n.include||pP(r,n.include,t))&&(void 0===n.exclude||!pP(r,n.exclude,t))}function pP(e,t,r){return fP(e,Array.isArray(t)?t:[t],r)}function dP(e,t,r,n){if(t&&fP(e,t,n)){var s,a='No config is applied to "'+(null!=(s=e.filename)?s:"(unknown)")+'" because it matches one of `ignore: '+JSON.stringify(t)+'` from "'+n+'"';return Rj(a),e.showConfig&&console.log(a),!0}if(r&&!fP(e,r,n)){var i,o='No config is applied to "'+(null!=(i=e.filename)?i:"(unknown)")+'" because it fails to match one of `only: '+JSON.stringify(r)+'` from "'+n+'"';return Rj(o),e.showConfig&&console.log(o),!0}return!1}function fP(e,t,r){return t.some((function(t){return hP(t,r,e.filename,e)}))}function hP(e,t,r,n){if("function"==typeof e)return!!e(r,{dirname:t,envName:n.envName,caller:n.caller});if("string"!=typeof r)throw new Error("Configuration contains string/RegExp pattern, but no filename was passed to Babel");return"string"==typeof e&&(e=Aj(e,t)),e.test(r)}var mP={name:XT,manipulateOptions:qT,pre:qT,post:qT,inherits:qT,visitor:function(e,t){var r=KT(e,t);if(r&&(Object.keys(r).forEach((function(e){return function(e,t){if(t&&"object"==typeof t)Object.keys(t).forEach((function(t){if("enter"!==t&&"exit"!==t)throw new Error('.visitor["'+e+'"] may only have .enter and/or .exit handlers.')}));else if("function"!=typeof t)throw new Error('.visitor["'+e+'"] must be a function');return t}(e,r[e])})),r.enter||r.exit))throw new Error(VT(e)+' cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.');return r},parserOverride:qT,generatorOverride:qT};function yP(e){var t={type:"root",source:"plugin"};return Object.keys(e).forEach((function(r){var n=mP[r];if(!n){var s=new Error("."+r+" is not a valid Plugin property");throw s.code="BABEL_UNKNOWN_PLUGIN_PROPERTY",s}n({type:"option",name:r,parent:t},e[r])})),e}function gP(e){return Object.assign({},function(e){return{version:DF,cache:e.simple(),env:function(t){return e.using((function(e){return void 0===t?e.envName:"function"==typeof t?yw(t(e.envName)):(Array.isArray(t)||(t=[t]),t.some((function(t){if("string"!=typeof t)throw new Error("Unexpected non-string value");return t===e.envName})))}))},async:function(){return!1},caller:function(t){return e.using((function(e){return yw(t(e.caller))}))},assertVersion:vP}}(e),{targets:function(){return JSON.parse(e.using((function(e){return JSON.stringify(e.targets)})))}})}function vP(e){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e="^"+e+".0.0-0"}if("string"!=typeof e)throw new Error("Expected string or integer value.");if(!rA.satisfies(DF,e)){var t=Error.stackTraceLimit;"number"==typeof t&&t<25&&(Error.stackTraceLimit=25);var r=new Error('Requires Babel "'+e+'", but was loaded with "'+DF+'". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn\'t mention "@babel/core" or "babel-core" to see what is calling Babel.');throw"number"==typeof t&&(Error.stackTraceLimit=t),Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:DF,range:e})}}var bP=bh.mark(xP);function EP(e,t){switch(t){case"root":return e;case"upward-optional":return e;case"upward":throw Object.assign(new Error('Babel was run with rootMode:"upward" but a root could not be found when searching upward from "'+e+'".\nOne of the following config files must be in the directory tree: "'+xA.join(", ")+'".'),{code:"BABEL_ROOT_NOT_FOUND",dirname:e});default:throw new Error("Assertion failure - unknown rootMode value.")}}function xP(e){var t,r,n,s,a,i,o,u,l,c,p,d,f,h,m,y,g,v,b,E;return bh.wrap((function(x){for(;;)switch(x.prev=x.next){case 0:if(null==e||"object"==typeof e&&!Array.isArray(e)){x.next=2;break}throw new Error("Babel options must be an object, null, or undefined");case 2:return t=e?cj("arguments",e):{},r=t.envName,n=void 0===r?SA():r,s=t.cwd,a=void 0===s?".":s,i=t.root,o=void 0===i?".":i,u=t.rootMode,l=void 0===u?"root":u,c=t.caller,p=t.cloneInputAst,d=void 0===p||p,f=rx.resolve(a),h=EP(rx.resolve(f,o),l),m="string"==typeof t.filename?rx.resolve(a,t.filename):void 0,x.delegateYield(EA(),"t0",8);case 8:return y=x.t0,g={filename:m,cwd:f,root:h,envName:n,caller:c,showConfig:y===m},x.delegateYield(Gj(t,g),"t1",11);case 11:if(v=x.t1){x.next=14;break}return x.abrupt("return",null);case 14:return b={assumptions:{}},v.options.forEach((function(e){YA(b,e)})),E=Object.assign({},b,{targets:sT(b),cloneInputAst:d,babelrc:!1,configFile:!1,browserslistConfigFile:!1,passPerPreset:!1,envName:g.envName,cwd:g.cwd,root:g.root,rootMode:"root",filename:"string"==typeof g.filename?g.filename:void 0,plugins:v.plugins.map((function(e){return ST(e)})),presets:v.presets.map((function(e){return ST(e)}))}),x.abrupt("return",{options:E,context:g,fileHandling:v.fileHandling,ignore:v.ignore,babelrc:v.babelrc,config:v.config,files:v.files});case 18:case"end":return x.stop()}}),bP)}var DP=OA(bh.mark((function e(t){var r,n,s,a,o,u,l,c,p;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,"object"!=typeof t||null===t||Array.isArray(t)||(r=(n=t).showIgnoredFiles,t=i(n,["showIgnoredFiles"])),e.delegateYield(xP(t),"t0",3);case 3:if(s=e.t0){e.next=6;break}return e.abrupt("return",null);case 6:if(a=s.options,o=s.babelrc,u=s.ignore,l=s.config,c=s.fileHandling,p=s.files,"ignored"!==c||r){e.next=9;break}return e.abrupt("return",null);case 9:return(a.plugins||[]).forEach((function(e){if(e.value instanceof ew)throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()")})),e.abrupt("return",new AP(a,o?o.filepath:void 0,u?u.filepath:void 0,l?l.filepath:void 0,c,p));case 11:case"end":return e.stop()}}),e)}))),AP=function(){function e(e,t,r,n,s,a){this.options=void 0,this.babelrc=void 0,this.babelignore=void 0,this.config=void 0,this.fileHandling=void 0,this.files=void 0,this.options=e,this.babelignore=r,this.babelrc=t,this.config=n,this.fileHandling=s,this.files=a,Object.freeze(this)}return e.prototype.hasFilesystemConfig=function(){return void 0!==this.babelrc||void 0!==this.config},e}();Object.freeze(AP.prototype);var wP=bh.mark(FP),CP=bh.mark(NP),SP=OA(bh.mark((function e(t){var r,n,s,a,i,o,u,l,p,d,h,m,y,g,v;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(xP(t),"t0",1);case 1:if(n=e.t0){e.next=4;break}return e.abrupt("return",null);case 4:if(s=n.options,a=n.context,"ignored"!==n.fileHandling){e.next=7;break}return e.abrupt("return",null);case 7:if(i={},o=s.plugins,u=s.presets,o&&u){e.next=11;break}throw new Error("Assertion failure - plugins and presets exist");case 11:return l=Object.assign({},a,{targets:s.targets}),p=function(e){var t=jT(e);if(!t)throw new Error("Assertion failure - must be config item");return t},d=u.map(p),h=o.map(p),m=[[]],y=[],e.delegateYield(TP(a,bh.mark((function e(t,r){var n,s,a,o,u,p,d,h;return bh.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:n=[],s=0;case 2:if(!(s<t.length)){y.next=30;break}if(!1===(a=t[s]).options){y.next=27;break}if(y.prev=5,!a.ownPass){y.next=15;break}return y.t0=n,y.delegateYield(NP(a,l),"t1",9);case 9:y.t2=y.t1,y.t3=[],y.t4={preset:y.t2,pass:y.t3},y.t0.push.call(y.t0,y.t4),y.next=21;break;case 15:return y.t5=n,y.delegateYield(NP(a,l),"t6",17);case 17:y.t7=y.t6,y.t8=r,y.t9={preset:y.t7,pass:y.t8},y.t5.unshift.call(y.t5,y.t9);case 21:y.next=27;break;case 23:throw y.prev=23,y.t10=y.catch(5),"BABEL_UNKNOWN_OPTION"===y.t10.code&&hj(t,s,"preset",y.t10),y.t10;case 27:s++,y.next=2;break;case 30:if(!(n.length>0)){y.next=45;break}m.splice.apply(m,[1,0].concat(c(n.map((function(e){return e.pass})).filter((function(e){return e!==r}))))),o=f(n);case 33:if((u=o()).done){y.next=45;break}if(p=u.value,d=p.preset,h=p.pass,d){y.next=37;break}return y.abrupt("return",!0);case 37:return h.push.apply(h,c(d.plugins)),y.delegateYield(e(d.presets,h),"t11",39);case 39:if(!y.t11){y.next=42;break}return y.abrupt("return",!0);case 42:d.options.forEach((function(e){YA(i,e)}));case 43:y.next=33;break;case 45:case"end":return y.stop()}}),e,null,[[5,23]])})))(d,m[0]),"t1",18);case 18:if(!e.t1){e.next=21;break}return e.abrupt("return",null);case 21:return YA(g=i,s),v=Object.assign({},l,{assumptions:null!=(r=g.assumptions)?r:{}}),e.delegateYield(TP(a,bh.mark((function e(){var t,r,n,s,a,i,o;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=m[0]).unshift.apply(t,c(h)),r=f(m);case 2:if((n=r()).done){e.next=26;break}s=n.value,a=[],y.push(a),i=0;case 7:if(!(i<s.length)){e.next=24;break}if(!1===(o=s[i]).options){e.next=21;break}return e.prev=10,e.t0=a,e.delegateYield(FP(o,v),"t1",13);case 13:e.t2=e.t1,e.t0.push.call(e.t0,e.t2),e.next=21;break;case 17:throw e.prev=17,e.t3=e.catch(10),"BABEL_UNKNOWN_PLUGIN_PROPERTY"===e.t3.code&&hj(s,i,"plugin",e.t3),e.t3;case 21:i++,e.next=7;break;case 24:e.next=2;break;case 26:case"end":return e.stop()}}),e,null,[[10,17]])})))(),"t2",25);case 25:return g.plugins=y[0],g.presets=y.slice(1).filter((function(e){return e.length>0})).map((function(e){return{plugins:e}})),g.passPerPreset=g.presets.length>0,e.abrupt("return",{options:g,passes:y});case 29:case"end":return e.stop()}}),e)})));function TP(e,t){return bh.mark((function r(n,s){return bh.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.delegateYield(t(n,s),"t0",2);case 2:return r.abrupt("return",r.t0);case 5:throw r.prev=5,r.t1=r.catch(0),/^\[BABEL\]/.test(r.t1.message)||(r.t1.message="[BABEL] "+(e.filename||"unknown")+": "+r.t1.message),r.t1;case 9:case"end":return r.stop()}}),r,null,[[0,5]])}))}var jP=function(e){return iw(bh.mark((function r(n,s){var a,i,o,u,l,c,p;return bh.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=n.value,i=n.options,o=n.dirname,u=n.alias,!1!==i){r.next=3;break}throw new Error("Assertion failure");case 3:if(i=i||{},l=a,"function"!=typeof a){r.next=17;break}return c=XA(a,"You appear to be using an async plugin/preset, but Babel has been called synchronously"),p=Object.assign({},t,e(s)),r.prev=8,r.delegateYield(c(p,i,o),"t0",10);case 10:l=r.t0,r.next=17;break;case 13:throw r.prev=13,r.t1=r.catch(8),u&&(r.t1.message+=" (While processing: "+JSON.stringify(u)+")"),r.t1;case 17:if(l&&"object"==typeof l){r.next=19;break}throw new Error("Plugin/Preset did not return an object.");case 19:if(!JA(l)){r.next=22;break}return r.delegateYield([],"t2",21);case 21:throw new Error('You appear to be using a promise as a plugin, which your current version of Babel does not support. If you\'re using a published plugin, you may need to upgrade your @babel/core version. As an alternative, you can prefix the promise with "await". (While processing: '+JSON.stringify(u)+")");case 22:return r.abrupt("return",{value:l,options:i,dirname:o,alias:u});case 23:case"end":return r.stop()}}),r,null,[[8,13]])})))},PP=jP((function(e){return Object.assign({},gP(e),{assumption:function(t){return e.using((function(e){return e.assumptions[t]}))}})})),IP=jP(gP);function FP(e,t){return bh.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e.value instanceof ew)){r.next=4;break}if(!e.options){r.next=3;break}throw new Error("Passed options to an existing Plugin instance will not work.");case 3:return r.abrupt("return",e.value);case 4:return r.t0=kP,r.delegateYield(PP(e,t),"t1",6);case 6:return r.t2=r.t1,r.t3=t,r.delegateYield((0,r.t0)(r.t2,r.t3),"t4",9);case 9:return r.abrupt("return",r.t4);case 10:case"end":return r.stop()}}),wP)}var kP=iw(bh.mark((function e(t,r){var n,s,a,i,o,u,l,c;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.value,s=t.options,a=t.dirname,i=t.alias,o=yP(n),(u=Object.assign({},o)).visitor&&(u.visitor=gv.explode(Object.assign({},u.visitor))),!u.inherits){e.next=12;break}return l={name:void 0,alias:i+"$inherits",value:u.inherits,options:s,dirname:a},e.delegateYield($A(FP,(function(e){return r.invalidate((function(t){return e(l,t)}))})),"t0",7);case 7:c=e.t0,u.pre=_P(c.pre,u.pre),u.post=_P(c.post,u.post),u.manipulateOptions=_P(c.manipulateOptions,u.manipulateOptions),u.visitor=gv.visitors.merge([c.visitor||{},u.visitor||{}]);case 12:return e.abrupt("return",new ew(u,s,i));case 13:case"end":return e.stop()}}),e)}))),OP=function(e,t){if(e.test||e.include||e.exclude){var r=t.name?'"'+t.name+'"':"/* your preset */";throw new Error(["Preset "+r+" requires a filename to be set when babel is called directly,","```","babel.transform(code, { filename: 'file.ts', presets: ["+r+"] });","```","See https://babeljs.io/docs/en/options#filename for more information."].join("\n"))}},RP=function(e,t,r){if(!t.filename){var n=e.options;OP(n,r),n.overrides&&n.overrides.forEach((function(e){return OP(e,r)}))}};function NP(e,t){var r;return bh.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=BP,n.delegateYield(IP(e,t),"t1",2);case 2:return n.t2=n.t1,r=(0,n.t0)(n.t2),RP(r,t,e),n.delegateYield(Nj(r,t),"t3",6);case 6:return n.abrupt("return",n.t3);case 7:case"end":return n.stop()}}),CP)}var BP=ow((function(e){var t=e.value,r=e.dirname,n=e.alias;return{options:cj("preset",t),alias:n,dirname:r}}));function _P(e,t){var r=[e,t].filter(Boolean);return r.length<=1?r[0]:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var s,a=f(r);!(s=a()).done;){var i=s.value;i.apply(this,t)}}}var LP=OA(bh.mark((function e(t){var r,n;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(SP(t),"t0",1);case 1:return n=e.t0,e.abrupt("return",null!=(r=null==n?void 0:n.options)?r:null);case 3:case"end":return e.stop()}}),e)}))),MP=OA(TT),UP=function(e){return function(t,r){return void 0===r&&"function"==typeof t&&(r=t,t=void 0),r?e.errback(t,r):e.sync(t)}},GP=UP(DP),VP=DP.sync,WP=DP.async,HP=UP(LP),XP=LP.sync,qP=LP.async,$P=MP.sync,KP=MP.async;function zP(e,t,r){return void 0!==r?MP.errback(e,t,r):"function"==typeof t?MP.errback(e,void 0,r):MP.sync(e,t)}var JP,YP=function(){function e(e,t,r){this._map=new Map,this.key=void 0,this.file=void 0,this.opts=void 0,this.cwd=void 0,this.filename=void 0,this.key=t,this.file=e,this.opts=r||{},this.cwd=e.opts.cwd,this.filename=e.opts.filename}var t=e.prototype;return t.set=function(e,t){this._map.set(e,t)},t.get=function(e){return this._map.get(e)},t.availableHelper=function(e,t){return this.file.availableHelper(e,t)},t.addHelper=function(e){return this.file.addHelper(e)},t.addImport=function(){return this.file.addImport()},t.buildCodeFrameError=function(e,t,r){return this.file.buildCodeFrameError(e,t,r)},e}();function QP(e){var t=null==e?void 0:e._blockHoist;return null==t?1:!0===t?2:t}YP.prototype.getModuleName=function(){return this.file.getModuleName()};var ZP={name:"internal.blockHoist",visitor:{Block:{exit:function(e){for(var t=e.node,r=t.body,n=Math.pow(2,30)-1,s=!1,a=0;a<r.length;a++){var i=QP(r[a]);if(i>n){s=!0;break}n=i}s&&(t.body=function(e){for(var t=Object.create(null),r=0;r<e.length;r++){var n=e[r],s=QP(n);(t[s]||(t[s]=[])).push(n)}for(var a,i=0,o=f(Object.keys(t).map((function(e){return+e})).sort((function(e,t){return t-e})));!(a=o()).done;)for(var u,l=f(t[a.value]);!(u=l()).done;){var c=u.value;e[i++]=c}return e}(r.slice()))}}}};function eI(e){for(var t,r=e.options,n=r.filename,s=r.cwd,a=r.filenameRelative,i=void 0===a?"string"==typeof n?rx.relative(s,n):"unknown":a,o=r.sourceType,u=void 0===o?"module":o,l=r.inputSourceMap,c=r.sourceMaps,p=void 0===c?!!l:c,d=r.sourceRoot,h=void 0===d?e.options.moduleRoot:d,m=r.sourceFileName,y=void 0===m?rx.basename(i):m,g=r.comments,v=void 0===g||g,b=r.compact,E=void 0===b?"auto":b,x=e.options,D=Object.assign({},x,{parserOpts:Object.assign({sourceType:".mjs"===rx.extname(i)?"module":u,sourceFileName:n,plugins:[]},x.parserOpts),generatorOpts:Object.assign({filename:n,auxiliaryCommentBefore:x.auxiliaryCommentBefore,auxiliaryCommentAfter:x.auxiliaryCommentAfter,retainLines:x.retainLines,comments:v,shouldPrintComment:x.shouldPrintComment,compact:E,minified:x.minified,sourceMaps:p,sourceRoot:h,sourceFileName:y},x.generatorOpts)}),A=f(e.passes);!(t=A()).done;)for(var w,C=f(t.value);!(w=C()).done;){var S=w.value;S.manipulateOptions&&S.manipulateOptions(D,D.parserOpts)}return D}var tI={},rI=zt((function(e,t){var r=Jd.Buffer;function n(e,t){for(var r in e)t[r]=e[r]}function s(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=Jd:(n(Jd,t),t.Buffer=s),n(r,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var s=r(e);return void 0!==t?"string"==typeof n?s.fill(t,n):s.fill(t):s.fill(0),s},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return Jd.SlowBuffer(e)}}),"/$$rollup_base$$/packages/babel-core/node_modules/convert-source-map/node_modules/safe-buffer"),nI=Kt(ax),sI=zt((function(e,t){function r(e,r){(r=r||{}).isFileComment&&(e=function(e,r){var n=t.mapFileCommentRegex.exec(e),s=n[1]||n[2],a=nI.resolve(r,s);try{return Fw.readFileSync(a,"utf8")}catch(e){throw new Error("An error occurred while trying to read the map file at "+a+"\n"+e)}}(e,r.commentFileDir)),r.hasComment&&(e=function(e){return e.split(",").pop()}(e)),r.isEncoded&&(e=function(e){return rI.Buffer.from(e,"base64").toString()}(e)),(r.isJSON||r.isEncoded)&&(e=JSON.parse(e)),this.sourcemap=e}Object.defineProperty(t,"commentRegex",{get:function(){return/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/gm}}),Object.defineProperty(t,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"`]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm}}),r.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)},r.prototype.toBase64=function(){var e=this.toJSON();return rI.Buffer.from(e,"utf8").toString("base64")},r.prototype.toComment=function(e){var t="sourceMappingURL=data:application/json;charset=utf-8;base64,"+this.toBase64();return e&&e.multiline?"/*# "+t+" */":"//# "+t},r.prototype.toObject=function(){return JSON.parse(this.toJSON())},r.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)},r.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this},r.prototype.getProperty=function(e){return this.sourcemap[e]},t.fromObject=function(e){return new r(e)},t.fromJSON=function(e){return new r(e,{isJSON:!0})},t.fromBase64=function(e){return new r(e,{isEncoded:!0})},t.fromComment=function(e){return new r(e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),{isEncoded:!0,hasComment:!0})},t.fromMapFileComment=function(e,t){return new r(e,{commentFileDir:t,isFileComment:!0,isJSON:!0})},t.fromSource=function(e){var r=e.match(t.commentRegex);return r?t.fromComment(r.pop()):null},t.fromMapFileSource=function(e,r){var n=e.match(t.mapFileCommentRegex);return n?t.fromMapFileComment(n.pop(),r):null},t.removeComments=function(e){return e.replace(t.commentRegex,"")},t.removeMapFileComments=function(e){return e.replace(t.mapFileCommentRegex,"")},t.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}}),"/$$rollup_base$$/packages/babel-core/node_modules/convert-source-map"),aI={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://git.io/JYer8"}},classProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://git.io/vb4yQ"},transform:{name:"@babel/plugin-proposal-class-properties",url:"https://git.io/vb4SL"}},classPrivateProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://git.io/vb4yQ"},transform:{name:"@babel/plugin-proposal-class-properties",url:"https://git.io/vb4SL"}},classPrivateMethods:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://git.io/vb4yQ"},transform:{name:"@babel/plugin-proposal-private-methods",url:"https://git.io/JvpRG"}},classStaticBlock:{syntax:{name:"@babel/plugin-syntax-class-static-block",url:"https://git.io/JTLB6"},transform:{name:"@babel/plugin-proposal-class-static-block",url:"https://git.io/JTLBP"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://git.io/JfKOH"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://git.io/vb4y9"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://git.io/vb4ST"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://git.io/vb4yh"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://git.io/vb4S3"}},dynamicImport:{syntax:{name:"@babel/plugin-syntax-dynamic-import",url:"https://git.io/vb4Sv"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://git.io/vb4SO"},transform:{name:"@babel/plugin-proposal-export-default-from",url:"https://git.io/vb4yH"}},exportNamespaceFrom:{syntax:{name:"@babel/plugin-syntax-export-namespace-from",url:"https://git.io/vb4Sf"},transform:{name:"@babel/plugin-proposal-export-namespace-from",url:"https://git.io/vb4SG"}},flow:{syntax:{name:"@babel/plugin-syntax-flow",url:"https://git.io/vb4yb"},transform:{name:"@babel/preset-flow",url:"https://git.io/JfeDn"}},functionBind:{syntax:{name:"@babel/plugin-syntax-function-bind",url:"https://git.io/vb4y7"},transform:{name:"@babel/plugin-proposal-function-bind",url:"https://git.io/vb4St"}},functionSent:{syntax:{name:"@babel/plugin-syntax-function-sent",url:"https://git.io/vb4yN"},transform:{name:"@babel/plugin-proposal-function-sent",url:"https://git.io/vb4SZ"}},importMeta:{syntax:{name:"@babel/plugin-syntax-import-meta",url:"https://git.io/vbKK6"}},jsx:{syntax:{name:"@babel/plugin-syntax-jsx",url:"https://git.io/vb4yA"},transform:{name:"@babel/preset-react",url:"https://git.io/JfeDR"}},importAssertions:{syntax:{name:"@babel/plugin-syntax-import-assertions",url:"https://git.io/JUbkv"}},moduleStringNames:{syntax:{name:"@babel/plugin-syntax-module-string-names",url:"https://git.io/JTL8G"}},numericSeparator:{syntax:{name:"@babel/plugin-syntax-numeric-separator",url:"https://git.io/vb4Sq"},transform:{name:"@babel/plugin-proposal-numeric-separator",url:"https://git.io/vb4yS"}},optionalChaining:{syntax:{name:"@babel/plugin-syntax-optional-chaining",url:"https://git.io/vb4Sc"},transform:{name:"@babel/plugin-proposal-optional-chaining",url:"https://git.io/vb4Sk"}},pipelineOperator:{syntax:{name:"@babel/plugin-syntax-pipeline-operator",url:"https://git.io/vb4yj"},transform:{name:"@babel/plugin-proposal-pipeline-operator",url:"https://git.io/vb4SU"}},privateIn:{syntax:{name:"@babel/plugin-syntax-private-property-in-object",url:"https://git.io/JfK3q"},transform:{name:"@babel/plugin-proposal-private-property-in-object",url:"https://git.io/JfK3O"}},recordAndTuple:{syntax:{name:"@babel/plugin-syntax-record-and-tuple",url:"https://git.io/JvKp3"}},throwExpressions:{syntax:{name:"@babel/plugin-syntax-throw-expressions",url:"https://git.io/vb4SJ"},transform:{name:"@babel/plugin-proposal-throw-expressions",url:"https://git.io/vb4yF"}},typescript:{syntax:{name:"@babel/plugin-syntax-typescript",url:"https://git.io/vb4SC"},transform:{name:"@babel/preset-typescript",url:"https://git.io/JfeDz"}},asyncGenerators:{syntax:{name:"@babel/plugin-syntax-async-generators",url:"https://git.io/vb4SY"},transform:{name:"@babel/plugin-proposal-async-generator-functions",url:"https://git.io/vb4yp"}},logicalAssignment:{syntax:{name:"@babel/plugin-syntax-logical-assignment-operators",url:"https://git.io/vAlBp"},transform:{name:"@babel/plugin-proposal-logical-assignment-operators",url:"https://git.io/vAlRe"}},nullishCoalescingOperator:{syntax:{name:"@babel/plugin-syntax-nullish-coalescing-operator",url:"https://git.io/vb4yx"},transform:{name:"@babel/plugin-proposal-nullish-coalescing-operator",url:"https://git.io/vb4Se"}},objectRestSpread:{syntax:{name:"@babel/plugin-syntax-object-rest-spread",url:"https://git.io/vb4y5"},transform:{name:"@babel/plugin-proposal-object-rest-spread",url:"https://git.io/vb4Ss"}},optionalCatchBinding:{syntax:{name:"@babel/plugin-syntax-optional-catch-binding",url:"https://git.io/vb4Sn"},transform:{name:"@babel/plugin-proposal-optional-catch-binding",url:"https://git.io/vb4SI"}}};aI.privateIn.syntax=aI.privateIn.transform;var iI=function(e){return e.name+" ("+e.url+")"};function oI(e,t,r){var n="Support for the experimental syntax '"+e+"' isn't currently enabled ("+t.line+":"+(t.column+1)+"):\n\n"+r,s=aI[e];if(s){var a=s.syntax,i=s.transform;if(a){var o=iI(a);if(i)n+="\n\nAdd "+iI(i)+" to the '"+(i.name.startsWith("@babel/plugin")?"plugins":"presets")+"' section of your Babel config to enable transformation.\nIf you want to leave it as-is, add "+o+" to the 'plugins' section to enable parsing.";else n+="\n\nAdd "+o+" to the 'plugins' section of your Babel config to enable parsing."}}return n}var uI=bh.mark(lI);function lI(e,t,r){var n,s,a,i,o,u,l,c,p,d,h,m,y,g,v,b,E;return bh.wrap((function(x){for(;;)switch(x.prev=x.next){case 0:for(n=t.parserOpts,s=t.highlightCode,a=void 0===s||s,i=t.filename,o=void 0===i?"unknown":i,x.prev=1,u=[],l=f(e);!(c=l()).done;)for(p=c.value,d=f(p);!(h=d()).done;)m=h.value,(y=m.parserOverride)&&void 0!==(g=y(r,n,_y))&&u.push(g);if(0!==u.length){x.next=8;break}return x.abrupt("return",_y(r,n));case 8:if(1!==u.length){x.next=13;break}return x.delegateYield([],"t0",10);case 10:if("function"!=typeof u[0].then){x.next=12;break}throw new Error("You appear to be using an async parser plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");case 12:return x.abrupt("return",u[0]);case 13:throw new Error("More than one plugin attempted to override parsing.");case 16:throw x.prev=16,x.t1=x.catch(1),"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"===x.t1.code&&(x.t1.message+="\nConsider renaming the file to '.mjs', or setting sourceType:module or sourceType:unambiguous in your Babel config for this file."),v=x.t1.loc,b=x.t1.missingPlugin,v&&(E=Zh(r,{start:{line:v.line,column:v.column+1}},{highlightCode:a}),x.t1.message=b?o+": "+oI(b[0],v,E):o+": "+x.t1.message+"\n\n"+E,x.t1.code="BABEL_PARSE_ERROR"),x.t1;case 22:case"end":return x.stop()}}),uI,null,[[1,16]])}var cI="$$ babel internal serialized type"+Math.random();function pI(e,t){var r;return"bigint"!=typeof t?t:((r={})[cI]="BigInt",r.value=t.toString(),r)}function dI(e,t){return t&&"object"==typeof t?"BigInt"!==t[cI]?t:BigInt(t.value):t}var fI=bh.mark(mI),hI=UT("babel:transform:file");function mI(e,t,r,n){var s,a,i,o,u;return bh.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(r=""+(r||""),!n){l.next=11;break}if("Program"!==n.type){l.next=6;break}n=gs(n,[],[]),l.next=8;break;case 6:if("File"===n.type){l.next=8;break}throw new Error("AST root must be a Program or File node");case 8:t.cloneInputAst&&(c=n,n=JSON.parse(JSON.stringify(c,pI),dI)),l.next=13;break;case 11:return l.delegateYield(lI(e,t,r),"t0",12);case 12:n=l.t0;case 13:if(s=null,!1!==t.inputSourceMap){if("object"==typeof t.inputSourceMap&&(s=sI.fromObject(t.inputSourceMap)),!s&&(a=bI(yI,n)))try{s=sI.fromComment(a)}catch(e){hI("discarding unknown inline input sourcemap",e)}if(!s)if(i=bI(gI,n),"string"==typeof t.filename&&i)try{o=gI.exec(i),(u=tI.readFileSync(rx.resolve(rx.dirname(t.filename),o[1]))).length>1e6?hI("skip merging input map > 1 MB"):s=sI.fromJSON(u)}catch(e){hI("discarding unknown file input sourcemap",e)}else i&&hI("discarding un-loadable file input sourcemap")}return l.abrupt("return",new sA(t,{code:r,ast:n,inputMap:s}));case 16:case"end":return l.stop()}var c}),fI)}var yI=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/,gI=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function vI(e,t,r){return t&&(t=t.filter((function(t){var n=t.value;return!e.test(n)||(r=n,!1)}))),[t,r]}function bI(e,t){var r=null;return sc(t,(function(t){var n=l(vI(e,t.leadingComments,r),2);t.leadingComments=n[0],r=n[1];var s=l(vI(e,t.innerComments,r),2);t.innerComments=s[0],r=s[1];var a=l(vI(e,t.trailingComments,r),2);t.trailingComments=a[0],r=a[1]})),r}var EI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),xI=function(e){if(0<=e&&e<EI.length)return EI[e];throw new TypeError("Must be between 0 and 63: "+e)},DI=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var AI=function(e){var t,r="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=xI(t)}while(n>0);return r},wI=function(e,t,r){var n,s,a,i,o=e.length,u=0,l=0;do{if(t>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(s=DI(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&s),u+=(s&=31)<<l,l+=5}while(n);r.value=(i=(a=u)>>1,1==(1&a)?-i:i),r.rest=t},CI=zt((function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function s(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(e){var r=e,n=s(e);if(n){if(!n.path)return e;r=n.path}for(var i,o=t.isAbsolute(r),u=r.split(/\/+/),l=0,c=u.length-1;c>=0;c--)"."===(i=u[c])?u.splice(c,1):".."===i?l++:l>0&&(""===i?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return""===(r=u.join("/"))&&(r=o?"/":"."),n?(n.path=r,a(n)):r}t.urlParse=s,t.urlGenerate=a,t.normalize=i,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=s(t),o=s(e);if(o&&(e=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),a(r);if(r||t.match(n))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var u="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=u,a(o)):u},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var o=!("__proto__"in Object.create(null));function u(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function c(e,t){return e===t?0:e>t?1:-1}t.toSetString=o?u:function(e){return l(e)?"$"+e:e},t.fromSetString=o?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=e.source-t.source;return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=e.source-t.source)||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=c(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:c(e.name,t.name)}}),"/$$rollup_base$$/packages/babel-core/node_modules/source-map/lib"),SI=Object.prototype.hasOwnProperty,TI="undefined"!=typeof Map;function jI(){this._array=[],this._set=TI?new Map:Object.create(null)}jI.fromArray=function(e,t){for(var r=new jI,n=0,s=e.length;n<s;n++)r.add(e[n],t);return r},jI.prototype.size=function(){return TI?this._set.size:Object.getOwnPropertyNames(this._set).length},jI.prototype.add=function(e,t){var r=TI?e:CI.toSetString(e),n=TI?this.has(e):SI.call(this._set,r),s=this._array.length;n&&!t||this._array.push(e),n||(TI?this._set.set(e,s):this._set[r]=s)},jI.prototype.has=function(e){if(TI)return this._set.has(e);var t=CI.toSetString(e);return SI.call(this._set,t)},jI.prototype.indexOf=function(e){if(TI){var t=this._set.get(e);if(t>=0)return t}else{var r=CI.toSetString(e);if(SI.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},jI.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},jI.prototype.toArray=function(){return this._array.slice()};var PI={ArraySet:jI};function II(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}II.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},II.prototype.add=function(e){var t,r,n,s,a,i;t=this._last,r=e,n=t.generatedLine,s=r.generatedLine,a=t.generatedColumn,i=r.generatedColumn,s>n||s==n&&i>=a||CI.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},II.prototype.toArray=function(){return this._sorted||(this._array.sort(CI.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var FI=PI.ArraySet,kI={MappingList:II}.MappingList;function OI(e){e||(e={}),this._file=CI.getArg(e,"file",null),this._sourceRoot=CI.getArg(e,"sourceRoot",null),this._skipValidation=CI.getArg(e,"skipValidation",!1),this._sources=new FI,this._names=new FI,this._mappings=new kI,this._sourcesContents=null}OI.prototype._version=3,OI.fromSourceMap=function(e){var t=e.sourceRoot,r=new OI({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=CI.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)})),r},OI.prototype.addMapping=function(e){var t=CI.getArg(e,"generated"),r=CI.getArg(e,"original",null),n=CI.getArg(e,"source",null),s=CI.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,s),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=s&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:s})},OI.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=CI.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[CI.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[CI.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},OI.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var s=this._sourceRoot;null!=s&&(n=CI.relative(s,n));var a=new FI,i=new FI;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=r&&(t.source=CI.join(r,t.source)),null!=s&&(t.source=CI.relative(s,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var u=t.source;null==u||a.has(u)||a.add(u);var l=t.name;null==l||i.has(l)||i.add(l)}),this),this._sources=a,this._names=i,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=CI.join(r,t)),null!=s&&(t=CI.relative(s,t)),this.setSourceContent(t,n))}),this)},OI.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},OI.prototype._serializeMappings=function(){for(var e,t,r,n,s=0,a=1,i=0,o=0,u=0,l=0,c="",p=this._mappings.toArray(),d=0,f=p.length;d<f;d++){if(e="",(t=p[d]).generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=";",a++;else if(d>0){if(!CI.compareByGeneratedPositionsInflated(t,p[d-1]))continue;e+=","}e+=AI(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=AI(n-l),l=n,e+=AI(t.originalLine-1-o),o=t.originalLine-1,e+=AI(t.originalColumn-i),i=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=AI(r-u),u=r)),c+=e}return c},OI.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=CI.relative(t,e));var r=CI.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},OI.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},OI.prototype.toString=function(){return JSON.stringify(this.toJSON())};var RI={SourceMapGenerator:OI},NI=zt((function(e,t){function r(e,n,s,a,i,o){var u=Math.floor((n-e)/2)+e,l=i(s,a[u],!0);return 0===l?u:l>0?n-u>1?r(u,n,s,a,i,o):o==t.LEAST_UPPER_BOUND?n<a.length?n:-1:u:u-e>1?r(e,u,s,a,i,o):o==t.LEAST_UPPER_BOUND?u:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,s,a){if(0===n.length)return-1;var i=r(-1,n.length,e,n,s,a||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===s(n[i],n[i-1],!0);)--i;return i}}),"/$$rollup_base$$/packages/babel-core/node_modules/source-map/lib");function BI(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function _I(e,t,r,n){if(r<n){var s=r-1;BI(e,(u=r,l=n,Math.round(u+Math.random()*(l-u))),n);for(var a=e[n],i=r;i<n;i++)t(e[i],a)<=0&&BI(e,s+=1,i);BI(e,s+1,i);var o=s+1;_I(e,t,r,o-1),_I(e,t,o+1,n)}var u,l}var LI=PI.ArraySet,MI=function(e,t){_I(e,t,0,e.length-1)};function UI(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new XI(t):new VI(t)}UI.fromSourceMap=function(e){return VI.fromSourceMap(e)},UI.prototype._version=3,UI.prototype.__generatedMappings=null,Object.defineProperty(UI.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),UI.prototype.__originalMappings=null,Object.defineProperty(UI.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),UI.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},UI.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},UI.GENERATED_ORDER=1,UI.ORIGINAL_ORDER=2,UI.GREATEST_LOWER_BOUND=1,UI.LEAST_UPPER_BOUND=2,UI.prototype.eachMapping=function(e,t,r){var n,s=t||null;switch(r||UI.GENERATED_ORDER){case UI.GENERATED_ORDER:n=this._generatedMappings;break;case UI.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=CI.join(a,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,s)},UI.prototype.allGeneratedPositionsFor=function(e){var t=CI.getArg(e,"line"),r={source:CI.getArg(e,"source"),originalLine:t,originalColumn:CI.getArg(e,"column",0)};if(null!=this.sourceRoot&&(r.source=CI.relative(this.sourceRoot,r.source)),!this._sources.has(r.source))return[];r.source=this._sources.indexOf(r.source);var n=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",CI.compareByOriginalPositions,NI.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===e.column)for(var i=a.originalLine;a&&a.originalLine===i;)n.push({line:CI.getArg(a,"generatedLine",null),column:CI.getArg(a,"generatedColumn",null),lastColumn:CI.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var o=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==o;)n.push({line:CI.getArg(a,"generatedLine",null),column:CI.getArg(a,"generatedColumn",null),lastColumn:CI.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return n};var GI=UI;function VI(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=CI.getArg(t,"version"),n=CI.getArg(t,"sources"),s=CI.getArg(t,"names",[]),a=CI.getArg(t,"sourceRoot",null),i=CI.getArg(t,"sourcesContent",null),o=CI.getArg(t,"mappings"),u=CI.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(CI.normalize).map((function(e){return a&&CI.isAbsolute(a)&&CI.isAbsolute(e)?CI.relative(a,e):e})),this._names=LI.fromArray(s.map(String),!0),this._sources=LI.fromArray(n,!0),this.sourceRoot=a,this.sourcesContent=i,this._mappings=o,this.file=u}function WI(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}VI.prototype=Object.create(UI.prototype),VI.prototype.consumer=UI,VI.fromSourceMap=function(e){var t=Object.create(VI.prototype),r=t._names=LI.fromArray(e._names.toArray(),!0),n=t._sources=LI.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var s=e._mappings.toArray().slice(),a=t.__generatedMappings=[],i=t.__originalMappings=[],o=0,u=s.length;o<u;o++){var l=s[o],c=new WI;c.generatedLine=l.generatedLine,c.generatedColumn=l.generatedColumn,l.source&&(c.source=n.indexOf(l.source),c.originalLine=l.originalLine,c.originalColumn=l.originalColumn,l.name&&(c.name=r.indexOf(l.name)),i.push(c)),a.push(c)}return MI(t.__originalMappings,CI.compareByOriginalPositions),t},VI.prototype._version=3,Object.defineProperty(VI.prototype,"sources",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?CI.join(this.sourceRoot,e):e}),this)}}),VI.prototype._parseMappings=function(e,t){for(var r,n,s,a,i,o=1,u=0,l=0,c=0,p=0,d=0,f=e.length,h=0,m={},y={},g=[],v=[];h<f;)if(";"===e.charAt(h))o++,h++,u=0;else if(","===e.charAt(h))h++;else{for((r=new WI).generatedLine=o,a=h;a<f&&!this._charIsMappingSeparator(e,a);a++);if(s=m[n=e.slice(h,a)])h+=n.length;else{for(s=[];h<a;)wI(e,h,y),i=y.value,h=y.rest,s.push(i);if(2===s.length)throw new Error("Found a source, but no line and column");if(3===s.length)throw new Error("Found a source and line, but no column");m[n]=s}r.generatedColumn=u+s[0],u=r.generatedColumn,s.length>1&&(r.source=p+s[1],p+=s[1],r.originalLine=l+s[2],l=r.originalLine,r.originalLine+=1,r.originalColumn=c+s[3],c=r.originalColumn,s.length>4&&(r.name=d+s[4],d+=s[4])),v.push(r),"number"==typeof r.originalLine&&g.push(r)}MI(v,CI.compareByGeneratedPositionsDeflated),this.__generatedMappings=v,MI(g,CI.compareByOriginalPositions),this.__originalMappings=g},VI.prototype._findMapping=function(e,t,r,n,s,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return NI.search(e,t,s,a)},VI.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},VI.prototype.originalPositionFor=function(e){var t={generatedLine:CI.getArg(e,"line"),generatedColumn:CI.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",CI.compareByGeneratedPositionsDeflated,CI.getArg(e,"bias",UI.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var s=CI.getArg(n,"source",null);null!==s&&(s=this._sources.at(s),null!=this.sourceRoot&&(s=CI.join(this.sourceRoot,s)));var a=CI.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:s,line:CI.getArg(n,"originalLine",null),column:CI.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},VI.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},VI.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=CI.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=CI.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},VI.prototype.generatedPositionFor=function(e){var t=CI.getArg(e,"source");if(null!=this.sourceRoot&&(t=CI.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:CI.getArg(e,"line"),originalColumn:CI.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",CI.compareByOriginalPositions,CI.getArg(e,"bias",UI.GREATEST_LOWER_BOUND));if(n>=0){var s=this._originalMappings[n];if(s.source===r.source)return{line:CI.getArg(s,"generatedLine",null),column:CI.getArg(s,"generatedColumn",null),lastColumn:CI.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var HI=VI;function XI(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=CI.getArg(t,"version"),n=CI.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new LI,this._names=new LI;var s={line:-1,column:0};this._sections=n.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=CI.getArg(e,"offset"),r=CI.getArg(t,"line"),n=CI.getArg(t,"column");if(r<s.line||r===s.line&&n<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=t,{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new UI(CI.getArg(e,"map"))}}))}XI.prototype=Object.create(UI.prototype),XI.prototype.constructor=UI,XI.prototype._version=3,Object.defineProperty(XI.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),XI.prototype.originalPositionFor=function(e){var t={generatedLine:CI.getArg(e,"line"),generatedColumn:CI.getArg(e,"column")},r=NI.search(t,this._sections,(function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r||e.generatedColumn-t.generatedOffset.generatedColumn})),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},XI.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},XI.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},XI.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer.sources.indexOf(CI.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},XI.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],s=n.consumer._generatedMappings,a=0;a<s.length;a++){var i=s[a],o=n.consumer._sources.at(i.source);null!==n.consumer.sourceRoot&&(o=CI.join(n.consumer.sourceRoot,o)),this._sources.add(o),o=this._sources.indexOf(o);var u=n.consumer._names.at(i.name);this._names.add(u),u=this._names.indexOf(u);var l={source:o,generatedLine:i.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:i.generatedColumn+(n.generatedOffset.generatedLine===i.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:i.originalLine,originalColumn:i.originalColumn,name:u};this.__generatedMappings.push(l),"number"==typeof l.originalLine&&this.__originalMappings.push(l)}MI(this.__generatedMappings,CI.compareByGeneratedPositionsDeflated),MI(this.__originalMappings,CI.compareByOriginalPositions)};var qI={SourceMapConsumer:GI,BasicSourceMapConsumer:HI,IndexedSourceMapConsumer:XI},$I=RI.SourceMapGenerator,KI=/(\r?\n)/,zI="$$$isSourceNode$$$";function JI(e,t,r,n,s){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==s?null:s,this[zI]=!0,null!=n&&this.add(n)}JI.fromStringWithSourceMap=function(e,t,r){var n=new JI,s=e.split(KI),a=0,i=function(){return e()+(e()||"");function e(){return a<s.length?s[a++]:void 0}},o=1,u=0,l=null;return t.eachMapping((function(e){if(null!==l){if(!(o<e.generatedLine)){var t=(r=s[a]).substr(0,e.generatedColumn-u);return s[a]=r.substr(e.generatedColumn-u),u=e.generatedColumn,c(l,t),void(l=e)}c(l,i()),o++,u=0}for(;o<e.generatedLine;)n.add(i()),o++;if(u<e.generatedColumn){var r=s[a];n.add(r.substr(0,e.generatedColumn)),s[a]=r.substr(e.generatedColumn),u=e.generatedColumn}l=e}),this),a<s.length&&(l&&c(l,i()),n.add(s.splice(a).join(""))),t.sources.forEach((function(e){var s=t.sourceContentFor(e);null!=s&&(null!=r&&(e=CI.join(r,e)),n.setSourceContent(e,s))})),n;function c(e,t){if(null===e||void 0===e.source)n.add(t);else{var s=r?CI.join(r,e.source):e.source;n.add(new JI(e.originalLine,e.originalColumn,s,t,e.name))}}},JI.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[zI]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},JI.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[zI]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},JI.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[zI]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},JI.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},JI.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[zI]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},JI.prototype.setSourceContent=function(e,t){this.sourceContents[CI.toSetString(e)]=t},JI.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][zI]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(CI.fromSetString(n[t]),this.sourceContents[n[t]])},JI.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},JI.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new $I(e),n=!1,s=null,a=null,i=null,o=null;return this.walk((function(e,u){t.code+=e,null!==u.source&&null!==u.line&&null!==u.column?(s===u.source&&a===u.line&&i===u.column&&o===u.name||r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name}),s=u.source,a=u.line,i=u.column,o=u.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),s=null,n=!1);for(var l=0,c=e.length;l<c;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===c?(s=null,n=!1):n&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}};var YI={SourceMapGenerator:RI.SourceMapGenerator,SourceMapConsumer:qI.SourceMapConsumer,SourceNode:{SourceNode:JI}.SourceNode};function QI(e,t){for(var r,n=eF(e),s=eF(t),a=new YI.SourceMapGenerator,i=f(n.sources);!(r=i()).done;){var o=r.value.source;"string"==typeof o.content&&a.setSourceContent(o.path,o.content)}if(1===s.sources.length){var u=s.sources[0],l=new Map;!function(e,t){for(var r,n=f(e.sources);!(r=n()).done;)for(var s,a=r.value,i=a.source,o=f(a.mappings);!(s=o()).done;)for(var u,l=s.value,c=l.original,p=f(l.generated);!(u=p()).done;){t(u.value,c,i)}}(n,(function(e,t,r){!function(e,t,r){for(var n,s=f(function(e,t){var r=e.mappings,n=t.line,s=t.columnStart,a=t.columnEnd;return function(e,t){for(var r=function(e,t){var r=0,n=e.length;for(;r<n;){var s=Math.floor((r+n)/2),a=t(e[s]);if(0===a){r=s;break}a>=0?n=s:r=s+1}var i=r;if(i<e.length){for(;i>=0&&t(e[i])>=0;)i--;return i+1}return i}(e,t),n=[],s=r;s<e.length&&0===t(e[s]);s++)n.push(e[s]);return n}(r,(function(e){var t=e.original;return n>t.line?-1:n<t.line?1:s>=t.columnEnd?-1:a<=t.columnStart?1:0}))}(e,t));!(n=s()).done;)for(var a,i=f(n.value.generated);!(a=i()).done;){r(a.value)}}(u,e,(function(e){var n=ZI(e);l.has(n)||(l.set(n,e),a.addMapping({source:r.path,original:{line:t.line,column:t.columnStart},generated:{line:e.line,column:e.columnStart},name:t.name}))}))}));for(var c,p=f(l.values());!(c=p()).done;){var d=c.value;if(d.columnEnd!==1/0){var h={line:d.line,columnStart:d.columnEnd},m=ZI(h);l.has(m)||a.addMapping({generated:{line:h.line,column:h.columnStart}})}}}var y=a.toJSON();return"string"==typeof n.sourceRoot&&(y.sourceRoot=n.sourceRoot),y}function ZI(e){return e.line+"/"+e.columnStart}function eF(e){var t=new YI.SourceMapConsumer(Object.assign({},e,{sourceRoot:null})),r=new Map,n=new Map,s=null;return t.computeColumnSpans(),t.eachMapping((function(e){if(null!==e.originalLine){var a=r.get(e.source);a||(a={path:e.source,content:t.sourceContentFor(e.source,!0)},r.set(e.source,a));var i=n.get(a);i||(i={source:a,mappings:[]},n.set(a,i));var o={line:e.originalLine,columnStart:e.originalColumn,columnEnd:1/0,name:e.name};s&&s.source===a&&s.mapping.line===e.originalLine&&(s.mapping.columnEnd=e.originalColumn),s={source:a,mapping:o},i.mappings.push({original:o,generated:t.allGeneratedPositionsFor({source:e.source,line:e.originalLine,column:e.originalColumn}).map((function(e){return{line:e.line,columnStart:e.column,columnEnd:e.lastColumn+1}}))})}}),null,YI.SourceMapConsumer.ORIGINAL_ORDER),{file:e.file,sourceRoot:e.sourceRoot,sources:Array.from(n.values())}}function tF(e,t){for(var r,n,s=t.opts,a=t.ast,i=t.code,o=t.inputMap,u=[],l=f(e);!(r=l()).done;)for(var c,p=f(r.value);!(c=p()).done;){var d=c.value.generatorOverride;if(d){var h=d(a,s.generatorOpts,i,Bf);void 0!==h&&u.push(h)}}if(0===u.length)n=Bf(a,s.generatorOpts,i);else{if(1!==u.length)throw new Error("More than one plugin attempted to override codegen.");if("function"==typeof(n=u[0]).then)throw new Error("You appear to be using an async codegen plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}var m=n,y=m.code,g=m.map;return g&&o&&(g=QI(o.toObject(),g)),"inline"!==s.sourceMaps&&"both"!==s.sourceMaps||(y+="\n"+sI.fromObject(g).toComment()),"inline"===s.sourceMaps&&(g=null),{outputCode:y,outputMap:g}}var rF=bh.mark(sF),nF=bh.mark(aF);function sF(e,t,r){var n,s,a,i,o,u,l;return bh.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.delegateYield(mI(e.passes,eI(e),t,r),"t0",1);case 1:return n=c.t0,s=n.opts,c.prev=3,c.delegateYield(aF(n,e.passes),"t1",5);case 5:c.next=12;break;case 7:throw c.prev=7,c.t2=c.catch(3),c.t2.message=(null!=(a=s.filename)?a:"unknown")+": "+c.t2.message,c.t2.code||(c.t2.code="BABEL_TRANSFORM_ERROR"),c.t2;case 12:c.prev=12,!1!==s.code&&(u=tF(e.passes,n),i=u.outputCode,o=u.outputMap),c.next=21;break;case 16:throw c.prev=16,c.t3=c.catch(12),c.t3.message=(null!=(l=s.filename)?l:"unknown")+": "+c.t3.message,c.t3.code||(c.t3.code="BABEL_GENERATE_ERROR"),c.t3;case 21:return c.abrupt("return",{metadata:n.metadata,options:s,ast:!0===s.ast?n.ast:null,code:void 0===i?null:i,map:void 0===o?null:o,sourceType:n.ast.program.sourceType});case 22:case"end":return c.stop()}}),rF,null,[[3,7],[12,16]])}function aF(e,t){var r,n,s,a,i,o,u,c,p,d,h,m,y,g,v,b,E,x,D,A,w,C,S,T,j;return bh.wrap((function(P){for(;;)switch(P.prev=P.next){case 0:r=f(t);case 1:if((n=r()).done){P.next=35;break}for(s=n.value,a=[],i=[],o=[],u=f(s.concat([(JP||(JP=new ew(Object.assign({},ZP,{visitor:gv.explode(ZP.visitor)}),{})),JP)]));!(c=u()).done;)p=c.value,d=new YP(e,p.key,p.options),a.push([p,d]),i.push(d),o.push(p.visitor);h=0,m=a;case 8:if(!(h<m.length)){P.next=19;break}if(y=l(m[h],2),g=y[0],v=y[1],!(b=g.pre)){P.next=16;break}return E=b.call(v,e),P.delegateYield([],"t0",14);case 14:if(!iF(E)){P.next=16;break}throw new Error("You appear to be using an plugin with an async .pre, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");case 16:h++,P.next=8;break;case 19:x=gv.visitors.merge(o,i,e.opts.wrapPluginVisitorMethod),gv(e.ast,x,e.scope),D=0,A=a;case 22:if(!(D<A.length)){P.next=33;break}if(w=l(A[D],2),C=w[0],S=w[1],!(T=C.post)){P.next=30;break}return j=T.call(S,e),P.delegateYield([],"t1",28);case 28:if(!iF(j)){P.next=30;break}throw new Error("You appear to be using an plugin with an async .post, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");case 30:D++,P.next=22;break;case 33:P.next=1;break;case 35:case"end":return P.stop()}}),nF)}function iF(e){return!(!e||"object"!=typeof e&&"function"!=typeof e||!e.then||"function"!=typeof e.then)}var oF=OA(bh.mark((function e(t,r){var n;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(SP(r),"t0",1);case 1:if(null!==(n=e.t0)){e.next=4;break}return e.abrupt("return",null);case 4:return e.delegateYield(sF(n,t),"t1",5);case 5:return e.abrupt("return",e.t1);case 6:case"end":return e.stop()}}),e)}))),uF=function(e,t,r){if("function"==typeof t&&(r=t,t=void 0),void 0===r)return oF.sync(e,t);oF.errback(e,t,r)},lF=oF.sync,cF=oF.async,pF=function(e,t,r){"function"==typeof t&&(r=t),r(new Error("Transforming files is not supported in browsers"),null)};function dF(){throw new Error("Transforming files is not supported in browsers")}function fF(){return Promise.reject(new Error("Transforming files is not supported in browsers"))}var hF=OA(bh.mark((function e(t,r,n){var s;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(SP(n),"t0",1);case 1:if(null!==(s=e.t0)){e.next=4;break}return e.abrupt("return",null);case 4:if(t){e.next=6;break}throw new Error("No AST given");case 6:return e.delegateYield(sF(s,r,t),"t1",7);case 7:return e.abrupt("return",e.t1);case 8:case"end":return e.stop()}}),e)}))),mF=function(e,t,r,n){if("function"==typeof r&&(n=r,r=void 0),void 0===n)return hF.sync(e,t,r);hF.errback(e,t,r,n)},yF=hF.sync,gF=hF.async,vF=OA(bh.mark((function e(t,r){var n;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(SP(r),"t0",1);case 1:if(null!==(n=e.t0)){e.next=4;break}return e.abrupt("return",null);case 4:return e.delegateYield(lI(n.passes,eI(n),t),"t1",5);case 5:return e.abrupt("return",e.t1);case 6:case"end":return e.stop()}}),e)}))),bF=function(e,t,r){if("function"==typeof t&&(r=t,t=void 0),void 0===r)return vF.sync(e,t);vF.errback(e,t,r)},EF=vF.sync,xF=vF.async,DF="7.14.6",AF=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]),wF=function(){function e(){}return e.prototype.init=function(e){return HP(e)},e}();function CF(e){throw new Error("The ("+e+") Babel 5 plugin is being run with an unsupported Babel version.")}function SF(e){return function(t,r,n){for(var s,a,i=0,o=Object.keys(TF);i<o.length;i++){var u,l=o[i];t[l]||((a=null!=(u=a)?u:jF(t))[l]=TF[l](a))}return e(null!=(s=a)?s:t,r||{},n)}}var TF={assertVersion:function(e){return function(t){!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e="^"+e+".0.0-0"}if("string"!=typeof e)throw new Error("Expected string or integer value.");var r,n=Error.stackTraceLimit;"number"==typeof n&&n<25&&(Error.stackTraceLimit=25);r="7."===t.slice(0,2)?new Error('Requires Babel "^7.0.0-beta.41", but was loaded with "'+t+"\". You'll need to update your @babel/core version."):new Error('Requires Babel "'+e+'", but was loaded with "'+t+'". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn\'t mention "@babel/core" or "babel-core" to see what is calling Babel.');"number"==typeof n&&(Error.stackTraceLimit=n);throw Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)}},targets:function(){return function(){return{}}},assumption:function(){return function(){}}};function jF(e){var t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(!(t=Object.getPrototypeOf(e))||PF(t,"version")&&PF(t,"transform")&&PF(t,"template")&&PF(t,"types")||(t=null)),Object.assign({},t,e)}function PF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var IF=Object.freeze({__proto__:null,declare:SF}),FF=SF((function(e,t){e.assertVersion(7);var r=t.helperVersion,n=void 0===r?"7.0.0-beta.0":r,s=t.whitelist,a=void 0!==s&&s;if(!1!==a&&(!Array.isArray(a)||a.some((function(e){return"string"!=typeof e}))))throw new Error(".whitelist must be undefined, false, or an array of strings");var i=a?new Set(a):null;return{name:"external-helpers",pre:function(e){e.set("helperGenerator",(function(t){if((!e.availableHelper||e.availableHelper(t,n))&&(!i||i.has(t)))return Fs(Ds("babelHelpers"),Ds(t))}))}}})),kF=Kt(IF),OF=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-async-generators",manipulateOptions:function(e,t){t.plugins.push("asyncGenerators")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-standalone/node_modules/@babel/plugin-syntax-async-generators/lib"),RF=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-class-properties",manipulateOptions:function(e,t){t.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-standalone/node_modules/@babel/plugin-syntax-class-properties/lib"),NF=SF((function(e){return e.assertVersion(7),{name:"syntax-class-static-block",manipulateOptions:function(e,t){t.plugins.push("classStaticBlock")}}})),BF=SF((function(e){return e.assertVersion(7),{name:"syntax-decimal",manipulateOptions:function(e,t){t.plugins.push("decimal")}}})),_F=SF((function(e,t){e.assertVersion(7);var r=t.legacy,n=void 0!==r&&r;if("boolean"!=typeof n)throw new Error("'legacy' must be a boolean.");var s=t.decoratorsBeforeExport;if(void 0===s){if(!n)throw new Error("The '@babel/plugin-syntax-decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you want to use the legacy decorators semantics, you can set the 'legacy: true' option.")}else{if(n)throw new Error("'decoratorsBeforeExport' can't be used with legacy decorators.");if("boolean"!=typeof s)throw new Error("'decoratorsBeforeExport' must be a boolean.")}return{name:"syntax-decorators",manipulateOptions:function(e,t){t.plugins.push(n?"decorators-legacy":["decorators",{decoratorsBeforeExport:s}])}}})),LF=SF((function(e){return e.assertVersion(7),{name:"syntax-do-expressions",manipulateOptions:function(e,t){t.plugins.push("doExpressions")}}})),MF=SF((function(e){return e.assertVersion(7),{name:"syntax-export-default-from",manipulateOptions:function(e,t){t.plugins.push("exportDefaultFrom")}}})),UF=SF((function(e,t){e.assertVersion(7);var r=t.all,n=t.enums;if("boolean"!=typeof r&&void 0!==r)throw new Error(".all must be a boolean, or undefined");if("boolean"!=typeof n&&void 0!==n)throw new Error(".enums must be a boolean, or undefined");return{name:"syntax-flow",manipulateOptions:function(e,t){t.plugins.some((function(e){return"typescript"===(Array.isArray(e)?e[0]:e)}))||t.plugins.push(["flow",{all:r,enums:n}])}}})),GF=SF((function(e){return e.assertVersion(7),{name:"syntax-function-bind",manipulateOptions:function(e,t){t.plugins.push("functionBind")}}})),VF=SF((function(e){return e.assertVersion(7),{name:"syntax-function-sent",manipulateOptions:function(e,t){t.plugins.push("functionSent")}}})),WF=SF((function(e){return e.assertVersion(7),{name:"syntax-module-blocks",manipulateOptions:function(e,t){t.plugins.push("moduleBlocks")}}})),HF=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-import-meta",manipulateOptions:function(e,t){t.plugins.push("importMeta")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-standalone/node_modules/@babel/plugin-syntax-import-meta/lib"),XF=SF((function(e){return e.assertVersion(7),{name:"syntax-jsx",manipulateOptions:function(e,t){t.plugins.some((function(e){return"typescript"===(Array.isArray(e)?e[0]:e)}))||t.plugins.push("jsx")}}})),qF=SF((function(e){return e.assertVersion(7),{name:"syntax-import-assertions",manipulateOptions:function(e,t){t.plugins.push(["importAssertions"])}}})),$F=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-object-rest-spread",manipulateOptions:function(e,t){t.plugins.push("objectRestSpread")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-standalone/node_modules/@babel/plugin-syntax-object-rest-spread/lib"),KF=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-optional-catch-binding",manipulateOptions:function(e,t){t.plugins.push("optionalCatchBinding")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-standalone/node_modules/@babel/plugin-syntax-optional-catch-binding/lib"),zF=["minimal","smart","fsharp"],JF=SF((function(e,t){var r=t.proposal;if(e.assertVersion(7),"string"!=typeof r||!zF.includes(r))throw new Error("The pipeline operator plugin requires a 'proposal' option.'proposal' must be one of: "+zF.join(", ")+". More details: https://babeljs.io/docs/en/next/babel-plugin-proposal-pipeline-operator");return{name:"syntax-pipeline-operator",manipulateOptions:function(e,t){t.plugins.push(["pipelineOperator",{proposal:r}])}}})),YF=SF((function(e,t){return e.assertVersion(7),{name:"syntax-record-and-tuple",manipulateOptions:function(e,r){e.generatorOpts.recordAndTupleSyntaxType=t.syntaxType,r.plugins.push(["recordAndTuple",{syntaxType:t.syntaxType}])}}})),QF=SF((function(e){return e.assertVersion(7),{name:"syntax-top-level-await",manipulateOptions:function(e,t){t.plugins.push("topLevelAwait")}}}));function ZF(e,t){var r=[];e.forEach((function(e,n){(Array.isArray(e)?e[0]:e)===t&&r.unshift(n)}));for(var n=0,s=r;n<s.length;n++){var a=s[n];e.splice(a,1)}}var ek=SF((function(e,t){var r=t.isTSX;return e.assertVersion(7),{name:"syntax-typescript",manipulateOptions:function(e,t){var n=t.plugins;ZF(n,"flow"),ZF(n,"jsx"),t.plugins.push("typescript","classProperties"),t.plugins.push("objectRestSpread"),r&&t.plugins.push("jsx")}}})),tk=bg.expression("\n (function () {\n var REF = FUNCTION;\n return function NAME(PARAMS) {\n return REF.apply(this, arguments);\n };\n })()\n"),rk=bg.expression("\n (function () {\n var REF = FUNCTION;\n function NAME(PARAMS) {\n return REF.apply(this, arguments);\n }\n return NAME;\n })()\n"),nk=bg("\n function NAME(PARAMS) { return REF.apply(this, arguments); }\n function REF() {\n REF = FUNCTION;\n return REF.apply(this, arguments);\n }\n");function sk(e,t,r){void 0===r&&(r=!0),e.isMethod()?function(e,t){var r=e.node,n=r.body,s=xs(null,[],os(n.body),!0);n.body=[Ls(ls(ls(t,[s]),[]))],r.async=!1,r.generator=!1,e.get("body.body.0.argument.callee.arguments.0").unwrapFunctionEnvironment()}(e,t):function(e,t,r){var n=e.node,s=e.isFunctionDeclaration(),a=n.id,i=s?nk:a?rk:tk;e.isArrowFunctionExpression()&&e.arrowFunctionToExpression({noNewArrows:r}),n.id=null,s&&(n.type="FunctionExpression");var o=ls(t,[n]),u=i({NAME:a||null,REF:e.scope.generateUidIdentifier(a?a.name:"ref"),FUNCTION:o,PARAMS:n.params.reduce((function(t,r){return t.done=t.done||re(r)||X(r),t.done||t.params.push(e.scope.generateUidIdentifier("x")),t}),{params:[],done:!1}).params});if(s)e.replaceWith(u[0]),e.insertAfter(u[1]);else{var l=u.callee.body.body[1].argument;a||wg({node:l,parent:e.parent,scope:e.scope}),!l||l.id||n.params.length?e.replaceWith(u):e.replaceWith(o)}}(e,t,r)}function ak(e){var t=e.node||e;(function(e){var t=e.leadingComments;return!!t&&t.some((function(e){return/[@#]__PURE__/.test(e.value)}))})(t)||el(t,"leading","#__PURE__")}var ik={Function:function(e){e.skip()},AwaitExpression:function(e,t){var r=t.wrapAwait,n=e.get("argument");e.parentPath.isYieldExpression()?e.replaceWith(n.node):e.replaceWith(xa(r?ls(Ju(r),[n.node]):n.node))}};function ok(e,t,r){e.traverse(ik,{wrapAwait:t.wrapAwait});var n=function(e){if(e.parentPath.isCallExpression({callee:e.node}))return!0;var t=e.parentPath;if(t.isMemberExpression()&&F(t.node.property,{name:"bind"})){var r=t.parentPath;return r.isCallExpression()&&1===r.node.arguments.length&&J(r.node.arguments[0])&&r.parentPath.isCallExpression({callee:r.node})}return!1}(e);e.node.async=!1,e.node.generator=!0,sk(e,Ju(t.wrapAsync),r),e.isObjectMethod()||e.isClassMethod()||e.parentPath.isObjectProperty()||e.parentPath.isClassProperty()||n||!e.isExpression()||ak(e)}var uk=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-async-generators",manipulateOptions:function(e,t){t.plugins.push("asyncGenerators")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-plugin-proposal-async-generator-functions/node_modules/@babel/plugin-syntax-async-generators/lib"),lk=bg("\n async function wrapper() {\n var ITERATOR_COMPLETION = true;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY;\n try {\n for (\n var ITERATOR_KEY = GET_ITERATOR(OBJECT), STEP_KEY, STEP_VALUE;\n (\n STEP_KEY = await ITERATOR_KEY.next(),\n ITERATOR_COMPLETION = STEP_KEY.done,\n STEP_VALUE = await STEP_KEY.value,\n !ITERATOR_COMPLETION\n );\n ITERATOR_COMPLETION = true) {\n }\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (!ITERATOR_COMPLETION && ITERATOR_KEY.return != null) {\n await ITERATOR_KEY.return();\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n }\n");var ck,pk,dk,fk,hk,mk,yk,gk,vk,bk,Ek,xk,Dk,Ak,wk,Ck,Sk=SF((function(e){e.assertVersion(7);var t={Function:function(e){e.skip()},YieldExpression:function(e,t){var r=e.node;if(r.delegate){var n=t.addHelper("asyncGeneratorDelegate");r.argument=ls(n,[ls(t.addHelper("asyncIterator"),[r.argument]),t.addHelper("awaitAsyncGenerator")])}}},r={Function:function(e){e.skip()},ForOfStatement:function(e,t){var r=t.file,n=e.node;if(n.await){var s=function(e,t){var r,n=t.getAsyncIterator,s=e.node,a=e.scope,i=e.parent,o=a.generateUidIdentifier("step"),u=a.generateUidIdentifier("value"),l=s.left;F(l)||Ot(l)||M(l)?r=ys(rs("=",l,u)):Z(l)&&(r=Ks(l.kind,[zs(l.declarations[0].id,u)]));var c=lk({ITERATOR_HAD_ERROR_KEY:a.generateUidIdentifier("didIteratorError"),ITERATOR_COMPLETION:a.generateUidIdentifier("iteratorNormalCompletion"),ITERATOR_ERROR_KEY:a.generateUidIdentifier("iteratorError"),ITERATOR_KEY:a.generateUidIdentifier("iterator"),GET_ITERATOR:n,OBJECT:s.right,STEP_VALUE:Ju(u),STEP_KEY:o});c=c.body.body;var p=O(i),d=c[3].block.body,f=d[0];return p&&(d[0]=ws(i.label,f)),{replaceParent:p,node:c,declar:r,loop:f}}(e,{getAsyncIterator:r.addHelper("asyncIterator")}),a=s.declar,i=s.loop,o=i.body;e.ensureBlock(),a&&o.body.push(a),o.body=o.body.concat(n.body.body),yc(i,n),yc(i.body,n.body),s.replaceParent?e.parentPath.replaceWithMultiple(s.node):e.replaceWithMultiple(s.node)}}},n={Function:function(e,n){e.node.async&&(e.traverse(r,n),e.node.generator&&(e.traverse(t,n),ok(e,{wrapAsync:n.addHelper("wrapAsyncGenerator"),wrapAwait:n.addHelper("awaitAsyncGenerator")})))}};return{name:"proposal-async-generator-functions",inherits:uk.default,visitor:{Program:function(e,t){e.traverse(n,t)}}}}));function Tk(e){if(e.node.declare)throw e.buildCodeFrameError("TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.\nIf you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:\n - @babel/plugin-proposal-class-properties\n - @babel/plugin-proposal-private-methods\n - @babel/plugin-proposal-decorators")}function jk(e){var t=Object.assign({},e,{Class:function(e){for(var n,s=this.privateNamesMap,a=e.get("body.body"),i=new Map(s),o=[],u=f(a);!(n=u()).done;){var l=n.value;if(l.isPrivate()){var c=l.node.key.id.name;i.delete(c),o.push(c)}}o.length&&(e.get("body").traverse(r,Object.assign({},this,{redeclared:o})),e.traverse(t,Object.assign({},this,{privateNamesMap:i})),e.skipKey("body"))}}),r=gv.visitors.merge([Object.assign({},e),IE]);return t}var Pk=jk({PrivateName:function(e,t){var r=t.noDocumentAll,n=this.privateNamesMap,s=this.redeclared,a=e.node,i=e.parentPath;if(i.isMemberExpression({property:a})||i.isOptionalMemberExpression({property:a})){var o=a.id.name;n.has(o)&&(s&&s.includes(o)||this.handle(i,r))}}}),Ik=jk({BinaryExpression:function(e){var t=e.node,r=t.operator,n=t.left,s=t.right;if("in"===r&&e.get("left").isPrivateName()){var a=this.privateFieldsAsProperties,i=this.privateNamesMap,o=this.redeclared,l=n.id.name;if(i.has(l)&&(!o||!o.includes(l)))if(a){var c=i.get(l).id;e.replaceWith(bg.expression.ast(pk||(pk=u(["\n Object.prototype.hasOwnProperty.call(",", ",")\n "])),s,Ju(c)))}else{var p=i.get(l),d=p.id;p.static?e.replaceWith(bg.expression.ast(dk||(dk=u([""," === ",""])),s,this.classRef)):e.replaceWith(bg.expression.ast(fk||(fk=u(["",".has(",")"])),Ju(d),s))}}}}),Fk={memoise:function(e,t){var r=e.scope,n=e.node.object,s=r.maybeGenerateMemoised(n);s&&this.memoiser.set(n,s,t)},receiver:function(e){var t=e.node.object;return this.memoiser.has(t)?Ju(this.memoiser.get(t)):Ju(t)},get:function(e){var t=this.classRef,r=this.privateNamesMap,n=this.file,s=e.node.property.id.name,a=r.get(s),i=a.id,o=a.static,u=a.method,l=a.methodId,c=a.getId,p=a.setId,d=c||p;if(o){var f=u&&!d?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return ls(n.addHelper(f),[this.receiver(e),Ju(t),Ju(i)])}if(u){if(d){if(!c&&p){if(n.availableHelper("writeOnlyError"))return Ms([this.receiver(e),ls(n.addHelper("writeOnlyError"),[Cs("#"+s)])]);console.warn("@babel/helpers is outdated, update it to silence this warning.")}return ls(n.addHelper("classPrivateFieldGet"),[this.receiver(e),Ju(i)])}return ls(n.addHelper("classPrivateMethodGet"),[this.receiver(e),Ju(i),Ju(l)])}return ls(n.addHelper("classPrivateFieldGet"),[this.receiver(e),Ju(i)])},boundGet:function(e){return this.memoise(e,1),ls(Fs(this.get(e),Ds("bind")),[this.receiver(e)])},set:function(e,t){var r=this.classRef,n=this.privateNamesMap,s=this.file,a=e.node.property.id.name,i=n.get(a),o=i.id,u=i.static,l=i.method,c=i.setId,p=i.getId;if(u){var d=l&&!(p||c)?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return ls(s.addHelper(d),[this.receiver(e),Ju(r),Ju(o),t])}return l?c?ls(s.addHelper("classPrivateFieldSet"),[this.receiver(e),Ju(o),t]):Ms([this.receiver(e),t,ls(s.addHelper("readOnlyError"),[Cs("#"+a)])]):ls(s.addHelper("classPrivateFieldSet"),[this.receiver(e),Ju(o),t])},destructureSet:function(e){var t=this.classRef,r=this.privateNamesMap,n=this.file,s=e.node.property.id.name,a=r.get(s),i=a.id;if(a.static){try{var o=n.addHelper("classStaticPrivateFieldDestructureSet")}catch(e){throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \nplease update @babel/helpers to the latest version.")}return Fs(ls(o,[this.receiver(e),Ju(t),Ju(i)]),Ds("value"))}return Fs(ls(n.addHelper("classPrivateFieldDestructureSet"),[this.receiver(e),Ju(i)]),Ds("value"))},call:function(e,t){return this.memoise(e,1),jE(this.get(e),this.receiver(e),t,!1)},optionalCall:function(e,t){return this.memoise(e,1),jE(this.get(e),this.receiver(e),t,!0)}},kk={get:function(e){var t=this.privateNamesMap,r=this.file,n=e.node.object,s=e.node.property.id.name;return bg.expression(hk||(hk=u(["BASE(REF, PROP)[PROP]"])))({BASE:r.addHelper("classPrivateFieldLooseBase"),REF:Ju(n),PROP:Ju(t.get(s).id)})},boundGet:function(e){return ls(Fs(this.get(e),Ds("bind")),[Ju(e.node.object)])},simpleSet:function(e){return this.get(e)},destructureSet:function(e){return this.get(e)},call:function(e,t){return ls(this.get(e),t)},optionalCall:function(e,t){return Ta(this.get(e),t,!0)}};function Ok(e,t,r){var n=r.get(t.node.key.id.name).id,s=t.node.value||t.scope.buildUndefinedNode();return bg.statement.ast(mk||(mk=u(["\n Object.defineProperty(",", ",", {\n // configurable is false by default\n // enumerable is false by default\n writable: true,\n value: ","\n });\n "])),e,Ju(n),s)}function Rk(e,t,r){var n=r.get(t.node.key.id.name).id,s=t.node.value||t.scope.buildUndefinedNode();return bg.statement.ast(yk||(yk=u(["",".set(",", {\n // configurable is always false for private elements\n // enumerable is always false for private elements\n writable: true,\n value: ",",\n })"])),Ju(n),e,s)}function Nk(e,t){var r=t.get(e.node.key.id.name),n=r.id,s=r.getId,a=r.setId,i=r.initAdded,o=s||a;if(e.isProperty()||!i&&o){if(o)return t.set(e.node.key.id.name,Object.assign({},r,{initAdded:!0})),bg.statement.ast(gk||(gk=u(["\n var "," = {\n // configurable is false by default\n // enumerable is false by default\n // writable is false by default\n get: ",",\n set: ","\n }\n "])),Ju(n),s?s.name:e.scope.buildUndefinedNode(),a?a.name:e.scope.buildUndefinedNode());var l=e.node.value||e.scope.buildUndefinedNode();return bg.statement.ast(vk||(vk=u(["\n var "," = {\n // configurable is false by default\n // enumerable is false by default\n writable: true,\n value: ","\n };\n "])),Ju(n),l)}}function Bk(e,t,r){var n=r.get(t.node.key.id.name),s=n.methodId,a=n.id,i=n.getId,o=n.setId;if(!n.initAdded)return s?bg.statement.ast(bk||(bk=u(["\n Object.defineProperty(",", ",", {\n // configurable is false by default\n // enumerable is false by default\n // writable is false by default\n value: ","\n });\n "])),e,a,s.name):i||o?(r.set(t.node.key.id.name,Object.assign({},n,{initAdded:!0})),bg.statement.ast(Ek||(Ek=u(["\n Object.defineProperty(",", ",", {\n // configurable is false by default\n // enumerable is false by default\n // writable is false by default\n get: ",",\n set: ","\n });\n "])),e,a,i?i.name:t.scope.buildUndefinedNode(),o?o.name:t.scope.buildUndefinedNode())):void 0}function _k(e,t,r){var n=r.get(t.node.key.id.name),s=n.id,a=n.getId,i=n.setId;if(!n.initAdded)return a||i?(r.set(t.node.key.id.name,Object.assign({},n,{initAdded:!0})),bg.statement.ast(xk||(xk=u(["\n ",".set(",", {\n get: ",",\n set: ","\n });\n "])),s,e,a?a.name:t.scope.buildUndefinedNode(),i?i.name:t.scope.buildUndefinedNode())):bg.statement.ast(Dk||(Dk=u(["",".add(",")"])),s,e)}function Lk(e,t){var r=t.node,n=r.key,s=r.computed,a=t.node.value||t.scope.buildUndefinedNode();return ys(rs("=",Fs(e,n,s||Pt(n)),a))}function Mk(e,t,r){var n=t.node,s=n.key,a=n.computed,i=t.node.value||t.scope.buildUndefinedNode();return ys(ls(r.addHelper("defineProperty"),[e,a||Pt(s)?s:Cs(s.name),i]))}function Uk(e,t,r,n){var s=n.get(t.node.key.id.name),a=s.id,i=s.methodId,o=s.getId,l=s.setId;if(!s.initAdded)return o||l?(n.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),bg.statement.ast(Ak||(Ak=u(["\n Object.defineProperty(",", ",", {\n // configurable is false by default\n // enumerable is false by default\n // writable is false by default\n get: ",",\n set: ","\n })\n "])),e,a,o?o.name:t.scope.buildUndefinedNode(),l?l.name:t.scope.buildUndefinedNode())):bg.statement.ast(wk||(wk=u(["\n Object.defineProperty(",", ",", {\n // configurable is false by default\n // enumerable is false by default\n // writable is false by default\n value: ","\n });\n "])),e,a,i.name)}function Gk(e,t,r){void 0===r&&(r=!1);var n=t.get(e.node.key.id.name),s=n.id,a=n.methodId,i=n.getId,o=n.setId,u=n.getterDeclared,l=n.setterDeclared,c=n.static,p=e.node,d=p.params,f=p.body,h=p.generator,m=p.async,y=i&&!u&&0===d.length,g=o&&!l&&d.length>0,v=a;return y?(t.set(e.node.key.id.name,Object.assign({},n,{getterDeclared:!0})),v=i):g?(t.set(e.node.key.id.name,Object.assign({},n,{setterDeclared:!0})),v=o):c&&!r&&(v=s),Es(Ju(v),d,f,h,m)}var Vk,Wk,Hk,Xk,qk,$k=gv.visitors.merge([{ThisExpression:function(e,t){t.needsClassRef=!0,e.replaceWith(Ju(t.classRef))}},IE]),Kk={ReferencedIdentifier:function(e,t){e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)&&(t.needsClassRef=!0,e.node.name=t.classRef.name)}};function zk(e,t,r,n,s,a,i){var o,u={classRef:t,needsClassRef:!1,innerBinding:i};return new NE({methodPath:e,constantSuper:a,file:n,refToPreserve:t,getSuperRef:r,getObjectRef:function(){return u.needsClassRef=!0,s||e.node.static?t:Fs(t,Ds("prototype"))}}).replace(),(s||e.isProperty())&&e.traverse($k,u),null!=(o=u.classRef)&&o.name&&u.classRef.name!==(null==i?void 0:i.name)&&e.traverse(Kk,u),u.needsClassRef}function Jk(e){return!(!e.decorators||!e.decorators.length)}function Yk(e,t){return t?Bs(Ds(e),t):null}function Qk(e){var t;return e.decorators&&e.decorators.length>0&&(t=ts(e.decorators.map((function(e){return e.expression})))),e.decorators=void 0,t}function Zk(e){return e.computed?e.key:F(e.key)?Cs(e.key.name):Cs(String(e.key.value))}function eO(e,t,r){var n=r.node,s=r.scope,a=r.isClassMethod();if(r.isPrivate())throw r.buildCodeFrameError("Private "+(a?"methods":"fields")+" in decorated classes are not supported yet.");new NE({methodPath:r,objectRef:e,superRef:t,file:this,refToPreserve:e}).replace();var i,o,l=[Yk("kind",Cs(a?n.kind:"field")),Yk("decorators",Qk(n)),Yk("static",n.static&&js(!0)),Yk("key",Zk(n))].filter(Boolean);if(a){var c=n.computed?null:n.key;nc(n),l.push(Yk("value",wg({node:n,id:c,scope:s})||n))}else n.value?l.push((i="value",o=bg.statements.ast(Vk||(Vk=u(["return ",""])),n.value),Ns("method",Ds(i),[],os(o)))):l.push(Yk("value",s.buildUndefinedNode()));return r.remove(),Rs(l)}var tO=gv.visitors.merge([{Super:function(e){var t=e.node,r=e.parentPath;r.isCallExpression({callee:t})&&this.push(r)}},IE]),rO={"TSTypeAnnotation|TypeAnnotation":function(e){e.skip()},ReferencedIdentifier:function(e){this.scope.hasOwnBinding(e.node.name)&&(this.scope.rename(e.node.name),e.skip())}};function nO(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){var r=ls(t.file.addHelper("classNameTDZError"),[Cs(e.node.name)]);e.replaceWith(Ms([r,e.node])),e.skip()}}var sO={ReferencedIdentifier:nO};function aO(e,t,r,n){if(r.length){var s=!!e.node.superClass;if(!t){var a=ha("constructor",Ds("constructor"),[],os([]));s&&(a.params=[_s(Ds("args"))],a.body.body.push(bg.statement.ast(qk||(qk=u(["super(...args)"]))))),t=l(e.get("body").unshiftContainer("body",a),1)[0]}if(n&&n(rO,{scope:t.scope}),s){var i=[];t.traverse(tO,i);for(var o=!0,c=0,p=i;c<p.length;c++){var d=p[c];o?(d.insertAfter(r),o=!1):d.insertAfter(r.map((function(e){return Ju(e)})))}}else t.get("body").unshiftContainer("body",r)}}var iO=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16,staticBlocks:32}),oO=new Map([[iO.fields,"@babel/plugin-proposal-class-properties"],[iO.privateMethods,"@babel/plugin-proposal-private-methods"],[iO.privateIn,"@babel/plugin-proposal-private-property-in-object"]]),uO="@babel/plugin-class-features/featuresKey",lO="@babel/plugin-class-features/looseKey",cO="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";function pO(e,t,r){var n,s;dO(e,t)&&!mO(e,t)||(e.set(uO,e.get(uO)|t),"#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"===r?(hO(e,t,!0),e.set(cO,e.get(cO)|t)):"#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"===r?(hO(e,t,!1),e.set(cO,e.get(cO)|t)):hO(e,t,r));for(var a,i=f(oO);!(a=i()).done;){var o=l(a.value,2),u=o[0],c=o[1];if(dO(e,u)){var p=fO(e,u);if(!mO(e,u)){if(n===!p)throw new Error("'loose' mode configuration must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled).");n=p,s=c}}}if(void 0!==n)for(var d,h=f(oO);!(d=h()).done;){var m=l(d.value,2),y=m[0],g=m[1];dO(e,y)&&fO(e,y)!==n&&(hO(e,y,n),console.warn('Though the "loose" option was set to "'+!n+'" in your @babel/preset-env config, it will not be used for '+g+' since the "loose" mode option was set to "'+n+'" for '+s+'.\nThe "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding\n\t["'+g+'", { "loose": '+n+' }]\nto the "plugins" section of your Babel config.'))}}function dO(e,t){return!!(e.get(uO)&t)}function fO(e,t){return!!(e.get(lO)&t)}function hO(e,t,r){r?e.set(lO,e.get(lO)|t):e.set(lO,e.get(lO)&~t),e.set(cO,e.get(cO)&~t)}function mO(e,t){return!!(e.get(cO)&t)}function yO(e,t){if(Jk(e.node)){if(!dO(t,iO.decorators))throw e.buildCodeFrameError('Decorators are not enabled.\nIf you are using ["@babel/plugin-proposal-decorators", { "legacy": true }], make sure it comes *before* "@babel/plugin-proposal-class-properties" and enable loose mode, like so:\n\t["@babel/plugin-proposal-decorators", { "legacy": true }]\n\t["@babel/plugin-proposal-class-properties", { "loose": true }]');if(e.isPrivate())throw e.buildCodeFrameError("Private "+(e.isClassMethod()?"methods":"fields")+" in decorated classes are not supported yet.")}if(null!=e.isPrivateMethod&&e.isPrivateMethod()&&!dO(t,iO.privateMethods))throw e.buildCodeFrameError("Class private methods are not enabled.");if(e.isPrivateName()&&e.parentPath.isBinaryExpression({operator:"in",left:e.node})&&!dO(t,iO.privateIn))throw e.buildCodeFrameError("Private property in checks are not enabled.");if(e.isProperty()&&!dO(t,iO.fields))throw e.buildCodeFrameError("Class fields are not enabled.");if(null!=e.isStaticBlock&&e.isStaticBlock()&&!dO(t,iO.staticBlocks))throw e.buildCodeFrameError("Static class blocks are not enabled. Please add `@babel/plugin-proposal-class-static-block` to your configuration.")}var gO="7.14.6".split(".").reduce((function(e,t){return 1e5*e+ +t}),0),vO="@babel/plugin-class-features/version";function bO(e){var t=e.name,r=e.feature,n=e.loose,s=e.manipulateOptions,a=e.api,i=void 0===a?{assumption:function(){}}:a,o=i.assumption("setPublicClassFields"),p=i.assumption("privateFieldsAsProperties"),d=i.assumption("constantSuper"),h=i.assumption("noDocumentAll");if(!0===n){var m=[];void 0!==o&&m.push('"setPublicClassFields"'),void 0!==p&&m.push('"privateFieldsAsProperties"'),0!==m.length&&console.warn("["+t+']: You are using the "loose: true" option and you are explicitly setting a value for the '+m.join(" and ")+" assumption"+(m.length>1?"s":"")+'. The "loose" option can cause incompatibilities with the other class features plugins, so it\'s recommended that you replace it with the following top-level option:\n\t"assumptions": {\n\t\t"setPublicClassFields": true,\n\t\t"privateFieldsAsProperties": true\n\t}')}return{name:t,manipulateOptions:s,pre:function(){pO(this.file,r,n),(!this.file.get(vO)||this.file.get(vO)<gO)&&this.file.set(vO,gO)},visitor:{Class:function(e,t){if(this.file.get(vO)===gO){yO(e,this.file);for(var n,s,a=fO(this.file,r),i=Jk(e.node),m=[],y=[],g=[],v=new Set,b=f(e.get("body").get("body"));!(s=b()).done;){var E=s.value;if(yO(E,this.file),E.node.computed&&g.push(E),E.isPrivate()){var x=E.node.key.id.name,D="get "+x,A="set "+x;if("get"===E.node.kind){if(v.has(D)||v.has(x)&&!v.has(A))throw E.buildCodeFrameError("Duplicate private field");v.add(D).add(x)}else if("set"===E.node.kind){if(v.has(A)||v.has(x)&&!v.has(D))throw E.buildCodeFrameError("Duplicate private field");v.add(A).add(x)}else{if(v.has(x)&&!v.has(D)&&!v.has(A)||v.has(x)&&(v.has(D)||v.has(A)))throw E.buildCodeFrameError("Duplicate private field");v.add(x)}}E.isClassMethod({kind:"constructor"})?n=E:(y.push(E),(E.isProperty()||E.isPrivate()||null!=E.isStaticBlock&&E.isStaticBlock())&&m.push(E)),i||(i=Jk(E.node))}if(m.length||i){var w,C=e.node.id;!C||e.isClassExpression()?(wg(e),w=e.scope.generateUidIdentifier("class")):w=Ju(e.node.id);var S,T,j,P,I,k=function(e){for(var t,r=new Map,n=f(e);!(t=n()).done;){var s=t.value,a=s.isPrivate(),i=!s.isProperty(),o=!s.node.static;if(a){var u=s.node.key.id.name,l=r.has(u)?r.get(u):{id:s.scope.generateUidIdentifier(u),static:!o,method:i};"get"===s.node.kind?l.getId=s.scope.generateUidIdentifier("get_"+u):"set"===s.node.kind?l.setId=s.scope.generateUidIdentifier("set_"+u):"method"===s.node.kind&&(l.methodId=s.scope.generateUidIdentifier(u)),r.set(u,l)}}return r}(m),O=function(e,t,r){for(var n,s=[],a=f(e);!(n=a()).done;){var i=l(n.value,2),o=i[0],c=i[1],p=c.static,d=c.method,h=c.getId,m=c.setId,y=h||m,g=Ju(c.id),v=void 0;t?v=ls(r.addHelper("classPrivateFieldLooseKey"),[Cs(o)]):p||(v=ks(Ds(!d||y?"WeakMap":"WeakSet"),[])),v&&(ak(v),s.push(bg.statement.ast(ck||(ck=u(["var "," = ",""])),g,v)))}return s}(k,null!=p?p:a,t);if(function(e,t,r,n,s){var a=n.privateFieldsAsProperties,i=n.noDocumentAll;if(r.size){var o=t.get("body"),u=a?kk:Fk;TE(o,Pk,Object.assign({privateNamesMap:r,classRef:e,file:s},u,{noDocumentAll:i})),o.traverse(Ik,{privateNamesMap:r,classRef:e,file:s,privateFieldsAsProperties:a})}}(w,e,k,{privateFieldsAsProperties:null!=p?p:a,noDocumentAll:h},t),i){T=j=S=[];var R=function(e,t,r,n){var s,a=t.node,i=t.scope,o=i.generateUidIdentifier("initialize"),l=a.id&&t.isDeclaration(),c=t.isInStrictMode(),p=a.superClass;a.type="ClassDeclaration",a.id||(a.id=Ju(e)),p&&(s=i.generateUidIdentifierBasedOnNode(a.superClass,"super"),a.superClass=s);var d=Qk(a),f=ts(r.filter((function(e){return!e.node.abstract})).map(eO.bind(n,a.id,s))),h=bg.expression.ast(Wk||(Wk=u(["\n ","(\n ",",\n function (",", ",") {\n ","\n return { F: ",", d: "," };\n },\n ","\n )\n "])),function(e){try{return e.addHelper("decorate")}catch(e){throw"BABEL_HELPER_UNKNOWN"===e.code&&(e.message+="\n '@babel/plugin-transform-decorators' in non-legacy mode requires '@babel/core' version ^7.0.2 and you appear to be using an older version."),e}}(n),d||Ts(),o,p?Ju(s):null,a,Ju(a.id),f,p);c||h.arguments[1].body.directives.push(as(is("use strict")));var m=h,y="arguments.1.body.body.0";return l&&(m=bg.statement.ast(Hk||(Hk=u(["let "," = ",""])),e,h),y="declarations.0.init."+y),{instanceNodes:[bg.statement.ast(Xk||(Xk=u(["","(this)"])),Ju(o))],wrapClass:function(e){return e.replaceWith(m),e.get(y)}}}(w,e,y,this.file);P=R.instanceNodes,I=R.wrapClass}else{S=function(e,t,r,n){for(var s,a=[],i={classBinding:t.node.id&&t.scope.getBinding(t.node.id.name),file:n},o=f(r);!(s=o()).done;){var u=s.value,l=u.get("key");l.isReferencedIdentifier()?nO(l,i):l.traverse(sO,i);var c=u.node;if(!l.isConstantExpression()){var p=t.scope.generateUidIdentifierBasedOnNode(c.key);t.scope.push({id:p,kind:"let"}),a.push(ys(rs("=",Ju(p),c.key))),c.key=Ju(p)}}return a}(0,e,g,this.file);var N=function(e,t,r,n,s,a,i,o,l){for(var c,p,d=!1,h=[],m=[],y=[],g=F(t)?function(){return t}:function(){return null!=c||(c=r[0].scope.generateUidIdentifierBasedOnNode(t)),c},v=f(r);!(p=v()).done;){var b=p.value;Tk(b);var E=b.node.static,x=!E,D=b.isPrivate(),A=!D,w=b.isProperty(),C=!w,S=null==b.isStaticBlock?void 0:b.isStaticBlock();if(E||C&&D||S){var T=zk(b,e,g,s,S,o,l);d=d||T}switch(!0){case S:h.push(bg.statement.ast(Ck||(Ck=u(["(() => ",")()"])),os(b.node.body)));break;case E&&D&&w&&i:d=!0,h.push(Ok(Ju(e),b,n));break;case E&&D&&w&&!i:d=!0,h.push(Nk(b,n));break;case E&&A&&w&&a:d=!0,h.push(Lk(Ju(e),b));break;case E&&A&&w&&!a:d=!0,h.push(Mk(Ju(e),b,s));break;case x&&D&&w&&i:m.push(Ok(Ws(),b,n));break;case x&&D&&w&&!i:m.push(Rk(Ws(),b,n));break;case x&&D&&C&&i:m.unshift(Bk(Ws(),b,n)),y.push(Gk(b,n,i));break;case x&&D&&C&&!i:m.unshift(_k(Ws(),b,n)),y.push(Gk(b,n,i));break;case E&&D&&C&&!i:d=!0,h.unshift(Nk(b,n)),y.push(Gk(b,n,i));break;case E&&D&&C&&i:d=!0,h.unshift(Uk(Ju(e),b,0,n)),y.push(Gk(b,n,i));break;case x&&A&&w&&a:m.push(Lk(Ws(),b));break;case x&&A&&w&&!a:m.push(Mk(Ws(),b,s));break;default:throw new Error("Unreachable.")}}return{staticNodes:h.filter(Boolean),instanceNodes:m.filter(Boolean),pureStaticNodes:y.filter(Boolean),wrapClass:function(t){for(var n,s=f(r);!(n=s()).done;)n.value.remove();return c&&(t.scope.push({id:Ju(c)}),t.set("superClass",rs("=",c,t.node.superClass))),d?(t.isClassExpression()?(t.scope.push({id:e}),t.replaceWith(rs("=",Ju(e),t.node))):t.node.id||(t.node.id=e),t):t}}}(w,e.node.superClass,m,k,t,null!=o?o:a,null!=p?p:a,null!=d?d:a,C);T=N.staticNodes,j=N.pureStaticNodes,P=N.instanceNodes,I=N.wrapClass}P.length>0&&aO(e,n,P,(function(e,t){if(!i)for(var r,n=f(m);!(r=n()).done;){var s=r.value;s.node.static||s.traverse(e,t)}})),(e=I(e)).insertBefore([].concat(c(O),c(S))),T.length>0&&e.insertAfter(T),j.length>0&&e.find((function(e){return e.isStatement()||e.isDeclaration()})).insertAfter(j)}}},PrivateName:function(e){if(this.file.get(vO)===gO&&!e.parentPath.isPrivate({key:e.node}))throw e.buildCodeFrameError('Unknown PrivateName "'+e+'"')},ExportDefaultDeclaration:function(e){if(this.file.get(vO)===gO){var t=e.get("declaration");t.isClassDeclaration()&&function(e){return Jk(e)||e.body.body.some(Jk)}(t.node)&&(t.node.id?Qc(e):t.node.type="ClassExpression")}}}}}var EO,xO=SF((function(e,t){return e.assertVersion(7),bO({name:"proposal-class-properties",api:e,feature:iO.fields,loose:t.loose,manipulateOptions:function(e,t){t.plugins.push("classProperties","classPrivateProperties")}})}));function DO(e,t){var r,n=1;do{r=e._generateUid("",n),n++}while(t.has(r));return r}var AO=SF((function(e){var t=e.types,r=e.template;return(0,e.assertVersion)("^7.12.0"),{name:"proposal-class-static-block",inherits:NF,pre:function(){pO(this.file,iO.staticBlocks,!1)},visitor:{ClassBody:function(e){for(var n,s=e.scope,a=new Set,i=e.get("body"),o=f(i);!(n=o()).done;){var l=n.value;l.isPrivate()&&a.add(l.get("key.id").node.name)}for(var c,p=f(i);!(c=p()).done;){var d=c.value;if(d.isStaticBlock()){var h=DO(s,a);a.add(h);var m=t.privateName(t.identifier(h));d.replaceWith(t.classPrivateProperty(m,r.expression.ast(EO||(EO=u(["(() => { "," })()"])),d.node.body),[],!0))}}}}}})),wO=bg("\n DECORATOR(CLASS_REF = INNER) || CLASS_REF;\n"),CO=bg("\n CLASS_REF.prototype;\n"),SO=bg("\n Object.getOwnPropertyDescriptor(TARGET, PROPERTY);\n"),TO=bg("\n (TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {\n enumerable: true,\n configurable: true,\n writable: true,\n initializer: function(){\n return TEMP;\n }\n })\n"),jO=new WeakSet;function PO(e){var t=(e.isClass()?[e].concat(e.get("body.body")):e.get("properties")).reduce((function(e,t){return e.concat(t.node.decorators||[])}),[]).filter((function(e){return!F(e.expression)}));if(0!==t.length)return Ms(t.map((function(t){var r=t.expression;return rs("=",t.expression=e.scope.generateDeclaredUidIdentifier("dec"),r)})).concat([e.node]))}function IO(e){return!(!e.decorators||!e.decorators.length)}function FO(e){return e.some((function(e){var t;return null==(t=e.decorators)?void 0:t.length}))}function kO(e,t,r){var n=e.scope.generateDeclaredUidIdentifier(e.isClass()?"class":"obj"),s=r.reduce((function(r,s){var a=s.decorators||[];if(s.decorators=null,0===a.length)return r;if(s.computed)throw e.buildCodeFrameError("Computed method/property decorators are not yet supported.");var i=Pt(s.key)?s.key:Cs(s.key.name),o=e.isClass()&&!s.static?CO({CLASS_REF:n}).expression:n;if(nt(s,{static:!1})){var u=e.scope.generateDeclaredUidIdentifier("descriptor"),l=s.value?xs(null,[],os([Ls(s.value)])):Ts();s.value=ls(t.addHelper("initializerWarningHelper"),[u,Ws()]),jO.add(s.value),r=r.concat([rs("=",Ju(u),ls(t.addHelper("applyDecoratedDescriptor"),[Ju(o),Ju(i),ts(a.map((function(e){return Ju(e.expression)}))),Rs([Bs(Ds("configurable"),js(!0)),Bs(Ds("enumerable"),js(!0)),Bs(Ds("writable"),js(!0)),Bs(Ds("initializer"),l)])]))])}else r=r.concat(ls(t.addHelper("applyDecoratedDescriptor"),[Ju(o),Ju(i),ts(a.map((function(e){return Ju(e.expression)}))),H(s)||nt(s,{static:!0})?TO({TEMP:e.scope.generateDeclaredUidIdentifier("init"),TARGET:Ju(o),PROPERTY:Ju(i)}).expression:SO({TARGET:Ju(o),PROPERTY:Ju(i)}).expression,Ju(o)]));return r}),[]);return Ms([rs("=",Ju(n),e.node),Ms(s),Ju(n)])}function OO(e){var t=e.node,r=e.scope;if(IO(t)||FO(t.body.body))return Ks("let",[zs(t.id?Ju(t.id):r.generateUidIdentifier("class"),nc(t))])}var RO,NO={ExportDefaultDeclaration:function(e){var t=e.get("declaration");if(t.isClassDeclaration()){var r=OO(t);if(r){var n=l(e.replaceWithMultiple([r,ia(null,[oa(Ju(r.declarations[0].id),Ds("default"))])]),1)[0];t.node.id||e.scope.registerDeclaration(n)}}},ClassDeclaration:function(e){var t=OO(e);t&&e.replaceWith(t)},ClassExpression:function(e,t){var r=PO(e)||function(e){if(IO(e.node)){var t=e.node.decorators||[];e.node.decorators=null;var r=e.scope.generateDeclaredUidIdentifier("class");return t.map((function(e){return e.expression})).reverse().reduce((function(e,t){return wO({CLASS_REF:Ju(r),DECORATOR:Ju(t),INNER:e}).expression}),e.node)}}(e)||function(e,t){if(FO(e.node.body.body))return kO(e,t,e.node.body.body)}(e,t);r&&e.replaceWith(r)},ObjectExpression:function(e,t){var r=PO(e)||function(e,t){if(FO(e.node.properties))return kO(e,t,e.node.properties)}(e,t);r&&e.replaceWith(r)},AssignmentExpression:function(e,t){jO.has(e.node.right)&&e.replaceWith(ls(t.addHelper("initializerDefineProperty"),[Ju(e.get("left.object").node),Cs(e.get("left.property").node.name||e.get("left.property").node.value),Ju(e.get("right.arguments")[0].node),Ju(e.get("right.arguments")[1].node)]))},CallExpression:function(e,t){3===e.node.arguments.length&&jO.has(e.node.arguments[2])&&e.node.callee.name===t.addHelper("defineProperty").name&&e.replaceWith(ls(t.addHelper("initializerDefineProperty"),[Ju(e.get("arguments")[0].node),Ju(e.get("arguments")[1].node),Ju(e.get("arguments.2.arguments")[0].node),Ju(e.get("arguments.2.arguments")[1].node)]))}},BO=SF((function(e,t){e.assertVersion(7);var r=t.legacy,n=void 0!==r&&r;if("boolean"!=typeof n)throw new Error("'legacy' must be a boolean.");var s=t.decoratorsBeforeExport;if(void 0===s){if(!n)throw new Error("The decorators plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you want to use the legacy decorators semantics, you can set the 'legacy: true' option.")}else{if(n)throw new Error("'decoratorsBeforeExport' can't be used with legacy decorators.");if("boolean"!=typeof s)throw new Error("'decoratorsBeforeExport' must be a boolean.")}return n?{name:"proposal-decorators",inherits:_F,manipulateOptions:function(e){e.generatorOpts.decoratorsBeforeExport=s},visitor:NO}:bO({name:"proposal-decorators",api:e,feature:iO.decorators,manipulateOptions:function(e){var t=e.generatorOpts;e.parserOpts.plugins.push(["decorators",{decoratorsBeforeExport:s}]),t.decoratorsBeforeExport=s}})})),_O=SF((function(e){return e.assertVersion(7),{name:"proposal-do-expressions",inherits:LF,visitor:{DoExpression:{exit:function(e){var t=e.node;if(!t.async){var r=t.body.body;r.length?e.replaceExpressionWithStatements(r):e.replaceWith(e.scope.buildUndefinedNode())}}}}}})),LO=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-dynamic-import",manipulateOptions:function(e,t){t.plugins.push("dynamicImport")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-plugin-proposal-dynamic-import/node_modules/@babel/plugin-syntax-dynamic-import/lib"),MO=["commonjs","amd","systemjs"],UO=SF((function(e){return e.assertVersion(7),{name:"proposal-dynamic-import",inherits:LO.default,pre:function(){this.file.set("@babel/plugin-proposal-dynamic-import","7.14.5")},visitor:{Program:function(){var e=this.file.get("@babel/plugin-transform-modules-*");if(!MO.includes(e))throw new Error("@babel/plugin-proposal-dynamic-import depends on a modules\ntransform plugin. Supported plugins are:\n - @babel/plugin-transform-modules-commonjs ^7.4.0\n - @babel/plugin-transform-modules-amd ^7.4.0\n - @babel/plugin-transform-modules-systemjs ^7.4.0\n\nIf you are using Webpack or Rollup and thus don't want\nBabel to transpile your imports and exports, you can use\nthe @babel/plugin-syntax-dynamic-import plugin and let your\nbundler handle dynamic imports.\n")}}}})),GO=SF((function(e){return e.assertVersion(7),{name:"proposal-export-default-from",inherits:MF,visitor:{ExportNamedDeclaration:function(e){var t=e.node,r=e.scope,n=t.specifiers;if(it(n[0])){var s=n.shift().exported,a=r.generateUidIdentifier(s.name),i=[la([ca(a)],Ju(t.source)),ia(null,[oa(Ju(a),s)])];n.length>=1&&i.push(t);var o=l(e.replaceWithMultiple(i),1)[0];e.scope.registerDeclaration(o)}}}}})),VO=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-export-namespace-from",manipulateOptions:function(e,t){t.plugins.push("exportNamespaceFrom")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-plugin-proposal-export-namespace-from/node_modules/@babel/plugin-syntax-export-namespace-from/lib"),WO=SF((function(e){return e.assertVersion(7),{name:"proposal-export-namespace-from",inherits:VO.default,visitor:{ExportNamedDeclaration:function(e){var t,r=e.node,n=e.scope,s=r.specifiers,a=it(s[0])?1:0;if(Te(s[a])){var i=[];1===a&&i.push(ia(null,[s.shift()],r.source));var o=s.shift().exported,u=n.generateUidIdentifier(null!=(t=o.name)?t:o.value);i.push(la([pa(u)],Ju(r.source)),ia(null,[oa(Ju(u),o)])),r.specifiers.length>=1&&i.push(r);var c=l(e.replaceWithMultiple(i),1)[0];e.scope.registerDeclaration(c)}}}}})),HO=SF((function(e){function t(e,t){var r=function(e,t){var r=e.object||e.callee.object;return t.isStatic(r)&&(Ee(r)?Ws():r)}(e,t);if(r)return Ju(r);var n=function(e){var t=e.path.getData("functionBind");return t?Ju(t):(t=e.generateDeclaredUidIdentifier("context"),e.path.setData("functionBind",t))}(t);return e.object?e.callee=Ms([rs("=",n,e.object),e.callee]):e.callee.object=rs("=",n,e.callee.object),Ju(n)}return e.assertVersion(7),{name:"proposal-function-bind",inherits:GF,visitor:{CallExpression:function(e){var r=e.node,n=e.scope,s=r.callee;if(rt(s)){var a=t(s,n);r.callee=Fs(s.callee,Ds("call")),r.arguments.unshift(a)}},BindExpression:function(e){var r=e.node,n=t(r,e.scope);e.replaceWith(ls(Fs(r.callee,Ds("bind")),[n]))}}}})),XO=SF((function(e){e.assertVersion(7);var t=function(e){return F(e.meta,{name:"function"})&&F(e.property,{name:"sent"})},r={Function:function(e){e.skip()},YieldExpression:function(e){(function(e,t){return y(e)&&F(e.left,{name:t})})(e.parent,this.sentId)||e.replaceWith(rs("=",Ds(this.sentId),e.node))},MetaProperty:function(e){t(e.node)&&e.replaceWith(Ds(this.sentId))}};return{name:"proposal-function-sent",inherits:VF,visitor:{MetaProperty:function(e,n){if(t(e.node)){var s=e.getFunctionParent();if(!s.node.generator)throw new Error("Parent generator function not found");var a=e.scope.generateUid("function.sent");s.traverse(r,{sentId:a}),s.node.body.body.unshift(Ks("let",[zs(Ds(a),xa())])),sk(s,n.addHelper("skipFirstGeneratorNext"))}}}}})),qO=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-json-strings",manipulateOptions:function(e,t){t.plugins.push("jsonStrings")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-plugin-proposal-json-strings/node_modules/@babel/plugin-syntax-json-strings/lib"),$O=SF((function(e){e.assertVersion(7);var t=/(\\*)([\u2028\u2029])/g;function r(e,t,r){return t.length%2==1?e:t+"\\u"+r.charCodeAt(0).toString(16)}return{name:"proposal-json-strings",inherits:qO.default,visitor:{"DirectiveLiteral|StringLiteral":function(e){var n=e.node.extra;null!=n&&n.raw&&(n.raw=n.raw.replace(t,r))}}}})),KO=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-logical-assignment-operators",manipulateOptions:function(e,t){t.plugins.push("logicalAssignment")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-plugin-proposal-logical-assignment-operators/node_modules/@babel/plugin-syntax-logical-assignment-operators/lib"),zO=SF((function(e){return e.assertVersion(7),{name:"proposal-logical-assignment-operators",inherits:KO.default,visitor:{AssignmentExpression:function(e){var t=e.node,r=e.scope,n=t.operator,s=t.left,a=t.right,i=n.slice(0,-1);if(Or.includes(i)){var o=Ju(s);if(M(s)){var u=s.object,l=s.property,c=s.computed,p=r.maybeGenerateMemoised(u);if(p&&(s.object=p,o.object=rs("=",Ju(p),u)),c){var d=r.maybeGenerateMemoised(l);d&&(s.property=d,o.property=rs("=",Ju(d),l))}}e.replaceWith(Is(i,o,rs("=",s,a)))}}}}})),JO=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-nullish-coalescing-operator",manipulateOptions:function(e,t){t.plugins.push("nullishCoalescingOperator")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-plugin-proposal-nullish-coalescing-operator/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib"),YO=SF((function(e,t){var r,n=t.loose,s=void 0!==n&&n;e.assertVersion(7);var a=null!=(r=e.assumption("noDocumentAll"))?r:s;return{name:"proposal-nullish-coalescing-operator",inherits:JO.default,visitor:{LogicalExpression:function(e){var t=e.node,r=e.scope;if("??"===t.operator){var n,s;if(r.isStatic(t.left))n=t.left,s=Ju(t.left);else{if(r.path.isPattern())return void e.replaceWith(bg.ast(RO||(RO=u(["(() => ",")()"])),e.node));n=r.generateUidIdentifierBasedOnNode(t.left),r.push({id:Ju(n)}),s=rs("=",n,t.left)}e.replaceWith(ps(a?ns("!=",s,Ts()):Is("&&",ns("!==",s,Ts()),ns("!==",Ju(n),r.buildUndefinedNode())),Ju(n),t.right))}}}}})),QO=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-numeric-separator",manipulateOptions:function(e,t){t.plugins.push("numericSeparator")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-plugin-proposal-numeric-separator/node_modules/@babel/plugin-syntax-numeric-separator/lib");function ZO(e){var t,r=e.node.extra;null!=r&&null!=(t=r.raw)&&t.includes("_")&&(r.raw=r.raw.replace(/_/g,""))}var eR=SF((function(e){return e.assertVersion(7),{name:"proposal-numeric-separator",inherits:QO.default,visitor:{NumericLiteral:ZO,BigIntLiteral:ZO}}})),tR=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-object-rest-spread",manipulateOptions:function(e,t){t.plugins.push("objectRestSpread")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-plugin-proposal-object-rest-spread/node_modules/@babel/plugin-syntax-object-rest-spread/lib"),rR=bg("\n let VARIABLE_NAME =\n arguments.length > ARGUMENT_KEY && arguments[ARGUMENT_KEY] !== undefined ?\n arguments[ARGUMENT_KEY]\n :\n DEFAULT_VALUE;\n"),nR=bg("\n if (ASSIGNMENT_IDENTIFIER === UNDEFINED) {\n ASSIGNMENT_IDENTIFIER = DEFAULT_VALUE;\n }\n"),sR=bg("\n let ASSIGNMENT_IDENTIFIER = PARAMETER_NAME === UNDEFINED ? DEFAULT_VALUE : PARAMETER_NAME ;\n"),aR=bg("\n let $0 = arguments.length > $1 ? arguments[$1] : undefined;\n"),iR={"ReferencedIdentifier|BindingIdentifier":function(e,t){var r=e.scope,n=e.node.name;("eval"===n||r.getBinding(n)===t.scope.parent.getBinding(n)&&t.scope.hasOwnBinding(n))&&(t.needsOuterBinding=!0,e.stop())},"TypeAnnotation|TSTypeAnnotation|TypeParameterDeclaration|TSTypeParameterDeclaration":function(e){return e.skip()}};function oR(e,t,r,n){var s=e.get("params");if(s.every((function(e){return e.isIdentifier()})))return!1;for(var a,i=e.node,o=e.scope,u={stop:!1,needsOuterBinding:!1,scope:o},l=[],c=new Set,p=f(s);!(a=p()).done;)for(var d=a.value,h=0,m=Object.keys(d.getBindingIdentifiers());h<m.length;h++){var y,g=m[h],v=null==(y=o.bindings[g])?void 0:y.constantViolations;if(v)for(var b,E=f(v);!(b=E()).done;){var x=b.value,D=x.node;switch(D.type){case"VariableDeclarator":if(null===D.init){var A=x.parentPath;if(!A.parentPath.isFor()||A.parentPath.get("body")===A){x.remove();break}}c.add(g);break;case"FunctionDeclaration":c.add(g)}}}if(0===c.size)for(var w,C=f(s);!(w=C()).done;){var S=w.value;if(S.isIdentifier()||S.traverse(iR,u),u.needsOuterBinding)break}for(var T=null,j=0;j<s.length;j++){var P=s[j];if(!r||r(j)){var I=[];n&&n(P.parentPath,P,I);var F=P.isAssignmentPattern();if(F&&(t||"set"===i.kind)){var k=P.get("left"),O=P.get("right"),R=o.buildUndefinedNode();if(k.isIdentifier())l.push(nR({ASSIGNMENT_IDENTIFIER:Ju(k.node),DEFAULT_VALUE:O.node,UNDEFINED:R})),P.replaceWith(k.node);else if(k.isObjectPattern()||k.isArrayPattern()){var N=o.generateUidIdentifier();l.push(sR({ASSIGNMENT_IDENTIFIER:k.node,DEFAULT_VALUE:O.node,PARAMETER_NAME:Ju(N),UNDEFINED:R})),P.replaceWith(N)}}else if(F){null===T&&(T=j);var B=P.get("left"),_=P.get("right"),L=rR({VARIABLE_NAME:B.node,DEFAULT_VALUE:_.node,ARGUMENT_KEY:Ss(j)});l.push(L)}else if(null!==T){var M=aR([P.node,Ss(j)]);l.push(M)}else if(P.isObjectPattern()||P.isArrayPattern()){var U=e.scope.generateUidIdentifier("ref"),G=Ks("let",[zs(P.node,U)]);l.push(G),P.replaceWith(Ju(U))}if(I)for(var V,W=f(I);!(V=W()).done;){var H=V.value;l.push(H)}}}if(null!==T&&(i.params=i.params.slice(0,T)),e.ensureBlock(),u.needsOuterBinding||c.size>0){l.push(function(e,t){for(var r,n=[],s=[],a=f(e);!(r=a()).done;){var i=r.value;n.push(Ds(i)),s.push(Ds(i))}return Ls(ls(ea(s,t),n))}(c,e.get("body").node)),e.set("body",os(l));var X=e.get("body.body"),q=X[X.length-1].get("argument.callee");q.arrowFunctionToExpression(),q.node.generator=e.node.generator,q.node.async=e.node.async,e.node.generator=!1}else e.get("body").unshiftContainer("body",l);return!0}var uR=bg("\n for (var LEN = ARGUMENTS.length,\n ARRAY = new Array(ARRAY_LEN),\n KEY = START;\n KEY < LEN;\n KEY++) {\n ARRAY[ARRAY_KEY] = ARGUMENTS[KEY];\n }\n"),lR=bg("\n (INDEX < OFFSET || ARGUMENTS.length <= INDEX) ? undefined : ARGUMENTS[INDEX]\n"),cR=bg("\n REF = INDEX, (REF < OFFSET || ARGUMENTS.length <= REF) ? undefined : ARGUMENTS[REF]\n"),pR=bg("\n ARGUMENTS.length <= OFFSET ? 0 : ARGUMENTS.length - OFFSET\n");function dR(e,t){return e.node.name===t.name&&e.scope.bindingIdentifierEquals(t.name,t.outerBinding)}var fR={Scope:function(e,t){e.scope.bindingIdentifierEquals(t.name,t.outerBinding)||e.skip()},Flow:function(e){e.isTypeCastExpression()||e.skip()},Function:function(e,t){var r=t.noOptimise;t.noOptimise=!0,e.traverse(fR,t),t.noOptimise=r,e.skip()},ReferencedIdentifier:function(e,t){var r=e.node;if("arguments"===r.name&&(t.deopted=!0),dR(e,t))if(t.noOptimise)t.deopted=!0;else{var n=e.parentPath;if("params"===n.listKey&&n.key<t.offset)return;if(n.isMemberExpression({object:r})){var s=n.parentPath;if(!t.deopted&&!(s.isAssignmentExpression()&&n.node===s.node.left||s.isLVal()||s.isForXStatement()||s.isUpdateExpression()||s.isUnaryExpression({operator:"delete"})||(s.isCallExpression()||s.isNewExpression())&&n.node===s.node.callee))if(n.node.computed){if(n.get("property").isBaseType("number"))return void t.candidates.push({cause:"indexGetter",path:e})}else if("length"===n.node.property.name)return void t.candidates.push({cause:"lengthGetter",path:e})}if(0===t.offset&&n.isSpreadElement()){var a=n.parentPath;if(a.isCallExpression()&&1===a.node.arguments.length)return void t.candidates.push({cause:"argSpread",path:e})}t.references.push(e)}},BindingIdentifier:function(e,t){dR(e,t)&&(t.deopted=!0)}};function hR(e,t,r){var n,s=Ss(r);n=N(e.parent.property)?Ss(e.parent.property.value+r):0===r?e.parent.property:ns("+",e.parent.property,Ju(s));var a=e.scope;if(a.isPure(n)){var i=e.parentPath;i.replaceWith(lR({ARGUMENTS:t,OFFSET:s,INDEX:n}));var o=i.get("test").get("left").evaluate();o.confident&&(!0===o.value?i.replaceWith(i.scope.buildUndefinedNode()):i.get("test").replaceWith(i.get("test").get("right")))}else{var u=a.generateUidIdentifierBasedOnNode(n);a.push({id:u,kind:"var"}),e.parentPath.replaceWith(cR({ARGUMENTS:t,OFFSET:s,INDEX:n,REF:Ju(u)}))}}function mR(e,t,r){r?e.parentPath.replaceWith(pR({ARGUMENTS:t,OFFSET:Ss(r)})):e.replaceWith(t)}function yR(e){var t=e.node,r=e.scope;if(!function(e){var t=e.params.length;return t>0&&X(e.params[t-1])}(t))return!1;var n=t.params.pop().argument,s=Ds("arguments");if(Ot(n)){var a=Ks("let",[zs(n,n=r.generateUidIdentifier("ref"))]);t.body.body.unshift(a)}var i=function(e){var t=e.params.length;return t>0&&F(e.params[0],{name:"this"})&&(t-=1),t}(t),o={references:[],offset:i,argumentsNode:s,outerBinding:r.getBindingIdentifier(n.name),candidates:[],name:n.name,deopted:!1};if(e.traverse(fR,o),!o.deopted&&!o.references.length){for(var u=0,l=o.candidates;u<l.length;u++){var c=l[u],p=c.path,d=c.cause,f=Ju(s);switch(d){case"indexGetter":hR(p,f,o.offset);break;case"lengthGetter":mR(p,f,o.offset);break;default:p.replaceWith(f)}}return!0}o.references=o.references.concat(o.candidates.map((function(e){return e.path})));var h,m,y=Ss(i),g=r.generateUidIdentifier("key"),v=r.generateUidIdentifier("len");i?(h=ns("-",Ju(g),Ju(y)),m=ps(ns(">",Ju(v),Ju(y)),ns("-",Ju(v),Ju(y)),Ss(0))):(h=Ds(g.name),m=Ds(v.name));var b=uR({ARGUMENTS:s,ARRAY_KEY:h,ARRAY_LEN:m,START:y,ARRAY:n,KEY:g,LEN:v});if(o.deopted)t.body.body.unshift(b);else{var E=e.getEarliestCommonAncestorFrom(o.references).getStatementParent();E.findParent((function(e){if(!e.isLoop())return e.isFunction();E=e})),E.insertBefore(b)}return!0}var gR,vR,bR,ER,xR,DR,AR,wR=SF((function(e,t){var r;e.assertVersion(7);var n=null!=(r=e.assumption("ignoreFunctionLength"))?r:t.loose,s=e.assumption("noNewArrows");return{name:"transform-parameters",visitor:{Function:function(e){e.isArrowFunctionExpression()&&e.get("params").some((function(e){return e.isRestElement()||e.isAssignmentPattern()}))&&e.arrowFunctionToExpression({noNewArrows:s});var t=yR(e),r=oR(e,n);(t||r)&&e.scope.crawl()}}}})),CR={"es6.array.copy-within":{chrome:"45",opera:"32",edge:"12",firefox:"32",safari:"9",node:"4",ios:"9",samsung:"5",electron:"0.31"},"es6.array.every":{chrome:"5",opera:"10.10",edge:"12",firefox:"2",safari:"3.1",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.array.fill":{chrome:"45",opera:"32",edge:"12",firefox:"31",safari:"7.1",node:"4",ios:"8",samsung:"5",electron:"0.31"},"es6.array.filter":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.array.find":{chrome:"45",opera:"32",edge:"12",firefox:"25",safari:"7.1",node:"4",ios:"8",samsung:"5",electron:"0.31"},"es6.array.find-index":{chrome:"45",opera:"32",edge:"12",firefox:"25",safari:"7.1",node:"4",ios:"8",samsung:"5",electron:"0.31"},"es7.array.flat-map":{chrome:"69",opera:"56",edge:"79",firefox:"62",safari:"12",node:"11",ios:"12",samsung:"10",electron:"4.0"},"es6.array.for-each":{chrome:"5",opera:"10.10",edge:"12",firefox:"2",safari:"3.1",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.array.from":{chrome:"51",opera:"38",edge:"15",firefox:"36",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es7.array.includes":{chrome:"47",opera:"34",edge:"14",firefox:"43",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.36"},"es6.array.index-of":{chrome:"5",opera:"10.10",edge:"12",firefox:"2",safari:"3.1",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.array.is-array":{chrome:"5",opera:"10.50",edge:"12",firefox:"4",safari:"4",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.array.iterator":{chrome:"66",opera:"53",edge:"12",firefox:"60",safari:"9",node:"10",ios:"9",samsung:"9",electron:"3.0"},"es6.array.last-index-of":{chrome:"5",opera:"10.10",edge:"12",firefox:"2",safari:"3.1",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.array.map":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.array.of":{chrome:"45",opera:"32",edge:"12",firefox:"25",safari:"9",node:"4",ios:"9",samsung:"5",electron:"0.31"},"es6.array.reduce":{chrome:"5",opera:"10.50",edge:"12",firefox:"3",safari:"4",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.array.reduce-right":{chrome:"5",opera:"10.50",edge:"12",firefox:"3",safari:"4",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.array.slice":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.array.some":{chrome:"5",opera:"10.10",edge:"12",firefox:"2",safari:"3.1",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.array.sort":{chrome:"63",opera:"50",edge:"12",firefox:"5",safari:"12",node:"10",ie:"9",ios:"12",samsung:"8",electron:"3.0"},"es6.array.species":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.date.now":{chrome:"5",opera:"10.50",edge:"12",firefox:"2",safari:"4",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.date.to-iso-string":{chrome:"5",opera:"10.50",edge:"12",firefox:"3.5",safari:"4",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.date.to-json":{chrome:"5",opera:"12.10",edge:"12",firefox:"4",safari:"10",node:"0.10",ie:"9",android:"4",ios:"10",samsung:"1",electron:"0.20"},"es6.date.to-primitive":{chrome:"47",opera:"34",edge:"15",firefox:"44",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.36"},"es6.date.to-string":{chrome:"5",opera:"10.50",edge:"12",firefox:"2",safari:"3.1",node:"0.10",ie:"10",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.function.bind":{chrome:"7",opera:"12",edge:"12",firefox:"4",safari:"5.1",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.function.has-instance":{chrome:"51",opera:"38",edge:"15",firefox:"50",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.function.name":{chrome:"5",opera:"10.50",edge:"14",firefox:"2",safari:"4",node:"0.10",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.map":{chrome:"51",opera:"38",edge:"15",firefox:"53",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.math.acosh":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.asinh":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.atanh":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.cbrt":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.clz32":{chrome:"38",opera:"25",edge:"12",firefox:"31",safari:"9",node:"0.12",ios:"9",samsung:"3",electron:"0.20"},"es6.math.cosh":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.expm1":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.fround":{chrome:"38",opera:"25",edge:"12",firefox:"26",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.hypot":{chrome:"38",opera:"25",edge:"12",firefox:"27",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.imul":{chrome:"30",opera:"17",edge:"12",firefox:"23",safari:"7",node:"0.12",android:"4.4",ios:"7",samsung:"2",electron:"0.20"},"es6.math.log1p":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.log10":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.log2":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.sign":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"9",node:"0.12",ios:"9",samsung:"3",electron:"0.20"},"es6.math.sinh":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.tanh":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.math.trunc":{chrome:"38",opera:"25",edge:"12",firefox:"25",safari:"7.1",node:"0.12",ios:"8",samsung:"3",electron:"0.20"},"es6.number.constructor":{chrome:"41",opera:"28",edge:"12",firefox:"36",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"es6.number.epsilon":{chrome:"34",opera:"21",edge:"12",firefox:"25",safari:"9",node:"0.12",ios:"9",samsung:"2",electron:"0.20"},"es6.number.is-finite":{chrome:"19",opera:"15",edge:"12",firefox:"16",safari:"9",node:"0.12",android:"4.1",ios:"9",samsung:"1.5",electron:"0.20"},"es6.number.is-integer":{chrome:"34",opera:"21",edge:"12",firefox:"16",safari:"9",node:"0.12",ios:"9",samsung:"2",electron:"0.20"},"es6.number.is-nan":{chrome:"19",opera:"15",edge:"12",firefox:"15",safari:"9",node:"0.12",android:"4.1",ios:"9",samsung:"1.5",electron:"0.20"},"es6.number.is-safe-integer":{chrome:"34",opera:"21",edge:"12",firefox:"32",safari:"9",node:"0.12",ios:"9",samsung:"2",electron:"0.20"},"es6.number.max-safe-integer":{chrome:"34",opera:"21",edge:"12",firefox:"31",safari:"9",node:"0.12",ios:"9",samsung:"2",electron:"0.20"},"es6.number.min-safe-integer":{chrome:"34",opera:"21",edge:"12",firefox:"31",safari:"9",node:"0.12",ios:"9",samsung:"2",electron:"0.20"},"es6.number.parse-float":{chrome:"34",opera:"21",edge:"12",firefox:"25",safari:"9",node:"0.12",ios:"9",samsung:"2",electron:"0.20"},"es6.number.parse-int":{chrome:"34",opera:"21",edge:"12",firefox:"25",safari:"9",node:"0.12",ios:"9",samsung:"2",electron:"0.20"},"es6.object.assign":{chrome:"49",opera:"36",edge:"13",firefox:"36",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.object.create":{chrome:"5",opera:"12",edge:"12",firefox:"4",safari:"4",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es7.object.define-getter":{chrome:"62",opera:"49",edge:"16",firefox:"48",safari:"9",node:"8.10",ios:"9",samsung:"8",electron:"3.0"},"es7.object.define-setter":{chrome:"62",opera:"49",edge:"16",firefox:"48",safari:"9",node:"8.10",ios:"9",samsung:"8",electron:"3.0"},"es6.object.define-property":{chrome:"5",opera:"12",edge:"12",firefox:"4",safari:"5.1",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.object.define-properties":{chrome:"5",opera:"12",edge:"12",firefox:"4",safari:"4",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es7.object.entries":{chrome:"54",opera:"41",edge:"14",firefox:"47",safari:"10.1",node:"7",ios:"10.3",samsung:"6",electron:"1.4"},"es6.object.freeze":{chrome:"44",opera:"31",edge:"12",firefox:"35",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.30"},"es6.object.get-own-property-descriptor":{chrome:"44",opera:"31",edge:"12",firefox:"35",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.30"},"es7.object.get-own-property-descriptors":{chrome:"54",opera:"41",edge:"15",firefox:"50",safari:"10.1",node:"7",ios:"10.3",samsung:"6",electron:"1.4"},"es6.object.get-own-property-names":{chrome:"40",opera:"27",edge:"12",firefox:"33",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"es6.object.get-prototype-of":{chrome:"44",opera:"31",edge:"12",firefox:"35",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.30"},"es7.object.lookup-getter":{chrome:"62",opera:"49",edge:"79",firefox:"36",safari:"9",node:"8.10",ios:"9",samsung:"8",electron:"3.0"},"es7.object.lookup-setter":{chrome:"62",opera:"49",edge:"79",firefox:"36",safari:"9",node:"8.10",ios:"9",samsung:"8",electron:"3.0"},"es6.object.prevent-extensions":{chrome:"44",opera:"31",edge:"12",firefox:"35",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.30"},"es6.object.to-string":{chrome:"57",opera:"44",edge:"15",firefox:"51",safari:"10",node:"8",ios:"10",samsung:"7",electron:"1.7"},"es6.object.is":{chrome:"19",opera:"15",edge:"12",firefox:"22",safari:"9",node:"0.12",android:"4.1",ios:"9",samsung:"1.5",electron:"0.20"},"es6.object.is-frozen":{chrome:"44",opera:"31",edge:"12",firefox:"35",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.30"},"es6.object.is-sealed":{chrome:"44",opera:"31",edge:"12",firefox:"35",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.30"},"es6.object.is-extensible":{chrome:"44",opera:"31",edge:"12",firefox:"35",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.30"},"es6.object.keys":{chrome:"40",opera:"27",edge:"12",firefox:"35",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"es6.object.seal":{chrome:"44",opera:"31",edge:"12",firefox:"35",safari:"9",node:"4",ios:"9",samsung:"4",electron:"0.30"},"es6.object.set-prototype-of":{chrome:"34",opera:"21",edge:"12",firefox:"31",safari:"9",node:"0.12",ie:"11",ios:"9",samsung:"2",electron:"0.20"},"es7.object.values":{chrome:"54",opera:"41",edge:"14",firefox:"47",safari:"10.1",node:"7",ios:"10.3",samsung:"6",electron:"1.4"},"es6.promise":{chrome:"51",opera:"38",edge:"14",firefox:"45",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es7.promise.finally":{chrome:"63",opera:"50",edge:"18",firefox:"58",safari:"11.1",node:"10",ios:"11.3",samsung:"8",electron:"3.0"},"es6.reflect.apply":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.construct":{chrome:"49",opera:"36",edge:"13",firefox:"49",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.define-property":{chrome:"49",opera:"36",edge:"13",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.delete-property":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.get":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.get-own-property-descriptor":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.get-prototype-of":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.has":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.is-extensible":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.own-keys":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.prevent-extensions":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.set":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.reflect.set-prototype-of":{chrome:"49",opera:"36",edge:"12",firefox:"42",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"es6.regexp.constructor":{chrome:"50",opera:"37",edge:"79",firefox:"40",safari:"10",node:"6",ios:"10",samsung:"5",electron:"1.1"},"es6.regexp.flags":{chrome:"49",opera:"36",edge:"79",firefox:"37",safari:"9",node:"6",ios:"9",samsung:"5",electron:"0.37"},"es6.regexp.match":{chrome:"50",opera:"37",edge:"79",firefox:"49",safari:"10",node:"6",ios:"10",samsung:"5",electron:"1.1"},"es6.regexp.replace":{chrome:"50",opera:"37",edge:"79",firefox:"49",safari:"10",node:"6",ios:"10",samsung:"5",electron:"1.1"},"es6.regexp.split":{chrome:"50",opera:"37",edge:"79",firefox:"49",safari:"10",node:"6",ios:"10",samsung:"5",electron:"1.1"},"es6.regexp.search":{chrome:"50",opera:"37",edge:"79",firefox:"49",safari:"10",node:"6",ios:"10",samsung:"5",electron:"1.1"},"es6.regexp.to-string":{chrome:"50",opera:"37",edge:"79",firefox:"39",safari:"10",node:"6",ios:"10",samsung:"5",electron:"1.1"},"es6.set":{chrome:"51",opera:"38",edge:"15",firefox:"53",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.symbol":{chrome:"51",opera:"38",edge:"79",firefox:"51",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es7.symbol.async-iterator":{chrome:"63",opera:"50",edge:"79",firefox:"57",safari:"12",node:"10",ios:"12",samsung:"8",electron:"3.0"},"es6.string.anchor":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.big":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.blink":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.bold":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.code-point-at":{chrome:"41",opera:"28",edge:"12",firefox:"29",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"es6.string.ends-with":{chrome:"41",opera:"28",edge:"12",firefox:"29",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"es6.string.fixed":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.fontcolor":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.fontsize":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.from-code-point":{chrome:"41",opera:"28",edge:"12",firefox:"29",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"es6.string.includes":{chrome:"41",opera:"28",edge:"12",firefox:"40",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"es6.string.italics":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.iterator":{chrome:"38",opera:"25",edge:"12",firefox:"36",safari:"9",node:"0.12",ios:"9",samsung:"3",electron:"0.20"},"es6.string.link":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es7.string.pad-start":{chrome:"57",opera:"44",edge:"15",firefox:"48",safari:"10",node:"8",ios:"10",samsung:"7",electron:"1.7"},"es7.string.pad-end":{chrome:"57",opera:"44",edge:"15",firefox:"48",safari:"10",node:"8",ios:"10",samsung:"7",electron:"1.7"},"es6.string.raw":{chrome:"41",opera:"28",edge:"12",firefox:"34",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"es6.string.repeat":{chrome:"41",opera:"28",edge:"12",firefox:"24",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"es6.string.small":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.starts-with":{chrome:"41",opera:"28",edge:"12",firefox:"29",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"es6.string.strike":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.sub":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.sup":{chrome:"5",opera:"15",edge:"12",firefox:"17",safari:"6",node:"0.10",android:"4",ios:"7",phantom:"2",samsung:"1",electron:"0.20"},"es6.string.trim":{chrome:"5",opera:"10.50",edge:"12",firefox:"3.5",safari:"4",node:"0.10",ie:"9",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es7.string.trim-left":{chrome:"66",opera:"53",edge:"79",firefox:"61",safari:"12",node:"10",ios:"12",samsung:"9",electron:"3.0"},"es7.string.trim-right":{chrome:"66",opera:"53",edge:"79",firefox:"61",safari:"12",node:"10",ios:"12",samsung:"9",electron:"3.0"},"es6.typed.array-buffer":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.typed.data-view":{chrome:"5",opera:"12",edge:"12",firefox:"15",safari:"5.1",node:"0.10",ie:"10",android:"4",ios:"6",phantom:"2",samsung:"1",electron:"0.20"},"es6.typed.int8-array":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.typed.uint8-array":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.typed.uint8-clamped-array":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.typed.int16-array":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.typed.uint16-array":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.typed.int32-array":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.typed.uint32-array":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.typed.float32-array":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.typed.float64-array":{chrome:"51",opera:"38",edge:"13",firefox:"48",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"es6.weak-map":{chrome:"51",opera:"38",edge:"15",firefox:"53",safari:"9",node:"6.5",ios:"9",samsung:"5",electron:"1.2"},"es6.weak-set":{chrome:"51",opera:"38",edge:"15",firefox:"53",safari:"9",node:"6.5",ios:"9",samsung:"5",electron:"1.2"}},SR=function(){var e=Ds("a"),t=Bs(Ds("key"),e);return Ac(e,t,ma([t]))?1:0}(),TR=SF((function(e,t){var r,n,s,a;e.assertVersion(7);var i=!JS("es6.object.assign",e.targets(),{compatData:CR}),o=t.useBuiltIns,u=void 0===o?i:o,p=t.loose,d=void 0!==p&&p;if("boolean"!=typeof d)throw new Error(".loose must be a boolean, or undefined");var h=null!=(r=e.assumption("ignoreFunctionLength"))?r:d,m=null!=(n=e.assumption("objectRestNoSymbols"))?n:d,y=null!=(s=e.assumption("pureGetters"))?s:d,g=null!=(a=e.assumption("setSpreadProperties"))?a:d;function v(e){return u?Fs(Ds("Object"),Ds("assign")):e.addHelper("extends")}function b(e){var t=!1;return x(e,(function(e){t=!0,e.stop()})),t}function E(e){var t=!1;return x(e,(function(e){e.parentPath.isObjectPattern()&&(t=!0,e.stop())})),t}function x(e,t){e.traverse({Expression:function(e){var t=e.parent.type;("AssignmentPattern"===t&&"right"===e.key||"ObjectProperty"===t&&e.parent.computed&&"key"===e.key)&&e.skip()},RestElement:t})}function D(e,t){for(var r,n=[],s=f(e);!(r=s()).done;){var a=r.value,i=a.get("key");if(a.node.computed&&!i.isPure()){var o=t.generateUidBasedOnNode(i.node),u=zs(Ds(o),i.node);n.push(u),i.replaceWith(Ds(o))}}return n}function A(e,t,r){var n=e.get("properties"),s=n[n.length-1];Uu(s.node);var a=Ju(s.node);s.remove();var i,o=D(e.get("properties"),e.scope),u=function(e){for(var t,r=[],n=!0,s=f(e.node.properties);!(t=s()).done;){var a=t.value;F(a.key)&&!a.computed?r.push(Cs(a.key.name)):De(a.key)?r.push(Ju(a.key)):Pt(a.key)?r.push(Cs(String(a.key.value))):(r.push(Ju(a.key)),n=!1)}return{keys:r,allLiteral:n}}(e),l=u.keys,c=u.allLiteral;if(0===l.length)return[o,a.argument,ls(v(t),[Rs([]),Ju(r)])];if(c){if(i=ts(l),!G(e.scope.block)){var p=e.findParent((function(e){return e.isProgram()})),d=e.scope.generateUidIdentifier("excluded");p.scope.push({id:d,init:i,kind:"const"}),i=Ju(d)}}else i=ls(Fs(ts(l),Ds("map")),[t.addHelper("toPropertyKey")]);return[o,a.argument,ls(t.addHelper("objectWithoutProperties"+(m?"Loose":"")),[Ju(r),i])]}function w(e,t,r){if(t.isAssignmentPattern())w(e,t.get("left"),r);else{if(t.isArrayPattern()&&b(t))for(var n=t.get("elements"),s=0;s<n.length;s++)w(e,n[s],r);if(t.isObjectPattern()&&b(t)){var a=e.scope.generateUidIdentifier("ref"),i=Ks("let",[zs(t.node,a)]);r?r.push(i):(e.ensureBlock(),e.get("body").unshiftContainer("body",i)),t.replaceWith(Ju(a))}}}return{name:"proposal-object-rest-spread",inherits:tR.default,visitor:{Function:function(e){for(var t=e.get("params"),r=new Set,n=new Set,s=0;s<t.length;++s){var a=t[s];if(b(a)){r.add(s);for(var i=0,o=Object.keys(a.getBindingIdentifiers());i<o.length;i++){var u=o[i];n.add(u)}}}var l,c=!1,p=function(e,t){var r=e.node.name;e.scope.getBinding(r)===t.getBinding(r)&&n.has(r)&&(c=!0,e.stop())};for(l=0;l<t.length&&!c;++l){var d=t[l];r.has(l)||(d.isReferencedIdentifier()||d.isBindingIdentifier()?p(e,e.scope):d.traverse({"Scope|TypeAnnotation|TSTypeAnnotation":function(e){return e.skip()},"ReferencedIdentifier|BindingIdentifier":p},e.scope))}if(c){oR(e,h,(function(e){return e>=l-1||r.has(e)}),w)}else for(var f=0;f<t.length;++f){var m=t[f];r.has(f)&&w(m.parentPath,m)}},VariableDeclarator:function(e,t){if(e.get("id").isObjectPattern()){var r=e,n=e;x(e.get("id"),(function(e){if(e.parentPath.isObjectPattern()){if(n.node.id.properties.length>1&&!F(n.node.init)){var s=e.scope.generateUidIdentifierBasedOnNode(n.node.init,"ref");return n.insertBefore(zs(s,n.node.init)),void n.replaceWith(zs(n.node.id,Ju(s)))}var a,i=n.node.init,o=[];e.findParent((function(e){if(e.isObjectProperty())o.unshift(e);else if(e.isVariableDeclarator())return a=e.parentPath.node.kind,!0}));var u=D(o,e.scope);o.forEach((function(e){var t=e.node;i=Fs(i,Ju(t.key),t.computed||Pt(t.key))}));var c=e.findParent((function(e){return e.isObjectPattern()})),p=l(A(c,t,i),3),d=p[0],f=p[1],h=p[2];y&&function(e){var t=e.getOuterBindingIdentifierPaths();Object.keys(t).forEach((function(r){var n=t[r].parentPath;e.scope.getBinding(r).references>SR||!n.isObjectProperty()||n.remove()}))}(c),Mu(f),r.insertBefore(d),r.insertBefore(u),r.insertAfter(zs(f,h)),r=r.getSibling(r.key+1),e.scope.registerBinding(a,r),0===c.node.properties.length&&c.findParent((function(e){return e.isObjectProperty()||e.isVariableDeclarator()})).remove()}}))}},ExportNamedDeclaration:function(e){var t=e.get("declaration");if(t.isVariableDeclaration()&&t.get("declarations").some((function(e){return E(e.get("id"))}))){for(var r=[],n=0,s=Object.keys(e.getOuterBindingIdentifiers(e));n<s.length;n++){var a=s[n];r.push(oa(Ds(a),Ds(a)))}e.replaceWith(t.node),e.insertAfter(ia(null,r))}},CatchClause:function(e){var t=e.get("param");w(t.parentPath,t)},AssignmentExpression:function(e,t){var r=e.get("left");if(r.isObjectPattern()&&b(r)){var n=[],s=e.scope.generateUidBasedOnNode(e.node.right,"ref");n.push(Ks("var",[zs(Ds(s),e.node.right)]));var a=l(A(r,t,Ds(s)),3),i=a[0],o=a[1],u=a[2];i.length>0&&n.push(Ks("var",i));var c=Ju(e.node);c.right=Ds(s),n.push(ys(c)),n.push(fc(rs("=",o,u))),n.push(ys(Ds(s))),e.replaceWithMultiple(n)}},ForXStatement:function(e){var t=e.node,r=e.scope,n=e.get("left"),s=t.left;if(E(n))if(Z(s)){var a=s.declarations[0].id,i=r.generateUidIdentifier("ref");t.left=Ks(s.kind,[zs(i,null)]),e.ensureBlock(),t.body.body.unshift(Ks(t.left.kind,[zs(a,Ju(i))]))}else{var o=r.generateUidIdentifier("ref");t.left=Ks("var",[zs(o)]),e.ensureBlock(),0===t.body.body.length&&e.isCompletionRecord()&&t.body.body.unshift(ys(r.buildUndefinedNode())),t.body.body.unshift(ys(rs("=",s,Ju(o))))}},ArrayPattern:function(e){var t=[];if(x(e,(function(e){if(e.parentPath.isObjectPattern()){var r=e.parentPath,n=e.scope.generateUidIdentifier("ref");t.push(zs(r.node,n)),r.replaceWith(Ju(n)),e.skip()}})),t.length>0){var r=e.getStatementParent();r.insertAfter(Ks(r.node.kind||"var",t))}},ObjectExpression:function(e,t){if(function(e){for(var t,r=f(e.properties);!(t=r()).done;)if(be(t.value))return!0;return!1}(e.node)){var r;if(g)r=v(t);else try{r=t.addHelper("objectSpread2")}catch(e){this.file.declarations.objectSpread2=null,r=t.addHelper("objectSpread")}for(var n=null,s=[],a=0,i=e.node.properties;a<i.length;a++){var o=i[a];be(o)?(u(),n.arguments.push(o.argument)):s.push(o)}s.length&&u(),e.replaceWith(n)}function u(){var e=s.length>0,t=Rs(s);s=[],n?y?e&&n.arguments.push(t):n=ls(Ju(r),[n].concat(c(e?[Rs([]),t]:[]))):n=ls(r,[t])}}}}})),jR=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-optional-catch-binding",manipulateOptions:function(e,t){t.plugins.push("optionalCatchBinding")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-plugin-proposal-optional-catch-binding/node_modules/@babel/plugin-syntax-optional-catch-binding/lib"),PR=SF((function(e){return e.assertVersion(7),{name:"proposal-optional-catch-binding",inherits:jR.default,visitor:{CatchClause:function(e){if(!e.node.param){var t=e.scope.generateUidIdentifier("unused");e.get("param").replaceWith(t)}}}}})),IR=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-optional-chaining",manipulateOptions:function(e,t){t.plugins.push("optionalChaining")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-plugin-proposal-optional-chaining/node_modules/@babel/plugin-syntax-optional-chaining/lib");function FR(e){return ht(e)||mt(e)||yt(e)||Ve(e)||K(e)}function kR(e){for(;FR(e.node);)e=e.get("expression");return e}function OR(e){var t=RR(e),r=t.node,n=t.parentPath;if(n.isLogicalExpression()){var s=n.node,a=s.operator,i=s.right;if("&&"===a||"||"===a||"??"===a&&r===i)return OR(n)}if(n.isSequenceExpression()){var o=n.node.expressions;return o[o.length-1]!==r||OR(n)}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isLoop({test:r})}function RR(e){var t=e;return e.findParent((function(e){if(!FR(e))return!0;t=e})),t}var NR=bg.expression.ast;function BR(e){return F(e=kR(e))||Ee(e)||M(e)&&!e.computed&&BR(e.object)}function _R(e,t){var r=t.pureGetters,n=t.noDocumentAll,s=e.scope,a=RR(e),i=a.parentPath,o=OR(a),l=!1,c=i.isCallExpression({callee:a.node})&&e.isOptionalMemberExpression(),p=[],d=e;if(s.path.isPattern()&&function(e){for(var t=e,r=e.scope;t.isOptionalMemberExpression()||t.isOptionalCallExpression();){var n=t.node,s=t.isOptionalMemberExpression()?"object":"callee",a=kR(t.get(s));if(n.optional)return!r.isStatic(a.node);t=a}}(d))e.replaceWith(bg.ast(gR||(gR=u(["(() => ",")()"])),e.node));else{for(;d.isOptionalMemberExpression()||d.isOptionalCallExpression();){var f=d.node;f.optional&&p.push(f),d.isOptionalMemberExpression()?(d.node.type="MemberExpression",d=kR(d.get("object"))):d.isOptionalCallExpression()&&(d.node.type="CallExpression",d=kR(d.get("callee")))}var h=e;i.isUnaryExpression({operator:"delete"})&&(h=i,l=!0);for(var m=p.length-1;m>=0;m--){for(var y=p[m],g=E(y),v=g?"callee":"object",b=y[v],x=b;FR(x);)x=x.expression;var D=void 0,A=void 0;if(g&&F(x,{name:"eval"})?(A=D=x,y[v]=Ms([Ss(0),D])):r&&g&&BR(x)?A=D=b:(D=s.maybeGenerateMemoised(x))?(A=rs("=",Ju(D),b),y[v]=D):A=D=b,g&&M(x))if(r&&BR(x))y.callee=b;else{var w=x.object,C=s.maybeGenerateMemoised(w);C?x.object=rs("=",C,w):C=Ee(w)?Ws():w,y.arguments.unshift(Ju(C)),y.callee=Fs(y.callee,Ds("call"))}var S=h.node;if(0===m&&c){var T,j=kR(h.get("object")).node,P=void 0;r&&BR(j)||(P=s.maybeGenerateMemoised(j))&&(S.object=rs("=",P,j)),S=ls(Fs(S,Ds("bind")),[Ju(null!=(T=P)?T:j)])}if(o){var I=n?NR(vR||(vR=u([""," != null"])),Ju(A)):NR(bR||(bR=u(["\n "," !== null && "," !== void 0"])),Ju(A),Ju(D));h.replaceWith(Is("&&",I,S)),h=kR(h.get("right"))}else{var k=n?NR(ER||(ER=u([""," == null"])),Ju(A)):NR(xR||(xR=u(["\n "," === null || "," === void 0"])),Ju(A),Ju(D)),O=NR(l?DR||(DR=u(["true"])):AR||(AR=u(["void 0"])));h.replaceWith(ps(k,O,S)),h=kR(h.get("alternate"))}}}}var LR,MR,UR,GR,VR,WR,HR=SF((function(e,t){var r,n;e.assertVersion(7);var s=t.loose,a=void 0!==s&&s,i=null!=(r=e.assumption("noDocumentAll"))?r:a,o=null!=(n=e.assumption("pureGetters"))?n:a;return{name:"proposal-optional-chaining",inherits:IR.default,visitor:{"OptionalCallExpression|OptionalMemberExpression":function(e){_R(e,{noDocumentAll:i,pureGetters:o})}}}})),XR=function(e){var t,r=e.assign,n=e.call,s=e.path,a=r.left,i=r.right,o=n.callee,u=se(o)&&vt(o.body)&&!o.async&&!o.generator;if(u){var l=o.params;1===l.length&&F(l[0])?t=l[0]:l.length>0&&(u=!1)}else if(F(o,{name:"eval"})){var c=Ms([Ss(0),o]);return n.callee=c,s.scope.push({id:Ju(a)}),Ms([r,n])}return u&&!t?Ms([i,o.body]):(s.scope.push({id:Ju(a)}),t?(s.get("right").scope.rename(t.name,a.name),Ms([r,o.body])):Ms([r,n]))},qR={PipelinePrimaryTopicReference:function(e){e.replaceWith(Ju(this.topicId))},PipelineTopicExpression:function(e){e.skip()}},$R={minimal:{BinaryExpression:function(e){var t=e.scope,r=e.node,n=r.operator,s=r.left,a=r.right;if("|>"===n){var i=t.generateUidIdentifierBasedOnNode(s),o=ls(a,[Ju(i)]);e.replaceWith(XR({assign:rs("=",Ju(i),s),call:o,path:e}))}}},smart:{BinaryExpression:function(e){var t=e.scope,r=e.node,n=r.operator,s=r.left,a=r.right;if("|>"===n){var i,o=t.generateUidIdentifierBasedOnNode(s);if(t.push({id:o}),st(a))e.get("right").traverse(qR,{topicId:o}),i=a.expression;else{var u=a.callee;F(u,{name:"eval"})&&(u=Ms([Ss(0),u])),i=ls(u,[Ju(o)])}e.replaceWith(Ms([rs("=",Ju(o),s),i]))}}},fsharp:{BinaryExpression:function(e){var t=e.scope,r=e.node,n=r.operator,s=r.left,a=r.right;if("|>"===n){var i=t.generateUidIdentifierBasedOnNode(s),o="AwaitExpression"===a.type?Da(Ju(i)):ls(a,[Ju(i)]),u=XR({assign:rs("=",Ju(i),s),call:o,path:e});e.replaceWith(u)}}}},KR=SF((function(e,t){return e.assertVersion(7),{name:"proposal-pipeline-operator",inherits:JF,visitor:$R[t.proposal]}})),zR=SF((function(e,t){return e.assertVersion(7),bO({name:"proposal-private-methods",api:e,feature:iO.privateMethods,loose:t.loose,manipulateOptions:function(e,t){t.plugins.push("classPrivateMethods")}})})),JR=SF((function(e){return e.assertVersion(7),{name:"syntax-private-property-in-object",manipulateOptions:function(e,t){t.plugins.push("privateIn")}}})),YR=SF((function(e,t){var r=e.assertVersion,n=e.types,s=e.template,a=t.loose;r(7);var i=new WeakMap;new WeakMap;function o(e,t,r){void 0===r&&(r=!1),e.node.value?r?e.get("value").insertBefore(t):e.get("value").insertAfter(t):e.set("value",n.unaryExpression("void",t))}function l(e,t){for(var r,s,a,i=f(e.get("body.body"));!(a=i()).done;){var u=a.value;if((u.isClassProperty()||u.isClassPrivateProperty())&&!u.node.static){r=u;break}!s&&u.isClassMethod({kind:"constructor"})&&(s=u)}r?o(r,t,!0):aO(e,s,[n.expressionStatement(t)])}function c(e,t,r,a,o){void 0===a&&(a="");var l=i.get(r.node);if(!l){l=t.scope.generateUidIdentifier((a||"")+" brandCheck"),i.set(r.node,l),o(r,s.expression.ast(LR||(LR=u(["",".add(this)"])),n.cloneNode(l)));var c=n.newExpression(n.identifier("WeakSet"),[]);ak(c),t.insertBefore(s.ast(MR||(MR=u(["var "," = ",""])),l,c))}return n.cloneNode(l)}return{name:"proposal-private-property-in-object",inherits:JR,pre:function(){pO(this.file,iO.privateIn,a)},visitor:{BinaryExpression:function(e){var t=e.node;if("in"===t.operator&&n.isPrivateName(t.left)){var r,a=t.left.id.name,i=e.findParent((function(e){return!!e.isClass()&&!!(r=e.get("body.body").find((function(e){var t=e.node;return n.isPrivate(t)&&t.key.id.name===a})))}));if(i.parentPath.scope.path.isPattern())i.replaceWith(s.ast(UR||(UR=u(["(() => ",")()"])),i.node));else if(r.isMethod())if(r.node.static)i.node.id?function(e,t,r){for(;r!==t;)r.hasOwnBinding(e)&&r.rename(e),r=r.parent}(i.node.id.name,i.scope,e.scope):i.set("id",e.scope.generateUidIdentifier("class")),e.replaceWith(s.expression.ast(GR||(GR=u(["\n "," === ","\n "])),n.cloneNode(i.node.id),e.node.right));else{var p,d=c(0,i,i,null==(p=i.node.id)?void 0:p.name,l);e.replaceWith(s.expression.ast(VR||(VR=u(["",".has(",")"])),d,e.node.right))}else{var f=c(0,i,r,r.node.key.id.name,o);e.replaceWith(s.expression.ast(WR||(WR=u(["",".has(",")"])),f,e.node.right))}}}}}})),QR=SF((function(e){return e.assertVersion(7),{name:"syntax-throw-expressions",manipulateOptions:function(e,t){t.plugins.push("throwExpressions")}}})),ZR=SF((function(e){return e.assertVersion(7),{name:"proposal-throw-expressions",inherits:QR,visitor:{UnaryExpression:function(e){var t=e.node,r=t.operator,n=t.argument;if("throw"===r){var s=xs(null,[Ds("e")],os([Hs(Ds("e"))]));e.replaceWith(ls(s,[n]))}}}}})),eN=zt((function(e,t){(function(){var r={function:!0,object:!0}[typeof window]&&window||this,n=t&&!t.nodeType&&t,s=e&&!e.nodeType,a=n&&s&&"object"==typeof $t&&$t;!a||a.global!==a&&a.window!==a&&a.self!==a||(r=a);var i=Object.prototype.hasOwnProperty;function o(){var e=Number(arguments[0]);if(!isFinite(e)||e<0||e>1114111||Math.floor(e)!=e)throw RangeError("Invalid code point: "+e);if(e<=65535)return String.fromCharCode(e);var t=55296+((e-=65536)>>10),r=e%1024+56320;return String.fromCharCode(t,r)}var u={};function l(e,t){if(-1==t.indexOf("|")){if(e==t)return;throw Error("Invalid node type: "+e+"; expected type: "+t)}if(!(t=i.call(u,t)?u[t]:u[t]=RegExp("^(?:"+t+")$")).test(e))throw Error("Invalid node type: "+e+"; expected types: "+t)}function c(e){var t=e.type;if(i.call(h,t))return h[t](e);throw Error("Invalid node type: "+t)}function p(e){return l(e.type,"anchor|characterClassEscape|characterClassRange|dot|value"),c(e)}function d(e){return l(e.type,"identifier"),e.value}function f(e){return l(e.type,"anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|unicodePropertyEscape|value|dot"),c(e)}var h={alternative:function(e){l(e.type,"alternative");for(var t=e.body,r=-1,n=t.length,s="";++r<n;)s+=f(t[r]);return s},anchor:function(e){switch(l(e.type,"anchor"),e.kind){case"start":return"^";case"end":return"$";case"boundary":return"\\b";case"not-boundary":return"\\B";default:throw Error("Invalid assertion")}},characterClass:function(e){l(e.type,"characterClass");var t=e.body,r=-1,n=t.length,s="";for(e.negative&&(s+="^");++r<n;)s+=p(t[r]);return"["+s+"]"},characterClassEscape:function(e){return l(e.type,"characterClassEscape"),"\\"+e.value},characterClassRange:function(e){l(e.type,"characterClassRange");var t=e.min,r=e.max;if("characterClassRange"==t.type||"characterClassRange"==r.type)throw Error("Invalid character class range");return p(t)+"-"+p(r)},unicodePropertyEscape:function(e){return l(e.type,"unicodePropertyEscape"),"\\"+(e.negative?"P":"p")+"{"+e.value+"}"},disjunction:function(e){l(e.type,"disjunction");for(var t=e.body,r=-1,n=t.length,s="";++r<n;)0!=r&&(s+="|"),s+=c(t[r]);return s},dot:function(e){return l(e.type,"dot"),"."},group:function(e){l(e.type,"group");var t="";switch(e.behavior){case"normal":e.name&&(t+="?<"+d(e.name)+">");break;case"ignore":t+="?:";break;case"lookahead":t+="?=";break;case"negativeLookahead":t+="?!";break;case"lookbehind":t+="?<=";break;case"negativeLookbehind":t+="?<!";break;default:throw Error("Invalid behaviour: "+e.behaviour)}for(var r=e.body,n=-1,s=r.length;++n<s;)t+=c(r[n]);return"("+t+")"},quantifier:function(e){l(e.type,"quantifier");var t="",r=e.min,n=e.max;return t=null==n?0==r?"*":1==r?"+":"{"+r+",}":r==n?"{"+r+"}":0==r&&1==n?"?":"{"+r+","+n+"}",e.greedy||(t+="?"),function(e){return l(e.type,"anchor|characterClass|characterClassEscape|dot|group|reference|value"),c(e)}(e.body[0])+t},reference:function(e){if(l(e.type,"reference"),e.matchIndex)return"\\"+e.matchIndex;if(e.name)return"\\k<"+d(e.name)+">";throw new Error("Unknown reference type")},value:function(e){l(e.type,"value");var t=e.kind,r=e.codePoint;if("number"!=typeof r)throw new Error("Invalid code point: "+r);switch(t){case"controlLetter":return"\\c"+o(r+64);case"hexadecimalEscape":return"\\x"+("00"+r.toString(16).toUpperCase()).slice(-2);case"identifier":return"\\"+o(r);case"null":return"\\"+r;case"octal":return"\\"+r.toString(8);case"singleEscape":switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 11:return"\\v";case 12:return"\\f";case 13:return"\\r";default:throw Error("Invalid code point: "+r)}case"symbol":return o(r);case"unicodeEscape":return"\\u"+("0000"+r.toString(16).toUpperCase()).slice(-4);case"unicodeCodePointEscape":return"\\u{"+r.toString(16).toUpperCase()+"}";default:throw Error("Unsupported node kind: "+t)}}},m={generate:c};n&&s?n.generate=c:r.regjsgen=m}).call($t)}),"/$$rollup_base$$/node_modules/regjsgen"),tN=zt((function(e){var t,r,n,s;n=String.fromCodePoint||(t=String.fromCharCode,r=Math.floor,function(){var e,n,s=16384,a=[],i=-1,o=arguments.length;if(!o)return"";for(var u="";++i<o;){var l=Number(arguments[i]);if(!isFinite(l)||l<0||l>1114111||r(l)!=l)throw RangeError("Invalid code point: "+l);l<=65535?a.push(l):(e=55296+((l-=65536)>>10),n=l%1024+56320,a.push(e,n)),(i+1==o||a.length>s)&&(u+=t.apply(null,a),a.length=0)}return u}),s={parse:function(e,t,r){function s(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function a(e,t){return e.range[0]=t,s(e)}function i(e,t){return s({type:"anchor",kind:e,range:[V-t,V]})}function o(e,t,r,n){return s({type:"value",kind:e,codePoint:t,range:[r,n]})}function u(e,t,r,n){return n=n||0,o(e,t,V-(r.length+n),V)}function l(e){var t,r=e[0],n=r.charCodeAt(0);return G&&1===r.length&&n>=55296&&n<=56319&&(t=g().charCodeAt(0))>=56320&&t<=57343?o("symbol",1024*(n-55296)+t-56320+65536,++V-2,V):o("symbol",n,V-1,V)}function c(e,t,r,n){return null==n&&(r=V-1,n=V),s({type:"quantifier",min:e,max:t,greedy:!0,body:null,range:[r,n]})}function p(e,t,r,n){return s({type:"characterClass",body:e,negative:t,range:[r,n]})}function d(e,t,r,n){return e.codePoint>t.codePoint&&_("invalid range in character class",e.raw+"-"+t.raw,r,n),s({type:"characterClassRange",min:e,max:t,range:[r,n]})}function f(e){return"alternative"===e.type?e.body:[e]}function h(t){t=t||1;var r=e.substring(V,V+t);return V+=t||1,r}function m(e){y(e)||_("character",e)}function y(t){if(e.indexOf(t,V)===V)return h(t.length)}function g(){return e[V]}function v(t){return e.indexOf(t,V)===V}function b(t){return e[V+1]===t}function E(t){var r=e.substring(V).match(t);return r&&(r.range=[],r.range[0]=V,h(r[0].length),r.range[1]=V),r}function x(){var e=[],t=V;for(e.push(D());y("|");)e.push(D());return 1===e.length?e[0]:function(e,t,r){return s({type:"disjunction",body:e,range:[t,r]})}(e,t,V)}function D(){for(var e,t=[],r=V;e=A();)t.push(e);return 1===t.length?t[0]:function(e,t,r){return s({type:"alternative",body:e,range:[t,r]})}(t,r,V)}function A(){if(V>=e.length||v("|")||v(")"))return null;var t=y("^")?i("start",1):y("$")?i("end",1):y("\\b")?i("boundary",2):y("\\B")?i("not-boundary",2):w("(?=","lookahead","(?!","negativeLookahead");if(t)return t;var n=function(){var e;if(e=E(/^[^^$\\.*+?()[\]{}|]/))return l(e);if(!G&&(e=E(/^(?:]|})/)))return l(e);if(y("."))return s({type:"dot",range:[V-1,V]});if(y("\\")){if(!(e=j())){if(!G&&"c"==g())return o("symbol",92,V-1,V);_("atomEscape")}return e}if(e=function(){var e,t=V;return(e=E(/^\[\^/))?(e=R(),m("]"),p(e,!0,t,V)):y("[")?(e=R(),m("]"),p(e,!1,t,V)):null}())return e;if(r.lookbehind&&(e=w("(?<=","lookbehind","(?<!","negativeLookbehind")))return e;if(r.namedGroups&&y("(?<")){var t=F();m(">");var n=C("normal",t.range[0]-3);return n.name=t,n}return w("(?:","ignore","(","normal")}();n||_("Expected atom");var u=function(){var e,t,r,n,s=V;return y("*")?t=c(0):y("+")?t=c(1):y("?")?t=c(0,1):(e=E(/^\{([0-9]+)\}/))?t=c(r=parseInt(e[1],10),r,e.range[0],e.range[1]):(e=E(/^\{([0-9]+),\}/))?t=c(r=parseInt(e[1],10),void 0,e.range[0],e.range[1]):(e=E(/^\{([0-9]+),([0-9]+)\}/))&&((r=parseInt(e[1],10))>(n=parseInt(e[2],10))&&_("numbers out of order in {} quantifier","",s,V),t=c(r,n,e.range[0],e.range[1])),t&&y("?")&&(t.greedy=!1,t.range[1]+=1),t}()||!1;return u?(u.body=f(n),a(u,n.range[0]),u):n}function w(e,t,r,n){var s=null,a=V;if(y(e))s=t;else{if(!y(r))return!1;s=n}return C(s,a)}function C(e,t){var r=x();r||_("Expected disjunction"),m(")");var n=function(e,t,r,n){return s({type:"group",behavior:e,body:t,range:[r,n]})}(e,f(r),t,V);return"normal"==e&&U&&M++,n}function S(e){var t,r;if(G&&"unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&v("\\")&&b("u")){var n=V;V++;var a=T();"unicodeEscape"==a.kind&&(r=a.codePoint)>=56320&&r<=57343?(e.range[1]=a.range[1],e.codePoint=1024*(t-55296)+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",s(e)):V=n}return e}function T(){return j(!0)}function j(e){var t,n=V;if(t=function(){var e,t,r;if(e=E(/^(?!0)\d+/)){t=e[0];var n=parseInt(e[0],10);return n<=M?(r=e[0],s({type:"reference",matchIndex:parseInt(r,10),range:[V-1-r.length,V]})):(L.push(n),h(-e[0].length),(e=E(/^[0-7]{1,3}/))?u("octal",parseInt(e[0],8),e[0],1):a(e=l(E(/^[89]/)),e.range[0]-1))}return(e=E(/^[0-7]{1,3}/))?(t=e[0],/^0{1,3}$/.test(t)?u("null",0,"0",t.length+1):u("octal",parseInt(t,8),t,1)):!!(e=E(/^[dDsSwW]/))&&s({type:"characterClassEscape",value:e[0],range:[V-2,V]})}()||function(){if(r.namedGroups&&E(/^k<(?=.*?>)/)){var e=F();return m(">"),function(e){return s({type:"reference",name:e,range:[e.range[0]-3,V]})}(e)}}())return t;if(e){if(y("b"))return u("singleEscape",8,"\\b");if(y("B"))_("\\B not possible inside of CharacterClass","",n);else if(!G&&(t=E(/^c([0-9])/)))return u("controlLetter",t[1]+16,t[1],2);if(y("-")&&G)return u("singleEscape",45,"\\-")}return t=function(){var e,t,n,a=V;if(e=E(/^[fnrtv]/)){var i=0;switch(e[0]){case"t":i=9;break;case"n":i=10;break;case"v":i=11;break;case"f":i=12;break;case"r":i=13}return u("singleEscape",i,"\\"+e[0])}return(e=E(/^c([a-zA-Z])/))?u("controlLetter",e[1].charCodeAt(0)%32,e[1],2):(e=E(/^x([0-9a-fA-F]{2})/))?u("hexadecimalEscape",parseInt(e[1],16),e[1],2):(e=P())?((!e||e.codePoint>1114111)&&_("Invalid escape sequence",null,a,V),e):r.unicodePropertyEscape&&G&&(e=E(/^([pP])\{([^\}]+)\}/))?s({type:"unicodePropertyEscape",negative:"P"===e[1],value:e[2],range:[e.range[0]-1,e.range[1]],raw:e[0]}):(n=g(),G&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(n)||!G&&"c"!==n?"k"===n&&r.lookbehind?null:u("identifier",(t=h()).charCodeAt(0),t,1):null)}()}function P(){var e;return(e=E(/^u([0-9a-fA-F]{4})/))?S(u("unicodeEscape",parseInt(e[1],16),e[1],2)):G&&(e=E(/^u\{([0-9a-fA-F]+)\}/))?u("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):void 0}function I(t){var r=g(),s=V;if("\\"===r){h();var a=P();return a&&t(a.codePoint)||_("Invalid escape sequence",null,s,V),n(a.codePoint)}var i=r.charCodeAt(0);if(i>=55296&&i<=56319){var o=(r+=e[V+1]).charCodeAt(1);o>=56320&&o<=57343&&(i=1024*(i-55296)+o-56320+65536)}if(t(i))return h(),i>65535&&h(),r}function F(){var e,t=V,r=I(k);for(r||_("Invalid identifier");e=I(O);)r+=e;return s({type:"identifier",value:r,range:[t,V]})}function k(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test(n(e))}function O(e){return k(e)||e>=48&&e<=57||e>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test(n(e))}function R(){var e,t;return v("]")?[]:((t=B())||_("classAtom"),(e=v("]")?[t]:N(t))||_("nonEmptyClassRanges"),e)}function N(e){var t,r,n;if(v("-")&&!b("]")){m("-"),(n=B())||_("classAtom"),r=V;var s=R();return s||_("classRanges"),t=e.range[0],"empty"===s.type?[d(e,n,t,r)]:[d(e,n,t,r)].concat(s)}return(n=function(){var e=B();return e||_("classAtom"),v("]")?e:N(e)}())||_("nonEmptyClassRangesNoDash"),[e].concat(n)}function B(){return y("-")?l("-"):(e=E(/^[^\\\]-]/))?l(e[0]):y("\\")?((e=T())||_("classEscape"),S(e)):void 0;var e}function _(t,r,n,s){n=null==n?V:n,s=null==s?n:s;var a=Math.max(0,n-10),i=Math.min(s+10,e.length),o=" "+e.substring(a,i),u=" "+new Array(n-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+n+(r?": "+r:"")+"\n"+o+"\n"+u)}r||(r={});var L=[],M=0,U=!0,G=-1!==(t||"").indexOf("u"),V=0;""===(e=String(e))&&(e="(?:)");var W=x();W.range[1]!==e.length&&_("Could not parse entire input - got stuck","",W.range[1]);for(var H=0;H<L.length;H++)if(L[H]<=M)return V=0,U=!1,x();return W}},e.exports?e.exports=s:window.regjsparser=s}),"/$$rollup_base$$/node_modules/regjsparser"),rN=zt((function(e,t){!function(r){var n=t,s=e&&e.exports==n&&e,a="object"==typeof $t&&$t;a.global!==a&&a.window!==a||(r=a);var i="A range\u2019s `stop` value must be greater than or equal to the `start` value.",o="Invalid code point value. Code points range from U+000000 to U+10FFFF.",u=55296,l=56319,c=56320,p=57343,d=/\\x00([^0123456789]|$)/g,f={},h=f.hasOwnProperty,m=function(e,t){for(var r=-1,n=e.length;++r<n;)t(e[r],r)},y=f.toString,g=function(e){return"[object Array]"==y.call(e)},v=function(e){return"number"==typeof e||"[object Number]"==y.call(e)},b=function(e,t){var r=String(e);return r.length<t?("0000"+r).slice(-t):r},E=function(e){return Number(e).toString(16).toUpperCase()},x=[].slice,D=function(e,t){for(var r,n,s=0,a=e.length;s<a;){if(r=e[s],n=e[s+1],t>=r&&t<n)return t==r?n==r+1?(e.splice(s,2),e):(e[s]=t+1,e):t==n-1?(e[s+1]=t,e):(e.splice(s,2,r,t,t+1,n),e);s+=2}return e},A=function(e,t,r){if(r<t)throw Error(i);for(var n,s,a=0;a<e.length;){if(n=e[a],s=e[a+1]-1,n>r)return e;if(t<=n&&r>=s)e.splice(a,2);else{if(t>=n&&r<s)return t==n?(e[a]=r+1,e[a+1]=s+1,e):(e.splice(a,2,n,t,r+1,s+1),e);if(t>=n&&t<=s)e[a+1]=t;else if(r>=n&&r<=s)return e[a]=r+1,e;a+=2}}return e},w=function(e,t){var r,n,s=0,a=null,i=e.length;if(t<0||t>1114111)throw RangeError(o);for(;s<i;){if(r=e[s],n=e[s+1],t>=r&&t<n)return e;if(t==r-1)return e[s]=t,e;if(r>t)return e.splice(null!=a?a+2:0,0,t,t+1),e;if(t==n)return t+1==e[s+2]?(e.splice(s,4,r,e[s+3]),e):(e[s+1]=t+1,e);a=s,s+=2}return e.push(t,t+1),e},C=function(e,t){for(var r,n,s=0,a=e.slice(),i=t.length;s<i;)a=(r=t[s])==(n=t[s+1]-1)?w(a,r):T(a,r,n),s+=2;return a},S=function(e,t){for(var r,n,s=0,a=e.slice(),i=t.length;s<i;)a=(r=t[s])==(n=t[s+1]-1)?D(a,r):A(a,r,n),s+=2;return a},T=function(e,t,r){if(r<t)throw Error(i);if(t<0||t>1114111||r<0||r>1114111)throw RangeError(o);for(var n,s,a=0,u=!1,l=e.length;a<l;){if(n=e[a],s=e[a+1],u){if(n==r+1)return e.splice(a-1,2),e;if(n>r)return e;n>=t&&n<=r&&(s>t&&s-1<=r?(e.splice(a,2),a-=2):(e.splice(a-1,2),a-=2))}else{if(n==r+1||n==r)return e[a]=t,e;if(n>r)return e.splice(a,0,t,r+1),e;if(t>=n&&t<s&&r+1<=s)return e;t>=n&&t<s||s==t?(e[a+1]=r+1,u=!0):t<=n&&r+1>=s&&(e[a]=t,e[a+1]=r+1,u=!0)}a+=2}return u||e.push(t,r+1),e},j=function(e,t){var r=0,n=e.length,s=e[r],a=e[n-1];if(n>=2&&(t<s||t>a))return!1;for(;r<n;){if(s=e[r],a=e[r+1],t>=s&&t<a)return!0;r+=2}return!1},P=function(e){return!e.length},I=function(e){return 2==e.length&&e[0]+1==e[1]},F=function(e){for(var t,r,n=0,s=[],a=e.length;n<a;){for(t=e[n],r=e[n+1];t<r;)s.push(t),++t;n+=2}return s},k=Math.floor,O=function(e){return parseInt(k((e-65536)/1024)+u,10)},R=function(e){return parseInt((e-65536)%1024+c,10)},N=String.fromCharCode,B=function(e){return 9==e?"\\t":10==e?"\\n":12==e?"\\f":13==e?"\\r":45==e?"\\x2D":92==e?"\\\\":36==e||e>=40&&e<=43||46==e||47==e||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+N(e):e>=32&&e<=126?N(e):e<=255?"\\x"+b(E(e),2):"\\u"+b(E(e),4)},_=function(e){return e<=65535?B(e):"\\u{"+e.toString(16).toUpperCase()+"}"},L=function(e){var t,r=e.length,n=e.charCodeAt(0);return n>=u&&n<=l&&r>1?(t=e.charCodeAt(1),1024*(n-u)+t-c+65536):n},M=function(e){var t,r,n="",s=0,a=e.length;if(I(e))return B(e[0]);for(;s<a;)n+=(t=e[s])==(r=e[s+1]-1)?B(t):t+1==r?B(t)+B(r):B(t)+"-"+B(r),s+=2;return"["+n+"]"},U=function(e){if(1==e.length)return e;for(var t=-1,r=-1;++t<e.length;){var n=e[t],s=n[1],a=s[0],i=s[1];for(r=t;++r<e.length;){var o=e[r],u=o[1],l=u[0],c=u[1];a==l&&i==c&&2===u.length&&(I(o[0])?n[0]=w(n[0],o[0][0]):n[0]=T(n[0],o[0][0],o[0][1]-1),e.splice(r,1),--r)}}return e},G=function(e){if(!e.length)return[];for(var t,r,n,s,a,i,o=0,u=[],l=e.length;o<l;){t=e[o],r=e[o+1]-1,n=O(t),s=R(t),a=O(r);var d=(i=R(r))==p,f=!1;n==a||s==c&&d?(u.push([[n,a+1],[s,i+1]]),f=!0):u.push([[n,n+1],[s,57344]]),!f&&n+1<a&&(d?(u.push([[n+1,a+1],[c,i+1]]),f=!0):u.push([[n+1,a],[c,57344]])),f||u.push([[a,a+1],[c,i+1]]),o+=2}return function(e){for(var t,r,n,s,a,i,o=[],u=[],l=!1,c=-1,p=e.length;++c<p;)if(t=e[c],r=e[c+1]){for(n=t[0],s=t[1],a=r[0],i=r[1],u=s;a&&n[0]==a[0]&&n[1]==a[1];)u=I(i)?w(u,i[0]):T(u,i[0],i[1]-1),n=(t=e[++c])[0],s=t[1],a=(r=e[c+1])&&r[0],i=r&&r[1],l=!0;o.push([n,l?u:s]),l=!1}else o.push(t);return U(o)}(u)},V=function(e,t,r){if(r)return function(e){var t,r,n="",s=0,a=e.length;if(I(e))return _(e[0]);for(;s<a;)n+=(t=e[s])==(r=e[s+1]-1)?_(t):t+1==r?_(t)+_(r):_(t)+"-"+_(r),s+=2;return"["+n+"]"}(e);var n=[],s=function(e){for(var t,r,n=[],s=[],a=[],i=[],o=0,d=e.length;o<d;)t=e[o],r=e[o+1]-1,t<u?(r<u&&a.push(t,r+1),r>=u&&r<=l&&(a.push(t,u),n.push(u,r+1)),r>=c&&r<=p&&(a.push(t,u),n.push(u,56320),s.push(c,r+1)),r>p&&(a.push(t,u),n.push(u,56320),s.push(c,57344),r<=65535?a.push(57344,r+1):(a.push(57344,65536),i.push(65536,r+1)))):t>=u&&t<=l?(r>=u&&r<=l&&n.push(t,r+1),r>=c&&r<=p&&(n.push(t,56320),s.push(c,r+1)),r>p&&(n.push(t,56320),s.push(c,57344),r<=65535?a.push(57344,r+1):(a.push(57344,65536),i.push(65536,r+1)))):t>=c&&t<=p?(r>=c&&r<=p&&s.push(t,r+1),r>p&&(s.push(t,57344),r<=65535?a.push(57344,r+1):(a.push(57344,65536),i.push(65536,r+1)))):t>p&&t<=65535?r<=65535?a.push(t,r+1):(a.push(t,65536),i.push(65536,r+1)):i.push(t,r+1),o+=2;return{loneHighSurrogates:n,loneLowSurrogates:s,bmp:a,astral:i}}(e),a=s.loneHighSurrogates,i=s.loneLowSurrogates,o=s.bmp,d=s.astral,f=!P(a),h=!P(i),y=G(d);return t&&(o=C(o,a),f=!1,o=C(o,i),h=!1),P(o)||n.push(M(o)),y.length&&n.push(function(e){var t=[];return m(e,(function(e){var r=e[0],n=e[1];t.push(M(r)+M(n))})),t.join("|")}(y)),f&&n.push(M(a)+"(?![\\uDC00-\\uDFFF])"),h&&n.push("(?:[^\\uD800-\\uDBFF]|^)"+M(i)),n.join("|")},W=function e(t){return arguments.length>1&&(t=x.call(arguments)),this instanceof e?(this.data=[],t?this.add(t):this):(new e).add(t)};W.version="1.4.2";var H=W.prototype;!function(e,t){var r;for(r in t)h.call(t,r)&&(e[r]=t[r])}(H,{add:function(e){var t=this;return null==e?t:e instanceof W?(t.data=C(t.data,e.data),t):(arguments.length>1&&(e=x.call(arguments)),g(e)?(m(e,(function(e){t.add(e)})),t):(t.data=w(t.data,v(e)?e:L(e)),t))},remove:function(e){var t=this;return null==e?t:e instanceof W?(t.data=S(t.data,e.data),t):(arguments.length>1&&(e=x.call(arguments)),g(e)?(m(e,(function(e){t.remove(e)})),t):(t.data=D(t.data,v(e)?e:L(e)),t))},addRange:function(e,t){var r=this;return r.data=T(r.data,v(e)?e:L(e),v(t)?t:L(t)),r},removeRange:function(e,t){var r=this,n=v(e)?e:L(e),s=v(t)?t:L(t);return r.data=A(r.data,n,s),r},intersection:function(e){var t=this,r=e instanceof W?F(e.data):e;return t.data=function(e,t){for(var r,n=0,s=t.length,a=[];n<s;)r=t[n],j(e,r)&&a.push(r),++n;return function(e){for(var t,r=-1,n=e.length,s=n-1,a=[],i=!0,o=0;++r<n;)if(t=e[r],i)a.push(t),o=t,i=!1;else if(t==o+1){if(r!=s){o=t;continue}i=!0,a.push(t+1)}else a.push(o+1,t),o=t;return i||a.push(t+1),a}(a)}(t.data,r),t},contains:function(e){return j(this.data,v(e)?e:L(e))},clone:function(){var e=new W;return e.data=this.data.slice(0),e},toString:function(e){var t=V(this.data,!!e&&e.bmpOnly,!!e&&e.hasUnicodeFlag);return t?t.replace(d,"\\0$1"):"[]"},toRegExp:function(e){var t=this.toString(e&&-1!=e.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(t,e||"")},valueOf:function(){return F(this.data)}}),H.toArray=H.valueOf,n&&!n.nodeType?s?s.exports=W:n.regenerate=W:r.regenerate=W}($t)}),"/$$rollup_base$$/node_modules/regenerate"),nN=new Set(["General_Category","Script","Script_Extensions","Alphabetic","Any","ASCII","ASCII_Hex_Digit","Assigned","Bidi_Control","Bidi_Mirrored","Case_Ignorable","Cased","Changes_When_Casefolded","Changes_When_Casemapped","Changes_When_Lowercased","Changes_When_NFKC_Casefolded","Changes_When_Titlecased","Changes_When_Uppercased","Dash","Default_Ignorable_Code_Point","Deprecated","Diacritic","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extended_Pictographic","Extender","Grapheme_Base","Grapheme_Extend","Hex_Digit","ID_Continue","ID_Start","Ideographic","IDS_Binary_Operator","IDS_Trinary_Operator","Join_Control","Logical_Order_Exception","Lowercase","Math","Noncharacter_Code_Point","Pattern_Syntax","Pattern_White_Space","Quotation_Mark","Radical","Regional_Indicator","Sentence_Terminal","Soft_Dotted","Terminal_Punctuation","Unified_Ideograph","Uppercase","Variation_Selector","White_Space","XID_Continue","XID_Start"]),sN=new Map([["scx","Script_Extensions"],["sc","Script"],["gc","General_Category"],["AHex","ASCII_Hex_Digit"],["Alpha","Alphabetic"],["Bidi_C","Bidi_Control"],["Bidi_M","Bidi_Mirrored"],["Cased","Cased"],["CI","Case_Ignorable"],["CWCF","Changes_When_Casefolded"],["CWCM","Changes_When_Casemapped"],["CWKCF","Changes_When_NFKC_Casefolded"],["CWL","Changes_When_Lowercased"],["CWT","Changes_When_Titlecased"],["CWU","Changes_When_Uppercased"],["Dash","Dash"],["Dep","Deprecated"],["DI","Default_Ignorable_Code_Point"],["Dia","Diacritic"],["Ext","Extender"],["Gr_Base","Grapheme_Base"],["Gr_Ext","Grapheme_Extend"],["Hex","Hex_Digit"],["IDC","ID_Continue"],["Ideo","Ideographic"],["IDS","ID_Start"],["IDSB","IDS_Binary_Operator"],["IDST","IDS_Trinary_Operator"],["Join_C","Join_Control"],["LOE","Logical_Order_Exception"],["Lower","Lowercase"],["Math","Math"],["NChar","Noncharacter_Code_Point"],["Pat_Syn","Pattern_Syntax"],["Pat_WS","Pattern_White_Space"],["QMark","Quotation_Mark"],["Radical","Radical"],["RI","Regional_Indicator"],["SD","Soft_Dotted"],["STerm","Sentence_Terminal"],["Term","Terminal_Punctuation"],["UIdeo","Unified_Ideograph"],["Upper","Uppercase"],["VS","Variation_Selector"],["WSpace","White_Space"],["space","White_Space"],["XIDC","XID_Continue"],["XIDS","XID_Start"]]),aN=function(e){if(nN.has(e))return e;if(sN.has(e))return sN.get(e);throw new Error("Unknown property: "+e)},iN=new Map([["General_Category",new Map([["C","Other"],["Cc","Control"],["cntrl","Control"],["Cf","Format"],["Cn","Unassigned"],["Co","Private_Use"],["Cs","Surrogate"],["L","Letter"],["LC","Cased_Letter"],["Ll","Lowercase_Letter"],["Lm","Modifier_Letter"],["Lo","Other_Letter"],["Lt","Titlecase_Letter"],["Lu","Uppercase_Letter"],["M","Mark"],["Combining_Mark","Mark"],["Mc","Spacing_Mark"],["Me","Enclosing_Mark"],["Mn","Nonspacing_Mark"],["N","Number"],["Nd","Decimal_Number"],["digit","Decimal_Number"],["Nl","Letter_Number"],["No","Other_Number"],["P","Punctuation"],["punct","Punctuation"],["Pc","Connector_Punctuation"],["Pd","Dash_Punctuation"],["Pe","Close_Punctuation"],["Pf","Final_Punctuation"],["Pi","Initial_Punctuation"],["Po","Other_Punctuation"],["Ps","Open_Punctuation"],["S","Symbol"],["Sc","Currency_Symbol"],["Sk","Modifier_Symbol"],["Sm","Math_Symbol"],["So","Other_Symbol"],["Z","Separator"],["Zl","Line_Separator"],["Zp","Paragraph_Separator"],["Zs","Space_Separator"],["Other","Other"],["Control","Control"],["Format","Format"],["Unassigned","Unassigned"],["Private_Use","Private_Use"],["Surrogate","Surrogate"],["Letter","Letter"],["Cased_Letter","Cased_Letter"],["Lowercase_Letter","Lowercase_Letter"],["Modifier_Letter","Modifier_Letter"],["Other_Letter","Other_Letter"],["Titlecase_Letter","Titlecase_Letter"],["Uppercase_Letter","Uppercase_Letter"],["Mark","Mark"],["Spacing_Mark","Spacing_Mark"],["Enclosing_Mark","Enclosing_Mark"],["Nonspacing_Mark","Nonspacing_Mark"],["Number","Number"],["Decimal_Number","Decimal_Number"],["Letter_Number","Letter_Number"],["Other_Number","Other_Number"],["Punctuation","Punctuation"],["Connector_Punctuation","Connector_Punctuation"],["Dash_Punctuation","Dash_Punctuation"],["Close_Punctuation","Close_Punctuation"],["Final_Punctuation","Final_Punctuation"],["Initial_Punctuation","Initial_Punctuation"],["Other_Punctuation","Other_Punctuation"],["Open_Punctuation","Open_Punctuation"],["Symbol","Symbol"],["Currency_Symbol","Currency_Symbol"],["Modifier_Symbol","Modifier_Symbol"],["Math_Symbol","Math_Symbol"],["Other_Symbol","Other_Symbol"],["Separator","Separator"],["Line_Separator","Line_Separator"],["Paragraph_Separator","Paragraph_Separator"],["Space_Separator","Space_Separator"]])],["Script",new Map([["Adlm","Adlam"],["Aghb","Caucasian_Albanian"],["Ahom","Ahom"],["Arab","Arabic"],["Armi","Imperial_Aramaic"],["Armn","Armenian"],["Avst","Avestan"],["Bali","Balinese"],["Bamu","Bamum"],["Bass","Bassa_Vah"],["Batk","Batak"],["Beng","Bengali"],["Bhks","Bhaiksuki"],["Bopo","Bopomofo"],["Brah","Brahmi"],["Brai","Braille"],["Bugi","Buginese"],["Buhd","Buhid"],["Cakm","Chakma"],["Cans","Canadian_Aboriginal"],["Cari","Carian"],["Cham","Cham"],["Cher","Cherokee"],["Chrs","Chorasmian"],["Copt","Coptic"],["Qaac","Coptic"],["Cprt","Cypriot"],["Cyrl","Cyrillic"],["Deva","Devanagari"],["Diak","Dives_Akuru"],["Dogr","Dogra"],["Dsrt","Deseret"],["Dupl","Duployan"],["Egyp","Egyptian_Hieroglyphs"],["Elba","Elbasan"],["Elym","Elymaic"],["Ethi","Ethiopic"],["Geor","Georgian"],["Glag","Glagolitic"],["Gong","Gunjala_Gondi"],["Gonm","Masaram_Gondi"],["Goth","Gothic"],["Gran","Grantha"],["Grek","Greek"],["Gujr","Gujarati"],["Guru","Gurmukhi"],["Hang","Hangul"],["Hani","Han"],["Hano","Hanunoo"],["Hatr","Hatran"],["Hebr","Hebrew"],["Hira","Hiragana"],["Hluw","Anatolian_Hieroglyphs"],["Hmng","Pahawh_Hmong"],["Hmnp","Nyiakeng_Puachue_Hmong"],["Hrkt","Katakana_Or_Hiragana"],["Hung","Old_Hungarian"],["Ital","Old_Italic"],["Java","Javanese"],["Kali","Kayah_Li"],["Kana","Katakana"],["Khar","Kharoshthi"],["Khmr","Khmer"],["Khoj","Khojki"],["Kits","Khitan_Small_Script"],["Knda","Kannada"],["Kthi","Kaithi"],["Lana","Tai_Tham"],["Laoo","Lao"],["Latn","Latin"],["Lepc","Lepcha"],["Limb","Limbu"],["Lina","Linear_A"],["Linb","Linear_B"],["Lisu","Lisu"],["Lyci","Lycian"],["Lydi","Lydian"],["Mahj","Mahajani"],["Maka","Makasar"],["Mand","Mandaic"],["Mani","Manichaean"],["Marc","Marchen"],["Medf","Medefaidrin"],["Mend","Mende_Kikakui"],["Merc","Meroitic_Cursive"],["Mero","Meroitic_Hieroglyphs"],["Mlym","Malayalam"],["Modi","Modi"],["Mong","Mongolian"],["Mroo","Mro"],["Mtei","Meetei_Mayek"],["Mult","Multani"],["Mymr","Myanmar"],["Nand","Nandinagari"],["Narb","Old_North_Arabian"],["Nbat","Nabataean"],["Newa","Newa"],["Nkoo","Nko"],["Nshu","Nushu"],["Ogam","Ogham"],["Olck","Ol_Chiki"],["Orkh","Old_Turkic"],["Orya","Oriya"],["Osge","Osage"],["Osma","Osmanya"],["Palm","Palmyrene"],["Pauc","Pau_Cin_Hau"],["Perm","Old_Permic"],["Phag","Phags_Pa"],["Phli","Inscriptional_Pahlavi"],["Phlp","Psalter_Pahlavi"],["Phnx","Phoenician"],["Plrd","Miao"],["Prti","Inscriptional_Parthian"],["Rjng","Rejang"],["Rohg","Hanifi_Rohingya"],["Runr","Runic"],["Samr","Samaritan"],["Sarb","Old_South_Arabian"],["Saur","Saurashtra"],["Sgnw","SignWriting"],["Shaw","Shavian"],["Shrd","Sharada"],["Sidd","Siddham"],["Sind","Khudawadi"],["Sinh","Sinhala"],["Sogd","Sogdian"],["Sogo","Old_Sogdian"],["Sora","Sora_Sompeng"],["Soyo","Soyombo"],["Sund","Sundanese"],["Sylo","Syloti_Nagri"],["Syrc","Syriac"],["Tagb","Tagbanwa"],["Takr","Takri"],["Tale","Tai_Le"],["Talu","New_Tai_Lue"],["Taml","Tamil"],["Tang","Tangut"],["Tavt","Tai_Viet"],["Telu","Telugu"],["Tfng","Tifinagh"],["Tglg","Tagalog"],["Thaa","Thaana"],["Thai","Thai"],["Tibt","Tibetan"],["Tirh","Tirhuta"],["Ugar","Ugaritic"],["Vaii","Vai"],["Wara","Warang_Citi"],["Wcho","Wancho"],["Xpeo","Old_Persian"],["Xsux","Cuneiform"],["Yezi","Yezidi"],["Yiii","Yi"],["Zanb","Zanabazar_Square"],["Zinh","Inherited"],["Qaai","Inherited"],["Zyyy","Common"],["Zzzz","Unknown"],["Adlam","Adlam"],["Caucasian_Albanian","Caucasian_Albanian"],["Arabic","Arabic"],["Imperial_Aramaic","Imperial_Aramaic"],["Armenian","Armenian"],["Avestan","Avestan"],["Balinese","Balinese"],["Bamum","Bamum"],["Bassa_Vah","Bassa_Vah"],["Batak","Batak"],["Bengali","Bengali"],["Bhaiksuki","Bhaiksuki"],["Bopomofo","Bopomofo"],["Brahmi","Brahmi"],["Braille","Braille"],["Buginese","Buginese"],["Buhid","Buhid"],["Chakma","Chakma"],["Canadian_Aboriginal","Canadian_Aboriginal"],["Carian","Carian"],["Cherokee","Cherokee"],["Chorasmian","Chorasmian"],["Coptic","Coptic"],["Cypriot","Cypriot"],["Cyrillic","Cyrillic"],["Devanagari","Devanagari"],["Dives_Akuru","Dives_Akuru"],["Dogra","Dogra"],["Deseret","Deseret"],["Duployan","Duployan"],["Egyptian_Hieroglyphs","Egyptian_Hieroglyphs"],["Elbasan","Elbasan"],["Elymaic","Elymaic"],["Ethiopic","Ethiopic"],["Georgian","Georgian"],["Glagolitic","Glagolitic"],["Gunjala_Gondi","Gunjala_Gondi"],["Masaram_Gondi","Masaram_Gondi"],["Gothic","Gothic"],["Grantha","Grantha"],["Greek","Greek"],["Gujarati","Gujarati"],["Gurmukhi","Gurmukhi"],["Hangul","Hangul"],["Han","Han"],["Hanunoo","Hanunoo"],["Hatran","Hatran"],["Hebrew","Hebrew"],["Hiragana","Hiragana"],["Anatolian_Hieroglyphs","Anatolian_Hieroglyphs"],["Pahawh_Hmong","Pahawh_Hmong"],["Nyiakeng_Puachue_Hmong","Nyiakeng_Puachue_Hmong"],["Katakana_Or_Hiragana","Katakana_Or_Hiragana"],["Old_Hungarian","Old_Hungarian"],["Old_Italic","Old_Italic"],["Javanese","Javanese"],["Kayah_Li","Kayah_Li"],["Katakana","Katakana"],["Kharoshthi","Kharoshthi"],["Khmer","Khmer"],["Khojki","Khojki"],["Khitan_Small_Script","Khitan_Small_Script"],["Kannada","Kannada"],["Kaithi","Kaithi"],["Tai_Tham","Tai_Tham"],["Lao","Lao"],["Latin","Latin"],["Lepcha","Lepcha"],["Limbu","Limbu"],["Linear_A","Linear_A"],["Linear_B","Linear_B"],["Lycian","Lycian"],["Lydian","Lydian"],["Mahajani","Mahajani"],["Makasar","Makasar"],["Mandaic","Mandaic"],["Manichaean","Manichaean"],["Marchen","Marchen"],["Medefaidrin","Medefaidrin"],["Mende_Kikakui","Mende_Kikakui"],["Meroitic_Cursive","Meroitic_Cursive"],["Meroitic_Hieroglyphs","Meroitic_Hieroglyphs"],["Malayalam","Malayalam"],["Mongolian","Mongolian"],["Mro","Mro"],["Meetei_Mayek","Meetei_Mayek"],["Multani","Multani"],["Myanmar","Myanmar"],["Nandinagari","Nandinagari"],["Old_North_Arabian","Old_North_Arabian"],["Nabataean","Nabataean"],["Nko","Nko"],["Nushu","Nushu"],["Ogham","Ogham"],["Ol_Chiki","Ol_Chiki"],["Old_Turkic","Old_Turkic"],["Oriya","Oriya"],["Osage","Osage"],["Osmanya","Osmanya"],["Palmyrene","Palmyrene"],["Pau_Cin_Hau","Pau_Cin_Hau"],["Old_Permic","Old_Permic"],["Phags_Pa","Phags_Pa"],["Inscriptional_Pahlavi","Inscriptional_Pahlavi"],["Psalter_Pahlavi","Psalter_Pahlavi"],["Phoenician","Phoenician"],["Miao","Miao"],["Inscriptional_Parthian","Inscriptional_Parthian"],["Rejang","Rejang"],["Hanifi_Rohingya","Hanifi_Rohingya"],["Runic","Runic"],["Samaritan","Samaritan"],["Old_South_Arabian","Old_South_Arabian"],["Saurashtra","Saurashtra"],["SignWriting","SignWriting"],["Shavian","Shavian"],["Sharada","Sharada"],["Siddham","Siddham"],["Khudawadi","Khudawadi"],["Sinhala","Sinhala"],["Sogdian","Sogdian"],["Old_Sogdian","Old_Sogdian"],["Sora_Sompeng","Sora_Sompeng"],["Soyombo","Soyombo"],["Sundanese","Sundanese"],["Syloti_Nagri","Syloti_Nagri"],["Syriac","Syriac"],["Tagbanwa","Tagbanwa"],["Takri","Takri"],["Tai_Le","Tai_Le"],["New_Tai_Lue","New_Tai_Lue"],["Tamil","Tamil"],["Tangut","Tangut"],["Tai_Viet","Tai_Viet"],["Telugu","Telugu"],["Tifinagh","Tifinagh"],["Tagalog","Tagalog"],["Thaana","Thaana"],["Tibetan","Tibetan"],["Tirhuta","Tirhuta"],["Ugaritic","Ugaritic"],["Vai","Vai"],["Warang_Citi","Warang_Citi"],["Wancho","Wancho"],["Old_Persian","Old_Persian"],["Cuneiform","Cuneiform"],["Yezidi","Yezidi"],["Yi","Yi"],["Zanabazar_Square","Zanabazar_Square"],["Inherited","Inherited"],["Common","Common"],["Unknown","Unknown"]])],["Script_Extensions",new Map([["Adlm","Adlam"],["Aghb","Caucasian_Albanian"],["Ahom","Ahom"],["Arab","Arabic"],["Armi","Imperial_Aramaic"],["Armn","Armenian"],["Avst","Avestan"],["Bali","Balinese"],["Bamu","Bamum"],["Bass","Bassa_Vah"],["Batk","Batak"],["Beng","Bengali"],["Bhks","Bhaiksuki"],["Bopo","Bopomofo"],["Brah","Brahmi"],["Brai","Braille"],["Bugi","Buginese"],["Buhd","Buhid"],["Cakm","Chakma"],["Cans","Canadian_Aboriginal"],["Cari","Carian"],["Cham","Cham"],["Cher","Cherokee"],["Chrs","Chorasmian"],["Copt","Coptic"],["Qaac","Coptic"],["Cprt","Cypriot"],["Cyrl","Cyrillic"],["Deva","Devanagari"],["Diak","Dives_Akuru"],["Dogr","Dogra"],["Dsrt","Deseret"],["Dupl","Duployan"],["Egyp","Egyptian_Hieroglyphs"],["Elba","Elbasan"],["Elym","Elymaic"],["Ethi","Ethiopic"],["Geor","Georgian"],["Glag","Glagolitic"],["Gong","Gunjala_Gondi"],["Gonm","Masaram_Gondi"],["Goth","Gothic"],["Gran","Grantha"],["Grek","Greek"],["Gujr","Gujarati"],["Guru","Gurmukhi"],["Hang","Hangul"],["Hani","Han"],["Hano","Hanunoo"],["Hatr","Hatran"],["Hebr","Hebrew"],["Hira","Hiragana"],["Hluw","Anatolian_Hieroglyphs"],["Hmng","Pahawh_Hmong"],["Hmnp","Nyiakeng_Puachue_Hmong"],["Hrkt","Katakana_Or_Hiragana"],["Hung","Old_Hungarian"],["Ital","Old_Italic"],["Java","Javanese"],["Kali","Kayah_Li"],["Kana","Katakana"],["Khar","Kharoshthi"],["Khmr","Khmer"],["Khoj","Khojki"],["Kits","Khitan_Small_Script"],["Knda","Kannada"],["Kthi","Kaithi"],["Lana","Tai_Tham"],["Laoo","Lao"],["Latn","Latin"],["Lepc","Lepcha"],["Limb","Limbu"],["Lina","Linear_A"],["Linb","Linear_B"],["Lisu","Lisu"],["Lyci","Lycian"],["Lydi","Lydian"],["Mahj","Mahajani"],["Maka","Makasar"],["Mand","Mandaic"],["Mani","Manichaean"],["Marc","Marchen"],["Medf","Medefaidrin"],["Mend","Mende_Kikakui"],["Merc","Meroitic_Cursive"],["Mero","Meroitic_Hieroglyphs"],["Mlym","Malayalam"],["Modi","Modi"],["Mong","Mongolian"],["Mroo","Mro"],["Mtei","Meetei_Mayek"],["Mult","Multani"],["Mymr","Myanmar"],["Nand","Nandinagari"],["Narb","Old_North_Arabian"],["Nbat","Nabataean"],["Newa","Newa"],["Nkoo","Nko"],["Nshu","Nushu"],["Ogam","Ogham"],["Olck","Ol_Chiki"],["Orkh","Old_Turkic"],["Orya","Oriya"],["Osge","Osage"],["Osma","Osmanya"],["Palm","Palmyrene"],["Pauc","Pau_Cin_Hau"],["Perm","Old_Permic"],["Phag","Phags_Pa"],["Phli","Inscriptional_Pahlavi"],["Phlp","Psalter_Pahlavi"],["Phnx","Phoenician"],["Plrd","Miao"],["Prti","Inscriptional_Parthian"],["Rjng","Rejang"],["Rohg","Hanifi_Rohingya"],["Runr","Runic"],["Samr","Samaritan"],["Sarb","Old_South_Arabian"],["Saur","Saurashtra"],["Sgnw","SignWriting"],["Shaw","Shavian"],["Shrd","Sharada"],["Sidd","Siddham"],["Sind","Khudawadi"],["Sinh","Sinhala"],["Sogd","Sogdian"],["Sogo","Old_Sogdian"],["Sora","Sora_Sompeng"],["Soyo","Soyombo"],["Sund","Sundanese"],["Sylo","Syloti_Nagri"],["Syrc","Syriac"],["Tagb","Tagbanwa"],["Takr","Takri"],["Tale","Tai_Le"],["Talu","New_Tai_Lue"],["Taml","Tamil"],["Tang","Tangut"],["Tavt","Tai_Viet"],["Telu","Telugu"],["Tfng","Tifinagh"],["Tglg","Tagalog"],["Thaa","Thaana"],["Thai","Thai"],["Tibt","Tibetan"],["Tirh","Tirhuta"],["Ugar","Ugaritic"],["Vaii","Vai"],["Wara","Warang_Citi"],["Wcho","Wancho"],["Xpeo","Old_Persian"],["Xsux","Cuneiform"],["Yezi","Yezidi"],["Yiii","Yi"],["Zanb","Zanabazar_Square"],["Zinh","Inherited"],["Qaai","Inherited"],["Zyyy","Common"],["Zzzz","Unknown"],["Adlam","Adlam"],["Caucasian_Albanian","Caucasian_Albanian"],["Arabic","Arabic"],["Imperial_Aramaic","Imperial_Aramaic"],["Armenian","Armenian"],["Avestan","Avestan"],["Balinese","Balinese"],["Bamum","Bamum"],["Bassa_Vah","Bassa_Vah"],["Batak","Batak"],["Bengali","Bengali"],["Bhaiksuki","Bhaiksuki"],["Bopomofo","Bopomofo"],["Brahmi","Brahmi"],["Braille","Braille"],["Buginese","Buginese"],["Buhid","Buhid"],["Chakma","Chakma"],["Canadian_Aboriginal","Canadian_Aboriginal"],["Carian","Carian"],["Cherokee","Cherokee"],["Chorasmian","Chorasmian"],["Coptic","Coptic"],["Cypriot","Cypriot"],["Cyrillic","Cyrillic"],["Devanagari","Devanagari"],["Dives_Akuru","Dives_Akuru"],["Dogra","Dogra"],["Deseret","Deseret"],["Duployan","Duployan"],["Egyptian_Hieroglyphs","Egyptian_Hieroglyphs"],["Elbasan","Elbasan"],["Elymaic","Elymaic"],["Ethiopic","Ethiopic"],["Georgian","Georgian"],["Glagolitic","Glagolitic"],["Gunjala_Gondi","Gunjala_Gondi"],["Masaram_Gondi","Masaram_Gondi"],["Gothic","Gothic"],["Grantha","Grantha"],["Greek","Greek"],["Gujarati","Gujarati"],["Gurmukhi","Gurmukhi"],["Hangul","Hangul"],["Han","Han"],["Hanunoo","Hanunoo"],["Hatran","Hatran"],["Hebrew","Hebrew"],["Hiragana","Hiragana"],["Anatolian_Hieroglyphs","Anatolian_Hieroglyphs"],["Pahawh_Hmong","Pahawh_Hmong"],["Nyiakeng_Puachue_Hmong","Nyiakeng_Puachue_Hmong"],["Katakana_Or_Hiragana","Katakana_Or_Hiragana"],["Old_Hungarian","Old_Hungarian"],["Old_Italic","Old_Italic"],["Javanese","Javanese"],["Kayah_Li","Kayah_Li"],["Katakana","Katakana"],["Kharoshthi","Kharoshthi"],["Khmer","Khmer"],["Khojki","Khojki"],["Khitan_Small_Script","Khitan_Small_Script"],["Kannada","Kannada"],["Kaithi","Kaithi"],["Tai_Tham","Tai_Tham"],["Lao","Lao"],["Latin","Latin"],["Lepcha","Lepcha"],["Limbu","Limbu"],["Linear_A","Linear_A"],["Linear_B","Linear_B"],["Lycian","Lycian"],["Lydian","Lydian"],["Mahajani","Mahajani"],["Makasar","Makasar"],["Mandaic","Mandaic"],["Manichaean","Manichaean"],["Marchen","Marchen"],["Medefaidrin","Medefaidrin"],["Mende_Kikakui","Mende_Kikakui"],["Meroitic_Cursive","Meroitic_Cursive"],["Meroitic_Hieroglyphs","Meroitic_Hieroglyphs"],["Malayalam","Malayalam"],["Mongolian","Mongolian"],["Mro","Mro"],["Meetei_Mayek","Meetei_Mayek"],["Multani","Multani"],["Myanmar","Myanmar"],["Nandinagari","Nandinagari"],["Old_North_Arabian","Old_North_Arabian"],["Nabataean","Nabataean"],["Nko","Nko"],["Nushu","Nushu"],["Ogham","Ogham"],["Ol_Chiki","Ol_Chiki"],["Old_Turkic","Old_Turkic"],["Oriya","Oriya"],["Osage","Osage"],["Osmanya","Osmanya"],["Palmyrene","Palmyrene"],["Pau_Cin_Hau","Pau_Cin_Hau"],["Old_Permic","Old_Permic"],["Phags_Pa","Phags_Pa"],["Inscriptional_Pahlavi","Inscriptional_Pahlavi"],["Psalter_Pahlavi","Psalter_Pahlavi"],["Phoenician","Phoenician"],["Miao","Miao"],["Inscriptional_Parthian","Inscriptional_Parthian"],["Rejang","Rejang"],["Hanifi_Rohingya","Hanifi_Rohingya"],["Runic","Runic"],["Samaritan","Samaritan"],["Old_South_Arabian","Old_South_Arabian"],["Saurashtra","Saurashtra"],["SignWriting","SignWriting"],["Shavian","Shavian"],["Sharada","Sharada"],["Siddham","Siddham"],["Khudawadi","Khudawadi"],["Sinhala","Sinhala"],["Sogdian","Sogdian"],["Old_Sogdian","Old_Sogdian"],["Sora_Sompeng","Sora_Sompeng"],["Soyombo","Soyombo"],["Sundanese","Sundanese"],["Syloti_Nagri","Syloti_Nagri"],["Syriac","Syriac"],["Tagbanwa","Tagbanwa"],["Takri","Takri"],["Tai_Le","Tai_Le"],["New_Tai_Lue","New_Tai_Lue"],["Tamil","Tamil"],["Tangut","Tangut"],["Tai_Viet","Tai_Viet"],["Telugu","Telugu"],["Tifinagh","Tifinagh"],["Tagalog","Tagalog"],["Thaana","Thaana"],["Tibetan","Tibetan"],["Tirhuta","Tirhuta"],["Ugaritic","Ugaritic"],["Vai","Vai"],["Warang_Citi","Warang_Citi"],["Wancho","Wancho"],["Old_Persian","Old_Persian"],["Cuneiform","Cuneiform"],["Yezidi","Yezidi"],["Yi","Yi"],["Zanabazar_Square","Zanabazar_Square"],["Inherited","Inherited"],["Common","Common"],["Unknown","Unknown"]])]]),oN=function(e,t){var r=iN.get(e);if(!r)throw new Error("Unknown property `"+e+"`.");var n=r.get(t);if(n)return n;throw new Error("Unknown value `"+t+"` for property `"+e+"`.")},uN=new Map([[75,8490],[83,383],[107,8490],[115,383],[181,924],[197,8491],[223,7838],[229,8491],[383,83],[452,453],[453,452],[455,456],[456,455],[458,459],[459,458],[497,498],[498,497],[837,8126],[914,976],[917,1013],[920,1012],[921,8126],[922,1008],[924,181],[928,982],[929,1009],[931,962],[934,981],[937,8486],[952,1012],[962,931],[969,8486],[976,914],[977,1012],[981,934],[982,928],[1008,922],[1009,929],[1012,[920,977,952]],[1013,917],[1042,7296],[1044,7297],[1054,7298],[1057,7299],[1058,7301],[1066,7302],[1122,7303],[7296,1042],[7297,1044],[7298,1054],[7299,1057],[7300,7301],[7301,[1058,7300]],[7302,1066],[7303,1122],[7304,42570],[7776,7835],[7835,7776],[7838,223],[8064,8072],[8065,8073],[8066,8074],[8067,8075],[8068,8076],[8069,8077],[8070,8078],[8071,8079],[8072,8064],[8073,8065],[8074,8066],[8075,8067],[8076,8068],[8077,8069],[8078,8070],[8079,8071],[8080,8088],[8081,8089],[8082,8090],[8083,8091],[8084,8092],[8085,8093],[8086,8094],[8087,8095],[8088,8080],[8089,8081],[8090,8082],[8091,8083],[8092,8084],[8093,8085],[8094,8086],[8095,8087],[8096,8104],[8097,8105],[8098,8106],[8099,8107],[8100,8108],[8101,8109],[8102,8110],[8103,8111],[8104,8096],[8105,8097],[8106,8098],[8107,8099],[8108,8100],[8109,8101],[8110,8102],[8111,8103],[8115,8124],[8124,8115],[8126,[837,921]],[8131,8140],[8140,8131],[8179,8188],[8188,8179],[8486,[937,969]],[8490,75],[8491,[197,229]],[42570,7304],[66560,66600],[66561,66601],[66562,66602],[66563,66603],[66564,66604],[66565,66605],[66566,66606],[66567,66607],[66568,66608],[66569,66609],[66570,66610],[66571,66611],[66572,66612],[66573,66613],[66574,66614],[66575,66615],[66576,66616],[66577,66617],[66578,66618],[66579,66619],[66580,66620],[66581,66621],[66582,66622],[66583,66623],[66584,66624],[66585,66625],[66586,66626],[66587,66627],[66588,66628],[66589,66629],[66590,66630],[66591,66631],[66592,66632],[66593,66633],[66594,66634],[66595,66635],[66596,66636],[66597,66637],[66598,66638],[66599,66639],[66600,66560],[66601,66561],[66602,66562],[66603,66563],[66604,66564],[66605,66565],[66606,66566],[66607,66567],[66608,66568],[66609,66569],[66610,66570],[66611,66571],[66612,66572],[66613,66573],[66614,66574],[66615,66575],[66616,66576],[66617,66577],[66618,66578],[66619,66579],[66620,66580],[66621,66581],[66622,66582],[66623,66583],[66624,66584],[66625,66585],[66626,66586],[66627,66587],[66628,66588],[66629,66589],[66630,66590],[66631,66591],[66632,66592],[66633,66593],[66634,66594],[66635,66595],[66636,66596],[66637,66597],[66638,66598],[66639,66599],[66736,66776],[66737,66777],[66738,66778],[66739,66779],[66740,66780],[66741,66781],[66742,66782],[66743,66783],[66744,66784],[66745,66785],[66746,66786],[66747,66787],[66748,66788],[66749,66789],[66750,66790],[66751,66791],[66752,66792],[66753,66793],[66754,66794],[66755,66795],[66756,66796],[66757,66797],[66758,66798],[66759,66799],[66760,66800],[66761,66801],[66762,66802],[66763,66803],[66764,66804],[66765,66805],[66766,66806],[66767,66807],[66768,66808],[66769,66809],[66770,66810],[66771,66811],[66776,66736],[66777,66737],[66778,66738],[66779,66739],[66780,66740],[66781,66741],[66782,66742],[66783,66743],[66784,66744],[66785,66745],[66786,66746],[66787,66747],[66788,66748],[66789,66749],[66790,66750],[66791,66751],[66792,66752],[66793,66753],[66794,66754],[66795,66755],[66796,66756],[66797,66757],[66798,66758],[66799,66759],[66800,66760],[66801,66761],[66802,66762],[66803,66763],[66804,66764],[66805,66765],[66806,66766],[66807,66767],[66808,66768],[66809,66769],[66810,66770],[66811,66771],[68736,68800],[68737,68801],[68738,68802],[68739,68803],[68740,68804],[68741,68805],[68742,68806],[68743,68807],[68744,68808],[68745,68809],[68746,68810],[68747,68811],[68748,68812],[68749,68813],[68750,68814],[68751,68815],[68752,68816],[68753,68817],[68754,68818],[68755,68819],[68756,68820],[68757,68821],[68758,68822],[68759,68823],[68760,68824],[68761,68825],[68762,68826],[68763,68827],[68764,68828],[68765,68829],[68766,68830],[68767,68831],[68768,68832],[68769,68833],[68770,68834],[68771,68835],[68772,68836],[68773,68837],[68774,68838],[68775,68839],[68776,68840],[68777,68841],[68778,68842],[68779,68843],[68780,68844],[68781,68845],[68782,68846],[68783,68847],[68784,68848],[68785,68849],[68786,68850],[68800,68736],[68801,68737],[68802,68738],[68803,68739],[68804,68740],[68805,68741],[68806,68742],[68807,68743],[68808,68744],[68809,68745],[68810,68746],[68811,68747],[68812,68748],[68813,68749],[68814,68750],[68815,68751],[68816,68752],[68817,68753],[68818,68754],[68819,68755],[68820,68756],[68821,68757],[68822,68758],[68823,68759],[68824,68760],[68825,68761],[68826,68762],[68827,68763],[68828,68764],[68829,68765],[68830,68766],[68831,68767],[68832,68768],[68833,68769],[68834,68770],[68835,68771],[68836,68772],[68837,68773],[68838,68774],[68839,68775],[68840,68776],[68841,68777],[68842,68778],[68843,68779],[68844,68780],[68845,68781],[68846,68782],[68847,68783],[68848,68784],[68849,68785],[68850,68786],[71840,71872],[71841,71873],[71842,71874],[71843,71875],[71844,71876],[71845,71877],[71846,71878],[71847,71879],[71848,71880],[71849,71881],[71850,71882],[71851,71883],[71852,71884],[71853,71885],[71854,71886],[71855,71887],[71856,71888],[71857,71889],[71858,71890],[71859,71891],[71860,71892],[71861,71893],[71862,71894],[71863,71895],[71864,71896],[71865,71897],[71866,71898],[71867,71899],[71868,71900],[71869,71901],[71870,71902],[71871,71903],[71872,71840],[71873,71841],[71874,71842],[71875,71843],[71876,71844],[71877,71845],[71878,71846],[71879,71847],[71880,71848],[71881,71849],[71882,71850],[71883,71851],[71884,71852],[71885,71853],[71886,71854],[71887,71855],[71888,71856],[71889,71857],[71890,71858],[71891,71859],[71892,71860],[71893,71861],[71894,71862],[71895,71863],[71896,71864],[71897,71865],[71898,71866],[71899,71867],[71900,71868],[71901,71869],[71902,71870],[71903,71871],[93760,93792],[93761,93793],[93762,93794],[93763,93795],[93764,93796],[93765,93797],[93766,93798],[93767,93799],[93768,93800],[93769,93801],[93770,93802],[93771,93803],[93772,93804],[93773,93805],[93774,93806],[93775,93807],[93776,93808],[93777,93809],[93778,93810],[93779,93811],[93780,93812],[93781,93813],[93782,93814],[93783,93815],[93784,93816],[93785,93817],[93786,93818],[93787,93819],[93788,93820],[93789,93821],[93790,93822],[93791,93823],[93792,93760],[93793,93761],[93794,93762],[93795,93763],[93796,93764],[93797,93765],[93798,93766],[93799,93767],[93800,93768],[93801,93769],[93802,93770],[93803,93771],[93804,93772],[93805,93773],[93806,93774],[93807,93775],[93808,93776],[93809,93777],[93810,93778],[93811,93779],[93812,93780],[93813,93781],[93814,93782],[93815,93783],[93816,93784],[93817,93785],[93818,93786],[93819,93787],[93820,93788],[93821,93789],[93822,93790],[93823,93791],[125184,125218],[125185,125219],[125186,125220],[125187,125221],[125188,125222],[125189,125223],[125190,125224],[125191,125225],[125192,125226],[125193,125227],[125194,125228],[125195,125229],[125196,125230],[125197,125231],[125198,125232],[125199,125233],[125200,125234],[125201,125235],[125202,125236],[125203,125237],[125204,125238],[125205,125239],[125206,125240],[125207,125241],[125208,125242],[125209,125243],[125210,125244],[125211,125245],[125212,125246],[125213,125247],[125214,125248],[125215,125249],[125216,125250],[125217,125251],[125218,125184],[125219,125185],[125220,125186],[125221,125187],[125222,125188],[125223,125189],[125224,125190],[125225,125191],[125226,125192],[125227,125193],[125228,125194],[125229,125195],[125230,125196],[125231,125197],[125232,125198],[125233,125199],[125234,125200],[125235,125201],[125236,125202],[125237,125203],[125238,125204],[125239,125205],[125240,125206],[125241,125207],[125242,125208],[125243,125209],[125244,125210],[125245,125211],[125246,125212],[125247,125213],[125248,125214],[125249,125215],[125250,125216],[125251,125217]]),lN={REGULAR:new Map([["d",rN().addRange(48,57)],["D",rN().addRange(0,47).addRange(58,65535)],["s",rN(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",rN().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,65535)],["w",rN(95).addRange(48,57).addRange(65,90).addRange(97,122)],["W",rN(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,65535)]]),UNICODE:new Map([["d",rN().addRange(48,57)],["D",rN().addRange(0,47).addRange(58,1114111)],["s",rN(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",rN().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111)],["w",rN(95).addRange(48,57).addRange(65,90).addRange(97,122)],["W",rN(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)]]),UNICODE_IGNORE_CASE:new Map([["d",rN().addRange(48,57)],["D",rN().addRange(0,47).addRange(58,1114111)],["s",rN(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",rN().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111)],["w",rN(95,383,8490).addRange(48,57).addRange(65,90).addRange(97,122)],["W",rN(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,382).addRange(384,8489).addRange(8491,1114111)]])},cN=eN.generate,pN=tN.parse,dN=rN().addRange(0,1114111);rN().addRange(0,65535);var fN=dN.clone().remove(10,13,8232,8233),hN=function(e,t,r){return t?r?lN.UNICODE_IGNORE_CASE.get(e):lN.UNICODE.get(e):lN.REGULAR.get(e)},mN=function(e,t){var r=t?e+"/"+t:"Binary_Property/"+e;try{return sr("regenerate-unicode-properties/"+r+".js","/$$rollup_base$$/node_modules/regexpu-core")}catch(r){throw new Error("Failed to recognize value `"+t+"` for property `"+e+"`.")}},yN=function(e,t){var r,n=e.split("="),s=n[0];if(1==n.length)r=function(e){try{var t="General_Category",r=oN(t,e);return mN(t,r)}catch(e){}var n=aN(e);return mN(n)}(s);else{var a=aN(s),i=oN(a,n[1]);r=mN(a,i)}return t?dN.clone().remove(r):r.clone()};rN.prototype.iuAddRange=function(e,t){do{var r=bN(e);r&&this.add(r)}while(++e<=t);return this};var gN=function(e,t){var r=pN(t,DN.useUnicodeFlag?"u":"");switch(r.type){case"characterClass":case"group":case"value":break;default:r=vN(r,t)}Object.assign(e,r)},vN=function(e,t){return{type:"group",behavior:"ignore",body:[e],raw:"(?:"+t+")"}},bN=function(e){return uN.get(e)||!1},EN=function(e,t){delete e.name,e.matchIndex=t},xN=function e(t,r,n){switch(t.type){case"dot":if(DN.useDotAllFlag)break;DN.unicode?gN(t,(p=DN.dotAll,p?dN:fN).toString(r)):DN.dotAll&&gN(t,"[\\s\\S]");break;case"characterClass":t=function(e,t){for(var r,n=rN(),s=f(e.body);!(r=s()).done;){var a=r.value;switch(a.type){case"value":if(n.add(a.codePoint),DN.ignoreCase&&DN.unicode&&!DN.useUnicodeFlag){var i=bN(a.codePoint);i&&n.add(i)}break;case"characterClassRange":var o=a.min.codePoint,u=a.max.codePoint;n.addRange(o,u),DN.ignoreCase&&DN.unicode&&!DN.useUnicodeFlag&&n.iuAddRange(o,u);break;case"characterClassEscape":n.add(hN(a.value,DN.unicode,DN.ignoreCase));break;case"unicodePropertyEscape":n.add(yN(a.value,a.negative));break;default:throw new Error("Unknown term type: "+a.type)}}return e.negative?gN(e,"(?!"+n.toString(t)+")[\\s\\S]"):gN(e,n.toString(t)),e}(t,r);break;case"unicodePropertyEscape":DN.unicodePropertyEscape&&gN(t,yN(t.value,t.negative).toString(r));break;case"characterClassEscape":gN(t,hN(t.value,DN.unicode,DN.ignoreCase).toString(r));break;case"group":if("normal"==t.behavior&&n.lastIndex++,t.name&&DN.namedGroup){var s=t.name.value;if(n.names[s])throw new Error("Multiple groups with the same name ("+s+") are not allowed.");var a=n.lastIndex;delete t.name,n.names[s]=a,n.onNamedGroup&&n.onNamedGroup.call(null,s,a),n.unmatchedReferences[s]&&(n.unmatchedReferences[s].forEach((function(e){EN(e,a)})),delete n.unmatchedReferences[s])}case"alternative":case"disjunction":case"quantifier":t.body=t.body.map((function(t){return e(t,r,n)}));break;case"value":var i=t.codePoint,o=rN(i);if(DN.ignoreCase&&DN.unicode&&!DN.useUnicodeFlag){var u=bN(i);u&&o.add(u)}gN(t,o.toString(r));break;case"reference":if(t.name){var l=t.name.value,c=n.names[l];if(c){EN(t,c);break}n.unmatchedReferences[l]||(n.unmatchedReferences[l]=[]),n.unmatchedReferences[l].push(t)}break;case"anchor":case"empty":case"group":break;default:throw new Error("Unknown term type: "+t.type)}var p;return t},DN={ignoreCase:!1,unicode:!1,dotAll:!1,useDotAllFlag:!1,useUnicodeFlag:!1,unicodePropertyEscape:!1,namedGroup:!1},AN=function(e,t,r){DN.unicode=t&&t.includes("u");var n={unicodePropertyEscape:DN.unicode,namedGroups:!0,lookbehind:r&&r.lookbehind};DN.ignoreCase=t&&t.includes("i");var s=r&&r.dotAllFlag;if(DN.dotAll=s&&t&&t.includes("s"),DN.namedGroup=r&&r.namedGroup,DN.useDotAllFlag=r&&r.useDotAllFlag,DN.useUnicodeFlag=r&&r.useUnicodeFlag,DN.unicodePropertyEscape=r&&r.unicodePropertyEscape,s&&DN.useDotAllFlag)throw new Error("`useDotAllFlag` and `dotAllFlag` cannot both be true!");var a={hasUnicodeFlag:DN.useUnicodeFlag,bmpOnly:!DN.unicode},i={onNamedGroup:r&&r.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},o=pN(e,t,n);return xN(o,a,i),function(e){var t=Object.keys(e.unmatchedReferences);if(t.length>0)throw new Error("Unknown group names: "+t)}(i),cN(o)},wN=Object.freeze({unicodeFlag:1,dotAllFlag:2,unicodePropertyEscape:4,namedCaptureGroups:8}),CN="@babel/plugin-regexp-features/featuresKey",SN="@babel/plugin-regexp-features/runtimeKey";function TN(e,t){return e|t}function jN(e,t){return!!(e&t)}function PN(e,t){e.flags=e.flags.replace(t,"")}var IN="7.14.5".split(".").reduce((function(e,t){return 1e5*e+ +t}),0),FN="@babel/plugin-regexp-features/version";function kN(e){var t=e.name,r=e.feature,n=e.options,s=void 0===n?{}:n;return{name:t,pre:function(){var e,t=this.file,n=null!=(e=t.get(CN))?e:0,a=TN(n,wN[r]),i=s.useUnicodeFlag,o=s.runtime,u=void 0===o||o;!1===i&&(a=TN(a,wN.unicodeFlag)),a!==n&&t.set(CN,a),u||t.set(SN,!1),(!t.has(FN)||t.get(FN)<IN)&&t.set(FN,IN)},visitor:{RegExpLiteral:function(e){var t,r=e.node,n=this.file,s=n.get(CN),a=null==(t=n.get(SN))||t,i=function(e,t){var r=!1,n=!1,s=!1,a=!1,i=e.flags,o=e.pattern,u=i.includes("u");return u&&(jN(t,wN.unicodeFlag)||(r=!0),jN(t,wN.unicodePropertyEscape)&&/\\[pP]{/.test(o)&&(s=!0)),jN(t,wN.dotAllFlag)&&i.indexOf("s")>=0&&(n=!0),jN(t,wN.namedCaptureGroups)&&/\(\?<(?![=!])/.test(o)&&(a=!0),a||s||n||u&&!r?(u&&i.indexOf("s")>=0&&(n=!0),{useUnicodeFlag:r,onNamedGroup:function(){},namedGroup:a,unicodePropertyEscape:s,dotAllFlag:n,lookbehind:!0}):null}(r,s);if(null!==i){var o={};if(i.namedGroup&&(i.onNamedGroup=function(e,t){o[e]=t}),r.pattern=AN(r.pattern,r.flags,i),i.namedGroup&&Object.keys(o).length>0&&a&&!function(e){return e.parentPath.isMemberExpression({object:e.node,computed:!1})&&e.parentPath.get("property").isIdentifier({name:"test"})}(e)){var u=ls(this.addHelper("wrapRegExp"),[r,mc(o)]);ak(u),e.replaceWith(u)}jN(s,wN.unicodeFlag)&&PN(r,"u"),jN(s,wN.dotAllFlag)&&PN(r,"s")}}}}}var ON,RN=SF((function(e,t){e.assertVersion(7);var r=t.useUnicodeFlag,n=void 0===r||r;if("boolean"!=typeof n)throw new Error(".useUnicodeFlag must be a boolean, or undefined");return kN({name:"proposal-unicode-property-regex",feature:"unicodePropertyEscape",options:{useUnicodeFlag:n}})})),NN=SF((function(e,t){e.assertVersion(7);var r=t.method,n=t.module,s=e.assumption("noNewArrows");return r&&n?{name:"transform-async-to-generator",visitor:{Function:function(e,t){if(e.node.async&&!e.node.generator){var a=t.methodWrapper;ok(e,{wrapAsync:a=a?Ju(a):t.methodWrapper=xE(e,r,n)},s)}}}}:{name:"transform-async-to-generator",visitor:{Function:function(e,t){e.node.async&&!e.node.generator&&ok(e,{wrapAsync:t.addHelper("asyncToGenerator")},s)}}}})),BN=SF((function(e,t){var r;e.assertVersion(7);var n=null!=(r=e.assumption("noNewArrows"))?r:!t.spec;return{name:"transform-arrow-functions",visitor:{ArrowFunctionExpression:function(e){e.isArrowFunctionExpression()&&e.arrowFunctionToExpression({allowInsertArrow:!1,noNewArrows:n,specCompliant:!n})}}}})),_N=SF((function(e){function t(e,t){for(var r,n=f(t.get(e));!(r=n()).done;){var s=r.value,a=s.node;if(s.isFunctionDeclaration()){var i=Ks("let",[zs(a.id,nc(a))]);i._blockHoist=2,a.id=null,s.replaceWith(i)}}}return e.assertVersion(7),{name:"transform-block-scoped-functions",visitor:{BlockStatement:function(e){var r=e.node,n=e.parent;St(n,{body:r})||Bt(n)||t("body",e)},SwitchCase:function(e){t("consequent",e)}}}}));function LN(e,t,r){var n=r.letReferences.get(e.name);return!!n&&t.getBindingIdentifier(e.name)===n}var MN=new WeakSet,UN={ReferencedIdentifier:function(e,t){if(t.tdzEnabled){var r=e.node,n=e.parent,s=e.scope;if(!e.parentPath.isFor({left:r})&&LN(r,s,t)){var a=s.getBinding(r.name).path;if(!a.isFunctionDeclaration()){var i=function(e,t){var r=t._guessExecutionStatusRelativeTo(e);return"before"===r?"outside":"after"===r?"inside":"maybe"}(e,a);if("outside"!==i)if("maybe"===i){if(MN.has(r))return;MN.add(r);var o=function(e,t){return ls(t.addHelper("temporalRef"),[e,Cs(e.name)])}(r,t);if(a.parent._tdzThis=!0,e.parentPath.isUpdateExpression()){if(n._ignoreBlockScopingTDZ)return;e.parentPath.replaceWith(Ms([o,n]))}else e.replaceWith(o)}else"inside"===i&&e.replaceWith(bg.ast(ON||(ON=u(["",'("','")'])),t.addHelper("tdz"),r.name))}}}},AssignmentExpression:{exit:function(e,t){if(t.tdzEnabled){var r=e.node;if(!r._ignoreBlockScopingTDZ){for(var n=[],s=e.getBindingIdentifiers(),a=0,i=Object.keys(s);a<i.length;a++){var o=s[i[a]];LN(o,e.scope,t)&&n.push(o)}n.length&&(r._ignoreBlockScopingTDZ=!0,n.push(r),e.replaceWithMultiple(n.map((function(e){return ys(e)}))))}}}}},GN=new WeakSet,VN=SF((function(e,t){e.assertVersion(7);var r=t.throwIfClosureRequired,n=void 0!==r&&r,s=t.tdz,a=void 0!==s&&s;if("boolean"!=typeof n)throw new Error(".throwIfClosureRequired must be a boolean, or undefined");if("boolean"!=typeof a)throw new Error(".tdz must be a boolean, or undefined");return{name:"transform-block-scoping",visitor:{VariableDeclaration:function(e){var t=e.node,r=e.parent,n=e.scope;if(HN(t)&&(qN(e,null,r,n,!0),t._tdzThis)){for(var s=[t],a=0;a<t.declarations.length;a++){var i=t.declarations[a],o=rs("=",Ju(i.id),i.init||n.buildUndefinedNode());o._ignoreBlockScopingTDZ=!0,s.push(ys(o)),i.init=this.addHelper("temporalUndefined")}t._blockHoist=2,e.isCompletionRecord()&&s.push(ys(n.buildUndefinedNode())),e.replaceWithMultiple(s)}},Loop:function(e,t){var r=e.parent,s=e.scope;e.ensureBlock();var i=new rB(e,e.get("body"),r,s,n,a,t).run();i&&e.replaceWith(i)},CatchClause:function(e,t){var r=e.parent,s=e.scope;new rB(null,e.get("body"),r,s,n,a,t).run()},"BlockStatement|SwitchStatement|Program":function(e,t){(function(e){return At(e.parent)||x(e.parent)})(e)||new rB(null,e,e.parent,e.scope,n,a,t).run()}}}}));var WN=bg('\n if (typeof RETURN === "object") return RETURN.v;\n');function HN(e){return!!Z(e)&&(!!e[$r]||("let"===e.kind||"const"===e.kind))}function XN(e){var t=e.find((function(e){return e.isLoop()||e.isFunction()}));return null==t?void 0:t.isLoop()}function qN(e,t,r,n,s){if(void 0===s&&(s=!1),t||(t=e.node),XN(e)&&!wt(r))for(var a=0;a<t.declarations.length;a++){var i=t.declarations[a];i.init=i.init||n.buildUndefinedNode()}if(t[$r]=!0,t.kind="var",s)for(var o=n.getFunctionParent()||n.getProgramParent(),u=0,l=Object.keys(e.getBindingIdentifiers());u<l.length;u++){var c=l[u],p=n.getOwnBinding(c);p&&(p.kind="var"),n.moveBindingTo(c,o)}}function $N(e){return Z(e,{kind:"var"})&&!HN(e)}var KN=gv.visitors.merge([{Loop:{enter:function(e,t){t.loopDepth++},exit:function(e,t){t.loopDepth--}},FunctionParent:function(e,t){return t.loopDepth>0?e.traverse(zN,t):e.traverse(UN,t),e.skip()}},UN]),zN=gv.visitors.merge([{ReferencedIdentifier:function(e,t){var r=t.letReferences.get(e.node.name);if(r){var n=e.scope.getBindingIdentifier(e.node.name);n&&n!==r||(t.closurify=!0)}}},UN]),JN={enter:function(e,t){var r=e.node;if(e.parent,e.isForStatement()){if($N(r.init)){var n=t.pushDeclar(r.init);1===n.length?r.init=n[0]:r.init=Ms(n)}}else if(e.isFor())$N(r.left)&&(t.pushDeclar(r.left),r.left=r.left.declarations[0].id);else if($N(r))e.replaceWithMultiple(t.pushDeclar(r).map((function(e){return ys(e)})));else if(e.isFunction())return e.skip()}},YN={LabeledStatement:function(e,t){var r=e.node;t.innerLabels.push(r.label.name)}},QN={enter:function(e,t){if(e.isAssignmentExpression()||e.isUpdateExpression())for(var r=0,n=Object.keys(e.getBindingIdentifiers());r<n.length;r++){var s=n[r];t.outsideReferences.get(s)===e.scope.getBindingIdentifier(s)&&(t.reassignments[s]=!0)}else e.isReturnStatement()&&t.returnStatements.push(e)}};var ZN={Loop:function(e,t){var r=t.ignoreLabeless;t.ignoreLabeless=!0,e.traverse(ZN,t),t.ignoreLabeless=r,e.skip()},Function:function(e){e.skip()},SwitchCase:function(e,t){var r=t.inSwitchCase;t.inSwitchCase=!0,e.traverse(ZN,t),t.inSwitchCase=r,e.skip()},"BreakStatement|ContinueStatement|ReturnStatement":function(e,t){var r=e.node,n=e.scope;if(!r[this.LOOP_IGNORE]){var s,a=function(e){return b(e)?"break":A(e)?"continue":void 0}(r);if(a){if(r.label){if(t.innerLabels.indexOf(r.label.name)>=0)return;a=a+"|"+r.label.name}else{if(t.ignoreLabeless)return;if(b(r)&&t.inSwitchCase)return}t.hasBreakContinue=!0,t.map[a]=r,s=Cs(a)}e.isReturnStatement()&&(t.hasReturn=!0,s=Rs([Bs(Ds("v"),r.argument||n.buildUndefinedNode())])),s&&((s=Ls(s))[this.LOOP_IGNORE]=!0,e.skip(),e.replaceWith(yc(s,r)))}}};function eB(e){return!!e.find((function(e){var t=e.node;if(G(t)){if("module"===t.sourceType)return!0}else if(!v(t))return!1;return t.directives.some((function(e){return"use strict"===e.value.value}))}))}var tB,rB=function(){function e(e,t,r,n,s,a,i){this.parent=r,this.scope=n,this.state=i,this.throwIfClosureRequired=s,this.tdzEnabled=a,this.blockPath=t,this.block=t.node,this.outsideLetReferences=new Map,this.hasLetReferences=!1,this.letReferences=new Map,this.body=[],e&&(this.loopParent=e.parent,this.loopLabel=O(this.loopParent)&&this.loopParent.label,this.loopPath=e,this.loop=e.node)}var t=e.prototype;return t.run=function(){var e=this.block;if(!GN.has(e)){GN.add(e);var t=this.getLetReferences();if(this.checkConstants(),St(this.parent)||G(this.block))this.updateScopeInfo();else if(this.hasLetReferences)return t?this.wrapClosure():this.remap(),this.updateScopeInfo(t),this.loopLabel&&!O(this.loopParent)?ws(this.loopLabel,this.loop):void 0}},t.checkConstants=function(){for(var e=this.scope,t=this.state,r=0,n=Object.keys(e.bindings);r<n.length;r++){var s=n[r],a=e.bindings[s];if("const"===a.kind)for(var i=0,o=a.constantViolations;i<o.length;i++){var u=o[i],l=ls(t.addHelper("readOnlyError"),[Cs(s)]);if(u.isAssignmentExpression()){var c=u.node.operator;"="===c?u.replaceWith(Ms([u.get("right").node,l])):["&&=","||=","??="].includes(c)?u.replaceWith(Is(c.slice(0,-1),u.get("left").node,Ms([u.get("right").node,l]))):u.replaceWith(Ms([ns(c.slice(0,-1),u.get("left").node,u.get("right").node),l]))}else u.isUpdateExpression()?u.replaceWith(Ms([qs("+",u.get("argument").node),l])):u.isForXStatement()&&(u.ensureBlock(),u.get("left").replaceWith(Ks("var",[zs(u.scope.generateUidIdentifier(s))])),u.node.body.body.unshift(ys(l)))}}},t.updateScopeInfo=function(e){for(var t,r=this.blockPath.scope,n=r.getFunctionParent()||r.getProgramParent(),s=this.letReferences,a=f(s.keys());!(t=a()).done;){var i=t.value,o=s.get(i),u=r.getBinding(o.name);u&&("let"!==u.kind&&"const"!==u.kind||(u.kind="var",e?r.hasOwnBinding(o.name)&&r.removeBinding(o.name):r.moveBindingTo(o.name,n)))}},t.remap=function(){for(var e,t=this.letReferences,r=this.outsideLetReferences,n=this.scope,s=this.blockPath.scope,a=f(t.keys());!(e=a()).done;){var i=e.value,o=t.get(i);if(n.parentHasBinding(i)||n.hasGlobal(i)){var u=n.getOwnBinding(i);if(u){var l=n.parent.getOwnBinding(i);if("hoisted"===u.kind&&!u.path.node.async&&!u.path.node.generator&&(!l||$N(l.path.parent))&&!eB(u.path.parentPath))continue;n.rename(o.name)}s.hasOwnBinding(i)&&s.rename(o.name)}}for(var c,p=f(r.keys());!(c=p()).done;){var d=c.value,h=t.get(d);XN(this.blockPath)&&s.hasOwnBinding(d)&&s.rename(h.name)}},t.wrapClosure=function(){if(this.throwIfClosureRequired)throw this.blockPath.buildCodeFrameError("Compiling let/const in this block would add a closure (throwIfClosureRequired).");var e=this.block,t=this.outsideLetReferences;if(this.loop)for(var r=0,n=Array.from(t.keys());r<n.length;r++){var s=n[r],a=t.get(s);(this.scope.hasGlobal(a.name)||this.scope.parentHasBinding(a.name))&&(t.delete(a.name),this.letReferences.delete(a.name),this.scope.rename(a.name),this.letReferences.set(a.name,a),t.set(a.name,a))}this.has=this.checkLoop(),this.hoistVarDeclarations();var i=Array.from(t.values(),(function(e){return Ju(e)})),o=i.map((function(e){return Ju(e)})),u=this.blockPath.isSwitchStatement(),l=xs(null,o,os(u?[e]:e.body));this.addContinuations(l);var c,p,d,f=ls(Ts(),i),h=".callee";if(gv.hasType(l.body,"YieldExpression",xl)&&(l.generator=!0,f=xa(f,!0),h=".argument"+h),gv.hasType(l.body,"AwaitExpression",xl)&&(l.async=!0,f=Da(f),h=".argument"+h),this.has.hasReturn||this.has.hasBreakContinue){var m=this.scope.generateUid("ret");this.body.push(Ks("var",[zs(Ds(m),f)])),c="declarations.0.init"+h,p=this.body.length-1,this.buildHas(m)}else this.body.push(ys(f)),c="expression"+h,p=this.body.length-1;if(u){var y=this.blockPath,g=y.parentPath,v=y.listKey,b=y.key;this.blockPath.replaceWithMultiple(this.body),d=g.get(v)[b+p]}else e.body=this.body,d=this.blockPath.get("body")[p];var E,x=d.get(c);if(this.loop){var D=this.scope.generateUid("loop"),A=this.loopPath.insertBefore(Ks("var",[zs(Ds(D),l)]));x.replaceWith(Ds(D)),E=A[0].get("declarations.0.init")}else x.replaceWith(l),E=x;E.unwrapFunctionEnvironment()},t.addContinuations=function(e){var t=this,r={reassignments:{},returnStatements:[],outsideReferences:this.outsideLetReferences};this.scope.traverse(e,QN,r);for(var n=function(n){var s=e.params[n];if(!r.reassignments[s.name])return"continue";var a=s.name,i=t.scope.generateUid(s.name);e.params[n]=Ds(i),t.scope.rename(a,i,e),r.returnStatements.forEach((function(e){e.insertBefore(ys(rs("=",Ds(a),Ds(i))))})),e.body.body.push(ys(rs("=",Ds(a),Ds(i))))},s=0;s<e.params.length;s++)n(s)},t.getLetReferences=function(){var e=this,t=this.block,r=[];if(this.loop){var n=this.loop.left||this.loop.init;if(HN(n)){r.push(n);for(var s=cc(n),a=0,i=Object.keys(s);a<i.length;a++){var o=i[a];this.outsideLetReferences.set(o,s[o])}}}var u=function n(s,a){if(oe(a=a||s.node)||P(a)||HN(a))if(HN(a)&&qN(s,a,t,e.scope),a.declarations)for(var i=0;i<a.declarations.length;i++)r.push(a.declarations[i]);else r.push(a);O(a)&&n(s.get("body"),a.body)};if(t.body)for(var l=this.blockPath.get("body"),c=0;c<t.body.length;c++)u(l[c]);if(t.cases)for(var p=this.blockPath.get("cases"),d=0;d<t.cases.length;d++)for(var f=t.cases[d].consequent,h=0;h<f.length;h++){var m=f[h];u(p[d],m)}for(var y=0;y<r.length;y++){for(var g=cc(r[y],!1,!0),v=0,b=Object.keys(g);v<b.length;v++){var E=b[v];this.letReferences.set(E,g[E])}this.hasLetReferences=!0}if(this.hasLetReferences){var x={letReferences:this.letReferences,closurify:!1,loopDepth:0,tdzEnabled:this.tdzEnabled,addHelper:function(t){return e.state.addHelper(t)}};return XN(this.blockPath)&&x.loopDepth++,this.blockPath.traverse(KN,x),x.closurify}},t.checkLoop=function(){var e={hasBreakContinue:!1,ignoreLabeless:!1,inSwitchCase:!1,innerLabels:[],hasReturn:!1,isLoop:!!this.loop,map:{},LOOP_IGNORE:Symbol()};return this.blockPath.traverse(YN,e),this.blockPath.traverse(ZN,e),e},t.hoistVarDeclarations=function(){this.blockPath.traverse(JN,this)},t.pushDeclar=function(e){for(var t=[],r=cc(e),n=0,s=Object.keys(r);n<s.length;n++){var a=s[n];t.push(zs(r[a]))}this.body.push(Ks(e.kind,t));for(var i=[],o=0;o<e.declarations.length;o++){var u=e.declarations[o];if(u.init){var l=rs("=",Ju(u.id),Ju(u.init));i.push(yc(l,u))}}return i},t.buildHas=function(e){var t=this.body,r=this.has;if(r.hasBreakContinue)for(var n=0,s=Object.keys(r.map);n<s.length;n++){var a=s[n];t.push(As(ns("===",Ds(e),Cs(a)),r.map[a]))}r.hasReturn&&t.push(WN({RETURN:Ds(e)}))},e}(),nB={builtin:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{_:!1,$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}},sB=new WeakMap;function aB(e){if(sB.has(e))return(Ju||Qu)(sB.get(e));try{return e.addHelper("createSuper")}catch(e){}var t=e.scope.generateUidIdentifier("createSuper");sB.set(e,t);var r=oB({CREATE_SUPER:t,GET_PROTOTYPE_OF:e.addHelper("getPrototypeOf"),POSSIBLE_CONSTRUCTOR_RETURN:e.addHelper("possibleConstructorReturn")});return e.path.unshiftContainer("body",[r]),e.scope.registerDeclaration(e.path.get("body.0")),Ju(t)}var iB,oB=bg.statement(tB||(tB=u(["\n function CREATE_SUPER(Derived) {\n function isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n\n // core-js@3\n if (Reflect.construct.sham) return false;\n\n // Proxy can't be polyfilled. Every browser implemented\n // proxies before or at the same time as Reflect.construct,\n // so if they support Proxy they also support Reflect.construct.\n if (typeof Proxy === \"function\") return true;\n\n // Since Reflect.construct can't be properly polyfilled, some\n // implementations (e.g. core-js@2) don't set the correct internal slots.\n // Those polyfills don't allow us to subclass built-ins, so we need to\n // use our fallback implementation.\n try {\n // If the internal slots aren't set, this throws an error similar to\n // TypeError: this is not a Date object.\n Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n\n return function () {\n var Super = GET_PROTOTYPE_OF(Derived), result;\n if (isNativeReflectConstruct()) {\n // NOTE: This doesn't work if this.__proto__.constructor has been modified.\n var NewTarget = GET_PROTOTYPE_OF(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return POSSIBLE_CONSTRUCTOR_RETURN(this, result);\n }\n }\n"])));function uB(e,t,r){var n=Es(Ju(e),[],t);return yc(n,r),n}function lB(e,t,r,n,s){var a={parent:void 0,scope:void 0,node:void 0,path:void 0,file:void 0,classId:void 0,classRef:void 0,superFnId:void 0,superName:void 0,superReturns:[],isDerived:!1,extendsNative:!1,construct:void 0,constructorBody:void 0,userConstructor:void 0,userConstructorPath:void 0,hasConstructor:!1,staticPropBody:[],body:[],superThises:[],pushedConstructor:!1,pushedInherits:!1,protoAlias:null,isLoose:!1,methods:{instance:{hasComputed:!1,list:[],map:new Map},static:{hasComputed:!1,list:[],map:new Map}}},i=function(e){Object.assign(a,e)},o=gv.visitors.merge([IE,{ThisExpression:function(e){a.superThises.push(e)}}]);function l(){if(function(){for(var e,t=!1,r=f(a.path.get("body.body"));!(e=r()).done&&!(t=e.value.equals("kind","constructor")););if(!t){var n,s;if(a.isDerived){var i=bg.expression.ast(iB||(iB=u(["\n (function () {\n super(...arguments);\n })\n "])));n=i.params,s=i.body}else n=[],s=os([]);a.path.get("body").unshiftContainer("body",ha("constructor",Ds("constructor"),n,s))}}(),function(){for(var e,t=f(a.path.get("body.body"));!(e=t()).done;){var r=e.value,n=r.node;if(r.isClassProperty())throw r.buildCodeFrameError("Missing class properties transform.");if(n.decorators)throw r.buildCodeFrameError("Method has decorators, put the decorator plugin before the classes one.");ge(n)&&function(){var e="constructor"===n.kind;new NE({methodPath:r,objectRef:a.classRef,superRef:a.superName,constantSuper:s.constantSuper,file:a.file,refToPreserve:a.classRef}).replace();var t=[];r.traverse(gv.visitors.merge([IE,{ReturnStatement:function(e){e.getFunctionParent().isArrowFunctionExpression()||t.push(e)}}])),e?h(t,n,r):d(n,r)}()}}(),function(){if(!a.isDerived)return;var e=a.userConstructorPath,t=e.get("body");e.traverse(o);for(var r,n=function(){var t=e.scope.generateDeclaredUidIdentifier("this");return n=function(){return Ju(t)},t},s=f(a.superThises);!(r=s()).done;){var i=r.value,u=i.node;i.parentPath.isMemberExpression({object:u})?i.replaceWith(n()):i.replaceWith(ls(a.file.addHelper("assertThisInitialized"),[n()]))}var l=new Set;e.traverse(gv.visitors.merge([IE,{Super:function(e){var t=e.node,r=e.parentPath;r.isCallExpression({callee:t})&&l.add(r)}}]));for(var c,d,h=!!l.size,m=f(l);!(c=m()).done;){var y=c.value;p(y,a.superName,n,t),h&&y.find((function(t){return t===e||(t.isLoop()||t.isConditional()||t.isArrowFunctionExpression()?(h=!1,!0):void 0)}))}d=a.isLoose?function(e){var t=ls(a.file.addHelper("assertThisInitialized"),[n()]);return e?Is("||",e,t):t}:function(e){return ls(a.file.addHelper("possibleConstructorReturn"),[n()].concat(e||[]))};var g=t.get("body");g.length&&g.pop().isReturnStatement()||t.pushContainer("body",Ls(h?n():d()));for(var v,b=f(a.superReturns);!(v=b()).done;){var E=v.value;E.get("argument").replaceWith(d(E.node.argument))}}(),a.userConstructor){var e=a.constructorBody,t=a.userConstructor,r=a.construct;e.body=e.body.concat(t.body.body),yc(r,t),yc(e,t.body)}c()}function c(){m();for(var e=a.body,t={instance:null,static:null},r=0,n=["static","instance"];r<n.length;r++){var s=n[r];a.methods[s].list.length&&(t[s]=a.methods[s].list.map((function(e){for(var t=Rs([Bs(Ds("key"),e.key)]),r=0,n=["get","set","value"];r<n.length;r++){var s=n[r];null!=e[s]&&t.properties.push(Bs(Ds(s),e[s]))}return t})))}if(t.instance||t.static){for(var i=[Ju(a.classRef),t.instance?ts(t.instance):Ts(),t.static?ts(t.static):Ts()],o=0,u=0;u<i.length;u++)B(i[u])||(o=u);i=i.slice(0,o+1),e.push(ys(ls(a.file.addHelper("createClass"),i)))}}function p(e,t,r,n){var i,o=e.node;s.superIsCallableConstructor?(o.arguments.unshift(Ws()),2===o.arguments.length&&be(o.arguments[1])&&F(o.arguments[1].argument,{name:"arguments"})?(o.arguments[1]=o.arguments[1].argument,o.callee=Fs(Ju(t),Ds("apply"))):o.callee=Fs(Ju(t),Ds("call")),i=Is("||",o,Ws())):i=jE(Ju(a.superFnId),Ws(),o.arguments,!1),e.parentPath.isExpressionStatement()&&e.parentPath.container===n.node.body&&n.node.body.length-1===e.parentPath.key?(a.superThises.length&&(i=rs("=",r(),i)),e.parentPath.replaceWith(Ls(i))):e.replaceWith(rs("=",r(),i))}function d(e,t){var r=t?t.scope:a.scope;if("method"!==e.kind||!function(e,t){if(s.setClassMethods&&!e.decorators){var r=a.classRef;e.static||(!function(){if(null===a.protoAlias){i({protoAlias:a.scope.generateUidIdentifier("proto")});var e=Fs(a.classRef,Ds("prototype")),t=Ks("var",[zs(a.protoAlias,e)]);a.body.push(t)}}(),r=a.protoAlias);var n=Fs(Ju(r),e.key,e.computed||Pt(e.key)),o=xs(null,e.params,e.body,e.generator,e.async);yc(o,e);var u=rc(e,e.key);R(u)&&(o=wg({node:o,id:u,scope:t}));var l=ys(rs("=",n,o));return al(l,e),a.body.push(l),!0}return!1}(e,r)){var n,o,u=e.static?"static":"instance",l=a.methods[u],c="method"===e.kind?"value":e.kind,p=N(e.key)||Se(e.key)?Cs(String(e.key.value)):rc(e),d=nc(e);if(R(p)?"method"===e.kind&&(d=wg({id:p,node:e,scope:r})):l.hasComputed=!0,!l.hasComputed&&l.map.has(p.value))(n=l.map.get(p.value))[c]=d,"value"===c?(n.get=null,n.set=null):n.value=null;else(o={key:p})[c]=d,n=o,l.list.push(n),l.hasComputed||l.map.set(p.value,n)}}function h(e,t,r){i({userConstructorPath:r,userConstructor:t,hasConstructor:!0,superReturns:e});var n=a.construct;al(n,t),n.params=t.params,yc(n.body,t.body),n.body.directives=t.body.directives,function(){if(a.pushedConstructor)return;a.pushedConstructor=!0,(a.hasInstanceDescriptors||a.hasStaticDescriptors)&&c();a.body.push(a.construct),m()}()}function m(){if(a.isDerived&&!a.pushedInherits){var t=e.scope.generateUidIdentifier("super");i({pushedInherits:!0,superFnId:t}),s.superIsCallableConstructor||a.body.unshift(Ks("var",[zs(t,ls(aB(a.file),[Ju(a.classRef)]))])),a.body.unshift(ys(ls(a.file.addHelper(a.isLoose?"inheritsLoose":"inherits"),[Ju(a.classRef),Ju(a.superName)])))}}return function(e,t,r,n){i({parent:e.parent,scope:e.scope,node:e.node,path:e,file:t,isLoose:n}),i({classId:a.node.id,classRef:a.node.id?Ds(a.node.id.name):a.scope.generateUidIdentifier("class"),superName:a.node.superClass,isDerived:!!a.node.superClass,constructorBody:os([])}),i({extendsNative:a.isDerived&&r.has(a.superName.name)&&!a.scope.hasBinding(a.superName.name,!0)});var o=a.classRef,u=a.node,c=a.constructorBody;i({construct:uB(o,c,u)});var p=a.body,d=function(){var e=a.superName,t=[],r=[];if(a.isDerived){var n=Ju(e);a.extendsNative&&ak(n=ls(a.file.addHelper("wrapNativeSuper"),[n]));var s=a.scope.generateUidIdentifierBasedOnNode(e);t.push(s),r.push(n),i({superName:Ju(s)})}return{closureParams:t,closureArgs:r}}(),h=d.closureParams,m=d.closureArgs;l(),s.noClassCalls||c.body.unshift(ys(ls(a.file.addHelper("classCallCheck"),[Ws(),Ju(a.classRef)]))),p=p.concat(a.staticPropBody.map((function(e){return e(Ju(a.classRef))})));var y=e.isInStrictMode(),g=a.classId&&1===p.length;if(g&&!y)for(var v,b=f(a.construct.params);!(v=b()).done;){if(!F(v.value)){g=!1;break}}var E=g?p[0].body.directives:[];return y||E.push(as(is("use strict"))),g?nc(p[0]):(p.push(Ls(Ju(a.classRef))),ls(ea(h,os(p,E)),m))}(e,t,r,n)}var cB=function(e){return Object.keys(nB[e]).filter((function(e){return/^[A-Z]/.test(e)}))},pB=new Set([].concat(c(cB("builtin")),c(cB("browser")))),dB=SF((function(e,t){var r,n,s,a;e.assertVersion(7);var i=t.loose,o=null!=(r=e.assumption("setClassMethods"))?r:t.loose,u=null!=(n=e.assumption("constantSuper"))?n:t.loose,l=null!=(s=e.assumption("superIsCallableConstructor"))?s:t.loose,c=null!=(a=e.assumption("noClassCalls"))?a:t.loose,p=Symbol();return{name:"transform-classes",visitor:{ExportDefaultDeclaration:function(e){e.get("declaration").isClassDeclaration()&&Qc(e)},ClassDeclaration:function(e){var t=e.node,r=t.id||e.scope.generateUidIdentifier("class");e.replaceWith(Ks("let",[zs(r,nc(t))]))},ClassExpression:function(e,t){var r=e.node;if(!r[p]){var n=wg(e);if(n&&n!==r)e.replaceWith(n);else if(r[p]=!0,e.replaceWith(lB(e,t.file,pB,i,{setClassMethods:o,constantSuper:u,superIsCallableConstructor:l,noClassCalls:c})),e.isCallExpression()){ak(e);var s=e.get("callee");s.isArrowFunctionExpression()&&s.arrowFunctionToExpression()}}}}}})),fB=SF((function(e,t){var r;e.assertVersion(7);var n=(null!=(r=e.assumption("setComputedProperties"))?r:t.loose)?function(e){for(var t,r=f(e.computedProps);!(t=r()).done;){var n=t.value;"get"===n.kind||"set"===n.kind?o(e,n):i(Ju(e.objId),n,e.body)}}:function(e){for(var t,r=e.objId,n=e.body,s=e.computedProps,i=e.state,u=f(s);!(t=u()).done;){var l=t.value,c=rc(l);if("get"===l.kind||"set"===l.kind)o(e,l);else{if(1===s.length)return ls(i.addHelper("defineProperty"),[e.initPropExpression,c,a(l)]);n.push(ys(ls(i.addHelper("defineProperty"),[Ju(r),c,a(l)])))}}},s=bg("\n MUTATOR_MAP_REF[KEY] = MUTATOR_MAP_REF[KEY] || {};\n MUTATOR_MAP_REF[KEY].KIND = VALUE;\n ");function a(e){return H(e)?e.value:W(e)?xs(null,e.params,e.body,e.generator,e.async):void 0}function i(e,t,r){"get"===t.kind&&"set"===t.kind?o(e,t):r.push(ys(rs("=",Fs(Ju(e),t.key,t.computed||Pt(t.key)),a(t))))}function o(e,t){var r=e.body,n=e.getMutatorId,i=e.scope,o=!t.computed&&F(t.key)?Cs(t.key.name):t.key,u=i.maybeGenerateMemoised(o);u&&(r.push(ys(rs("=",u,o))),o=u),r.push.apply(r,c(s({MUTATOR_MAP_REF:n(),KEY:Ju(o),VALUE:a(t),KIND:Ds(t.kind)})))}return{name:"transform-computed-properties",visitor:{ObjectExpression:{exit:function(e,t){for(var r=e.node,s=e.parent,a=e.scope,i=!1,o=0,u=r.properties;o<u.length;o++){if(i=!0===u[o].computed)break}if(i){for(var l,c=[],p=[],d=!1,h=f(r.properties);!(l=h()).done;){var m=l.value;m.computed&&(d=!0),d?p.push(m):c.push(m)}var y,g=a.generateUidIdentifierBasedOnNode(s),v=Rs(c),b=[];b.push(Ks("var",[zs(g,v)]));var E=n({scope:a,objId:g,body:b,computedProps:p,initPropExpression:v,getMutatorId:function(){return y||(y=a.generateUidIdentifier("mutatorMap"),b.push(Ks("var",[zs(y,Rs([]))]))),Ju(y)},state:t});y&&b.push(ys(ls(t.addHelper("defineEnumerableProperties"),[Ju(g),Ju(y)]))),E?e.replaceWith(E):(b.push(ys(Ju(g))),e.replaceWithMultiple(b))}}}}}})),hB=SF((function(e,t){var r,n,s;e.assertVersion(7);var a=t.useBuiltIns,i=void 0!==a&&a,o=null!=(r=e.assumption("iterableIsArray"))?r:t.loose,u=null!=(n=t.allowArrayLike)?n:e.assumption("arrayLikeIsIterable"),l=null!=(s=e.assumption("objectRestNoSymbols"))?s:t.loose;function p(e){for(var t=0,r=e.declarations;t<r.length;t++){if(Ot(r[t].id))return!0}return!1}function d(e){for(var t=0,r=e.elements;t<r.length;t++){if(X(r[t]))return!0}return!1}var h={},y=function(e,t,r){if(t.length&&F(e)&&Ac(e,t[t.length-1])&&r.bindings[e.name])throw r.deopt=!0,h},g=function(){function e(e){this.blockHoist=e.blockHoist,this.operator=e.operator,this.arrays={},this.nodes=e.nodes||[],this.scope=e.scope,this.kind=e.kind,this.iterableIsArray=e.iterableIsArray,this.arrayLikeIsIterable=e.arrayLikeIsIterable,this.addHelper=e.addHelper}var t=e.prototype;return t.buildVariableAssignment=function(e,t){var r,n=this.operator;return M(e)&&(n="="),(r=n?ys(rs(n,e,Ju(t)||this.scope.buildUndefinedNode())):Ks(this.kind,[zs(e,Ju(t))]))._blockHoist=this.blockHoist,r},t.buildVariableDeclaration=function(e,t){var r=Ks("var",[zs(Ju(e),Ju(t))]);return r._blockHoist=this.blockHoist,r},t.push=function(e,t){var r=Ju(t);ve(e)?this.pushObjectPattern(e,r):ne(e)?this.pushArrayPattern(e,r):re(e)?this.pushAssignmentPattern(e,r):this.nodes.push(this.buildVariableAssignment(e,r))},t.toArray=function(e,t){return this.iterableIsArray||F(e)&&this.arrays[e.name]?e:this.scope.toArray(e,t,this.arrayLikeIsIterable)},t.pushAssignmentPattern=function(e,t){var r=e.left,n=e.right,s=this.scope.generateUidIdentifierBasedOnNode(t);this.nodes.push(this.buildVariableDeclaration(s,t));var a,i,o=ps(ns("===",Ju(s),this.scope.buildUndefinedNode()),n,Ju(s));Ot(r)?("const"===this.kind||"let"===this.kind?(a=this.scope.generateUidIdentifier(s.name),i=this.buildVariableDeclaration(a,o)):(a=s,i=ys(rs("=",Ju(s),o))),this.nodes.push(i),this.push(r,a)):this.nodes.push(this.buildVariableAssignment(r,o))},t.pushObjectRest=function(e,t,r,n){for(var s,a=[],o=!0,u=0;u<e.properties.length;u++){var c=e.properties[u];if(u>=n)break;if(!X(c)){var p=c.key;F(p)&&!c.computed?a.push(Cs(p.name)):De(c.key)?a.push(Ju(c.key)):Pt(p)?a.push(Cs(String(p.value))):(a.push(Ju(p)),o=!1)}}if(0===a.length)s=ls(function(e){return i?Fs(Ds("Object"),Ds("assign")):e.addHelper("extends")}(this),[Rs([]),Ju(t)]);else{var d=ts(a);if(o){if(!G(this.scope.block)){var f=this.scope.path.findParent((function(e){return e.isProgram()})),h=this.scope.generateUidIdentifier("excluded");f.scope.push({id:h,init:d,kind:"const"}),d=Ju(h)}}else d=ls(Fs(d,Ds("map")),[this.addHelper("toPropertyKey")]);s=ls(this.addHelper("objectWithoutProperties"+(l?"Loose":"")),[Ju(t),d])}this.nodes.push(this.buildVariableAssignment(r.argument,s))},t.pushObjectProperty=function(e,t){Pt(e.key)&&(e.computed=!0);var r=e.value,n=Fs(Ju(t),e.key,e.computed);Ot(r)?this.push(r,n):this.nodes.push(this.buildVariableAssignment(r,n))},t.pushObjectPattern=function(e,t){if(e.properties.length||this.nodes.push(ys(ls(this.addHelper("objectDestructuringEmpty"),[t]))),e.properties.length>1&&!this.scope.isStatic(t)){var r=this.scope.generateUidIdentifierBasedOnNode(t);this.nodes.push(this.buildVariableDeclaration(r,t)),t=r}if(function(e){for(var t=0,r=e.properties;t<r.length;t++)if(X(r[t]))return!0;return!1}(e))for(var n,s=0;s<e.properties.length;s++){var a=e.properties[s];if(X(a))break;var i=a.key;if(a.computed&&!this.scope.isPure(i)){var o=this.scope.generateUidIdentifierBasedOnNode(i);this.nodes.push(this.buildVariableDeclaration(o,i)),n||(n=e=Object.assign({},e,{properties:e.properties.slice()})),n.properties[s]=Object.assign({},n.properties[s],{key:o})}}for(var u=0;u<e.properties.length;u++){var l=e.properties[u];X(l)?this.pushObjectRest(e,t,l,u):this.pushObjectProperty(l,t)}},t.canUnpackArrayPattern=function(e,t){if(!m(t))return!1;if(!(e.elements.length>t.elements.length)){if(e.elements.length<t.elements.length&&!d(e))return!1;for(var r=0,n=e.elements;r<n.length;r++){var s=n[r];if(!s)return!1;if(M(s))return!1}for(var a=0,i=t.elements;a<i.length;a++){var o=i[a];if(be(o))return!1;if(E(o))return!1;if(M(o))return!1}var u={deopt:!1,bindings:cc(e)};try{vc(t,y,u)}catch(e){if(e!==h)throw e}return!u.deopt}},t.pushUnpackedArrayPattern=function(e,t){for(var r=0;r<e.elements.length;r++){var n=e.elements[r];X(n)?this.push(n.argument,ts(t.elements.slice(r))):this.push(n,t.elements[r])}},t.pushArrayPattern=function(e,t){if(e.elements){if(this.canUnpackArrayPattern(e,t))return this.pushUnpackedArrayPattern(e,t);var r=!d(e)&&e.elements.length,n=this.toArray(t,r);F(n)?t=n:(t=this.scope.generateUidIdentifierBasedOnNode(t),this.arrays[t.name]=!0,this.nodes.push(this.buildVariableDeclaration(t,n)));for(var s=0;s<e.elements.length;s++){var a=e.elements[s];if(a){var i=void 0;X(a)?(i=ls(Fs(i=this.toArray(t),Ds("slice")),[Ss(s)]),a=a.argument):i=Fs(t,Ss(s),!0),this.push(a,i)}}}},t.init=function(e,t){if(!m(t)&&!M(t)){var r=this.scope.maybeGenerateMemoised(t,!0);r&&(this.nodes.push(this.buildVariableDeclaration(r,Ju(t))),t=r)}return this.push(e,t),this.nodes},e}();return{name:"transform-destructuring",visitor:{ExportNamedDeclaration:function(e){var t=e.get("declaration");if(t.isVariableDeclaration()&&p(t.node)){for(var r=[],n=0,s=Object.keys(e.getOuterBindingIdentifiers(e));n<s.length;n++){var a=s[n];r.push(oa(Ds(a),Ds(a)))}e.replaceWith(t.node),e.insertAfter(ia(null,r))}},ForXStatement:function(e){var t=this,r=e.node,n=e.scope,s=r.left;if(Ot(s)){var a=n.generateUidIdentifier("ref");return r.left=Ks("var",[zs(a)]),e.ensureBlock(),0===r.body.body.length&&e.isCompletionRecord()&&r.body.body.unshift(ys(n.buildUndefinedNode())),void r.body.body.unshift(ys(rs("=",s,a)))}if(Z(s)){var i=s.declarations[0].id;if(Ot(i)){var l=n.generateUidIdentifier("ref");r.left=Ks(s.kind,[zs(l,null)]);var c=[];new g({kind:s.kind,scope:n,nodes:c,iterableIsArray:o,arrayLikeIsIterable:u,addHelper:function(e){return t.addHelper(e)}}).init(i,l),e.ensureBlock();var p=r.body;p.body=c.concat(p.body)}}},CatchClause:function(e){var t=this,r=e.node,n=e.scope,s=r.param;if(Ot(s)){var a=n.generateUidIdentifier("ref");r.param=a;var i=[];new g({kind:"let",scope:n,nodes:i,iterableIsArray:o,arrayLikeIsIterable:u,addHelper:function(e){return t.addHelper(e)}}).init(s,a),r.body.body=i.concat(r.body.body)}},AssignmentExpression:function(e){var t=this,r=e.node,n=e.scope;if(Ot(r.left)){var s,a=[],i=new g({operator:r.operator,scope:n,nodes:a,iterableIsArray:o,arrayLikeIsIterable:u,addHelper:function(e){return t.addHelper(e)}});!e.isCompletionRecord()&&e.parentPath.isExpressionStatement()||(s=n.generateUidIdentifierBasedOnNode(r.right,"ref"),a.push(Ks("var",[zs(s,r.right)])),m(r.right)&&(i.arrays[s.name]=!0)),i.init(r.left,s||r.right),s&&(e.parentPath.isArrowFunctionExpression()?(e.replaceWith(os([])),a.push(Ls(Ju(s)))):a.push(ys(Ju(s)))),e.replaceWithMultiple(a),e.scope.crawl()}},VariableDeclaration:function(e){var t=this,r=e.node,n=e.scope,s=e.parent;if(!Ct(s)&&s&&e.container&&p(r)){for(var a,i=r.kind,l=r.loc,d=[],h=0;h<r.declarations.length;h++){var m=(a=r.declarations[h]).init,y=a.id,v=new g({blockHoist:r._blockHoist,nodes:d,scope:n,kind:r.kind,iterableIsArray:o,arrayLikeIsIterable:u,addHelper:function(e){return t.addHelper(e)}});Ot(y)?(v.init(y,m),+h!=r.declarations.length-1&&yc(d[d.length-1],a)):d.push(yc(v.buildVariableAssignment(a.id,Ju(a.init)),a))}for(var b=null,E=[],x=0,D=d;x<D.length;x++){var A,w=D[x];if(null!==b&&Z(w))(A=b.declarations).push.apply(A,c(w.declarations));else w.kind=i,w.loc||(w.loc=l),E.push(w),b=Z(w)?w:null}for(var C=0,S=E;C<S.length;C++){var T=S[C];if(T.declarations)for(var j,P=f(T.declarations);!(j=P()).done;){var I=j.value.id.name;n.bindings[I]&&(n.bindings[I].kind=T.kind)}}1===E.length?e.replaceWith(E[0]):e.replaceWithMultiple(E)}}}}})),mB=SF((function(e){return e.assertVersion(7),kN({name:"transform-dotall-regex",feature:"dotAllFlag"})}));var yB=SF((function(e){return e.assertVersion(7),{name:"transform-duplicate-keys",visitor:{ObjectExpression:function(e){for(var t,r,n=e.node.properties.filter((function(e){return!be(e)&&!e.computed})),s=Object.create(null),a=Object.create(null),i=Object.create(null),o=f(n);!(t=o()).done;){var u=t.value,l=F(r=u.key)?r.name:r.value.toString(),c=!1;switch(u.kind){case"get":(s[l]||a[l])&&(c=!0),a[l]=!0;break;case"set":(s[l]||i[l])&&(c=!0),i[l]=!0;break;default:(s[l]||a[l]||i[l])&&(c=!0),s[l]=!0}c&&(u.computed=!0,u.key=Cs(l))}}}}}));function gB(e,t,r,n,s){var a,i,o;if(a=F(e)&&s?e:function(e,t,r){var n;if(F(e)){if(r.hasBinding(e.name))return e;n=e}else{if(!M(e))throw new Error("We can't explode this node type "+e.type);if(Ee(n=e.object)||F(n)&&r.hasBinding(n.name))return n}var s=r.generateUidIdentifierBasedOnNode(n);return r.push({id:s}),t.push(rs("=",Ju(s),Ju(n))),s}(e,t,n),F(e))i=Ju(e),o=a;else{var u=function(e,t,r){var n=e.property;if(ot(n))throw new Error("We can't generate property ref for private name, please install `@babel/plugin-proposal-class-properties`");var s=rc(e,n);if(Pt(s)&&Tt(s))return s;var a=r.generateUidIdentifierBasedOnNode(n);return r.push({id:a}),t.push(rs("=",Ju(a),Ju(n))),a}(e,t,n),l=e.computed||Pt(u);o=Fs(Ju(a),Ju(u),l),i=Fs(Ju(a),Ju(u),l)}return{uid:o,ref:i}}function vB(e){var t=e.build,r=e.operator;return{AssignmentExpression:function(e){var n=e.node,s=e.scope;if(n.operator===r+"="){var a=[],i=gB(n.left,a,0,s);a.push(rs("=",i.ref,t(i.uid,n.right))),e.replaceWith(Ms(a))}},BinaryExpression:function(e){var n=e.node;n.operator===r&&e.replaceWith(t(n.left,n.right))}}}var bB=SF((function(e){return e.assertVersion(7),{name:"transform-exponentiation-operator",visitor:vB({operator:"**",build:function(e,t){return ls(Fs(Ds("Math"),Ds("pow")),[e,t])}})}})),EB=SF((function(e){function t(e){return"string"==typeof e?{type:"CommentBlock",value:e}:e}function r(e){var r,n=e.ofPath,a=e.toPath,i=e.where,o=void 0===i?"trailing":i,u=e.optional,l=void 0!==u&&u,c=e.comments,p=void 0===c?s(n,l):c,d=e.keepType,f=void 0!==d&&d;if(null!=(r=a)&&r.node||(a=n.getPrevSibling(),o="trailing"),a.node||(a=n.getNextSibling(),o="leading"),a.node||(a=n.parentPath,o="inner"),Array.isArray(p)||(p=[p]),p=p.map(t),!f&&null!=n&&n.node){var h=n.node,m=n.parentPath,y=n.getPrevSibling(),g=n.getNextSibling(),v=!(y.node||g.node),b=h.leadingComments,E=h.trailingComments;v&&b&&m.addComments("inner",b),a.addComments(o,p),n.remove(),v&&E&&m.addComments("inner",E)}else a.addComments(o,p)}function n(e){r({ofPath:e,comments:s(e,e.parent.optional)})}function s(e,t){var r=e.getSource().replace(/\*-\//g,"*-ESCAPED/").replace(/\*\//g,"*-/");return t&&(r="?"+r),":"!==r[0]&&(r=":: "+r),r}function a(e){return"type"===e||"typeof"===e}return e.assertVersion(7),{name:"transform-flow-comments",inherits:UF,visitor:{TypeCastExpression:function(e){var t=e.node;r({ofPath:e.get("typeAnnotation"),toPath:e.get("expression"),keepType:!0}),e.replaceWith(Us(t.expression))},Identifier:function(e){if(!e.parentPath.isFlow()){var t=e.node;t.typeAnnotation?(r({ofPath:e.get("typeAnnotation"),toPath:e,optional:t.optional||t.typeAnnotation.optional}),t.optional&&(t.optional=!1)):t.optional&&(r({toPath:e,comments:":: ?"}),t.optional=!1)}},AssignmentPattern:{exit:function(e){var t=e.node.left;t.optional&&(t.optional=!1)}},Function:function(e){if(!e.isDeclareFunction()){var t=e.node;t.typeParameters&&r({ofPath:e.get("typeParameters"),toPath:e.get("id"),optional:t.typeParameters.optional}),t.returnType&&r({ofPath:e.get("returnType"),toPath:e.get("body"),where:"leading",optional:t.returnType.typeAnnotation.optional})}},ClassProperty:function(e){var t=e.node;t.value?t.typeAnnotation&&r({ofPath:e.get("typeAnnotation"),toPath:e.get("key"),optional:t.typeAnnotation.optional}):n(e)},ExportNamedDeclaration:function(e){var t=e.node;("type"===t.exportKind||Lt(t.declaration))&&n(e)},ImportDeclaration:function(e){var t=e.node;if(a(t.importKind))n(e);else{var s=t.specifiers.filter((function(e){return a(e.importKind)})),i=t.specifiers.filter((function(e){return!a(e.importKind)}));if(t.specifiers=i,s.length>0){var o=Ju(t);o.specifiers=s;var u=":: "+Bf(o).code;i.length>0?r({toPath:e,comments:u}):r({ofPath:e,comments:u})}}},ObjectPattern:function(e){var t=e.node;t.typeAnnotation&&r({ofPath:e.get("typeAnnotation"),toPath:e,optional:t.optional||t.typeAnnotation.optional})},Flow:function(e){n(e)},Class:function(e){var t=e.node,n=[];if(t.typeParameters){var a=e.get("typeParameters");n.push(s(a,t.typeParameters.optional));var i,o=t.typeParameters.trailingComments;if(o)(i=n).push.apply(i,c(o));a.remove()}if(t.superClass&&(n.length>0&&(r({toPath:e.get("id"),comments:n}),n=[]),t.superTypeParameters)){var u=e.get("superTypeParameters");n.push(s(u,u.node.optional)),u.remove()}if(t.implements){var l="implements "+e.get("implements").map((function(e){return s(e).replace(/^:: /,"")})).join(", ");delete t.implements,1===n.length?n[0]+=" "+l:n.push(":: "+l)}n.length>0&&r({toPath:e.get("body"),where:"leading",comments:n})}}}})),xB=SF((function(e,t){e.assertVersion(7);var r=/(@flow(\s+(strict(-local)?|weak))?|@noflow)/,n=!1,s=t.requireDirective,a=void 0!==s&&s,i=t.allowDeclareFields,o=void 0!==i&&i;return{name:"transform-flow-strip-types",inherits:UF,visitor:{Program:function(e,t){var s=t.file.ast.comments;n=!1;var i=!1;if(s)for(var o=0,u=s;o<u.length;o++){var l=u[o];r.test(l.value)&&(i=!0,l.value=l.value.replace(r,""),l.value.replace(/\*/g,"").trim()||(l.ignore=!0))}!i&&a&&(n=!0)},ImportDeclaration:function(e){if(!n&&e.node.specifiers.length){var t=0;e.node.specifiers.forEach((function(e){var r=e.importKind;"type"!==r&&"typeof"!==r||t++})),t===e.node.specifiers.length&&e.remove()}},Flow:function(e){if(n)throw e.buildCodeFrameError("A @flow directive is required when using Flow annotations with the `requireDirective` option.");e.remove()},ClassPrivateProperty:function(e){n||(e.node.typeAnnotation=null)},Class:function(e){n||(e.node.implements=null,e.get("body.body").forEach((function(e){if(e.isClassProperty()){var t=e.node;if(!o&&t.declare)throw e.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-flow-strip-types or @babel/preset-flow is enabled.");if(t.declare)e.remove();else{if(!o&&!t.value&&!t.decorators)return void e.remove();t.variance=null,t.typeAnnotation=null}}})))},AssignmentPattern:function(e){var t=e.node;n||(t.left.optional=!1)},Function:function(e){var t=e.node;if(!n){t.params.length>0&&"Identifier"===t.params[0].type&&"this"===t.params[0].name&&t.params.shift();for(var r=0;r<t.params.length;r++){var s=t.params[r];s.optional=!1,"AssignmentPattern"===s.type&&(s.left.optional=!1)}t.predicate=null}},TypeCastExpression:function(e){if(!n){var t=e.node;do{t=t.expression}while(Ve(t));e.replaceWith(t)}},CallExpression:function(e){var t=e.node;n||(t.typeArguments=null)},OptionalCallExpression:function(e){var t=e.node;n||(t.typeArguments=null)},NewExpression:function(e){var t=e.node;n||(t.typeArguments=null)}}}}));var DB,AB,wB,CB=bg("\n for (var LOOP_OBJECT = OBJECT,\n IS_ARRAY = Array.isArray(LOOP_OBJECT),\n INDEX = 0,\n LOOP_OBJECT = IS_ARRAY ? LOOP_OBJECT : LOOP_OBJECT[Symbol.iterator]();;) {\n INTERMEDIATE;\n if (IS_ARRAY) {\n if (INDEX >= LOOP_OBJECT.length) break;\n ID = LOOP_OBJECT[INDEX++];\n } else {\n INDEX = LOOP_OBJECT.next();\n if (INDEX.done) break;\n ID = INDEX.value;\n }\n }\n"),SB=bg("\n var ITERATOR_COMPLETION = true;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY = undefined;\n try {\n for (\n var ITERATOR_KEY = OBJECT[Symbol.iterator](), STEP_KEY;\n !(ITERATOR_COMPLETION = (STEP_KEY = ITERATOR_KEY.next()).done);\n ITERATOR_COMPLETION = true\n ) {}\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (!ITERATOR_COMPLETION && ITERATOR_KEY.return != null) {\n ITERATOR_KEY.return();\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n");function TB(e,t){var r,n,s,a=e.node,i=e.scope,o=e.parent,u=a.left;if(F(u)||Ot(u)||M(u))n=u,s=null;else{if(!Z(u))throw t.buildCodeFrameError(u,"Unknown node type "+u.type+" in ForStatement");n=i.generateUidIdentifier("ref"),r=Ks(u.kind,[zs(u.declarations[0].id,Ds(n.name))]),s=Ks("var",[zs(Ds(n.name))])}var l,c=i.generateUidIdentifier("iterator"),p=i.generateUidIdentifier("isArray"),d=CB({LOOP_OBJECT:c,IS_ARRAY:p,OBJECT:a.right,INDEX:i.generateUidIdentifier("i"),ID:n,INTERMEDIATE:s}),f=O(o);return f&&(l=ws(o.label,d)),{replaceParent:f,declar:r,node:l||d,loop:d}}function jB(e,t){var r,n=e.node,s=e.scope,a=e.parent,i=n.left,o=s.generateUid("step"),u=Fs(Ds(o),Ds("value"));if(F(i)||Ot(i)||M(i))r=ys(rs("=",i,u));else{if(!Z(i))throw t.buildCodeFrameError(i,"Unknown node type "+i.type+" in ForStatement");r=Ks(i.kind,[zs(i.declarations[0].id,u)])}var l=SB({ITERATOR_HAD_ERROR_KEY:s.generateUidIdentifier("didIteratorError"),ITERATOR_COMPLETION:s.generateUidIdentifier("iteratorNormalCompletion"),ITERATOR_ERROR_KEY:s.generateUidIdentifier("iteratorError"),ITERATOR_KEY:s.generateUidIdentifier("iterator"),STEP_KEY:Ds(o),OBJECT:n.right}),c=O(a),p=l[3].block.body,d=p[0];return c&&(p[0]=ws(a.label,d)),{replaceParent:c,declar:r,loop:d,node:l}}var PB=SF((function(e,t){var r,n,s;e.assertVersion(7);var a=t.assumeArray,i=t.allowArrayLike;if(!0===t.loose&&!0===a)throw new Error("The loose and assumeArray options cannot be used together in @babel/plugin-transform-for-of");if(!0===a&&!0===i)throw new Error("The assumeArray and allowArrayLike options cannot be used together in @babel/plugin-transform-for-of");if(i&&/^7\.\d\./.test(e.version))throw new Error("The allowArrayLike is only supported when using @babel/core@^7.10.0");var o=null!=(r=t.assumeArray)?r:!t.loose&&e.assumption("iterableIsArray"),l=null!=(n=t.allowArrayLike)?n:e.assumption("arrayLikeIsIterable"),c=null!=(s=e.assumption("skipForOfIteratorClosing"))?s:t.loose;if(o&&l)throw new Error('The "iterableIsArray" and "arrayLikeIsIterable" assumptions are not compatible.');if(o)return{name:"transform-for-of",visitor:{ForOfStatement:function(e){var t=e.scope,r=e.node,n=r.left,s=r.right;if(!r.await){var a=t.generateUidIdentifier("i"),i=t.maybeGenerateMemoised(s,!0),o=[zs(a,Ss(0))];i?o.push(zs(i,s)):i=s;var u,l,c=Fs(Ju(i),Ju(a),!0);Z(n)?(u=n).declarations[0].init=c:u=ys(rs("=",n,c));var p=e.get("body");p.isBlockStatement()&&Object.keys(e.getBindingIdentifiers()).some((function(e){return p.scope.hasOwnBinding(e)}))?l=os([u,p.node]):(l=Ql(p.node)).body.unshift(u),e.replaceWith(bs(Ks("let",o),ns("<",Ju(a),Fs(Ju(i),Ds("length"))),$s("++",Ju(a)),l))}}}};var p=bg(DB||(DB=u(["\n for (var KEY = 0, NAME = ARR; KEY < NAME.length; KEY++) BODY;\n "]))),d=bg.statements(AB||(AB=u(["\n for (var ITERATOR_HELPER = CREATE_ITERATOR_HELPER(OBJECT, ARRAY_LIKE_IS_ITERABLE), STEP_KEY;\n !(STEP_KEY = ITERATOR_HELPER()).done;) BODY;\n "]))),f=bg.statements(wB||(wB=u(["\n var ITERATOR_HELPER = CREATE_ITERATOR_HELPER(OBJECT, ARRAY_LIKE_IS_ITERABLE), STEP_KEY;\n try {\n for (ITERATOR_HELPER.s(); !(STEP_KEY = ITERATOR_HELPER.n()).done;) BODY;\n } catch (err) {\n ITERATOR_HELPER.e(err);\n } finally {\n ITERATOR_HELPER.f();\n }\n "]))),h=c?{build:d,helper:"createForOfIteratorHelperLoose",getContainer:function(e){return e}}:{build:f,helper:"createForOfIteratorHelper",getContainer:function(e){return e[1].block.body}};return{name:"transform-for-of",visitor:{ForOfStatement:function(e,t){var r=e.get("right");if(r.isArrayExpression()||r.isGenericType("Array")||Fe(r.getTypeAnnotation()))e.replaceWith(function(e){var t=e.node,r=e.scope,n=r.generateUidIdentifierBasedOnNode(t.right,"arr"),s=r.generateUidIdentifier("i"),a=p({BODY:t.body,KEY:s,NAME:n,ARR:t.right});yc(a,t),Zl(a);var i=Fs(Ju(n),Ju(s),!0),o=t.left;return Z(o)?(o.declarations[0].init=i,a.body.body.unshift(o)):a.body.body.unshift(ys(rs("=",o,i))),a}(e));else if(t.availableHelper(h.helper)){var n,s=e.node,a=e.parent,i=e.scope,o=s.left,u=i.generateUid("step"),d=Fs(Ds(u),Ds("value"));n=Z(o)?Ks(o.kind,[zs(o.declarations[0].id,d)]):ys(rs("=",o,d)),e.ensureBlock(),s.body.body.unshift(n);var f=h.build({CREATE_ITERATOR_HELPER:t.addHelper(h.helper),ITERATOR_HELPER:i.generateUidIdentifier("iterator"),ARRAY_LIKE_IS_ITERABLE:l?js(!0):null,STEP_KEY:Ds(u),OBJECT:s.right,BODY:s.body}),m=h.getContainer(f);yc(m[0],s),yc(m[0].body,s.body),O(a)?(m[0]=ws(a.label,m[0]),e.parentPath.replaceWithMultiple(f),e.skip()):e.replaceWithMultiple(f)}else!function(e,t,r){var n=e?TB:jB,s=t.node,a=n(t,r),i=a.declar,o=a.loop,u=o.body;t.ensureBlock(),i&&u.body.push(i),u.body=u.body.concat(s.body.body),yc(o,s),yc(o.body,s.body),a.replaceParent?(t.parentPath.replaceWithMultiple(a.node),t.remove()):t.replaceWithMultiple(a.node)}(c,e,t)}}}})),IB=SF((function(e){return e.assertVersion(7),{name:"transform-function-name",visitor:{FunctionExpression:{exit:function(e){if("value"!==e.key&&!e.parentPath.isObjectProperty()){var t=wg(e);t&&e.replaceWith(t)}}},ObjectProperty:function(e){var t=e.get("value");if(t.isFunction()){var r=wg(t);r&&t.replaceWith(r)}}}}})),FB=SF((function(e){return e.assertVersion(7),{name:"transform-instanceof",visitor:{BinaryExpression:function(e){var t=e.node;if("instanceof"===t.operator){var r=this.addHelper("instanceof");if(e.findParent((function(e){return e.isVariableDeclarator()&&e.node.id===r||e.isFunctionDeclaration()&&e.node.id&&e.node.id.name===r.name})))return;e.replaceWith(ls(r,[t.left,t.right]))}}}}})),kB=SF((function(e){return e.assertVersion(7),{name:"transform-jscript",visitor:{FunctionExpression:{exit:function(e){var t=e.node;t.id&&e.replaceWith(ls(xs(null,[],os([fc(t),Ls(Ju(t.id))])),[]))}}}}})),OB=SF((function(e){return e.assertVersion(7),{name:"transform-literals",visitor:{NumericLiteral:function(e){var t=e.node;t.extra&&/^0[ob]/i.test(t.extra.raw)&&(t.extra=void 0)},StringLiteral:function(e){var t=e.node;t.extra&&/\\[u]/gi.test(t.extra.raw)&&(t.extra=void 0)}}}})),RB=SF((function(e){return e.assertVersion(7),{name:"transform-member-expression-literals",visitor:{MemberExpression:{exit:function(e){var t=e.node,r=t.property;t.computed||!F(r)||Sc(r.name)||(t.property=Cs(r.name),t.computed=!0)}}}}})),NB=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,s=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){s=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(s)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},BB=LB,_B=function(e){var t=e.template,r=e.types,n={static:{interop:t("Promise.resolve().then(() => INTEROP(require(SOURCE)))"),noInterop:t("Promise.resolve().then(() => require(SOURCE))")},dynamic:{interop:t("Promise.resolve(SOURCE).then(s => INTEROP(require(s)))"),noInterop:t("Promise.resolve(SOURCE).then(s => require(s))")}},s="function"==typeof WeakSet&&new WeakSet;return function(e,t){if(s){if(s.has(t))return;s.add(t)}var a=LB(r,t.parent),i=function(e){return r.isStringLiteral(e)||r.isTemplateLiteral(e)&&0===e.expressions.length}(a)?n.static:n.dynamic,o=e.opts.noInterop?i.noInterop({SOURCE:a}):i.interop({SOURCE:a,INTEROP:e.addHelper("interopRequireWildcard")});t.parentPath.replaceWith(o)}};function LB(e,t){var r=t.arguments,n=NB(r,1)[0];return e.isStringLiteral(n)||e.isTemplateLiteral(n)?(e.removeComments(n),n):e.templateLiteral([e.templateElement({raw:"",cooked:""}),e.templateElement({raw:"",cooked:""},!0)],r)}var MB,UB=Object.defineProperty({getImportSource:BB,createDynamicImportTransform:_B},"__esModule",{value:!0}),GB=bg("\n define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) {\n })\n"),VB=bg('\n define(["require"], function(REQUIRE) {\n })\n');function WB(e,t){var r=e.node,n=r.body,s=r.directives;e.node.directives=[],e.node.body=[];var a=e.pushContainer("body",t)[0].get("expression.arguments").filter((function(e){return e.isFunctionExpression()}))[0].get("body");a.pushContainer("directives",s),a.pushContainer("body",n)}var HB=SF((function(e,t){var r,n;e.assertVersion(7);var s=t.allowTopLevelThis,a=t.strict,i=t.strictMode,o=t.importInterop,p=t.noInterop,d=null!=(r=e.assumption("constantReexports"))?r:t.loose,h=null!=(n=e.assumption("enumerableModuleMeta"))?n:t.loose;return{name:"transform-modules-amd",pre:function(){this.file.set("@babel/plugin-transform-modules-*","amd")},visitor:{CallExpression:function(e,t){if(this.file.has("@babel/plugin-proposal-dynamic-import")&&e.get("callee").isImport()){var r=t.requireId,n=t.resolveId,s=t.rejectId;r||(r=e.scope.generateUidIdentifier("require"),t.requireId=r),n&&s||(n=e.scope.generateUidIdentifier("resolve"),s=e.scope.generateUidIdentifier("reject"),t.resolveId=n,t.rejectId=s);var a=Ds("imported");p||(a=Ix(e,a,"namespace")),e.replaceWith(bg.expression.ast(MB||(MB=u(["\n new Promise((",", ",") =>\n ","(\n [","],\n imported => ","(","),\n ","\n )\n )"])),n,s,r,UB.getImportSource(Pc,e.node),Ju(n),a,Ju(s)))}},Program:{exit:function(e,r){var n=r.requireId;if(bE(e)){var u=[],m=[];n&&(u.push(Cs("require")),m.push(Ju(n)));var y=Tx(this.file.opts,t);y&&(y=Cs(y));var g=jx(e,{enumerableModuleMeta:h,constantReexports:d,strict:a,strictMode:i,allowTopLevelThis:s,importInterop:o,noInterop:p}),v=g.meta,b=g.headers;ix(v)&&(u.push(Cs("exports")),m.push(Ds(v.exportName)));for(var E,x=f(v.source);!(E=x()).done;){var D=l(E.value,2),A=D[0],w=D[1];if(u.push(Cs(A)),m.push(Ds(w.name)),!ox(w)){var C=Ix(e,Ds(w.name),w.interop);if(C){var S=ys(rs("=",Ds(w.name),C));S.loc=w.loc,b.push(S)}}b.push.apply(b,c(Fx(v,w,d)))}Px(b),e.unshiftContainer("body",b),WB(e,GB({MODULE_NAME:y,AMD_ARGUMENTS:ts(u),IMPORT_NAMES:m}))}else n&&WB(e,VB({REQUIRE:Ju(n)}))}}}}})),XB=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,s=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){s=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(s)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},qB=KB,$B=function(e){var t=e.template,r=e.types,n={static:{interop:t("Promise.resolve().then(() => INTEROP(require(SOURCE)))"),noInterop:t("Promise.resolve().then(() => require(SOURCE))")},dynamic:{interop:t("Promise.resolve(SOURCE).then(s => INTEROP(require(s)))"),noInterop:t("Promise.resolve(SOURCE).then(s => require(s))")}},s="function"==typeof WeakSet&&new WeakSet;return function(e,t){if(s){if(s.has(t))return;s.add(t)}var a=KB(r,t.parent),i=function(e){return r.isStringLiteral(e)||r.isTemplateLiteral(e)&&0===e.expressions.length}(a)?n.static:n.dynamic,o=e.opts.noInterop?i.noInterop({SOURCE:a}):i.interop({SOURCE:a,INTEROP:e.addHelper("interopRequireWildcard")});t.parentPath.replaceWith(o)}};function KB(e,t){var r=t.arguments,n=XB(r,1)[0];return e.isStringLiteral(n)||e.isTemplateLiteral(n)?(e.removeComments(n),n):e.templateLiteral([e.templateElement({raw:"",cooked:""}),e.templateElement({raw:"",cooked:""},!0)],r)}var zB,JB,YB,QB=Object.defineProperty({getImportSource:qB,createDynamicImportTransform:$B},"__esModule",{value:!0}),ZB=SF((function(e,t){var r,n;e.assertVersion(7);var s=QB.createDynamicImportTransform(e),a=t.strictNamespace,i=void 0!==a&&a,o=t.mjsStrictNamespace,p=void 0===o||o,d=t.allowTopLevelThis,h=t.strict,m=t.strictMode,y=t.noInterop,g=t.importInterop,v=t.lazy,b=void 0!==v&&v,E=t.allowCommonJSExports,x=void 0===E||E,D=null!=(r=e.assumption("constantReexports"))?r:t.loose,A=null!=(n=e.assumption("enumerableModuleMeta"))?n:t.loose;if(!("boolean"==typeof b||"function"==typeof b||Array.isArray(b)&&b.every((function(e){return"string"==typeof e}))))throw new Error(".lazy must be a boolean, array of strings, or a function");if("boolean"!=typeof i)throw new Error(".strictNamespace must be a boolean, or undefined");if("boolean"!=typeof p)throw new Error(".mjsStrictNamespace must be a boolean, or undefined");var w=function(e){return bg.expression.ast(zB||(zB=u(['\n (function(){\n throw new Error(\n "The CommonJS \'" + "','" + "\' variable is not available in ES6 modules." +\n "Consider setting setting sourceType:script or sourceType:unambiguous in your " +\n "Babel config for this file.");\n })()\n '])),e)},C={ReferencedIdentifier:function(e){var t=e.node.name;if("module"===t||"exports"===t){var r=e.scope.getBinding(t);this.scope.getBinding(t)!==r||e.parentPath.isObjectProperty({value:e.node})&&e.parentPath.parentPath.isObjectPattern()||e.parentPath.isAssignmentExpression({left:e.node})||e.isAssignmentExpression({left:e.node})||e.replaceWith(w(t))}},AssignmentExpression:function(e){var t=this,r=e.get("left");if(r.isIdentifier()){var n=e.node.name;if("module"!==n&&"exports"!==n)return;var s=e.scope.getBinding(n);if(this.scope.getBinding(n)!==s)return;var a=e.get("right");a.replaceWith(Ms([a.node,w(n)]))}else if(r.isPattern()){var i=r.getOuterBindingIdentifiers(),o=Object.keys(i).filter((function(r){return("module"===r||"exports"===r)&&t.scope.getBinding(r)===e.scope.getBinding(r)}))[0];if(o){var u=e.get("right");u.replaceWith(Ms([u.node,w(o)]))}}}};return{name:"transform-modules-commonjs",pre:function(){this.file.set("@babel/plugin-transform-modules-*","commonjs")},visitor:{CallExpression:function(e){if(this.file.has("@babel/plugin-proposal-dynamic-import")&&e.get("callee").isImport()){var t=e.scope;do{t.rename("require")}while(t=t.parent);s(this,e.get("callee"))}},Program:{exit:function(e,r){if(bE(e)){e.scope.rename("exports"),e.scope.rename("module"),e.scope.rename("require"),e.scope.rename("__filename"),e.scope.rename("__dirname"),x||(LE(e,new Set(["module","exports"])),e.traverse(C,{scope:e.scope}));var n=Tx(this.file.opts,t);n&&(n=Cs(n));for(var s,a=jx(e,{exportName:"exports",constantReexports:D,enumerableModuleMeta:A,strict:h,strictMode:m,allowTopLevelThis:d,noInterop:y,importInterop:g,lazy:b,esNamespaceOnly:"string"==typeof r.filename&&/\.mjs$/.test(r.filename)?p:i}),o=a.meta,v=a.headers,E=f(o.source);!(s=E()).done;){var w=l(s.value,2),S=w[0],T=w[1],j=ls(Ds("require"),[Cs(S)]),P=void 0;if(ox(T)){if(T.lazy)throw new Error("Assertion failure");P=ys(j)}else{var I=Ix(e,j,T.interop)||j;P=T.lazy?bg.ast(JB||(JB=u(["\n function ","() {\n const data = ",";\n "," = function(){ return data; };\n return data;\n }\n "])),T.name,I,T.name):bg.ast(YB||(YB=u(["\n var "," = ",";\n "])),T.name,I)}P.loc=T.loc,v.push(P),v.push.apply(v,c(Fx(o,T,D)))}Px(v),e.unshiftContainer("body",v)}}}}}})),e_=bg('\n SYSTEM_REGISTER(MODULE_NAME, SOURCES, function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) {\n "use strict";\n BEFORE_BODY;\n return {\n setters: SETTERS,\n execute: EXECUTE,\n };\n });\n'),t_=bg('\n for (var KEY in TARGET) {\n if (KEY !== "default" && KEY !== "__esModule") EXPORT_OBJ[KEY] = TARGET[KEY];\n }\n');function r_(e,t){if("Identifier"===e.type)return e.name;if("StringLiteral"===e.type){var r=e.value;return vr(r)||t.add(r),r}throw new Error("Expected export specifier to be either Identifier or StringLiteral, got "+e.type)}function n_(e,t,r,n,s,a){var i=[];if(s){var o=e.scope.generateUid("exportObj");i.push(Ks("var",[zs(Ds(o),Rs([]))])),i.push(t_({KEY:e.scope.generateUidIdentifier("key"),EXPORT_OBJ:Ds(o),TARGET:s}));for(var u=0;u<r.length;u++){var l=r[u],c=n[u];i.push(ys(rs("=",Fs(Ds(o),Ds(l)),c)))}i.push(ys(ls(t,[Ds(o)])))}else if(1===r.length)i.push(ys(ls(t,[Cs(r[0]),n[0]])));else{for(var p=[],d=0;d<r.length;d++){var f=r[d],h=n[d];p.push(Bs(a.has(f)?Cs(f):Ds(f),h))}i.push(ys(ls(t,[Rs(p)])))}return i}var s_=SF((function(e,t){e.assertVersion(7);var r=t.systemGlobal,n=void 0===r?"System":r,s=t.allowTopLevelThis,a=void 0!==s&&s,i=Symbol(),o={"AssignmentExpression|UpdateExpression":function(e){if(!e.node[i]){e.node[i]=!0;var t=e.get(e.isAssignmentExpression()?"left":"argument");if(t.isObjectPattern()||t.isArrayPattern()){for(var r=[e.node],n=0,s=Object.keys(t.getBindingIdentifiers());n<s.length;n++){var a=s[n];if(this.scope.getBinding(a)!==e.scope.getBinding(a))return;var o=this.exports[a];if(!o)return;for(var u,l=f(o);!(u=l()).done;){var c=u.value;r.push(this.buildCall(c,Ds(a)).expression)}}e.replaceWith(Ms(r))}else if(t.isIdentifier()){var p=t.node.name;if(this.scope.getBinding(p)===e.scope.getBinding(p)){var d=this.exports[p];if(d){var h=e.node,m=e.isUpdateExpression({prefix:!1});m&&(h=ns(h.operator[0],qs("+",Ju(h.argument)),Ss(1)));for(var y,g=f(d);!(y=g()).done;){var v=y.value;h=this.buildCall(v,h).expression}m&&(h=Ms([h,e.node])),e.replaceWith(h)}}}}}};return{name:"transform-modules-systemjs",pre:function(){this.file.set("@babel/plugin-transform-modules-*","systemjs")},visitor:{CallExpression:function(e,t){Ce(e.node.callee)&&(this.file.has("@babel/plugin-proposal-dynamic-import")||console.warn("WARNING: Dynamic import() transformation must be enabled using the\n @babel/plugin-proposal-dynamic-import plugin. Babel 8 will\n no longer transform import() without using that plugin.\n"),e.replaceWith(ls(Fs(Ds(t.contextIdent),Ds("import")),[UB.getImportSource(Pc,e.node)])))},MetaProperty:function(e,t){"import"===e.node.meta.name&&"meta"===e.node.property.name&&e.replaceWith(Fs(Ds(t.contextIdent),Ds("meta")))},ReferencedIdentifier:function(e,t){"__moduleName"!==e.node.name||e.scope.hasBinding("__moduleName")||e.replaceWith(Fs(Ds(t.contextIdent),Ds("id")))},Program:{enter:function(e,t){t.contextIdent=e.scope.generateUid("context"),t.stringSpecifiers=new Set,a||BE(e)},exit:function(e,r){var s=e.scope,a=s.generateUid("export"),i=r.contextIdent,u=r.stringSpecifiers,l=Object.create(null),c=[],p=[],d=[],h=[],m=[],y=[];function g(e,t){l[e]=l[e]||[],l[e].push(t)}function v(e,t,r){var n;c.forEach((function(t){t.key===e&&(n=t)})),n||c.push(n={key:e,imports:[],exports:[]}),n[t]=n[t].concat(r)}function b(e,t){return ys(ls(Ds(a),[Cs(e),t]))}for(var E,x=[],D=[],A=f(e.get("body"));!(E=A()).done;){var w=E.value;if(w.isFunctionDeclaration())p.push(w.node),y.push(w);else if(w.isClassDeclaration())m.push(Ju(w.node.id)),w.replaceWith(ys(rs("=",Ju(w.node.id),nc(w.node))));else if(w.isImportDeclaration()){v(w.node.source.value,"imports",w.node.specifiers);for(var C=0,S=Object.keys(w.getBindingIdentifiers());C<S.length;C++){var T=S[C];s.removeBinding(T),m.push(Ds(T))}w.remove()}else if(w.isExportAllDeclaration())v(w.node.source.value,"exports",w.node),w.remove();else if(w.isExportDefaultDeclaration()){var j=w.get("declaration"),I=j.node.id;j.isClassDeclaration()?I?(x.push("default"),D.push(s.buildUndefinedNode()),m.push(Ju(I)),g(I.name,"default"),w.replaceWith(ys(rs("=",Ju(I),nc(j.node))))):(x.push("default"),D.push(nc(j.node)),y.push(w)):j.isFunctionDeclaration()?(I?(p.push(j.node),x.push("default"),D.push(Ju(I)),g(I.name,"default")):(x.push("default"),D.push(nc(j.node))),y.push(w)):w.replaceWith(b("default",j.node))}else if(w.isExportNamedDeclaration()){var F=w.get("declaration");if(F.node)if(w.replaceWith(F),w.isFunction()){var k=F.node,O=k.id.name;g(O,O),p.push(k),x.push(O),D.push(Ju(k.id)),y.push(w)}else if(w.isClass()){var N=F.node.id.name;x.push(N),D.push(s.buildUndefinedNode()),m.push(Ju(F.node.id)),w.replaceWith(ys(rs("=",Ju(F.node.id),nc(F.node)))),g(N,N)}else for(var B=0,_=Object.keys(F.getBindingIdentifiers());B<_.length;B++){var L=_[B];g(L,L)}else{var M=w.node.specifiers;if(null!=M&&M.length)if(w.node.source)v(w.node.source.value,"exports",M),w.remove();else{for(var U,G=[],V=f(M);!(U=V()).done;){var W=U.value,H=W.local,X=W.exported,q=s.getBinding(H.name),$=r_(X,u);q&&P(q.path.node)?(x.push($),D.push(Ju(H))):q||G.push(b($,H)),g(H.name,$)}w.replaceWithMultiple(G)}else w.remove()}}}c.forEach((function(t){for(var r,n=[],i=s.generateUid(t.key),o=f(t.imports);!(r=o()).done;){var l=r.value;if(me(l)?n.push(ys(rs("=",l.local,Ds(i)))):he(l)&&(l=da(l.local,Ds("default"))),ye(l)){var c=l.imported;n.push(ys(rs("=",l.local,Fs(Ds(i),l.imported,"StringLiteral"===c.type))))}}if(t.exports.length){for(var p,m=[],y=[],g=!1,v=f(t.exports);!(p=v()).done;){var b=p.value;if(ue(b))g=!0;else if(pe(b)){var E=r_(b.exported,u);m.push(E),y.push(Fs(Ds(i),b.local,R(b.local)))}}n=n.concat(n_(e,Ds(a),m,y,g?Ds(i):null,u))}h.push(Cs(t.key)),d.push(xs(null,[Ds(i)],os(n)))}));var K=Tx(this.file.opts,t);K&&(K=Cs(K)),Gy(e,(function(e,t,r){if(m.push(e),!r&&t in l)for(var n,a=f(l[t]);!(n=a()).done;){var i=n.value;x.push(i),D.push(s.buildUndefinedNode())}}),null),m.length&&p.unshift(Ks("var",m.map((function(e){return zs(e)})))),x.length&&(p=p.concat(n_(e,Ds(a),x,D,null,u))),e.traverse(o,{exports:l,buildCall:b,scope:s});for(var z=0,J=y;z<J.length;z++){J[z].remove()}var Y=!1;e.traverse({AwaitExpression:function(e){Y=!0,e.stop()},Function:function(e){e.skip()},noScope:!0}),e.node.body=[e_({SYSTEM_REGISTER:Fs(Ds(n),Ds("register")),BEFORE_BODY:p,MODULE_NAME:K,SETTERS:ts(d),EXECUTE:xs(null,[],os(e.node.body),!1,Y),SOURCES:ts(h),EXPORT_IDENTIFIER:Ds(a),CONTEXT_IDENTIFIER:Ds(i)})]}}}}})),a_=bg("\n GLOBAL_REFERENCE = GLOBAL_REFERENCE || {}\n"),i_=bg('\n (function (global, factory) {\n if (typeof define === "function" && define.amd) {\n define(MODULE_NAME, AMD_ARGUMENTS, factory);\n } else if (typeof exports !== "undefined") {\n factory(COMMONJS_ARGUMENTS);\n } else {\n var mod = { exports: {} };\n factory(BROWSER_ARGUMENTS);\n\n GLOBAL_TO_ASSIGN;\n }\n })(\n typeof globalThis !== "undefined" ? globalThis\n : typeof self !== "undefined" ? self\n : this,\n function(IMPORT_NAMES) {\n })\n'),o_=SF((function(e,t){var r,n;e.assertVersion(7);var s=t.globals,a=t.exactGlobals,i=t.allowTopLevelThis,o=t.strict,u=t.strictMode,p=t.noInterop,d=t.importInterop,h=null!=(r=e.assumption("constantReexports"))?r:t.loose,m=null!=(n=e.assumption("enumerableModuleMeta"))?n:t.loose;function y(e,t,r,n){var s=n?n.value:ex(r,tx(r)),a=Fs(Ds("global"),Ds(ec(s))),i=[];if(t){var o=e[s];if(o){i=[];var u=o.split(".");a=u.slice(1).reduce((function(e,t){return i.push(a_({GLOBAL_REFERENCE:Ju(e)})),Fs(e,Ds(t))}),Fs(Ds("global"),Ds(u[0])))}}return i.push(ys(rs("=",a,Fs(Ds("mod"),Ds("exports"))))),i}function g(e,t,r){var n;if(t){var s=e[r];n=s?s.split(".").reduce((function(e,t){return Fs(e,Ds(t))}),Ds("global")):Fs(Ds("global"),Ds(ec(r)))}else{var a=ex(r,tx(r)),i=e[a]||a;n=Fs(Ds("global"),Ds(ec(i)))}return n}return{name:"transform-modules-umd",visitor:{Program:{exit:function(e){if(bE(e)){var r=s||{},n=Tx(this.file.opts,t);n&&(n=Cs(n));var v=jx(e,{constantReexports:h,enumerableModuleMeta:m,strict:o,strictMode:u,allowTopLevelThis:i,noInterop:p,importInterop:d}),b=v.meta,E=v.headers,x=[],D=[],A=[],w=[];ix(b)&&(x.push(Cs("exports")),D.push(Ds("exports")),A.push(Fs(Ds("mod"),Ds("exports"))),w.push(Ds(b.exportName)));for(var C,S=f(b.source);!(C=S()).done;){var T=l(C.value,2),j=T[0],P=T[1];if(x.push(Cs(j)),D.push(ls(Ds("require"),[Cs(j)])),A.push(g(r,a,j)),w.push(Ds(P.name)),!ox(P)){var I=Ix(e,Ds(P.name),P.interop);if(I){var F=ys(rs("=",Ds(P.name),I));F.loc=b.loc,E.push(F)}}E.push.apply(E,c(Fx(b,P,h)))}Px(E),e.unshiftContainer("body",E);var k=e.node,O=k.body,R=k.directives;e.node.directives=[],e.node.body=[];var N=e.pushContainer("body",[i_({MODULE_NAME:n,AMD_ARGUMENTS:ts(x),COMMONJS_ARGUMENTS:D,BROWSER_ARGUMENTS:A,IMPORT_NAMES:w,GLOBAL_TO_ASSIGN:y(r,a,this.filename||"unknown",n)})])[0].get("expression.arguments")[1].get("body");N.pushContainer("directives",R),N.pushContainer("body",O)}}}}}}));function u_(e,t){var r=t.runtime,n=void 0===r||r;if("boolean"!=typeof n)throw new Error("The 'runtime' option must be boolean");return kN({name:"transform-named-capturing-groups-regex",feature:"namedCaptureGroups",options:{runtime:n}})}var l_=SF((function(e){return e.assertVersion(7),{name:"transform-new-target",visitor:{MetaProperty:function(e){var t=e.get("meta"),r=e.get("property"),n=e.scope;if(t.isIdentifier({name:"new"})&&r.isIdentifier({name:"target"})){var s=e.findParent((function(e){return!!e.isClass()||!(!e.isFunction()||e.isArrowFunctionExpression())&&!e.isClassMethod({kind:"constructor"})}));if(!s)throw e.buildCodeFrameError("new.target must be under a (non-arrow) function or a class.");var a=s.node;if(!a.id){if(s.isMethod())return void e.replaceWith(n.buildUndefinedNode());a.id=n.generateUidIdentifier("target")}var i=Fs(Ws(),Ds("constructor"));if(s.isClass())return void e.replaceWith(i);e.replaceWith(ps(ns("instanceof",Ws(),Ju(a.id)),i,n.buildUndefinedNode()))}}}}})),c_=SF((function(e){return e.assertVersion(7),{name:"transform-object-assign",visitor:{CallExpression:function(e,t){e.get("callee").matchesPattern("Object.assign")&&(e.node.callee=t.addHelper("extends"))}}}}));var p_=SF((function(e){return e.assertVersion(7),{name:"transform-object-super",visitor:{ObjectExpression:function(e,t){var r,n=function(){return r=r||e.scope.generateUidIdentifier("obj")};e.get("properties").forEach((function(e){e.isMethod()&&function(e,t,r){new NE({getObjectRef:t,methodPath:e,file:r}).replace()}(e,n,t)})),r&&(e.scope.push({id:Ju(r)}),e.replaceWith(rs("=",Ju(r),e.node)))}}}})),d_=SF((function(e){return e.assertVersion(7),{name:"transform-object-set-prototype-of-to-assign",visitor:{CallExpression:function(e,t){e.get("callee").matchesPattern("Object.setPrototypeOf")&&(e.node.callee=t.addHelper("defaults"))}}}})),f_=SF((function(e){return e.assertVersion(7),{name:"transform-property-literals",visitor:{ObjectProperty:{exit:function(e){var t=e.node,r=t.key;t.computed||!F(r)||Sc(r.name)||(t.key=Cs(r.name))}}}}}));var h_=Function.prototype.call.bind(Object.prototype.hasOwnProperty);function m_(e,t,r,n,s){var a,i,o=lc(t),u={};if(h_(e,o)&&(u=e[o]),e[o]=u,u._inherits=u._inherits||[],u._inherits.push(t),u._key=t.key,t.computed&&(u._computed=!0),t.decorators){var l=u.decorators=u.decorators||ts([]);l.elements=l.elements.concat(t.decorators.map((function(e){return e.expression})).reverse())}if(u.value||u.initializer)throw n.buildCodeFrameError(t,"Key conflict with sibling node");(H(t)||W(t)||ge(t))&&(a=rc(t,t.key)),Ft(t)?i=t.value:(W(t)||ge(t))&&((i=xs(null,t.params,t.body,t.generator,t.async)).returnType=t.returnType);var c=function(e){return!ge(e)&&!W(e)||"get"!==e.kind&&"set"!==e.kind?"value":e.kind}(t);return r&&"value"===c||(r=c),s&&R(a)&&("value"===r||"initializer"===r)&&I(i)&&(i=wg({id:a,node:i,scope:s})),i&&(al(i,t),u[r]=i),u}function y_(e){return Object.keys(e).forEach((function(t){var r=e[t];r.value&&(r.writable=js(!0)),r.configurable=js(!0),r.enumerable=js(!0)})),function(e){var t=Rs([]);return Object.keys(e).forEach((function(r){var n=e[r],s=Rs([]),a=Bs(n._key,s,n._computed);Object.keys(n).forEach((function(e){var t=n[e];if("_"!==e[0]){var r=Bs(Ds(e),t);al(r,t),il(t),s.properties.push(r)}})),t.properties.push(a)})),t}(e)}var g_,v_=SF((function(e){return e.assertVersion(7),{name:"transform-property-mutators",visitor:{ObjectExpression:function(e,t){for(var r=e.node,n=!1,s=0,a=r.properties;s<a.length;s++){var i=a[s];if("get"===i.kind||"set"===i.kind){n=!0;break}}if(n){var o={};r.properties=r.properties.filter((function(e){return!!(e.computed||"get"!==e.kind&&"set"!==e.kind)||(m_(o,e,null,t),!1)})),e.replaceWith(ls(Fs(Ds("Object"),Ds("defineProperties")),[r,y_(o)]))}}}}})),b_=SF((function(e){function t(e){return Pt(rc(e,e.key),{value:"__proto__"})}function r(e){var t=e.left;return M(t)&&Pt(rc(t,t.property),{value:"__proto__"})}function n(e,t,r){return ys(ls(r.addHelper("defaults"),[t,e.right]))}return e.assertVersion(7),{name:"transform-proto-to-assign",visitor:{AssignmentExpression:function(e,t){if(r(e.node)){var s=[],a=e.node.left.object,i=e.scope.maybeGenerateMemoised(a);i&&s.push(ys(rs("=",i,a))),s.push(n(e.node,Ju(i||a),t)),i&&s.push(Ju(i)),e.replaceWithMultiple(s)}},ExpressionStatement:function(e,t){var s=e.node.expression;y(s,{operator:"="})&&r(s)&&e.replaceWith(n(s,s.left.object,t))},ObjectExpression:function(e,r){for(var n,s=e.node,a=s.properties,i=0;i<a.length;i++){var o=a[i];if(t(o)){n=o.value,a.splice(i,1);break}}if(n){var u=[Rs([]),n];s.properties.length&&u.push(s),e.replaceWith(ls(r.addHelper("extends"),u))}}}}})),E_=SF((function(e,t){e.assertVersion(7);var r=t.allowMutablePropsOnTags;if(null!=r&&!Array.isArray(r))throw new Error(".allowMutablePropsOnTags must be an array, null, or undefined.");var n=new WeakMap;function s(e,t){if(Je(e,{name:"this"})||Je(e,{name:"arguments"})||Je(e,{name:"super"})||Je(e,{name:"new"})){var r=t.path;return r.isFunctionParent()&&!r.isArrowFunctionExpression()}return t.hasOwnBinding(e.name)}function a(e){var t=e.path;return t.isFunctionParent()||t.isLoop()||t.isProgram()}function i(e){for(;!a(e);)e=e.parent;return e}var o={enter:function(e,t){var r=function(){t.isImmutable=!1,e.stop()};if(e.isJSXClosingElement())e.skip();else{if(e.isJSXIdentifier({name:"ref"})&&e.parentPath.isJSXAttribute({name:e.node}))return r();if(!(e.isJSXIdentifier()||e.isJSXMemberExpression()||e.isJSXNamespacedName())){if(e.isIdentifier()){var n=e.scope.getBinding(e.node.name);if(n&&n.constant)return}if(!e.isImmutable()){if(e.isPure()){var s=e.evaluate();if(s.confident){var a=s.value;if(!(!t.mutablePropsAllowed&&a&&"object"==typeof a||"function"==typeof a))return void e.skip()}else if(F(s.deopt))return}r()}}}},ReferencedIdentifier:function(e,t){for(var r=e.node,n=e.scope;n;){if(n===t.targetScope)return;if(s(r,n))break;n=n.parent}t.targetScope=i(n)}};return{name:"transform-react-constant-elements",visitor:{JSXElement:function(e){if(!n.has(e.node)){n.set(e.node,e.scope);var t=e.node.openingElement.name,s=!1;if(null!=r){for(var a=t;Ye(a);)a=a.property;var l=a.name;s=r.includes(l)}var c={isImmutable:!0,mutablePropsAllowed:s,targetScope:e.scope.getProgramParent()};if(e.traverse(o,c),c.isImmutable){var p,d=c.targetScope;n.set(e.node,d);for(var f=e;!p&&f.parentPath.isJSX();)f=f.parentPath,p=n.get(f.node);if(null!=p||(p=i(e.scope)),d!==p){var h=e.scope.generateUidBasedOnNode(t);d.push({id:Ds(h)});var m=bg.expression.ast(g_||(g_=u(["\n "," || ("," = ",")\n "])),Ds(h),Ds(h),e.node);(e.parentPath.isJSXElement()||e.parentPath.isJSXAttribute())&&(m=Wi(m)),e.replaceWith(m)}}}}}}})),x_=SF((function(e){function t(e,t){for(var r=t.arguments[0].properties,n=!0,s=0;s<r.length;s++){if(Pt(rc(r[s]),{value:"displayName"})){n=!1;break}}n&&r.unshift(Bs(Ds("displayName"),Cs(e)))}e.assertVersion(7);var r=Vt("React.createClass");function n(e){if(!e||!E(e))return!1;if(!r(e.callee)&&"createReactClass"!==e.callee.name)return!1;var t=e.arguments;return 1===t.length&&!!V(t[0])}return{name:"transform-react-display-name",visitor:{ExportDefaultDeclaration:function(e,r){var s=e.node;if(n(s.declaration)){var a=r.filename||"unknown",i=rx.basename(a,rx.extname(a));"index"===i&&(i=rx.basename(rx.dirname(a))),t(i,s.declaration)}},CallExpression:function(e){var r,s=e.node;n(s)&&(e.find((function(e){if(e.isAssignmentExpression())r=e.node.left;else if(e.isObjectProperty())r=e.node.key;else if(e.isVariableDeclarator())r=e.node.id;else if(e.isStatement())return!0;if(r)return!0})),r&&(M(r)&&(r=r.property),F(r)&&t(r.name,s)))}}}}));function D_(e){var t={JSXNamespacedName:function(t){if(e.throwIfNamespace)throw t.buildCodeFrameError("Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set `throwIfNamespace: false` to bypass this warning.")},JSXSpreadChild:function(e){throw e.buildCodeFrameError("Spread children are not supported in React.")}};return t.JSXElement={exit:function(t,a){var i=function(t,a){if(e.filter&&!e.filter(t.node,a))return;var i=t.get("openingElement");i.parent.children=jc.buildChildren(i.parent);var o,u=r(i.node.name,i.node),l=[];F(u)?o=u.name:Pt(u)&&(o=u.value);var p={tagExpr:u,tagName:o,args:l,pure:!1};e.pre&&e.pre(p,a);var d=i.node.attributes;d=d.length?function(e,t){var r=[],a=[],i=t.opts.useSpread,o=void 0!==i&&i;if("boolean"!=typeof o)throw new Error("transform-react-jsx currently only accepts a boolean option for useSpread (defaults to false)");var u=t.opts.useBuiltIns||!1;if("boolean"!=typeof u)throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");if(o&&u)throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread but not both");if(o){return Rs(e.map(n))}for(;e.length;){var l=e.shift();Ze(l)?(r=s(r,a),a.push(l.argument)):r.push(n(l))}if(s(r,a),1===a.length)e=a[0];else{V(a[0])||a.unshift(Rs([])),e=ls(u?Fs(Ds("Object"),Ds("assign")):t.addHelper("extends"),a)}return e}(d,a):Ts();l.push.apply(l,[d].concat(c(t.node.children))),e.post&&e.post(p,a);var f=p.call||ls(p.callee,l);p.pure&&ak(f);return f}(t,a);i&&t.replaceWith(yc(i,t.node))}},t.JSXFragment={exit:function(t,r){if(e.compat)throw t.buildCodeFrameError("Fragment tags are only supported in React 16 and up.");var n=function(t,r){if(e.filter&&!e.filter(t.node,r))return;var n=t.get("openingElement");n.parent.children=jc.buildChildren(n.parent);var s=[],a=null,i={tagExpr:r.get("jsxFragIdentifier")(),tagName:a,args:s,pure:!1};e.pre&&e.pre(i,r);s.push.apply(s,[Ts()].concat(c(t.node.children))),e.post&&e.post(i,r);r.set("usedFragment",!0);var o=i.call||ls(i.callee,s);i.pure&&ak(o);return o}(t,r);n&&t.replaceWith(yc(n,t.node))}},t;function r(e,t){if(Je(e)){if("this"===e.name&&Ac(e,t))return Ws();if(!Pr(e.name,!1))return Cs(e.name);e.type="Identifier"}else{if(Ye(e))return Fs(r(e.object,e),r(e.property,e));if(Qe(e))return Cs(e.namespace.name+":"+e.name.name)}return e}function n(e){var t,r=function(e){return ze(e)?e.expression:e}(e.value||js(!0));if(Ze(e))return ya(e.argument);R(r)&&!ze(e.value)&&(r.value=r.value.replace(/\n\s+/g," "),null==(t=r.extra)||delete t.raw);return Qe(e.name)?e.name=Cs(e.name.namespace.name+":"+e.name.name.name):Pr(e.name.name,!1)?e.name.type="Identifier":e.name=Cs(e.name.name),yc(Bs(e.name,r),e)}function s(e,t){return e.length?(t.push(Rs(e)),[]):e}}var A_=SF((function(e){function t(e,t){return qe(e)&&Je(e.name,{name:t})}return e.assertVersion(7),{name:"transform-react-inline-elements",visitor:D_({filter:function(e){return e.openingElement&&!function(e){for(var r=0;r<e.length;r++){var n=e[r];if(Ze(n))return!0;if(t(n,"ref"))return!0}return!1}(e.openingElement.attributes)},pre:function(e){var t=e.tagName,r=e.args;jc.isCompatTag(t)?r.push(Cs(t)):r.push(e.tagExpr)},post:function(e,t){e.callee=t.addHelper("jsx");var r=e.args[1],n=!1;if(V(r)){var s=r.properties.findIndex((function(e){return F(e.key,{name:"key"})}));s>-1&&(e.args.splice(2,0,r.properties[s].value),r.properties.splice(s,1),n=!0)}else B(r)&&e.args.splice(1,1,Rs([]));!n&&e.args.length>2&&e.args.splice(2,0,qs("void",Ss(0))),e.pure=!0}})}})),w_="react",C_="React.createElement",S_="React.Fragment",T_=/\*?\s*@jsxImportSource\s+([^\s]+)/,j_=/\*?\s*@jsxRuntime\s+([^\s]+)/,P_=/\*?\s*@jsx\s+([^\s]+)/,I_=/\*?\s*@jsxFrag\s+([^\s]+)/,F_=function(e,t){return e.get("@babel/plugin-react-jsx/"+t)},k_=function(e,t,r){return e.set("@babel/plugin-react-jsx/"+t,r)};function O_(e){var t=e.name,r=e.development;return SF((function(e,n){var s=n.pure,a=n.throwIfNamespace,i=void 0===a||a,o=n.filter,u=n.runtime,l=void 0===u?r?"automatic":"classic":u,p=n.importSource,d=void 0===p?w_:p,h=n.pragma,m=void 0===h?C_:h,y=n.pragmaFrag,g=void 0===y?S_:y,v=n.useSpread,b=void 0!==v&&v,E=n.useBuiltIns,x=void 0!==E&&E;if("classic"===l){if("boolean"!=typeof b)throw new Error("transform-react-jsx currently only accepts a boolean option for useSpread (defaults to false)");if("boolean"!=typeof x)throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");if(b&&x)throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread but not both")}var D={JSXOpeningElement:function(e,t){for(var r,n=f(e.get("attributes"));!(r=n()).done;){var s=r.value;if(s.isJSXElement()){var a=s.node.name.name;if("__source"===a||"__self"===a)throw e.buildCodeFrameError("__source and __self should not be defined in props and are reserved for internal usage.")}}var i=Mi(Xi("__self"),Wi(Ws())),o=Mi(Xi("__source"),Wi(function(e,t){var r=e.node.loc;if(!r)return e.scope.buildUndefinedNode();if(!t.fileNameIdentifier){var n=t.filename,s=void 0===n?"":n,a=e.scope.generateUidIdentifier("_jsxFileName"),i=e.hub.getScope();i&&i.push({id:a,init:Cs(s)}),t.fileNameIdentifier=a}return function(e,t,r){var n=null!=t?Ss(t):Ts(),s=null!=r?Ss(r+1):Ts(),a=Bs(Ds("fileName"),e),i=Bs(Ds("lineNumber"),n),o=Bs(Ds("columnNumber"),s);return Rs([a,i,o])}(Ju(t.fileNameIdentifier),r.start.line,r.start.column)}(e,t)));e.pushContainer("attributes",[i,o])}};return{name:t,inherits:XF,visitor:{JSXNamespacedName:function(e){if(i)throw e.buildCodeFrameError("Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set `throwIfNamespace: false` to bypass this warning.")},JSXSpreadChild:function(e){throw e.buildCodeFrameError("Spread children are not supported in React.")},Program:{enter:function(e,t){var s=t.file,a=l,i=d,o=m,u=g,c=!!n.importSource,p=!!n.pragma,h=!!n.pragmaFrag;if(s.ast.comments)for(var y,v=f(s.ast.comments);!(y=v()).done;){var b=y.value,E=T_.exec(b.value);E&&(i=E[1],c=!0);var x=j_.exec(b.value);x&&(a=x[1]);var A=P_.exec(b.value);A&&(o=A[1],p=!0);var w=I_.exec(b.value);w&&(u=w[1],h=!0)}if(k_(t,"runtime",a),"classic"===a){if(c)throw e.buildCodeFrameError("importSource cannot be set when runtime is classic.");var C=R_(o),S=R_(u);k_(t,"id/createElement",(function(){return Ju(C)})),k_(t,"id/fragment",(function(){return Ju(S)})),k_(t,"defaultPure",o===C_)}else{if("automatic"!==a)throw e.buildCodeFrameError('Runtime must be either "classic" or "automatic".');if(p||h)throw e.buildCodeFrameError("pragma and pragmaFrag cannot be set when runtime is automatic.");var T=function(n,s){return k_(t,n,function(e,t,n,s){return function(){var a=function(e,t){switch(t){case"Fragment":return e+"/"+(r?"jsx-dev-runtime":"jsx-runtime");case"jsxDEV":return e+"/jsx-dev-runtime";case"jsx":case"jsxs":return e+"/jsx-runtime";case"createElement":return e}}(s,n);if(bE(t)){var i=F_(e,"imports/"+n);return i?Ju(i):(i=xE(t,n,a,{importedInterop:"uncompiled",importPosition:"after"}),k_(e,"imports/"+n,i),i)}var o=F_(e,"requires/"+a);return o?o=Ju(o):(o=function(e,t,r){return new EE(e).addNamespace(t,r)}(t,a,{importedInterop:"uncompiled"}),k_(e,"requires/"+a,o)),Fs(o,Ds(n))}}(t,e,s,i))};T("id/jsx",r?"jsxDEV":"jsx"),T("id/jsxs",r?"jsxDEV":"jsxs"),T("id/createElement","createElement"),T("id/fragment","Fragment"),k_(t,"defaultPure",i===w_)}r&&e.traverse(D,t)}},JSXElement:{exit:function(e,t){var n;n="classic"===F_(t,"runtime")||function(e){for(var t=e.get("openingElement").node.attributes,r=!1,n=0;n<t.length;n++){var s=t[n];if(r&&qe(s)&&"key"===s.name.name)return!0;Ze(s)&&(r=!0)}return!1}(e)?function(e,t){var r=e.get("openingElement");return A(t,"createElement",[j(r),P(t,e,r.get("attributes"))].concat(c(jc.buildChildren(e.node))))}(e,t):function(e,t){for(var n,s=e.get("openingElement"),a=[j(s)],i=[],o=Object.create(null),u=f(s.get("attributes"));!(n=u()).done;){var l=n.value;if(l.isJSXAttribute()&&Je(l.node.name)){var c=l.node.name.name;switch(c){case"__source":case"__self":if(o[c])throw N_(e,c);case"key":var p=C(l.node.value);if(null===p)throw l.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');o[c]=p;break;default:i.push(l)}}else i.push(l)}var d,h,m,y,g=jc.buildChildren(e.node);d=i.length||g.length?function(e,t,r){var n=e.reduce(S,[]);(null==r?void 0:r.length)>0&&n.push(T(r));return Rs(n)}(i,0,g):Rs([]);a.push(d),r?a.push(null!=(h=o.key)?h:e.scope.buildUndefinedNode(),js(g.length>1),null!=(m=o.__source)?m:e.scope.buildUndefinedNode(),null!=(y=o.__self)?y:Ws()):void 0!==o.key&&a.push(o.key);return A(t,g.length>1?"jsxs":"jsx",a)}(e,t),e.replaceWith(yc(n,e.node))}},JSXFragment:{exit:function(e,t){var n;n="classic"===F_(t,"runtime")?function(e,t){if(o&&!o(e.node,t))return;return A(t,"createElement",[F_(t,"id/fragment")(),Ts()].concat(c(jc.buildChildren(e.node))))}(e,t):function(e,t){var n=[F_(t,"id/fragment")()],s=jc.buildChildren(e.node);n.push(Rs(s.length>0?[T(s)]:[])),r&&n.push(e.scope.buildUndefinedNode(),js(s.length>1));return A(t,s.length>1?"jsxs":"jsx",n)}(e,t),e.replaceWith(yc(n,e.node))}},JSXAttribute:function(e){$e(e.node.value)&&(e.node.value=Wi(e.node.value))}}};function A(e,t,r){var n=ls(F_(e,"id/"+t)(),r);return(null!=s?s:F_(e,"defaultPure"))&&ak(n),n}function w(e,t){if(Je(e)){if("this"===e.name&&Ac(e,t))return Ws();if(!Pr(e.name,!1))return Cs(e.name);e.type="Identifier"}else{if(Ye(e))return Fs(w(e.object,e),w(e.property,e));if(Qe(e))return Cs(e.namespace.name+":"+e.name.name)}return e}function C(e){return ze(e)?e.expression:e}function S(e,t){if(Ze(t.node)){var r=t.node.argument;return V(r)?e.push.apply(e,c(r.properties)):e.push(ya(r)),e}var n,s=C("key"!==t.node.name.name?t.node.value||js(!0):t.node.value);if("key"===t.node.name.name&&null===s)throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');R(s)&&!ze(t.node.value)&&(s.value=s.value.replace(/\n\s+/g," "),null==(n=s.extra)||delete n.raw);return Qe(t.node.name)?t.node.name=Cs(t.node.name.namespace.name+":"+t.node.name.name.name):Pr(t.node.name.name,!1)?t.node.name.type="Identifier":t.node.name=Cs(t.node.name.name),e.push(yc(Bs(t.node.name,s),t.node)),e}function T(e){var t;if(1===e.length)t=e[0];else{if(!(e.length>1))return;t=ts(e)}return Bs(Ds("children"),t)}function j(e){var t,r=w(e.node.name,e.node);return F(r)?t=r.name:Pt(r)&&(t=r.value),jc.isCompatTag(t)?Cs(t):r}function P(e,t,r){var n=F_(e,"runtime");if("automatic"!==n){var s=[],a=r.reduce(S,[]);if(b)a.length&&s.push(Rs(a));else{var i=0;a.forEach((function(e,t){be(e)&&(t>i&&s.push(Rs(a.slice(i,t))),s.push(e.argument),i=t+1)})),a.length>i&&s.push(Rs(a.slice(i)))}return s.length?1===s.length?s[0]:(V(s[0])||s.unshift(Rs([])),ls(x?Fs(Ds("Object"),Ds("assign")):e.addHelper("extends"),s)):Ts()}for(var o,u=[],l=Object.create(null),c=f(r);!(o=c()).done;){var p=o.value,d=qe(p)&&Je(p.name)&&p.name.name;if("automatic"===n&&("__source"===d||"__self"===d)){if(l[d])throw N_(t,d);l[d]=!0}S(u,p)}return 1===u.length&&be(u[0])?u[0].argument:u.length>0?Rs(u):Ts()}}))}function R_(e){return e.split(".").map((function(e){return Ds(e)})).reduce((function(e,t){return Fs(e,t)}))}function N_(e,t){var r="transform-react-jsx-"+t.slice(2);return e.buildCodeFrameError("Duplicate "+t+" prop found. You are most likely using the deprecated "+r+" Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.")}var B_=O_({name:"transform-react-jsx",development:!1}),__=SF((function(e){return e.assertVersion(7),{name:"transform-react-jsx-compat",manipulateOptions:function(e,t){t.plugins.push("jsx")},visitor:D_({pre:function(e){e.callee=e.tagExpr},post:function(e){jc.isCompatTag(e.tagName)&&(e.call=ls(Fs(Fs(Ds("React"),Ds("DOM")),e.tagExpr,Pt(e.tagExpr)),e.args))},compat:!0})}})),L_=O_({name:"transform-react-jsx/development",development:!0}),M_=SF((function(e){e.assertVersion(7);var t={JSXOpeningElement:function(e){var t=e.node,r=Xi("__self"),n=Ws();t.attributes.push(Mi(r,Wi(n)))}};return{name:"transform-react-jsx-self",visitor:{Program:function(e){e.traverse(t)}}}})),U_="__source",G_=SF((function(e){return e.assertVersion(7),{name:"transform-react-jsx-source",visitor:{JSXOpeningElement:function(e,t){var r=Xi(U_),n=e.container.openingElement.loc;if(n){for(var s=e.container.openingElement.attributes,a=0;a<s.length;a++){var i=s[a].name;if((null==i?void 0:i.name)===U_)return}if(!t.fileNameIdentifier){var o=t.filename||"",u=e.scope.generateUidIdentifier("_jsxFileName"),l=e.hub.getScope();l&&l.push({id:u,init:Cs(o)}),t.fileNameIdentifier=u}var c=function(e,t,r){var n=null!=t?Ss(t):Ts(),s=null!=r?Ss(r+1):Ts();return Rs([Bs(Ds("fileName"),e),Bs(Ds("lineNumber"),n),Bs(Ds("columnNumber"),s)])}(Ju(t.fileNameIdentifier),n.start.line,n.start.column);s.push(Mi(r,Wi(c)))}}}}})),V_=zt((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),"/$$rollup_base$$/node_modules/@babel/runtime/helpers"),W_=zt((function(e){var t=V_.default;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}e.exports=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==t(e)&&"function"!=typeof e)return{default:e};var s=r(n);if(s&&s.has(e))return s.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(a,o,u):a[o]=e[o]}return a.default=e,s&&s.set(e,a),a},e.exports.default=e.exports,e.exports.__esModule=!0}),"/$$rollup_base$$/node_modules/@babel/runtime/helpers"),H_=zt((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0}),"/$$rollup_base$$/node_modules/@babel/runtime/helpers"),X_=function(e,t){return function(){var r=J_;J_=e;try{for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return t.apply(this,s)}finally{J_=r}}},q_=Y_,$_=function(e){var t=Y_();return t.memberExpression(t.identifier("regeneratorRuntime"),t.identifier(e),!1)},K_=function(e){return e.isReferenced()||e.parentPath.isAssignmentExpression({left:e.node})},z_=function(e,t){t?e.replaceWith(t):e.remove()},J_=null;function Y_(){return J_}var Q_=Object.defineProperty({wrapWithTypes:X_,getTypes:q_,runtimeProperty:$_,isReference:K_,replaceWithOrRemove:z_},"__esModule",{value:!0}),Z_=W_(Q_),eL=Object.prototype.hasOwnProperty,tL=function(e){var t=Z_.getTypes();t.assertFunction(e.node);var r={};function n(e,n){var s=e.node,a=e.scope;t.assertVariableDeclaration(s);var i=[];return s.declarations.forEach((function(e){r[e.id.name]=t.identifier(e.id.name),a.removeBinding(e.id.name),e.init?i.push(t.assignmentExpression("=",e.id,e.init)):n&&i.push(e.id)})),0===i.length?null:1===i.length?i[0]:t.sequenceExpression(i)}e.get("body").traverse({VariableDeclaration:{exit:function(e){var r=n(e,!1);null===r?e.remove():Z_.replaceWithOrRemove(e,t.expressionStatement(r)),e.skip()}},ForStatement:function(e){var t=e.get("init");t.isVariableDeclaration()&&Z_.replaceWithOrRemove(t,n(t,!1))},ForXStatement:function(e){var t=e.get("left");t.isVariableDeclaration()&&Z_.replaceWithOrRemove(t,n(t,!0))},FunctionDeclaration:function(e){var n=e.node;r[n.id.name]=n.id;var s=t.expressionStatement(t.assignmentExpression("=",t.clone(n.id),t.functionExpression(e.scope.generateUidIdentifierBasedOnNode(n),n.params,n.body,n.generator,n.expression)));e.parentPath.isBlockStatement()?(e.parentPath.unshiftContainer("body",s),e.remove()):Z_.replaceWithOrRemove(e,s),e.scope.removeBinding(n.id.name),e.skip()},FunctionExpression:function(e){e.skip()},ArrowFunctionExpression:function(e){e.skip()}});var s={};e.get("params").forEach((function(e){var r=e.node;t.isIdentifier(r)&&(s[r.name]=r)}));var a=[];return Object.keys(r).forEach((function(e){eL.call(s,e)||a.push(t.variableDeclarator(r[e],null))})),0===a.length?null:t.variableDeclaration("var",a)},rL=H_(gE);function nL(){rL.default.ok(this instanceof nL)}function sL(e){nL.call(this),(0,Q_.getTypes)().assertLiteral(e),this.returnLoc=e}(0,yE.inherits)(sL,nL);var aL=sL;function iL(e,t,r){nL.call(this);var n=(0,Q_.getTypes)();n.assertLiteral(e),n.assertLiteral(t),r?n.assertIdentifier(r):r=null,this.breakLoc=e,this.continueLoc=t,this.label=r}(0,yE.inherits)(iL,nL);var oL=iL;function uL(e){nL.call(this),(0,Q_.getTypes)().assertLiteral(e),this.breakLoc=e}(0,yE.inherits)(uL,nL);var lL=uL;function cL(e,t,r){nL.call(this),(0,Q_.getTypes)().assertLiteral(e),t?rL.default.ok(t instanceof dL):t=null,r?rL.default.ok(r instanceof hL):r=null,rL.default.ok(t||r),this.firstLoc=e,this.catchEntry=t,this.finallyEntry=r}(0,yE.inherits)(cL,nL);var pL=cL;function dL(e,t){nL.call(this);var r=(0,Q_.getTypes)();r.assertLiteral(e),r.assertIdentifier(t),this.firstLoc=e,this.paramId=t}(0,yE.inherits)(dL,nL);var fL=dL;function hL(e,t){nL.call(this);var r=(0,Q_.getTypes)();r.assertLiteral(e),r.assertLiteral(t),this.firstLoc=e,this.afterLoc=t}(0,yE.inherits)(hL,nL);var mL=hL;function yL(e,t){nL.call(this);var r=(0,Q_.getTypes)();r.assertLiteral(e),r.assertIdentifier(t),this.breakLoc=e,this.label=t}(0,yE.inherits)(yL,nL);var gL=yL;function vL(e){rL.default.ok(this instanceof vL),rL.default.ok(e instanceof sM.Emitter),this.emitter=e,this.entryStack=[new sL(e.finalLoc)]}var bL=vL.prototype,EL=vL;bL.withEntry=function(e,t){rL.default.ok(e instanceof nL),this.entryStack.push(e);try{t.call(this.emitter)}finally{var r=this.entryStack.pop();rL.default.strictEqual(r,e)}},bL._findLeapLocation=function(e,t){for(var r=this.entryStack.length-1;r>=0;--r){var n=this.entryStack[r],s=n[e];if(s)if(t){if(n.label&&n.label.name===t.name)return s}else if(!(n instanceof yL))return s}return null},bL.getBreakLoc=function(e){return this._findLeapLocation("breakLoc",e)},bL.getContinueLoc=function(e){return this._findLeapLocation("continueLoc",e)};var xL={FunctionEntry:aL,LoopEntry:oL,SwitchEntry:lL,TryEntry:pL,CatchEntry:fL,FinallyEntry:mL,LabeledEntry:gL,LeapManager:EL},DL=Object,AL=Object.defineProperty,wL=Object.create;function CL(e,t,r){if(AL)try{AL.call(DL,e,t,{value:r})}catch(n){e[t]=r}else e[t]=r}function SL(e){return e&&(CL(e,"call",e.call),CL(e,"apply",e.apply)),e}SL(AL),SL(wL);var TL=SL(Object.prototype.hasOwnProperty),jL=SL(Number.prototype.toString),PL=SL(String.prototype.slice),IL=function(){};function FL(e){return wL?wL.call(DL,e):(IL.prototype=e||null,new IL)}var kL=Math.random,OL=FL(null);function RL(){do{var e=NL(PL.call(jL.call(kL(),36),2))}while(TL.call(OL,e));return OL[e]=e}function NL(e){var t={};return t[e]=!0,Object.keys(t)[0]}var BL=Object.getOwnPropertyNames;function _L(e){return FL(null)}Object.getOwnPropertyNames=function(e){for(var t=BL(e),r=0,n=0,s=t.length;r<s;++r)TL.call(OL,t[r])||(r>n&&(t[n]=t[r]),++n);return t.length=n,t};var LL=function(e){var t=RL(),r=FL(null);function n(n){return TL.call(n,t)||function(n){var s;CL(n,t,(function(t,a){if(t===r)return a?s=null:s||(s=e(n))}))}(n),n[t](r)}return e=e||_L,n.forget=function(e){TL.call(e,t)&&e[t](r,!0)},n},ML=H_(gE),UL=LL(),GL=Object.prototype.hasOwnProperty;function VL(e,t){function r(e){var t=(0,Q_.getTypes)();t.assertNode(e);var r=!1;function s(e){return r||(Array.isArray(e)?e.some(s):t.isNode(e)&&(ML.default.strictEqual(r,!1),r=n(e))),r}var a=t.VISITOR_KEYS[e.type];if(a)for(var i=0;i<a.length;i++){s(e[a[i]])}return r}function n(n){(0,Q_.getTypes)().assertNode(n);var s=UL(n);return GL.call(s,e)?s[e]:GL.call(WL,n.type)?s[e]=!1:GL.call(t,n.type)?s[e]=!0:s[e]=r(n)}return n.onlyChildren=r,n}var WL={FunctionExpression:!0,ArrowFunctionExpression:!0},HL={CallExpression:!0,ForInStatement:!0,UnaryExpression:!0,BinaryExpression:!0,AssignmentExpression:!0,UpdateExpression:!0,NewExpression:!0},XL={YieldExpression:!0,BreakStatement:!0,ContinueStatement:!0,ReturnStatement:!0,ThrowStatement:!0};for(var qL in XL)GL.call(XL,qL)&&(HL[qL]=XL[qL]);var $L={hasSideEffects:VL("hasSideEffects",HL),containsLeap:VL("containsLeap",XL)},KL=H_(gE),zL=W_(xL),JL=W_($L),YL=W_(Q_),QL=Object.prototype.hasOwnProperty;function ZL(e){KL.default.ok(this instanceof ZL),YL.getTypes().assertIdentifier(e),this.nextTempId=0,this.contextId=e,this.listing=[],this.marked=[!0],this.insertedLocs=new Set,this.finalLoc=this.loc(),this.tryEntries=[],this.leapManager=new zL.LeapManager(this)}var eM=ZL.prototype,tM=ZL;function rM(e){return new Error("all declarations should have been transformed into assignments before the Exploder began its work: "+JSON.stringify(e))}eM.loc=function(){var e=YL.getTypes().numericLiteral(-1);return this.insertedLocs.add(e),e},eM.getInsertedLocs=function(){return this.insertedLocs},eM.getContextId=function(){return YL.getTypes().clone(this.contextId)},eM.mark=function(e){YL.getTypes().assertLiteral(e);var t=this.listing.length;return-1===e.value?e.value=t:KL.default.strictEqual(e.value,t),this.marked[t]=!0,e},eM.emit=function(e){var t=YL.getTypes();t.isExpression(e)&&(e=t.expressionStatement(e)),t.assertStatement(e),this.listing.push(e)},eM.emitAssign=function(e,t){return this.emit(this.assign(e,t)),e},eM.assign=function(e,t){var r=YL.getTypes();return r.expressionStatement(r.assignmentExpression("=",r.cloneDeep(e),t))},eM.contextProperty=function(e,t){var r=YL.getTypes();return r.memberExpression(this.getContextId(),t?r.stringLiteral(e):r.identifier(e),!!t)},eM.stop=function(e){e&&this.setReturnValue(e),this.jump(this.finalLoc)},eM.setReturnValue=function(e){YL.getTypes().assertExpression(e.value),this.emitAssign(this.contextProperty("rval"),this.explodeExpression(e))},eM.clearPendingException=function(e,t){var r=YL.getTypes();r.assertLiteral(e);var n=r.callExpression(this.contextProperty("catch",!0),[r.clone(e)]);t?this.emitAssign(t,n):this.emit(n)},eM.jump=function(e){this.emitAssign(this.contextProperty("next"),e),this.emit(YL.getTypes().breakStatement())},eM.jumpIf=function(e,t){var r=YL.getTypes();r.assertExpression(e),r.assertLiteral(t),this.emit(r.ifStatement(e,r.blockStatement([this.assign(this.contextProperty("next"),t),r.breakStatement()])))},eM.jumpIfNot=function(e,t){var r,n=YL.getTypes();n.assertExpression(e),n.assertLiteral(t),r=n.isUnaryExpression(e)&&"!"===e.operator?e.argument:n.unaryExpression("!",e),this.emit(n.ifStatement(r,n.blockStatement([this.assign(this.contextProperty("next"),t),n.breakStatement()])))},eM.makeTempVar=function(){return this.contextProperty("t"+this.nextTempId++)},eM.getContextFunction=function(e){var t=YL.getTypes();return t.functionExpression(e||null,[this.getContextId()],t.blockStatement([this.getDispatchLoop()]),!1,!1)},eM.getDispatchLoop=function(){var e,t=this,r=YL.getTypes(),n=[],s=!1;return t.listing.forEach((function(a,i){t.marked.hasOwnProperty(i)&&(n.push(r.switchCase(r.numericLiteral(i),e=[])),s=!1),s||(e.push(a),r.isCompletionStatement(a)&&(s=!0))})),this.finalLoc.value=this.listing.length,n.push(r.switchCase(this.finalLoc,[]),r.switchCase(r.stringLiteral("end"),[r.returnStatement(r.callExpression(this.contextProperty("stop"),[]))])),r.whileStatement(r.numericLiteral(1),r.switchStatement(r.assignmentExpression("=",this.contextProperty("prev"),this.contextProperty("next")),n))},eM.getTryLocsList=function(){if(0===this.tryEntries.length)return null;var e=YL.getTypes(),t=0;return e.arrayExpression(this.tryEntries.map((function(r){var n=r.firstLoc.value;KL.default.ok(n>=t,"try entries out of order"),t=n;var s=r.catchEntry,a=r.finallyEntry,i=[r.firstLoc,s?s.firstLoc:null];return a&&(i[2]=a.firstLoc,i[3]=a.afterLoc),e.arrayExpression(i.map((function(t){return t&&e.clone(t)})))})))},eM.explode=function(e,t){var r=YL.getTypes(),n=e.node,s=this;if(r.assertNode(n),r.isDeclaration(n))throw rM(n);if(r.isStatement(n))return s.explodeStatement(e);if(r.isExpression(n))return s.explodeExpression(e,t);switch(n.type){case"Program":return e.get("body").map(s.explodeStatement,s);case"VariableDeclarator":throw rM(n);case"Property":case"SwitchCase":case"CatchClause":throw new Error(n.type+" nodes should be handled by their parents");default:throw new Error("unknown Node of type "+JSON.stringify(n.type))}},eM.explodeStatement=function(e,t){var r,n,s,a=YL.getTypes(),i=e.node,o=this;if(a.assertStatement(i),t?a.assertIdentifier(t):t=null,a.isBlockStatement(i))e.get("body").forEach((function(e){o.explodeStatement(e)}));else if(JL.containsLeap(i))switch(i.type){case"ExpressionStatement":o.explodeExpression(e.get("expression"),!0);break;case"LabeledStatement":n=this.loc(),o.leapManager.withEntry(new zL.LabeledEntry(n,i.label),(function(){o.explodeStatement(e.get("body"),i.label)})),o.mark(n);break;case"WhileStatement":r=this.loc(),n=this.loc(),o.mark(r),o.jumpIfNot(o.explodeExpression(e.get("test")),n),o.leapManager.withEntry(new zL.LoopEntry(n,r,t),(function(){o.explodeStatement(e.get("body"))})),o.jump(r),o.mark(n);break;case"DoWhileStatement":var u=this.loc(),l=this.loc();n=this.loc(),o.mark(u),o.leapManager.withEntry(new zL.LoopEntry(n,l,t),(function(){o.explode(e.get("body"))})),o.mark(l),o.jumpIf(o.explodeExpression(e.get("test")),u),o.mark(n);break;case"ForStatement":s=this.loc();var c=this.loc();n=this.loc(),i.init&&o.explode(e.get("init"),!0),o.mark(s),i.test&&o.jumpIfNot(o.explodeExpression(e.get("test")),n),o.leapManager.withEntry(new zL.LoopEntry(n,c,t),(function(){o.explodeStatement(e.get("body"))})),o.mark(c),i.update&&o.explode(e.get("update"),!0),o.jump(s),o.mark(n);break;case"TypeCastExpression":return o.explodeExpression(e.get("expression"));case"ForInStatement":s=this.loc(),n=this.loc();var p=o.makeTempVar();o.emitAssign(p,a.callExpression(YL.runtimeProperty("keys"),[o.explodeExpression(e.get("right"))])),o.mark(s);var d=o.makeTempVar();o.jumpIf(a.memberExpression(a.assignmentExpression("=",d,a.callExpression(a.cloneDeep(p),[])),a.identifier("done"),!1),n),o.emitAssign(i.left,a.memberExpression(a.cloneDeep(d),a.identifier("value"),!1)),o.leapManager.withEntry(new zL.LoopEntry(n,s,t),(function(){o.explodeStatement(e.get("body"))})),o.jump(s),o.mark(n);break;case"BreakStatement":o.emitAbruptCompletion({type:"break",target:o.leapManager.getBreakLoc(i.label)});break;case"ContinueStatement":o.emitAbruptCompletion({type:"continue",target:o.leapManager.getContinueLoc(i.label)});break;case"SwitchStatement":var f=o.emitAssign(o.makeTempVar(),o.explodeExpression(e.get("discriminant")));n=this.loc();for(var h=this.loc(),m=h,y=[],g=i.cases||[],v=g.length-1;v>=0;--v){var b=g[v];a.assertSwitchCase(b),b.test?m=a.conditionalExpression(a.binaryExpression("===",a.cloneDeep(f),b.test),y[v]=this.loc(),m):y[v]=h}var E=e.get("discriminant");YL.replaceWithOrRemove(E,m),o.jump(o.explodeExpression(E)),o.leapManager.withEntry(new zL.SwitchEntry(n),(function(){e.get("cases").forEach((function(e){var t=e.key;o.mark(y[t]),e.get("consequent").forEach((function(e){o.explodeStatement(e)}))}))})),o.mark(n),-1===h.value&&(o.mark(h),KL.default.strictEqual(n.value,h.value));break;case"IfStatement":var x=i.alternate&&this.loc();n=this.loc(),o.jumpIfNot(o.explodeExpression(e.get("test")),x||n),o.explodeStatement(e.get("consequent")),x&&(o.jump(n),o.mark(x),o.explodeStatement(e.get("alternate"))),o.mark(n);break;case"ReturnStatement":o.emitAbruptCompletion({type:"return",value:o.explodeExpression(e.get("argument"))});break;case"WithStatement":throw new Error("WithStatement not supported in generator functions.");case"TryStatement":n=this.loc();var D=i.handler,A=D&&this.loc(),w=A&&new zL.CatchEntry(A,D.param),C=i.finalizer&&this.loc(),S=C&&new zL.FinallyEntry(C,n),T=new zL.TryEntry(o.getUnmarkedCurrentLoc(),w,S);o.tryEntries.push(T),o.updateContextPrevLoc(T.firstLoc),o.leapManager.withEntry(T,(function(){if(o.explodeStatement(e.get("block")),A){C?o.jump(C):o.jump(n),o.updateContextPrevLoc(o.mark(A));var t=e.get("handler.body"),r=o.makeTempVar();o.clearPendingException(T.firstLoc,r),t.traverse(nM,{getSafeParam:function(){return a.cloneDeep(r)},catchParamName:D.param.name}),o.leapManager.withEntry(w,(function(){o.explodeStatement(t)}))}C&&(o.updateContextPrevLoc(o.mark(C)),o.leapManager.withEntry(S,(function(){o.explodeStatement(e.get("finalizer"))})),o.emit(a.returnStatement(a.callExpression(o.contextProperty("finish"),[S.firstLoc]))))})),o.mark(n);break;case"ThrowStatement":o.emit(a.throwStatement(o.explodeExpression(e.get("argument"))));break;default:throw new Error("unknown Statement of type "+JSON.stringify(i.type))}else o.emit(i)};var nM={Identifier:function(e,t){e.node.name===t.catchParamName&&YL.isReference(e)&&YL.replaceWithOrRemove(e,t.getSafeParam())},Scope:function(e,t){e.scope.hasOwnBinding(t.catchParamName)&&e.skip()}};eM.emitAbruptCompletion=function(e){(function(e){var t=e.type;if("normal"===t)return!QL.call(e,"target");if("break"===t||"continue"===t)return!QL.call(e,"value")&&YL.getTypes().isLiteral(e.target);if("return"===t||"throw"===t)return QL.call(e,"value")&&!QL.call(e,"target");return!1})(e)||KL.default.ok(!1,"invalid completion record: "+JSON.stringify(e)),KL.default.notStrictEqual(e.type,"normal","normal completions are not abrupt");var t=YL.getTypes(),r=[t.stringLiteral(e.type)];"break"===e.type||"continue"===e.type?(t.assertLiteral(e.target),r[1]=this.insertedLocs.has(e.target)?e.target:t.cloneDeep(e.target)):"return"!==e.type&&"throw"!==e.type||e.value&&(t.assertExpression(e.value),r[1]=this.insertedLocs.has(e.value)?e.value:t.cloneDeep(e.value)),this.emit(t.returnStatement(t.callExpression(this.contextProperty("abrupt"),r)))},eM.getUnmarkedCurrentLoc=function(){return YL.getTypes().numericLiteral(this.listing.length)},eM.updateContextPrevLoc=function(e){var t=YL.getTypes();e?(t.assertLiteral(e),-1===e.value?e.value=this.listing.length:KL.default.strictEqual(e.value,this.listing.length)):e=this.getUnmarkedCurrentLoc(),this.emitAssign(this.contextProperty("prev"),e)},eM.explodeExpression=function(e,t){var r=YL.getTypes(),n=e.node;if(!n)return n;r.assertExpression(n);var s,a,i=this;function o(e){if(r.assertExpression(e),!t)return e;i.emit(e)}if(!JL.containsLeap(n))return o(n);var u=JL.containsLeap.onlyChildren(n);function l(e,t,n){KL.default.ok(!n||!e,"Ignoring the result of a child expression but forcing it to be assigned to a temporary variable?");var s=i.explodeExpression(t,n);return n||(e||u&&!r.isLiteral(s))&&(s=i.emitAssign(e||i.makeTempVar(),s)),s}switch(n.type){case"MemberExpression":return o(r.memberExpression(i.explodeExpression(e.get("object")),n.computed?l(null,e.get("property")):n.property,n.computed));case"CallExpression":var c,p=e.get("callee"),d=e.get("arguments"),f=[],h=!1;if(d.forEach((function(e){h=h||JL.containsLeap(e.node)})),r.isMemberExpression(p.node))if(h){var m=l(i.makeTempVar(),p.get("object")),y=p.node.computed?l(null,p.get("property")):p.node.property;f.unshift(m),c=r.memberExpression(r.memberExpression(r.cloneDeep(m),y,p.node.computed),r.identifier("call"),!1)}else c=i.explodeExpression(p);else c=l(null,p),r.isMemberExpression(c)&&(c=r.sequenceExpression([r.numericLiteral(0),r.cloneDeep(c)]));return d.forEach((function(e){f.push(l(null,e))})),o(r.callExpression(c,f.map((function(e){return r.cloneDeep(e)}))));case"NewExpression":return o(r.newExpression(l(null,e.get("callee")),e.get("arguments").map((function(e){return l(null,e)}))));case"ObjectExpression":return o(r.objectExpression(e.get("properties").map((function(e){return e.isObjectProperty()?r.objectProperty(e.node.key,l(null,e.get("value")),e.node.computed):e.node}))));case"ArrayExpression":return o(r.arrayExpression(e.get("elements").map((function(e){return l(null,e)}))));case"SequenceExpression":var g=n.expressions.length-1;return e.get("expressions").forEach((function(e){e.key===g?s=i.explodeExpression(e,t):i.explodeExpression(e,!0)})),s;case"LogicalExpression":a=this.loc(),t||(s=i.makeTempVar());var v=l(s,e.get("left"));return"&&"===n.operator?i.jumpIfNot(v,a):(KL.default.strictEqual(n.operator,"||"),i.jumpIf(v,a)),l(s,e.get("right"),t),i.mark(a),s;case"ConditionalExpression":var b=this.loc();a=this.loc();var E=i.explodeExpression(e.get("test"));return i.jumpIfNot(E,b),t||(s=i.makeTempVar()),l(s,e.get("consequent"),t),i.jump(a),i.mark(b),l(s,e.get("alternate"),t),i.mark(a),s;case"UnaryExpression":return o(r.unaryExpression(n.operator,i.explodeExpression(e.get("argument")),!!n.prefix));case"BinaryExpression":return o(r.binaryExpression(n.operator,l(null,e.get("left")),l(null,e.get("right"))));case"AssignmentExpression":if("="===n.operator)return o(r.assignmentExpression(n.operator,i.explodeExpression(e.get("left")),i.explodeExpression(e.get("right"))));var x=i.explodeExpression(e.get("left")),D=i.emitAssign(i.makeTempVar(),x);return o(r.assignmentExpression("=",r.cloneDeep(x),r.assignmentExpression(n.operator,r.cloneDeep(D),i.explodeExpression(e.get("right")))));case"UpdateExpression":return o(r.updateExpression(n.operator,i.explodeExpression(e.get("argument")),n.prefix));case"YieldExpression":a=this.loc();var A=n.argument&&i.explodeExpression(e.get("argument"));if(A&&n.delegate){var w=i.makeTempVar(),C=r.returnStatement(r.callExpression(i.contextProperty("delegateYield"),[A,r.stringLiteral(w.property.name),a]));return C.loc=n.loc,i.emit(C),i.mark(a),w}i.emitAssign(i.contextProperty("next"),a);var S=r.returnStatement(r.cloneDeep(A)||null);return S.loc=n.loc,i.emit(S),i.mark(a),i.contextProperty("sent");default:throw new Error("unknown Expression of type "+JSON.stringify(n.type))}};var sM={Emitter:tM},aM=zt((function(e,t){t.__esModule=!0,t.default=function(e){var t=r.getTypes();if(!e.node||!t.isFunction(e.node))throw new Error("replaceShorthandObjectMethod can only be called on Function AST node paths.");if(!t.isObjectMethod(e.node))return e;if(!e.node.generator)return e;var n=e.node.params.map((function(e){return t.cloneDeep(e)})),s=t.functionExpression(null,n,t.cloneDeep(e.node.body),e.node.generator,e.node.async);return r.replaceWithOrRemove(e,t.objectProperty(t.cloneDeep(e.node.key),s,e.node.computed,!1)),e.get("value")};var r=W_(Q_)}),"/$$rollup_base$$/node_modules/regenerator-transform/lib"),iM=H_(gE),oM=H_(aM),uM=W_(Q_);function lM(e,t){return e.generator?e.async?!1!==t.opts.asyncGenerators:!1!==t.opts.generators:!!e.async&&!1!==t.opts.async}var cM=LL();var pM={"FunctionExpression|FunctionDeclaration|Method":function(e){e.skip()},Identifier:function(e,t){"arguments"===e.node.name&&uM.isReference(e)&&(uM.replaceWithOrRemove(e,t.getArgsId()),t.usesArguments=!0)},ThisExpression:function(e,t){t.usesThis=!0}},dM={MetaProperty:function(e){var t=e.node;if("function"===t.meta.name&&"sent"===t.property.name){var r=uM.getTypes();uM.replaceWithOrRemove(e,r.memberExpression(r.clone(this.context),r.identifier("_sent")))}}},fM={Function:function(e){e.skip()},AwaitExpression:function(e){var t=uM.getTypes(),r=e.node.argument;uM.replaceWithOrRemove(e,t.yieldExpression(t.callExpression(uM.runtimeProperty("awrap"),[r]),!1))}},hM=function(e){var t=e.types;return{Method:function(e,r){var n=e.node;if(lM(n,r)){var s=t.functionExpression(null,[],t.cloneNode(n.body,!1),n.generator,n.async);e.get("body").set("body",[t.returnStatement(t.callExpression(s,[]))]),n.async=!1,n.generator=!1,e.get("body.body.0.argument.callee").unwrapFunctionEnvironment()}},Function:{exit:uM.wrapWithTypes(t,(function(e,r){var n=e.node;if(lM(n,r)){n=(e=(0,oM.default)(e)).node;var s=e.scope.generateUidIdentifier("context"),a=e.scope.generateUidIdentifier("args");e.ensureBlock();var i=e.get("body");n.async&&i.traverse(fM),i.traverse(dM,{context:s});var o=[],u=[];i.get("body").forEach((function(e){var r=e.node;t.isExpressionStatement(r)&&t.isStringLiteral(r.expression)||r&&null!=r._blockHoist?o.push(r):u.push(r)})),o.length>0&&(i.node.body=u);var l=function(e){var t=uM.getTypes(),r=e.node;t.assertFunction(r),r.id||(r.id=e.scope.parent.generateUidIdentifier("callee"));if(r.generator&&t.isFunctionDeclaration(r))return function(e){var t=uM.getTypes(),r=e.node;t.assertIdentifier(r.id);var n=e.findParent((function(e){return e.isProgram()||e.isBlockStatement()}));if(!n)return r.id;var s=n.node;iM.default.ok(Array.isArray(s.body));var a=cM(s);a.decl||(a.decl=t.variableDeclaration("var",[]),n.unshiftContainer("body",a.decl),a.declPath=n.get("body.0"));iM.default.strictEqual(a.declPath.node,a.decl);var i=n.scope.generateUidIdentifier("marked"),o=t.callExpression(uM.runtimeProperty("mark"),[t.clone(r.id)]),u=a.decl.declarations.push(t.variableDeclarator(i,o))-1,l=a.declPath.get("declarations."+u+".init");return iM.default.strictEqual(l.node,o),l.addComment("leading","#__PURE__"),t.clone(i)}(e);return t.clone(r.id)}(e);t.assertIdentifier(n.id);var c=t.identifier(n.id.name+"$"),p=tL(e),d={usesThis:!1,usesArguments:!1,getArgsId:function(){return t.clone(a)}};if(e.traverse(pM,d),d.usesArguments){p=p||t.variableDeclaration("var",[]);var f=t.identifier("arguments");f._shadowedFunctionLiteral=e,p.declarations.push(t.variableDeclarator(t.clone(a),f))}var h=new sM.Emitter(s);h.explode(e.get("body")),p&&p.declarations.length>0&&o.push(p);var m=[h.getContextFunction(c)],y=h.getTryLocsList();if(n.generator?m.push(l):(d.usesThis||y||n.async)&&m.push(t.nullLiteral()),d.usesThis?m.push(t.thisExpression()):(y||n.async)&&m.push(t.nullLiteral()),y?m.push(y):n.async&&m.push(t.nullLiteral()),n.async){var g=e.scope;do{g.hasOwnBinding("Promise")&&g.rename("Promise")}while(g=g.parent);m.push(t.identifier("Promise"))}var v=t.callExpression(uM.runtimeProperty(n.async?"async":"wrap"),m);o.push(t.returnStatement(v)),n.body=t.blockStatement(o),e.get("body.body").forEach((function(e){return e.scope.registerDeclaration(e)}));var b=i.node.directives;b&&(n.body.directives=b);var E=n.generator;E&&(n.generator=!1),n.async&&(n.async=!1),E&&t.isExpression(n)&&(uM.replaceWithOrRemove(e,t.callExpression(uM.runtimeProperty("mark"),[n])),e.addComment("leading","#__PURE__"));var x=h.getInsertedLocs();e.traverse({NumericLiteral:function(e){x.has(e.node)&&e.replaceWith(t.numericLiteral(e.node.value))}}),e.requeue()}}))}}},mM=zt((function(e,t){t.__esModule=!0,t.default=function(e){var t={visitor:hM(e)},r=e&&e.version;r&&parseInt(r,10)>=7&&(t.name="regenerator-transform");return t}}),"/$$rollup_base$$/node_modules/regenerator-transform/lib").default,yM=SF((function(e){return e.assertVersion(7),{name:"transform-reserved-words",visitor:{"BindingIdentifier|ReferencedIdentifier":function(e){Sc(e.node.name)||e.scope.rename(e.node.name)}}}})),gM={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},vM="object"==typeof ar&&ar.env&&ar.env.NODE_DEBUG&&/\bsemver\b/i.test(ar.env.NODE_DEBUG)?function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=console).error.apply(e,["SEMVER"].concat(r))}:function(){},bM=zt((function(e,t){var r=gM.MAX_SAFE_COMPONENT_LENGTH,n=(t=e.exports={}).re=[],s=t.src=[],a=t.t={},i=0,o=function(e,t,r){var o=i++;vM(o,t),a[e]=o,s[o]=t,n[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION","("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")"),o("MAINVERSIONLOOSE","("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")"),o("PRERELEASEIDENTIFIER","(?:"+s[a.NUMERICIDENTIFIER]+"|"+s[a.NONNUMERICIDENTIFIER]+")"),o("PRERELEASEIDENTIFIERLOOSE","(?:"+s[a.NUMERICIDENTIFIERLOOSE]+"|"+s[a.NONNUMERICIDENTIFIER]+")"),o("PRERELEASE","(?:-("+s[a.PRERELEASEIDENTIFIER]+"(?:\\."+s[a.PRERELEASEIDENTIFIER]+")*))"),o("PRERELEASELOOSE","(?:-?("+s[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[a.PRERELEASEIDENTIFIERLOOSE]+")*))"),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD","(?:\\+("+s[a.BUILDIDENTIFIER]+"(?:\\."+s[a.BUILDIDENTIFIER]+")*))"),o("FULLPLAIN","v?"+s[a.MAINVERSION]+s[a.PRERELEASE]+"?"+s[a.BUILD]+"?"),o("FULL","^"+s[a.FULLPLAIN]+"$"),o("LOOSEPLAIN","[v=\\s]*"+s[a.MAINVERSIONLOOSE]+s[a.PRERELEASELOOSE]+"?"+s[a.BUILD]+"?"),o("LOOSE","^"+s[a.LOOSEPLAIN]+"$"),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",s[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),o("XRANGEIDENTIFIER",s[a.NUMERICIDENTIFIER]+"|x|X|\\*"),o("XRANGEPLAIN","[v=\\s]*("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:"+s[a.PRERELEASE]+")?"+s[a.BUILD]+"?)?)?"),o("XRANGEPLAINLOOSE","[v=\\s]*("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:"+s[a.PRERELEASELOOSE]+")?"+s[a.BUILD]+"?)?)?"),o("XRANGE","^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAIN]+"$"),o("XRANGELOOSE","^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAINLOOSE]+"$"),o("COERCE","(^|[^\\d])(\\d{1,"+r+"})(?:\\.(\\d{1,"+r+"}))?(?:\\.(\\d{1,"+r+"}))?(?:$|[^\\d])"),o("COERCERTL",s[a.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM","(\\s*)"+s[a.LONETILDE]+"\\s+",!0),t.tildeTrimReplace="$1~",o("TILDE","^"+s[a.LONETILDE]+s[a.XRANGEPLAIN]+"$"),o("TILDELOOSE","^"+s[a.LONETILDE]+s[a.XRANGEPLAINLOOSE]+"$"),o("LONECARET","(?:\\^)"),o("CARETTRIM","(\\s*)"+s[a.LONECARET]+"\\s+",!0),t.caretTrimReplace="$1^",o("CARET","^"+s[a.LONECARET]+s[a.XRANGEPLAIN]+"$"),o("CARETLOOSE","^"+s[a.LONECARET]+s[a.XRANGEPLAINLOOSE]+"$"),o("COMPARATORLOOSE","^"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+")$|^$"),o("COMPARATOR","^"+s[a.GTLT]+"\\s*("+s[a.FULLPLAIN]+")$|^$"),o("COMPARATORTRIM","(\\s*)"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+"|"+s[a.XRANGEPLAIN]+")",!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE","^\\s*("+s[a.XRANGEPLAIN]+")\\s+-\\s+("+s[a.XRANGEPLAIN]+")\\s*$"),o("HYPHENRANGELOOSE","^\\s*("+s[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[a.XRANGEPLAINLOOSE]+")\\s*$"),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),"/$$rollup_base$$/node_modules/semver-BABEL_8_BREAKING-true/internal"),EM=["includePrerelease","loose","rtl"],xM=function(e){return e?"object"!=typeof e?{loose:!0}:EM.filter((function(t){return e[t]})).reduce((function(e,t){return e[t]=!0,e}),{}):{}},DM=/^[0-9]+$/,AM=function(e,t){var r=DM.test(e),n=DM.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},wM=AM,CM=gM.MAX_LENGTH,SM=gM.MAX_SAFE_INTEGER,TM=bM.re,jM=bM.t,PM=wM,IM=function(){function e(t,r){if(r=xM(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>CM)throw new TypeError("version is longer than "+CM+" characters");vM("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var n=t.trim().match(r.loose?TM[jM.LOOSE]:TM[jM.FULL]);if(!n)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>SM||this.major<0)throw new TypeError("Invalid major version");if(this.minor>SM||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>SM||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<SM)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}var t=e.prototype;return t.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},t.toString=function(){return this.version},t.compare=function(t){if(vM("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)},t.compareMain=function(t){return t instanceof e||(t=new e(t,this.options)),PM(this.major,t.major)||PM(this.minor,t.minor)||PM(this.patch,t.patch)},t.comparePre=function(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var r=0;do{var n=this.prerelease[r],s=t.prerelease[r];if(vM("prerelease compare",r,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return PM(n,s)}while(++r)},t.compareBuild=function(t){t instanceof e||(t=new e(t,this.options));var r=0;do{var n=this.build[r],s=t.build[r];if(vM("prerelease compare",r,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return PM(n,s)}while(++r)},t.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e}(),FM=(bM.re,bM.t,function(e,t,r){return new IM(e,r).compare(new IM(t,r))}),kM=function(e,t,r){return 0===FM(e,t,r)},OM=function(e,t,r){return FM(e,t,r)>0},RM=function(e,t,r){return FM(e,t,r)<0},NM=function(e,t,r){return 0!==FM(e,t,r)},BM=function(e,t,r){return FM(e,t,r)>=0},_M=function(e,t,r){return FM(e,t,r)<=0},LM=function(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return kM(e,r,n);case"!=":return NM(e,r,n);case">":return OM(e,r,n);case">=":return BM(e,r,n);case"<":return RM(e,r,n);case"<=":return _M(e,r,n);default:throw new TypeError("Invalid operator: "+t)}},MM=(bM.re,bM.t,UM);function UM(e){var t=this;if(t instanceof UM||(t=new UM),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}function GM(e,t,r){var n=t===e.head?new HM(r,null,t,e):new HM(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function VM(e,t){e.tail=new HM(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function WM(e,t){e.head=new HM(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function HM(e,t,r,n){if(!(this instanceof HM))return new HM(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}UM.Node=HM,UM.create=UM,UM.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},UM.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},UM.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},UM.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)VM(this,arguments[e]);return this.length},UM.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)WM(this,arguments[e]);return this.length},UM.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},UM.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},UM.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},UM.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},UM.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},UM.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},UM.prototype.map=function(e,t){t=t||this;for(var r=new UM,n=this.head;null!==n;)r.push(e.call(t,n.value,this)),n=n.next;return r},UM.prototype.mapReverse=function(e,t){t=t||this;for(var r=new UM,n=this.tail;null!==n;)r.push(e.call(t,n.value,this)),n=n.prev;return r},UM.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var s=0;null!==n;s++)r=e(r,n.value,s),n=n.next;return r},UM.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var s=this.length-1;null!==n;s--)r=e(r,n.value,s),n=n.prev;return r},UM.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},UM.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},UM.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new UM;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,s=this.head;null!==s&&n<e;n++)s=s.next;for(;null!==s&&n<t;n++,s=s.next)r.push(s.value);return r},UM.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new UM;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,s=this.tail;null!==s&&n>t;n--)s=s.prev;for(;null!==s&&n>e;n--,s=s.prev)r.push(s.value);return r},UM.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;null!==n&&r<e;r++)n=n.next;var s=[];for(r=0;n&&r<t;r++)s.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(r=0;r<(arguments.length<=2?0:arguments.length-2);r++)n=GM(this,n,r+2<2||arguments.length<=r+2?void 0:arguments[r+2]);return s},UM.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{!function(e){e.prototype[Symbol.iterator]=bh.mark((function e(){var t;return bh.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}(UM)}catch(e){}var XM=Symbol("max"),qM=Symbol("length"),$M=Symbol("lengthCalculator"),KM=Symbol("allowStale"),zM=Symbol("maxAge"),JM=Symbol("dispose"),YM=Symbol("noDisposeOnSet"),QM=Symbol("lruList"),ZM=Symbol("cache"),eU=Symbol("updateAgeOnGet"),tU=function(){return 1},rU=function(){function e(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[XM]=e.max||1/0;var t=e.length||tU;if(this[$M]="function"!=typeof t?tU:t,this[KM]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[zM]=e.maxAge||0,this[JM]=e.dispose,this[YM]=e.noDisposeOnSet||!1,this[eU]=e.updateAgeOnGet||!1,this.reset()}var t=e.prototype;return t.rforEach=function(e,t){t=t||this;for(var r=this[QM].tail;null!==r;){var n=r.prev;uU(this,e,r,t),r=n}},t.forEach=function(e,t){t=t||this;for(var r=this[QM].head;null!==r;){var n=r.next;uU(this,e,r,t),r=n}},t.keys=function(){return this[QM].toArray().map((function(e){return e.key}))},t.values=function(){return this[QM].toArray().map((function(e){return e.value}))},t.reset=function(){var e=this;this[JM]&&this[QM]&&this[QM].length&&this[QM].forEach((function(t){return e[JM](t.key,t.value)})),this[ZM]=new Map,this[QM]=new MM,this[qM]=0},t.dump=function(){var e=this;return this[QM].map((function(t){return!sU(e,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}})).toArray().filter((function(e){return e}))},t.dumpLru=function(){return this[QM]},t.set=function(e,t,r){if((r=r||this[zM])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");var n=r?Date.now():0,s=this[$M](t,e);if(this[ZM].has(e)){if(s>this[XM])return iU(this,this[ZM].get(e)),!1;var a=this[ZM].get(e).value;return this[JM]&&(this[YM]||this[JM](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[qM]+=s-a.length,a.length=s,this.get(e),aU(this),!0}var i=new oU(e,t,s,n,r);return i.length>this[XM]?(this[JM]&&this[JM](e,t),!1):(this[qM]+=i.length,this[QM].unshift(i),this[ZM].set(e,this[QM].head),aU(this),!0)},t.has=function(e){if(!this[ZM].has(e))return!1;var t=this[ZM].get(e).value;return!sU(this,t)},t.get=function(e){return nU(this,e,!0)},t.peek=function(e){return nU(this,e,!1)},t.pop=function(){var e=this[QM].tail;return e?(iU(this,e),e.value):null},t.del=function(e){iU(this,this[ZM].get(e))},t.load=function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],s=n.e||0;if(0===s)this.set(n.k,n.v);else{var a=s-t;a>0&&this.set(n.k,n.v,a)}}},t.prune=function(){var e=this;this[ZM].forEach((function(t,r){return nU(e,r,!1)}))},n(e,[{key:"max",get:function(){return this[XM]},set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[XM]=e||1/0,aU(this)}},{key:"allowStale",get:function(){return this[KM]},set:function(e){this[KM]=!!e}},{key:"maxAge",get:function(){return this[zM]},set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[zM]=e,aU(this)}},{key:"lengthCalculator",get:function(){return this[$M]},set:function(e){var t=this;"function"!=typeof e&&(e=tU),e!==this[$M]&&(this[$M]=e,this[qM]=0,this[QM].forEach((function(e){e.length=t[$M](e.value,e.key),t[qM]+=e.length}))),aU(this)}},{key:"length",get:function(){return this[qM]}},{key:"itemCount",get:function(){return this[QM].length}}]),e}(),nU=function(e,t,r){var n=e[ZM].get(t);if(n){var s=n.value;if(sU(e,s)){if(iU(e,n),!e[KM])return}else r&&(e[eU]&&(n.value.now=Date.now()),e[QM].unshiftNode(n));return s.value}},sU=function(e,t){if(!t||!t.maxAge&&!e[zM])return!1;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[zM]&&r>e[zM]},aU=function(e){if(e[qM]>e[XM])for(var t=e[QM].tail;e[qM]>e[XM]&&null!==t;){var r=t.prev;iU(e,t),t=r}},iU=function(e,t){if(t){var r=t.value;e[JM]&&e[JM](r.key,r.value),e[qM]-=r.length,e[ZM].delete(r.key),e[QM].removeNode(t)}},oU=function(e,t,r,n,s){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=s||0},uU=function(e,t,r,n){var s=r.value;sU(e,s)&&(iU(e,r),e[KM]||(s=void 0)),s&&t.call(n,s.value,s.key,e)},lU=rU,cU=function(){function e(t,r){var n=this;if(r=xM(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof OU)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((function(e){return n.parseRange(e.trim())})).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);if(this.set.length>1){var s=this.set[0];if(this.set=this.set.filter((function(e){return!gU(e[0])})),0===this.set.length)this.set=[s];else if(this.set.length>1)for(var a,i=f(this.set);!(a=i()).done;){var o=a.value;if(1===o.length&&vU(o[0])){this.set=[o];break}}}this.format()}var t=e.prototype;return t.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},t.toString=function(){return this.range},t.parseRange=function(e){var t=this;e=e.trim();var r="parseRange:"+Object.keys(this.options).join(",")+":"+e,n=pU.get(r);if(n)return n;var s=this.options.loose,a=s?dU[fU.HYPHENRANGELOOSE]:dU[fU.HYPHENRANGE];e=e.replace(a,IU(this.options.includePrerelease)),vM("hyphen replace",e),e=e.replace(dU[fU.COMPARATORTRIM],hU),vM("comparator trim",e,dU[fU.COMPARATORTRIM]),e=(e=(e=e.replace(dU[fU.TILDETRIM],mU)).replace(dU[fU.CARETTRIM],yU)).split(/\s+/).join(" ");var i=s?dU[fU.COMPARATORLOOSE]:dU[fU.COMPARATOR],o=e.split(" ").map((function(e){return EU(e,t.options)})).join(" ").split(/\s+/).map((function(e){return PU(e,t.options)})).filter(this.options.loose?function(e){return!!e.match(i)}:function(){return!0}).map((function(e){return new OU(e,t.options)}));o.length;for(var u,l=new Map,p=f(o);!(u=p()).done;){var d=u.value;if(gU(d))return[d];l.set(d.value,d)}l.size>1&&l.has("")&&l.delete("");var h=c(l.values());return pU.set(r,h),h},t.intersects=function(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((function(e){return bU(e,r)&&t.set.some((function(t){return bU(t,r)&&e.every((function(e){return t.every((function(t){return e.intersects(t,r)}))}))}))}))},t.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new IM(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(FU(this.set[t],e,this.options))return!0;return!1},e}(),pU=new lU({max:1e3}),dU=bM.re,fU=bM.t,hU=bM.comparatorTrimReplace,mU=bM.tildeTrimReplace,yU=bM.caretTrimReplace,gU=function(e){return"<0.0.0-0"===e.value},vU=function(e){return""===e.value},bU=function(e,t){for(var r=!0,n=e.slice(),s=n.pop();r&&n.length;)r=n.every((function(e){return s.intersects(e,t)})),s=n.pop();return r},EU=function(e,t){return vM("comp",e,t),e=wU(e,t),vM("caret",e),e=DU(e,t),vM("tildes",e),e=SU(e,t),vM("xrange",e),e=jU(e,t),vM("stars",e),e},xU=function(e){return!e||"x"===e.toLowerCase()||"*"===e},DU=function(e,t){return e.trim().split(/\s+/).map((function(e){return AU(e,t)})).join(" ")},AU=function(e,t){var r=t.loose?dU[fU.TILDELOOSE]:dU[fU.TILDE];return e.replace(r,(function(t,r,n,s,a){var i;return vM("tilde",e,t,r,n,s,a),xU(r)?i="":xU(n)?i=">="+r+".0.0 <"+(+r+1)+".0.0-0":xU(s)?i=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0-0":a?(vM("replaceTilde pr",a),i=">="+r+"."+n+"."+s+"-"+a+" <"+r+"."+(+n+1)+".0-0"):i=">="+r+"."+n+"."+s+" <"+r+"."+(+n+1)+".0-0",vM("tilde return",i),i}))},wU=function(e,t){return e.trim().split(/\s+/).map((function(e){return CU(e,t)})).join(" ")},CU=function(e,t){vM("caret",e,t);var r=t.loose?dU[fU.CARETLOOSE]:dU[fU.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(function(t,r,s,a,i){var o;return vM("caret",e,t,r,s,a,i),xU(r)?o="":xU(s)?o=">="+r+".0.0"+n+" <"+(+r+1)+".0.0-0":xU(a)?o="0"===r?">="+r+"."+s+".0"+n+" <"+r+"."+(+s+1)+".0-0":">="+r+"."+s+".0"+n+" <"+(+r+1)+".0.0-0":i?(vM("replaceCaret pr",i),o="0"===r?"0"===s?">="+r+"."+s+"."+a+"-"+i+" <"+r+"."+s+"."+(+a+1)+"-0":">="+r+"."+s+"."+a+"-"+i+" <"+r+"."+(+s+1)+".0-0":">="+r+"."+s+"."+a+"-"+i+" <"+(+r+1)+".0.0-0"):(vM("no pr"),o="0"===r?"0"===s?">="+r+"."+s+"."+a+n+" <"+r+"."+s+"."+(+a+1)+"-0":">="+r+"."+s+"."+a+n+" <"+r+"."+(+s+1)+".0-0":">="+r+"."+s+"."+a+" <"+(+r+1)+".0.0-0"),vM("caret return",o),o}))},SU=function(e,t){return vM("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return TU(e,t)})).join(" ")},TU=function(e,t){e=e.trim();var r=t.loose?dU[fU.XRANGELOOSE]:dU[fU.XRANGE];return e.replace(r,(function(r,n,s,a,i,o){vM("xRange",e,r,n,s,a,i,o);var u=xU(s),l=u||xU(a),c=l||xU(i),p=c;return"="===n&&p&&(n=""),o=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(l&&(a=0),i=0,">"===n?(n=">=",l?(s=+s+1,a=0,i=0):(a=+a+1,i=0)):"<="===n&&(n="<",l?s=+s+1:a=+a+1),"<"===n&&(o="-0"),r=n+s+"."+a+"."+i+o):l?r=">="+s+".0.0"+o+" <"+(+s+1)+".0.0-0":c&&(r=">="+s+"."+a+".0"+o+" <"+s+"."+(+a+1)+".0-0"),vM("xRange return",r),r}))},jU=function(e,t){return vM("replaceStars",e,t),e.trim().replace(dU[fU.STAR],"")},PU=function(e,t){return vM("replaceGTE0",e,t),e.trim().replace(dU[t.includePrerelease?fU.GTE0PRE:fU.GTE0],"")},IU=function(e){return function(t,r,n,s,a,i,o,u,l,c,p,d,f){return((r=xU(n)?"":xU(s)?">="+n+".0.0"+(e?"-0":""):xU(a)?">="+n+"."+s+".0"+(e?"-0":""):i?">="+r:">="+r+(e?"-0":""))+" "+(u=xU(l)?"":xU(c)?"<"+(+l+1)+".0.0-0":xU(p)?"<"+l+"."+(+c+1)+".0-0":d?"<="+l+"."+c+"."+p+"-"+d:e?"<"+l+"."+c+"."+(+p+1)+"-0":"<="+u)).trim()}},FU=function(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(var s=0;s<e.length;s++)if(vM(e[s].semver),e[s].semver!==OU.ANY&&e[s].semver.prerelease.length>0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0},kU=Symbol("SemVer ANY"),OU=function(){function e(t,r){if(r=xM(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}vM("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===kU?this.value="":this.value=this.operator+this.semver.version,vM("comp",this)}var t=e.prototype;return t.parse=function(e){var t=this.options.loose?RU[NU.COMPARATORLOOSE]:RU[NU.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new IM(r[2],this.options.loose):this.semver=kU},t.toString=function(){return this.value},t.test=function(e){if(vM("Comparator.test",e,this.options.loose),this.semver===kU||e===kU)return!0;if("string"==typeof e)try{e=new IM(e,this.options)}catch(e){return!1}return LM(e,this.operator,this.semver,this.options)},t.intersects=function(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");if(r&&"object"==typeof r||(r={loose:!!r,includePrerelease:!1}),""===this.operator)return""===this.value||new cU(t.value,r).test(this.value);if(""===t.operator)return""===t.value||new cU(this.value,r).test(t.semver);var n=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),a=this.semver.version===t.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),o=LM(this.semver,"<",t.semver,r)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),u=LM(this.semver,">",t.semver,r)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return n||s||a&&i||o||u},n(e,null,[{key:"ANY",get:function(){return kU}}]),e}(),RU=bM.re,NU=bM.t;OU.ANY,OU.ANY;bM.re,bM.src,bM.t;var BU=zt((function(e,t){var r;t=e.exports=p,r="object"==typeof ar&&ar.env&&ar.env.NODE_DEBUG&&/\bsemver\b/i.test(ar.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=Number.MAX_SAFE_INTEGER||9007199254740991,s=t.re=[],a=t.src=[],i=t.tokens={},o=0;function u(e){i[e]=o++}u("NUMERICIDENTIFIER"),a[i.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),a[i.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),a[i.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),a[i.MAINVERSION]="("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),a[i.MAINVERSIONLOOSE]="("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),a[i.PRERELEASEIDENTIFIER]="(?:"+a[i.NUMERICIDENTIFIER]+"|"+a[i.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),a[i.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[i.NUMERICIDENTIFIERLOOSE]+"|"+a[i.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),a[i.PRERELEASE]="(?:-("+a[i.PRERELEASEIDENTIFIER]+"(?:\\."+a[i.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),a[i.PRERELEASELOOSE]="(?:-?("+a[i.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[i.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),a[i.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),a[i.BUILD]="(?:\\+("+a[i.BUILDIDENTIFIER]+"(?:\\."+a[i.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),a[i.FULLPLAIN]="v?"+a[i.MAINVERSION]+a[i.PRERELEASE]+"?"+a[i.BUILD]+"?",a[i.FULL]="^"+a[i.FULLPLAIN]+"$",u("LOOSEPLAIN"),a[i.LOOSEPLAIN]="[v=\\s]*"+a[i.MAINVERSIONLOOSE]+a[i.PRERELEASELOOSE]+"?"+a[i.BUILD]+"?",u("LOOSE"),a[i.LOOSE]="^"+a[i.LOOSEPLAIN]+"$",u("GTLT"),a[i.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),a[i.XRANGEIDENTIFIERLOOSE]=a[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),a[i.XRANGEIDENTIFIER]=a[i.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),a[i.XRANGEPLAIN]="[v=\\s]*("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:"+a[i.PRERELEASE]+")?"+a[i.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),a[i.XRANGEPLAINLOOSE]="[v=\\s]*("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:"+a[i.PRERELEASELOOSE]+")?"+a[i.BUILD]+"?)?)?",u("XRANGE"),a[i.XRANGE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAIN]+"$",u("XRANGELOOSE"),a[i.XRANGELOOSE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAINLOOSE]+"$",u("COERCE"),a[i.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),s[i.COERCERTL]=new RegExp(a[i.COERCE],"g"),u("LONETILDE"),a[i.LONETILDE]="(?:~>?)",u("TILDETRIM"),a[i.TILDETRIM]="(\\s*)"+a[i.LONETILDE]+"\\s+",s[i.TILDETRIM]=new RegExp(a[i.TILDETRIM],"g");u("TILDE"),a[i.TILDE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAIN]+"$",u("TILDELOOSE"),a[i.TILDELOOSE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAINLOOSE]+"$",u("LONECARET"),a[i.LONECARET]="(?:\\^)",u("CARETTRIM"),a[i.CARETTRIM]="(\\s*)"+a[i.LONECARET]+"\\s+",s[i.CARETTRIM]=new RegExp(a[i.CARETTRIM],"g");u("CARET"),a[i.CARET]="^"+a[i.LONECARET]+a[i.XRANGEPLAIN]+"$",u("CARETLOOSE"),a[i.CARETLOOSE]="^"+a[i.LONECARET]+a[i.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),a[i.COMPARATORLOOSE]="^"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),a[i.COMPARATOR]="^"+a[i.GTLT]+"\\s*("+a[i.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),a[i.COMPARATORTRIM]="(\\s*)"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+"|"+a[i.XRANGEPLAIN]+")",s[i.COMPARATORTRIM]=new RegExp(a[i.COMPARATORTRIM],"g");u("HYPHENRANGE"),a[i.HYPHENRANGE]="^\\s*("+a[i.XRANGEPLAIN]+")\\s+-\\s+("+a[i.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),a[i.HYPHENRANGELOOSE]="^\\s*("+a[i.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[i.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),a[i.STAR]="(<|>)?=?\\s*\\*";for(var l=0;l<o;l++)r(l,a[l]),s[l]||(s[l]=new RegExp(a[l]));function c(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?s[i.LOOSE]:s[i.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?s[i.LOOSE]:s[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=c,t.valid=function(e,t){var r=c(e,t);return r?r.version:null},t.clean=function(e,t){var r=c(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return f(n,s)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var n=this.build[t],s=e.build[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return f(n,s)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new p(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var r=c(e),n=c(t),s="";if(r.prerelease.length||n.prerelease.length){s="pre";var a="prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return s+i;return a},t.compareIdentifiers=f;var d=/^[0-9]+$/;function f(e,t){var r=d.test(e),n=d.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function h(e,t,r){return new p(e,r).compare(new p(t,r))}function m(e,t,r){return h(e,t,r)>0}function y(e,t,r){return h(e,t,r)<0}function g(e,t,r){return 0===h(e,t,r)}function v(e,t,r){return 0!==h(e,t,r)}function b(e,t,r){return h(e,t,r)>=0}function E(e,t,r){return h(e,t,r)<=0}function x(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return g(e,r,n);case"!=":return v(e,r,n);case">":return m(e,r,n);case">=":return b(e,r,n);case"<":return y(e,r,n);case"<=":return E(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function D(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof D){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof D))return new D(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===A?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,r){var n=new p(e,r),s=new p(t,r);return n.compare(s)||n.compareBuild(s)},t.rcompare=function(e,t,r){return h(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=m,t.lt=y,t.eq=g,t.neq=v,t.gte=b,t.lte=E,t.cmp=x,t.Comparator=D;var A={};function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new w(e.raw,t);if(e instanceof D)return new w(e.value,t);if(!(this instanceof w))return new w(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function C(e,t){for(var r=!0,n=e.slice(),s=n.pop();r&&n.length;)r=n.every((function(e){return s.intersects(e,t)})),s=n.pop();return r}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function T(e,t,r,n,s,a,i,o,u,l,c,p,d){return((t=S(r)?"":S(n)?">="+r+".0.0":S(s)?">="+r+"."+n+".0":">="+t)+" "+(o=S(u)?"":S(l)?"<"+(+u+1)+".0.0":S(c)?"<"+u+"."+(+l+1)+".0":p?"<="+u+"."+l+"."+c+"-"+p:"<="+o)).trim()}function j(e,t,n){for(var s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(s=0;s<e.length;s++)if(r(e[s].semver),e[s].semver!==A&&e[s].semver.prerelease.length>0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function P(e,t,r){try{t=new w(t,r)}catch(e){return!1}return t.test(e)}function I(e,t,r,n){var s,a,i,o,u;switch(e=new p(e,n),t=new w(t,n),r){case">":s=m,a=E,i=y,o=">",u=">=";break;case"<":s=y,a=b,i=m,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,t,n))return!1;for(var l=0;l<t.set.length;++l){var c=t.set[l],d=null,f=null;if(c.forEach((function(e){e.semver===A&&(e=new D(">=0.0.0")),d=d||e,f=f||e,s(e.semver,d.semver,n)?d=e:i(e.semver,f.semver,n)&&(f=e)})),d.operator===o||d.operator===u)return!1;if((!f.operator||f.operator===o)&&a(e,f.semver))return!1;if(f.operator===u&&i(e,f.semver))return!1}return!0}D.prototype.parse=function(e){var t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new p(r[2],this.options.loose):this.semver=A},D.prototype.toString=function(){return this.value},D.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return x(e,this.operator,this.semver,this.options)},D.prototype.intersects=function(e,t){if(!(e instanceof D))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new w(e.value,t),P(this.value,r,t));if(""===e.operator)return""===e.value||(r=new w(this.value,t),P(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||s||a&&i||o||u},t.Range=w,w.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},w.prototype.toString=function(){return this.range},w.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[i.HYPHENRANGELOOSE]:s[i.HYPHENRANGE];e=e.replace(n,T),r("hyphen replace",e),e=e.replace(s[i.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,s[i.COMPARATORTRIM]),e=(e=(e=e.replace(s[i.TILDETRIM],"$1~")).replace(s[i.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?s[i.CARETLOOSE]:s[i.CARET];return e.replace(n,(function(t,n,s,a,i){var o;return r("caret",e,t,n,s,a,i),S(n)?o="":S(s)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o="0"===n?">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":">="+n+"."+s+".0 <"+(+n+1)+".0.0":i?(r("replaceCaret pr",i),o="0"===n?"0"===s?">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+s+"."+(+a+1):">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+a+"-"+i+" <"+(+n+1)+".0.0"):(r("no pr"),o="0"===n?"0"===s?">="+n+"."+s+"."+a+" <"+n+"."+s+"."+(+a+1):">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+a+" <"+(+n+1)+".0.0"),r("caret return",o),o}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?s[i.TILDELOOSE]:s[i.TILDE];return e.replace(n,(function(t,n,s,a,i){var o;return r("tilde",e,t,n,s,a,i),S(n)?o="":S(s)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":i?(r("replaceTilde pr",i),o=">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+(+s+1)+".0"):o=">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0",r("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?s[i.XRANGELOOSE]:s[i.XRANGE];return e.replace(n,(function(n,s,a,i,o,u){r("xRange",e,n,s,a,i,o,u);var l=S(a),c=l||S(i),p=c||S(o),d=p;return"="===s&&d&&(s=""),u=t.includePrerelease?"-0":"",l?n=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(c&&(i=0),o=0,">"===s?(s=">=",c?(a=+a+1,i=0,o=0):(i=+i+1,o=0)):"<="===s&&(s="<",c?a=+a+1:i=+i+1),n=s+a+"."+i+"."+o+u):c?n=">="+a+".0.0"+u+" <"+(+a+1)+".0.0"+u:p&&(n=">="+a+"."+i+".0"+u+" <"+a+"."+(+i+1)+".0"+u),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(s[i.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(a)}))),o=o.map((function(e){return new D(e,this.options)}),this)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Range is required");return this.set.some((function(r){return C(r,t)&&e.set.some((function(e){return C(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new w(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},w.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(j(this.set[t],e,this.options))return!0;return!1},t.satisfies=P,t.maxSatisfying=function(e,t,r){var n=null,s=null;try{var a=new w(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&-1!==s.compare(e)||(s=new p(n=e,r)))})),n},t.minSatisfying=function(e,t,r){var n=null,s=null;try{var a=new w(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&1!==s.compare(e)||(s=new p(n=e,r)))})),n},t.minVersion=function(e,t){e=new w(e,t);var r=new p("0.0.0");if(e.test(r))return r;if(r=new p("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n){e.set[n].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!m(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new w(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return I(e,t,"<",r)},t.gtr=function(e,t,r){return I(e,t,">",r)},t.outside=I,t.prerelease=function(e,t){var r=c(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new w(e,r),t=new w(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),s[i.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);if(null===r)return null;return c(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}}),"/$$rollup_base$$/node_modules/semver-BABEL_8_BREAKING-false");var _U,LU,MU,UU=zt((function(e,t){var r;t=e.exports=p,r="object"==typeof ar&&ar.env&&ar.env.NODE_DEBUG&&/\bsemver\b/i.test(ar.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=Number.MAX_SAFE_INTEGER||9007199254740991,s=t.re=[],a=t.src=[],i=t.tokens={},o=0;function u(e){i[e]=o++}u("NUMERICIDENTIFIER"),a[i.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),a[i.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),a[i.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),a[i.MAINVERSION]="("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),a[i.MAINVERSIONLOOSE]="("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),a[i.PRERELEASEIDENTIFIER]="(?:"+a[i.NUMERICIDENTIFIER]+"|"+a[i.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),a[i.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[i.NUMERICIDENTIFIERLOOSE]+"|"+a[i.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),a[i.PRERELEASE]="(?:-("+a[i.PRERELEASEIDENTIFIER]+"(?:\\."+a[i.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),a[i.PRERELEASELOOSE]="(?:-?("+a[i.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[i.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),a[i.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),a[i.BUILD]="(?:\\+("+a[i.BUILDIDENTIFIER]+"(?:\\."+a[i.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),a[i.FULLPLAIN]="v?"+a[i.MAINVERSION]+a[i.PRERELEASE]+"?"+a[i.BUILD]+"?",a[i.FULL]="^"+a[i.FULLPLAIN]+"$",u("LOOSEPLAIN"),a[i.LOOSEPLAIN]="[v=\\s]*"+a[i.MAINVERSIONLOOSE]+a[i.PRERELEASELOOSE]+"?"+a[i.BUILD]+"?",u("LOOSE"),a[i.LOOSE]="^"+a[i.LOOSEPLAIN]+"$",u("GTLT"),a[i.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),a[i.XRANGEIDENTIFIERLOOSE]=a[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),a[i.XRANGEIDENTIFIER]=a[i.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),a[i.XRANGEPLAIN]="[v=\\s]*("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:"+a[i.PRERELEASE]+")?"+a[i.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),a[i.XRANGEPLAINLOOSE]="[v=\\s]*("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:"+a[i.PRERELEASELOOSE]+")?"+a[i.BUILD]+"?)?)?",u("XRANGE"),a[i.XRANGE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAIN]+"$",u("XRANGELOOSE"),a[i.XRANGELOOSE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAINLOOSE]+"$",u("COERCE"),a[i.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),s[i.COERCERTL]=new RegExp(a[i.COERCE],"g"),u("LONETILDE"),a[i.LONETILDE]="(?:~>?)",u("TILDETRIM"),a[i.TILDETRIM]="(\\s*)"+a[i.LONETILDE]+"\\s+",s[i.TILDETRIM]=new RegExp(a[i.TILDETRIM],"g");u("TILDE"),a[i.TILDE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAIN]+"$",u("TILDELOOSE"),a[i.TILDELOOSE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAINLOOSE]+"$",u("LONECARET"),a[i.LONECARET]="(?:\\^)",u("CARETTRIM"),a[i.CARETTRIM]="(\\s*)"+a[i.LONECARET]+"\\s+",s[i.CARETTRIM]=new RegExp(a[i.CARETTRIM],"g");u("CARET"),a[i.CARET]="^"+a[i.LONECARET]+a[i.XRANGEPLAIN]+"$",u("CARETLOOSE"),a[i.CARETLOOSE]="^"+a[i.LONECARET]+a[i.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),a[i.COMPARATORLOOSE]="^"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),a[i.COMPARATOR]="^"+a[i.GTLT]+"\\s*("+a[i.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),a[i.COMPARATORTRIM]="(\\s*)"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+"|"+a[i.XRANGEPLAIN]+")",s[i.COMPARATORTRIM]=new RegExp(a[i.COMPARATORTRIM],"g");u("HYPHENRANGE"),a[i.HYPHENRANGE]="^\\s*("+a[i.XRANGEPLAIN]+")\\s+-\\s+("+a[i.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),a[i.HYPHENRANGELOOSE]="^\\s*("+a[i.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[i.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),a[i.STAR]="(<|>)?=?\\s*\\*";for(var l=0;l<o;l++)r(l,a[l]),s[l]||(s[l]=new RegExp(a[l]));function c(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?s[i.LOOSE]:s[i.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?s[i.LOOSE]:s[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=c,t.valid=function(e,t){var r=c(e,t);return r?r.version:null},t.clean=function(e,t){var r=c(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return f(n,s)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var n=this.build[t],s=e.build[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return f(n,s)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new p(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var r=c(e),n=c(t),s="";if(r.prerelease.length||n.prerelease.length){s="pre";var a="prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return s+i;return a},t.compareIdentifiers=f;var d=/^[0-9]+$/;function f(e,t){var r=d.test(e),n=d.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function h(e,t,r){return new p(e,r).compare(new p(t,r))}function m(e,t,r){return h(e,t,r)>0}function y(e,t,r){return h(e,t,r)<0}function g(e,t,r){return 0===h(e,t,r)}function v(e,t,r){return 0!==h(e,t,r)}function b(e,t,r){return h(e,t,r)>=0}function E(e,t,r){return h(e,t,r)<=0}function x(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return g(e,r,n);case"!=":return v(e,r,n);case">":return m(e,r,n);case">=":return b(e,r,n);case"<":return y(e,r,n);case"<=":return E(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function D(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof D){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof D))return new D(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===A?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,r){var n=new p(e,r),s=new p(t,r);return n.compare(s)||n.compareBuild(s)},t.rcompare=function(e,t,r){return h(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=m,t.lt=y,t.eq=g,t.neq=v,t.gte=b,t.lte=E,t.cmp=x,t.Comparator=D;var A={};function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new w(e.raw,t);if(e instanceof D)return new w(e.value,t);if(!(this instanceof w))return new w(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function C(e,t){for(var r=!0,n=e.slice(),s=n.pop();r&&n.length;)r=n.every((function(e){return s.intersects(e,t)})),s=n.pop();return r}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function T(e,t,r,n,s,a,i,o,u,l,c,p,d){return((t=S(r)?"":S(n)?">="+r+".0.0":S(s)?">="+r+"."+n+".0":">="+t)+" "+(o=S(u)?"":S(l)?"<"+(+u+1)+".0.0":S(c)?"<"+u+"."+(+l+1)+".0":p?"<="+u+"."+l+"."+c+"-"+p:"<="+o)).trim()}function j(e,t,n){for(var s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(s=0;s<e.length;s++)if(r(e[s].semver),e[s].semver!==A&&e[s].semver.prerelease.length>0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function P(e,t,r){try{t=new w(t,r)}catch(e){return!1}return t.test(e)}function I(e,t,r,n){var s,a,i,o,u;switch(e=new p(e,n),t=new w(t,n),r){case">":s=m,a=E,i=y,o=">",u=">=";break;case"<":s=y,a=b,i=m,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,t,n))return!1;for(var l=0;l<t.set.length;++l){var c=t.set[l],d=null,f=null;if(c.forEach((function(e){e.semver===A&&(e=new D(">=0.0.0")),d=d||e,f=f||e,s(e.semver,d.semver,n)?d=e:i(e.semver,f.semver,n)&&(f=e)})),d.operator===o||d.operator===u)return!1;if((!f.operator||f.operator===o)&&a(e,f.semver))return!1;if(f.operator===u&&i(e,f.semver))return!1}return!0}D.prototype.parse=function(e){var t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new p(r[2],this.options.loose):this.semver=A},D.prototype.toString=function(){return this.value},D.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return x(e,this.operator,this.semver,this.options)},D.prototype.intersects=function(e,t){if(!(e instanceof D))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new w(e.value,t),P(this.value,r,t));if(""===e.operator)return""===e.value||(r=new w(this.value,t),P(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||s||a&&i||o||u},t.Range=w,w.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},w.prototype.toString=function(){return this.range},w.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[i.HYPHENRANGELOOSE]:s[i.HYPHENRANGE];e=e.replace(n,T),r("hyphen replace",e),e=e.replace(s[i.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,s[i.COMPARATORTRIM]),e=(e=(e=e.replace(s[i.TILDETRIM],"$1~")).replace(s[i.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?s[i.CARETLOOSE]:s[i.CARET];return e.replace(n,(function(t,n,s,a,i){var o;return r("caret",e,t,n,s,a,i),S(n)?o="":S(s)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o="0"===n?">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":">="+n+"."+s+".0 <"+(+n+1)+".0.0":i?(r("replaceCaret pr",i),o="0"===n?"0"===s?">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+s+"."+(+a+1):">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+a+"-"+i+" <"+(+n+1)+".0.0"):(r("no pr"),o="0"===n?"0"===s?">="+n+"."+s+"."+a+" <"+n+"."+s+"."+(+a+1):">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+a+" <"+(+n+1)+".0.0"),r("caret return",o),o}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?s[i.TILDELOOSE]:s[i.TILDE];return e.replace(n,(function(t,n,s,a,i){var o;return r("tilde",e,t,n,s,a,i),S(n)?o="":S(s)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":i?(r("replaceTilde pr",i),o=">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+(+s+1)+".0"):o=">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0",r("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?s[i.XRANGELOOSE]:s[i.XRANGE];return e.replace(n,(function(n,s,a,i,o,u){r("xRange",e,n,s,a,i,o,u);var l=S(a),c=l||S(i),p=c||S(o),d=p;return"="===s&&d&&(s=""),u=t.includePrerelease?"-0":"",l?n=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(c&&(i=0),o=0,">"===s?(s=">=",c?(a=+a+1,i=0,o=0):(i=+i+1,o=0)):"<="===s&&(s="<",c?a=+a+1:i=+i+1),n=s+a+"."+i+"."+o+u):c?n=">="+a+".0.0"+u+" <"+(+a+1)+".0.0"+u:p&&(n=">="+a+"."+i+".0"+u+" <"+a+"."+(+i+1)+".0"+u),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(s[i.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(a)}))),o=o.map((function(e){return new D(e,this.options)}),this)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Range is required");return this.set.some((function(r){return C(r,t)&&e.set.some((function(e){return C(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new w(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},w.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(j(this.set[t],e,this.options))return!0;return!1},t.satisfies=P,t.maxSatisfying=function(e,t,r){var n=null,s=null;try{var a=new w(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&-1!==s.compare(e)||(s=new p(n=e,r)))})),n},t.minSatisfying=function(e,t,r){var n=null,s=null;try{var a=new w(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&1!==s.compare(e)||(s=new p(n=e,r)))})),n},t.minVersion=function(e,t){e=new w(e,t);var r=new p("0.0.0");if(e.test(r))return r;if(r=new p("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n){e.set[n].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!m(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new w(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return I(e,t,"<",r)},t.gtr=function(e,t,r){return I(e,t,">",r)},t.outside=I,t.prerelease=function(e,t){var r=c(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new w(e,r),t=new w(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),s[i.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);if(null===r)return null;return c(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}}),"/$$rollup_base$$/packages/babel-plugin-transform-runtime/node_modules/babel-plugin-polyfill-corejs2/node_modules/semver"),GU=t,VU=GU.types,WU=GU.template;function HU(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function XU(e){if(e.isIdentifier()&&!e.scope.hasBinding(e.node.name,!0))return e.node.name;var t=e.evaluate().deopt;return t&&t.isIdentifier()?t.node.name:void 0}function qU(e,t){void 0===t&&(t=!1);var r=e.node,n=e.parent,s=e.scope;if(e.isStringLiteral())return r.value;var a=r.name,i=e.isIdentifier();if(i&&!t&&!n.computed)return a;if(t&&e.isMemberExpression()&&e.get("object").isIdentifier({name:"Symbol"})&&!s.hasBinding("Symbol",!0)){var o=qU(e.get("property"),e.node.computed);if(o)return"Symbol."+o}if(!i||s.hasBinding(a,!0)){var u=e.evaluate().value;if("string"==typeof u)return u}}function $U(e){if(e.isMemberExpression()&&e.get("property").isIdentifier({name:"prototype"})){var t=XU(e.get("object"));return t?{id:t,placement:"prototype"}:{id:null,placement:null}}var r=XU(e);if(r)return{id:r,placement:"static"};var n,s=e.evaluate().value;return void 0!==s?{id:(n=s,Object.prototype.toString.call(n).slice(8,-1)),placement:"prototype"}:e.isRegExpLiteral()?{id:"RegExp",placement:"prototype"}:e.isFunction()?{id:"Function",placement:"prototype"}:{id:null,placement:null}}function KU(e){return e._blockHoist=3,e}var zU=t.types,JU=function(){function e(e){this._imports=new WeakMap,this._anonymousImports=new WeakMap,this._lastImports=new WeakMap,this._resolver=e}var t=e.prototype;return t.storeAnonymous=function(e,t,r){var n=this._normalizeKey(e,t),s=this._ensure(this._anonymousImports,e,Set);if(!s.has(n)){var a=r("script"===e.node.sourceType,zU.stringLiteral(this._resolver(t)));s.add(n),this._injectImport(e,a)}},t.storeNamed=function(e,t,r,n){var s=this._normalizeKey(e,t,r),a=this._ensure(this._imports,e,Map);if(!a.has(s)){var i=n("script"===e.node.sourceType,zU.stringLiteral(this._resolver(t)),zU.identifier(r)),o=i.node,u=i.name;a.set(s,u),this._injectImport(e,o)}return zU.identifier(a.get(s))},t._injectImport=function(e,t){var r=this._lastImports.get(e);r=(r=r&&r.node&&r.parent===e.node&&r.container===e.node.body?r.insertAfter(t):e.unshiftContainer("body",t))[r.length-1],this._lastImports.set(e,r)},t._ensure=function(e,t,r){var n=e.get(t);return n||(n=new r,e.set(t,n)),n},t._normalizeKey=function(e,t,r){void 0===r&&(r="");var n=e.node.sourceType;return(r&&n)+"::"+t+"::"+r},e}();function YU(e,t){return t.length?' - The following "'+e+"\" patterns didn't match any polyfill:\n"+t.map((function(e){return" "+String(e)+"\n"})).join(""):""}function QU(e,t,r,n){var s,a,i,o,u=function(e){var r=function(e){if(e instanceof RegExp)return e;try{return new RegExp("^"+e+"$")}catch(e){return null}}(e);if(!r)return!1;for(var n,a=!1,i=f(t);!(n=i()).done;){var o=n.value;r.test(o)&&(a=!0,s.add(o))}return!a},l=s=new Set,c=Array.from(r).filter(u),p=s=new Set,d=Array.from(n).filter(u),h=(a=l,i=p,o=new Set,a.forEach((function(e){return i.has(e)&&o.add(e)})),o);if(h.size>0||c.length>0||d.length>0)throw new Error('Error while validating the "'+e+'" provider options:\n'+YU("include",c)+YU("exclude",d)+function(e){return e.size?' - The following polyfills were matched both by "include" and "exclude" patterns:\n'+Array.from(e,(function(e){return" "+e+"\n"})).join(""):""}(h));return{include:l,exclude:p}}var ZU=function(e){function t(t,r,n,s){return e({kind:"property",object:t,key:r,placement:n},s)}return{ReferencedIdentifier:function(t){var r=t.node.name;t.scope.getBindingIdentifier(r)||e({kind:"global",name:r},t)},MemberExpression:function(e){var r=qU(e.get("property"),e.node.computed);if(r&&"prototype"!==r){var n=e.get("object"),s=n.scope.getBinding(n.node.name);if(!s||!s.path.isImportNamespaceSpecifier()){var a=$U(n);return t(a.id,r,a.placement,e)}}},ObjectPattern:function(e){var r,n=e.parentPath,s=e.parent;if(n.isVariableDeclarator())r=n.get("init");else if(n.isAssignmentExpression())r=n.get("right");else if(n.isFunction()){var a=n.parentPath;(a.isCallExpression()||a.isNewExpression())&&a.node.callee===s&&(r=a.get("arguments")[e.key])}var i=null,o=null;if(r){var u=$U(r);i=u.id,o=u.placement}for(var l,c=f(e.get("properties"));!(l=c()).done;){var p=l.value;if(p.isObjectProperty()){var d=qU(p.get("key"));d&&t(i,d,o,p)}}},BinaryExpression:function(t){if("in"===t.node.operator){var r=$U(t.get("right")),n=qU(t.get("left"),!0);n&&e({kind:"in",object:r.id,key:n,placement:r.placement},t)}}}},eG=function(e){return{ImportDeclaration:function(t){var r=function(e){var t=e.node;if(0===t.specifiers.length)return t.source.value}(t);r&&e({kind:"import",source:r},t)},Program:function(t){t.get("body").forEach((function(t){var r=function(e){var t=e.node;if(VU.isExpressionStatement(t)){var r=t.expression;return VU.isCallExpression(r)&&VU.isIdentifier(r.callee)&&"require"===r.callee.name&&1===r.arguments.length&&VU.isStringLiteral(r.arguments[0])?r.arguments[0].value:void 0}}(t);r&&e({kind:"import",source:r},t)}))}}};var tG=new Set(["global","globalThis","self","window"]);function rG(e){var t=e.static,r=e.instance,n=e.global;return function(e){if("global"===e.kind&&n&&HU(n,e.name))return{kind:"global",desc:n[e.name],name:e.name};if("property"===e.kind||"in"===e.kind){var s=e.placement,a=e.object,i=e.key;if(a&&"static"===s){if(n&&tG.has(a)&&HU(n,i))return{kind:"global",desc:n[i],name:i};if(t&&HU(t,a)&&HU(t[a],i))return{kind:"static",desc:t[a][i],name:a+"$"+i}}if(r&&HU(r,i))return{kind:"instance",desc:r[i],name:""+i}}}}var nG=nT.default||nT;function sG(e,t,r,n,s,a){var i,l,c,p,d,f=function(e,t){var r,n,s=e.method,a=e.targets,i=e.ignoreBrowserslistConfig,u=e.configPath,l=e.debug,c=e.shouldInjectPolyfill,p=e.absoluteImports,d=o(e,["method","targets","ignoreBrowserslistConfig","configPath","debug","shouldInjectPolyfill","absoluteImports"]);if("usage-global"===s)r="usageGlobal";else if("entry-global"===s)r="entryGlobal";else{if("usage-pure"!==s)throw"string"!=typeof s?new Error(".method must be a string"):new Error('.method must be one of "entry-global", "usage-global" or "usage-pure" (received '+JSON.stringify(s)+")");r="usagePure"}if("function"==typeof c){if(e.include||e.exclude)throw new Error(".include and .exclude are not supported when using the .shouldInjectPolyfill function.")}else if(null!=c)throw new Error(".shouldInjectPolyfill must be a function, or undefined (received "+JSON.stringify(c)+")");if(null!=p&&"boolean"!=typeof p&&"string"!=typeof p)throw new Error(".absoluteImports must be a boolean, a string, or undefined (received "+JSON.stringify(p)+")");if(a||u||i){var f="string"==typeof a||Array.isArray(a)?{browsers:a}:a;n=nG(f,{ignoreBrowserslistConfig:i,configPath:u})}else n=t.targets();return{method:s,methodName:r,targets:n,absoluteImports:null!=p&&p,shouldInjectPolyfill:c,debug:!!l,providerOptions:d}}(t,a),h=f.method,m=f.methodName,y=f.targets,g=f.debug,v=f.shouldInjectPolyfill,b=f.providerOptions,E=f.absoluteImports,x=function(e){return function(t){var r=t.findParent((function(e){return e.isProgram()}));return{injectGlobalImport:function(t){e.storeAnonymous(r,t,(function(e,t){return e?WU.statement.ast(_U||(_U=u(["require(",")"])),t):VU.importDeclaration([],t)}))},injectNamedImport:function(t,n,s){return void 0===s&&(s=n),e.storeNamed(r,t,n,(function(e,t,n){var a=r.scope.generateUidIdentifier(s);return{node:e?KU(WU.statement.ast(LU||(LU=u(["\n var "," = require(",").","\n "])),a,t,n)):VU.importDeclaration([VU.importSpecifier(a,n)],t),name:a.name}}))},injectDefaultImport:function(t,n){return void 0===n&&(n=t),e.storeNamed(r,t,"default",(function(e,t){var s=r.scope.generateUidIdentifier(n);return{node:e?KU(WU.statement.ast(MU||(MU=u(["var "," = require(",")"])),s,t)):VU.importDeclaration([VU.importDefaultSpecifier(s)],t),name:s.name}}))}}}}(new JU((function(e){return function(e,t,r){if(!1===r)return t;throw new Error('"absoluteImports" is not supported in bundles prepared for the browser.')}(0,e,E)}))),D=new Map,A={babel:a,getUtils:x,method:t.method,targets:y,createMetaResolver:rG,shouldInjectPolyfill:function(t){if(void 0===p)throw new Error("Internal error in the "+e.name+" provider: shouldInjectPolyfill() can't be called during initialization.");if(p.has(t)||console.warn("Internal error in the "+w.name+' provider: unknown polyfill "'+t+'".'),d&&!d(t))return!1;var r=JS(t,y,{compatData:c,includes:i,excludes:l});if(v&&"boolean"!=typeof(r=v(t,r)))throw new Error(".shouldInjectPolyfill must return a boolean.");return r},debug:function(e){s().found=!0,g&&e&&(s().polyfills.has(w.name)||s().polyfills.set(e,c&&e&&c[e]))},assertDependency:function(e,t){if(void 0===t&&(t="*"),!1!==r&&!E){var a="*"===t?e:e+"@^"+t;!r.all&&function(e,t,r){var n=e.get(t);void 0===n&&(n=r(),e.set(t,n));return n}(D,e+" :: "+n,(function(){return!0}))||s().missingDeps.add(a)}}},w=e(A,b,n);if("function"!=typeof w[m])throw new Error('The "'+(w.name||e.name)+'" provider doesn\'t support the "'+h+'" polyfilling method.');Array.isArray(w.polyfills)?(p=new Set(w.polyfills),d=w.filterPolyfills):w.polyfills?(p=new Set(Object.keys(w.polyfills)),c=w.polyfills,d=w.filterPolyfills):p=new Set;var C=QU(w.name||e.name,p,b.include||[],b.exclude||[]);return i=C.include,l=C.exclude,{debug:g,method:h,targets:y,provider:w,callProvider:function(e,t){var r=x(t);w[m](e,r,t)}}}function aG(e){return SF((function(t,r,n){t.assertVersion(7);var s,a=t.traverse,i=function(e,t){var r=e.missingDependencies,n=void 0===r?{}:r;if(!1===n)return!1;var s=t.caller((function(e){return null==e?void 0:e.name})),a=n.log,i=void 0===a?"deferred":a,o=n.inject,u=void 0===o?"rollup-plugin-babel"===s?"throw":"import":o,l=n.all;return{log:i,inject:u,all:void 0!==l&&l}}(r,t),o=sG(e,r,i,n,(function(){return s}),t),u=o.debug,c=o.method,p=o.targets,d=o.provider,h=o.callProvider,m="entry-global"===c?eG:ZU,y=d.visitor?a.visitors.merge([m(h),d.visitor]):m(h);return u&&"#__secret_key__@babel/preset-env__don't_log_debug_header_and_resolved_targets"!==u&&(console.log(d.name+": `DEBUG` option"),console.log("\nUsing targets: "+function(e){return JSON.stringify($S(e),null,2)}(p)),console.log("\nUsing polyfills with `"+c+"` method:")),{name:"inject-polyfills",visitor:y,pre:function(){var e;s={polyfills:new Map,found:!1,providers:new Set,missingDeps:new Set},null==(e=d.pre)||e.apply(this,arguments)},post:function(){var e;if(null==(e=d.post)||e.apply(this,arguments),!1!==i&&(i.log,s.missingDeps),u)if(this.filename&&console.log("\n["+this.filename+"]"),0!==s.polyfills.size){"entry-global"===c?console.log("The "+d.name+" polyfill entry has been replaced with the following polyfills:"):console.log("The "+d.name+" polyfill added the following polyfills:");for(var t,r=f(s.polyfills);!(t=r()).done;){var n=l(t.value,2),a=n[0],o=n[1];if(o){var h=KS(a,p,o),m=JSON.stringify(h).replace(/,/g,", ").replace(/^\{"/,'{ "').replace(/"\}$/,'" }');console.log(" "+a+" "+m)}else console.log(" "+a)}}else console.log("entry-global"===c?s.found?"Based on your targets, the "+d.name+" polyfill did not add any polyfill.":"The entry point for the "+d.name+" polyfill has not been found.":"Based on your code and targets, the "+d.name+" polyfill did not add any polyfill.")}}}))}var iG=function(e,t,r,n){return void 0===r&&(r=[]),{name:e,pure:t,global:r,meta:n}},oG=function(e,t,r){return void 0===r&&(r=null),iG(t[0],e,t,{minRuntimeVersion:r})},uG=function(e){return iG(e[0],null,e)},lG=function(e,t){return iG(t,e,[])},cG=["es6.object.to-string","es6.array.iterator","web.dom.iterable"],pG=["es6.string.iterator"].concat(cG),dG=["es6.object.to-string","es6.promise"],fG={DataView:uG(["es6.typed.data-view"]),Float32Array:uG(["es6.typed.float32-array"]),Float64Array:uG(["es6.typed.float64-array"]),Int8Array:uG(["es6.typed.int8-array"]),Int16Array:uG(["es6.typed.int16-array"]),Int32Array:uG(["es6.typed.int32-array"]),Map:oG("map",["es6.map"].concat(c(pG))),Number:uG(["es6.number.constructor"]),Promise:oG("promise",dG),RegExp:uG(["es6.regexp.constructor"]),Set:oG("set",["es6.set"].concat(c(pG))),Symbol:oG("symbol",["es6.symbol"]),Uint8Array:uG(["es6.typed.uint8-array"]),Uint8ClampedArray:uG(["es6.typed.uint8-clamped-array"]),Uint16Array:uG(["es6.typed.uint16-array"]),Uint32Array:uG(["es6.typed.uint32-array"]),WeakMap:oG("weak-map",["es6.weak-map"].concat(c(pG))),WeakSet:oG("weak-set",["es6.weak-set"].concat(c(pG))),setImmediate:lG("set-immediate","web.immediate"),clearImmediate:lG("clear-immediate","web.immediate"),parseFloat:lG("parse-float","es6.parse-float"),parseInt:lG("parse-int","es6.parse-int")},hG={__defineGetter__:uG(["es7.object.define-getter"]),__defineSetter__:uG(["es7.object.define-setter"]),__lookupGetter__:uG(["es7.object.lookup-getter"]),__lookupSetter__:uG(["es7.object.lookup-setter"]),anchor:uG(["es6.string.anchor"]),big:uG(["es6.string.big"]),bind:uG(["es6.function.bind"]),blink:uG(["es6.string.blink"]),bold:uG(["es6.string.bold"]),codePointAt:uG(["es6.string.code-point-at"]),copyWithin:uG(["es6.array.copy-within"]),endsWith:uG(["es6.string.ends-with"]),entries:uG(cG),every:uG(["es6.array.every"]),fill:uG(["es6.array.fill"]),filter:uG(["es6.array.filter"]),finally:uG(["es7.promise.finally"].concat(dG)),find:uG(["es6.array.find"]),findIndex:uG(["es6.array.find-index"]),fixed:uG(["es6.string.fixed"]),flags:uG(["es6.regexp.flags"]),flatMap:uG(["es7.array.flat-map"]),fontcolor:uG(["es6.string.fontcolor"]),fontsize:uG(["es6.string.fontsize"]),forEach:uG(["es6.array.for-each"]),includes:uG(["es6.string.includes","es7.array.includes"]),indexOf:uG(["es6.array.index-of"]),italics:uG(["es6.string.italics"]),keys:uG(cG),lastIndexOf:uG(["es6.array.last-index-of"]),link:uG(["es6.string.link"]),map:uG(["es6.array.map"]),match:uG(["es6.regexp.match"]),name:uG(["es6.function.name"]),padStart:uG(["es7.string.pad-start"]),padEnd:uG(["es7.string.pad-end"]),reduce:uG(["es6.array.reduce"]),reduceRight:uG(["es6.array.reduce-right"]),repeat:uG(["es6.string.repeat"]),replace:uG(["es6.regexp.replace"]),search:uG(["es6.regexp.search"]),small:uG(["es6.string.small"]),some:uG(["es6.array.some"]),sort:uG(["es6.array.sort"]),split:uG(["es6.regexp.split"]),startsWith:uG(["es6.string.starts-with"]),strike:uG(["es6.string.strike"]),sub:uG(["es6.string.sub"]),sup:uG(["es6.string.sup"]),toISOString:uG(["es6.date.to-iso-string"]),toJSON:uG(["es6.date.to-json"]),toString:uG(["es6.object.to-string","es6.date.to-string","es6.regexp.to-string"]),trim:uG(["es6.string.trim"]),trimEnd:uG(["es7.string.trim-right"]),trimLeft:uG(["es7.string.trim-left"]),trimRight:uG(["es7.string.trim-right"]),trimStart:uG(["es7.string.trim-left"]),values:uG(cG)};"es6.array.slice"in CR&&(hG.slice=uG(["es6.array.slice"]));var mG={Array:{from:oG("array/from",["es6.symbol","es6.array.from"].concat(c(pG))),isArray:oG("array/is-array",["es6.array.is-array"]),of:oG("array/of",["es6.array.of"])},Date:{now:oG("date/now",["es6.date.now"])},JSON:{stringify:lG("json/stringify","es6.symbol")},Math:{acosh:oG("math/acosh",["es6.math.acosh"],"7.0.1"),asinh:oG("math/asinh",["es6.math.asinh"],"7.0.1"),atanh:oG("math/atanh",["es6.math.atanh"],"7.0.1"),cbrt:oG("math/cbrt",["es6.math.cbrt"],"7.0.1"),clz32:oG("math/clz32",["es6.math.clz32"],"7.0.1"),cosh:oG("math/cosh",["es6.math.cosh"],"7.0.1"),expm1:oG("math/expm1",["es6.math.expm1"],"7.0.1"),fround:oG("math/fround",["es6.math.fround"],"7.0.1"),hypot:oG("math/hypot",["es6.math.hypot"],"7.0.1"),imul:oG("math/imul",["es6.math.imul"],"7.0.1"),log1p:oG("math/log1p",["es6.math.log1p"],"7.0.1"),log10:oG("math/log10",["es6.math.log10"],"7.0.1"),log2:oG("math/log2",["es6.math.log2"],"7.0.1"),sign:oG("math/sign",["es6.math.sign"],"7.0.1"),sinh:oG("math/sinh",["es6.math.sinh"],"7.0.1"),tanh:oG("math/tanh",["es6.math.tanh"],"7.0.1"),trunc:oG("math/trunc",["es6.math.trunc"],"7.0.1")},Number:{EPSILON:oG("number/epsilon",["es6.number.epsilon"]),MIN_SAFE_INTEGER:oG("number/min-safe-integer",["es6.number.min-safe-integer"]),MAX_SAFE_INTEGER:oG("number/max-safe-integer",["es6.number.max-safe-integer"]),isFinite:oG("number/is-finite",["es6.number.is-finite"]),isInteger:oG("number/is-integer",["es6.number.is-integer"]),isSafeInteger:oG("number/is-safe-integer",["es6.number.is-safe-integer"]),isNaN:oG("number/is-nan",["es6.number.is-nan"]),parseFloat:oG("number/parse-float",["es6.number.parse-float"]),parseInt:oG("number/parse-int",["es6.number.parse-int"])},Object:{assign:oG("object/assign",["es6.object.assign"]),create:oG("object/create",["es6.object.create"]),defineProperties:oG("object/define-properties",["es6.object.define-properties"]),defineProperty:oG("object/define-property",["es6.object.define-property"]),entries:oG("object/entries",["es7.object.entries"]),freeze:oG("object/freeze",["es6.object.freeze"]),getOwnPropertyDescriptor:oG("object/get-own-property-descriptor",["es6.object.get-own-property-descriptor"]),getOwnPropertyDescriptors:oG("object/get-own-property-descriptors",["es7.object.get-own-property-descriptors"]),getOwnPropertyNames:oG("object/get-own-property-names",["es6.object.get-own-property-names"]),getOwnPropertySymbols:oG("object/get-own-property-symbols",["es6.symbol"]),getPrototypeOf:oG("object/get-prototype-of",["es6.object.get-prototype-of"]),is:oG("object/is",["es6.object.is"]),isExtensible:oG("object/is-extensible",["es6.object.is-extensible"]),isFrozen:oG("object/is-frozen",["es6.object.is-frozen"]),isSealed:oG("object/is-sealed",["es6.object.is-sealed"]),keys:oG("object/keys",["es6.object.keys"]),preventExtensions:oG("object/prevent-extensions",["es6.object.prevent-extensions"]),seal:oG("object/seal",["es6.object.seal"]),setPrototypeOf:oG("object/set-prototype-of",["es6.object.set-prototype-of"]),values:oG("object/values",["es7.object.values"])},Promise:{all:uG(pG),race:uG(pG)},Reflect:{apply:oG("reflect/apply",["es6.reflect.apply"]),construct:oG("reflect/construct",["es6.reflect.construct"]),defineProperty:oG("reflect/define-property",["es6.reflect.define-property"]),deleteProperty:oG("reflect/delete-property",["es6.reflect.delete-property"]),get:oG("reflect/get",["es6.reflect.get"]),getOwnPropertyDescriptor:oG("reflect/get-own-property-descriptor",["es6.reflect.get-own-property-descriptor"]),getPrototypeOf:oG("reflect/get-prototype-of",["es6.reflect.get-prototype-of"]),has:oG("reflect/has",["es6.reflect.has"]),isExtensible:oG("reflect/is-extensible",["es6.reflect.is-extensible"]),ownKeys:oG("reflect/own-keys",["es6.reflect.own-keys"]),preventExtensions:oG("reflect/prevent-extensions",["es6.reflect.prevent-extensions"]),set:oG("reflect/set",["es6.reflect.set"]),setPrototypeOf:oG("reflect/set-prototype-of",["es6.reflect.set-prototype-of"])},String:{at:lG("string/at","es7.string.at"),fromCodePoint:oG("string/from-code-point",["es6.string.from-code-point"]),raw:oG("string/raw",["es6.string.raw"])},Symbol:{asyncIterator:uG(["es6.symbol","es7.symbol.async-iterator"]),for:lG("symbol/for","es6.symbol"),hasInstance:lG("symbol/has-instance","es6.symbol"),isConcatSpreadable:lG("symbol/is-concat-spreadable","es6.symbol"),iterator:iG("es6.symbol","symbol/iterator",pG),keyFor:lG("symbol/key-for","es6.symbol"),match:oG("symbol/match",["es6.regexp.match"]),replace:lG("symbol/replace","es6.symbol"),search:lG("symbol/search","es6.symbol"),species:lG("symbol/species","es6.symbol"),split:lG("symbol/split","es6.symbol"),toPrimitive:lG("symbol/to-primitive","es6.symbol"),toStringTag:lG("symbol/to-string-tag","es6.symbol"),unscopables:lG("symbol/unscopables","es6.symbol")}},yG={"web.timers":{},"web.immediate":{},"web.dom.iterable":{}},gG={"es6.parse-float":{},"es6.parse-int":{},"es7.string.at":{}};var vG=t.types,bG=Function.call.bind(Object.hasOwnProperty),EG=aG((function(e,t){var r=t["#__secret_key__@babel/preset-env__compatibility"],n=(r=void 0===r?{}:r).entryInjectRegenerator,s=t["#__secret_key__@babel/runtime__compatibility"],a=(s=void 0===s?{}:s).useBabelRuntime,i=s.runtimeVersion,o=s.ext,u=void 0===o?".js":o,l=e.createMetaResolver({global:fG,static:mG,instance:hG}),c=e.debug,p=e.shouldInjectPolyfill,d=e.method,f=function(e,t,r){var n=Object.keys(e),s=!n.length,a=n.some((function(e){return"node"!==e}));return Object.assign(Object.assign(Object.assign({},r),"usage-pure"===t?gG:null),s||a?yG:null)}(e.targets,d,CR),h=a?a+"/core-js":"usage-pure"===d?"core-js/library/fn":"core-js/modules";function m(e,t){"string"!=typeof e?e.forEach((function(e){return m(e,t)})):bG(f,e)&&p(e)&&(c(e),t.injectGlobalImport(h+"/"+e+".js"))}function y(e,t,r){var n=e.pure,s=e.meta,a=e.name;if(n&&p(a)&&(!(i&&s&&s.minRuntimeVersion)||function(e,t){return!(t&&e&&(UU.valid(t)&&(t="^"+t),UU.intersects("<"+e,t)||UU.intersects(">=8.0.0",t)))}(s&&s.minRuntimeVersion,i)))return r.injectDefaultImport(h+"/"+n+u,t)}return{name:"corejs2",polyfills:f,entryGlobal:function(e,t,r){"import"===e.kind&&"core-js"===e.source&&(c(null),m(Object.keys(f),t),n&&t.injectGlobalImport("regenerator-runtime/runtime.js"),r.remove())},usageGlobal:function(e,t){var r=l(e);if(r){var n=r.desc.global;if("global"!==r.kind&&e.object&&"prototype"===e.placement){var s=e.object.toLowerCase();n=n.filter((function(e){return e.includes(s)}))}m(n,t)}},usagePure:function(e,t,r){if("in"!==e.kind){if(!r.parentPath.isUnaryExpression({operator:"delete"})){if("property"===e.kind){if(!r.isMemberExpression())return;if(!r.isReferenced())return;if("Symbol.iterator"===e.key&&p("es6.symbol")&&r.parentPath.isCallExpression({callee:r.node})&&0===r.parent.arguments.length)return r.parentPath.replaceWith(vG.callExpression(t.injectDefaultImport(h+"/get-iterator"+u,"getIterator"),[r.node.object])),void r.skip()}var n=l(e);if(n){var s=y(n.desc,n.name,t);s&&r.replaceWith(s)}}}else"Symbol.iterator"===e.key&&r.replaceWith(vG.callExpression(t.injectDefaultImport(h+"/is-iterable"+u,"isIterable"),[r.node.right]))},visitor:"usage-global"===d&&{YieldExpression:function(t){t.node.delegate&&m("web.dom.iterable",e.getUtils(t))},"ForOfStatement|ArrayPattern":function(t){pG.forEach((function(r){return m(r,e.getUtils(t))}))}}}})),xG={"es.symbol":{android:"49",chrome:"49",edge:"15",electron:"0.37",firefox:"51",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.symbol.description":{android:"70",chrome:"70",edge:"74",electron:"5.0",firefox:"63",ios:"12.2",node:"11.0",opera:"57",opera_mobile:"49",safari:"12.1",samsung:"10.0"},"es.symbol.async-iterator":{android:"63",chrome:"63",edge:"74",electron:"3.0",firefox:"55",ios:"12.0",node:"10.0",opera:"50",opera_mobile:"46",safari:"12.0",samsung:"8.0"},"es.symbol.has-instance":{android:"50",chrome:"50",edge:"15",electron:"1.1",firefox:"49",ios:"10.0",node:"6.0",opera:"37",opera_mobile:"37",safari:"10.0",samsung:"5.0"},"es.symbol.is-concat-spreadable":{android:"48",chrome:"48",edge:"15",electron:"0.37",firefox:"48",ios:"10.0",node:"6.0",opera:"35",opera_mobile:"35",safari:"10.0",samsung:"5.0"},"es.symbol.iterator":{android:"41",chrome:"41",edge:"13",electron:"0.21",firefox:"36",ios:"9.0",node:"1.0",opera:"28",opera_mobile:"28",safari:"9.0",samsung:"3.4"},"es.symbol.match":{android:"50",chrome:"50",edge:"74",electron:"1.1",firefox:"40",ios:"10.0",node:"6.0",opera:"37",opera_mobile:"37",safari:"10.0",samsung:"5.0"},"es.symbol.match-all":{android:"73",chrome:"73",edge:"74",electron:"5.0",firefox:"67",ios:"13.0",node:"12.0",opera:"60",opera_mobile:"52",safari:"13",samsung:"11.0"},"es.symbol.replace":{android:"50",chrome:"50",edge:"74",electron:"1.1",firefox:"49",ios:"10.0",node:"6.0",opera:"37",opera_mobile:"37",safari:"10.0",samsung:"5.0"},"es.symbol.search":{android:"50",chrome:"50",edge:"74",electron:"1.1",firefox:"49",ios:"10.0",node:"6.0",opera:"37",opera_mobile:"37",safari:"10.0",samsung:"5.0"},"es.symbol.species":{android:"51",chrome:"51",edge:"13",electron:"1.2",firefox:"41",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.symbol.split":{android:"50",chrome:"50",edge:"74",electron:"1.1",firefox:"49",ios:"10.0",node:"6.0",opera:"37",opera_mobile:"37",safari:"10.0",samsung:"5.0"},"es.symbol.to-primitive":{android:"47",chrome:"47",edge:"15",electron:"0.36",firefox:"44",ios:"10.0",node:"6.0",opera:"34",opera_mobile:"34",safari:"10.0",samsung:"5.0"},"es.symbol.to-string-tag":{android:"49",chrome:"49",edge:"15",electron:"0.37",firefox:"51",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.symbol.unscopables":{android:"41",chrome:"41",edge:"13",electron:"0.21",firefox:"48",ios:"9.0",node:"1.0",opera:"28",opera_mobile:"28",safari:"9.0",samsung:"3.4"},"es.aggregate-error":{android:"85",chrome:"85",edge:"85",electron:"10.0",firefox:"79",ios:"14.0",node:"15.0",opera:"71",opera_mobile:"60",safari:"14.0",samsung:"14.0"},"es.array.concat":{android:"51",chrome:"51",edge:"15",electron:"1.2",firefox:"48",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.array.copy-within":{android:"45",chrome:"45",edge:"12",electron:"0.31",firefox:"48",ios:"9.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"9.0",samsung:"5.0"},"es.array.every":{android:"4.4",chrome:"26",edge:"12",electron:"0.20",firefox:"4",ie:"9",ios:"9.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"8.0",samsung:"1.5"},"es.array.fill":{android:"45",chrome:"45",edge:"12",electron:"0.31",firefox:"48",ios:"9.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"9.0",samsung:"5.0"},"es.array.filter":{android:"51",chrome:"51",edge:"15",electron:"1.2",firefox:"48",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.array.find":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"48",ios:"9.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"9.0",samsung:"5.0"},"es.array.find-index":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"48",ios:"9.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"9.0",samsung:"5.0"},"es.array.flat":{android:"69",chrome:"69",edge:"74",electron:"4.0",firefox:"62",ios:"12.0",node:"11.0",opera:"56",opera_mobile:"48",safari:"12.0",samsung:"10.0"},"es.array.flat-map":{android:"69",chrome:"69",edge:"74",electron:"4.0",firefox:"62",ios:"12.0",node:"11.0",opera:"56",opera_mobile:"48",safari:"12.0",samsung:"10.0"},"es.array.for-each":{android:"4.4",chrome:"26",edge:"12",electron:"0.20",firefox:"4",ie:"9",ios:"9.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"8.0",samsung:"1.5"},"es.array.from":{android:"51",chrome:"51",edge:"15",electron:"1.2",firefox:"53",ios:"9.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"9.0",samsung:"5.0"},"es.array.includes":{android:"53",chrome:"53",edge:"14",electron:"1.4",firefox:"48",ios:"10.0",node:"7.0",opera:"40",opera_mobile:"40",safari:"10.0",samsung:"6.0"},"es.array.index-of":{android:"51",chrome:"51",edge:"12",electron:"1.2",firefox:"4",ie:"9",ios:"9.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"8.0",samsung:"5.0"},"es.array.is-array":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"4",ie:"9",ios:"3.2",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"4.0",samsung:"1.0"},"es.array.iterator":{android:"66",chrome:"66",edge:"15",electron:"3.0",firefox:"60",ios:"10.0",node:"10.0",opera:"53",opera_mobile:"47",safari:"10.0",samsung:"9.0"},"es.array.join":{android:"4.4",chrome:"26",edge:"13",electron:"0.20",firefox:"4",ios:"8.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"7.1",samsung:"1.5"},"es.array.last-index-of":{android:"51",chrome:"51",edge:"12",electron:"1.2",firefox:"4",ie:"9",ios:"9.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"8.0",samsung:"5.0"},"es.array.map":{android:"51",chrome:"51",edge:"13",electron:"1.2",firefox:"50",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.array.of":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"25",ios:"9.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"9.0",samsung:"5.0"},"es.array.reduce":{android:"83",chrome:"83",edge:"12",electron:"9.0",firefox:"4",ie:"9",ios:"9.0",node:"6.0",opera:"69",opera_mobile:"59",safari:"8.0",samsung:"13.0"},"es.array.reduce-right":{android:"83",chrome:"83",edge:"12",electron:"9.0",firefox:"4",ie:"9",ios:"9.0",node:"6.0",opera:"69",opera_mobile:"59",safari:"8.0",samsung:"13.0"},"es.array.reverse":{android:"3.0",chrome:"1",edge:"12",electron:"0.20",firefox:"1",ie:"5.5",ios:"12.2",node:"0.0.3",opera:"10.50",opera_mobile:"10.50",safari:"12.0.2",samsung:"1.0"},"es.array.slice":{android:"51",chrome:"51",edge:"13",electron:"1.2",firefox:"48",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.array.some":{android:"4.4",chrome:"26",edge:"12",electron:"0.20",firefox:"4",ie:"9",ios:"9.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"8.0",samsung:"1.5"},"es.array.sort":{android:"70",chrome:"70",edge:"74",electron:"5.0",firefox:"4",ios:"12.0",node:"11.0",opera:"57",opera_mobile:"49",safari:"12.0",samsung:"10.0"},"es.array.species":{android:"51",chrome:"51",edge:"13",electron:"1.2",firefox:"48",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.array.splice":{android:"51",chrome:"51",edge:"13",electron:"1.2",firefox:"49",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.array.unscopables.flat":{android:"73",chrome:"73",edge:"74",electron:"5.0",firefox:"67",ios:"13.0",node:"12.0",opera:"60",opera_mobile:"52",safari:"13",samsung:"11.0"},"es.array.unscopables.flat-map":{android:"73",chrome:"73",edge:"74",electron:"5.0",firefox:"67",ios:"13.0",node:"12.0",opera:"60",opera_mobile:"52",safari:"13",samsung:"11.0"},"es.array-buffer.constructor":{android:"4.4",chrome:"26",edge:"14",electron:"0.20",firefox:"44",ios:"12.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"12.0",samsung:"1.5"},"es.array-buffer.is-view":{android:"4.4.3",chrome:"32",edge:"12",electron:"0.20",firefox:"29",ie:"11",ios:"8.0",node:"0.11.9",opera:"19",opera_mobile:"19",safari:"7.1",samsung:"2.0"},"es.array-buffer.slice":{android:"4.4.3",chrome:"31",edge:"12",electron:"0.20",firefox:"46",ie:"11",ios:"12.2",node:"0.11.8",opera:"18",opera_mobile:"18",safari:"12.1",samsung:"2.0"},"es.data-view":{android:"4.4",chrome:"26",edge:"12",electron:"0.20",firefox:"15",ie:"10",ios:"8.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"7.1",samsung:"1.5"},"es.date.now":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ie:"9",ios:"3.2",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"4.0",samsung:"1.0"},"es.date.to-iso-string":{android:"4.4",chrome:"26",edge:"12",electron:"0.20",firefox:"7",ie:"9",ios:"8.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"7.1",samsung:"1.5"},"es.date.to-json":{android:"4.4",chrome:"26",edge:"12",electron:"0.20",firefox:"4",ie:"9",ios:"10.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"10.0",samsung:"1.5"},"es.date.to-primitive":{android:"47",chrome:"47",edge:"15",electron:"0.36",firefox:"44",ios:"10.0",node:"6.0",opera:"34",opera_mobile:"34",safari:"10.0",samsung:"5.0"},"es.date.to-string":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ie:"9",ios:"2.0",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"3.1",samsung:"1.0"},"es.function.bind":{android:"3.0",chrome:"7",edge:"12",electron:"0.20",firefox:"4",ie:"9",ios:"5.1",node:"0.1.101",opera:"12",opera_mobile:"12",phantom:"2.0",safari:"5.1",samsung:"1.0"},"es.function.has-instance":{android:"51",chrome:"51",edge:"15",electron:"1.2",firefox:"50",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.function.name":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ios:"3.2",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"4.0",samsung:"1.0"},"es.global-this":{android:"71",chrome:"71",edge:"74",electron:"5.0",firefox:"65",ios:"12.2",node:"12.0",opera:"58",opera_mobile:"50",safari:"12.1",samsung:"10.0"},"es.json.stringify":{android:"72",chrome:"72",edge:"74",electron:"5.0",firefox:"64",ios:"12.2",node:"12.0",opera:"59",opera_mobile:"51",safari:"12.1",samsung:"11.0"},"es.json.to-string-tag":{android:"50",chrome:"50",edge:"15",electron:"1.1",firefox:"51",ios:"10.0",node:"6.0",opera:"37",opera_mobile:"37",safari:"10.0",samsung:"5.0"},"es.map":{android:"51",chrome:"51",edge:"15",electron:"1.2",firefox:"53",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.math.acosh":{android:"54",chrome:"54",edge:"13",electron:"1.4",firefox:"25",ios:"8.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"7.1",samsung:"6.0"},"es.math.asinh":{android:"38",chrome:"38",edge:"13",electron:"0.20",firefox:"25",ios:"8.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"7.1",samsung:"3.0"},"es.math.atanh":{android:"38",chrome:"38",edge:"13",electron:"0.20",firefox:"25",ios:"8.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"7.1",samsung:"3.0"},"es.math.cbrt":{android:"38",chrome:"38",edge:"12",electron:"0.20",firefox:"25",ios:"8.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"7.1",samsung:"3.0"},"es.math.clz32":{android:"38",chrome:"38",edge:"12",electron:"0.20",firefox:"31",ios:"9.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"9.0",samsung:"3.0"},"es.math.cosh":{android:"39",chrome:"39",edge:"13",electron:"0.20",firefox:"25",ios:"8.0",node:"1.0",opera:"26",opera_mobile:"26",safari:"7.1",samsung:"3.4"},"es.math.expm1":{android:"39",chrome:"39",edge:"13",electron:"0.20",firefox:"46",ios:"8.0",node:"1.0",opera:"26",opera_mobile:"26",safari:"7.1",samsung:"3.4"},"es.math.fround":{android:"38",chrome:"38",edge:"12",electron:"0.20",firefox:"26",ios:"8.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"7.1",samsung:"3.0"},"es.math.hypot":{android:"78",chrome:"78",edge:"12",electron:"7.0",firefox:"27",ios:"8.0",node:"13.0",opera:"65",opera_mobile:"56",safari:"7.1",samsung:"12.0"},"es.math.imul":{android:"4.4",chrome:"28",edge:"13",electron:"0.20",firefox:"20",ios:"9.0",node:"0.11.1",opera:"16",opera_mobile:"16",safari:"9.0",samsung:"1.5"},"es.math.log10":{android:"38",chrome:"38",edge:"12",electron:"0.20",firefox:"25",ios:"8.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"7.1",samsung:"3.0"},"es.math.log1p":{android:"38",chrome:"38",edge:"12",electron:"0.20",firefox:"25",ios:"8.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"7.1",samsung:"3.0"},"es.math.log2":{android:"38",chrome:"38",edge:"12",electron:"0.20",firefox:"25",ios:"8.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"7.1",samsung:"3.0"},"es.math.sign":{android:"38",chrome:"38",edge:"12",electron:"0.20",firefox:"25",ios:"9.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"9.0",samsung:"3.0"},"es.math.sinh":{android:"39",chrome:"39",edge:"13",electron:"0.20",firefox:"25",ios:"8.0",node:"1.0",opera:"26",opera_mobile:"26",safari:"7.1",samsung:"3.4"},"es.math.tanh":{android:"38",chrome:"38",edge:"12",electron:"0.20",firefox:"25",ios:"8.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"7.1",samsung:"3.0"},"es.math.to-string-tag":{android:"50",chrome:"50",edge:"15",electron:"1.1",firefox:"51",ios:"10.0",node:"6.0",opera:"37",opera_mobile:"37",safari:"10.0",samsung:"5.0"},"es.math.trunc":{android:"38",chrome:"38",edge:"12",electron:"0.20",firefox:"25",ios:"8.0",node:"0.11.15",opera:"25",opera_mobile:"25",safari:"7.1",samsung:"3.0"},"es.number.constructor":{android:"41",chrome:"41",edge:"13",electron:"0.21",firefox:"46",ios:"9.0",node:"1.0",opera:"28",opera_mobile:"28",safari:"9.0",samsung:"3.4"},"es.number.epsilon":{android:"37",chrome:"34",edge:"12",electron:"0.20",firefox:"25",ios:"9.0",node:"0.11.13",opera:"21",opera_mobile:"21",safari:"9.0",samsung:"2.0"},"es.number.is-finite":{android:"4.1",chrome:"19",edge:"12",electron:"0.20",firefox:"16",ios:"9.0",node:"0.7.3",opera:"15",opera_mobile:"15",safari:"9.0",samsung:"1.5"},"es.number.is-integer":{android:"37",chrome:"34",edge:"12",electron:"0.20",firefox:"16",ios:"9.0",node:"0.11.13",opera:"21",opera_mobile:"21",safari:"9.0",samsung:"2.0"},"es.number.is-nan":{android:"4.1",chrome:"19",edge:"12",electron:"0.20",firefox:"15",ios:"9.0",node:"0.7.3",opera:"15",opera_mobile:"15",safari:"9.0",samsung:"1.5"},"es.number.is-safe-integer":{android:"37",chrome:"34",edge:"12",electron:"0.20",firefox:"32",ios:"9.0",node:"0.11.13",opera:"21",opera_mobile:"21",safari:"9.0",samsung:"2.0"},"es.number.max-safe-integer":{android:"37",chrome:"34",edge:"12",electron:"0.20",firefox:"31",ios:"9.0",node:"0.11.13",opera:"21",opera_mobile:"21",safari:"9.0",samsung:"2.0"},"es.number.min-safe-integer":{android:"37",chrome:"34",edge:"12",electron:"0.20",firefox:"31",ios:"9.0",node:"0.11.13",opera:"21",opera_mobile:"21",safari:"9.0",samsung:"2.0"},"es.number.parse-float":{android:"37",chrome:"35",edge:"13",electron:"0.20",firefox:"39",ios:"11.0",node:"0.11.13",opera:"22",opera_mobile:"22",safari:"11.0",samsung:"3.0"},"es.number.parse-int":{android:"37",chrome:"35",edge:"13",electron:"0.20",firefox:"39",ios:"9.0",node:"0.11.13",opera:"22",opera_mobile:"22",safari:"9.0",samsung:"3.0"},"es.number.to-fixed":{android:"4.4",chrome:"26",edge:"74",electron:"0.20",firefox:"4",ios:"8.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"7.1",samsung:"1.5"},"es.number.to-precision":{android:"4.4",chrome:"26",edge:"12",electron:"0.20",firefox:"4",ie:"8",ios:"8.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"7.1",samsung:"1.5"},"es.object.assign":{android:"49",chrome:"49",edge:"74",electron:"0.37",firefox:"36",ios:"9.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"9.0",samsung:"5.0"},"es.object.create":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"4",ie:"9",ios:"3.2",node:"0.1.27",opera:"12",opera_mobile:"12",phantom:"1.9",safari:"4.0",samsung:"1.0"},"es.object.define-getter":{android:"62",chrome:"62",edge:"16",electron:"3.0",firefox:"48",ios:"8.0",node:"8.10",opera:"49",opera_mobile:"46",safari:"7.1",samsung:"8.0"},"es.object.define-properties":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"4",ie:"9",ios:"5.1",node:"0.1.27",opera:"12",opera_mobile:"12",phantom:"2.0",safari:"5.1",samsung:"1.0"},"es.object.define-property":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"4",ie:"9",ios:"5.1",node:"0.1.27",opera:"12",opera_mobile:"12",phantom:"2.0",safari:"5.1",samsung:"1.0"},"es.object.define-setter":{android:"62",chrome:"62",edge:"16",electron:"3.0",firefox:"48",ios:"8.0",node:"8.10",opera:"49",opera_mobile:"46",safari:"7.1",samsung:"8.0"},"es.object.entries":{android:"54",chrome:"54",edge:"14",electron:"1.4",firefox:"47",ios:"10.3",node:"7.0",opera:"41",opera_mobile:"41",safari:"10.1",samsung:"6.0"},"es.object.freeze":{android:"44",chrome:"44",edge:"13",electron:"0.30",firefox:"35",ios:"9.0",node:"3.0",opera:"31",opera_mobile:"31",safari:"9.0",samsung:"4.0"},"es.object.from-entries":{android:"73",chrome:"73",edge:"74",electron:"5.0",firefox:"63",ios:"12.2",node:"12.0",opera:"60",opera_mobile:"52",safari:"12.1",samsung:"11.0"},"es.object.get-own-property-descriptor":{android:"44",chrome:"44",edge:"13",electron:"0.30",firefox:"35",ios:"9.0",node:"3.0",opera:"31",opera_mobile:"31",safari:"9.0",samsung:"4.0"},"es.object.get-own-property-descriptors":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"50",ios:"10.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"10.0",samsung:"6.0"},"es.object.get-own-property-names":{android:"40",chrome:"40",edge:"13",electron:"0.21",firefox:"34",ios:"9.0",node:"1.0",opera:"27",opera_mobile:"27",safari:"9.0",samsung:"3.4"},"es.object.get-prototype-of":{android:"44",chrome:"44",edge:"13",electron:"0.30",firefox:"35",ios:"9.0",node:"3.0",opera:"31",opera_mobile:"31",safari:"9.0",samsung:"4.0"},"es.object.is":{android:"4.1",chrome:"19",edge:"12",electron:"0.20",firefox:"22",ios:"9.0",node:"0.7.3",opera:"15",opera_mobile:"15",safari:"9.0",samsung:"1.5"},"es.object.is-extensible":{android:"44",chrome:"44",edge:"13",electron:"0.30",firefox:"35",ios:"9.0",node:"3.0",opera:"31",opera_mobile:"31",safari:"9.0",samsung:"4.0"},"es.object.is-frozen":{android:"44",chrome:"44",edge:"13",electron:"0.30",firefox:"35",ios:"9.0",node:"3.0",opera:"31",opera_mobile:"31",safari:"9.0",samsung:"4.0"},"es.object.is-sealed":{android:"44",chrome:"44",edge:"13",electron:"0.30",firefox:"35",ios:"9.0",node:"3.0",opera:"31",opera_mobile:"31",safari:"9.0",samsung:"4.0"},"es.object.keys":{android:"40",chrome:"40",edge:"13",electron:"0.21",firefox:"35",ios:"9.0",node:"1.0",opera:"27",opera_mobile:"27",safari:"9.0",samsung:"3.4"},"es.object.lookup-getter":{android:"62",chrome:"62",edge:"16",electron:"3.0",firefox:"48",ios:"8.0",node:"8.10",opera:"49",opera_mobile:"46",safari:"7.1",samsung:"8.0"},"es.object.lookup-setter":{android:"62",chrome:"62",edge:"16",electron:"3.0",firefox:"48",ios:"8.0",node:"8.10",opera:"49",opera_mobile:"46",safari:"7.1",samsung:"8.0"},"es.object.prevent-extensions":{android:"44",chrome:"44",edge:"13",electron:"0.30",firefox:"35",ios:"9.0",node:"3.0",opera:"31",opera_mobile:"31",safari:"9.0",samsung:"4.0"},"es.object.seal":{android:"44",chrome:"44",edge:"13",electron:"0.30",firefox:"35",ios:"9.0",node:"3.0",opera:"31",opera_mobile:"31",safari:"9.0",samsung:"4.0"},"es.object.set-prototype-of":{android:"37",chrome:"34",edge:"12",electron:"0.20",firefox:"31",ie:"11",ios:"9.0",node:"0.11.13",opera:"21",opera_mobile:"21",safari:"9.0",samsung:"2.0"},"es.object.to-string":{android:"49",chrome:"49",edge:"15",electron:"0.37",firefox:"51",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.object.values":{android:"54",chrome:"54",edge:"14",electron:"1.4",firefox:"47",ios:"10.3",node:"7.0",opera:"41",opera_mobile:"41",safari:"10.1",samsung:"6.0"},"es.parse-float":{android:"37",chrome:"35",edge:"12",electron:"0.20",firefox:"8",ie:"8",ios:"8.0",node:"0.11.13",opera:"22",opera_mobile:"22",safari:"7.1",samsung:"3.0"},"es.parse-int":{android:"37",chrome:"35",edge:"12",electron:"0.20",firefox:"21",ie:"9",ios:"8.0",node:"0.11.13",opera:"22",opera_mobile:"22",safari:"7.1",samsung:"3.0"},"es.promise":{android:"67",chrome:"67",edge:"74",electron:"4.0",firefox:"69",ios:"11.0",node:"10.4",opera:"54",opera_mobile:"48",safari:"11.0",samsung:"9.0"},"es.promise.all-settled":{android:"76",chrome:"76",edge:"76",electron:"6.0",firefox:"71",ios:"13.0",node:"12.9",opera:"63",opera_mobile:"54",safari:"13",samsung:"12.0"},"es.promise.any":{android:"85",chrome:"85",edge:"85",electron:"10.0",firefox:"79",ios:"14.0",node:"15.0",opera:"71",opera_mobile:"60",safari:"14.0",samsung:"14.0"},"es.promise.finally":{android:"67",chrome:"67",edge:"74",electron:"4.0",firefox:"69",ios:"13.2.3",node:"10.4",opera:"54",opera_mobile:"48",safari:"13.0.3",samsung:"9.0"},"es.reflect.apply":{android:"49",chrome:"49",edge:"15",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.construct":{android:"49",chrome:"49",edge:"15",electron:"0.37",firefox:"44",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.define-property":{android:"49",chrome:"49",edge:"13",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.delete-property":{android:"49",chrome:"49",edge:"12",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.get":{android:"49",chrome:"49",edge:"12",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.get-own-property-descriptor":{android:"49",chrome:"49",edge:"12",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.get-prototype-of":{android:"49",chrome:"49",edge:"12",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.has":{android:"49",chrome:"49",edge:"12",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.is-extensible":{android:"49",chrome:"49",edge:"12",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.own-keys":{android:"49",chrome:"49",edge:"12",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.prevent-extensions":{android:"49",chrome:"49",edge:"12",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.set":{android:"49",chrome:"49",edge:"74",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.set-prototype-of":{android:"49",chrome:"49",edge:"12",electron:"0.37",firefox:"42",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.reflect.to-string-tag":{android:"86",chrome:"86",edge:"86",electron:"11.0",firefox:"82",ios:"14.0",node:"15.0",opera:"72",opera_mobile:"61",safari:"14.0",samsung:"14.0"},"es.regexp.constructor":{android:"51",chrome:"51",edge:"74",electron:"1.2",firefox:"49",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.regexp.exec":{android:"4.4",chrome:"26",edge:"13",electron:"0.20",firefox:"44",ios:"10.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"10.0",samsung:"1.5"},"es.regexp.flags":{android:"49",chrome:"49",edge:"74",electron:"0.37",firefox:"37",ios:"9.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"9.0",samsung:"5.0"},"es.regexp.sticky":{android:"49",chrome:"49",edge:"13",electron:"0.37",firefox:"3",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.regexp.test":{android:"51",chrome:"51",edge:"74",electron:"1.2",firefox:"46",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.regexp.to-string":{android:"50",chrome:"50",edge:"74",electron:"1.1",firefox:"46",ios:"10.0",node:"6.0",opera:"37",opera_mobile:"37",safari:"10.0",samsung:"5.0"},"es.set":{android:"51",chrome:"51",edge:"15",electron:"1.2",firefox:"53",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.string.code-point-at":{android:"41",chrome:"41",edge:"13",electron:"0.21",firefox:"29",ios:"9.0",node:"1.0",opera:"28",opera_mobile:"28",safari:"9.0",samsung:"3.4"},"es.string.ends-with":{android:"51",chrome:"51",edge:"74",electron:"1.2",firefox:"40",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.string.from-code-point":{android:"41",chrome:"41",edge:"13",electron:"0.21",firefox:"29",ios:"9.0",node:"1.0",opera:"28",opera_mobile:"28",safari:"9.0",samsung:"3.4"},"es.string.includes":{android:"51",chrome:"51",edge:"74",electron:"1.2",firefox:"40",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.string.iterator":{android:"41",chrome:"41",edge:"13",electron:"0.21",firefox:"36",ios:"9.0",node:"1.0",opera:"28",opera_mobile:"28",safari:"9.0",samsung:"3.4"},"es.string.match":{android:"51",chrome:"51",edge:"74",electron:"1.2",firefox:"49",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.string.match-all":{android:"80",chrome:"80",edge:"80",electron:"8.0",firefox:"73",ios:"13.4",node:"14.0",opera:"67",opera_mobile:"57",safari:"13.1",samsung:"13.0"},"es.string.pad-end":{android:"57",chrome:"57",edge:"15",electron:"1.7",firefox:"48",ios:"11.0",node:"8.0",opera:"44",opera_mobile:"43",safari:"11.0",samsung:"7.0"},"es.string.pad-start":{android:"57",chrome:"57",edge:"15",electron:"1.7",firefox:"48",ios:"11.0",node:"8.0",opera:"44",opera_mobile:"43",safari:"11.0",samsung:"7.0"},"es.string.raw":{android:"41",chrome:"41",edge:"13",electron:"0.21",firefox:"34",ios:"9.0",node:"1.0",opera:"28",opera_mobile:"28",safari:"9.0",samsung:"3.4"},"es.string.repeat":{android:"41",chrome:"41",edge:"13",electron:"0.21",firefox:"24",ios:"9.0",node:"1.0",opera:"28",opera_mobile:"28",safari:"9.0",samsung:"3.4"},"es.string.replace":{android:"64",chrome:"64",edge:"74",electron:"3.0",firefox:"78",ios:"14.0",node:"10.0",opera:"51",opera_mobile:"47",safari:"14.0",samsung:"9.0"},"es.string.replace-all":{android:"85",chrome:"85",edge:"85",electron:"10.0",firefox:"77",ios:"13.4",node:"15.0",opera:"71",opera_mobile:"60",safari:"13.1",samsung:"14.0"},"es.string.search":{android:"51",chrome:"51",edge:"74",electron:"1.2",firefox:"49",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.string.split":{android:"54",chrome:"54",edge:"74",electron:"1.4",firefox:"49",ios:"10.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"10.0",samsung:"6.0"},"es.string.starts-with":{android:"51",chrome:"51",edge:"74",electron:"1.2",firefox:"40",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.string.trim":{android:"59",chrome:"59",edge:"15",electron:"1.8",firefox:"52",ios:"12.2",node:"8.3",opera:"46",opera_mobile:"43",safari:"12.1",samsung:"7.0"},"es.string.trim-end":{android:"66",chrome:"66",edge:"74",electron:"3.0",firefox:"61",ios:"12.2",node:"10.0",opera:"53",opera_mobile:"47",safari:"12.1",samsung:"9.0"},"es.string.trim-start":{android:"66",chrome:"66",edge:"74",electron:"3.0",firefox:"61",ios:"12.0",node:"10.0",opera:"53",opera_mobile:"47",safari:"12.0",samsung:"9.0"},"es.string.anchor":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"17",ios:"6.0",node:"0.1.27",opera:"15",opera_mobile:"15",phantom:"2.0",safari:"6.0",samsung:"1.0"},"es.string.big":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ios:"2.0",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"3.1",samsung:"1.0"},"es.string.blink":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ios:"2.0",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"3.1",samsung:"1.0"},"es.string.bold":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ios:"2.0",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"3.1",samsung:"1.0"},"es.string.fixed":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ios:"2.0",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"3.1",samsung:"1.0"},"es.string.fontcolor":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"17",ios:"6.0",node:"0.1.27",opera:"15",opera_mobile:"15",phantom:"2.0",safari:"6.0",samsung:"1.0"},"es.string.fontsize":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"17",ios:"6.0",node:"0.1.27",opera:"15",opera_mobile:"15",phantom:"2.0",safari:"6.0",samsung:"1.0"},"es.string.italics":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ios:"2.0",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"3.1",samsung:"1.0"},"es.string.link":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"17",ios:"6.0",node:"0.1.27",opera:"15",opera_mobile:"15",phantom:"2.0",safari:"6.0",samsung:"1.0"},"es.string.small":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ios:"2.0",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"3.1",samsung:"1.0"},"es.string.strike":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ios:"2.0",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"3.1",samsung:"1.0"},"es.string.sub":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ios:"2.0",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"3.1",samsung:"1.0"},"es.string.sup":{android:"3.0",chrome:"5",edge:"12",electron:"0.20",firefox:"2",ios:"2.0",node:"0.1.27",opera:"10.50",opera_mobile:"10.50",phantom:"1.9",safari:"3.1",samsung:"1.0"},"es.typed-array.float32-array":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.float64-array":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.int8-array":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.int16-array":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.int32-array":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.uint8-array":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.uint8-clamped-array":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.uint16-array":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.uint32-array":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.copy-within":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"34",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.every":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.fill":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.filter":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"38",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.find":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.find-index":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.for-each":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"38",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.from":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.includes":{android:"49",chrome:"49",edge:"14",electron:"0.37",firefox:"43",ios:"10.0",node:"6.0",opera:"36",opera_mobile:"36",safari:"10.0",samsung:"5.0"},"es.typed-array.index-of":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.iterator":{android:"47",chrome:"47",edge:"13",electron:"0.36",firefox:"37",ios:"10.0",node:"6.0",opera:"34",opera_mobile:"34",safari:"10.0",samsung:"5.0"},"es.typed-array.join":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.last-index-of":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.map":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"38",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.of":{android:"54",chrome:"54",edge:"15",electron:"1.4",firefox:"55",ios:"14.0",node:"7.0",opera:"41",opera_mobile:"41",safari:"14.0",samsung:"6.0"},"es.typed-array.reduce":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.reduce-right":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.reverse":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.set":{android:"4.4",chrome:"26",edge:"13",electron:"0.20",firefox:"15",ios:"8.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"7.1",samsung:"1.5"},"es.typed-array.slice":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"38",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.some":{android:"45",chrome:"45",edge:"13",electron:"0.31",firefox:"37",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.sort":{android:"74",chrome:"74",edge:"74",electron:"6.0",firefox:"67",ios:"14.5",node:"12.0",opera:"61",opera_mobile:"53",safari:"14.1",samsung:"11.0"},"es.typed-array.subarray":{android:"4.4",chrome:"26",edge:"13",electron:"0.20",firefox:"15",ios:"8.0",node:"0.11.0",opera:"16",opera_mobile:"16",safari:"7.1",samsung:"1.5"},"es.typed-array.to-locale-string":{android:"45",chrome:"45",edge:"74",electron:"0.31",firefox:"51",ios:"10.0",node:"4.0",opera:"32",opera_mobile:"32",safari:"10.0",samsung:"5.0"},"es.typed-array.to-string":{android:"51",chrome:"51",edge:"13",electron:"1.2",firefox:"51",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.weak-map":{android:"51",chrome:"51",edge:"15",electron:"1.2",firefox:"53",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"es.weak-set":{android:"51",chrome:"51",edge:"15",electron:"1.2",firefox:"53",ios:"10.0",node:"6.5",opera:"38",opera_mobile:"38",safari:"10.0",samsung:"5.0"},"esnext.aggregate-error":{android:"85",chrome:"85",edge:"85",electron:"10.0",firefox:"79",ios:"14.0",node:"15.0",opera:"71",opera_mobile:"60",safari:"14.0",samsung:"14.0"},"esnext.array.at":{android:"92",chrome:"92",edge:"92",electron:"14.0",opera:"78"},"esnext.array.filter-out":{},"esnext.array.find-last":{},"esnext.array.find-last-index":{},"esnext.array.is-template-object":{},"esnext.array.last-index":{},"esnext.array.last-item":{},"esnext.array.unique-by":{},"esnext.async-iterator.constructor":{},"esnext.async-iterator.as-indexed-pairs":{},"esnext.async-iterator.drop":{},"esnext.async-iterator.every":{},"esnext.async-iterator.filter":{},"esnext.async-iterator.find":{},"esnext.async-iterator.flat-map":{},"esnext.async-iterator.for-each":{},"esnext.async-iterator.from":{},"esnext.async-iterator.map":{},"esnext.async-iterator.reduce":{},"esnext.async-iterator.some":{},"esnext.async-iterator.take":{},"esnext.async-iterator.to-array":{},"esnext.bigint.range":{},"esnext.composite-key":{},"esnext.composite-symbol":{},"esnext.global-this":{android:"71",chrome:"71",edge:"74",electron:"5.0",firefox:"65",ios:"12.2",node:"12.0",opera:"58",opera_mobile:"50",safari:"12.1",samsung:"10.0"},"esnext.iterator.constructor":{},"esnext.iterator.as-indexed-pairs":{},"esnext.iterator.drop":{},"esnext.iterator.every":{},"esnext.iterator.filter":{},"esnext.iterator.find":{},"esnext.iterator.flat-map":{},"esnext.iterator.for-each":{},"esnext.iterator.from":{},"esnext.iterator.map":{},"esnext.iterator.reduce":{},"esnext.iterator.some":{},"esnext.iterator.take":{},"esnext.iterator.to-array":{},"esnext.map.delete-all":{},"esnext.map.emplace":{},"esnext.map.every":{},"esnext.map.filter":{},"esnext.map.find":{},"esnext.map.find-key":{},"esnext.map.from":{},"esnext.map.group-by":{},"esnext.map.includes":{},"esnext.map.key-by":{},"esnext.map.key-of":{},"esnext.map.map-keys":{},"esnext.map.map-values":{},"esnext.map.merge":{},"esnext.map.of":{},"esnext.map.reduce":{},"esnext.map.some":{},"esnext.map.update":{},"esnext.map.update-or-insert":{},"esnext.map.upsert":{},"esnext.math.clamp":{},"esnext.math.deg-per-rad":{},"esnext.math.degrees":{},"esnext.math.fscale":{},"esnext.math.iaddh":{},"esnext.math.imulh":{},"esnext.math.isubh":{},"esnext.math.rad-per-deg":{},"esnext.math.radians":{},"esnext.math.scale":{},"esnext.math.seeded-prng":{},"esnext.math.signbit":{},"esnext.math.umulh":{},"esnext.number.from-string":{},"esnext.number.range":{},"esnext.object.has-own":{},"esnext.object.iterate-entries":{},"esnext.object.iterate-keys":{},"esnext.object.iterate-values":{},"esnext.observable":{},"esnext.promise.all-settled":{android:"76",chrome:"76",edge:"76",electron:"6.0",firefox:"71",ios:"13.0",node:"12.9",opera:"63",opera_mobile:"54",safari:"13",samsung:"12.0"},"esnext.promise.any":{android:"85",chrome:"85",edge:"85",electron:"10.0",firefox:"79",ios:"14.0",node:"15.0",opera:"71",opera_mobile:"60",safari:"14.0",samsung:"14.0"},"esnext.promise.try":{},"esnext.reflect.define-metadata":{},"esnext.reflect.delete-metadata":{},"esnext.reflect.get-metadata":{},"esnext.reflect.get-metadata-keys":{},"esnext.reflect.get-own-metadata":{},"esnext.reflect.get-own-metadata-keys":{},"esnext.reflect.has-metadata":{},"esnext.reflect.has-own-metadata":{},"esnext.reflect.metadata":{},"esnext.set.add-all":{},"esnext.set.delete-all":{},"esnext.set.difference":{},"esnext.set.every":{},"esnext.set.filter":{},"esnext.set.find":{},"esnext.set.from":{},"esnext.set.intersection":{},"esnext.set.is-disjoint-from":{},"esnext.set.is-subset-of":{},"esnext.set.is-superset-of":{},"esnext.set.join":{},"esnext.set.map":{},"esnext.set.of":{},"esnext.set.reduce":{},"esnext.set.some":{},"esnext.set.symmetric-difference":{},"esnext.set.union":{},"esnext.string.at":{},"esnext.string.code-points":{},"esnext.string.match-all":{android:"80",chrome:"80",edge:"80",electron:"8.0",firefox:"73",ios:"13.4",node:"14.0",opera:"67",opera_mobile:"57",safari:"13.1",samsung:"13.0"},"esnext.string.replace-all":{android:"85",chrome:"85",edge:"85",electron:"10.0",firefox:"77",ios:"13.4",node:"15.0",opera:"71",opera_mobile:"60",safari:"13.1",samsung:"14.0"},"esnext.symbol.async-dispose":{},"esnext.symbol.dispose":{},"esnext.symbol.matcher":{},"esnext.symbol.metadata":{},"esnext.symbol.observable":{},"esnext.symbol.pattern-match":{},"esnext.symbol.replace-all":{},"esnext.typed-array.at":{android:"92",chrome:"92",edge:"92",electron:"14.0",opera:"78"},"esnext.typed-array.filter-out":{},"esnext.typed-array.find-last":{},"esnext.typed-array.find-last-index":{},"esnext.typed-array.unique-by":{},"esnext.weak-map.delete-all":{},"esnext.weak-map.from":{},"esnext.weak-map.of":{},"esnext.weak-map.emplace":{},"esnext.weak-map.upsert":{},"esnext.weak-set.add-all":{},"esnext.weak-set.delete-all":{},"esnext.weak-set.from":{},"esnext.weak-set.of":{},"web.dom-collections.for-each":{android:"58",chrome:"58",edge:"16",electron:"1.7",firefox:"50",ios:"10.0",node:"0.0.1",opera:"45",opera_mobile:"43",safari:"10.0",samsung:"7.0"},"web.dom-collections.iterator":{android:"66",chrome:"66",edge:"74",electron:"3.0",firefox:"60",ios:"13.4",node:"0.0.1",opera:"53",opera_mobile:"47",safari:"13.1",samsung:"9.0"},"web.immediate":{ie:"10",node:"0.9.1"},"web.queue-microtask":{android:"71",chrome:"71",edge:"74",electron:"5.0",firefox:"69",ios:"12.2",node:"12.0",opera:"58",opera_mobile:"50",safari:"12.1",samsung:"10.0"},"web.timers":{android:"1.5",chrome:"1",edge:"12",electron:"0.20",firefox:"1",ie:"10",ios:"1.0",node:"0.0.1",opera:"7",opera_mobile:"7",phantom:"1.9",safari:"1.0",samsung:"1.0"},"web.url":{android:"67",chrome:"67",edge:"74",electron:"4.0",firefox:"57",ios:"14.0",node:"10.0",opera:"54",opera_mobile:"48",safari:"14.0",samsung:"9.0"},"web.url.to-json":{android:"71",chrome:"71",edge:"74",electron:"5.0",firefox:"57",ios:"14.0",node:"10.0",opera:"58",opera_mobile:"50",safari:"14.0",samsung:"10.0"},"web.url-search-params":{android:"67",chrome:"67",edge:"74",electron:"4.0",firefox:"57",ios:"14.0",node:"10.0",opera:"54",opera_mobile:"48",safari:"14.0",samsung:"9.0"}},DG=xG,AG="object"==typeof ar&&ar.env&&ar.env.NODE_DEBUG&&/\bsemver\b/i.test(ar.env.NODE_DEBUG)?function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=console).error.apply(e,["SEMVER"].concat(r))}:function(){},wG={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},CG=zt((function(e,t){var r=wG.MAX_SAFE_COMPONENT_LENGTH,n=(t=e.exports={}).re=[],s=t.src=[],a=t.t={},i=0,o=function(e,t,r){var o=i++;AG(o,t),a[e]=o,s[o]=t,n[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION","("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")"),o("MAINVERSIONLOOSE","("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")"),o("PRERELEASEIDENTIFIER","(?:"+s[a.NUMERICIDENTIFIER]+"|"+s[a.NONNUMERICIDENTIFIER]+")"),o("PRERELEASEIDENTIFIERLOOSE","(?:"+s[a.NUMERICIDENTIFIERLOOSE]+"|"+s[a.NONNUMERICIDENTIFIER]+")"),o("PRERELEASE","(?:-("+s[a.PRERELEASEIDENTIFIER]+"(?:\\."+s[a.PRERELEASEIDENTIFIER]+")*))"),o("PRERELEASELOOSE","(?:-?("+s[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[a.PRERELEASEIDENTIFIERLOOSE]+")*))"),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD","(?:\\+("+s[a.BUILDIDENTIFIER]+"(?:\\."+s[a.BUILDIDENTIFIER]+")*))"),o("FULLPLAIN","v?"+s[a.MAINVERSION]+s[a.PRERELEASE]+"?"+s[a.BUILD]+"?"),o("FULL","^"+s[a.FULLPLAIN]+"$"),o("LOOSEPLAIN","[v=\\s]*"+s[a.MAINVERSIONLOOSE]+s[a.PRERELEASELOOSE]+"?"+s[a.BUILD]+"?"),o("LOOSE","^"+s[a.LOOSEPLAIN]+"$"),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",s[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),o("XRANGEIDENTIFIER",s[a.NUMERICIDENTIFIER]+"|x|X|\\*"),o("XRANGEPLAIN","[v=\\s]*("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:"+s[a.PRERELEASE]+")?"+s[a.BUILD]+"?)?)?"),o("XRANGEPLAINLOOSE","[v=\\s]*("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:"+s[a.PRERELEASELOOSE]+")?"+s[a.BUILD]+"?)?)?"),o("XRANGE","^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAIN]+"$"),o("XRANGELOOSE","^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAINLOOSE]+"$"),o("COERCE","(^|[^\\d])(\\d{1,"+r+"})(?:\\.(\\d{1,"+r+"}))?(?:\\.(\\d{1,"+r+"}))?(?:$|[^\\d])"),o("COERCERTL",s[a.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM","(\\s*)"+s[a.LONETILDE]+"\\s+",!0),t.tildeTrimReplace="$1~",o("TILDE","^"+s[a.LONETILDE]+s[a.XRANGEPLAIN]+"$"),o("TILDELOOSE","^"+s[a.LONETILDE]+s[a.XRANGEPLAINLOOSE]+"$"),o("LONECARET","(?:\\^)"),o("CARETTRIM","(\\s*)"+s[a.LONECARET]+"\\s+",!0),t.caretTrimReplace="$1^",o("CARET","^"+s[a.LONECARET]+s[a.XRANGEPLAIN]+"$"),o("CARETLOOSE","^"+s[a.LONECARET]+s[a.XRANGEPLAINLOOSE]+"$"),o("COMPARATORLOOSE","^"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+")$|^$"),o("COMPARATOR","^"+s[a.GTLT]+"\\s*("+s[a.FULLPLAIN]+")$|^$"),o("COMPARATORTRIM","(\\s*)"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+"|"+s[a.XRANGEPLAIN]+")",!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE","^\\s*("+s[a.XRANGEPLAIN]+")\\s+-\\s+("+s[a.XRANGEPLAIN]+")\\s*$"),o("HYPHENRANGELOOSE","^\\s*("+s[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[a.XRANGEPLAINLOOSE]+")\\s*$"),o("STAR","(<|>)?=?\\s*\\*")}),"/$$rollup_base$$/node_modules/core-js-compat/node_modules/semver/internal"),SG=/^[0-9]+$/,TG=function(e,t){var r=SG.test(e),n=SG.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},jG=TG,PG=wG.MAX_LENGTH,IG=wG.MAX_SAFE_INTEGER,FG=CG.re,kG=CG.t,OG=jG,RG=function(){function e(t,r){if(r&&"object"==typeof r||(r={loose:!!r,includePrerelease:!1}),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>PG)throw new TypeError("version is longer than "+PG+" characters");AG("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var n=t.trim().match(r.loose?FG[kG.LOOSE]:FG[kG.FULL]);if(!n)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>IG||this.major<0)throw new TypeError("Invalid major version");if(this.minor>IG||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>IG||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<IG)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}var t=e.prototype;return t.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},t.toString=function(){return this.version},t.compare=function(t){if(AG("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)},t.compareMain=function(t){return t instanceof e||(t=new e(t,this.options)),OG(this.major,t.major)||OG(this.minor,t.minor)||OG(this.patch,t.patch)},t.comparePre=function(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var r=0;do{var n=this.prerelease[r],s=t.prerelease[r];if(AG("prerelease compare",r,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return OG(n,s)}while(++r)},t.compareBuild=function(t){t instanceof e||(t=new e(t,this.options));var r=0;do{var n=this.build[r],s=t.build[r];if(AG("prerelease compare",r,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return OG(n,s)}while(++r)},t.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e}(),NG=function(e,t,r){return new RG(e,r).compare(new RG(t,r))},BG=function(e,t,r){return 0===NG(e,t,r)},_G=function(e,t,r){return 0!==NG(e,t,r)},LG=function(e,t,r){return NG(e,t,r)>0},MG=function(e,t,r){return NG(e,t,r)>=0},UG=function(e,t,r){return NG(e,t,r)<0},GG=function(e,t,r){return NG(e,t,r)<=0},VG=function(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return BG(e,r,n);case"!=":return _G(e,r,n);case">":return LG(e,r,n);case">=":return MG(e,r,n);case"<":return UG(e,r,n);case"<=":return GG(e,r,n);default:throw new TypeError("Invalid operator: "+t)}},WG=wG.MAX_LENGTH,HG=CG.re,XG=CG.t,qG=function(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof RG)return e;if("string"!=typeof e)return null;if(e.length>WG)return null;if(!(t.loose?HG[XG.LOOSE]:HG[XG.FULL]).test(e))return null;try{return new RG(e,t)}catch(e){return null}},$G=CG.re,KG=CG.t,zG=function(e,t){if(e instanceof RG)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=$G[KG.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),$G[KG.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;$G[KG.COERCERTL].lastIndex=-1}else r=e.match($G[KG.COERCE]);return null===r?null:qG(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)};var JG={compare:function(e,t,r){return VG(zG(e),t,zG(r))},has:Function.call.bind({}.hasOwnProperty),intersection:function(e,t){var r=e instanceof Set?e:new Set(e);return t.filter((function(e){return r.has(e)}))},semver:zG,sortObjectByKey:function(e,t){return Object.keys(e).sort(t).reduce((function(t,r){return t[r]=e[r],t}),{})}},YG={"3.0":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.function.bind","es.function.has-instance","es.function.name","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.to-string","es.set","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.array.last-index","esnext.array.last-item","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.map.delete-all","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.dispose","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.for-each","web.dom-collections.iterator","web.immediate","web.queue-microtask","web.timers","web.url","web.url.to-json","web.url-search-params"],3.1:["es.string.match-all","es.symbol.match-all","esnext.symbol.replace-all"],3.2:["es.promise.all-settled","esnext.array.is-template-object","esnext.map.update-or-insert","esnext.symbol.async-dispose"],3.3:["es.global-this","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.upsert","esnext.weak-map.upsert"],3.4:["es.json.stringify"],3.5:["esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values"],3.6:["es.regexp.sticky","es.regexp.test"],3.7:["es.aggregate-error","es.promise.any","es.reflect.to-string-tag","es.string.replace-all","esnext.map.emplace","esnext.weak-map.emplace"],3.8:["esnext.array.at","esnext.array.filter-out","esnext.array.unique-by","esnext.bigint.range","esnext.number.range","esnext.typed-array.at","esnext.typed-array.filter-out"],3.9:["esnext.array.find-last","esnext.array.find-last-index","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by"],3.11:["esnext.object.has-own"],3.12:["esnext.symbol.matcher","esnext.symbol.metadata"]},QG=["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.aggregate-error","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.array.at","esnext.array.filter-out","esnext.array.find-last","esnext.array.find-last-index","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.unique-by","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.for-each","web.dom-collections.iterator","web.immediate","web.queue-microtask","web.timers","web.url","web.url.to-json","web.url-search-params"],ZG=JG.compare,eV=JG.intersection,tV=JG.semver,rV=function(e){var t=tV(e);if(3!==t.major)throw RangeError("This version of `core-js-compat` works only with `core-js@3`.");for(var r=[],n=0,s=Object.keys(YG);n<s.length;n++){var a=s[n];ZG(a,"<=",t)&&r.push.apply(r,c(YG[a]))}return eV(r,QG)},nV=rV,sV={"core-js":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.aggregate-error","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.array.at","esnext.array.filter-out","esnext.array.find-last","esnext.array.find-last-index","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.unique-by","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.for-each","web.dom-collections.iterator","web.immediate","web.queue-microtask","web.timers","web.url","web.url.to-json","web.url-search-params"],"core-js/es":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.aggregate-error","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","es.weak-map","es.weak-set"],"core-js/es/aggregate-error":["es.aggregate-error","es.string.iterator","web.dom-collections.iterator"],"core-js/es/array":["es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.string.iterator"],"core-js/es/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string"],"core-js/es/array-buffer/constructor":["es.array-buffer.constructor","es.object.to-string"],"core-js/es/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/es/array-buffer/slice":["es.array-buffer.slice"],"core-js/es/array/concat":["es.array.concat"],"core-js/es/array/copy-within":["es.array.copy-within"],"core-js/es/array/entries":["es.array.iterator"],"core-js/es/array/every":["es.array.every"],"core-js/es/array/fill":["es.array.fill"],"core-js/es/array/filter":["es.array.filter"],"core-js/es/array/find":["es.array.find"],"core-js/es/array/find-index":["es.array.find-index"],"core-js/es/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/es/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/es/array/for-each":["es.array.for-each"],"core-js/es/array/from":["es.array.from","es.string.iterator"],"core-js/es/array/includes":["es.array.includes"],"core-js/es/array/index-of":["es.array.index-of"],"core-js/es/array/is-array":["es.array.is-array"],"core-js/es/array/iterator":["es.array.iterator"],"core-js/es/array/join":["es.array.join"],"core-js/es/array/keys":["es.array.iterator"],"core-js/es/array/last-index-of":["es.array.last-index-of"],"core-js/es/array/map":["es.array.map"],"core-js/es/array/of":["es.array.of"],"core-js/es/array/reduce":["es.array.reduce"],"core-js/es/array/reduce-right":["es.array.reduce-right"],"core-js/es/array/reverse":["es.array.reverse"],"core-js/es/array/slice":["es.array.slice"],"core-js/es/array/some":["es.array.some"],"core-js/es/array/sort":["es.array.sort"],"core-js/es/array/splice":["es.array.splice"],"core-js/es/array/values":["es.array.iterator"],"core-js/es/array/virtual":["es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map"],"core-js/es/array/virtual/concat":["es.array.concat"],"core-js/es/array/virtual/copy-within":["es.array.copy-within"],"core-js/es/array/virtual/entries":["es.array.iterator"],"core-js/es/array/virtual/every":["es.array.every"],"core-js/es/array/virtual/fill":["es.array.fill"],"core-js/es/array/virtual/filter":["es.array.filter"],"core-js/es/array/virtual/filter-out":["esnext.array.filter-out"],"core-js/es/array/virtual/find":["es.array.find"],"core-js/es/array/virtual/find-index":["es.array.find-index"],"core-js/es/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/es/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/es/array/virtual/for-each":["es.array.for-each"],"core-js/es/array/virtual/includes":["es.array.includes"],"core-js/es/array/virtual/index-of":["es.array.index-of"],"core-js/es/array/virtual/iterator":["es.array.iterator"],"core-js/es/array/virtual/join":["es.array.join"],"core-js/es/array/virtual/keys":["es.array.iterator"],"core-js/es/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/es/array/virtual/map":["es.array.map"],"core-js/es/array/virtual/reduce":["es.array.reduce"],"core-js/es/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/es/array/virtual/reverse":["es.array.reverse"],"core-js/es/array/virtual/slice":["es.array.slice"],"core-js/es/array/virtual/some":["es.array.some"],"core-js/es/array/virtual/sort":["es.array.sort"],"core-js/es/array/virtual/splice":["es.array.splice"],"core-js/es/array/virtual/values":["es.array.iterator"],"core-js/es/data-view":["es.data-view","es.object.to-string"],"core-js/es/date":["es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/es/date/now":["es.date.now"],"core-js/es/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/es/date/to-json":["es.date.to-json"],"core-js/es/date/to-primitive":["es.date.to-primitive"],"core-js/es/date/to-string":["es.date.to-string"],"core-js/es/function":["es.function.bind","es.function.has-instance","es.function.name"],"core-js/es/function/bind":["es.function.bind"],"core-js/es/function/has-instance":["es.function.has-instance"],"core-js/es/function/name":["es.function.name"],"core-js/es/function/virtual":["es.function.bind"],"core-js/es/function/virtual/bind":["es.function.bind"],"core-js/es/global-this":["es.global-this"],"core-js/es/instance/bind":["es.function.bind"],"core-js/es/instance/code-point-at":["es.string.code-point-at"],"core-js/es/instance/concat":["es.array.concat"],"core-js/es/instance/copy-within":["es.array.copy-within"],"core-js/es/instance/ends-with":["es.string.ends-with"],"core-js/es/instance/entries":["es.array.iterator"],"core-js/es/instance/every":["es.array.every"],"core-js/es/instance/fill":["es.array.fill"],"core-js/es/instance/filter":["es.array.filter"],"core-js/es/instance/find":["es.array.find"],"core-js/es/instance/find-index":["es.array.find-index"],"core-js/es/instance/flags":["es.regexp.flags"],"core-js/es/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/es/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/es/instance/for-each":["es.array.for-each"],"core-js/es/instance/includes":["es.array.includes","es.string.includes"],"core-js/es/instance/index-of":["es.array.index-of"],"core-js/es/instance/keys":["es.array.iterator"],"core-js/es/instance/last-index-of":["es.array.last-index-of"],"core-js/es/instance/map":["es.array.map"],"core-js/es/instance/match-all":["es.string.match-all"],"core-js/es/instance/pad-end":["es.string.pad-end"],"core-js/es/instance/pad-start":["es.string.pad-start"],"core-js/es/instance/reduce":["es.array.reduce"],"core-js/es/instance/reduce-right":["es.array.reduce-right"],"core-js/es/instance/repeat":["es.string.repeat"],"core-js/es/instance/replace-all":["es.string.replace-all"],"core-js/es/instance/reverse":["es.array.reverse"],"core-js/es/instance/slice":["es.array.slice"],"core-js/es/instance/some":["es.array.some"],"core-js/es/instance/sort":["es.array.sort"],"core-js/es/instance/splice":["es.array.splice"],"core-js/es/instance/starts-with":["es.string.starts-with"],"core-js/es/instance/trim":["es.string.trim"],"core-js/es/instance/trim-end":["es.string.trim-end"],"core-js/es/instance/trim-left":["es.string.trim-start"],"core-js/es/instance/trim-right":["es.string.trim-end"],"core-js/es/instance/trim-start":["es.string.trim-start"],"core-js/es/instance/values":["es.array.iterator"],"core-js/es/json":["es.json.stringify","es.json.to-string-tag"],"core-js/es/json/stringify":["es.json.stringify"],"core-js/es/json/to-string-tag":["es.json.to-string-tag"],"core-js/es/map":["es.map","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/es/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc"],"core-js/es/math/acosh":["es.math.acosh"],"core-js/es/math/asinh":["es.math.asinh"],"core-js/es/math/atanh":["es.math.atanh"],"core-js/es/math/cbrt":["es.math.cbrt"],"core-js/es/math/clz32":["es.math.clz32"],"core-js/es/math/cosh":["es.math.cosh"],"core-js/es/math/expm1":["es.math.expm1"],"core-js/es/math/fround":["es.math.fround"],"core-js/es/math/hypot":["es.math.hypot"],"core-js/es/math/imul":["es.math.imul"],"core-js/es/math/log10":["es.math.log10"],"core-js/es/math/log1p":["es.math.log1p"],"core-js/es/math/log2":["es.math.log2"],"core-js/es/math/sign":["es.math.sign"],"core-js/es/math/sinh":["es.math.sinh"],"core-js/es/math/tanh":["es.math.tanh"],"core-js/es/math/to-string-tag":["es.math.to-string-tag"],"core-js/es/math/trunc":["es.math.trunc"],"core-js/es/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision"],"core-js/es/number/constructor":["es.number.constructor"],"core-js/es/number/epsilon":["es.number.epsilon"],"core-js/es/number/is-finite":["es.number.is-finite"],"core-js/es/number/is-integer":["es.number.is-integer"],"core-js/es/number/is-nan":["es.number.is-nan"],"core-js/es/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/es/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/es/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/es/number/parse-float":["es.number.parse-float"],"core-js/es/number/parse-int":["es.number.parse-int"],"core-js/es/number/to-fixed":["es.number.to-fixed"],"core-js/es/number/to-precision":["es.number.to-precision"],"core-js/es/number/virtual":["es.number.to-fixed","es.number.to-precision"],"core-js/es/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/es/number/virtual/to-precision":["es.number.to-precision"],"core-js/es/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag"],"core-js/es/object/assign":["es.object.assign"],"core-js/es/object/create":["es.object.create"],"core-js/es/object/define-getter":["es.object.define-getter"],"core-js/es/object/define-properties":["es.object.define-properties"],"core-js/es/object/define-property":["es.object.define-property"],"core-js/es/object/define-setter":["es.object.define-setter"],"core-js/es/object/entries":["es.object.entries"],"core-js/es/object/freeze":["es.object.freeze"],"core-js/es/object/from-entries":["es.array.iterator","es.object.from-entries"],"core-js/es/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/es/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/es/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/es/object/get-own-property-symbols":["es.symbol"],"core-js/es/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/es/object/is":["es.object.is"],"core-js/es/object/is-extensible":["es.object.is-extensible"],"core-js/es/object/is-frozen":["es.object.is-frozen"],"core-js/es/object/is-sealed":["es.object.is-sealed"],"core-js/es/object/keys":["es.object.keys"],"core-js/es/object/lookup-getter":["es.object.lookup-setter"],"core-js/es/object/lookup-setter":["es.object.lookup-setter"],"core-js/es/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/es/object/seal":["es.object.seal"],"core-js/es/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/es/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/es/object/values":["es.object.values"],"core-js/es/parse-float":["es.parse-float"],"core-js/es/parse-int":["es.parse-int"],"core-js/es/promise":["es.aggregate-error","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.string.iterator","web.dom-collections.iterator"],"core-js/es/promise/all-settled":["es.promise","es.promise.all-settled","es.string.iterator","web.dom-collections.iterator"],"core-js/es/promise/any":["es.aggregate-error","es.promise","es.promise.any","es.string.iterator","web.dom-collections.iterator"],"core-js/es/promise/finally":["es.promise","es.promise.finally"],"core-js/es/reflect":["es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag"],"core-js/es/reflect/apply":["es.reflect.apply"],"core-js/es/reflect/construct":["es.reflect.construct"],"core-js/es/reflect/define-property":["es.reflect.define-property"],"core-js/es/reflect/delete-property":["es.reflect.delete-property"],"core-js/es/reflect/get":["es.reflect.get"],"core-js/es/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/es/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/es/reflect/has":["es.reflect.has"],"core-js/es/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/es/reflect/own-keys":["es.reflect.own-keys"],"core-js/es/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/es/reflect/set":["es.reflect.set"],"core-js/es/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/es/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/es/regexp":["es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/es/regexp/constructor":["es.regexp.constructor"],"core-js/es/regexp/flags":["es.regexp.flags"],"core-js/es/regexp/match":["es.string.match"],"core-js/es/regexp/replace":["es.string.replace"],"core-js/es/regexp/search":["es.string.search"],"core-js/es/regexp/split":["es.string.split"],"core-js/es/regexp/sticky":["es.regexp.sticky"],"core-js/es/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/es/regexp/to-string":["es.regexp.to-string"],"core-js/es/set":["es.object.to-string","es.set","es.string.iterator","web.dom-collections.iterator"],"core-js/es/string":["es.regexp.exec","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/es/string/anchor":["es.string.anchor"],"core-js/es/string/big":["es.string.big"],"core-js/es/string/blink":["es.string.blink"],"core-js/es/string/bold":["es.string.bold"],"core-js/es/string/code-point-at":["es.string.code-point-at"],"core-js/es/string/ends-with":["es.string.ends-with"],"core-js/es/string/fixed":["es.string.fixed"],"core-js/es/string/fontcolor":["es.string.fontcolor"],"core-js/es/string/fontsize":["es.string.fontsize"],"core-js/es/string/from-code-point":["es.string.from-code-point"],"core-js/es/string/includes":["es.string.includes"],"core-js/es/string/italics":["es.string.italics"],"core-js/es/string/iterator":["es.string.iterator"],"core-js/es/string/link":["es.string.link"],"core-js/es/string/match":["es.regexp.exec","es.string.match"],"core-js/es/string/match-all":["es.string.match-all"],"core-js/es/string/pad-end":["es.string.pad-end"],"core-js/es/string/pad-start":["es.string.pad-start"],"core-js/es/string/raw":["es.string.raw"],"core-js/es/string/repeat":["es.string.repeat"],"core-js/es/string/replace":["es.regexp.exec","es.string.replace"],"core-js/es/string/replace-all":["es.string.replace-all"],"core-js/es/string/search":["es.regexp.exec","es.string.search"],"core-js/es/string/small":["es.string.small"],"core-js/es/string/split":["es.regexp.exec","es.string.split"],"core-js/es/string/starts-with":["es.string.starts-with"],"core-js/es/string/strike":["es.string.strike"],"core-js/es/string/sub":["es.string.sub"],"core-js/es/string/sup":["es.string.sup"],"core-js/es/string/trim":["es.string.trim"],"core-js/es/string/trim-end":["es.string.trim-end"],"core-js/es/string/trim-left":["es.string.trim-start"],"core-js/es/string/trim-right":["es.string.trim-end"],"core-js/es/string/trim-start":["es.string.trim-start"],"core-js/es/string/virtual":["es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/es/string/virtual/anchor":["es.string.anchor"],"core-js/es/string/virtual/big":["es.string.big"],"core-js/es/string/virtual/blink":["es.string.blink"],"core-js/es/string/virtual/bold":["es.string.bold"],"core-js/es/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/es/string/virtual/ends-with":["es.string.ends-with"],"core-js/es/string/virtual/fixed":["es.string.fixed"],"core-js/es/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/es/string/virtual/fontsize":["es.string.fontsize"],"core-js/es/string/virtual/includes":["es.string.includes"],"core-js/es/string/virtual/italics":["es.string.italics"],"core-js/es/string/virtual/iterator":["es.string.iterator"],"core-js/es/string/virtual/link":["es.string.link"],"core-js/es/string/virtual/match-all":["es.string.match-all"],"core-js/es/string/virtual/pad-end":["es.string.pad-end"],"core-js/es/string/virtual/pad-start":["es.string.pad-start"],"core-js/es/string/virtual/repeat":["es.string.repeat"],"core-js/es/string/virtual/replace-all":["es.string.replace-all"],"core-js/es/string/virtual/small":["es.string.small"],"core-js/es/string/virtual/starts-with":["es.string.starts-with"],"core-js/es/string/virtual/strike":["es.string.strike"],"core-js/es/string/virtual/sub":["es.string.sub"],"core-js/es/string/virtual/sup":["es.string.sup"],"core-js/es/string/virtual/trim":["es.string.trim"],"core-js/es/string/virtual/trim-end":["es.string.trim-end"],"core-js/es/string/virtual/trim-left":["es.string.trim-start"],"core-js/es/string/virtual/trim-right":["es.string.trim-end"],"core-js/es/string/virtual/trim-start":["es.string.trim-start"],"core-js/es/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/es/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/es/symbol/description":["es.symbol.description"],"core-js/es/symbol/for":["es.symbol"],"core-js/es/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/es/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/es/symbol/iterator":["es.symbol.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/es/symbol/key-for":["es.symbol"],"core-js/es/symbol/match":["es.symbol.match","es.string.match"],"core-js/es/symbol/match-all":["es.symbol.match-all","es.string.match-all"],"core-js/es/symbol/replace":["es.symbol.replace","es.string.replace"],"core-js/es/symbol/search":["es.symbol.search","es.string.search"],"core-js/es/symbol/species":["es.symbol.species"],"core-js/es/symbol/split":["es.symbol.split","es.string.split"],"core-js/es/symbol/to-primitive":["es.symbol.to-primitive"],"core-js/es/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/es/symbol/unscopables":["es.symbol.unscopables"],"core-js/es/typed-array":["es.object.to-string","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/es/typed-array/entries":["es.typed-array.iterator"],"core-js/es/typed-array/every":["es.typed-array.every"],"core-js/es/typed-array/fill":["es.typed-array.fill"],"core-js/es/typed-array/filter":["es.typed-array.filter"],"core-js/es/typed-array/find":["es.typed-array.find"],"core-js/es/typed-array/find-index":["es.typed-array.find-index"],"core-js/es/typed-array/float32-array":["es.object.to-string","es.typed-array.float32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/float64-array":["es.object.to-string","es.typed-array.float64-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/for-each":["es.typed-array.for-each"],"core-js/es/typed-array/from":["es.typed-array.from"],"core-js/es/typed-array/includes":["es.typed-array.includes"],"core-js/es/typed-array/index-of":["es.typed-array.index-of"],"core-js/es/typed-array/int16-array":["es.object.to-string","es.typed-array.int16-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/int32-array":["es.object.to-string","es.typed-array.int32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/int8-array":["es.object.to-string","es.typed-array.int8-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/iterator":["es.typed-array.iterator"],"core-js/es/typed-array/join":["es.typed-array.join"],"core-js/es/typed-array/keys":["es.typed-array.iterator"],"core-js/es/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/es/typed-array/map":["es.typed-array.map"],"core-js/es/typed-array/methods":["es.object.to-string","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/of":["es.typed-array.of"],"core-js/es/typed-array/reduce":["es.typed-array.reduce"],"core-js/es/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/es/typed-array/reverse":["es.typed-array.reverse"],"core-js/es/typed-array/set":["es.typed-array.set"],"core-js/es/typed-array/slice":["es.typed-array.slice"],"core-js/es/typed-array/some":["es.typed-array.some"],"core-js/es/typed-array/sort":["es.typed-array.sort"],"core-js/es/typed-array/subarray":["es.typed-array.subarray"],"core-js/es/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/es/typed-array/to-string":["es.typed-array.to-string"],"core-js/es/typed-array/uint16-array":["es.object.to-string","es.typed-array.uint16-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/uint32-array":["es.object.to-string","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/uint8-array":["es.object.to-string","es.typed-array.uint8-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/uint8-clamped-array":["es.object.to-string","es.typed-array.uint8-clamped-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/es/typed-array/values":["es.typed-array.iterator"],"core-js/es/weak-map":["es.object.to-string","es.weak-map","web.dom-collections.iterator"],"core-js/es/weak-set":["es.object.to-string","es.weak-set","web.dom-collections.iterator"],"core-js/features":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.aggregate-error","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.array.at","esnext.array.filter-out","esnext.array.find-last","esnext.array.find-last-index","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.unique-by","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.for-each","web.dom-collections.iterator","web.immediate","web.queue-microtask","web.timers","web.url","web.url.to-json","web.url-search-params"],"core-js/features/aggregate-error":["es.aggregate-error","es.string.iterator","esnext.aggregate-error","web.dom-collections.iterator"],"core-js/features/array":["es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.map","es.string.iterator","esnext.array.at","esnext.array.filter-out","esnext.array.find-last","esnext.array.find-last-index","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.unique-by"],"core-js/features/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string"],"core-js/features/array-buffer/constructor":["es.array-buffer.constructor","es.object.to-string"],"core-js/features/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/features/array-buffer/slice":["es.array-buffer.slice"],"core-js/features/array/at":["esnext.array.at"],"core-js/features/array/concat":["es.array.concat"],"core-js/features/array/copy-within":["es.array.copy-within"],"core-js/features/array/entries":["es.array.iterator"],"core-js/features/array/every":["es.array.every"],"core-js/features/array/fill":["es.array.fill"],"core-js/features/array/filter":["es.array.filter"],"core-js/features/array/filter-out":["esnext.array.filter-out"],"core-js/features/array/find":["es.array.find"],"core-js/features/array/find-index":["es.array.find-index"],"core-js/features/array/find-last":["esnext.array.find-last"],"core-js/features/array/find-last-index":["esnext.array.find-last-index"],"core-js/features/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/features/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/features/array/for-each":["es.array.for-each"],"core-js/features/array/from":["es.array.from","es.string.iterator"],"core-js/features/array/includes":["es.array.includes"],"core-js/features/array/index-of":["es.array.index-of"],"core-js/features/array/is-array":["es.array.is-array"],"core-js/features/array/is-template-object":["esnext.array.is-template-object"],"core-js/features/array/iterator":["es.array.iterator"],"core-js/features/array/join":["es.array.join"],"core-js/features/array/keys":["es.array.iterator"],"core-js/features/array/last-index":["esnext.array.last-index"],"core-js/features/array/last-index-of":["es.array.last-index-of"],"core-js/features/array/last-item":["esnext.array.last-item"],"core-js/features/array/map":["es.array.map"],"core-js/features/array/of":["es.array.of"],"core-js/features/array/reduce":["es.array.reduce"],"core-js/features/array/reduce-right":["es.array.reduce-right"],"core-js/features/array/reverse":["es.array.reverse"],"core-js/features/array/slice":["es.array.slice"],"core-js/features/array/some":["es.array.some"],"core-js/features/array/sort":["es.array.sort"],"core-js/features/array/splice":["es.array.splice"],"core-js/features/array/unique-by":["es.map","esnext.array.unique-by"],"core-js/features/array/values":["es.array.iterator"],"core-js/features/array/virtual":["es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.map","esnext.array.at","esnext.array.filter-out","esnext.array.find-last","esnext.array.find-last-index","esnext.array.unique-by"],"core-js/features/array/virtual/at":["esnext.array.at"],"core-js/features/array/virtual/concat":["es.array.concat"],"core-js/features/array/virtual/copy-within":["es.array.copy-within"],"core-js/features/array/virtual/entries":["es.array.iterator"],"core-js/features/array/virtual/every":["es.array.every"],"core-js/features/array/virtual/fill":["es.array.fill"],"core-js/features/array/virtual/filter":["es.array.filter"],"core-js/features/array/virtual/filter-out":["esnext.array.filter-out"],"core-js/features/array/virtual/find":["es.array.find"],"core-js/features/array/virtual/find-index":["es.array.find-index"],"core-js/features/array/virtual/find-last":["esnext.array.find-last"],"core-js/features/array/virtual/find-last-index":["esnext.array.find-last-index"],"core-js/features/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/features/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/features/array/virtual/for-each":["es.array.for-each"],"core-js/features/array/virtual/includes":["es.array.includes"],"core-js/features/array/virtual/index-of":["es.array.index-of"],"core-js/features/array/virtual/iterator":["es.array.iterator"],"core-js/features/array/virtual/join":["es.array.join"],"core-js/features/array/virtual/keys":["es.array.iterator"],"core-js/features/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/features/array/virtual/map":["es.array.map"],"core-js/features/array/virtual/reduce":["es.array.reduce"],"core-js/features/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/features/array/virtual/reverse":["es.array.reverse"],"core-js/features/array/virtual/slice":["es.array.slice"],"core-js/features/array/virtual/some":["es.array.some"],"core-js/features/array/virtual/sort":["es.array.sort"],"core-js/features/array/virtual/splice":["es.array.splice"],"core-js/features/array/virtual/unique-by":["es.map","esnext.array.unique-by"],"core-js/features/array/virtual/values":["es.array.iterator"],"core-js/features/async-iterator":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/features/async-iterator/as-indexed-pairs":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","web.dom-collections.iterator"],"core-js/features/async-iterator/drop":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.drop","web.dom-collections.iterator"],"core-js/features/async-iterator/every":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.every","web.dom-collections.iterator"],"core-js/features/async-iterator/filter":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.filter","web.dom-collections.iterator"],"core-js/features/async-iterator/find":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.find","web.dom-collections.iterator"],"core-js/features/async-iterator/flat-map":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.flat-map","web.dom-collections.iterator"],"core-js/features/async-iterator/for-each":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.for-each","web.dom-collections.iterator"],"core-js/features/async-iterator/from":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.from","web.dom-collections.iterator"],"core-js/features/async-iterator/map":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.map","web.dom-collections.iterator"],"core-js/features/async-iterator/reduce":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.reduce","web.dom-collections.iterator"],"core-js/features/async-iterator/some":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.some","web.dom-collections.iterator"],"core-js/features/async-iterator/take":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.take","web.dom-collections.iterator"],"core-js/features/async-iterator/to-array":["es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/features/bigint":["esnext.bigint.range"],"core-js/features/bigint/range":["esnext.bigint.range"],"core-js/features/clear-immediate":["web.immediate"],"core-js/features/composite-key":["esnext.composite-key"],"core-js/features/composite-symbol":["es.symbol","esnext.composite-symbol"],"core-js/features/data-view":["es.data-view","es.object.to-string"],"core-js/features/date":["es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/features/date/now":["es.date.now"],"core-js/features/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/features/date/to-json":["es.date.to-json"],"core-js/features/date/to-primitive":["es.date.to-primitive"],"core-js/features/date/to-string":["es.date.to-string"],"core-js/features/dom-collections":["es.array.iterator","web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/features/dom-collections/for-each":["web.dom-collections.for-each"],"core-js/features/dom-collections/iterator":["web.dom-collections.iterator"],"core-js/features/function":["es.function.bind","es.function.has-instance","es.function.name"],"core-js/features/function/bind":["es.function.bind"],"core-js/features/function/has-instance":["es.function.has-instance"],"core-js/features/function/name":["es.function.name"],"core-js/features/function/virtual":["es.function.bind"],"core-js/features/function/virtual/bind":["es.function.bind"],"core-js/features/get-iterator":["es.string.iterator","web.dom-collections.iterator"],"core-js/features/get-iterator-method":["es.string.iterator","web.dom-collections.iterator"],"core-js/features/global-this":["es.global-this","esnext.global-this"],"core-js/features/instance/at":["esnext.array.at","esnext.string.at"],"core-js/features/instance/bind":["es.function.bind"],"core-js/features/instance/code-point-at":["es.string.code-point-at"],"core-js/features/instance/code-points":["esnext.string.code-points"],"core-js/features/instance/concat":["es.array.concat"],"core-js/features/instance/copy-within":["es.array.copy-within"],"core-js/features/instance/ends-with":["es.string.ends-with"],"core-js/features/instance/entries":["es.array.iterator","web.dom-collections.iterator"],"core-js/features/instance/every":["es.array.every"],"core-js/features/instance/fill":["es.array.fill"],"core-js/features/instance/filter":["es.array.filter"],"core-js/features/instance/filter-out":["esnext.array.filter-out"],"core-js/features/instance/find":["es.array.find"],"core-js/features/instance/find-index":["es.array.find-index"],"core-js/features/instance/find-last":["esnext.array.find-last"],"core-js/features/instance/find-last-index":["esnext.array.find-last-index"],"core-js/features/instance/flags":["es.regexp.flags"],"core-js/features/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/features/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/features/instance/for-each":["es.array.for-each","web.dom-collections.iterator"],"core-js/features/instance/includes":["es.array.includes","es.string.includes"],"core-js/features/instance/index-of":["es.array.index-of"],"core-js/features/instance/keys":["es.array.iterator","web.dom-collections.iterator"],"core-js/features/instance/last-index-of":["es.array.last-index-of"],"core-js/features/instance/map":["es.array.map"],"core-js/features/instance/match-all":["es.string.match-all","esnext.string.match-all"],"core-js/features/instance/pad-end":["es.string.pad-end"],"core-js/features/instance/pad-start":["es.string.pad-start"],"core-js/features/instance/reduce":["es.array.reduce"],"core-js/features/instance/reduce-right":["es.array.reduce-right"],"core-js/features/instance/repeat":["es.string.repeat"],"core-js/features/instance/replace-all":["es.string.replace-all"],"core-js/features/instance/reverse":["es.array.reverse"],"core-js/features/instance/slice":["es.array.slice"],"core-js/features/instance/some":["es.array.some"],"core-js/features/instance/sort":["es.array.sort"],"core-js/features/instance/splice":["es.array.splice"],"core-js/features/instance/starts-with":["es.string.starts-with"],"core-js/features/instance/trim":["es.string.trim"],"core-js/features/instance/trim-end":["es.string.trim-end"],"core-js/features/instance/trim-left":["es.string.trim-start"],"core-js/features/instance/trim-right":["es.string.trim-end"],"core-js/features/instance/trim-start":["es.string.trim-start"],"core-js/features/instance/unique-by":["es.map","esnext.array.unique-by"],"core-js/features/instance/values":["es.array.iterator","web.dom-collections.iterator"],"core-js/features/is-iterable":["es.string.iterator","web.dom-collections.iterator"],"core-js/features/iterator":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","web.dom-collections.iterator"],"core-js/features/iterator/as-indexed-pairs":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","web.dom-collections.iterator"],"core-js/features/iterator/drop":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.drop","web.dom-collections.iterator"],"core-js/features/iterator/every":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.every","web.dom-collections.iterator"],"core-js/features/iterator/filter":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.filter","web.dom-collections.iterator"],"core-js/features/iterator/find":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.find","web.dom-collections.iterator"],"core-js/features/iterator/flat-map":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.flat-map","web.dom-collections.iterator"],"core-js/features/iterator/for-each":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.for-each","web.dom-collections.iterator"],"core-js/features/iterator/from":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.from","web.dom-collections.iterator"],"core-js/features/iterator/map":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.map","web.dom-collections.iterator"],"core-js/features/iterator/reduce":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.reduce","web.dom-collections.iterator"],"core-js/features/iterator/some":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.some","web.dom-collections.iterator"],"core-js/features/iterator/take":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.take","web.dom-collections.iterator"],"core-js/features/iterator/to-array":["es.object.to-string","es.string.iterator","esnext.iterator.constructor","esnext.iterator.to-array","web.dom-collections.iterator"],"core-js/features/json":["es.json.stringify","es.json.to-string-tag"],"core-js/features/json/stringify":["es.json.stringify"],"core-js/features/json/to-string-tag":["es.json.to-string-tag"],"core-js/features/map":["es.map","es.object.to-string","es.string.iterator","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","web.dom-collections.iterator"],"core-js/features/map/delete-all":["es.map","esnext.map.delete-all"],"core-js/features/map/emplace":["es.map","esnext.map.emplace"],"core-js/features/map/every":["es.map","esnext.map.every"],"core-js/features/map/filter":["es.map","esnext.map.filter"],"core-js/features/map/find":["es.map","esnext.map.find"],"core-js/features/map/find-key":["es.map","esnext.map.find-key"],"core-js/features/map/from":["es.map","es.string.iterator","esnext.map.from","web.dom-collections.iterator"],"core-js/features/map/group-by":["es.map","esnext.map.group-by"],"core-js/features/map/includes":["es.map","esnext.map.includes"],"core-js/features/map/key-by":["es.map","esnext.map.key-by"],"core-js/features/map/key-of":["es.map","esnext.map.key-of"],"core-js/features/map/map-keys":["es.map","esnext.map.map-keys"],"core-js/features/map/map-values":["es.map","esnext.map.map-values"],"core-js/features/map/merge":["es.map","esnext.map.merge"],"core-js/features/map/of":["es.map","es.string.iterator","esnext.map.of","web.dom-collections.iterator"],"core-js/features/map/reduce":["es.map","esnext.map.reduce"],"core-js/features/map/some":["es.map","esnext.map.some"],"core-js/features/map/update":["es.map","esnext.map.update"],"core-js/features/map/update-or-insert":["es.map","esnext.map.update-or-insert"],"core-js/features/map/upsert":["es.map","esnext.map.upsert"],"core-js/features/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh"],"core-js/features/math/acosh":["es.math.acosh"],"core-js/features/math/asinh":["es.math.asinh"],"core-js/features/math/atanh":["es.math.atanh"],"core-js/features/math/cbrt":["es.math.cbrt"],"core-js/features/math/clamp":["esnext.math.clamp"],"core-js/features/math/clz32":["es.math.clz32"],"core-js/features/math/cosh":["es.math.cosh"],"core-js/features/math/deg-per-rad":["esnext.math.deg-per-rad"],"core-js/features/math/degrees":["esnext.math.degrees"],"core-js/features/math/expm1":["es.math.expm1"],"core-js/features/math/fround":["es.math.fround"],"core-js/features/math/fscale":["esnext.math.fscale"],"core-js/features/math/hypot":["es.math.hypot"],"core-js/features/math/iaddh":["esnext.math.iaddh"],"core-js/features/math/imul":["es.math.imul"],"core-js/features/math/imulh":["esnext.math.imulh"],"core-js/features/math/isubh":["esnext.math.isubh"],"core-js/features/math/log10":["es.math.log10"],"core-js/features/math/log1p":["es.math.log1p"],"core-js/features/math/log2":["es.math.log2"],"core-js/features/math/rad-per-deg":["esnext.math.rad-per-deg"],"core-js/features/math/radians":["esnext.math.radians"],"core-js/features/math/scale":["esnext.math.scale"],"core-js/features/math/seeded-prng":["esnext.math.seeded-prng"],"core-js/features/math/sign":["es.math.sign"],"core-js/features/math/signbit":["esnext.math.signbit"],"core-js/features/math/sinh":["es.math.sinh"],"core-js/features/math/tanh":["es.math.tanh"],"core-js/features/math/to-string-tag":["es.math.to-string-tag"],"core-js/features/math/trunc":["es.math.trunc"],"core-js/features/math/umulh":["esnext.math.umulh"],"core-js/features/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision","esnext.number.from-string","esnext.number.range"],"core-js/features/number/constructor":["es.number.constructor"],"core-js/features/number/epsilon":["es.number.epsilon"],"core-js/features/number/from-string":["esnext.number.from-string"],"core-js/features/number/is-finite":["es.number.is-finite"],"core-js/features/number/is-integer":["es.number.is-integer"],"core-js/features/number/is-nan":["es.number.is-nan"],"core-js/features/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/features/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/features/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/features/number/parse-float":["es.number.parse-float"],"core-js/features/number/parse-int":["es.number.parse-int"],"core-js/features/number/range":["esnext.number.range"],"core-js/features/number/to-fixed":["es.number.to-fixed"],"core-js/features/number/to-precision":["es.number.to-precision"],"core-js/features/number/virtual":["es.number.to-fixed","es.number.to-precision"],"core-js/features/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/features/number/virtual/to-precision":["es.number.to-precision"],"core-js/features/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values"],"core-js/features/object/assign":["es.object.assign"],"core-js/features/object/create":["es.object.create"],"core-js/features/object/define-getter":["es.object.define-getter"],"core-js/features/object/define-properties":["es.object.define-properties"],"core-js/features/object/define-property":["es.object.define-property"],"core-js/features/object/define-setter":["es.object.define-setter"],"core-js/features/object/entries":["es.object.entries"],"core-js/features/object/freeze":["es.object.freeze"],"core-js/features/object/from-entries":["es.array.iterator","es.object.from-entries"],"core-js/features/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/features/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/features/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/features/object/get-own-property-symbols":["es.symbol"],"core-js/features/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/features/object/has-own":["esnext.object.has-own"],"core-js/features/object/is":["es.object.is"],"core-js/features/object/is-extensible":["es.object.is-extensible"],"core-js/features/object/is-frozen":["es.object.is-frozen"],"core-js/features/object/is-sealed":["es.object.is-sealed"],"core-js/features/object/iterate-entries":["esnext.object.iterate-entries"],"core-js/features/object/iterate-keys":["esnext.object.iterate-keys"],"core-js/features/object/iterate-values":["esnext.object.iterate-values"],"core-js/features/object/keys":["es.object.keys"],"core-js/features/object/lookup-getter":["es.object.lookup-setter"],"core-js/features/object/lookup-setter":["es.object.lookup-setter"],"core-js/features/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/features/object/seal":["es.object.seal"],"core-js/features/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/features/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/features/object/values":["es.object.values"],"core-js/features/observable":["es.object.to-string","es.string.iterator","esnext.observable","esnext.symbol.observable","web.dom-collections.iterator"],"core-js/features/parse-float":["es.parse-float"],"core-js/features/parse-int":["es.parse-int"],"core-js/features/promise":["es.aggregate-error","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.string.iterator","esnext.aggregate-error","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","web.dom-collections.iterator"],"core-js/features/promise/all-settled":["es.promise","es.promise.all-settled","es.string.iterator","esnext.promise.all-settled","web.dom-collections.iterator"],"core-js/features/promise/any":["es.aggregate-error","es.promise","es.promise.any","es.string.iterator","esnext.aggregate-error","esnext.promise.any","web.dom-collections.iterator"],"core-js/features/promise/finally":["es.promise","es.promise.finally"],"core-js/features/promise/try":["es.promise","esnext.promise.try"],"core-js/features/queue-microtask":["web.queue-microtask"],"core-js/features/reflect":["es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata"],"core-js/features/reflect/apply":["es.reflect.apply"],"core-js/features/reflect/construct":["es.reflect.construct"],"core-js/features/reflect/define-metadata":["esnext.reflect.define-metadata"],"core-js/features/reflect/define-property":["es.reflect.define-property"],"core-js/features/reflect/delete-metadata":["esnext.reflect.delete-metadata"],"core-js/features/reflect/delete-property":["es.reflect.delete-property"],"core-js/features/reflect/get":["es.reflect.get"],"core-js/features/reflect/get-metadata":["esnext.reflect.get-metadata"],"core-js/features/reflect/get-metadata-keys":["esnext.reflect.get-metadata-keys"],"core-js/features/reflect/get-own-metadata":["esnext.reflect.get-own-metadata"],"core-js/features/reflect/get-own-metadata-keys":["esnext.reflect.get-own-metadata-keys"],"core-js/features/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/features/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/features/reflect/has":["es.reflect.has"],"core-js/features/reflect/has-metadata":["esnext.reflect.has-metadata"],"core-js/features/reflect/has-own-metadata":["esnext.reflect.has-own-metadata"],"core-js/features/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/features/reflect/metadata":["esnext.reflect.metadata"],"core-js/features/reflect/own-keys":["es.reflect.own-keys"],"core-js/features/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/features/reflect/set":["es.reflect.set"],"core-js/features/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/features/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/features/regexp":["es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/features/regexp/constructor":["es.regexp.constructor"],"core-js/features/regexp/flags":["es.regexp.flags"],"core-js/features/regexp/match":["es.string.match"],"core-js/features/regexp/replace":["es.string.replace"],"core-js/features/regexp/search":["es.string.search"],"core-js/features/regexp/split":["es.string.split"],"core-js/features/regexp/sticky":["es.regexp.sticky"],"core-js/features/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/features/regexp/to-string":["es.regexp.to-string"],"core-js/features/set":["es.object.to-string","es.set","es.string.iterator","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","web.dom-collections.iterator"],"core-js/features/set-immediate":["web.immediate"],"core-js/features/set-interval":["web.timers"],"core-js/features/set-timeout":["web.timers"],"core-js/features/set/add-all":["es.set","esnext.set.add-all"],"core-js/features/set/delete-all":["es.set","esnext.set.delete-all"],"core-js/features/set/difference":["es.set","es.string.iterator","esnext.set.difference","web.dom-collections.iterator"],"core-js/features/set/every":["es.set","esnext.set.every"],"core-js/features/set/filter":["es.set","esnext.set.filter"],"core-js/features/set/find":["es.set","esnext.set.find"],"core-js/features/set/from":["es.set","es.string.iterator","esnext.set.from","web.dom-collections.iterator"],"core-js/features/set/intersection":["es.set","esnext.set.intersection"],"core-js/features/set/is-disjoint-from":["es.set","esnext.set.is-disjoint-from"],"core-js/features/set/is-subset-of":["es.set","es.string.iterator","esnext.set.is-subset-of","web.dom-collections.iterator"],"core-js/features/set/is-superset-of":["es.set","esnext.set.is-superset-of"],"core-js/features/set/join":["es.set","esnext.set.join"],"core-js/features/set/map":["es.set","esnext.set.map"],"core-js/features/set/of":["es.set","es.string.iterator","esnext.set.of","web.dom-collections.iterator"],"core-js/features/set/reduce":["es.set","esnext.set.reduce"],"core-js/features/set/some":["es.set","esnext.set.some"],"core-js/features/set/symmetric-difference":["es.set","es.string.iterator","esnext.set.symmetric-difference","web.dom-collections.iterator"],"core-js/features/set/union":["es.set","es.string.iterator","esnext.set.union","web.dom-collections.iterator"],"core-js/features/string":["es.regexp.exec","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all"],"core-js/features/string/anchor":["es.string.anchor"],"core-js/features/string/at":["esnext.string.at"],"core-js/features/string/big":["es.string.big"],"core-js/features/string/blink":["es.string.blink"],"core-js/features/string/bold":["es.string.bold"],"core-js/features/string/code-point-at":["es.string.code-point-at"],"core-js/features/string/code-points":["esnext.string.code-points"],"core-js/features/string/ends-with":["es.string.ends-with"],"core-js/features/string/fixed":["es.string.fixed"],"core-js/features/string/fontcolor":["es.string.fontcolor"],"core-js/features/string/fontsize":["es.string.fontsize"],"core-js/features/string/from-code-point":["es.string.from-code-point"],"core-js/features/string/includes":["es.string.includes"],"core-js/features/string/italics":["es.string.italics"],"core-js/features/string/iterator":["es.string.iterator"],"core-js/features/string/link":["es.string.link"],"core-js/features/string/match":["es.regexp.exec","es.string.match"],"core-js/features/string/match-all":["es.string.match-all","esnext.string.match-all"],"core-js/features/string/pad-end":["es.string.pad-end"],"core-js/features/string/pad-start":["es.string.pad-start"],"core-js/features/string/raw":["es.string.raw"],"core-js/features/string/repeat":["es.string.repeat"],"core-js/features/string/replace":["es.regexp.exec","es.string.replace"],"core-js/features/string/replace-all":["es.string.replace-all","esnext.string.replace-all"],"core-js/features/string/search":["es.regexp.exec","es.string.search"],"core-js/features/string/small":["es.string.small"],"core-js/features/string/split":["es.regexp.exec","es.string.split"],"core-js/features/string/starts-with":["es.string.starts-with"],"core-js/features/string/strike":["es.string.strike"],"core-js/features/string/sub":["es.string.sub"],"core-js/features/string/sup":["es.string.sup"],"core-js/features/string/trim":["es.string.trim"],"core-js/features/string/trim-end":["es.string.trim-end"],"core-js/features/string/trim-left":["es.string.trim-start"],"core-js/features/string/trim-right":["es.string.trim-end"],"core-js/features/string/trim-start":["es.string.trim-start"],"core-js/features/string/virtual":["es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all"],"core-js/features/string/virtual/anchor":["es.string.anchor"],"core-js/features/string/virtual/at":["esnext.string.at"],"core-js/features/string/virtual/big":["es.string.big"],"core-js/features/string/virtual/blink":["es.string.blink"],"core-js/features/string/virtual/bold":["es.string.bold"],"core-js/features/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/features/string/virtual/code-points":["esnext.string.code-points"],"core-js/features/string/virtual/ends-with":["es.string.ends-with"],"core-js/features/string/virtual/fixed":["es.string.fixed"],"core-js/features/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/features/string/virtual/fontsize":["es.string.fontsize"],"core-js/features/string/virtual/includes":["es.string.includes"],"core-js/features/string/virtual/italics":["es.string.italics"],"core-js/features/string/virtual/iterator":["es.string.iterator"],"core-js/features/string/virtual/link":["es.string.link"],"core-js/features/string/virtual/match-all":["es.string.match-all","esnext.string.match-all"],"core-js/features/string/virtual/pad-end":["es.string.pad-end"],"core-js/features/string/virtual/pad-start":["es.string.pad-start"],"core-js/features/string/virtual/repeat":["es.string.repeat"],"core-js/features/string/virtual/replace-all":["es.string.replace-all","esnext.string.replace-all"],"core-js/features/string/virtual/small":["es.string.small"],"core-js/features/string/virtual/starts-with":["es.string.starts-with"],"core-js/features/string/virtual/strike":["es.string.strike"],"core-js/features/string/virtual/sub":["es.string.sub"],"core-js/features/string/virtual/sup":["es.string.sup"],"core-js/features/string/virtual/trim":["es.string.trim"],"core-js/features/string/virtual/trim-end":["es.string.trim-end"],"core-js/features/string/virtual/trim-left":["es.string.trim-start"],"core-js/features/string/virtual/trim-right":["es.string.trim-end"],"core-js/features/string/virtual/trim-start":["es.string.trim-start"],"core-js/features/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all"],"core-js/features/symbol/async-dispose":["esnext.symbol.async-dispose"],"core-js/features/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/features/symbol/description":["es.symbol.description"],"core-js/features/symbol/dispose":["esnext.symbol.dispose"],"core-js/features/symbol/for":["es.symbol"],"core-js/features/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/features/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/features/symbol/iterator":["es.symbol.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/features/symbol/key-for":["es.symbol"],"core-js/features/symbol/match":["es.symbol.match","es.string.match"],"core-js/features/symbol/match-all":["es.symbol.match-all","es.string.match-all"],"core-js/features/symbol/matcher":["esnext.symbol.matcher"],"core-js/features/symbol/metadata":["esnext.symbol.metadata"],"core-js/features/symbol/observable":["esnext.symbol.observable"],"core-js/features/symbol/pattern-match":["esnext.symbol.pattern-match"],"core-js/features/symbol/replace":["es.symbol.replace","es.string.replace"],"core-js/features/symbol/replace-all":["esnext.symbol.replace-all"],"core-js/features/symbol/search":["es.symbol.search","es.string.search"],"core-js/features/symbol/species":["es.symbol.species"],"core-js/features/symbol/split":["es.symbol.split","es.string.split"],"core-js/features/symbol/to-primitive":["es.symbol.to-primitive"],"core-js/features/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/features/symbol/unscopables":["es.symbol.unscopables"],"core-js/features/typed-array":["es.map","es.object.to-string","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by"],"core-js/features/typed-array/at":["esnext.typed-array.at"],"core-js/features/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/features/typed-array/entries":["es.typed-array.iterator"],"core-js/features/typed-array/every":["es.typed-array.every"],"core-js/features/typed-array/fill":["es.typed-array.fill"],"core-js/features/typed-array/filter":["es.typed-array.filter"],"core-js/features/typed-array/filter-out":["esnext.typed-array.filter-out"],"core-js/features/typed-array/find":["es.typed-array.find"],"core-js/features/typed-array/find-index":["es.typed-array.find-index"],"core-js/features/typed-array/find-last":["esnext.typed-array.find-last"],"core-js/features/typed-array/find-last-index":["esnext.typed-array.find-last-index"],"core-js/features/typed-array/float32-array":["es.object.to-string","es.typed-array.float32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/features/typed-array/float64-array":["es.object.to-string","es.typed-array.float64-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/features/typed-array/for-each":["es.typed-array.for-each"],"core-js/features/typed-array/from":["es.typed-array.from"],"core-js/features/typed-array/includes":["es.typed-array.includes"],"core-js/features/typed-array/index-of":["es.typed-array.index-of"],"core-js/features/typed-array/int16-array":["es.object.to-string","es.typed-array.int16-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/features/typed-array/int32-array":["es.object.to-string","es.typed-array.int32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/features/typed-array/int8-array":["es.object.to-string","es.typed-array.int8-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/features/typed-array/iterator":["es.typed-array.iterator"],"core-js/features/typed-array/join":["es.typed-array.join"],"core-js/features/typed-array/keys":["es.typed-array.iterator"],"core-js/features/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/features/typed-array/map":["es.typed-array.map"],"core-js/features/typed-array/of":["es.typed-array.of"],"core-js/features/typed-array/reduce":["es.typed-array.reduce"],"core-js/features/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/features/typed-array/reverse":["es.typed-array.reverse"],"core-js/features/typed-array/set":["es.typed-array.set"],"core-js/features/typed-array/slice":["es.typed-array.slice"],"core-js/features/typed-array/some":["es.typed-array.some"],"core-js/features/typed-array/sort":["es.typed-array.sort"],"core-js/features/typed-array/subarray":["es.typed-array.subarray"],"core-js/features/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/features/typed-array/to-string":["es.typed-array.to-string"],"core-js/features/typed-array/uint16-array":["es.object.to-string","es.typed-array.uint16-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/features/typed-array/uint32-array":["es.object.to-string","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/features/typed-array/uint8-array":["es.object.to-string","es.typed-array.uint8-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/features/typed-array/uint8-clamped-array":["es.object.to-string","es.typed-array.uint8-clamped-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/features/typed-array/unique-by":["es.map","esnext.typed-array.unique-by"],"core-js/features/typed-array/values":["es.typed-array.iterator"],"core-js/features/url":["web.url","web.url.to-json","web.url-search-params"],"core-js/features/url-search-params":["web.url-search-params"],"core-js/features/url/to-json":["web.url.to-json"],"core-js/features/weak-map":["es.object.to-string","es.weak-map","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","web.dom-collections.iterator"],"core-js/features/weak-map/delete-all":["es.weak-map","esnext.weak-map.delete-all"],"core-js/features/weak-map/emplace":["es.weak-map","esnext.weak-map.emplace"],"core-js/features/weak-map/from":["es.string.iterator","es.weak-map","esnext.weak-map.from","web.dom-collections.iterator"],"core-js/features/weak-map/of":["es.string.iterator","es.weak-map","esnext.weak-map.of","web.dom-collections.iterator"],"core-js/features/weak-map/upsert":["es.weak-map","esnext.weak-map.upsert"],"core-js/features/weak-set":["es.object.to-string","es.weak-set","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.iterator"],"core-js/features/weak-set/add-all":["es.weak-set","esnext.weak-set.add-all"],"core-js/features/weak-set/delete-all":["es.weak-set","esnext.weak-set.delete-all"],"core-js/features/weak-set/from":["es.string.iterator","es.weak-set","esnext.weak-set.from","web.dom-collections.iterator"],"core-js/features/weak-set/of":["es.string.iterator","es.weak-set","esnext.weak-set.of","web.dom-collections.iterator"],"core-js/modules/es.aggregate-error":["es.aggregate-error"],"core-js/modules/es.array-buffer.constructor":["es.array-buffer.constructor"],"core-js/modules/es.array-buffer.is-view":["es.array-buffer.is-view"],"core-js/modules/es.array-buffer.slice":["es.array-buffer.slice"],"core-js/modules/es.array.concat":["es.array.concat"],"core-js/modules/es.array.copy-within":["es.array.copy-within"],"core-js/modules/es.array.every":["es.array.every"],"core-js/modules/es.array.fill":["es.array.fill"],"core-js/modules/es.array.filter":["es.array.filter"],"core-js/modules/es.array.find":["es.array.find"],"core-js/modules/es.array.find-index":["es.array.find-index"],"core-js/modules/es.array.flat":["es.array.flat"],"core-js/modules/es.array.flat-map":["es.array.flat-map"],"core-js/modules/es.array.for-each":["es.array.for-each"],"core-js/modules/es.array.from":["es.array.from"],"core-js/modules/es.array.includes":["es.array.includes"],"core-js/modules/es.array.index-of":["es.array.index-of"],"core-js/modules/es.array.is-array":["es.array.is-array"],"core-js/modules/es.array.iterator":["es.array.iterator"],"core-js/modules/es.array.join":["es.array.join"],"core-js/modules/es.array.last-index-of":["es.array.last-index-of"],"core-js/modules/es.array.map":["es.array.map"],"core-js/modules/es.array.of":["es.array.of"],"core-js/modules/es.array.reduce":["es.array.reduce"],"core-js/modules/es.array.reduce-right":["es.array.reduce-right"],"core-js/modules/es.array.reverse":["es.array.reverse"],"core-js/modules/es.array.slice":["es.array.slice"],"core-js/modules/es.array.some":["es.array.some"],"core-js/modules/es.array.sort":["es.array.sort"],"core-js/modules/es.array.species":["es.array.species"],"core-js/modules/es.array.splice":["es.array.splice"],"core-js/modules/es.array.unscopables.flat":["es.array.unscopables.flat"],"core-js/modules/es.array.unscopables.flat-map":["es.array.unscopables.flat-map"],"core-js/modules/es.data-view":["es.data-view"],"core-js/modules/es.date.now":["es.date.now"],"core-js/modules/es.date.to-iso-string":["es.date.to-iso-string"],"core-js/modules/es.date.to-json":["es.date.to-json"],"core-js/modules/es.date.to-primitive":["es.date.to-primitive"],"core-js/modules/es.date.to-string":["es.date.to-string"],"core-js/modules/es.function.bind":["es.function.bind"],"core-js/modules/es.function.has-instance":["es.function.has-instance"],"core-js/modules/es.function.name":["es.function.name"],"core-js/modules/es.global-this":["es.global-this"],"core-js/modules/es.json.stringify":["es.json.stringify"],"core-js/modules/es.json.to-string-tag":["es.json.to-string-tag"],"core-js/modules/es.map":["es.map"],"core-js/modules/es.math.acosh":["es.math.acosh"],"core-js/modules/es.math.asinh":["es.math.asinh"],"core-js/modules/es.math.atanh":["es.math.atanh"],"core-js/modules/es.math.cbrt":["es.math.cbrt"],"core-js/modules/es.math.clz32":["es.math.clz32"],"core-js/modules/es.math.cosh":["es.math.cosh"],"core-js/modules/es.math.expm1":["es.math.expm1"],"core-js/modules/es.math.fround":["es.math.fround"],"core-js/modules/es.math.hypot":["es.math.hypot"],"core-js/modules/es.math.imul":["es.math.imul"],"core-js/modules/es.math.log10":["es.math.log10"],"core-js/modules/es.math.log1p":["es.math.log1p"],"core-js/modules/es.math.log2":["es.math.log2"],"core-js/modules/es.math.sign":["es.math.sign"],"core-js/modules/es.math.sinh":["es.math.sinh"],"core-js/modules/es.math.tanh":["es.math.tanh"],"core-js/modules/es.math.to-string-tag":["es.math.to-string-tag"],"core-js/modules/es.math.trunc":["es.math.trunc"],"core-js/modules/es.number.constructor":["es.number.constructor"],"core-js/modules/es.number.epsilon":["es.number.epsilon"],"core-js/modules/es.number.is-finite":["es.number.is-finite"],"core-js/modules/es.number.is-integer":["es.number.is-integer"],"core-js/modules/es.number.is-nan":["es.number.is-nan"],"core-js/modules/es.number.is-safe-integer":["es.number.is-safe-integer"],"core-js/modules/es.number.max-safe-integer":["es.number.max-safe-integer"],"core-js/modules/es.number.min-safe-integer":["es.number.min-safe-integer"],"core-js/modules/es.number.parse-float":["es.number.parse-float"],"core-js/modules/es.number.parse-int":["es.number.parse-int"],"core-js/modules/es.number.to-fixed":["es.number.to-fixed"],"core-js/modules/es.number.to-precision":["es.number.to-precision"],"core-js/modules/es.object.assign":["es.object.assign"],"core-js/modules/es.object.create":["es.object.create"],"core-js/modules/es.object.define-getter":["es.object.define-getter"],"core-js/modules/es.object.define-properties":["es.object.define-properties"],"core-js/modules/es.object.define-property":["es.object.define-property"],"core-js/modules/es.object.define-setter":["es.object.define-setter"],"core-js/modules/es.object.entries":["es.object.entries"],"core-js/modules/es.object.freeze":["es.object.freeze"],"core-js/modules/es.object.from-entries":["es.object.from-entries"],"core-js/modules/es.object.get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/modules/es.object.get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/modules/es.object.get-own-property-names":["es.object.get-own-property-names"],"core-js/modules/es.object.get-prototype-of":["es.object.get-prototype-of"],"core-js/modules/es.object.is":["es.object.is"],"core-js/modules/es.object.is-extensible":["es.object.is-extensible"],"core-js/modules/es.object.is-frozen":["es.object.is-frozen"],"core-js/modules/es.object.is-sealed":["es.object.is-sealed"],"core-js/modules/es.object.keys":["es.object.keys"],"core-js/modules/es.object.lookup-getter":["es.object.lookup-getter"],"core-js/modules/es.object.lookup-setter":["es.object.lookup-setter"],"core-js/modules/es.object.prevent-extensions":["es.object.prevent-extensions"],"core-js/modules/es.object.seal":["es.object.seal"],"core-js/modules/es.object.set-prototype-of":["es.object.set-prototype-of"],"core-js/modules/es.object.to-string":["es.object.to-string"],"core-js/modules/es.object.values":["es.object.values"],"core-js/modules/es.parse-float":["es.parse-float"],"core-js/modules/es.parse-int":["es.parse-int"],"core-js/modules/es.promise":["es.promise"],"core-js/modules/es.promise.all-settled":["es.promise.all-settled"],"core-js/modules/es.promise.any":["es.promise.any"],"core-js/modules/es.promise.finally":["es.promise.finally"],"core-js/modules/es.reflect.apply":["es.reflect.apply"],"core-js/modules/es.reflect.construct":["es.reflect.construct"],"core-js/modules/es.reflect.define-property":["es.reflect.define-property"],"core-js/modules/es.reflect.delete-property":["es.reflect.delete-property"],"core-js/modules/es.reflect.get":["es.reflect.get"],"core-js/modules/es.reflect.get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/modules/es.reflect.get-prototype-of":["es.reflect.get-prototype-of"],"core-js/modules/es.reflect.has":["es.reflect.has"],"core-js/modules/es.reflect.is-extensible":["es.reflect.is-extensible"],"core-js/modules/es.reflect.own-keys":["es.reflect.own-keys"],"core-js/modules/es.reflect.prevent-extensions":["es.reflect.prevent-extensions"],"core-js/modules/es.reflect.set":["es.reflect.set"],"core-js/modules/es.reflect.set-prototype-of":["es.reflect.set-prototype-of"],"core-js/modules/es.reflect.to-string-tag":["es.reflect.to-string-tag"],"core-js/modules/es.regexp.constructor":["es.regexp.constructor"],"core-js/modules/es.regexp.exec":["es.regexp.exec"],"core-js/modules/es.regexp.flags":["es.regexp.flags"],"core-js/modules/es.regexp.sticky":["es.regexp.sticky"],"core-js/modules/es.regexp.test":["es.regexp.test"],"core-js/modules/es.regexp.to-string":["es.regexp.to-string"],"core-js/modules/es.set":["es.set"],"core-js/modules/es.string.anchor":["es.string.anchor"],"core-js/modules/es.string.big":["es.string.big"],"core-js/modules/es.string.blink":["es.string.blink"],"core-js/modules/es.string.bold":["es.string.bold"],"core-js/modules/es.string.code-point-at":["es.string.code-point-at"],"core-js/modules/es.string.ends-with":["es.string.ends-with"],"core-js/modules/es.string.fixed":["es.string.fixed"],"core-js/modules/es.string.fontcolor":["es.string.fontcolor"],"core-js/modules/es.string.fontsize":["es.string.fontsize"],"core-js/modules/es.string.from-code-point":["es.string.from-code-point"],"core-js/modules/es.string.includes":["es.string.includes"],"core-js/modules/es.string.italics":["es.string.italics"],"core-js/modules/es.string.iterator":["es.string.iterator"],"core-js/modules/es.string.link":["es.string.link"],"core-js/modules/es.string.match":["es.string.match"],"core-js/modules/es.string.match-all":["es.string.match-all"],"core-js/modules/es.string.pad-end":["es.string.pad-end"],"core-js/modules/es.string.pad-start":["es.string.pad-start"],"core-js/modules/es.string.raw":["es.string.raw"],"core-js/modules/es.string.repeat":["es.string.repeat"],"core-js/modules/es.string.replace":["es.string.replace"],"core-js/modules/es.string.replace-all":["es.string.replace-all"],"core-js/modules/es.string.search":["es.string.search"],"core-js/modules/es.string.small":["es.string.small"],"core-js/modules/es.string.split":["es.string.split"],"core-js/modules/es.string.starts-with":["es.string.starts-with"],"core-js/modules/es.string.strike":["es.string.strike"],"core-js/modules/es.string.sub":["es.string.sub"],"core-js/modules/es.string.sup":["es.string.sup"],"core-js/modules/es.string.trim":["es.string.trim"],"core-js/modules/es.string.trim-end":["es.string.trim-end"],"core-js/modules/es.string.trim-start":["es.string.trim-start"],"core-js/modules/es.symbol":["es.symbol"],"core-js/modules/es.symbol.async-iterator":["es.symbol.async-iterator"],"core-js/modules/es.symbol.description":["es.symbol.description"],"core-js/modules/es.symbol.has-instance":["es.symbol.has-instance"],"core-js/modules/es.symbol.is-concat-spreadable":["es.symbol.is-concat-spreadable"],"core-js/modules/es.symbol.iterator":["es.symbol.iterator"],"core-js/modules/es.symbol.match":["es.symbol.match"],"core-js/modules/es.symbol.match-all":["es.symbol.match-all"],"core-js/modules/es.symbol.replace":["es.symbol.replace"],"core-js/modules/es.symbol.search":["es.symbol.search"],"core-js/modules/es.symbol.species":["es.symbol.species"],"core-js/modules/es.symbol.split":["es.symbol.split"],"core-js/modules/es.symbol.to-primitive":["es.symbol.to-primitive"],"core-js/modules/es.symbol.to-string-tag":["es.symbol.to-string-tag"],"core-js/modules/es.symbol.unscopables":["es.symbol.unscopables"],"core-js/modules/es.typed-array.copy-within":["es.typed-array.copy-within"],"core-js/modules/es.typed-array.every":["es.typed-array.every"],"core-js/modules/es.typed-array.fill":["es.typed-array.fill"],"core-js/modules/es.typed-array.filter":["es.typed-array.filter"],"core-js/modules/es.typed-array.find":["es.typed-array.find"],"core-js/modules/es.typed-array.find-index":["es.typed-array.find-index"],"core-js/modules/es.typed-array.float32-array":["es.typed-array.float32-array"],"core-js/modules/es.typed-array.float64-array":["es.typed-array.float64-array"],"core-js/modules/es.typed-array.for-each":["es.typed-array.for-each"],"core-js/modules/es.typed-array.from":["es.typed-array.from"],"core-js/modules/es.typed-array.includes":["es.typed-array.includes"],"core-js/modules/es.typed-array.index-of":["es.typed-array.index-of"],"core-js/modules/es.typed-array.int16-array":["es.typed-array.int16-array"],"core-js/modules/es.typed-array.int32-array":["es.typed-array.int32-array"],"core-js/modules/es.typed-array.int8-array":["es.typed-array.int8-array"],"core-js/modules/es.typed-array.iterator":["es.typed-array.iterator"],"core-js/modules/es.typed-array.join":["es.typed-array.join"],"core-js/modules/es.typed-array.last-index-of":["es.typed-array.last-index-of"],"core-js/modules/es.typed-array.map":["es.typed-array.map"],"core-js/modules/es.typed-array.of":["es.typed-array.of"],"core-js/modules/es.typed-array.reduce":["es.typed-array.reduce"],"core-js/modules/es.typed-array.reduce-right":["es.typed-array.reduce-right"],"core-js/modules/es.typed-array.reverse":["es.typed-array.reverse"],"core-js/modules/es.typed-array.set":["es.typed-array.set"],"core-js/modules/es.typed-array.slice":["es.typed-array.slice"],"core-js/modules/es.typed-array.some":["es.typed-array.some"],"core-js/modules/es.typed-array.sort":["es.typed-array.sort"],"core-js/modules/es.typed-array.subarray":["es.typed-array.subarray"],"core-js/modules/es.typed-array.to-locale-string":["es.typed-array.to-locale-string"],"core-js/modules/es.typed-array.to-string":["es.typed-array.to-string"],"core-js/modules/es.typed-array.uint16-array":["es.typed-array.uint16-array"],"core-js/modules/es.typed-array.uint32-array":["es.typed-array.uint32-array"],"core-js/modules/es.typed-array.uint8-array":["es.typed-array.uint8-array"],"core-js/modules/es.typed-array.uint8-clamped-array":["es.typed-array.uint8-clamped-array"],"core-js/modules/es.weak-map":["es.weak-map"],"core-js/modules/es.weak-set":["es.weak-set"],"core-js/modules/esnext.aggregate-error":["esnext.aggregate-error"],"core-js/modules/esnext.array.at":["esnext.array.at"],"core-js/modules/esnext.array.filter-out":["esnext.array.filter-out"],"core-js/modules/esnext.array.find-last":["esnext.array.find-last"],"core-js/modules/esnext.array.find-last-index":["esnext.array.find-last-index"],"core-js/modules/esnext.array.is-template-object":["esnext.array.is-template-object"],"core-js/modules/esnext.array.last-index":["esnext.array.last-index"],"core-js/modules/esnext.array.last-item":["esnext.array.last-item"],"core-js/modules/esnext.array.unique-by":["esnext.array.unique-by"],"core-js/modules/esnext.async-iterator.as-indexed-pairs":["esnext.async-iterator.as-indexed-pairs"],"core-js/modules/esnext.async-iterator.constructor":["esnext.async-iterator.constructor"],"core-js/modules/esnext.async-iterator.drop":["esnext.async-iterator.drop"],"core-js/modules/esnext.async-iterator.every":["esnext.async-iterator.every"],"core-js/modules/esnext.async-iterator.filter":["esnext.async-iterator.filter"],"core-js/modules/esnext.async-iterator.find":["esnext.async-iterator.find"],"core-js/modules/esnext.async-iterator.flat-map":["esnext.async-iterator.flat-map"],"core-js/modules/esnext.async-iterator.for-each":["esnext.async-iterator.for-each"],"core-js/modules/esnext.async-iterator.from":["esnext.async-iterator.from"],"core-js/modules/esnext.async-iterator.map":["esnext.async-iterator.map"],"core-js/modules/esnext.async-iterator.reduce":["esnext.async-iterator.reduce"],"core-js/modules/esnext.async-iterator.some":["esnext.async-iterator.some"],"core-js/modules/esnext.async-iterator.take":["esnext.async-iterator.take"],"core-js/modules/esnext.async-iterator.to-array":["esnext.async-iterator.to-array"],"core-js/modules/esnext.bigint.range":["esnext.bigint.range"],"core-js/modules/esnext.composite-key":["esnext.composite-key"],"core-js/modules/esnext.composite-symbol":["esnext.composite-symbol"],"core-js/modules/esnext.global-this":["esnext.global-this"],"core-js/modules/esnext.iterator.as-indexed-pairs":["esnext.iterator.as-indexed-pairs"],"core-js/modules/esnext.iterator.constructor":["esnext.iterator.constructor"],"core-js/modules/esnext.iterator.drop":["esnext.iterator.drop"],"core-js/modules/esnext.iterator.every":["esnext.iterator.every"],"core-js/modules/esnext.iterator.filter":["esnext.iterator.filter"],"core-js/modules/esnext.iterator.find":["esnext.iterator.find"],"core-js/modules/esnext.iterator.flat-map":["esnext.iterator.flat-map"],"core-js/modules/esnext.iterator.for-each":["esnext.iterator.for-each"],"core-js/modules/esnext.iterator.from":["esnext.iterator.from"],"core-js/modules/esnext.iterator.map":["esnext.iterator.map"],"core-js/modules/esnext.iterator.reduce":["esnext.iterator.reduce"],"core-js/modules/esnext.iterator.some":["esnext.iterator.some"],"core-js/modules/esnext.iterator.take":["esnext.iterator.take"],"core-js/modules/esnext.iterator.to-array":["esnext.iterator.to-array"],"core-js/modules/esnext.map.delete-all":["esnext.map.delete-all"],"core-js/modules/esnext.map.emplace":["esnext.map.emplace"],"core-js/modules/esnext.map.every":["esnext.map.every"],"core-js/modules/esnext.map.filter":["esnext.map.filter"],"core-js/modules/esnext.map.find":["esnext.map.find"],"core-js/modules/esnext.map.find-key":["esnext.map.find-key"],"core-js/modules/esnext.map.from":["esnext.map.from"],"core-js/modules/esnext.map.group-by":["esnext.map.group-by"],"core-js/modules/esnext.map.includes":["esnext.map.includes"],"core-js/modules/esnext.map.key-by":["esnext.map.key-by"],"core-js/modules/esnext.map.key-of":["esnext.map.key-of"],"core-js/modules/esnext.map.map-keys":["esnext.map.map-keys"],"core-js/modules/esnext.map.map-values":["esnext.map.map-values"],"core-js/modules/esnext.map.merge":["esnext.map.merge"],"core-js/modules/esnext.map.of":["esnext.map.of"],"core-js/modules/esnext.map.reduce":["esnext.map.reduce"],"core-js/modules/esnext.map.some":["esnext.map.some"],"core-js/modules/esnext.map.update":["esnext.map.update"],"core-js/modules/esnext.map.update-or-insert":["esnext.map.update-or-insert"],"core-js/modules/esnext.map.upsert":["esnext.map.upsert"],"core-js/modules/esnext.math.clamp":["esnext.math.clamp"],"core-js/modules/esnext.math.deg-per-rad":["esnext.math.deg-per-rad"],"core-js/modules/esnext.math.degrees":["esnext.math.degrees"],"core-js/modules/esnext.math.fscale":["esnext.math.fscale"],"core-js/modules/esnext.math.iaddh":["esnext.math.iaddh"],"core-js/modules/esnext.math.imulh":["esnext.math.imulh"],"core-js/modules/esnext.math.isubh":["esnext.math.isubh"],"core-js/modules/esnext.math.rad-per-deg":["esnext.math.rad-per-deg"],"core-js/modules/esnext.math.radians":["esnext.math.radians"],"core-js/modules/esnext.math.scale":["esnext.math.scale"],"core-js/modules/esnext.math.seeded-prng":["esnext.math.seeded-prng"],"core-js/modules/esnext.math.signbit":["esnext.math.signbit"],"core-js/modules/esnext.math.umulh":["esnext.math.umulh"],"core-js/modules/esnext.number.from-string":["esnext.number.from-string"],"core-js/modules/esnext.number.range":["esnext.number.range"],"core-js/modules/esnext.object.has-own":["esnext.object.has-own"],"core-js/modules/esnext.object.iterate-entries":["esnext.object.iterate-entries"],"core-js/modules/esnext.object.iterate-keys":["esnext.object.iterate-keys"],"core-js/modules/esnext.object.iterate-values":["esnext.object.iterate-values"],"core-js/modules/esnext.observable":["esnext.observable"],"core-js/modules/esnext.promise.all-settled":["esnext.promise.all-settled"],"core-js/modules/esnext.promise.any":["esnext.promise.any"],"core-js/modules/esnext.promise.try":["esnext.promise.try"],"core-js/modules/esnext.reflect.define-metadata":["esnext.reflect.define-metadata"],"core-js/modules/esnext.reflect.delete-metadata":["esnext.reflect.delete-metadata"],"core-js/modules/esnext.reflect.get-metadata":["esnext.reflect.get-metadata"],"core-js/modules/esnext.reflect.get-metadata-keys":["esnext.reflect.get-metadata-keys"],"core-js/modules/esnext.reflect.get-own-metadata":["esnext.reflect.get-own-metadata"],"core-js/modules/esnext.reflect.get-own-metadata-keys":["esnext.reflect.get-own-metadata-keys"],"core-js/modules/esnext.reflect.has-metadata":["esnext.reflect.has-metadata"],"core-js/modules/esnext.reflect.has-own-metadata":["esnext.reflect.has-own-metadata"],"core-js/modules/esnext.reflect.metadata":["esnext.reflect.metadata"],"core-js/modules/esnext.set.add-all":["esnext.set.add-all"],"core-js/modules/esnext.set.delete-all":["esnext.set.delete-all"],"core-js/modules/esnext.set.difference":["esnext.set.difference"],"core-js/modules/esnext.set.every":["esnext.set.every"],"core-js/modules/esnext.set.filter":["esnext.set.filter"],"core-js/modules/esnext.set.find":["esnext.set.find"],"core-js/modules/esnext.set.from":["esnext.set.from"],"core-js/modules/esnext.set.intersection":["esnext.set.intersection"],"core-js/modules/esnext.set.is-disjoint-from":["esnext.set.is-disjoint-from"],"core-js/modules/esnext.set.is-subset-of":["esnext.set.is-subset-of"],"core-js/modules/esnext.set.is-superset-of":["esnext.set.is-superset-of"],"core-js/modules/esnext.set.join":["esnext.set.join"],"core-js/modules/esnext.set.map":["esnext.set.map"],"core-js/modules/esnext.set.of":["esnext.set.of"],"core-js/modules/esnext.set.reduce":["esnext.set.reduce"],"core-js/modules/esnext.set.some":["esnext.set.some"],"core-js/modules/esnext.set.symmetric-difference":["esnext.set.symmetric-difference"],"core-js/modules/esnext.set.union":["esnext.set.union"],"core-js/modules/esnext.string.at":["esnext.string.at"],"core-js/modules/esnext.string.at-alternative":["esnext.string.at-alternative"],"core-js/modules/esnext.string.code-points":["esnext.string.code-points"],"core-js/modules/esnext.string.match-all":["esnext.string.match-all"],"core-js/modules/esnext.string.replace-all":["esnext.string.replace-all"],"core-js/modules/esnext.symbol.async-dispose":["esnext.symbol.async-dispose"],"core-js/modules/esnext.symbol.dispose":["esnext.symbol.dispose"],"core-js/modules/esnext.symbol.matcher":["esnext.symbol.matcher"],"core-js/modules/esnext.symbol.metadata":["esnext.symbol.metadata"],"core-js/modules/esnext.symbol.observable":["esnext.symbol.observable"],"core-js/modules/esnext.symbol.pattern-match":["esnext.symbol.pattern-match"],"core-js/modules/esnext.symbol.replace-all":["esnext.symbol.replace-all"],"core-js/modules/esnext.typed-array.at":["esnext.typed-array.at"],"core-js/modules/esnext.typed-array.filter-out":["esnext.typed-array.filter-out"],"core-js/modules/esnext.typed-array.find-last":["esnext.typed-array.find-last"],"core-js/modules/esnext.typed-array.find-last-index":["esnext.typed-array.find-last-index"],"core-js/modules/esnext.typed-array.unique-by":["esnext.typed-array.unique-by"],"core-js/modules/esnext.weak-map.delete-all":["esnext.weak-map.delete-all"],"core-js/modules/esnext.weak-map.emplace":["esnext.weak-map.emplace"],"core-js/modules/esnext.weak-map.from":["esnext.weak-map.from"],"core-js/modules/esnext.weak-map.of":["esnext.weak-map.of"],"core-js/modules/esnext.weak-map.upsert":["esnext.weak-map.upsert"],"core-js/modules/esnext.weak-set.add-all":["esnext.weak-set.add-all"],"core-js/modules/esnext.weak-set.delete-all":["esnext.weak-set.delete-all"],"core-js/modules/esnext.weak-set.from":["esnext.weak-set.from"],"core-js/modules/esnext.weak-set.of":["esnext.weak-set.of"],"core-js/modules/web.dom-collections.for-each":["web.dom-collections.for-each"],"core-js/modules/web.dom-collections.iterator":["web.dom-collections.iterator"],"core-js/modules/web.immediate":["web.immediate"],"core-js/modules/web.queue-microtask":["web.queue-microtask"],"core-js/modules/web.timers":["web.timers"],"core-js/modules/web.url":["web.url"],"core-js/modules/web.url-search-params":["web.url-search-params"],"core-js/modules/web.url.to-json":["web.url.to-json"],"core-js/proposals":["es.map","esnext.aggregate-error","esnext.array.at","esnext.array.filter-out","esnext.array.find-last","esnext.array.find-last-index","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.unique-by","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.to-json","web.url-search-params"],"core-js/proposals/accessible-object-hasownproperty":["esnext.object.has-own"],"core-js/proposals/array-filtering":["esnext.array.filter-out","esnext.typed-array.filter-out"],"core-js/proposals/array-find-from-last":["esnext.array.find-last","esnext.array.find-last-index","esnext.typed-array.find-last","esnext.typed-array.find-last-index"],"core-js/proposals/array-is-template-object":["esnext.array.is-template-object"],"core-js/proposals/array-last":["esnext.array.last-index","esnext.array.last-item"],"core-js/proposals/array-unique":["es.map","esnext.array.unique-by","esnext.typed-array.unique-by"],"core-js/proposals/collection-methods":["esnext.map.delete-all","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.set.add-all","esnext.set.delete-all","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.join","esnext.set.map","esnext.set.reduce","esnext.set.some","esnext.weak-map.delete-all","esnext.weak-set.add-all","esnext.weak-set.delete-all"],"core-js/proposals/collection-of-from":["esnext.map.from","esnext.map.of","esnext.set.from","esnext.set.of","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-set.from","esnext.weak-set.of"],"core-js/proposals/decorators":["esnext.symbol.metadata"],"core-js/proposals/efficient-64-bit-arithmetic":["esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.umulh"],"core-js/proposals/global-this":["esnext.global-this"],"core-js/proposals/iterator-helpers":["esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array"],"core-js/proposals/keys-composition":["esnext.composite-key","esnext.composite-symbol"],"core-js/proposals/map-update-or-insert":["esnext.map.emplace","esnext.map.update-or-insert","esnext.map.upsert","esnext.weak-map.emplace","esnext.weak-map.upsert"],"core-js/proposals/map-upsert":["esnext.map.emplace","esnext.map.update-or-insert","esnext.map.upsert","esnext.weak-map.emplace","esnext.weak-map.upsert"],"core-js/proposals/math-extensions":["esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale"],"core-js/proposals/math-signbit":["esnext.math.signbit"],"core-js/proposals/number-from-string":["esnext.number.from-string"],"core-js/proposals/number-range":["esnext.bigint.range","esnext.number.range"],"core-js/proposals/object-iteration":["esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values"],"core-js/proposals/observable":["esnext.observable","esnext.symbol.observable"],"core-js/proposals/pattern-matching":["esnext.symbol.matcher","esnext.symbol.pattern-match"],"core-js/proposals/promise-all-settled":["esnext.promise.all-settled"],"core-js/proposals/promise-any":["esnext.aggregate-error","esnext.promise.any"],"core-js/proposals/promise-try":["esnext.promise.try"],"core-js/proposals/reflect-metadata":["esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata"],"core-js/proposals/relative-indexing-method":["esnext.array.at","esnext.typed-array.at"],"core-js/proposals/seeded-random":["esnext.math.seeded-prng"],"core-js/proposals/set-methods":["esnext.set.difference","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.symmetric-difference","esnext.set.union"],"core-js/proposals/string-at":["esnext.string.at"],"core-js/proposals/string-code-points":["esnext.string.code-points"],"core-js/proposals/string-match-all":["esnext.string.match-all"],"core-js/proposals/string-replace-all":["esnext.string.replace-all","esnext.symbol.replace-all"],"core-js/proposals/url":["web.url","web.url.to-json","web.url-search-params"],"core-js/proposals/using-statement":["esnext.symbol.async-dispose","esnext.symbol.dispose"],"core-js/stable":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.aggregate-error","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","es.weak-map","es.weak-set","web.dom-collections.for-each","web.dom-collections.iterator","web.immediate","web.queue-microtask","web.timers","web.url","web.url.to-json","web.url-search-params"],"core-js/stable/aggregate-error":["es.aggregate-error","es.string.iterator","esnext.aggregate-error","web.dom-collections.iterator"],"core-js/stable/array":["es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.string.iterator"],"core-js/stable/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string"],"core-js/stable/array-buffer/constructor":["es.array-buffer.constructor","es.object.to-string"],"core-js/stable/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/stable/array-buffer/slice":["es.array-buffer.slice"],"core-js/stable/array/concat":["es.array.concat"],"core-js/stable/array/copy-within":["es.array.copy-within"],"core-js/stable/array/entries":["es.array.iterator"],"core-js/stable/array/every":["es.array.every"],"core-js/stable/array/fill":["es.array.fill"],"core-js/stable/array/filter":["es.array.filter"],"core-js/stable/array/find":["es.array.find"],"core-js/stable/array/find-index":["es.array.find-index"],"core-js/stable/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/stable/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/stable/array/for-each":["es.array.for-each"],"core-js/stable/array/from":["es.array.from","es.string.iterator"],"core-js/stable/array/includes":["es.array.includes"],"core-js/stable/array/index-of":["es.array.index-of"],"core-js/stable/array/is-array":["es.array.is-array"],"core-js/stable/array/iterator":["es.array.iterator"],"core-js/stable/array/join":["es.array.join"],"core-js/stable/array/keys":["es.array.iterator"],"core-js/stable/array/last-index-of":["es.array.last-index-of"],"core-js/stable/array/map":["es.array.map"],"core-js/stable/array/of":["es.array.of"],"core-js/stable/array/reduce":["es.array.reduce"],"core-js/stable/array/reduce-right":["es.array.reduce-right"],"core-js/stable/array/reverse":["es.array.reverse"],"core-js/stable/array/slice":["es.array.slice"],"core-js/stable/array/some":["es.array.some"],"core-js/stable/array/sort":["es.array.sort"],"core-js/stable/array/splice":["es.array.splice"],"core-js/stable/array/values":["es.array.iterator"],"core-js/stable/array/virtual":["es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map"],"core-js/stable/array/virtual/concat":["es.array.concat"],"core-js/stable/array/virtual/copy-within":["es.array.copy-within"],"core-js/stable/array/virtual/entries":["es.array.iterator"],"core-js/stable/array/virtual/every":["es.array.every"],"core-js/stable/array/virtual/fill":["es.array.fill"],"core-js/stable/array/virtual/filter":["es.array.filter"],"core-js/stable/array/virtual/find":["es.array.find"],"core-js/stable/array/virtual/find-index":["es.array.find-index"],"core-js/stable/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/stable/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/stable/array/virtual/for-each":["es.array.for-each"],"core-js/stable/array/virtual/includes":["es.array.includes"],"core-js/stable/array/virtual/index-of":["es.array.index-of"],"core-js/stable/array/virtual/iterator":["es.array.iterator"],"core-js/stable/array/virtual/join":["es.array.join"],"core-js/stable/array/virtual/keys":["es.array.iterator"],"core-js/stable/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/stable/array/virtual/map":["es.array.map"],"core-js/stable/array/virtual/reduce":["es.array.reduce"],"core-js/stable/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/stable/array/virtual/reverse":["es.array.reverse"],"core-js/stable/array/virtual/slice":["es.array.slice"],"core-js/stable/array/virtual/some":["es.array.some"],"core-js/stable/array/virtual/sort":["es.array.sort"],"core-js/stable/array/virtual/splice":["es.array.splice"],"core-js/stable/array/virtual/values":["es.array.iterator"],"core-js/stable/clear-immediate":["web.immediate"],"core-js/stable/data-view":["es.data-view","es.object.to-string"],"core-js/stable/date":["es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/stable/date/now":["es.date.now"],"core-js/stable/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/stable/date/to-json":["es.date.to-json"],"core-js/stable/date/to-primitive":["es.date.to-primitive"],"core-js/stable/date/to-string":["es.date.to-string"],"core-js/stable/dom-collections":["es.array.iterator","web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/stable/dom-collections/for-each":["web.dom-collections.for-each"],"core-js/stable/dom-collections/iterator":["web.dom-collections.iterator"],"core-js/stable/function":["es.function.bind","es.function.has-instance","es.function.name"],"core-js/stable/function/bind":["es.function.bind"],"core-js/stable/function/has-instance":["es.function.has-instance"],"core-js/stable/function/name":["es.function.name"],"core-js/stable/function/virtual":["es.function.bind"],"core-js/stable/function/virtual/bind":["es.function.bind"],"core-js/stable/global-this":["es.global-this"],"core-js/stable/instance/bind":["es.function.bind"],"core-js/stable/instance/code-point-at":["es.string.code-point-at"],"core-js/stable/instance/concat":["es.array.concat"],"core-js/stable/instance/copy-within":["es.array.copy-within"],"core-js/stable/instance/ends-with":["es.string.ends-with"],"core-js/stable/instance/entries":["es.array.iterator","web.dom-collections.iterator"],"core-js/stable/instance/every":["es.array.every"],"core-js/stable/instance/fill":["es.array.fill"],"core-js/stable/instance/filter":["es.array.filter"],"core-js/stable/instance/find":["es.array.find"],"core-js/stable/instance/find-index":["es.array.find-index"],"core-js/stable/instance/flags":["es.regexp.flags"],"core-js/stable/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/stable/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/stable/instance/for-each":["es.array.for-each","web.dom-collections.iterator"],"core-js/stable/instance/includes":["es.array.includes","es.string.includes"],"core-js/stable/instance/index-of":["es.array.index-of"],"core-js/stable/instance/keys":["es.array.iterator","web.dom-collections.iterator"],"core-js/stable/instance/last-index-of":["es.array.last-index-of"],"core-js/stable/instance/map":["es.array.map"],"core-js/stable/instance/match-all":["es.string.match-all"],"core-js/stable/instance/pad-end":["es.string.pad-end"],"core-js/stable/instance/pad-start":["es.string.pad-start"],"core-js/stable/instance/reduce":["es.array.reduce"],"core-js/stable/instance/reduce-right":["es.array.reduce-right"],"core-js/stable/instance/repeat":["es.string.repeat"],"core-js/stable/instance/replace-all":["es.string.replace-all"],"core-js/stable/instance/reverse":["es.array.reverse"],"core-js/stable/instance/slice":["es.array.slice"],"core-js/stable/instance/some":["es.array.some"],"core-js/stable/instance/sort":["es.array.sort"],"core-js/stable/instance/splice":["es.array.splice"],"core-js/stable/instance/starts-with":["es.string.starts-with"],"core-js/stable/instance/trim":["es.string.trim"],"core-js/stable/instance/trim-end":["es.string.trim-end"],"core-js/stable/instance/trim-left":["es.string.trim-start"],"core-js/stable/instance/trim-right":["es.string.trim-end"],"core-js/stable/instance/trim-start":["es.string.trim-start"],"core-js/stable/instance/values":["es.array.iterator","web.dom-collections.iterator"],"core-js/stable/json":["es.json.stringify","es.json.to-string-tag"],"core-js/stable/json/stringify":["es.json.stringify"],"core-js/stable/json/to-string-tag":["es.json.to-string-tag"],"core-js/stable/map":["es.map","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc"],"core-js/stable/math/acosh":["es.math.acosh"],"core-js/stable/math/asinh":["es.math.asinh"],"core-js/stable/math/atanh":["es.math.atanh"],"core-js/stable/math/cbrt":["es.math.cbrt"],"core-js/stable/math/clz32":["es.math.clz32"],"core-js/stable/math/cosh":["es.math.cosh"],"core-js/stable/math/expm1":["es.math.expm1"],"core-js/stable/math/fround":["es.math.fround"],"core-js/stable/math/hypot":["es.math.hypot"],"core-js/stable/math/imul":["es.math.imul"],"core-js/stable/math/log10":["es.math.log10"],"core-js/stable/math/log1p":["es.math.log1p"],"core-js/stable/math/log2":["es.math.log2"],"core-js/stable/math/sign":["es.math.sign"],"core-js/stable/math/sinh":["es.math.sinh"],"core-js/stable/math/tanh":["es.math.tanh"],"core-js/stable/math/to-string-tag":["es.math.to-string-tag"],"core-js/stable/math/trunc":["es.math.trunc"],"core-js/stable/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision"],"core-js/stable/number/constructor":["es.number.constructor"],"core-js/stable/number/epsilon":["es.number.epsilon"],"core-js/stable/number/is-finite":["es.number.is-finite"],"core-js/stable/number/is-integer":["es.number.is-integer"],"core-js/stable/number/is-nan":["es.number.is-nan"],"core-js/stable/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/stable/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/stable/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/stable/number/parse-float":["es.number.parse-float"],"core-js/stable/number/parse-int":["es.number.parse-int"],"core-js/stable/number/to-fixed":["es.number.to-fixed"],"core-js/stable/number/to-precision":["es.number.to-precision"],"core-js/stable/number/virtual":["es.number.to-fixed","es.number.to-precision"],"core-js/stable/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/stable/number/virtual/to-precision":["es.number.to-precision"],"core-js/stable/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag"],"core-js/stable/object/assign":["es.object.assign"],"core-js/stable/object/create":["es.object.create"],"core-js/stable/object/define-getter":["es.object.define-getter"],"core-js/stable/object/define-properties":["es.object.define-properties"],"core-js/stable/object/define-property":["es.object.define-property"],"core-js/stable/object/define-setter":["es.object.define-setter"],"core-js/stable/object/entries":["es.object.entries"],"core-js/stable/object/freeze":["es.object.freeze"],"core-js/stable/object/from-entries":["es.array.iterator","es.object.from-entries"],"core-js/stable/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/stable/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/stable/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/stable/object/get-own-property-symbols":["es.symbol"],"core-js/stable/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/stable/object/is":["es.object.is"],"core-js/stable/object/is-extensible":["es.object.is-extensible"],"core-js/stable/object/is-frozen":["es.object.is-frozen"],"core-js/stable/object/is-sealed":["es.object.is-sealed"],"core-js/stable/object/keys":["es.object.keys"],"core-js/stable/object/lookup-getter":["es.object.lookup-setter"],"core-js/stable/object/lookup-setter":["es.object.lookup-setter"],"core-js/stable/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/stable/object/seal":["es.object.seal"],"core-js/stable/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/stable/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/stable/object/values":["es.object.values"],"core-js/stable/parse-float":["es.parse-float"],"core-js/stable/parse-int":["es.parse-int"],"core-js/stable/promise":["es.aggregate-error","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/promise/all-settled":["es.promise","es.promise.all-settled","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/promise/any":["es.aggregate-error","es.promise","es.promise.any","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/promise/finally":["es.promise","es.promise.finally"],"core-js/stable/queue-microtask":["web.queue-microtask"],"core-js/stable/reflect":["es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag"],"core-js/stable/reflect/apply":["es.reflect.apply"],"core-js/stable/reflect/construct":["es.reflect.construct"],"core-js/stable/reflect/define-property":["es.reflect.define-property"],"core-js/stable/reflect/delete-property":["es.reflect.delete-property"],"core-js/stable/reflect/get":["es.reflect.get"],"core-js/stable/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/stable/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/stable/reflect/has":["es.reflect.has"],"core-js/stable/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/stable/reflect/own-keys":["es.reflect.own-keys"],"core-js/stable/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/stable/reflect/set":["es.reflect.set"],"core-js/stable/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/stable/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/stable/regexp":["es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/stable/regexp/constructor":["es.regexp.constructor"],"core-js/stable/regexp/flags":["es.regexp.flags"],"core-js/stable/regexp/match":["es.string.match"],"core-js/stable/regexp/replace":["es.string.replace"],"core-js/stable/regexp/search":["es.string.search"],"core-js/stable/regexp/split":["es.string.split"],"core-js/stable/regexp/sticky":["es.regexp.sticky"],"core-js/stable/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/stable/regexp/to-string":["es.regexp.to-string"],"core-js/stable/set":["es.object.to-string","es.set","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/set-immediate":["web.immediate"],"core-js/stable/set-interval":["web.timers"],"core-js/stable/set-timeout":["web.timers"],"core-js/stable/string":["es.regexp.exec","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/stable/string/anchor":["es.string.anchor"],"core-js/stable/string/big":["es.string.big"],"core-js/stable/string/blink":["es.string.blink"],"core-js/stable/string/bold":["es.string.bold"],"core-js/stable/string/code-point-at":["es.string.code-point-at"],"core-js/stable/string/ends-with":["es.string.ends-with"],"core-js/stable/string/fixed":["es.string.fixed"],"core-js/stable/string/fontcolor":["es.string.fontcolor"],"core-js/stable/string/fontsize":["es.string.fontsize"],"core-js/stable/string/from-code-point":["es.string.from-code-point"],"core-js/stable/string/includes":["es.string.includes"],"core-js/stable/string/italics":["es.string.italics"],"core-js/stable/string/iterator":["es.string.iterator"],"core-js/stable/string/link":["es.string.link"],"core-js/stable/string/match":["es.regexp.exec","es.string.match"],"core-js/stable/string/match-all":["es.string.match-all"],"core-js/stable/string/pad-end":["es.string.pad-end"],"core-js/stable/string/pad-start":["es.string.pad-start"],"core-js/stable/string/raw":["es.string.raw"],"core-js/stable/string/repeat":["es.string.repeat"],"core-js/stable/string/replace":["es.regexp.exec","es.string.replace"],"core-js/stable/string/replace-all":["es.string.replace-all"],"core-js/stable/string/search":["es.regexp.exec","es.string.search"],"core-js/stable/string/small":["es.string.small"],"core-js/stable/string/split":["es.regexp.exec","es.string.split"],"core-js/stable/string/starts-with":["es.string.starts-with"],"core-js/stable/string/strike":["es.string.strike"],"core-js/stable/string/sub":["es.string.sub"],"core-js/stable/string/sup":["es.string.sup"],"core-js/stable/string/trim":["es.string.trim"],"core-js/stable/string/trim-end":["es.string.trim-end"],"core-js/stable/string/trim-left":["es.string.trim-start"],"core-js/stable/string/trim-right":["es.string.trim-end"],"core-js/stable/string/trim-start":["es.string.trim-start"],"core-js/stable/string/virtual":["es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/stable/string/virtual/anchor":["es.string.anchor"],"core-js/stable/string/virtual/big":["es.string.big"],"core-js/stable/string/virtual/blink":["es.string.blink"],"core-js/stable/string/virtual/bold":["es.string.bold"],"core-js/stable/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/stable/string/virtual/ends-with":["es.string.ends-with"],"core-js/stable/string/virtual/fixed":["es.string.fixed"],"core-js/stable/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/stable/string/virtual/fontsize":["es.string.fontsize"],"core-js/stable/string/virtual/includes":["es.string.includes"],"core-js/stable/string/virtual/italics":["es.string.italics"],"core-js/stable/string/virtual/iterator":["es.string.iterator"],"core-js/stable/string/virtual/link":["es.string.link"],"core-js/stable/string/virtual/match-all":["es.string.match-all"],"core-js/stable/string/virtual/pad-end":["es.string.pad-end"],"core-js/stable/string/virtual/pad-start":["es.string.pad-start"],"core-js/stable/string/virtual/repeat":["es.string.repeat"],"core-js/stable/string/virtual/replace-all":["es.string.replace-all"],"core-js/stable/string/virtual/small":["es.string.small"],"core-js/stable/string/virtual/starts-with":["es.string.starts-with"],"core-js/stable/string/virtual/strike":["es.string.strike"],"core-js/stable/string/virtual/sub":["es.string.sub"],"core-js/stable/string/virtual/sup":["es.string.sup"],"core-js/stable/string/virtual/trim":["es.string.trim"],"core-js/stable/string/virtual/trim-end":["es.string.trim-end"],"core-js/stable/string/virtual/trim-left":["es.string.trim-start"],"core-js/stable/string/virtual/trim-right":["es.string.trim-end"],"core-js/stable/string/virtual/trim-start":["es.string.trim-start"],"core-js/stable/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/stable/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/stable/symbol/description":["es.symbol.description"],"core-js/stable/symbol/for":["es.symbol"],"core-js/stable/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/stable/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/stable/symbol/iterator":["es.symbol.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/symbol/key-for":["es.symbol"],"core-js/stable/symbol/match":["es.symbol.match","es.string.match"],"core-js/stable/symbol/match-all":["es.symbol.match-all","es.string.match-all"],"core-js/stable/symbol/replace":["es.symbol.replace","es.string.replace"],"core-js/stable/symbol/search":["es.symbol.search","es.string.search"],"core-js/stable/symbol/species":["es.symbol.species"],"core-js/stable/symbol/split":["es.symbol.split","es.string.split"],"core-js/stable/symbol/to-primitive":["es.symbol.to-primitive"],"core-js/stable/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/stable/symbol/unscopables":["es.symbol.unscopables"],"core-js/stable/typed-array":["es.object.to-string","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/stable/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/stable/typed-array/entries":["es.typed-array.iterator"],"core-js/stable/typed-array/every":["es.typed-array.every"],"core-js/stable/typed-array/fill":["es.typed-array.fill"],"core-js/stable/typed-array/filter":["es.typed-array.filter"],"core-js/stable/typed-array/find":["es.typed-array.find"],"core-js/stable/typed-array/find-index":["es.typed-array.find-index"],"core-js/stable/typed-array/float32-array":["es.object.to-string","es.typed-array.float32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/stable/typed-array/float64-array":["es.object.to-string","es.typed-array.float64-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/stable/typed-array/for-each":["es.typed-array.for-each"],"core-js/stable/typed-array/from":["es.typed-array.from"],"core-js/stable/typed-array/includes":["es.typed-array.includes"],"core-js/stable/typed-array/index-of":["es.typed-array.index-of"],"core-js/stable/typed-array/int16-array":["es.object.to-string","es.typed-array.int16-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/stable/typed-array/int32-array":["es.object.to-string","es.typed-array.int32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/stable/typed-array/int8-array":["es.object.to-string","es.typed-array.int8-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/stable/typed-array/iterator":["es.typed-array.iterator"],"core-js/stable/typed-array/join":["es.typed-array.join"],"core-js/stable/typed-array/keys":["es.typed-array.iterator"],"core-js/stable/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/stable/typed-array/map":["es.typed-array.map"],"core-js/stable/typed-array/of":["es.typed-array.of"],"core-js/stable/typed-array/reduce":["es.typed-array.reduce"],"core-js/stable/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/stable/typed-array/reverse":["es.typed-array.reverse"],"core-js/stable/typed-array/set":["es.typed-array.set"],"core-js/stable/typed-array/slice":["es.typed-array.slice"],"core-js/stable/typed-array/some":["es.typed-array.some"],"core-js/stable/typed-array/sort":["es.typed-array.sort"],"core-js/stable/typed-array/subarray":["es.typed-array.subarray"],"core-js/stable/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/stable/typed-array/to-string":["es.typed-array.to-string"],"core-js/stable/typed-array/uint16-array":["es.object.to-string","es.typed-array.uint16-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/stable/typed-array/uint32-array":["es.object.to-string","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/stable/typed-array/uint8-array":["es.object.to-string","es.typed-array.uint8-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/stable/typed-array/uint8-clamped-array":["es.object.to-string","es.typed-array.uint8-clamped-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string"],"core-js/stable/typed-array/values":["es.typed-array.iterator"],"core-js/stable/url":["web.url","web.url.to-json","web.url-search-params"],"core-js/stable/url-search-params":["web.url-search-params"],"core-js/stable/url/to-json":["web.url.to-json"],"core-js/stable/weak-map":["es.object.to-string","es.weak-map","web.dom-collections.iterator"],"core-js/stable/weak-set":["es.object.to-string","es.weak-set","web.dom-collections.iterator"],"core-js/stage":["es.map","esnext.aggregate-error","esnext.array.at","esnext.array.filter-out","esnext.array.find-last","esnext.array.find-last-index","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.unique-by","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.to-json","web.url-search-params"],"core-js/stage/0":["es.map","esnext.aggregate-error","esnext.array.at","esnext.array.filter-out","esnext.array.find-last","esnext.array.find-last-index","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.unique-by","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.to-json","web.url-search-params"],"core-js/stage/1":["es.map","esnext.aggregate-error","esnext.array.at","esnext.array.filter-out","esnext.array.find-last","esnext.array.find-last-index","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.unique-by","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of"],"core-js/stage/2":["esnext.aggregate-error","esnext.array.at","esnext.array.find-last","esnext.array.find-last-index","esnext.array.is-template-object","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.emplace","esnext.map.update-or-insert","esnext.map.upsert","esnext.object.has-own","esnext.promise.all-settled","esnext.promise.any","esnext.set.difference","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.symmetric-difference","esnext.set.union","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.metadata","esnext.symbol.replace-all","esnext.typed-array.at","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.weak-map.emplace","esnext.weak-map.upsert"],"core-js/stage/3":["esnext.aggregate-error","esnext.array.at","esnext.global-this","esnext.object.has-own","esnext.promise.all-settled","esnext.promise.any","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.replace-all","esnext.typed-array.at"],"core-js/stage/4":["esnext.aggregate-error","esnext.global-this","esnext.promise.all-settled","esnext.promise.any","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.replace-all"],"core-js/stage/pre":["es.map","esnext.aggregate-error","esnext.array.at","esnext.array.filter-out","esnext.array.find-last","esnext.array.find-last-index","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.unique-by","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.to-json","web.url-search-params"],"core-js/web":["web.dom-collections.for-each","web.dom-collections.iterator","web.immediate","web.queue-microtask","web.timers","web.url","web.url.to-json","web.url-search-params"],"core-js/web/dom-collections":["web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/web/immediate":["web.immediate"],"core-js/web/queue-microtask":["web.queue-microtask"],"core-js/web/timers":["web.timers"],"core-js/web/url":["web.url","web.url.to-json","web.url-search-params"],"core-js/web/url-search-params":["web.url-search-params"]},aV=sV,iV=new Set(["esnext.global-this","esnext.string.match-all"]),oV={};Object.keys(DG).forEach((function(e,t){oV[e]=t}));var uV=function(e,t,r,n){return void 0===r&&(r=t[0]),{name:r,pure:e,global:t.sort((function(e,t){return oV[e]-oV[t]})),exclude:n}},lV=function(e){return uV(null,[e].concat(hV))},cV=["es.array.iterator","web.dom-collections.iterator"],pV=["es.string.iterator"].concat(cV),dV=["es.object.to-string"].concat(cV),fV=["es.object.to-string"].concat(c(pV)),hV=["es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","es.object.to-string","es.array.iterator","es.array-buffer.slice"],mV={from:uV(null,["es.typed-array.from"]),of:uV(null,["es.typed-array.of"])},yV=["es.promise","es.object.to-string"],gV=[].concat(yV,c(pV)),vV=["es.map","esnext.map.delete-all","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.includes","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.reduce","esnext.map.some","esnext.map.update"].concat(c(fV)),bV=["es.set","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union"].concat(c(fV)),EV=["es.weak-map","esnext.weak-map.delete-all"].concat(c(fV)),xV=["es.weak-set","esnext.weak-set.add-all","esnext.weak-set.delete-all"].concat(c(fV)),DV=["web.url"].concat(c(fV)),AV={AggregateError:uV("aggregate-error",["esnext.aggregate-error"].concat(c(pV))),ArrayBuffer:uV(null,["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string"]),DataView:uV(null,["es.data-view","es.array-buffer.slice","es.object.to-string"]),Date:uV(null,["es.date.to-string"]),Float32Array:lV("es.typed-array.float32-array"),Float64Array:lV("es.typed-array.float64-array"),Int8Array:lV("es.typed-array.int8-array"),Int16Array:lV("es.typed-array.int16-array"),Int32Array:lV("es.typed-array.int32-array"),Uint8Array:lV("es.typed-array.uint8-array"),Uint8ClampedArray:lV("es.typed-array.uint8-clamped-array"),Uint16Array:lV("es.typed-array.uint16-array"),Uint32Array:lV("es.typed-array.uint32-array"),Map:uV("map/index",vV),Number:uV(null,["es.number.constructor"]),Observable:uV("observable/index",["esnext.observable","esnext.symbol.observable","es.object.to-string"].concat(c(fV))),Promise:uV("promise/index",yV),RegExp:uV(null,["es.regexp.constructor","es.regexp.exec","es.regexp.to-string"]),Set:uV("set/index",bV),Symbol:uV("symbol/index",["es.symbol","es.symbol.description","es.object.to-string"]),URL:uV("url/index",["web.url"].concat(c(DV))),URLSearchParams:uV("url-search-params/index",DV),WeakMap:uV("weak-map/index",EV),WeakSet:uV("weak-set/index",xV),clearImmediate:uV("clear-immediate",["web.immediate"]),compositeKey:uV("composite-key",["esnext.composite-key"]),compositeSymbol:uV("composite-symbol",["esnext.composite-symbol"]),fetch:uV(null,yV),globalThis:uV("global-this",["es.global-this"]),parseFloat:uV("parse-float",["es.parse-float"]),parseInt:uV("parse-int",["es.parse-int"]),queueMicrotask:uV("queue-microtask",["web.queue-microtask"]),setImmediate:uV("set-immediate",["web.immediate"]),setInterval:uV("set-interval",["web.timers"]),setTimeout:uV("set-timeout",["web.timers"])},wV={Array:{from:uV("array/from",["es.array.from","es.string.iterator"]),isArray:uV("array/is-array",["es.array.is-array"]),of:uV("array/of",["es.array.of"])},ArrayBuffer:{isView:uV(null,["es.array-buffer.is-view"])},Date:{now:uV("date/now",["es.date.now"])},JSON:{stringify:uV("json/stringify",[],"es.symbol")},Math:{DEG_PER_RAD:uV("math/deg-per-rad",["esnext.math.deg-per-rad"]),RAD_PER_DEG:uV("math/rad-per-deg",["esnext.math.rad-per-deg"]),acosh:uV("math/acosh",["es.math.acosh"]),asinh:uV("math/asinh",["es.math.asinh"]),atanh:uV("math/atanh",["es.math.atanh"]),cbrt:uV("math/cbrt",["es.math.cbrt"]),clamp:uV("math/clamp",["esnext.math.clamp"]),clz32:uV("math/clz32",["es.math.clz32"]),cosh:uV("math/cosh",["es.math.cosh"]),degrees:uV("math/degrees",["esnext.math.degrees"]),expm1:uV("math/expm1",["es.math.expm1"]),fround:uV("math/fround",["es.math.fround"]),fscale:uV("math/fscale",["esnext.math.fscale"]),hypot:uV("math/hypot",["es.math.hypot"]),iaddh:uV("math/iaddh",["esnext.math.iaddh"]),imul:uV("math/imul",["es.math.imul"]),imulh:uV("math/imulh",["esnext.math.imulh"]),isubh:uV("math/isubh",["esnext.math.isubh"]),log10:uV("math/log10",["es.math.log10"]),log1p:uV("math/log1p",["es.math.log1p"]),log2:uV("math/log2",["es.math.log2"]),radians:uV("math/radians",["esnext.math.radians"]),scale:uV("math/scale",["esnext.math.scale"]),seededPRNG:uV("math/seeded-prng",["esnext.math.seeded-prng"]),sign:uV("math/sign",["es.math.sign"]),signbit:uV("math/signbit",["esnext.math.signbit"]),sinh:uV("math/sinh",["es.math.sinh"]),tanh:uV("math/tanh",["es.math.tanh"]),trunc:uV("math/trunc",["es.math.trunc"]),umulh:uV("math/umulh",["esnext.math.umulh"])},Map:{from:uV(null,["esnext.map.from"].concat(c(vV))),groupBy:uV(null,["esnext.map.group-by"].concat(c(vV))),keyBy:uV(null,["esnext.map.key-by"].concat(c(vV))),of:uV(null,["esnext.map.of"].concat(c(vV)))},Number:{EPSILON:uV("number/epsilon",["es.number.epsilon"]),MAX_SAFE_INTEGER:uV("number/max-safe-integer",["es.number.max-safe-integer"]),MIN_SAFE_INTEGER:uV("number/min-safe-integer",["es.number.min-safe-integer"]),fromString:uV("number/from-string",["esnext.number.from-string"]),isFinite:uV("number/is-finite",["es.number.is-finite"]),isInteger:uV("number/is-integer",["es.number.is-integer"]),isNaN:uV("number/is-nan",["es.number.is-nan"]),isSafeInteger:uV("number/is-safe-integer",["es.number.is-safe-integer"]),parseFloat:uV("number/parse-float",["es.number.parse-float"]),parseInt:uV("number/parse-int",["es.number.parse-int"])},Object:{assign:uV("object/assign",["es.object.assign"]),create:uV("object/create",["es.object.create"]),defineProperties:uV("object/define-properties",["es.object.define-properties"]),defineProperty:uV("object/define-property",["es.object.define-property"]),entries:uV("object/entries",["es.object.entries"]),freeze:uV("object/freeze",["es.object.freeze"]),fromEntries:uV("object/from-entries",["es.object.from-entries","es.array.iterator"]),getOwnPropertyDescriptor:uV("object/get-own-property-descriptor",["es.object.get-own-property-descriptor"]),getOwnPropertyDescriptors:uV("object/get-own-property-descriptors",["es.object.get-own-property-descriptors"]),getOwnPropertyNames:uV("object/get-own-property-names",["es.object.get-own-property-names"]),getOwnPropertySymbols:uV("object/get-own-property-symbols",["es.symbol"]),getPrototypeOf:uV("object/get-prototype-of",["es.object.get-prototype-of"]),is:uV("object/is",["es.object.is"]),isExtensible:uV("object/is-extensible",["es.object.is-extensible"]),isFrozen:uV("object/is-frozen",["es.object.is-frozen"]),isSealed:uV("object/is-sealed",["es.object.is-sealed"]),keys:uV("object/keys",["es.object.keys"]),preventExtensions:uV("object/prevent-extensions",["es.object.prevent-extensions"]),seal:uV("object/seal",["es.object.seal"]),setPrototypeOf:uV("object/set-prototype-of",["es.object.set-prototype-of"]),values:uV("object/values",["es.object.values"])},Promise:{all:uV(null,gV),allSettled:uV(null,["es.promise.all-settled"].concat(c(gV))),any:uV(null,["esnext.promise.any"].concat(c(gV))),race:uV(null,gV),try:uV(null,["esnext.promise.try"].concat(c(gV)))},Reflect:{apply:uV("reflect/apply",["es.reflect.apply"]),construct:uV("reflect/construct",["es.reflect.construct"]),defineMetadata:uV("reflect/define-metadata",["esnext.reflect.define-metadata"]),defineProperty:uV("reflect/define-property",["es.reflect.define-property"]),deleteMetadata:uV("reflect/delete-metadata",["esnext.reflect.delete-metadata"]),deleteProperty:uV("reflect/delete-property",["es.reflect.delete-property"]),get:uV("reflect/get",["es.reflect.get"]),getMetadata:uV("reflect/get-metadata",["esnext.reflect.get-metadata"]),getMetadataKeys:uV("reflect/get-metadata-keys",["esnext.reflect.get-metadata-keys"]),getOwnMetadata:uV("reflect/get-own-metadata",["esnext.reflect.get-own-metadata"]),getOwnMetadataKeys:uV("reflect/get-own-metadata-keys",["esnext.reflect.get-own-metadata-keys"]),getOwnPropertyDescriptor:uV("reflect/get-own-property-descriptor",["es.reflect.get-own-property-descriptor"]),getPrototypeOf:uV("reflect/get-prototype-of",["es.reflect.get-prototype-of"]),has:uV("reflect/has",["es.reflect.has"]),hasMetadata:uV("reflect/has-metadata",["esnext.reflect.has-metadata"]),hasOwnMetadata:uV("reflect/has-own-metadata",["esnext.reflect.has-own-metadata"]),isExtensible:uV("reflect/is-extensible",["es.reflect.is-extensible"]),metadata:uV("reflect/metadata",["esnext.reflect.metadata"]),ownKeys:uV("reflect/own-keys",["es.reflect.own-keys"]),preventExtensions:uV("reflect/prevent-extensions",["es.reflect.prevent-extensions"]),set:uV("reflect/set",["es.reflect.set"]),setPrototypeOf:uV("reflect/set-prototype-of",["es.reflect.set-prototype-of"])},Set:{from:uV(null,["esnext.set.from"].concat(c(bV))),of:uV(null,["esnext.set.of"].concat(c(bV)))},String:{fromCodePoint:uV("string/from-code-point",["es.string.from-code-point"]),raw:uV("string/raw",["es.string.raw"])},Symbol:{asyncIterator:uV("symbol/async-iterator",["es.symbol.async-iterator"]),dispose:uV("symbol/dispose",["esnext.symbol.dispose"]),for:uV("symbol/for",[],"es.symbol"),hasInstance:uV("symbol/has-instance",["es.symbol.has-instance","es.function.has-instance"]),isConcatSpreadable:uV("symbol/is-concat-spreadable",["es.symbol.is-concat-spreadable","es.array.concat"]),iterator:uV("symbol/iterator",["es.symbol.iterator"].concat(c(fV))),keyFor:uV("symbol/key-for",[],"es.symbol"),match:uV("symbol/match",["es.symbol.match","es.string.match"]),observable:uV("symbol/observable",["esnext.symbol.observable"]),patternMatch:uV("symbol/pattern-match",["esnext.symbol.pattern-match"]),replace:uV("symbol/replace",["es.symbol.replace","es.string.replace"]),search:uV("symbol/search",["es.symbol.search","es.string.search"]),species:uV("symbol/species",["es.symbol.species","es.array.species"]),split:uV("symbol/split",["es.symbol.split","es.string.split"]),toPrimitive:uV("symbol/to-primitive",["es.symbol.to-primitive","es.date.to-primitive"]),toStringTag:uV("symbol/to-string-tag",["es.symbol.to-string-tag","es.object.to-string","es.math.to-string-tag","es.json.to-string-tag"]),unscopables:uV("symbol/unscopables",["es.symbol.unscopables"])},WeakMap:{from:uV(null,["esnext.weak-map.from"].concat(c(EV))),of:uV(null,["esnext.weak-map.of"].concat(c(EV)))},WeakSet:{from:uV(null,["esnext.weak-set.from"].concat(c(xV))),of:uV(null,["esnext.weak-set.of"].concat(c(xV)))},Int8Array:mV,Uint8Array:mV,Uint8ClampedArray:mV,Int16Array:mV,Uint16Array:mV,Int32Array:mV,Uint32Array:mV,Float32Array:mV,Float64Array:mV},CV={at:uV("instance/at",["esnext.string.at"]),anchor:uV(null,["es.string.anchor"]),big:uV(null,["es.string.big"]),bind:uV("instance/bind",["es.function.bind"]),blink:uV(null,["es.string.blink"]),bold:uV(null,["es.string.bold"]),codePointAt:uV("instance/code-point-at",["es.string.code-point-at"]),codePoints:uV("instance/code-points",["esnext.string.code-points"]),concat:uV("instance/concat",["es.array.concat"],void 0,["String"]),copyWithin:uV("instance/copy-within",["es.array.copy-within"]),description:uV(null,["es.symbol","es.symbol.description"]),endsWith:uV("instance/ends-with",["es.string.ends-with"]),entries:uV("instance/entries",dV),every:uV("instance/every",["es.array.every"]),exec:uV(null,["es.regexp.exec"]),fill:uV("instance/fill",["es.array.fill"]),filter:uV("instance/filter",["es.array.filter"]),finally:uV(null,["es.promise.finally"].concat(yV)),find:uV("instance/find",["es.array.find"]),findIndex:uV("instance/find-index",["es.array.find-index"]),fixed:uV(null,["es.string.fixed"]),flags:uV("instance/flags",["es.regexp.flags"]),flatMap:uV("instance/flat-map",["es.array.flat-map","es.array.unscopables.flat-map"]),flat:uV("instance/flat",["es.array.flat"]),fontcolor:uV(null,["es.string.fontcolor"]),fontsize:uV(null,["es.string.fontsize"]),forEach:uV("instance/for-each",["es.array.for-each","web.dom-collections.for-each"]),includes:uV("instance/includes",["es.array.includes","es.string.includes"]),indexOf:uV("instance/index-of",["es.array.index-of"]),italic:uV(null,["es.string.italics"]),join:uV(null,["es.array.join"]),keys:uV("instance/keys",dV),lastIndex:uV(null,["esnext.array.last-index"]),lastIndexOf:uV("instance/last-index-of",["es.array.last-index-of"]),lastItem:uV(null,["esnext.array.last-item"]),link:uV(null,["es.string.link"]),map:uV("instance/map",["es.array.map"]),match:uV(null,["es.string.match","es.regexp.exec"]),matchAll:uV("instance/match-all",["es.string.match-all"]),name:uV(null,["es.function.name"]),padEnd:uV("instance/pad-end",["es.string.pad-end"]),padStart:uV("instance/pad-start",["es.string.pad-start"]),reduce:uV("instance/reduce",["es.array.reduce"]),reduceRight:uV("instance/reduce-right",["es.array.reduce-right"]),repeat:uV("instance/repeat",["es.string.repeat"]),replace:uV(null,["es.string.replace","es.regexp.exec"]),replaceAll:uV("instance/replace-all",["esnext.string.replace-all"]),reverse:uV("instance/reverse",["es.array.reverse"]),search:uV(null,["es.string.search","es.regexp.exec"]),slice:uV("instance/slice",["es.array.slice"]),small:uV(null,["es.string.small"]),some:uV("instance/some",["es.array.some"]),sort:uV("instance/sort",["es.array.sort"]),splice:uV("instance/splice",["es.array.splice"]),split:uV(null,["es.string.split","es.regexp.exec"]),startsWith:uV("instance/starts-with",["es.string.starts-with"]),strike:uV(null,["es.string.strike"]),sub:uV(null,["es.string.sub"]),sup:uV(null,["es.string.sup"]),toFixed:uV(null,["es.number.to-fixed"]),toISOString:uV(null,["es.date.to-iso-string"]),toJSON:uV(null,["es.date.to-json","web.url.to-json"]),toPrecision:uV(null,["es.number.to-precision"]),toString:uV(null,["es.object.to-string","es.regexp.to-string","es.date.to-string"]),trim:uV("instance/trim",["es.string.trim"]),trimEnd:uV("instance/trim-end",["es.string.trim-end"]),trimLeft:uV("instance/trim-left",["es.string.trim-start"]),trimRight:uV("instance/trim-right",["es.string.trim-end"]),trimStart:uV("instance/trim-start",["es.string.trim-start"]),values:uV("instance/values",dV),__defineGetter__:uV(null,["es.object.define-getter"]),__defineSetter__:uV(null,["es.object.define-setter"]),__lookupGetter__:uV(null,["es.object.lookup-getter"]),__lookupSetter__:uV(null,["es.object.lookup-setter"])},SV=new Set(["es.object.to-string","es.object.define-getter","es.object.define-setter","es.object.lookup-getter","es.object.lookup-setter","es.regexp.exec"]),TV=t.types;function jV(e,t){var r,n,s=e.node.object;TV.isIdentifier(s)?(r=s,n=TV.cloneNode(s)):(r=e.scope.generateDeclaredUidIdentifier("context"),n=TV.assignmentExpression("=",TV.cloneNode(r),s)),e.replaceWith(TV.memberExpression(TV.callExpression(t,[n]),TV.identifier("call"))),e.parentPath.unshiftContainer("arguments",r)}function PV(e){return"core-js/modules/"+e+".js"}function IV(e,t,r){return t?t+"/core-js/"+e+r:"core-js-pure/features/"+e+".js"}var FV=t.types,kV=function(e,t){if(t(e))return!0;if(!e.startsWith("es."))return!1;var r="esnext."+e.slice(3);return!!DG[r]&&t(r)},OV=aG((function(e,t){var r=e.getUtils,n=e.method,s=e.shouldInjectPolyfill,a=e.createMetaResolver,i=e.debug,o=e.babel,u=t.version,l=void 0===u?3:u,c=t.proposals,p=t.shippedProposals,d=t["#__secret_key__@babel/runtime__compatibility"],h=(d=void 0===d?{}:d).useBabelRuntime,m=d.ext,y=void 0===m?".js":m,g=o.caller((function(e){return"babel-loader"===(null==e?void 0:e.name)})),v=a({global:AV,static:wV,instance:CV}),b=new Set(nV(l)),E=h?c?h+"/core-js":h+"/core-js-stable":c?"core-js-pure/features":"core-js-pure/stable";function x(e,t){return!!s(e)&&(i(e),t.injectGlobalImport(PV(e)),!0)}function D(e,t,r){void 0===r&&(r=!0);for(var n,s=f(e);!(n=s()).done;){var a=n.value;r?kV(a,(function(e){return x(e,t)})):x(a,t)}}function A(e,t,r,n){if(e.pure&&!(n&&e.exclude&&e.exclude.includes(n))&&kV(e.name,s))return r.injectDefaultImport(E+"/"+e.pure+y,t)}return{name:"corejs3",polyfills:DG,filterPolyfills:function(e){return!!b.has(e)&&(!(!c&&"entry-global"!==n)||(!(!p||!iV.has(e))||!e.startsWith("esnext.")))},entryGlobal:function(e,t,r){if("import"===e.kind){var n,a=("string"==typeof(n=e.source)&&(n=n.replace(/\\/g,"/").replace(/(\/(index)?)?(\.js)?$/i,"").toLowerCase()),hasOwnProperty.call(aV,n)&&aV[n]);a&&(1===a.length&&e.source===PV(a[0])&&s(a[0])?i(null):(D(a,t,!1),r.remove()))}},usageGlobal:function(e,t){var r=v(e);if(r){var n=r.desc.global;if("global"!==r.kind&&e.object&&"prototype"===e.placement){var s=e.object.toLowerCase();n=n.filter((function(e){return e.includes(s)||SV.has(e)}))}D(n,t)}},usagePure:function(e,t,r){if("in"!==e.kind){if(!r.parentPath.isUnaryExpression({operator:"delete"})){var n;if("property"===e.kind){if(!r.isMemberExpression())return;if(!r.isReferenced())return;if(n=r.parentPath.isCallExpression({callee:r.node}),"Symbol.iterator"===e.key){if(!s("es.symbol.iterator"))return;return void(n?0===r.parent.arguments.length?(r.parentPath.replaceWith(FV.callExpression(t.injectDefaultImport(IV("get-iterator",h,y),"getIterator"),[r.node.object])),r.skip()):jV(r,t.injectDefaultImport(IV("get-iterator-method",h,y),"getIteratorMethod")):r.replaceWith(FV.callExpression(t.injectDefaultImport(IV("get-iterator-method",h,y),"getIteratorMethod"),[r.node.object])))}}var a=v(e);if(a)if(h&&a.desc.pure&&"/index"===a.desc.pure.slice(-6)&&(a=Object.assign(Object.assign({},a),{},{desc:Object.assign(Object.assign({},a.desc),{},{pure:a.desc.pure.slice(0,-6)})})),"global"===a.kind){var i=A(a.desc,a.name,t);i&&r.replaceWith(i)}else if("static"===a.kind){var o=A(a.desc,a.name,t,e.object);o&&r.replaceWith(o)}else if("instance"===a.kind){var u=A(a.desc,a.name+"InstanceProperty",t,e.object);if(!u)return;n?jV(r,u):r.replaceWith(FV.callExpression(u,[r.node.object]))}}}else"Symbol.iterator"===e.key&&r.replaceWith(FV.callExpression(t.injectDefaultImport(IV("is-iterable",h,y),"isIterable"),[r.node.right]))},visitor:"usage-global"===n&&{CallExpression:function(e){if(e.get("callee").isImport()){var t=r(e);D(g?gV:yV,t)}},Function:function(e){e.node.async&&D(yV,r(e))},"ForOfStatement|ArrayPattern":function(e){D(pV,r(e))},SpreadElement:function(e){e.parentPath.isObjectExpression()||D(pV,r(e))},YieldExpression:function(e){e.node.delegate&&D(pV,r(e))}}}})),RV=aG((function(e,t){var r=e.debug,n=t["#__secret_key__@babel/runtime__compatibility"],s=(n=void 0===n?{}:n).useBabelRuntime,a=s?s+"/regenerator":"regenerator-runtime";return{name:"regenerator",polyfills:["regenerator-runtime"],usageGlobal:function(e,t){NV(e)&&(r("regenerator-runtime"),t.injectGlobalImport("regenerator-runtime/runtime.js"))},usagePure:function(e,t,r){NV(e)&&r.replaceWith(t.injectDefaultImport(a,"regenerator-runtime"))}}})),NV=function(e){return"global"===e.kind&&"regeneratorRuntime"===e.name},BV=EG.default||EG,_V=OV.default||OV,LV=RV.default||RV,MV="#__secret_key__@babel/runtime__compatibility";function UV(e){return!(null==e||!e.supportsStaticESM)}var GV,VV=SF((function(e,t,r){var n,s,a,i,o;e.assertVersion(7);var u,l=t.corejs,c=t.helpers,p=void 0===c||c,d=t.regenerator,f=void 0===d||d,h=t.useESModules,m=void 0!==h&&h,y=t.version,g=void 0===y?"7.0.0-beta.0":y,v=t.absoluteRuntime,b=void 0!==v&&v,E=!1;"object"==typeof l&&null!==l?(u=l.version,E=Boolean(l.proposals)):u=l;var x=!!u&&Number(u);if(![!1,2,3].includes(x))throw new Error("The `core-js` version must be false, 2 or 3, but got "+JSON.stringify(u)+".");if(E&&(!x||x<3))throw new Error("The 'proposals' option is only supported when using 'corejs: 3'");if("boolean"!=typeof f)throw new Error("The 'regenerator' option must be undefined, or a boolean.");if("boolean"!=typeof p)throw new Error("The 'helpers' option must be undefined, or a boolean.");if("boolean"!=typeof m&&"auto"!==m)throw new Error("The 'useESModules' option must be undefined, or a boolean, or 'auto'.");if("boolean"!=typeof b&&"string"!=typeof b)throw new Error("The 'absoluteRuntime' option must be undefined, a boolean, or a string.");if("string"!=typeof g)throw new Error("The 'version' option must be a version string.");var D=function(e,t){return!t||(BU.valid(t)&&(t="^"+t),!BU.intersects("<"+e,t)&&!BU.intersects(">=8.0.0",t))}("7.13.0",g);function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}if(A(t,"useBuiltIns"))throw t.useBuiltIns?new Error("The 'useBuiltIns' option has been removed. The @babel/runtime module now uses builtins by default."):new Error("The 'useBuiltIns' option has been removed. Use the 'corejs'option to polyfill with `core-js` via @babel/runtime.");if(A(t,"polyfill"))throw!1===t.polyfill?new Error("The 'polyfill' option has been removed. The @babel/runtime module now skips polyfilling by default."):new Error("The 'polyfill' option has been removed. Use the 'corejs'option to polyfill with `core-js` via @babel/runtime.");if(A(t,"moduleName"))throw new Error("The 'moduleName' option has been removed. @babel/transform-runtime no longer supports arbitrary runtimes. If you were using this to set an absolute path for Babel's standard runtimes, please use the 'absoluteRuntime' option.");var w="auto"===m?e.caller(UV):m,C=2===x,S=3===x,T=["interopRequireWildcard","interopRequireDefault"],j=function(e,t,r){if(!1===r)return e;throw new Error("The 'absoluteRuntime' option is not supported when using @babel/standalone.")}(S?"@babel/runtime-corejs3":C?"@babel/runtime-corejs2":"@babel/runtime",0,b);function P(e,t,r){return function(n,s,a){return Object.assign({},e(n,t,a),{inherits:r})}}function I(e){if(f)return function(t,r,n){return LV(t,e,n)}}var F=b?".js":"";return{name:"transform-runtime",inherits:C?P(BV,(n={method:"usage-pure"},n[MV]={runtimeVersion:g,useBabelRuntime:j,ext:F},n),I((s={method:"usage-pure"},s[MV]={useBabelRuntime:j},s))):S?P(_V,(a={method:"usage-pure",version:3,proposals:E},a[MV]={useBabelRuntime:j,ext:F},a),I((i={method:"usage-pure"},i[MV]={useBabelRuntime:j},i))):I((o={method:"usage-pure"},o[MV]={useBabelRuntime:j},o)),pre:function(e){if(p){e.set("helperGenerator",(function(r){if(!e.availableHelper||e.availableHelper(r,g)){var n=-1!==T.indexOf(r)&&!bE(e.path)?4:void 0,s=w&&"module"===e.path.node.sourceType?"helpers/esm":"helpers";return function(r,n,s,a){void 0===a&&(a=!1);var i=bE(e.path),o=r+":"+n+":"+(i||""),u=t.get(o);u?u=Ju(u):(u=function(e,t,r){return new EE(e).addDefault(t,r)}(e.path,r,{importedInterop:a&&D?"compiled":"uncompiled",nameHint:n,blockHoist:s}),t.set(o,u));return u}(j+"/"+s+"/"+r,r,n,!0)}}));var t=new Map}}}})),WV=SF((function(e){return e.assertVersion(7),{name:"transform-shorthand-properties",visitor:{ObjectMethod:function(e){var t=e.node;if("method"===t.kind){var r=xs(null,t.params,t.body,t.generator,t.async);r.returnType=t.returnType;var n=rc(t);R(n,{value:"__proto__"})?e.replaceWith(Bs(n,r,!0)):e.replaceWith(Bs(t.key,r,t.computed))}},ObjectProperty:function(e){var t=e.node;if(t.shorthand){var r=rc(t);R(r,{value:"__proto__"})?e.replaceWith(Bs(r,t.value,!0)):t.shorthand=!1}}}}})),HV=SF((function(e,t){var r,n;e.assertVersion(7);var s=null!=(r=e.assumption("iterableIsArray"))?r:t.loose,a=null!=(n=t.allowArrayLike)?n:e.assumption("arrayLikeIsIterable");function i(e,t){return s&&!F(e.argument,{name:"arguments"})?e.argument:t.toArray(e.argument,!0,a)}function o(e){for(var t=0;t<e.length;t++)if(be(e[t]))return!0;return!1}function u(e,t){return e.length?(t.push(ts(e)),[]):e}function l(e,t,r){for(var n,s=[],a=[],o=f(e);!(n=o()).done;){var l=n.value;if(be(l)){a=u(a,s);var c=i(l,t);m(c)&&c.elements.some((function(e){return null===e}))&&(c=ls(r.addHelper("arrayWithoutHoles"),[c])),s.push(c)}else a.push(l)}return u(a,s),s}return{name:"transform-spread",visitor:{ArrayExpression:function(e){var t=e.node,r=e.scope,n=t.elements;if(o(n)){var s=l(n,r,this),a=s[0];1!==s.length||a===n[0].argument?(m(a)?s.shift():a=ts([]),e.replaceWith(ls(Fs(a,Ds("concat")),s))):e.replaceWith(a)}},CallExpression:function(e){var t=e.node,r=e.scope,n=t.arguments;if(o(n)){var s=kR(e.get("callee"));if(s.isSuper())throw e.buildCodeFrameError("It's not possible to compile spread arguments in `super()` without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");var a,i=r.buildUndefinedNode();t.arguments=[];var u=(a=1===n.length&&"arguments"===n[0].argument.name?[n[0].argument]:l(n,r,this)).shift();a.length?t.arguments.push(ls(Fs(u,Ds("concat")),a)):t.arguments.push(u);var c=s.node;if(s.isMemberExpression()){var p=r.maybeGenerateMemoised(c.object);p?(c.object=rs("=",p,c.object),i=p):i=Ju(c.object)}t.callee=Fs(t.callee,Ds("apply")),Ee(i)&&(i=Ws()),t.arguments.unshift(Ju(i))}},NewExpression:function(e){var t=e.node,r=e.scope,n=t.arguments;if(o(n)){var s=l(n,r,this),a=s.shift();n=s.length?ls(Fs(a,Ds("concat")),s):a,e.replaceWith(ls(e.hub.addHelper("construct"),[t.callee,n]))}}}}})),XV=SF((function(e){return e.assertVersion(7),{name:"transform-sticky-regex",visitor:{RegExpLiteral:function(e){var t=e.node;t.flags.includes("y")&&e.replaceWith(ks(Ds("RegExp"),[Cs(t.pattern),Cs(t.flags)]))}}}})),qV=SF((function(e){return e.assertVersion(7),{name:"transform-strict-mode",visitor:{Program:function(e){for(var t=0,r=e.node.directives;t<r.length;t++){if("use strict"===r[t].value.value)return}e.unshiftContainer("directives",as(is("use strict")))}}}})),$V=SF((function(e,t){var r,n;e.assertVersion(7);var s=null!=(r=e.assumption("ignoreToPrimitiveHint"))?r:t.loose,a=null!=(n=e.assumption("mutableTemplateObject"))?n:t.loose,i="taggedTemplateLiteral";return a&&(i+="Loose"),{name:"transform-template-literals",visitor:{TaggedTemplateExpression:function(e){for(var t=e.node,r=t.quasi,n=[],s=[],a=!0,o=0,l=r.quasis;o<l.length;o++){var p=l[o].value,d=p.raw,f=p.cooked,h=null==f?e.scope.buildUndefinedNode():Cs(f);n.push(h),s.push(Cs(d)),d!==f&&(a=!1)}var m=[ts(n)];a||m.push(ts(s));var y=e.scope.generateUidIdentifier("templateObject");e.scope.getProgramParent().push({id:Ju(y)}),e.replaceWith(ls(t.tag,[bg.expression.ast(GV||(GV=u(["\n "," || (\n "," = ","(",")\n )\n "])),Ju(y),y,this.addHelper(i),m)].concat(c(r.expressions))))},TemplateLiteral:function(e){for(var t=[],r=e.get("expressions"),n=0,a=0,i=e.node.quasis;a<i.length;a++){var o=i[a];if(o.value.cooked&&t.push(Cs(o.value.cooked)),n<r.length){var u=r[n++].node;R(u,{value:""})||t.push(u)}}R(t[0])||s&&R(t[1])||t.unshift(Cs(""));var l,c=t[0];if(s)for(var p=1;p<t.length;p++)c=ns("+",c,t[p]);else t.length>1&&(l=!0,c=t.reduce((function(e,t){var r=Pt(t);return!r&&l&&(r=!0,l=!1),r&&E(e)?(e.arguments.push(t),e):ls(Fs(e,Ds("concat")),[t])})));e.replaceWith(c)}}}})),KV=SF((function(e){return e.assertVersion(7),{name:"transform-typeof-symbol",visitor:{Scope:function(e){var t=e.scope;t.getBinding("Symbol")&&t.rename("Symbol")},UnaryExpression:function(e){var t=e.node,r=e.parent;if("typeof"===t.operator){if(e.parentPath.isBinaryExpression()&&Br.indexOf(r.operator)>=0){var n=e.getOpposite();if(n.isLiteral()&&"symbol"!==n.node.value&&"object"!==n.node.value)return}var s=e.findParent((function(e){var t;if(e.isFunction())return"@babel/helpers - typeof"===(null==(t=e.get("body.directives.0"))?void 0:t.node.value.value)}));if(!s){var a=this.addHelper("typeof");if(!(s=e.findParent((function(e){return e.isVariableDeclarator()&&e.node.id===a||e.isFunctionDeclaration()&&e.node.id&&e.node.id.name===a.name})))){var i=ls(a,[t.argument]),o=e.get("argument");if(o.isIdentifier()&&!e.scope.hasBinding(o.node.name,!0)){var u=qs("typeof",Ju(t.argument));e.replaceWith(ps(ns("===",u,Cs("undefined")),Cs("undefined"),i))}else e.replaceWith(i)}}}}}}}));function zV(e,t){var r=e.node;if(r.const)throw e.buildCodeFrameError("'const' enums are not supported.");if(r.declare)e.remove();else{var n=r.id.name,s=function(e,t,r){var n=function(e,t){var r=Object.create(null),n=-1;return e.node.members.map((function(s){var a,i=t.isIdentifier(s.id)?s.id.name:s.id.value,o=s.initializer;if(o){var u=function(e,t){return r(e);function r(e){switch(e.type){case"StringLiteral":return e.value;case"UnaryExpression":return n(e);case"BinaryExpression":return s(e);case"NumericLiteral":return e.value;case"ParenthesizedExpression":return r(e.expression);case"Identifier":return t[e.name];case"TemplateLiteral":if(1===e.quasis.length)return e.quasis[0].value.cooked;default:return}}function n(e){var t=e.argument,n=e.operator,s=r(t);if(void 0!==s)switch(n){case"+":return s;case"-":return-s;case"~":return~s;default:return}}function s(e){var t=r(e.left);if(void 0!==t){var n=r(e.right);if(void 0!==n)switch(e.operator){case"|":return t|n;case"&":return t&n;case">>":return t>>n;case">>>":return t>>>n;case"<<":return t<<n;case"^":return t^n;case"*":return t*n;case"/":return t/n;case"+":return t+n;case"-":return t-n;case"%":return t%n;default:return}}}}(o,r);void 0!==u?(r[i]=u,"number"==typeof u?(a=t.numericLiteral(u),n=u):(gE("string"==typeof u),a=t.stringLiteral(u),n=void 0)):(a=o,n=void 0)}else{if(void 0===n)throw e.buildCodeFrameError("Enum member must have initializer.");n++,a=t.numericLiteral(n),r[i]=n}return[i,a]}))}(e,t).map((function(e){var n=l(e,2),s=n[0],a=n[1];return function(e,t){return(e?eW:tW)(t)}(t.isStringLiteral(a),{ENUM:t.cloneNode(r),NAME:s,VALUE:a})}));return ZV({ID:t.cloneNode(r),ASSIGNMENTS:n})}(e,t,r.id);switch(e.parent.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":if(e.insertAfter(s),function e(t){if(t.isExportDeclaration())return e(t.parentPath);return!!t.getData(n)||(t.setData(n,!0),!1)}(e.parentPath))e.remove();else{var a=t.isProgram(e.parent);e.scope.registerDeclaration(e.replaceWith(function(e,t,r){return t.variableDeclaration(r,[t.variableDeclarator(e)])}(r.id,t,a?"var":"let"))[0])}break;default:throw new Error("Unexpected enum parent '"+e.parent.type)}}}var JV,YV,QV,ZV=bg("\n (function (ID) {\n ASSIGNMENTS;\n })(ID || (ID = {}));\n"),eW=bg('\n ENUM["NAME"] = VALUE;\n'),tW=bg('\n ENUM[ENUM["NAME"] = VALUE] = "NAME";\n');function rW(e,t,r){if(e.node.declare||"StringLiteral"===e.node.id.type)e.remove();else{if(!r)throw e.hub.file.buildCodeFrameError(e.node.id,"Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");var n=e.node.id.name,s=iW(e,t,t.cloneDeep(e.node)),a=e.scope.hasOwnBinding(n);"ExportNamedDeclaration"===e.parent.type?a?e.parentPath.replaceWith(s):(e.parentPath.insertAfter(s),e.replaceWith(nW(t,n)),e.scope.registerDeclaration(e.parentPath)):a?e.replaceWith(s):e.scope.registerDeclaration(e.replaceWithMultiple([nW(t,n),s])[0])}}function nW(e,t){return e.variableDeclaration("let",[e.variableDeclarator(e.identifier(t))])}function sW(e,t,r){return e.memberExpression(e.identifier(t),e.identifier(r))}function aW(e,t,r){if("const"!==e.kind)throw r.file.buildCodeFrameError(e,"Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");var n=e.declarations;if(n.every((function(e){return F(e.id)}))){for(var s,a=f(n);!(s=a()).done;){var i=s.value;i.init=rs("=",sW(Pc,t,i.id.name),i.init)}return[e]}var o=cc(e),u=[];for(var l in o)u.push(rs("=",sW(Pc,t,l),Ju(o[l])));return[e,ys(Ms(u))]}function iW(e,t,r,n){for(var s=new Set,a=r.id,i=e.scope.generateUid(a.name),o=r.body.body,l=0;l<o.length;l++){var p=o[l];switch(p.type){case"TSModuleDeclaration":var d=iW(e,t,p),f=p.id.name;s.has(f)?o[l]=d:(s.add(f),o.splice(l++,1,nW(t,f),d));continue;case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":s.add(p.id.name);continue;case"VariableDeclaration":for(var h in t.getBindingIdentifiers(p))s.add(h);continue;default:continue;case"ExportNamedDeclaration":}switch(p.declaration.type){case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":var m=p.declaration.id.name;s.add(m),o.splice(l++,1,p.declaration,t.expressionStatement(t.assignmentExpression("=",sW(t,i,m),t.identifier(m))));break;case"VariableDeclaration":var y=aW(p.declaration,i,e.hub);o.splice.apply(o,[l,y.length].concat(c(y))),l+=y.length-1;break;case"TSModuleDeclaration":var g=iW(e,t,p.declaration,t.identifier(i)),v=p.declaration.id.name;s.has(v)?o[l]=g:(s.add(v),o.splice(l++,1,nW(t,v),g))}}var b=t.objectExpression([]);if(n){var E=t.memberExpression(n,a);b=bg.expression.ast(JV||(JV=u(["\n "," ||\n ("," = ",")\n "])),t.cloneNode(E),t.cloneNode(E),b)}return bg.statement.ast(YV||(YV=u(["\n (function (",") {\n ","\n })("," || ("," = ","));\n "])),t.identifier(i),o,a,t.cloneNode(a),b)}function oW(e){switch(e.parent.type){case"TSTypeReference":case"TSQualifiedName":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;case"ExportSpecifier":return"type"===e.parentPath.parent.exportKind;default:return!1}}var uW=new WeakMap,lW=new WeakMap,cW=new WeakSet;function pW(e,t){var r=e.find((function(e){return e.isProgram()})).node;return!e.scope.hasOwnBinding(t)&&(!!uW.get(r).has(t)||(console.warn('The exported identifier "'+t+'" is not declared in Babel\'s scope tracker\nas a JavaScript value binding, and "@babel/plugin-transform-typescript"\nnever encountered it as a TypeScript type declaration.\nIt will be treated as a JavaScript value.\n\nThis problem is likely caused by another plugin injecting\n"'+t+'" without registering it in the scope tracker. If you are the author\n of that plugin, please use "scope.registerDeclaration(declarationPath)".'),!1))}function dW(e,t){uW.get(e.path.node).add(t)}var fW=SF((function(e,t){e.assertVersion(7);var r=/\*?\s*@jsx((?:Frag)?)\s+([^\s]+)/,n=t.allowNamespaces,s=void 0===n||n,a=t.jsxPragma,i=void 0===a?"React.createElement":a,o=t.jsxPragmaFrag,c=void 0===o?"React.Fragment":o,p=t.onlyRemoveTypeImports,d=void 0!==p&&p,h=t.allowDeclareFields,m=void 0!==h&&h,y=function(e){var t=e.node;if(!m&&t.declare)throw e.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(t.declare){if(t.value)throw e.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");t.decorators||e.remove()}else if(t.definite){if(t.value)throw e.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");m||t.decorators||e.remove()}else m||t.value||t.decorators||at(t)||e.remove();t.accessibility&&(t.accessibility=null),t.abstract&&(t.abstract=null),t.readonly&&(t.readonly=null),t.optional&&(t.optional=null),t.typeAnnotation&&(t.typeAnnotation=null),t.definite&&(t.definite=null),t.declare&&(t.declare=null),t.override&&(t.override=null)},g=function(e){var t=e.node;t.accessibility&&(t.accessibility=null),t.abstract&&(t.abstract=null),t.optional&&(t.optional=null),t.override&&(t.override=null)},v=function(e,t){e.node.accessibility&&(e.node.accessibility=null);for(var r,n=[],s=f(e.node.params);!(r=s()).done;){var a=r.value;"TSParameterProperty"!==a.type||cW.has(a.parameter)||(cW.add(a.parameter),n.push(a.parameter))}if(n.length){var i=n.map((function(t){var r;if(F(t))r=t;else{if(!re(t)||!F(t.left))throw e.buildCodeFrameError("Parameter properties can not be destructuring patterns.");r=t.left}return bg.statement.ast(QV||(QV=u(["\n this."," = ",""])),Ju(r),Ju(r))}));aO(t,e,i)}};return{name:"transform-typescript",inherits:ek,visitor:{Pattern:b,Identifier:b,RestElement:b,Program:{enter:function(e,t){var n=t.file,s=null,a=null;if(uW.has(e.node)||uW.set(e.node,new Set),n.ast.comments)for(var o,u=f(n.ast.comments);!(o=u()).done;){var p=o.value,h=r.exec(p.value);h&&(h[1]?a=h[2]:s=h[2])}var m=s||i;if(m){var y=m.split(".");m=l(y,1)[0]}var g=a||c;if(g){var v=g.split(".");g=l(v,1)[0]}for(var b,x=f(e.get("body"));!(b=x()).done;){var D=b.value;if(D.isImportDeclaration()){if(lW.has(t.file.ast.program)||lW.set(t.file.ast.program,!0),"type"===D.node.importKind){D.remove();continue}if(d)lW.set(e.node,!1);else{if(0===D.node.specifiers.length){lW.set(e.node,!1);continue}for(var A,w=!0,C=[],S=f(D.node.specifiers);!(A=S()).done;){var T=A.value,j=D.scope.getBinding(T.local.name);j&&E({binding:j,programPath:e,pragmaImportName:m,pragmaFragImportName:g})?C.push(j.path):(w=!1,lW.set(e.node,!1))}if(w)D.remove();else for(var P,I=f(C);!(P=I()).done;){P.value.remove()}}}else if(D.isExportDeclaration()&&(D=D.get("declaration")),D.isVariableDeclaration({declare:!0}))for(var F=0,k=Object.keys(D.getBindingIdentifiers());F<k.length;F++){var O=k[F];dW(e.scope,O)}else(D.isTSTypeAliasDeclaration()||D.isTSDeclareFunction()||D.isTSInterfaceDeclaration()||D.isClassDeclaration({declare:!0})||D.isTSEnumDeclaration({declare:!0})||D.isTSModuleDeclaration({declare:!0})&&D.get("id").isIdentifier())&&dW(e.scope,D.node.id.name)}},exit:function(e){"module"===e.node.sourceType&&lW.get(e.node)&&e.pushContainer("body",ia())}},ExportNamedDeclaration:function(e,t){lW.has(t.file.ast.program)||lW.set(t.file.ast.program,!0),"type"!==e.node.exportKind?!e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every((function(t){var r=t.local;return pW(e,r.name)}))?e.remove():lW.set(t.file.ast.program,!1):e.remove()},ExportSpecifier:function(e){!e.parent.source&&pW(e,e.node.local.name)&&e.remove()},ExportDefaultDeclaration:function(e,t){lW.has(t.file.ast.program)||lW.set(t.file.ast.program,!0),F(e.node.declaration)&&pW(e,e.node.declaration.name)?e.remove():lW.set(t.file.ast.program,!1)},TSDeclareFunction:function(e){e.remove()},TSDeclareMethod:function(e){e.remove()},VariableDeclaration:function(e){e.node.declare&&e.remove()},VariableDeclarator:function(e){var t=e.node;t.definite&&(t.definite=null)},TSIndexSignature:function(e){e.remove()},ClassDeclaration:function(e){e.node.declare&&e.remove()},Class:function(e){var t=e.node;t.typeParameters&&(t.typeParameters=null),t.superTypeParameters&&(t.superTypeParameters=null),t.implements&&(t.implements=null),t.abstract&&(t.abstract=null),e.get("body.body").forEach((function(t){t.isClassMethod()||t.isClassPrivateMethod()?"constructor"===t.node.kind?v(t,e):g(t):(t.isClassProperty()||t.isClassPrivateProperty())&&y(t)}))},Function:function(e){var t=e.node,r=e.scope;t.typeParameters&&(t.typeParameters=null),t.returnType&&(t.returnType=null);var n=t.params;n.length>0&&F(n[0],{name:"this"})&&n.shift();for(var s,a=f(e.get("params"));!(s=a()).done;){var i=s.value;"TSParameterProperty"===i.type&&(i.replaceWith(i.get("parameter")),r.registerBinding("param",i))}},TSModuleDeclaration:function(e){rW(e,Pc,s)},TSInterfaceDeclaration:function(e){e.remove()},TSTypeAliasDeclaration:function(e){e.remove()},TSEnumDeclaration:function(e){zV(e,Pc)},TSImportEqualsDeclaration:function(e){throw e.buildCodeFrameError("`import =` is not supported by @babel/plugin-transform-typescript\nPlease consider using `import <moduleName> from '<moduleName>';` alongside Typescript's --allowSyntheticDefaultImports option.")},TSExportAssignment:function(e){throw e.buildCodeFrameError("`export =` is not supported by @babel/plugin-transform-typescript\nPlease consider using `export <value>;`.")},TSTypeAssertion:function(e){e.replaceWith(e.node.expression)},TSAsExpression:function(e){var t=e.node;do{t=t.expression}while(ht(t));e.replaceWith(t)},TSNonNullExpression:function(e){e.replaceWith(e.node.expression)},CallExpression:function(e){e.node.typeParameters=null},OptionalCallExpression:function(e){e.node.typeParameters=null},NewExpression:function(e){e.node.typeParameters=null},JSXOpeningElement:function(e){e.node.typeParameters=null},TaggedTemplateExpression:function(e){e.node.typeParameters=null}}};function b(e){var t=e.node;t.typeAnnotation&&(t.typeAnnotation=null),F(t)&&t.optional&&(t.optional=null)}function E(e){for(var t,r=e.binding,n=e.programPath,s=e.pragmaImportName,a=e.pragmaFragImportName,i=f(r.referencePaths);!(t=i()).done;){if(!oW(t.value))return!1}if(r.identifier.name!==s&&r.identifier.name!==a)return!0;var o=!1;return n.traverse({"JSXElement|JSXFragment":function(e){o=!0,e.stop()}}),!o}})),hW=SF((function(e){e.assertVersion(7);var t=/[\ud800-\udfff]/g,r=/(\\+)u\{([0-9a-fA-F]+)\}/g;function n(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return"\\u"+t}function s(e,t,r){if(t.length%2==0)return e;var s=String.fromCodePoint(parseInt(r,16)),a=t.slice(0,-1)+n(s.charCodeAt(0));return 1===s.length?a:a+n(s.charCodeAt(1))}function a(e){return e.replace(r,s)}return{name:"transform-unicode-escapes",manipulateOptions:function(e){var t,r=e.generatorOpts;r.jsescOption||(r.jsescOption={}),null!=(t=r.jsescOption).minimal||(t.minimal=!1)},visitor:{Identifier:function(e){var r=e.node,n=e.key,s=r.name,a=s.replace(t,(function(e){return"_u"+e.charCodeAt(0).toString(16)}));if(s!==a){var i=yc(Cs(s),r);if("key"!==n){var o=e.parentPath,u=e.scope;if(o.isMemberExpression({property:r})||o.isOptionalMemberExpression({property:r}))return o.node.computed=!0,void e.replaceWith(i);if(!u.getBinding(s))throw e.buildCodeFrameError("Can't reference '"+s+"' as a bare identifier");u.rename(s,u.generateUid(a))}else e.replaceWith(i)}},"StringLiteral|DirectiveLiteral":function(e){var t=e.node.extra;null!=t&&t.raw&&(t.raw=a(t.raw))},TemplateElement:function(e){var t=e.node,n=e.parentPath,s=t.value,i=function(e){for(var t;t=r.exec(e);)if(t[1].length%2!=0)return r.lastIndex=0,t[0];return null}(s.raw);if(i){if(n.parentPath.isTaggedTemplateExpression())throw e.buildCodeFrameError("Can't replace Unicode escape '"+i+"' inside tagged template literals. You can enable '@babel/plugin-transform-template-literals' to compile them to classic strings.");s.raw=a(s.raw)}}}}})),mW=SF((function(e){return e.assertVersion(7),kN({name:"transform-unicode-regex",feature:"unicodeFlag"})})),yW={"external-helpers":FF,"syntax-async-generators":OF,"syntax-class-properties":RF,"syntax-class-static-block":NF,"syntax-decimal":BF,"syntax-decorators":_F,"syntax-do-expressions":LF,"syntax-export-default-from":MF,"syntax-flow":UF,"syntax-function-bind":GF,"syntax-function-sent":VF,"syntax-module-blocks":WF,"syntax-import-meta":HF,"syntax-jsx":XF,"syntax-import-assertions":qF,"syntax-object-rest-spread":$F,"syntax-optional-catch-binding":KF,"syntax-pipeline-operator":JF,"syntax-record-and-tuple":YF,"syntax-top-level-await":QF,"syntax-typescript":ek,"proposal-async-generator-functions":Sk,"proposal-class-properties":xO,"proposal-class-static-block":AO,"proposal-decorators":BO,"proposal-do-expressions":_O,"proposal-dynamic-import":UO,"proposal-export-default-from":GO,"proposal-export-namespace-from":WO,"proposal-function-bind":HO,"proposal-function-sent":XO,"proposal-json-strings":$O,"proposal-logical-assignment-operators":zO,"proposal-nullish-coalescing-operator":YO,"proposal-numeric-separator":eR,"proposal-object-rest-spread":TR,"proposal-optional-catch-binding":PR,"proposal-optional-chaining":HR,"proposal-pipeline-operator":KR,"proposal-private-methods":zR,"proposal-private-property-in-object":YR,"proposal-throw-expressions":ZR,"proposal-unicode-property-regex":RN,"transform-async-to-generator":NN,"transform-arrow-functions":BN,"transform-block-scoped-functions":_N,"transform-block-scoping":VN,"transform-classes":dB,"transform-computed-properties":fB,"transform-destructuring":hB,"transform-dotall-regex":mB,"transform-duplicate-keys":yB,"transform-exponentiation-operator":bB,"transform-flow-comments":EB,"transform-flow-strip-types":xB,"transform-for-of":PB,"transform-function-name":IB,"transform-instanceof":FB,"transform-jscript":kB,"transform-literals":OB,"transform-member-expression-literals":RB,"transform-modules-amd":HB,"transform-modules-commonjs":ZB,"transform-modules-systemjs":s_,"transform-modules-umd":o_,"transform-named-capturing-groups-regex":u_,"transform-new-target":l_,"transform-object-assign":c_,"transform-object-super":p_,"transform-object-set-prototype-of-to-assign":d_,"transform-parameters":wR,"transform-property-literals":f_,"transform-property-mutators":v_,"transform-proto-to-assign":b_,"transform-react-constant-elements":E_,"transform-react-display-name":x_,"transform-react-inline-elements":A_,"transform-react-jsx":B_,"transform-react-jsx-compat":__,"transform-react-jsx-development":L_,"transform-react-jsx-self":M_,"transform-react-jsx-source":G_,"transform-regenerator":mM,"transform-reserved-words":yM,"transform-runtime":VV,"transform-shorthand-properties":WV,"transform-spread":HV,"transform-sticky-regex":XV,"transform-strict-mode":qV,"transform-template-literals":$V,"transform-typeof-symbol":KV,"transform-typescript":fW,"transform-unicode-escapes":hW,"transform-unicode-regex":mW},gW=function(e,t){var r=!1,n="commonjs",s=!1;void 0!==t&&(void 0!==t.loose&&(r=t.loose),void 0!==t.modules&&(n=t.modules),void 0!==t.spec&&(s=t.spec));var a={loose:r};return{plugins:[[$V,{loose:r,spec:s}],OB,IB,[BN,{spec:s}],_N,[dB,a],p_,WV,yB,[fB,a],[PB,a],XV,hW,mW,[HV,a],[wR,a],[hB,a],VN,KV,FB,("commonjs"===n||"cjs"===n)&&[ZB,a],"systemjs"===n&&[s_,a],"amd"===n&&[HB,a],"umd"===n&&[o_,a],[mM,{async:!1,asyncGenerators:!1}]].filter(Boolean)}},vW=function(e,t){var r=!1;return void 0!==t&&void 0!==t.loose&&(r=t.loose),{plugins:[qF,HF,QF,WO,zO,[HR,{loose:r}],[YO,{loose:r}],[xO,{loose:r}],$O,eR,[zR,{loose:r}]]}},bW=function(e,t){void 0===t&&(t={});var r=t,n=r.loose,s=void 0!==n&&n,a=r.useBuiltIns,i=void 0!==a&&a,o=r.decoratorsLegacy,u=void 0!==o&&o,l=r.decoratorsBeforeExport;return{presets:[[vW,{loose:s,useBuiltIns:i}]],plugins:[AO,[BO,{legacy:u,decoratorsBeforeExport:l}],XO,YR,ZR]}},EW=function(e,t){void 0===t&&(t={});var r=t,n=r.loose,s=void 0!==n&&n,a=r.useBuiltIns,i=void 0!==a&&a,o=r.decoratorsLegacy,u=void 0!==o&&o,l=r.decoratorsBeforeExport,c=r.pipelineProposal,p=void 0===c?"minimal":c,d=r.recordAndTupleSyntax;return{presets:[[bW,{loose:s,useBuiltIns:i,decoratorsLegacy:u,decoratorsBeforeExport:l}]],plugins:[BF,[YF,{syntaxType:void 0===d?"hash":d}],WF,GO,[KR,{proposal:p}],_O]}},xW=["transform-typeof-symbol"];var DW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-async-generators",manipulateOptions:function(e,t){t.plugins.push("asyncGenerators")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-async-generators/lib"),AW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-class-properties",manipulateOptions:function(e,t){t.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-class-properties/lib"),wW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-dynamic-import",manipulateOptions:function(e,t){t.plugins.push("dynamicImport")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-dynamic-import/lib"),CW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-export-namespace-from",manipulateOptions:function(e,t){t.plugins.push("exportNamespaceFrom")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-export-namespace-from/lib"),SW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-json-strings",manipulateOptions:function(e,t){t.plugins.push("jsonStrings")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-json-strings/lib"),TW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-logical-assignment-operators",manipulateOptions:function(e,t){t.plugins.push("logicalAssignment")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-logical-assignment-operators/lib"),jW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-nullish-coalescing-operator",manipulateOptions:function(e,t){t.plugins.push("nullishCoalescingOperator")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib"),PW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-numeric-separator",manipulateOptions:function(e,t){t.plugins.push("numericSeparator")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-numeric-separator/lib"),IW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-object-rest-spread",manipulateOptions:function(e,t){t.plugins.push("objectRestSpread")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-object-rest-spread/lib"),FW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-optional-catch-binding",manipulateOptions:function(e,t){t.plugins.push("optionalCatchBinding")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-optional-catch-binding/lib"),kW=zt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,kF.declare)((function(e){return e.assertVersion(7),{name:"syntax-optional-chaining",manipulateOptions:function(e,t){t.plugins.push("optionalChaining")}}}));t.default=r}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/plugin-syntax-optional-chaining/lib"),OW=zt((function(e,t){t.__esModule=!0,t.default=void 0;var r={allowInsertArrow:!1,specCompliant:!1};t.default=function(e){var t=e.types;return{name:"transform-async-arrows-in-class",visitor:{ArrowFunctionExpression:function(e){e.node.async&&e.findParent(t.isClassMethod)&&e.arrowFunctionToExpression(r)}}}},e.exports=t.default}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/preset-modules/lib/plugins/transform-async-arrows-in-class"),RW=zt((function(e,t){t.__esModule=!0,t.default=void 0;t.default=function(e){var t=e.types,r=function(e){return"params"===e.parentKey&&e.parentPath&&t.isArrowFunctionExpression(e.parentPath)};return{name:"transform-edge-default-parameters",visitor:{AssignmentPattern:function(e){e.find(r)&&e.parent.shorthand&&(e.parent.shorthand=!1,(e.parent.extra||{}).shorthand=!1,e.scope.rename(e.parent.key.name))}}}},e.exports=t.default}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/preset-modules/lib/plugins/transform-edge-default-parameters"),NW=zt((function(e,t){t.__esModule=!0,t.default=void 0;t.default=function(e){var t=e.types;return{name:"transform-edge-function-name",visitor:{FunctionExpression:{exit:function(e){if(!e.node.id&&t.isIdentifier(e.parent.id)){var r=t.cloneNode(e.parent.id),n=e.scope.getBinding(r.name);(null==n?void 0:n.constantViolations.length)&&e.scope.rename(r.name),e.node.id=r}}}}}},e.exports=t.default}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/preset-modules/lib/plugins/transform-edge-function-name"),BW=zt((function(e,t){t.__esModule=!0,t.default=void 0;t.default=function(e){var t=e.types;return{name:"transform-tagged-template-caching",visitor:{TaggedTemplateExpression:function(e,r){var n=r.get("processed");if(n||(n=new Map,r.set("processed",n)),n.has(e.node))return e.skip();var s=e.node.quasi.expressions,a=r.get("identity");a||(a=e.scope.getProgramParent().generateDeclaredUidIdentifier("_"),r.set("identity",a),e.scope.getBinding(a.name).path.get("init").replaceWith(t.arrowFunctionExpression([t.identifier("t")],t.identifier("t"))));var i=t.taggedTemplateExpression(a,t.templateLiteral(e.node.quasi.quasis,s.map((function(){return t.numericLiteral(0)}))));n.set(i,!0);var o=e.scope.getProgramParent().generateDeclaredUidIdentifier("t");e.scope.getBinding(o.name).path.parent.kind="let";var u=t.logicalExpression("||",o,t.assignmentExpression("=",o,i)),l=t.callExpression(e.node.tag,[u].concat(c(s)));e.replaceWith(l)}}}},e.exports=t.default}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/preset-modules/lib/plugins/transform-tagged-template-caching"),_W=zt((function(e,t){t.__esModule=!0,t.default=function(e){var t=e.types;return{name:"transform-safari-block-shadowing",visitor:{VariableDeclarator:function(e){var r=e.parent.kind;if("let"===r||"const"===r){var n=e.scope.block;if(!t.isFunction(n)&&!t.isProgram(n))for(var s=t.getOuterBindingIdentifiers(e.node.id),a=0,i=Object.keys(s);a<i.length;a++){var o=i[a],u=e.scope;if(u.hasOwnBinding(o))for(;u=u.parent;){if(u.hasOwnBinding(o)){e.scope.rename(o);break}if(t.isFunction(u.block)||t.isProgram(u.block))break}}}}}}},e.exports=t.default}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/preset-modules/lib/plugins/transform-safari-block-shadowing"),LW=zt((function(e,t){function r(e){if(e.isVariableDeclaration()){var t=e.getFunctionParent(),r=e.node.declarations[0].id.name;t&&t.scope.hasOwnBinding(r)&&"param"===t.scope.getOwnBinding(r).kind&&e.scope.rename(r)}}t.__esModule=!0,t.default=void 0;t.default=function(){return{name:"transform-safari-for-shadowing",visitor:{ForXStatement:function(e){r(e.get("left"))},ForStatement:function(e){r(e.get("init"))}}}},e.exports=t.default}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/@babel/preset-modules/lib/plugins/transform-safari-for-shadowing");var MW=SF((function(e){e.assertVersion(7);var t=e.assumption("noDocumentAll"),r=e.assumption("pureGetters");return{name:"bugfix-v8-spread-parameters-in-optional-chaining",visitor:{"OptionalCallExpression|OptionalMemberExpression":function(e){(function(e){for(var t,r,n=e,s=[];n.isOptionalMemberExpression()||n.isOptionalCallExpression();){var a=n.node;s.push(a),n.isOptionalMemberExpression()?n=kR(n.get("object")):n.isOptionalCallExpression()&&(n=kR(n.get("callee")))}for(var i=0;i<s.length;i++){var o=s[i];if(Pe(o)&&(r=void 0,(r=(t=o.arguments).findIndex((function(e){return be(e)})))>=0&&r!==t.length-1)){if(o.optional)return!0;if(je(s[i+1],{optional:!0}))return!0}}return!1})(e)&&_R(e,{noDocumentAll:t,pureGetters:r})}}}})),UW={"bugfix/transform-async-arrows-in-class":function(){return OW},"bugfix/transform-edge-default-parameters":function(){return RW},"bugfix/transform-edge-function-name":function(){return NW},"bugfix/transform-safari-block-shadowing":function(){return _W},"bugfix/transform-safari-for-shadowing":function(){return LW},"bugfix/transform-tagged-template-caching":function(){return BW},"bugfix/transform-v8-spread-parameters-in-optional-chaining":function(){return MW},"proposal-async-generator-functions":function(){return Sk},"proposal-class-properties":function(){return xO},"proposal-class-static-block":function(){return AO},"proposal-dynamic-import":function(){return UO},"proposal-export-namespace-from":function(){return WO},"proposal-json-strings":function(){return $O},"proposal-logical-assignment-operators":function(){return zO},"proposal-nullish-coalescing-operator":function(){return YO},"proposal-numeric-separator":function(){return eR},"proposal-object-rest-spread":function(){return TR},"proposal-optional-catch-binding":function(){return PR},"proposal-optional-chaining":function(){return HR},"proposal-private-methods":function(){return zR},"proposal-private-property-in-object":function(){return YR},"proposal-unicode-property-regex":function(){return RN},"syntax-async-generators":function(){return DW},"syntax-class-properties":function(){return AW},"syntax-class-static-block":function(){return NF},"syntax-dynamic-import":function(){return wW},"syntax-export-namespace-from":function(){return CW},"syntax-json-strings":function(){return SW},"syntax-logical-assignment-operators":function(){return TW},"syntax-nullish-coalescing-operator":function(){return jW},"syntax-numeric-separator":function(){return PW},"syntax-object-rest-spread":function(){return IW},"syntax-optional-catch-binding":function(){return FW},"syntax-optional-chaining":function(){return kW},"syntax-private-property-in-object":function(){return JR},"syntax-top-level-await":function(){return QF},"transform-arrow-functions":function(){return BN},"transform-async-to-generator":function(){return NN},"transform-block-scoped-functions":function(){return _N},"transform-block-scoping":function(){return VN},"transform-classes":function(){return dB},"transform-computed-properties":function(){return fB},"transform-destructuring":function(){return hB},"transform-dotall-regex":function(){return mB},"transform-duplicate-keys":function(){return yB},"transform-exponentiation-operator":function(){return bB},"transform-for-of":function(){return PB},"transform-function-name":function(){return IB},"transform-literals":function(){return OB},"transform-member-expression-literals":function(){return RB},"transform-modules-amd":function(){return HB},"transform-modules-commonjs":function(){return ZB},"transform-modules-systemjs":function(){return s_},"transform-modules-umd":function(){return o_},"transform-named-capturing-groups-regex":function(){return u_},"transform-new-target":function(){return l_},"transform-object-super":function(){return p_},"transform-parameters":function(){return wR},"transform-property-literals":function(){return f_},"transform-regenerator":function(){return mM},"transform-reserved-words":function(){return yM},"transform-shorthand-properties":function(){return WV},"transform-spread":function(){return HV},"transform-sticky-regex":function(){return XV},"transform-template-literals":function(){return $V},"transform-typeof-symbol":function(){return KV},"transform-unicode-escapes":function(){return hW},"transform-unicode-regex":function(){return mW}},GW={"proposal-class-static-block":"7.12.0","proposal-private-property-in-object":"7.10.0"},VW=Function.call.bind(Object.hasOwnProperty);for(var WW={auto:"transform-modules-commonjs",amd:"transform-modules-amd",commonjs:"transform-modules-commonjs",cjs:"transform-modules-commonjs",systemjs:"transform-modules-systemjs",umd:"transform-modules-umd"},HW={"transform-async-to-generator":{chrome:"55",opera:"42",edge:"15",firefox:"52",safari:"10.1",node:"7.6",ios:"10.3",samsung:"6",electron:"1.6"},"bugfix/transform-async-arrows-in-class":{chrome:"55",opera:"42",edge:"15",firefox:"52",safari:"11",node:"7.6",ios:"11",samsung:"6",electron:"1.6"},"transform-parameters":{chrome:"49",opera:"36",edge:"15",firefox:"53",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"bugfix/transform-edge-default-parameters":{chrome:"49",opera:"36",edge:"18",firefox:"52",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"transform-function-name":{chrome:"51",opera:"38",edge:"14",firefox:"53",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"bugfix/transform-edge-function-name":{chrome:"51",opera:"38",edge:"79",firefox:"53",safari:"10",node:"6.5",ios:"10",samsung:"5",electron:"1.2"},"transform-block-scoping":{chrome:"49",opera:"36",edge:"14",firefox:"51",safari:"10",node:"6",ios:"10",samsung:"5",electron:"0.37"},"bugfix/transform-safari-block-shadowing":{chrome:"49",opera:"36",edge:"12",firefox:"44",safari:"11",node:"6",ie:"11",ios:"11",samsung:"5",electron:"0.37"},"bugfix/transform-safari-for-shadowing":{chrome:"49",opera:"36",edge:"12",firefox:"4",safari:"11",node:"6",ie:"11",ios:"11",samsung:"5",electron:"0.37"},"transform-template-literals":{chrome:"41",opera:"28",edge:"13",firefox:"34",safari:"9",node:"4",ios:"9",samsung:"3.4",electron:"0.21"},"bugfix/transform-tagged-template-caching":{chrome:"41",opera:"28",edge:"12",firefox:"34",safari:"13",node:"4",ios:"13",samsung:"3.4",electron:"0.21"},"proposal-optional-chaining":{chrome:"80",opera:"67",edge:"80",firefox:"74",safari:"13.1",node:"14",ios:"13.4",samsung:"13",electron:"8.0"},"bugfix/transform-v8-spread-parameters-in-optional-chaining":{firefox:"74",safari:"13.1",ios:"13.4"}},XW={},qW={},$W=0,KW=Object.keys(zS);$W<KW.length;$W++){var zW=KW[$W];Object.hasOwnProperty.call(UW,zW)&&(XW[zW]=zS[zW])}for(var JW=0,YW=Object.keys(HW);JW<YW.length;JW++){var QW=YW[JW];Object.hasOwnProperty.call(UW,QW)&&(qW[QW]=HW[QW])}XW["proposal-class-properties"]=XW["proposal-private-methods"];var ZW={bugfixes:"bugfixes",configPath:"configPath",corejs:"corejs",debug:"debug",exclude:"exclude",forceAllTransforms:"forceAllTransforms",ignoreBrowserslistConfig:"ignoreBrowserslistConfig",include:"include",loose:"loose",modules:"modules",shippedProposals:"shippedProposals",spec:"spec",targets:"targets",useBuiltIns:"useBuiltIns",browserslistEnv:"browserslistEnv"},eH={false:!1,auto:"auto",amd:"amd",commonjs:"commonjs",cjs:"cjs",systemjs:"systemjs",umd:"umd"},tH={false:!1,entry:"entry",usage:"usage"},rH=["web.timers","web.immediate","web.dom.iterable"],nH=new hC("@babel/preset-env"),sH=Object.keys(XW),aH=["proposal-dynamic-import"].concat(c(Object.keys(WW).map((function(e){return WW[e]})))),iH=function(e,t,r){return Array.from(function(e,t){return new Set([].concat(c(sH),c("exclude"===e?aH:[]),c(t?2==t?[].concat(c(Object.keys(CR)),rH):Object.keys(xG):[])))}(t,r)).filter((function(t){return e instanceof RegExp&&e.test(t)}))},oH=function(e,t,r){if(void 0===e&&(e=[]),0===e.length)return[];var n=e.map((function(e){return iH(function(e){if(e instanceof RegExp)return e;try{return new RegExp("^"+uH(e)+"$")}catch(e){return null}}(e),t,r)})),s=e.filter((function(e,t){return 0===n[t].length}));return nH.invariant(0===s.length,"The plugins/built-ins '"+s.join(", ")+"' passed to the '"+t+"' option are not\n valid. Please check data/[plugin-features|built-in-features].js in babel-preset-env"),function(e){var t;return(t=[]).concat.apply(t,c(e))}(n)},uH=function(e){return e.replace(/^(@babel\/|babel-)(plugin-)?/,"")};function lH(e){nH.validateTopLevelOptions(e,ZW);var t,r,n,s=(void 0===(t=e.useBuiltIns)&&(t=!1),nH.invariant(tH[t.toString()]||t===tH.false,"The 'useBuiltIns' option must be either\n 'false' (default) to indicate no polyfill,\n '\"entry\"' to indicate replacing the entry polyfill, or\n '\"usage\"' to import only used polyfills per file"),t),a=function(e,t){var r,n=!1;t&&void 0===e?(r=2,console.warn("\nWARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option.\n\nYou should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands:\n\n npm install --save core-js@2 npm install --save core-js@3\n yarn add core-js@2 yarn add core-js@3\n\nMore info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins\nMore info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs")):"object"==typeof e&&null!==e?(r=e.version,n=Boolean(e.proposals)):r=e;var s=!!r&&BU.coerce(String(r));if(!t&&s&&console.warn("\nWARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n"),t&&(!s||s.major<2||s.major>3))throw new RangeError("Invalid Option: The version passed to `corejs` is invalid. Currently, only core-js@2 and core-js@3 are supported.");return{version:s,proposals:n}}(e.corejs,s),i=oH(e.include,ZW.include,!!a.version&&a.version.major),o=oH(e.exclude,ZW.exclude,!!a.version&&a.version.major);return function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var r=e.filter((function(e){return t.indexOf(e)>=0}));nH.invariant(0===r.length,"The plugins/built-ins '"+r.join(", ")+'\' were found in both the "include" and\n "exclude" options.')}(i,o),{bugfixes:nH.validateBooleanOption(ZW.bugfixes,e.bugfixes,!1),configPath:nH.validateStringOption(ZW.configPath,e.configPath,ar.cwd()),corejs:a,debug:nH.validateBooleanOption(ZW.debug,e.debug,!1),include:i,exclude:o,forceAllTransforms:nH.validateBooleanOption(ZW.forceAllTransforms,e.forceAllTransforms,!1),ignoreBrowserslistConfig:nH.validateBooleanOption(ZW.ignoreBrowserslistConfig,e.ignoreBrowserslistConfig,!1),loose:nH.validateBooleanOption(ZW.loose,e.loose),modules:(n=e.modules,void 0===n&&(n=eH.auto),nH.invariant(eH[n.toString()]||n===eH.false,"The 'modules' option must be one of \n - 'false' to indicate no module processing\n - a specific module type: 'commonjs', 'amd', 'umd', 'systemjs' - 'auto' (default) which will automatically select 'false' if the current\n process is known to support ES module syntax, or \"commonjs\" otherwise\n"),n),shippedProposals:nH.validateBooleanOption(ZW.shippedProposals,e.shippedProposals,!1),spec:nH.validateBooleanOption(ZW.spec,e.spec,!1),targets:(r=e.targets,"string"==typeof r||Array.isArray(r)?{browsers:r}:Object.assign({},r)),useBuiltIns:s,browserslistEnv:nH.validateStringOption(ZW.browserslistEnv,e.browserslistEnv)}}var cH,pH,dH,fH,hH=new Set(["proposal-class-static-block","proposal-private-property-in-object"]),mH={"proposal-async-generator-functions":"syntax-async-generators","proposal-class-properties":"syntax-class-properties","proposal-class-static-block":"syntax-class-static-block","proposal-json-strings":"syntax-json-strings","proposal-nullish-coalescing-operator":"syntax-nullish-coalescing-operator","proposal-numeric-separator":"syntax-numeric-separator","proposal-object-rest-spread":"syntax-object-rest-spread","proposal-optional-catch-binding":"syntax-optional-catch-binding","proposal-optional-chaining":"syntax-optional-chaining","proposal-private-methods":"syntax-class-properties","proposal-private-property-in-object":"syntax-private-property-in-object","proposal-unicode-property-regex":null},yH=Object.keys(mH).map((function(e){return[e,mH[e]]})),gH={pluginSyntaxMap:new Map(yH),proposalPlugins:hH},vH={"transform-async-to-generator":["bugfix/transform-async-arrows-in-class"],"transform-parameters":["bugfix/transform-edge-default-parameters"],"transform-function-name":["bugfix/transform-edge-function-name"],"transform-block-scoping":["bugfix/transform-safari-block-shadowing","bugfix/transform-safari-for-shadowing"],"transform-template-literals":["bugfix/transform-tagged-template-caching"],"proposal-optional-chaining":["bugfix/transform-v8-spread-parameters-in-optional-chaining"]};function bH(e){var t=e.node;if(0===t.specifiers.length)return t.source.value}function EH(e){var t=e.node;if(C(t)){var r=t.expression;return E(r)&&F(r.callee)&&"require"===r.callee.name&&1===r.arguments.length&&R(r.arguments[0])?r.arguments[0].value:void 0}}function xH(e){return"@babel/polyfill"===e||"core-js"===e}function DH(e){return"regenerator-runtime/runtime"===e||"regenerator-runtime/runtime.js"===e}function AH(){return{name:"preset-env/remove-regenerator",visitor:{ImportDeclaration:function(e){DH(bH(e))&&(this.regeneratorImportExcluded=!0,e.remove())},Program:function(e){var t=this;e.get("body").forEach((function(e){DH(EH(e))&&(t.regeneratorImportExcluded=!0,e.remove())}))}},pre:function(){this.regeneratorImportExcluded=!1},post:function(){if(this.opts.debug&&this.regeneratorImportExcluded){var e=this.file.opts.filename;"test"===ar.env.BABEL_ENV&&(e=e.replace(/\\/g,"/")),console.log("\n["+e+"] Based on your targets, regenerator-runtime import excluded.")}}}}var wH="\n `@babel/polyfill` is deprecated. Please, use required parts of `core-js`\n and `regenerator-runtime/runtime` separately",CH="\n When setting `useBuiltIns: 'usage'`, polyfills are automatically imported when needed.\n Please remove the direct import of `SPECIFIER` or use `useBuiltIns: 'entry'` instead.";function SH(e,t){var r=e.template,n=t.regenerator,s=t.deprecated,a=t.usage;return{name:"preset-env/replace-babel-polyfill",visitor:{ImportDeclaration:function(e){var t=bH(e);a&&xH(t)?(console.warn(CH.replace("SPECIFIER",t)),s||e.remove()):"@babel/polyfill"===t&&(s?console.warn(wH):n?e.replaceWithMultiple(r.ast(cH||(cH=u(['\n import "core-js";\n import "regenerator-runtime/runtime.js";\n '])))):e.replaceWith(r.ast(pH||(pH=u(['\n import "core-js";\n '])))))},Program:function(e){e.get("body").forEach((function(e){var t=EH(e);a&&xH(t)?(console.warn(CH.replace("SPECIFIER",t)),s||e.remove()):"@babel/polyfill"===t&&(s?console.warn(wH):n?e.replaceWithMultiple(r.ast(dH||(dH=u(['\n require("core-js");\n require("regenerator-runtime/runtime.js");\n '])))):e.replaceWith(r.ast(fH||(fH=u(['\n require("core-js");\n '])))))}))}}}}var TH,jH,PH,IH=zt((function(e,t){var r;t=e.exports=p,r="object"==typeof ar&&ar.env&&ar.env.NODE_DEBUG&&/\bsemver\b/i.test(ar.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=Number.MAX_SAFE_INTEGER||9007199254740991,s=t.re=[],a=t.src=[],i=t.tokens={},o=0;function u(e){i[e]=o++}u("NUMERICIDENTIFIER"),a[i.NUMERICIDENTIFIER]="0|[1-9]\\d*",u("NUMERICIDENTIFIERLOOSE"),a[i.NUMERICIDENTIFIERLOOSE]="[0-9]+",u("NONNUMERICIDENTIFIER"),a[i.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",u("MAINVERSION"),a[i.MAINVERSION]="("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")",u("MAINVERSIONLOOSE"),a[i.MAINVERSIONLOOSE]="("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")",u("PRERELEASEIDENTIFIER"),a[i.PRERELEASEIDENTIFIER]="(?:"+a[i.NUMERICIDENTIFIER]+"|"+a[i.NONNUMERICIDENTIFIER]+")",u("PRERELEASEIDENTIFIERLOOSE"),a[i.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[i.NUMERICIDENTIFIERLOOSE]+"|"+a[i.NONNUMERICIDENTIFIER]+")",u("PRERELEASE"),a[i.PRERELEASE]="(?:-("+a[i.PRERELEASEIDENTIFIER]+"(?:\\."+a[i.PRERELEASEIDENTIFIER]+")*))",u("PRERELEASELOOSE"),a[i.PRERELEASELOOSE]="(?:-?("+a[i.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[i.PRERELEASEIDENTIFIERLOOSE]+")*))",u("BUILDIDENTIFIER"),a[i.BUILDIDENTIFIER]="[0-9A-Za-z-]+",u("BUILD"),a[i.BUILD]="(?:\\+("+a[i.BUILDIDENTIFIER]+"(?:\\."+a[i.BUILDIDENTIFIER]+")*))",u("FULL"),u("FULLPLAIN"),a[i.FULLPLAIN]="v?"+a[i.MAINVERSION]+a[i.PRERELEASE]+"?"+a[i.BUILD]+"?",a[i.FULL]="^"+a[i.FULLPLAIN]+"$",u("LOOSEPLAIN"),a[i.LOOSEPLAIN]="[v=\\s]*"+a[i.MAINVERSIONLOOSE]+a[i.PRERELEASELOOSE]+"?"+a[i.BUILD]+"?",u("LOOSE"),a[i.LOOSE]="^"+a[i.LOOSEPLAIN]+"$",u("GTLT"),a[i.GTLT]="((?:<|>)?=?)",u("XRANGEIDENTIFIERLOOSE"),a[i.XRANGEIDENTIFIERLOOSE]=a[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",u("XRANGEIDENTIFIER"),a[i.XRANGEIDENTIFIER]=a[i.NUMERICIDENTIFIER]+"|x|X|\\*",u("XRANGEPLAIN"),a[i.XRANGEPLAIN]="[v=\\s]*("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:"+a[i.PRERELEASE]+")?"+a[i.BUILD]+"?)?)?",u("XRANGEPLAINLOOSE"),a[i.XRANGEPLAINLOOSE]="[v=\\s]*("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:"+a[i.PRERELEASELOOSE]+")?"+a[i.BUILD]+"?)?)?",u("XRANGE"),a[i.XRANGE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAIN]+"$",u("XRANGELOOSE"),a[i.XRANGELOOSE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAINLOOSE]+"$",u("COERCE"),a[i.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",u("COERCERTL"),s[i.COERCERTL]=new RegExp(a[i.COERCE],"g"),u("LONETILDE"),a[i.LONETILDE]="(?:~>?)",u("TILDETRIM"),a[i.TILDETRIM]="(\\s*)"+a[i.LONETILDE]+"\\s+",s[i.TILDETRIM]=new RegExp(a[i.TILDETRIM],"g");u("TILDE"),a[i.TILDE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAIN]+"$",u("TILDELOOSE"),a[i.TILDELOOSE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAINLOOSE]+"$",u("LONECARET"),a[i.LONECARET]="(?:\\^)",u("CARETTRIM"),a[i.CARETTRIM]="(\\s*)"+a[i.LONECARET]+"\\s+",s[i.CARETTRIM]=new RegExp(a[i.CARETTRIM],"g");u("CARET"),a[i.CARET]="^"+a[i.LONECARET]+a[i.XRANGEPLAIN]+"$",u("CARETLOOSE"),a[i.CARETLOOSE]="^"+a[i.LONECARET]+a[i.XRANGEPLAINLOOSE]+"$",u("COMPARATORLOOSE"),a[i.COMPARATORLOOSE]="^"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+")$|^$",u("COMPARATOR"),a[i.COMPARATOR]="^"+a[i.GTLT]+"\\s*("+a[i.FULLPLAIN]+")$|^$",u("COMPARATORTRIM"),a[i.COMPARATORTRIM]="(\\s*)"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+"|"+a[i.XRANGEPLAIN]+")",s[i.COMPARATORTRIM]=new RegExp(a[i.COMPARATORTRIM],"g");u("HYPHENRANGE"),a[i.HYPHENRANGE]="^\\s*("+a[i.XRANGEPLAIN]+")\\s+-\\s+("+a[i.XRANGEPLAIN]+")\\s*$",u("HYPHENRANGELOOSE"),a[i.HYPHENRANGELOOSE]="^\\s*("+a[i.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[i.XRANGEPLAINLOOSE]+")\\s*$",u("STAR"),a[i.STAR]="(<|>)?=?\\s*\\*";for(var l=0;l<o;l++)r(l,a[l]),s[l]||(s[l]=new RegExp(a[l]));function c(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?s[i.LOOSE]:s[i.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?s[i.LOOSE]:s[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=c,t.valid=function(e,t){var r=c(e,t);return r?r.version:null},t.clean=function(e,t){var r=c(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return f(n,s)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var n=this.build[t],s=e.build[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return f(n,s)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new p(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var r=c(e),n=c(t),s="";if(r.prerelease.length||n.prerelease.length){s="pre";var a="prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return s+i;return a},t.compareIdentifiers=f;var d=/^[0-9]+$/;function f(e,t){var r=d.test(e),n=d.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function h(e,t,r){return new p(e,r).compare(new p(t,r))}function m(e,t,r){return h(e,t,r)>0}function y(e,t,r){return h(e,t,r)<0}function g(e,t,r){return 0===h(e,t,r)}function v(e,t,r){return 0!==h(e,t,r)}function b(e,t,r){return h(e,t,r)>=0}function E(e,t,r){return h(e,t,r)<=0}function x(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return g(e,r,n);case"!=":return v(e,r,n);case">":return m(e,r,n);case">=":return b(e,r,n);case"<":return y(e,r,n);case"<=":return E(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function D(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof D){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof D))return new D(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===A?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,r){var n=new p(e,r),s=new p(t,r);return n.compare(s)||n.compareBuild(s)},t.rcompare=function(e,t,r){return h(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compareBuild(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.compareBuild(n,e,r)}))},t.gt=m,t.lt=y,t.eq=g,t.neq=v,t.gte=b,t.lte=E,t.cmp=x,t.Comparator=D;var A={};function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new w(e.raw,t);if(e instanceof D)return new w(e.value,t);if(!(this instanceof w))return new w(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function C(e,t){for(var r=!0,n=e.slice(),s=n.pop();r&&n.length;)r=n.every((function(e){return s.intersects(e,t)})),s=n.pop();return r}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function T(e,t,r,n,s,a,i,o,u,l,c,p,d){return((t=S(r)?"":S(n)?">="+r+".0.0":S(s)?">="+r+"."+n+".0":">="+t)+" "+(o=S(u)?"":S(l)?"<"+(+u+1)+".0.0":S(c)?"<"+u+"."+(+l+1)+".0":p?"<="+u+"."+l+"."+c+"-"+p:"<="+o)).trim()}function j(e,t,n){for(var s=0;s<e.length;s++)if(!e[s].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(s=0;s<e.length;s++)if(r(e[s].semver),e[s].semver!==A&&e[s].semver.prerelease.length>0){var a=e[s].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function P(e,t,r){try{t=new w(t,r)}catch(e){return!1}return t.test(e)}function I(e,t,r,n){var s,a,i,o,u;switch(e=new p(e,n),t=new w(t,n),r){case">":s=m,a=E,i=y,o=">",u=">=";break;case"<":s=y,a=b,i=m,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,t,n))return!1;for(var l=0;l<t.set.length;++l){var c=t.set[l],d=null,f=null;if(c.forEach((function(e){e.semver===A&&(e=new D(">=0.0.0")),d=d||e,f=f||e,s(e.semver,d.semver,n)?d=e:i(e.semver,f.semver,n)&&(f=e)})),d.operator===o||d.operator===u)return!1;if((!f.operator||f.operator===o)&&a(e,f.semver))return!1;if(f.operator===u&&i(e,f.semver))return!1}return!0}D.prototype.parse=function(e){var t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new p(r[2],this.options.loose):this.semver=A},D.prototype.toString=function(){return this.value},D.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return x(e,this.operator,this.semver,this.options)},D.prototype.intersects=function(e,t){if(!(e instanceof D))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new w(e.value,t),P(this.value,r,t));if(""===e.operator)return""===e.value||(r=new w(this.value,t),P(e.semver,r,t));var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||s||a&&i||o||u},t.Range=w,w.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},w.prototype.toString=function(){return this.range},w.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[i.HYPHENRANGELOOSE]:s[i.HYPHENRANGE];e=e.replace(n,T),r("hyphen replace",e),e=e.replace(s[i.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,s[i.COMPARATORTRIM]),e=(e=(e=e.replace(s[i.TILDETRIM],"$1~")).replace(s[i.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?s[i.CARETLOOSE]:s[i.CARET];return e.replace(n,(function(t,n,s,a,i){var o;return r("caret",e,t,n,s,a,i),S(n)?o="":S(s)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o="0"===n?">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":">="+n+"."+s+".0 <"+(+n+1)+".0.0":i?(r("replaceCaret pr",i),o="0"===n?"0"===s?">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+s+"."+(+a+1):">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+a+"-"+i+" <"+(+n+1)+".0.0"):(r("no pr"),o="0"===n?"0"===s?">="+n+"."+s+"."+a+" <"+n+"."+s+"."+(+a+1):">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0":">="+n+"."+s+"."+a+" <"+(+n+1)+".0.0"),r("caret return",o),o}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?s[i.TILDELOOSE]:s[i.TILDE];return e.replace(n,(function(t,n,s,a,i){var o;return r("tilde",e,t,n,s,a,i),S(n)?o="":S(s)?o=">="+n+".0.0 <"+(+n+1)+".0.0":S(a)?o=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0":i?(r("replaceTilde pr",i),o=">="+n+"."+s+"."+a+"-"+i+" <"+n+"."+(+s+1)+".0"):o=">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0",r("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?s[i.XRANGELOOSE]:s[i.XRANGE];return e.replace(n,(function(n,s,a,i,o,u){r("xRange",e,n,s,a,i,o,u);var l=S(a),c=l||S(i),p=c||S(o),d=p;return"="===s&&d&&(s=""),u=t.includePrerelease?"-0":"",l?n=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(c&&(i=0),o=0,">"===s?(s=">=",c?(a=+a+1,i=0,o=0):(i=+i+1,o=0)):"<="===s&&(s="<",c?a=+a+1:i=+i+1),n=s+a+"."+i+"."+o+u):c?n=">="+a+".0.0"+u+" <"+(+a+1)+".0.0"+u:p&&(n=">="+a+"."+i+".0"+u+" <"+a+"."+(+i+1)+".0"+u),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(s[i.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(a)}))),o=o.map((function(e){return new D(e,this.options)}),this)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Range is required");return this.set.some((function(r){return C(r,t)&&e.set.some((function(e){return C(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new w(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},w.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(j(this.set[t],e,this.options))return!0;return!1},t.satisfies=P,t.maxSatisfying=function(e,t,r){var n=null,s=null;try{var a=new w(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&-1!==s.compare(e)||(s=new p(n=e,r)))})),n},t.minSatisfying=function(e,t,r){var n=null,s=null;try{var a=new w(t,r)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(n&&1!==s.compare(e)||(s=new p(n=e,r)))})),n},t.minVersion=function(e,t){e=new w(e,t);var r=new p("0.0.0");if(e.test(r))return r;if(r=new p("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n){e.set[n].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!m(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new w(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return I(e,t,"<",r)},t.gtr=function(e,t,r){return I(e,t,">",r)},t.outside=I,t.prerelease=function(e,t){var r=c(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new w(e,r),t=new w(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var n;(n=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),s[i.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);if(null===r)return null;return c(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}}),"/$$rollup_base$$/packages/babel-preset-env/node_modules/babel-plugin-polyfill-corejs2/node_modules/semver"),FH=t,kH=FH.types,OH=FH.template;function RH(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function NH(e){if(e.isIdentifier()&&!e.scope.hasBinding(e.node.name,!0))return e.node.name;var t=e.evaluate().deopt;return t&&t.isIdentifier()?t.node.name:void 0}function BH(e,t){void 0===t&&(t=!1);var r=e.node,n=e.parent,s=e.scope;if(e.isStringLiteral())return r.value;var a=r.name,i=e.isIdentifier();if(i&&!t&&!n.computed)return a;if(t&&e.isMemberExpression()&&e.get("object").isIdentifier({name:"Symbol"})&&!s.hasBinding("Symbol",!0)){var o=BH(e.get("property"),e.node.computed);if(o)return"Symbol."+o}if(!i||s.hasBinding(a,!0)){var u=e.evaluate().value;if("string"==typeof u)return u}}function _H(e){if(e.isMemberExpression()&&e.get("property").isIdentifier({name:"prototype"})){var t=NH(e.get("object"));return t?{id:t,placement:"prototype"}:{id:null,placement:null}}var r=NH(e);if(r)return{id:r,placement:"static"};var n,s=e.evaluate().value;return void 0!==s?{id:(n=s,Object.prototype.toString.call(n).slice(8,-1)),placement:"prototype"}:e.isRegExpLiteral()?{id:"RegExp",placement:"prototype"}:e.isFunction()?{id:"Function",placement:"prototype"}:{id:null,placement:null}}function LH(e){return e._blockHoist=3,e}var MH=t.types,UH=function(){function e(e){this._imports=new WeakMap,this._anonymousImports=new WeakMap,this._lastImports=new WeakMap,this._resolver=e}var t=e.prototype;return t.storeAnonymous=function(e,t,r){var n=this._normalizeKey(e,t),s=this._ensure(this._anonymousImports,e,Set);if(!s.has(n)){var a=r("script"===e.node.sourceType,MH.stringLiteral(this._resolver(t)));s.add(n),this._injectImport(e,a)}},t.storeNamed=function(e,t,r,n){var s=this._normalizeKey(e,t,r),a=this._ensure(this._imports,e,Map);if(!a.has(s)){var i=n("script"===e.node.sourceType,MH.stringLiteral(this._resolver(t)),MH.identifier(r)),o=i.node,u=i.name;a.set(s,u),this._injectImport(e,o)}return MH.identifier(a.get(s))},t._injectImport=function(e,t){var r=this._lastImports.get(e);r=(r=r&&r.node&&r.parent===e.node&&r.container===e.node.body?r.insertAfter(t):e.unshiftContainer("body",t))[r.length-1],this._lastImports.set(e,r)},t._ensure=function(e,t,r){var n=e.get(t);return n||(n=new r,e.set(t,n)),n},t._normalizeKey=function(e,t,r){void 0===r&&(r="");var n=e.node.sourceType;return(r&&n)+"::"+t+"::"+r},e}();function GH(e,t){return t.length?' - The following "'+e+"\" patterns didn't match any polyfill:\n"+t.map((function(e){return" "+String(e)+"\n"})).join(""):""}function VH(e,t,r,n){var s,a,i,o,u=function(e){var r=function(e){if(e instanceof RegExp)return e;try{return new RegExp("^"+e+"$")}catch(e){return null}}(e);if(!r)return!1;for(var n,a=!1,i=f(t);!(n=i()).done;){var o=n.value;r.test(o)&&(a=!0,s.add(o))}return!a},l=s=new Set,c=Array.from(r).filter(u),p=s=new Set,d=Array.from(n).filter(u),h=(a=l,i=p,o=new Set,a.forEach((function(e){return i.has(e)&&o.add(e)})),o);if(h.size>0||c.length>0||d.length>0)throw new Error('Error while validating the "'+e+'" provider options:\n'+GH("include",c)+GH("exclude",d)+function(e){return e.size?' - The following polyfills were matched both by "include" and "exclude" patterns:\n'+Array.from(e,(function(e){return" "+e+"\n"})).join(""):""}(h));return{include:l,exclude:p}}var WH=function(e){function t(t,r,n,s){return e({kind:"property",object:t,key:r,placement:n},s)}return{ReferencedIdentifier:function(t){var r=t.node.name;t.scope.getBindingIdentifier(r)||e({kind:"global",name:r},t)},MemberExpression:function(e){var r=BH(e.get("property"),e.node.computed);if(r&&"prototype"!==r){var n=e.get("object"),s=n.scope.getBinding(n.node.name);if(!s||!s.path.isImportNamespaceSpecifier()){var a=_H(n);return t(a.id,r,a.placement,e)}}},ObjectPattern:function(e){var r,n=e.parentPath,s=e.parent;if(n.isVariableDeclarator())r=n.get("init");else if(n.isAssignmentExpression())r=n.get("right");else if(n.isFunction()){var a=n.parentPath;(a.isCallExpression()||a.isNewExpression())&&a.node.callee===s&&(r=a.get("arguments")[e.key])}var i=null,o=null;if(r){var u=_H(r);i=u.id,o=u.placement}for(var l,c=f(e.get("properties"));!(l=c()).done;){var p=l.value;if(p.isObjectProperty()){var d=BH(p.get("key"));d&&t(i,d,o,p)}}},BinaryExpression:function(t){if("in"===t.node.operator){var r=_H(t.get("right")),n=BH(t.get("left"),!0);n&&e({kind:"in",object:r.id,key:n,placement:r.placement},t)}}}},HH=function(e){return{ImportDeclaration:function(t){var r=function(e){var t=e.node;if(0===t.specifiers.length)return t.source.value}(t);r&&e({kind:"import",source:r},t)},Program:function(t){t.get("body").forEach((function(t){var r=function(e){var t=e.node;if(kH.isExpressionStatement(t)){var r=t.expression;return kH.isCallExpression(r)&&kH.isIdentifier(r.callee)&&"require"===r.callee.name&&1===r.arguments.length&&kH.isStringLiteral(r.arguments[0])?r.arguments[0].value:void 0}}(t);r&&e({kind:"import",source:r},t)}))}}};var XH=new Set(["global","globalThis","self","window"]);function qH(e){var t=e.static,r=e.instance,n=e.global;return function(e){if("global"===e.kind&&n&&RH(n,e.name))return{kind:"global",desc:n[e.name],name:e.name};if("property"===e.kind||"in"===e.kind){var s=e.placement,a=e.object,i=e.key;if(a&&"static"===s){if(n&&XH.has(a)&&RH(n,i))return{kind:"global",desc:n[i],name:i};if(t&&RH(t,a)&&RH(t[a],i))return{kind:"static",desc:t[a][i],name:a+"$"+i}}if(r&&RH(r,i))return{kind:"instance",desc:r[i],name:""+i}}}}var $H=nT.default||nT;function KH(e,t,r,n,s,a){var i,l,c,p,d,f=function(e,t){var r,n,s=e.method,a=e.targets,i=e.ignoreBrowserslistConfig,u=e.configPath,l=e.debug,c=e.shouldInjectPolyfill,p=e.absoluteImports,d=o(e,["method","targets","ignoreBrowserslistConfig","configPath","debug","shouldInjectPolyfill","absoluteImports"]);if("usage-global"===s)r="usageGlobal";else if("entry-global"===s)r="entryGlobal";else{if("usage-pure"!==s)throw"string"!=typeof s?new Error(".method must be a string"):new Error('.method must be one of "entry-global", "usage-global" or "usage-pure" (received '+JSON.stringify(s)+")");r="usagePure"}if("function"==typeof c){if(e.include||e.exclude)throw new Error(".include and .exclude are not supported when using the .shouldInjectPolyfill function.")}else if(null!=c)throw new Error(".shouldInjectPolyfill must be a function, or undefined (received "+JSON.stringify(c)+")");if(null!=p&&"boolean"!=typeof p&&"string"!=typeof p)throw new Error(".absoluteImports must be a boolean, a string, or undefined (received "+JSON.stringify(p)+")");if(a||u||i){var f="string"==typeof a||Array.isArray(a)?{browsers:a}:a;n=$H(f,{ignoreBrowserslistConfig:i,configPath:u})}else n=t.targets();return{method:s,methodName:r,targets:n,absoluteImports:null!=p&&p,shouldInjectPolyfill:c,debug:!!l,providerOptions:d}}(t,a),h=f.method,m=f.methodName,y=f.targets,g=f.debug,v=f.shouldInjectPolyfill,b=f.providerOptions,E=f.absoluteImports,x=function(e){return function(t){var r=t.findParent((function(e){return e.isProgram()}));return{injectGlobalImport:function(t){e.storeAnonymous(r,t,(function(e,t){return e?OH.statement.ast(TH||(TH=u(["require(",")"])),t):kH.importDeclaration([],t)}))},injectNamedImport:function(t,n,s){return void 0===s&&(s=n),e.storeNamed(r,t,n,(function(e,t,n){var a=r.scope.generateUidIdentifier(s);return{node:e?LH(OH.statement.ast(jH||(jH=u(["\n var "," = require(",").","\n "])),a,t,n)):kH.importDeclaration([kH.importSpecifier(a,n)],t),name:a.name}}))},injectDefaultImport:function(t,n){return void 0===n&&(n=t),e.storeNamed(r,t,"default",(function(e,t){var s=r.scope.generateUidIdentifier(n);return{node:e?LH(OH.statement.ast(PH||(PH=u(["var "," = require(",")"])),s,t)):kH.importDeclaration([kH.importDefaultSpecifier(s)],t),name:s.name}}))}}}}(new UH((function(e){return function(e,t,r){if(!1===r)return t;throw new Error('"absoluteImports" is not supported in bundles prepared for the browser.')}(0,e,E)}))),D=new Map,A={babel:a,getUtils:x,method:t.method,targets:y,createMetaResolver:qH,shouldInjectPolyfill:function(t){if(void 0===p)throw new Error("Internal error in the "+e.name+" provider: shouldInjectPolyfill() can't be called during initialization.");if(p.has(t)||console.warn("Internal error in the "+w.name+' provider: unknown polyfill "'+t+'".'),d&&!d(t))return!1;var r=JS(t,y,{compatData:c,includes:i,excludes:l});if(v&&"boolean"!=typeof(r=v(t,r)))throw new Error(".shouldInjectPolyfill must return a boolean.");return r},debug:function(e){s().found=!0,g&&e&&(s().polyfills.has(w.name)||s().polyfills.set(e,c&&e&&c[e]))},assertDependency:function(e,t){if(void 0===t&&(t="*"),!1!==r&&!E){var a="*"===t?e:e+"@^"+t;!r.all&&function(e,t,r){var n=e.get(t);void 0===n&&(n=r(),e.set(t,n));return n}(D,e+" :: "+n,(function(){return!0}))||s().missingDeps.add(a)}}},w=e(A,b,n);if("function"!=typeof w[m])throw new Error('The "'+(w.name||e.name)+'" provider doesn\'t support the "'+h+'" polyfilling method.');Array.isArray(w.polyfills)?(p=new Set(w.polyfills),d=w.filterPolyfills):w.polyfills?(p=new Set(Object.keys(w.polyfills)),c=w.polyfills,d=w.filterPolyfills):p=new Set;var C=VH(w.name||e.name,p,b.include||[],b.exclude||[]);return i=C.include,l=C.exclude,{debug:g,method:h,targets:y,provider:w,callProvider:function(e,t){var r=x(t);w[m](e,r,t)}}}function zH(e){return SF((function(t,r,n){t.assertVersion(7);var s,a=t.traverse,i=function(e,t){var r=e.missingDependencies,n=void 0===r?{}:r;if(!1===n)return!1;var s=t.caller((function(e){return null==e?void 0:e.name})),a=n.log,i=void 0===a?"deferred":a,o=n.inject,u=void 0===o?"rollup-plugin-babel"===s?"throw":"import":o,l=n.all;return{log:i,inject:u,all:void 0!==l&&l}}(r,t),o=KH(e,r,i,n,(function(){return s}),t),u=o.debug,c=o.method,p=o.targets,d=o.provider,h=o.callProvider,m="entry-global"===c?HH:WH,y=d.visitor?a.visitors.merge([m(h),d.visitor]):m(h);return u&&"#__secret_key__@babel/preset-env__don't_log_debug_header_and_resolved_targets"!==u&&(console.log(d.name+": `DEBUG` option"),console.log("\nUsing targets: "+function(e){return JSON.stringify($S(e),null,2)}(p)),console.log("\nUsing polyfills with `"+c+"` method:")),{name:"inject-polyfills",visitor:y,pre:function(){var e;s={polyfills:new Map,found:!1,providers:new Set,missingDeps:new Set},null==(e=d.pre)||e.apply(this,arguments)},post:function(){var e;if(null==(e=d.post)||e.apply(this,arguments),!1!==i&&(i.log,s.missingDeps),u)if(this.filename&&console.log("\n["+this.filename+"]"),0!==s.polyfills.size){"entry-global"===c?console.log("The "+d.name+" polyfill entry has been replaced with the following polyfills:"):console.log("The "+d.name+" polyfill added the following polyfills:");for(var t,r=f(s.polyfills);!(t=r()).done;){var n=l(t.value,2),a=n[0],o=n[1];if(o){var h=KS(a,p,o),m=JSON.stringify(h).replace(/,/g,", ").replace(/^\{"/,'{ "').replace(/"\}$/,'" }');console.log(" "+a+" "+m)}else console.log(" "+a)}}else console.log("entry-global"===c?s.found?"Based on your targets, the "+d.name+" polyfill did not add any polyfill.":"The entry point for the "+d.name+" polyfill has not been found.":"Based on your code and targets, the "+d.name+" polyfill did not add any polyfill.")}}}))}var JH=function(e,t,r,n){return void 0===r&&(r=[]),{name:e,pure:t,global:r,meta:n}},YH=function(e,t,r){return void 0===r&&(r=null),JH(t[0],e,t,{minRuntimeVersion:r})},QH=function(e){return JH(e[0],null,e)},ZH=function(e,t){return JH(t,e,[])},eX=["es6.object.to-string","es6.array.iterator","web.dom.iterable"],tX=["es6.string.iterator"].concat(eX),rX=["es6.object.to-string","es6.promise"],nX={DataView:QH(["es6.typed.data-view"]),Float32Array:QH(["es6.typed.float32-array"]),Float64Array:QH(["es6.typed.float64-array"]),Int8Array:QH(["es6.typed.int8-array"]),Int16Array:QH(["es6.typed.int16-array"]),Int32Array:QH(["es6.typed.int32-array"]),Map:YH("map",["es6.map"].concat(c(tX))),Number:QH(["es6.number.constructor"]),Promise:YH("promise",rX),RegExp:QH(["es6.regexp.constructor"]),Set:YH("set",["es6.set"].concat(c(tX))),Symbol:YH("symbol",["es6.symbol"]),Uint8Array:QH(["es6.typed.uint8-array"]),Uint8ClampedArray:QH(["es6.typed.uint8-clamped-array"]),Uint16Array:QH(["es6.typed.uint16-array"]),Uint32Array:QH(["es6.typed.uint32-array"]),WeakMap:YH("weak-map",["es6.weak-map"].concat(c(tX))),WeakSet:YH("weak-set",["es6.weak-set"].concat(c(tX))),setImmediate:ZH("set-immediate","web.immediate"),clearImmediate:ZH("clear-immediate","web.immediate"),parseFloat:ZH("parse-float","es6.parse-float"),parseInt:ZH("parse-int","es6.parse-int")},sX={__defineGetter__:QH(["es7.object.define-getter"]),__defineSetter__:QH(["es7.object.define-setter"]),__lookupGetter__:QH(["es7.object.lookup-getter"]),__lookupSetter__:QH(["es7.object.lookup-setter"]),anchor:QH(["es6.string.anchor"]),big:QH(["es6.string.big"]),bind:QH(["es6.function.bind"]),blink:QH(["es6.string.blink"]),bold:QH(["es6.string.bold"]),codePointAt:QH(["es6.string.code-point-at"]),copyWithin:QH(["es6.array.copy-within"]),endsWith:QH(["es6.string.ends-with"]),entries:QH(eX),every:QH(["es6.array.every"]),fill:QH(["es6.array.fill"]),filter:QH(["es6.array.filter"]),finally:QH(["es7.promise.finally"].concat(rX)),find:QH(["es6.array.find"]),findIndex:QH(["es6.array.find-index"]),fixed:QH(["es6.string.fixed"]),flags:QH(["es6.regexp.flags"]),flatMap:QH(["es7.array.flat-map"]),fontcolor:QH(["es6.string.fontcolor"]),fontsize:QH(["es6.string.fontsize"]),forEach:QH(["es6.array.for-each"]),includes:QH(["es6.string.includes","es7.array.includes"]),indexOf:QH(["es6.array.index-of"]),italics:QH(["es6.string.italics"]),keys:QH(eX),lastIndexOf:QH(["es6.array.last-index-of"]),link:QH(["es6.string.link"]),map:QH(["es6.array.map"]),match:QH(["es6.regexp.match"]),name:QH(["es6.function.name"]),padStart:QH(["es7.string.pad-start"]),padEnd:QH(["es7.string.pad-end"]),reduce:QH(["es6.array.reduce"]),reduceRight:QH(["es6.array.reduce-right"]),repeat:QH(["es6.string.repeat"]),replace:QH(["es6.regexp.replace"]),search:QH(["es6.regexp.search"]),small:QH(["es6.string.small"]),some:QH(["es6.array.some"]),sort:QH(["es6.array.sort"]),split:QH(["es6.regexp.split"]),startsWith:QH(["es6.string.starts-with"]),strike:QH(["es6.string.strike"]),sub:QH(["es6.string.sub"]),sup:QH(["es6.string.sup"]),toISOString:QH(["es6.date.to-iso-string"]),toJSON:QH(["es6.date.to-json"]),toString:QH(["es6.object.to-string","es6.date.to-string","es6.regexp.to-string"]),trim:QH(["es6.string.trim"]),trimEnd:QH(["es7.string.trim-right"]),trimLeft:QH(["es7.string.trim-left"]),trimRight:QH(["es7.string.trim-right"]),trimStart:QH(["es7.string.trim-left"]),values:QH(eX)};"es6.array.slice"in CR&&(sX.slice=QH(["es6.array.slice"]));var aX={Array:{from:YH("array/from",["es6.symbol","es6.array.from"].concat(c(tX))),isArray:YH("array/is-array",["es6.array.is-array"]),of:YH("array/of",["es6.array.of"])},Date:{now:YH("date/now",["es6.date.now"])},JSON:{stringify:ZH("json/stringify","es6.symbol")},Math:{acosh:YH("math/acosh",["es6.math.acosh"],"7.0.1"),asinh:YH("math/asinh",["es6.math.asinh"],"7.0.1"),atanh:YH("math/atanh",["es6.math.atanh"],"7.0.1"),cbrt:YH("math/cbrt",["es6.math.cbrt"],"7.0.1"),clz32:YH("math/clz32",["es6.math.clz32"],"7.0.1"),cosh:YH("math/cosh",["es6.math.cosh"],"7.0.1"),expm1:YH("math/expm1",["es6.math.expm1"],"7.0.1"),fround:YH("math/fround",["es6.math.fround"],"7.0.1"),hypot:YH("math/hypot",["es6.math.hypot"],"7.0.1"),imul:YH("math/imul",["es6.math.imul"],"7.0.1"),log1p:YH("math/log1p",["es6.math.log1p"],"7.0.1"),log10:YH("math/log10",["es6.math.log10"],"7.0.1"),log2:YH("math/log2",["es6.math.log2"],"7.0.1"),sign:YH("math/sign",["es6.math.sign"],"7.0.1"),sinh:YH("math/sinh",["es6.math.sinh"],"7.0.1"),tanh:YH("math/tanh",["es6.math.tanh"],"7.0.1"),trunc:YH("math/trunc",["es6.math.trunc"],"7.0.1")},Number:{EPSILON:YH("number/epsilon",["es6.number.epsilon"]),MIN_SAFE_INTEGER:YH("number/min-safe-integer",["es6.number.min-safe-integer"]),MAX_SAFE_INTEGER:YH("number/max-safe-integer",["es6.number.max-safe-integer"]),isFinite:YH("number/is-finite",["es6.number.is-finite"]),isInteger:YH("number/is-integer",["es6.number.is-integer"]),isSafeInteger:YH("number/is-safe-integer",["es6.number.is-safe-integer"]),isNaN:YH("number/is-nan",["es6.number.is-nan"]),parseFloat:YH("number/parse-float",["es6.number.parse-float"]),parseInt:YH("number/parse-int",["es6.number.parse-int"])},Object:{assign:YH("object/assign",["es6.object.assign"]),create:YH("object/create",["es6.object.create"]),defineProperties:YH("object/define-properties",["es6.object.define-properties"]),defineProperty:YH("object/define-property",["es6.object.define-property"]),entries:YH("object/entries",["es7.object.entries"]),freeze:YH("object/freeze",["es6.object.freeze"]),getOwnPropertyDescriptor:YH("object/get-own-property-descriptor",["es6.object.get-own-property-descriptor"]),getOwnPropertyDescriptors:YH("object/get-own-property-descriptors",["es7.object.get-own-property-descriptors"]),getOwnPropertyNames:YH("object/get-own-property-names",["es6.object.get-own-property-names"]),getOwnPropertySymbols:YH("object/get-own-property-symbols",["es6.symbol"]),getPrototypeOf:YH("object/get-prototype-of",["es6.object.get-prototype-of"]),is:YH("object/is",["es6.object.is"]),isExtensible:YH("object/is-extensible",["es6.object.is-extensible"]),isFrozen:YH("object/is-frozen",["es6.object.is-frozen"]),isSealed:YH("object/is-sealed",["es6.object.is-sealed"]),keys:YH("object/keys",["es6.object.keys"]),preventExtensions:YH("object/prevent-extensions",["es6.object.prevent-extensions"]),seal:YH("object/seal",["es6.object.seal"]),setPrototypeOf:YH("object/set-prototype-of",["es6.object.set-prototype-of"]),values:YH("object/values",["es7.object.values"])},Promise:{all:QH(tX),race:QH(tX)},Reflect:{apply:YH("reflect/apply",["es6.reflect.apply"]),construct:YH("reflect/construct",["es6.reflect.construct"]),defineProperty:YH("reflect/define-property",["es6.reflect.define-property"]),deleteProperty:YH("reflect/delete-property",["es6.reflect.delete-property"]),get:YH("reflect/get",["es6.reflect.get"]),getOwnPropertyDescriptor:YH("reflect/get-own-property-descriptor",["es6.reflect.get-own-property-descriptor"]),getPrototypeOf:YH("reflect/get-prototype-of",["es6.reflect.get-prototype-of"]),has:YH("reflect/has",["es6.reflect.has"]),isExtensible:YH("reflect/is-extensible",["es6.reflect.is-extensible"]),ownKeys:YH("reflect/own-keys",["es6.reflect.own-keys"]),preventExtensions:YH("reflect/prevent-extensions",["es6.reflect.prevent-extensions"]),set:YH("reflect/set",["es6.reflect.set"]),setPrototypeOf:YH("reflect/set-prototype-of",["es6.reflect.set-prototype-of"])},String:{at:ZH("string/at","es7.string.at"),fromCodePoint:YH("string/from-code-point",["es6.string.from-code-point"]),raw:YH("string/raw",["es6.string.raw"])},Symbol:{asyncIterator:QH(["es6.symbol","es7.symbol.async-iterator"]),for:ZH("symbol/for","es6.symbol"),hasInstance:ZH("symbol/has-instance","es6.symbol"),isConcatSpreadable:ZH("symbol/is-concat-spreadable","es6.symbol"),iterator:JH("es6.symbol","symbol/iterator",tX),keyFor:ZH("symbol/key-for","es6.symbol"),match:YH("symbol/match",["es6.regexp.match"]),replace:ZH("symbol/replace","es6.symbol"),search:ZH("symbol/search","es6.symbol"),species:ZH("symbol/species","es6.symbol"),split:ZH("symbol/split","es6.symbol"),toPrimitive:ZH("symbol/to-primitive","es6.symbol"),toStringTag:ZH("symbol/to-string-tag","es6.symbol"),unscopables:ZH("symbol/unscopables","es6.symbol")}},iX={"web.timers":{},"web.immediate":{},"web.dom.iterable":{}},oX={"es6.parse-float":{},"es6.parse-int":{},"es7.string.at":{}};var uX=t.types,lX=Function.call.bind(Object.hasOwnProperty),cX=zH((function(e,t){var r=t["#__secret_key__@babel/preset-env__compatibility"],n=(r=void 0===r?{}:r).entryInjectRegenerator,s=t["#__secret_key__@babel/runtime__compatibility"],a=(s=void 0===s?{}:s).useBabelRuntime,i=s.runtimeVersion,o=s.ext,u=void 0===o?".js":o,l=e.createMetaResolver({global:nX,static:aX,instance:sX}),c=e.debug,p=e.shouldInjectPolyfill,d=e.method,f=function(e,t,r){var n=Object.keys(e),s=!n.length,a=n.some((function(e){return"node"!==e}));return Object.assign(Object.assign(Object.assign({},r),"usage-pure"===t?oX:null),s||a?iX:null)}(e.targets,d,CR),h=a?a+"/core-js":"usage-pure"===d?"core-js/library/fn":"core-js/modules";function m(e,t){"string"!=typeof e?e.forEach((function(e){return m(e,t)})):lX(f,e)&&p(e)&&(c(e),t.injectGlobalImport(h+"/"+e+".js"))}function y(e,t,r){var n=e.pure,s=e.meta,a=e.name;if(n&&p(a)&&(!(i&&s&&s.minRuntimeVersion)||function(e,t){return!(t&&e&&(IH.valid(t)&&(t="^"+t),IH.intersects("<"+e,t)||IH.intersects(">=8.0.0",t)))}(s&&s.minRuntimeVersion,i)))return r.injectDefaultImport(h+"/"+n+u,t)}return{name:"corejs2",polyfills:f,entryGlobal:function(e,t,r){"import"===e.kind&&"core-js"===e.source&&(c(null),m(Object.keys(f),t),n&&t.injectGlobalImport("regenerator-runtime/runtime.js"),r.remove())},usageGlobal:function(e,t){var r=l(e);if(r){var n=r.desc.global;if("global"!==r.kind&&e.object&&"prototype"===e.placement){var s=e.object.toLowerCase();n=n.filter((function(e){return e.includes(s)}))}m(n,t)}},usagePure:function(e,t,r){if("in"!==e.kind){if(!r.parentPath.isUnaryExpression({operator:"delete"})){if("property"===e.kind){if(!r.isMemberExpression())return;if(!r.isReferenced())return;if("Symbol.iterator"===e.key&&p("es6.symbol")&&r.parentPath.isCallExpression({callee:r.node})&&0===r.parent.arguments.length)return r.parentPath.replaceWith(uX.callExpression(t.injectDefaultImport(h+"/get-iterator"+u,"getIterator"),[r.node.object])),void r.skip()}var n=l(e);if(n){var s=y(n.desc,n.name,t);s&&r.replaceWith(s)}}}else"Symbol.iterator"===e.key&&r.replaceWith(uX.callExpression(t.injectDefaultImport(h+"/is-iterable"+u,"isIterable"),[r.node.right]))},visitor:"usage-global"===d&&{YieldExpression:function(t){t.node.delegate&&m("web.dom.iterable",e.getUtils(t))},"ForOfStatement|ArrayPattern":function(t){tX.forEach((function(r){return m(r,e.getUtils(t))}))}}}})),pX=xG,dX=rV,fX=sV,hX=new Set(["esnext.global-this","esnext.string.match-all"]),mX={};Object.keys(pX).forEach((function(e,t){mX[e]=t}));var yX=function(e,t,r,n){return void 0===r&&(r=t[0]),{name:r,pure:e,global:t.sort((function(e,t){return mX[e]-mX[t]})),exclude:n}},gX=function(e){return yX(null,[e].concat(DX))},vX=["es.array.iterator","web.dom-collections.iterator"],bX=["es.string.iterator"].concat(vX),EX=["es.object.to-string"].concat(vX),xX=["es.object.to-string"].concat(c(bX)),DX=["es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","es.object.to-string","es.array.iterator","es.array-buffer.slice"],AX={from:yX(null,["es.typed-array.from"]),of:yX(null,["es.typed-array.of"])},wX=["es.promise","es.object.to-string"],CX=[].concat(wX,c(bX)),SX=["es.map","esnext.map.delete-all","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.includes","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.reduce","esnext.map.some","esnext.map.update"].concat(c(xX)),TX=["es.set","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union"].concat(c(xX)),jX=["es.weak-map","esnext.weak-map.delete-all"].concat(c(xX)),PX=["es.weak-set","esnext.weak-set.add-all","esnext.weak-set.delete-all"].concat(c(xX)),IX=["web.url"].concat(c(xX)),FX={AggregateError:yX("aggregate-error",["esnext.aggregate-error"].concat(c(bX))),ArrayBuffer:yX(null,["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string"]),DataView:yX(null,["es.data-view","es.array-buffer.slice","es.object.to-string"]),Date:yX(null,["es.date.to-string"]),Float32Array:gX("es.typed-array.float32-array"),Float64Array:gX("es.typed-array.float64-array"),Int8Array:gX("es.typed-array.int8-array"),Int16Array:gX("es.typed-array.int16-array"),Int32Array:gX("es.typed-array.int32-array"),Uint8Array:gX("es.typed-array.uint8-array"),Uint8ClampedArray:gX("es.typed-array.uint8-clamped-array"),Uint16Array:gX("es.typed-array.uint16-array"),Uint32Array:gX("es.typed-array.uint32-array"),Map:yX("map/index",SX),Number:yX(null,["es.number.constructor"]),Observable:yX("observable/index",["esnext.observable","esnext.symbol.observable","es.object.to-string"].concat(c(xX))),Promise:yX("promise/index",wX),RegExp:yX(null,["es.regexp.constructor","es.regexp.exec","es.regexp.to-string"]),Set:yX("set/index",TX),Symbol:yX("symbol/index",["es.symbol","es.symbol.description","es.object.to-string"]),URL:yX("url/index",["web.url"].concat(c(IX))),URLSearchParams:yX("url-search-params/index",IX),WeakMap:yX("weak-map/index",jX),WeakSet:yX("weak-set/index",PX),clearImmediate:yX("clear-immediate",["web.immediate"]),compositeKey:yX("composite-key",["esnext.composite-key"]),compositeSymbol:yX("composite-symbol",["esnext.composite-symbol"]),fetch:yX(null,wX),globalThis:yX("global-this",["es.global-this"]),parseFloat:yX("parse-float",["es.parse-float"]),parseInt:yX("parse-int",["es.parse-int"]),queueMicrotask:yX("queue-microtask",["web.queue-microtask"]),setImmediate:yX("set-immediate",["web.immediate"]),setInterval:yX("set-interval",["web.timers"]),setTimeout:yX("set-timeout",["web.timers"])},kX={Array:{from:yX("array/from",["es.array.from","es.string.iterator"]),isArray:yX("array/is-array",["es.array.is-array"]),of:yX("array/of",["es.array.of"])},ArrayBuffer:{isView:yX(null,["es.array-buffer.is-view"])},Date:{now:yX("date/now",["es.date.now"])},JSON:{stringify:yX("json/stringify",[],"es.symbol")},Math:{DEG_PER_RAD:yX("math/deg-per-rad",["esnext.math.deg-per-rad"]),RAD_PER_DEG:yX("math/rad-per-deg",["esnext.math.rad-per-deg"]),acosh:yX("math/acosh",["es.math.acosh"]),asinh:yX("math/asinh",["es.math.asinh"]),atanh:yX("math/atanh",["es.math.atanh"]),cbrt:yX("math/cbrt",["es.math.cbrt"]),clamp:yX("math/clamp",["esnext.math.clamp"]),clz32:yX("math/clz32",["es.math.clz32"]),cosh:yX("math/cosh",["es.math.cosh"]),degrees:yX("math/degrees",["esnext.math.degrees"]),expm1:yX("math/expm1",["es.math.expm1"]),fround:yX("math/fround",["es.math.fround"]),fscale:yX("math/fscale",["esnext.math.fscale"]),hypot:yX("math/hypot",["es.math.hypot"]),iaddh:yX("math/iaddh",["esnext.math.iaddh"]),imul:yX("math/imul",["es.math.imul"]),imulh:yX("math/imulh",["esnext.math.imulh"]),isubh:yX("math/isubh",["esnext.math.isubh"]),log10:yX("math/log10",["es.math.log10"]),log1p:yX("math/log1p",["es.math.log1p"]),log2:yX("math/log2",["es.math.log2"]),radians:yX("math/radians",["esnext.math.radians"]),scale:yX("math/scale",["esnext.math.scale"]),seededPRNG:yX("math/seeded-prng",["esnext.math.seeded-prng"]),sign:yX("math/sign",["es.math.sign"]),signbit:yX("math/signbit",["esnext.math.signbit"]),sinh:yX("math/sinh",["es.math.sinh"]),tanh:yX("math/tanh",["es.math.tanh"]),trunc:yX("math/trunc",["es.math.trunc"]),umulh:yX("math/umulh",["esnext.math.umulh"])},Map:{from:yX(null,["esnext.map.from"].concat(c(SX))),groupBy:yX(null,["esnext.map.group-by"].concat(c(SX))),keyBy:yX(null,["esnext.map.key-by"].concat(c(SX))),of:yX(null,["esnext.map.of"].concat(c(SX)))},Number:{EPSILON:yX("number/epsilon",["es.number.epsilon"]),MAX_SAFE_INTEGER:yX("number/max-safe-integer",["es.number.max-safe-integer"]),MIN_SAFE_INTEGER:yX("number/min-safe-integer",["es.number.min-safe-integer"]),fromString:yX("number/from-string",["esnext.number.from-string"]),isFinite:yX("number/is-finite",["es.number.is-finite"]),isInteger:yX("number/is-integer",["es.number.is-integer"]),isNaN:yX("number/is-nan",["es.number.is-nan"]),isSafeInteger:yX("number/is-safe-integer",["es.number.is-safe-integer"]),parseFloat:yX("number/parse-float",["es.number.parse-float"]),parseInt:yX("number/parse-int",["es.number.parse-int"])},Object:{assign:yX("object/assign",["es.object.assign"]),create:yX("object/create",["es.object.create"]),defineProperties:yX("object/define-properties",["es.object.define-properties"]),defineProperty:yX("object/define-property",["es.object.define-property"]),entries:yX("object/entries",["es.object.entries"]),freeze:yX("object/freeze",["es.object.freeze"]),fromEntries:yX("object/from-entries",["es.object.from-entries","es.array.iterator"]),getOwnPropertyDescriptor:yX("object/get-own-property-descriptor",["es.object.get-own-property-descriptor"]),getOwnPropertyDescriptors:yX("object/get-own-property-descriptors",["es.object.get-own-property-descriptors"]),getOwnPropertyNames:yX("object/get-own-property-names",["es.object.get-own-property-names"]),getOwnPropertySymbols:yX("object/get-own-property-symbols",["es.symbol"]),getPrototypeOf:yX("object/get-prototype-of",["es.object.get-prototype-of"]),is:yX("object/is",["es.object.is"]),isExtensible:yX("object/is-extensible",["es.object.is-extensible"]),isFrozen:yX("object/is-frozen",["es.object.is-frozen"]),isSealed:yX("object/is-sealed",["es.object.is-sealed"]),keys:yX("object/keys",["es.object.keys"]),preventExtensions:yX("object/prevent-extensions",["es.object.prevent-extensions"]),seal:yX("object/seal",["es.object.seal"]),setPrototypeOf:yX("object/set-prototype-of",["es.object.set-prototype-of"]),values:yX("object/values",["es.object.values"])},Promise:{all:yX(null,CX),allSettled:yX(null,["es.promise.all-settled"].concat(c(CX))),any:yX(null,["esnext.promise.any"].concat(c(CX))),race:yX(null,CX),try:yX(null,["esnext.promise.try"].concat(c(CX)))},Reflect:{apply:yX("reflect/apply",["es.reflect.apply"]),construct:yX("reflect/construct",["es.reflect.construct"]),defineMetadata:yX("reflect/define-metadata",["esnext.reflect.define-metadata"]),defineProperty:yX("reflect/define-property",["es.reflect.define-property"]),deleteMetadata:yX("reflect/delete-metadata",["esnext.reflect.delete-metadata"]),deleteProperty:yX("reflect/delete-property",["es.reflect.delete-property"]),get:yX("reflect/get",["es.reflect.get"]),getMetadata:yX("reflect/get-metadata",["esnext.reflect.get-metadata"]),getMetadataKeys:yX("reflect/get-metadata-keys",["esnext.reflect.get-metadata-keys"]),getOwnMetadata:yX("reflect/get-own-metadata",["esnext.reflect.get-own-metadata"]),getOwnMetadataKeys:yX("reflect/get-own-metadata-keys",["esnext.reflect.get-own-metadata-keys"]),getOwnPropertyDescriptor:yX("reflect/get-own-property-descriptor",["es.reflect.get-own-property-descriptor"]),getPrototypeOf:yX("reflect/get-prototype-of",["es.reflect.get-prototype-of"]),has:yX("reflect/has",["es.reflect.has"]),hasMetadata:yX("reflect/has-metadata",["esnext.reflect.has-metadata"]),hasOwnMetadata:yX("reflect/has-own-metadata",["esnext.reflect.has-own-metadata"]),isExtensible:yX("reflect/is-extensible",["es.reflect.is-extensible"]),metadata:yX("reflect/metadata",["esnext.reflect.metadata"]),ownKeys:yX("reflect/own-keys",["es.reflect.own-keys"]),preventExtensions:yX("reflect/prevent-extensions",["es.reflect.prevent-extensions"]),set:yX("reflect/set",["es.reflect.set"]),setPrototypeOf:yX("reflect/set-prototype-of",["es.reflect.set-prototype-of"])},Set:{from:yX(null,["esnext.set.from"].concat(c(TX))),of:yX(null,["esnext.set.of"].concat(c(TX)))},String:{fromCodePoint:yX("string/from-code-point",["es.string.from-code-point"]),raw:yX("string/raw",["es.string.raw"])},Symbol:{asyncIterator:yX("symbol/async-iterator",["es.symbol.async-iterator"]),dispose:yX("symbol/dispose",["esnext.symbol.dispose"]),for:yX("symbol/for",[],"es.symbol"),hasInstance:yX("symbol/has-instance",["es.symbol.has-instance","es.function.has-instance"]),isConcatSpreadable:yX("symbol/is-concat-spreadable",["es.symbol.is-concat-spreadable","es.array.concat"]),iterator:yX("symbol/iterator",["es.symbol.iterator"].concat(c(xX))),keyFor:yX("symbol/key-for",[],"es.symbol"),match:yX("symbol/match",["es.symbol.match","es.string.match"]),observable:yX("symbol/observable",["esnext.symbol.observable"]),patternMatch:yX("symbol/pattern-match",["esnext.symbol.pattern-match"]),replace:yX("symbol/replace",["es.symbol.replace","es.string.replace"]),search:yX("symbol/search",["es.symbol.search","es.string.search"]),species:yX("symbol/species",["es.symbol.species","es.array.species"]),split:yX("symbol/split",["es.symbol.split","es.string.split"]),toPrimitive:yX("symbol/to-primitive",["es.symbol.to-primitive","es.date.to-primitive"]),toStringTag:yX("symbol/to-string-tag",["es.symbol.to-string-tag","es.object.to-string","es.math.to-string-tag","es.json.to-string-tag"]),unscopables:yX("symbol/unscopables",["es.symbol.unscopables"])},WeakMap:{from:yX(null,["esnext.weak-map.from"].concat(c(jX))),of:yX(null,["esnext.weak-map.of"].concat(c(jX)))},WeakSet:{from:yX(null,["esnext.weak-set.from"].concat(c(PX))),of:yX(null,["esnext.weak-set.of"].concat(c(PX)))},Int8Array:AX,Uint8Array:AX,Uint8ClampedArray:AX,Int16Array:AX,Uint16Array:AX,Int32Array:AX,Uint32Array:AX,Float32Array:AX,Float64Array:AX},OX={at:yX("instance/at",["esnext.string.at"]),anchor:yX(null,["es.string.anchor"]),big:yX(null,["es.string.big"]),bind:yX("instance/bind",["es.function.bind"]),blink:yX(null,["es.string.blink"]),bold:yX(null,["es.string.bold"]),codePointAt:yX("instance/code-point-at",["es.string.code-point-at"]),codePoints:yX("instance/code-points",["esnext.string.code-points"]),concat:yX("instance/concat",["es.array.concat"],void 0,["String"]),copyWithin:yX("instance/copy-within",["es.array.copy-within"]),description:yX(null,["es.symbol","es.symbol.description"]),endsWith:yX("instance/ends-with",["es.string.ends-with"]),entries:yX("instance/entries",EX),every:yX("instance/every",["es.array.every"]),exec:yX(null,["es.regexp.exec"]),fill:yX("instance/fill",["es.array.fill"]),filter:yX("instance/filter",["es.array.filter"]),finally:yX(null,["es.promise.finally"].concat(wX)),find:yX("instance/find",["es.array.find"]),findIndex:yX("instance/find-index",["es.array.find-index"]),fixed:yX(null,["es.string.fixed"]),flags:yX("instance/flags",["es.regexp.flags"]),flatMap:yX("instance/flat-map",["es.array.flat-map","es.array.unscopables.flat-map"]),flat:yX("instance/flat",["es.array.flat"]),fontcolor:yX(null,["es.string.fontcolor"]),fontsize:yX(null,["es.string.fontsize"]),forEach:yX("instance/for-each",["es.array.for-each","web.dom-collections.for-each"]),includes:yX("instance/includes",["es.array.includes","es.string.includes"]),indexOf:yX("instance/index-of",["es.array.index-of"]),italic:yX(null,["es.string.italics"]),join:yX(null,["es.array.join"]),keys:yX("instance/keys",EX),lastIndex:yX(null,["esnext.array.last-index"]),lastIndexOf:yX("instance/last-index-of",["es.array.last-index-of"]),lastItem:yX(null,["esnext.array.last-item"]),link:yX(null,["es.string.link"]),map:yX("instance/map",["es.array.map"]),match:yX(null,["es.string.match","es.regexp.exec"]),matchAll:yX("instance/match-all",["es.string.match-all"]),name:yX(null,["es.function.name"]),padEnd:yX("instance/pad-end",["es.string.pad-end"]),padStart:yX("instance/pad-start",["es.string.pad-start"]),reduce:yX("instance/reduce",["es.array.reduce"]),reduceRight:yX("instance/reduce-right",["es.array.reduce-right"]),repeat:yX("instance/repeat",["es.string.repeat"]),replace:yX(null,["es.string.replace","es.regexp.exec"]),replaceAll:yX("instance/replace-all",["esnext.string.replace-all"]),reverse:yX("instance/reverse",["es.array.reverse"]),search:yX(null,["es.string.search","es.regexp.exec"]),slice:yX("instance/slice",["es.array.slice"]),small:yX(null,["es.string.small"]),some:yX("instance/some",["es.array.some"]),sort:yX("instance/sort",["es.array.sort"]),splice:yX("instance/splice",["es.array.splice"]),split:yX(null,["es.string.split","es.regexp.exec"]),startsWith:yX("instance/starts-with",["es.string.starts-with"]),strike:yX(null,["es.string.strike"]),sub:yX(null,["es.string.sub"]),sup:yX(null,["es.string.sup"]),toFixed:yX(null,["es.number.to-fixed"]),toISOString:yX(null,["es.date.to-iso-string"]),toJSON:yX(null,["es.date.to-json","web.url.to-json"]),toPrecision:yX(null,["es.number.to-precision"]),toString:yX(null,["es.object.to-string","es.regexp.to-string","es.date.to-string"]),trim:yX("instance/trim",["es.string.trim"]),trimEnd:yX("instance/trim-end",["es.string.trim-end"]),trimLeft:yX("instance/trim-left",["es.string.trim-start"]),trimRight:yX("instance/trim-right",["es.string.trim-end"]),trimStart:yX("instance/trim-start",["es.string.trim-start"]),values:yX("instance/values",EX),__defineGetter__:yX(null,["es.object.define-getter"]),__defineSetter__:yX(null,["es.object.define-setter"]),__lookupGetter__:yX(null,["es.object.lookup-getter"]),__lookupSetter__:yX(null,["es.object.lookup-setter"])},RX=new Set(["es.object.to-string","es.object.define-getter","es.object.define-setter","es.object.lookup-getter","es.object.lookup-setter","es.regexp.exec"]),NX=t.types;function BX(e,t){var r,n,s=e.node.object;NX.isIdentifier(s)?(r=s,n=NX.cloneNode(s)):(r=e.scope.generateDeclaredUidIdentifier("context"),n=NX.assignmentExpression("=",NX.cloneNode(r),s)),e.replaceWith(NX.memberExpression(NX.callExpression(t,[n]),NX.identifier("call"))),e.parentPath.unshiftContainer("arguments",r)}function _X(e){return"core-js/modules/"+e+".js"}function LX(e,t,r){return t?t+"/core-js/"+e+r:"core-js-pure/features/"+e+".js"}var MX=t.types,UX=function(e,t){if(t(e))return!0;if(!e.startsWith("es."))return!1;var r="esnext."+e.slice(3);return!!pX[r]&&t(r)},GX=zH((function(e,t){var r=e.getUtils,n=e.method,s=e.shouldInjectPolyfill,a=e.createMetaResolver,i=e.debug,o=e.babel,u=t.version,l=void 0===u?3:u,c=t.proposals,p=t.shippedProposals,d=t["#__secret_key__@babel/runtime__compatibility"],h=(d=void 0===d?{}:d).useBabelRuntime,m=d.ext,y=void 0===m?".js":m,g=o.caller((function(e){return"babel-loader"===(null==e?void 0:e.name)})),v=a({global:FX,static:kX,instance:OX}),b=new Set(dX(l)),E=h?c?h+"/core-js":h+"/core-js-stable":c?"core-js-pure/features":"core-js-pure/stable";function x(e,t){return!!s(e)&&(i(e),t.injectGlobalImport(_X(e)),!0)}function D(e,t,r){void 0===r&&(r=!0);for(var n,s=f(e);!(n=s()).done;){var a=n.value;r?UX(a,(function(e){return x(e,t)})):x(a,t)}}function A(e,t,r,n){if(e.pure&&!(n&&e.exclude&&e.exclude.includes(n))&&UX(e.name,s))return r.injectDefaultImport(E+"/"+e.pure+y,t)}return{name:"corejs3",polyfills:pX,filterPolyfills:function(e){return!!b.has(e)&&(!(!c&&"entry-global"!==n)||(!(!p||!hX.has(e))||!e.startsWith("esnext.")))},entryGlobal:function(e,t,r){if("import"===e.kind){var n,a=("string"==typeof(n=e.source)&&(n=n.replace(/\\/g,"/").replace(/(\/(index)?)?(\.js)?$/i,"").toLowerCase()),hasOwnProperty.call(fX,n)&&fX[n]);a&&(1===a.length&&e.source===_X(a[0])&&s(a[0])?i(null):(D(a,t,!1),r.remove()))}},usageGlobal:function(e,t){var r=v(e);if(r){var n=r.desc.global;if("global"!==r.kind&&e.object&&"prototype"===e.placement){var s=e.object.toLowerCase();n=n.filter((function(e){return e.includes(s)||RX.has(e)}))}D(n,t)}},usagePure:function(e,t,r){if("in"!==e.kind){if(!r.parentPath.isUnaryExpression({operator:"delete"})){var n;if("property"===e.kind){if(!r.isMemberExpression())return;if(!r.isReferenced())return;if(n=r.parentPath.isCallExpression({callee:r.node}),"Symbol.iterator"===e.key){if(!s("es.symbol.iterator"))return;return void(n?0===r.parent.arguments.length?(r.parentPath.replaceWith(MX.callExpression(t.injectDefaultImport(LX("get-iterator",h,y),"getIterator"),[r.node.object])),r.skip()):BX(r,t.injectDefaultImport(LX("get-iterator-method",h,y),"getIteratorMethod")):r.replaceWith(MX.callExpression(t.injectDefaultImport(LX("get-iterator-method",h,y),"getIteratorMethod"),[r.node.object])))}}var a=v(e);if(a)if(h&&a.desc.pure&&"/index"===a.desc.pure.slice(-6)&&(a=Object.assign(Object.assign({},a),{},{desc:Object.assign(Object.assign({},a.desc),{},{pure:a.desc.pure.slice(0,-6)})})),"global"===a.kind){var i=A(a.desc,a.name,t);i&&r.replaceWith(i)}else if("static"===a.kind){var o=A(a.desc,a.name,t,e.object);o&&r.replaceWith(o)}else if("instance"===a.kind){var u=A(a.desc,a.name+"InstanceProperty",t,e.object);if(!u)return;n?BX(r,u):r.replaceWith(MX.callExpression(u,[r.node.object]))}}}else"Symbol.iterator"===e.key&&r.replaceWith(MX.callExpression(t.injectDefaultImport(LX("is-iterable",h,y),"isIterable"),[r.node.right]))},visitor:"usage-global"===n&&{CallExpression:function(e){if(e.get("callee").isImport()){var t=r(e);D(g?CX:wX,t)}},Function:function(e){e.node.async&&D(wX,r(e))},"ForOfStatement|ArrayPattern":function(e){D(bX,r(e))},SpreadElement:function(e){e.parentPath.isObjectExpression()||D(bX,r(e))},YieldExpression:function(e){e.node.delegate&&D(bX,r(e))}}}})),VX=zH((function(e,t){var r=e.debug,n=t["#__secret_key__@babel/runtime__compatibility"],s=(n=void 0===n?{}:n).useBabelRuntime,a=s?s+"/regenerator":"regenerator-runtime";return{name:"regenerator",polyfills:["regenerator-runtime"],usageGlobal:function(e,t){WX(e)&&(r("regenerator-runtime"),t.injectGlobalImport("regenerator-runtime/runtime.js"))},usagePure:function(e,t,r){WX(e)&&r.replaceWith(t.injectDefaultImport(a,"regenerator-runtime"))}}})),WX=function(e){return"global"===e.kind&&"regeneratorRuntime"===e.name},HX=cX.default||cX,XX=GX.default||GX,qX=VX.default||VX;function $X(e,t){return Object.keys(e).reduce((function(r,n){return t.has(n)||(r[n]=e[n]),r}),{})}var KX={withProposals:{withoutBugfixes:XW,withBugfixes:Object.assign({},XW,qW)},withoutProposals:{withoutBugfixes:$X(XW,gH.proposalPlugins),withBugfixes:$X(Object.assign({},XW,qW),gH.proposalPlugins)}};var zX=function(e){var t=UW[e]();if(!t)throw new Error('Could not find plugin "'+e+'". Ensure there is an entry in ./available-plugins.js for it.');return t},JX=function(e){return e.reduce((function(e,t){return e[t.match(/^(es|es6|es7|esnext|web)\./)?"builtIns":"plugins"].add(t),e}),{all:e,plugins:new Set,builtIns:new Set})};function YX(e){return!(null==e||!e.supportsStaticESM)}function QX(e){return!(null==e||!e.supportsDynamicImport)}function ZX(e){return!(null==e||!e.supportsExportNamespaceFrom)}function eq(e){return!(null==e||!e.supportsTopLevelAwait)}var tq=SF((function(e,t){e.assertVersion(7);var r=e.targets(),n=lH(t),s=n.bugfixes,a=n.configPath,i=n.debug,o=n.exclude,u=n.forceAllTransforms,l=n.ignoreBrowserslistConfig,c=n.include,p=n.loose,d=n.modules,f=n.shippedProposals,h=n.spec,m=n.targets,y=n.useBuiltIns,g=n.corejs,v=g.version,b=g.proposals,E=n.browserslistEnv,x=r;if(BU.lt(e.version,"7.13.0")||t.targets||t.configPath||t.browserslistEnv||t.ignoreBrowserslistConfig){var D=!1;null!=m&&m.uglify&&(D=!0,delete m.uglify,console.warn("\nThe uglify target has been deprecated. Set the top level\noption `forceAllTransforms: true` instead.\n")),x=function(e,t,r,n){return null!=e&&e.esmodules&&e.browsers&&console.warn("\n@babel/preset-env: esmodules and browsers targets have been specified together.\n`browsers` target, `"+e.browsers.toString()+"` will be ignored.\n"),nT(e,{ignoreBrowserslistConfig:t,configPath:r,browserslistEnv:n})}(m,l,a,E)}var A,w,C=u||D?{}:x,S=JX(c),T=JX(o),j=function(e,t){return e?t?KX.withProposals.withBugfixes:KX.withProposals.withoutBugfixes:t?KX.withoutProposals.withBugfixes:KX.withoutProposals.withoutBugfixes}(f,s),P="auto"===d&&(null==e.caller?void 0:e.caller(ZX))||!1===d&&!JS("proposal-export-namespace-from",C,{compatData:j,includes:S.plugins,excludes:T.plugins}),I=function(e){var t=e.modules,r=e.transformations,n=e.shouldTransformESM,s=e.shouldTransformDynamicImport,a=e.shouldTransformExportNamespaceFrom,i=e.shouldParseTopLevelAwait,o=[];return!1!==t&&r[t]?(n&&o.push(r[t]),s&&n&&"umd"!==t?o.push("proposal-dynamic-import"):(s&&console.warn("Dynamic import can only be supported when transforming ES modules to AMD, CommonJS or SystemJS. Only the parser plugin will be enabled."),o.push("syntax-dynamic-import"))):o.push("syntax-dynamic-import"),a?o.push("proposal-export-namespace-from"):o.push("syntax-export-namespace-from"),i&&o.push("syntax-top-level-await"),o}({modules:d,transformations:WW,shouldTransformESM:"auto"!==d||!(null!=e.caller&&e.caller(YX)),shouldTransformDynamicImport:"auto"!==d||!(null!=e.caller&&e.caller(QX)),shouldTransformExportNamespaceFrom:!P,shouldParseTopLevelAwait:!e.caller||e.caller(eq)}),F=function(e,t,r,n,s,a,i){var o=new Set,u={compatData:e,includes:t,excludes:r};for(var l in e)if(JS(l,n,u))o.add(l);else if(i){var c=i.get(l);c&&o.add(c)}return s&&s.forEach((function(e){return!r.has(e)&&o.add(e)})),a&&a.forEach((function(e){return!t.has(e)&&o.delete(e)})),o}(j,S.plugins,T.plugins,C,I,function(e){return e.loose?xW:null}({loose:p}),gH.pluginSyntaxMap);w=vH,(A=F).forEach((function(e){var t;null==(t=w[e])||t.forEach((function(e){return A.delete(e)}))})),function(e,t){e.forEach((function(r){VW(GW,r)&&BU.lt(t,GW[r])&&e.delete(r)}))}(F,e.version);var k=function(e){var t=e.useBuiltIns,r=e.corejs,n=e.polyfillTargets,s=e.include,a=e.exclude,i=e.proposals,o=e.shippedProposals,u=e.regenerator,l=e.debug,c=[];if("usage"===t||"entry"===t){var p={method:t+"-global",version:r?r.toString():void 0,targets:n,include:s,exclude:a,proposals:i,shippedProposals:o,debug:l};r&&("usage"===t?(2===r.major?c.push([HX,p],[SH,{usage:!0}]):c.push([XX,p],[SH,{usage:!0,deprecated:!0}]),u&&c.push([qX,{method:"usage-global",debug:l}])):2===r.major?c.push([SH,{regenerator:u}],[HX,p]):(c.push([XX,p],[SH,{deprecated:!0}]),u||c.push([AH,p])))}return c}({useBuiltIns:y,corejs:v,polyfillTargets:x,include:S.builtIns,exclude:T.builtIns,proposals:b,shippedProposals:f,regenerator:F.has("transform-regenerator"),debug:i}),O=!1!==y,R=Array.from(F).map((function(e){return"proposal-class-properties"===e||"proposal-private-methods"===e||"proposal-private-property-in-object"===e?[zX(e),{loose:p?"#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error":"#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"}]:[zX(e),{spec:h,loose:p,useBuiltIns:O}]})).concat(k);return i&&(console.log("@babel/preset-env: `DEBUG` option"),console.log("\nUsing targets:"),console.log(JSON.stringify($S(x),null,2)),console.log("\nUsing modules transform: "+d.toString()),console.log("\nUsing plugins:"),F.forEach((function(e){!function(e,t,r){var n=KS(e,t,r),s=r[e];if(s){for(var a="{",i=!0,o=0,u=Object.keys(n);o<u.length;o++){var l=u[o];i||(a+=","),i=!1,a+=" "+l,s[l]&&(a+=" < "+s[l])}a+=" }",console.log(" "+e+" "+a)}else console.log(" "+e)}(e,x,j)})),y||console.log("\nUsing polyfills: No polyfills were added, since the `useBuiltIns` option was not set.")),{plugins:R}}));var rq=SF((function(e,t){e.assertVersion(7);var r,n=(void 0===(r=t)&&(r={}),{all:r.all,allowDeclareFields:r.allowDeclareFields});return{plugins:[[xB,{all:n.all,allowDeclareFields:n.allowDeclareFields}]]}})),nq=new Map([["react",["cloneElement","createContext","createElement","createFactory","createRef","forwardRef","isValidElement","memo","lazy"]],["react-dom",["createPortal"]]]),sq=SF((function(e){return e.assertVersion(7),{name:"transform-react-pure-annotations",visitor:{CallExpression:function(e){(function(e){if(!M(e.node.callee)){for(var t,r=e.get("callee"),n=f(nq);!(t=n()).done;)for(var s,a=l(t.value,2),i=a[0],o=f(a[1]);!(s=o()).done;){var u=s.value;if(r.referencesImport(i,u))return!0}return!1}for(var c,p=f(nq);!(c=p()).done;){var d=l(c.value,2),h=d[0],m=d[1],y=e.get("callee.object");if(y.referencesImport(h,"default")||y.referencesImport(h,"*")){for(var g,v=f(m);!(g=v()).done;){var b=g.value;if(F(e.node.callee.property,{name:b}))return!0}return!1}}return!1})(e)&&ak(e)}}}}));var aq=SF((function(e,t){e.assertVersion(7);var r=function(e){void 0===e&&(e={});var t=e,r=t.pragma,n=t.pragmaFrag,s=e,a=s.pure,i=s.throwIfNamespace,o=void 0===i||i,u=s.runtime,l=void 0===u?"classic":u,c=s.importSource,p=s.useBuiltIns,d=s.useSpread;return"classic"===l&&(r=r||"React.createElement",n=n||"React.Fragment"),{development:!!e.development,importSource:c,pragma:r,pragmaFrag:n,pure:a,runtime:l,throwIfNamespace:o,useBuiltIns:p,useSpread:d}}(t),n=r.development,s=r.importSource,a=r.pragma,i=r.pragmaFrag,o=r.pure,u=r.runtime,l=r.throwIfNamespace;return{plugins:[[n?L_:B_,{importSource:s,pragma:a,pragmaFrag:i,runtime:u,throwIfNamespace:l,pure:o,useBuiltIns:!!t.useBuiltIns,useSpread:t.useSpread}],x_,!1!==o&&sq].filter(Boolean)}})),iq=new hC("@babel/preset-typescript");var oq,uq,lq=SF((function(e,t){e.assertVersion(7);var r=function(e){void 0===e&&(e={});var t=e,r=t.allowNamespaces,n=void 0===r||r,s=t.jsxPragma,a=t.onlyRemoveTypeImports,i=iq.validateStringOption("jsxPragmaFrag",e.jsxPragmaFrag,"React.Fragment"),o=iq.validateBooleanOption("allExtensions",e.allExtensions,!1),u=iq.validateBooleanOption("isTSX",e.isTSX,!1);return u&&iq.invariant(o,"isTSX:true requires allExtensions:true"),{allExtensions:o,allowNamespaces:n,isTSX:u,jsxPragma:s,jsxPragmaFrag:i,onlyRemoveTypeImports:a}}(t),n=r.allExtensions,s=r.allowNamespaces,a=r.isTSX,i=r.jsxPragma,o=r.jsxPragmaFrag,u=r.onlyRemoveTypeImports,l=function(e){return{allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,isTSX:e,jsxPragma:i,jsxPragmaFrag:o,onlyRemoveTypeImports:u}};return{overrides:n?[{plugins:[[fW,l(a)]]}]:[{test:/\.ts$/,plugins:[[fW,l(!1)]]},{test:/\.tsx$/,plugins:[[fW,l(!0)]]}]}})),cq=["text/jsx","text/babel"],pq=0;function dq(e,t){var r=document.createElement("script");t.type&&r.setAttribute("type",t.type),r.text=function(e,t){var r;return null!=t.url?r=t.url:(r="Inline Babel script",++pq>1&&(r+=" ("+pq+")")),e(t.content,function(e,t){var r=e.presets;return r||(r="module"===e.type?["react",["env",{targets:{esmodules:!0},modules:!1}]]:["react","env"]),{filename:t,presets:r,plugins:e.plugins||["proposal-class-properties","proposal-object-rest-spread","transform-flow-strip-types"],sourceMaps:"inline",sourceFileName:t}}(t,r)).code}(e,t),oq.appendChild(r)}function fq(e,t){var r=e.getAttribute(t);return""===r?[]:r?r.split(",").map((function(e){return e.trim()})):null}function hq(e,t){var r=[],n=t.length;function s(){var t,s;for(s=0;s<n;s++)if((t=r[s]).loaded&&!t.executed)t.executed=!0,dq(e,t);else if(!t.loaded&&!t.error&&!t.async)break}t.forEach((function(e,t){var n,a,i,o,u={async:e.hasAttribute("async"),type:e.getAttribute("data-type"),error:!1,executed:!1,plugins:fq(e,"data-plugins"),presets:fq(e,"data-presets")};e.src?(r[t]=Object.assign({},u,{content:null,loaded:!1,url:e.src}),n=e.src,a=function(e){r[t].loaded=!0,r[t].content=e,s()},i=function(){r[t].error=!0,s()},(o=new XMLHttpRequest).open("GET",n,!0),"overrideMimeType"in o&&o.overrideMimeType("text/plain"),o.onreadystatechange=function(){if(4===o.readyState){if(0!==o.status&&200!==o.status)throw i(),new Error("Could not load "+n);a(o.responseText)}},o.send(null)):r[t]=Object.assign({},u,{content:e.innerHTML,loaded:!0,url:e.getAttribute("data-module")||null})})),s()}var mq=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function yq(e,t){return mq(t)&&"string"==typeof t[0]?Object.prototype.hasOwnProperty.call(e,t[0])?[e[t[0]]].concat(t.slice(1)):void 0:"string"==typeof t?e[t]:t}function gq(e){var t=(e.presets||[]).map((function(e){var t=yq(Eq,e);if(!t)throw new Error('Invalid preset specified in Babel options: "'+e+'"');return mq(t)&&"object"==typeof t[0]&&Object.prototype.hasOwnProperty.call(t[0],"buildPreset")&&(t[0]=Object.assign({},t[0],{buildPreset:t[0].buildPreset})),t})),r=(e.plugins||[]).map((function(e){var t=yq(bq,e);if(!t)throw new Error('Invalid plugin specified in Babel options: "'+e+'"');return t}));return Object.assign({babelrc:!1},e,{presets:t,plugins:r})}function vq(e,t){return uF(e,gq(t))}var bq={},Eq={},xq=cA;function Dq(e,t){Object.prototype.hasOwnProperty.call(bq,e)&&console.warn('A plugin named "'+e+'" is already registered, it will be overridden'),bq[e]=t}function Aq(e){Object.keys(e).forEach((function(t){return Dq(t,e[t])}))}function wq(e,t){Object.prototype.hasOwnProperty.call(Eq,e)&&("env"===e?console.warn("@babel/preset-env is now included in @babel/standalone, please remove @babel/preset-env-standalone"):console.warn('A preset named "'+e+'" is already registered, it will be overridden')),Eq[e]=t}function Cq(e){Object.keys(e).forEach((function(t){return wq(t,e[t])}))}Aq(yW),Cq({env:tq,es2015:gW,es2016:function(){return{plugins:[bq["transform-exponentiation-operator"]]}},es2017:function(){return{plugins:[bq["transform-async-to-generator"]]}},react:aq,"stage-0":function(e,t){void 0===t&&(t={});var r=t,n=r.loose,s=void 0!==n&&n,a=r.useBuiltIns,i=void 0!==a&&a,o=r.decoratorsLegacy,u=void 0!==o&&o,l=r.decoratorsBeforeExport,c=r.pipelineProposal,p=void 0===c?"minimal":c,d=r.importAssertionsVersion;return{presets:[[EW,{loose:s,useBuiltIns:i,decoratorsLegacy:u,decoratorsBeforeExport:l,pipelineProposal:p,importAssertionsVersion:void 0===d?"september-2020":d}]],plugins:[HO]}},"stage-1":EW,"stage-2":bW,"stage-3":vW,"es2015-loose":{presets:[[gW,{loose:!0}]]},"es2015-no-commonjs":{presets:[[gW,{modules:!1}]]},typescript:lq,flow:rq});function Sq(){Tq()}function Tq(e){!function(e,t){oq=document.getElementsByTagName("head")[0],t||(t=document.getElementsByTagName("script"));for(var r=[],n=0;n<t.length;n++){var s=t.item(n),a=s.type.split(";")[0];-1!==cq.indexOf(a)&&r.push(s)}0!==r.length&&(console.warn("You are using the in-browser Babel transformer. Be sure to precompile your scripts for production - https://babeljs.io/docs/setup/"),hq(e,r))}(vq,e)}"undefined"!=typeof window&&null!=(uq=window)&&uq.addEventListener&&window.addEventListener("DOMContentLoaded",Sq,!1),e.availablePlugins=bq,e.availablePresets=Eq,e.buildExternalHelpers=xq,e.disableScriptTags=function(){window.removeEventListener("DOMContentLoaded",Sq)},e.registerPlugin=Dq,e.registerPlugins=Aq,e.registerPreset=wq,e.registerPresets=Cq,e.transform=vq,e.transformFromAst=function(e,t,r){return mF(e,t,gq(r))},e.transformScriptTags=Tq,e.version="7.14.6",Object.defineProperty(e,"__esModule",{value:!0})})); diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/react-dom.development.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/react-dom.development.js new file mode 100644 index 0000000000000000000000000000000000000000..2bc860246f884be1c7cb527ad025d0a927342c24 --- /dev/null +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/react-dom.development.js @@ -0,0 +1,25147 @@ +/** @license React v16.13.1 + * react-dom.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : + typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : + (global = global || self, factory(global.ReactDOM = {}, global.React)); +}(this, (function (exports, React) { 'use strict'; + + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions. + // Current owner and dispatcher used to share the same ref, + // but PR #14548 split them out to better support the react-debug-tools package. + + if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) { + ReactSharedInternals.ReactCurrentDispatcher = { + current: null + }; + } + + if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) { + ReactSharedInternals.ReactCurrentBatchConfig = { + suspense: null + }; + } + + // by calls to these methods by a Babel plugin. + // + // In PROD (or in packages without access to React internals), + // they are left as they are instead. + + function warn(format) { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + printWarning('warn', format, args); + } + } + function error(format) { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + + printWarning('error', format, args); + } + } + + function printWarning(level, format, args) { + // When changing this logic, you might want to also + // update consoleWithStackDev.www.js as well. + { + var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0; + + if (!hasExistingStack) { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + + if (stack !== '') { + format += '%s'; + args = args.concat([stack]); + } + } + + var argsWithFormat = args.map(function (item) { + return '' + item; + }); // Careful: RN currently depends on this prefix + + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it + // breaks IE9: https://github.com/facebook/react/issues/13610 + // eslint-disable-next-line react-internal/no-production-logging + + Function.prototype.apply.call(console[level], console, argsWithFormat); + + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + throw new Error(message); + } catch (x) {} + } + } + + if (!React) { + { + throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." ); + } + } + + var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) { + var funcArgs = Array.prototype.slice.call(arguments, 3); + + try { + func.apply(context, funcArgs); + } catch (error) { + this.onError(error); + } + }; + + { + // In DEV mode, we swap out invokeGuardedCallback for a special version + // that plays more nicely with the browser's DevTools. The idea is to preserve + // "Pause on exceptions" behavior. Because React wraps all user-provided + // functions in invokeGuardedCallback, and the production version of + // invokeGuardedCallback uses a try-catch, all user exceptions are treated + // like caught exceptions, and the DevTools won't pause unless the developer + // takes the extra step of enabling pause on caught exceptions. This is + // unintuitive, though, because even though React has caught the error, from + // the developer's perspective, the error is uncaught. + // + // To preserve the expected "Pause on exceptions" behavior, we don't use a + // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake + // DOM node, and call the user-provided callback from inside an event handler + // for that fake event. If the callback throws, the error is "captured" using + // a global event handler. But because the error happens in a different + // event loop context, it does not interrupt the normal program flow. + // Effectively, this gives us try-catch behavior without actually using + // try-catch. Neat! + // Check that the browser supports the APIs we need to implement our special + // DEV version of invokeGuardedCallback + if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') { + var fakeNode = document.createElement('react'); + + var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) { + // If document doesn't exist we know for sure we will crash in this method + // when we call document.createEvent(). However this can cause confusing + // errors: https://github.com/facebookincubator/create-react-app/issues/3482 + // So we preemptively throw with a better message instead. + if (!(typeof document !== 'undefined')) { + { + throw Error( "The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous." ); + } + } + + var evt = document.createEvent('Event'); // Keeps track of whether the user-provided callback threw an error. We + // set this to true at the beginning, then set it to false right after + // calling the function. If the function errors, `didError` will never be + // set to false. This strategy works even if the browser is flaky and + // fails to call our global error handler, because it doesn't rely on + // the error event at all. + + var didError = true; // Keeps track of the value of window.event so that we can reset it + // during the callback to let user code access window.event in the + // browsers that support it. + + var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event + // dispatching: https://github.com/facebook/react/issues/13688 + + var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event'); // Create an event handler for our fake event. We will synchronously + // dispatch our fake event using `dispatchEvent`. Inside the handler, we + // call the user-provided callback. + + var funcArgs = Array.prototype.slice.call(arguments, 3); + + function callCallback() { + // We immediately remove the callback from event listeners so that + // nested `invokeGuardedCallback` calls do not clash. Otherwise, a + // nested call would trigger the fake event handlers of any call higher + // in the stack. + fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the + // window.event assignment in both IE <= 10 as they throw an error + // "Member not found" in strict mode, and in Firefox which does not + // support window.event. + + if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) { + window.event = windowEvent; + } + + func.apply(context, funcArgs); + didError = false; + } // Create a global error event handler. We use this to capture the value + // that was thrown. It's possible that this error handler will fire more + // than once; for example, if non-React code also calls `dispatchEvent` + // and a handler for that event throws. We should be resilient to most of + // those cases. Even if our error event handler fires more than once, the + // last error event is always used. If the callback actually does error, + // we know that the last error event is the correct one, because it's not + // possible for anything else to have happened in between our callback + // erroring and the code that follows the `dispatchEvent` call below. If + // the callback doesn't error, but the error event was fired, we know to + // ignore it because `didError` will be false, as described above. + + + var error; // Use this to track whether the error event is ever called. + + var didSetError = false; + var isCrossOriginError = false; + + function handleWindowError(event) { + error = event.error; + didSetError = true; + + if (error === null && event.colno === 0 && event.lineno === 0) { + isCrossOriginError = true; + } + + if (event.defaultPrevented) { + // Some other error handler has prevented default. + // Browsers silence the error report if this happens. + // We'll remember this to later decide whether to log it or not. + if (error != null && typeof error === 'object') { + try { + error._suppressLogging = true; + } catch (inner) {// Ignore. + } + } + } + } // Create a fake event type. + + + var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers + + window.addEventListener('error', handleWindowError); + fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function + // errors, it will trigger our global error handler. + + evt.initEvent(evtType, false, false); + fakeNode.dispatchEvent(evt); + + if (windowEventDescriptor) { + Object.defineProperty(window, 'event', windowEventDescriptor); + } + + if (didError) { + if (!didSetError) { + // The callback errored, but the error event never fired. + error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.'); + } else if (isCrossOriginError) { + error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.'); + } + + this.onError(error); + } // Remove our event listeners + + + window.removeEventListener('error', handleWindowError); + }; + + invokeGuardedCallbackImpl = invokeGuardedCallbackDev; + } + } + + var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; + + var hasError = false; + var caughtError = null; // Used by event system to capture/rethrow the first error. + + var hasRethrowError = false; + var rethrowError = null; + var reporter = { + onError: function (error) { + hasError = true; + caughtError = error; + } + }; + /** + * Call a function while guarding against errors that happens within it. + * Returns an error if it throws, otherwise null. + * + * In production, this is implemented using a try-catch. The reason we don't + * use a try-catch directly is so that we can swap out a different + * implementation in DEV mode. + * + * @param {String} name of the guard to use for logging or debugging + * @param {Function} func The function to invoke + * @param {*} context The context to use when calling the function + * @param {...*} args Arguments for function + */ + + function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + hasError = false; + caughtError = null; + invokeGuardedCallbackImpl$1.apply(reporter, arguments); + } + /** + * Same as invokeGuardedCallback, but instead of returning an error, it stores + * it in a global so it can be rethrown by `rethrowCaughtError` later. + * TODO: See if caughtError and rethrowError can be unified. + * + * @param {String} name of the guard to use for logging or debugging + * @param {Function} func The function to invoke + * @param {*} context The context to use when calling the function + * @param {...*} args Arguments for function + */ + + function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { + invokeGuardedCallback.apply(this, arguments); + + if (hasError) { + var error = clearCaughtError(); + + if (!hasRethrowError) { + hasRethrowError = true; + rethrowError = error; + } + } + } + /** + * During execution of guarded functions we will capture the first error which + * we will rethrow to be handled by the top level error handler. + */ + + function rethrowCaughtError() { + if (hasRethrowError) { + var error = rethrowError; + hasRethrowError = false; + rethrowError = null; + throw error; + } + } + function hasCaughtError() { + return hasError; + } + function clearCaughtError() { + if (hasError) { + var error = caughtError; + hasError = false; + caughtError = null; + return error; + } else { + { + { + throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." ); + } + } + } + } + + var getFiberCurrentPropsFromNode = null; + var getInstanceFromNode = null; + var getNodeFromInstance = null; + function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) { + getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl; + getInstanceFromNode = getInstanceFromNodeImpl; + getNodeFromInstance = getNodeFromInstanceImpl; + + { + if (!getNodeFromInstance || !getInstanceFromNode) { + error('EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.'); + } + } + } + var validateEventDispatches; + + { + validateEventDispatches = function (event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + var listenersIsArr = Array.isArray(dispatchListeners); + var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; + var instancesIsArr = Array.isArray(dispatchInstances); + var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; + + if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) { + error('EventPluginUtils: Invalid `event`.'); + } + }; + } + /** + * Dispatch the event to the listener. + * @param {SyntheticEvent} event SyntheticEvent to handle + * @param {function} listener Application-level callback + * @param {*} inst Internal component instance + */ + + + function executeDispatch(event, listener, inst) { + var type = event.type || 'unknown-event'; + event.currentTarget = getNodeFromInstance(inst); + invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); + event.currentTarget = null; + } + /** + * Standard/simple iteration through an event's collected dispatches. + */ + + function executeDispatchesInOrder(event) { + var dispatchListeners = event._dispatchListeners; + var dispatchInstances = event._dispatchInstances; + + { + validateEventDispatches(event); + } + + if (Array.isArray(dispatchListeners)) { + for (var i = 0; i < dispatchListeners.length; i++) { + if (event.isPropagationStopped()) { + break; + } // Listeners and Instances are two parallel arrays that are always in sync. + + + executeDispatch(event, dispatchListeners[i], dispatchInstances[i]); + } + } else if (dispatchListeners) { + executeDispatch(event, dispatchListeners, dispatchInstances); + } + + event._dispatchListeners = null; + event._dispatchInstances = null; + } + + var FunctionComponent = 0; + var ClassComponent = 1; + var IndeterminateComponent = 2; // Before we know whether it is function or class + + var HostRoot = 3; // Root of a host tree. Could be nested inside another node. + + var HostPortal = 4; // A subtree. Could be an entry point to a different renderer. + + var HostComponent = 5; + var HostText = 6; + var Fragment = 7; + var Mode = 8; + var ContextConsumer = 9; + var ContextProvider = 10; + var ForwardRef = 11; + var Profiler = 12; + var SuspenseComponent = 13; + var MemoComponent = 14; + var SimpleMemoComponent = 15; + var LazyComponent = 16; + var IncompleteClassComponent = 17; + var DehydratedFragment = 18; + var SuspenseListComponent = 19; + var FundamentalComponent = 20; + var ScopeComponent = 21; + var Block = 22; + + /** + * Injectable ordering of event plugins. + */ + var eventPluginOrder = null; + /** + * Injectable mapping from names to event plugin modules. + */ + + var namesToPlugins = {}; + /** + * Recomputes the plugin list using the injected plugins and plugin ordering. + * + * @private + */ + + function recomputePluginOrdering() { + if (!eventPluginOrder) { + // Wait until an `eventPluginOrder` is injected. + return; + } + + for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName]; + var pluginIndex = eventPluginOrder.indexOf(pluginName); + + if (!(pluginIndex > -1)) { + { + throw Error( "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`." ); + } + } + + if (plugins[pluginIndex]) { + continue; + } + + if (!pluginModule.extractEvents) { + { + throw Error( "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not." ); + } + } + + plugins[pluginIndex] = pluginModule; + var publishedEvents = pluginModule.eventTypes; + + for (var eventName in publishedEvents) { + if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) { + { + throw Error( "EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`." ); + } + } + } + } + } + /** + * Publishes an event so that it can be dispatched by the supplied plugin. + * + * @param {object} dispatchConfig Dispatch configuration for the event. + * @param {object} PluginModule Plugin publishing the event. + * @return {boolean} True if the event was successfully published. + * @private + */ + + + function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { + if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) { + { + throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + eventName + "`." ); + } + } + + eventNameDispatchConfigs[eventName] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; + + if (phasedRegistrationNames) { + for (var phaseName in phasedRegistrationNames) { + if (phasedRegistrationNames.hasOwnProperty(phaseName)) { + var phasedRegistrationName = phasedRegistrationNames[phaseName]; + publishRegistrationName(phasedRegistrationName, pluginModule, eventName); + } + } + + return true; + } else if (dispatchConfig.registrationName) { + publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); + return true; + } + + return false; + } + /** + * Publishes a registration name that is used to identify dispatched events. + * + * @param {string} registrationName Registration name to add. + * @param {object} PluginModule Plugin publishing the event. + * @private + */ + + + function publishRegistrationName(registrationName, pluginModule, eventName) { + if (!!registrationNameModules[registrationName]) { + { + throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + registrationName + "`." ); + } + } + + registrationNameModules[registrationName] = pluginModule; + registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; + + { + var lowerCasedName = registrationName.toLowerCase(); + possibleRegistrationNames[lowerCasedName] = registrationName; + + if (registrationName === 'onDoubleClick') { + possibleRegistrationNames.ondblclick = registrationName; + } + } + } + /** + * Registers plugins so that they can extract and dispatch events. + */ + + /** + * Ordered list of injected plugins. + */ + + + var plugins = []; + /** + * Mapping from event name to dispatch config + */ + + var eventNameDispatchConfigs = {}; + /** + * Mapping from registration name to plugin module + */ + + var registrationNameModules = {}; + /** + * Mapping from registration name to event name + */ + + var registrationNameDependencies = {}; + /** + * Mapping from lowercase registration names to the properly cased version, + * used to warn in the case of missing event handlers. Available + * only in true. + * @type {Object} + */ + + var possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true + + /** + * Injects an ordering of plugins (by plugin name). This allows the ordering + * to be decoupled from injection of the actual plugins so that ordering is + * always deterministic regardless of packaging, on-the-fly injection, etc. + * + * @param {array} InjectedEventPluginOrder + * @internal + */ + + function injectEventPluginOrder(injectedEventPluginOrder) { + if (!!eventPluginOrder) { + { + throw Error( "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React." ); + } + } // Clone the ordering so it cannot be dynamically mutated. + + + eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); + recomputePluginOrdering(); + } + /** + * Injects plugins to be used by plugin event system. The plugin names must be + * in the ordering injected by `injectEventPluginOrder`. + * + * Plugins can be injected as part of page initialization or on-the-fly. + * + * @param {object} injectedNamesToPlugins Map from names to plugin modules. + * @internal + */ + + function injectEventPluginsByName(injectedNamesToPlugins) { + var isOrderingDirty = false; + + for (var pluginName in injectedNamesToPlugins) { + if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { + continue; + } + + var pluginModule = injectedNamesToPlugins[pluginName]; + + if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { + if (!!namesToPlugins[pluginName]) { + { + throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`." ); + } + } + + namesToPlugins[pluginName] = pluginModule; + isOrderingDirty = true; + } + } + + if (isOrderingDirty) { + recomputePluginOrdering(); + } + } + + var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined'); + + var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + var _assign = ReactInternals.assign; + + var PLUGIN_EVENT_SYSTEM = 1; + var IS_REPLAYED = 1 << 5; + var IS_FIRST_ANCESTOR = 1 << 6; + + var restoreImpl = null; + var restoreTarget = null; + var restoreQueue = null; + + function restoreStateOfTarget(target) { + // We perform this translation at the end of the event loop so that we + // always receive the correct fiber here + var internalInstance = getInstanceFromNode(target); + + if (!internalInstance) { + // Unmounted + return; + } + + if (!(typeof restoreImpl === 'function')) { + { + throw Error( "setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted. + + if (stateNode) { + var _props = getFiberCurrentPropsFromNode(stateNode); + + restoreImpl(internalInstance.stateNode, internalInstance.type, _props); + } + } + + function setRestoreImplementation(impl) { + restoreImpl = impl; + } + function enqueueStateRestore(target) { + if (restoreTarget) { + if (restoreQueue) { + restoreQueue.push(target); + } else { + restoreQueue = [target]; + } + } else { + restoreTarget = target; + } + } + function needsStateRestore() { + return restoreTarget !== null || restoreQueue !== null; + } + function restoreStateIfNeeded() { + if (!restoreTarget) { + return; + } + + var target = restoreTarget; + var queuedTargets = restoreQueue; + restoreTarget = null; + restoreQueue = null; + restoreStateOfTarget(target); + + if (queuedTargets) { + for (var i = 0; i < queuedTargets.length; i++) { + restoreStateOfTarget(queuedTargets[i]); + } + } + } + + var enableProfilerTimer = true; // Trace which interactions trigger each commit. + + var enableDeprecatedFlareAPI = false; // Experimental Host Component support. + + var enableFundamentalAPI = false; // Experimental Scope support. + var warnAboutStringRefs = false; + + // the renderer. Such as when we're dispatching events or if third party + // libraries need to call batchedUpdates. Eventually, this API will go away when + // everything is batched by default. We'll then have a similar API to opt-out of + // scheduled work and instead do synchronous work. + // Defaults + + var batchedUpdatesImpl = function (fn, bookkeeping) { + return fn(bookkeeping); + }; + + var discreteUpdatesImpl = function (fn, a, b, c, d) { + return fn(a, b, c, d); + }; + + var flushDiscreteUpdatesImpl = function () {}; + + var batchedEventUpdatesImpl = batchedUpdatesImpl; + var isInsideEventHandler = false; + var isBatchingEventUpdates = false; + + function finishEventHandler() { + // Here we wait until all updates have propagated, which is important + // when using controlled components within layers: + // https://github.com/facebook/react/issues/1698 + // Then we restore state of any controlled component. + var controlledComponentsHavePendingUpdates = needsStateRestore(); + + if (controlledComponentsHavePendingUpdates) { + // If a controlled event was fired, we may need to restore the state of + // the DOM node back to the controlled value. This is necessary when React + // bails out of the update without touching the DOM. + flushDiscreteUpdatesImpl(); + restoreStateIfNeeded(); + } + } + + function batchedUpdates(fn, bookkeeping) { + if (isInsideEventHandler) { + // If we are currently inside another batch, we need to wait until it + // fully completes before restoring state. + return fn(bookkeeping); + } + + isInsideEventHandler = true; + + try { + return batchedUpdatesImpl(fn, bookkeeping); + } finally { + isInsideEventHandler = false; + finishEventHandler(); + } + } + function batchedEventUpdates(fn, a, b) { + if (isBatchingEventUpdates) { + // If we are currently inside another batch, we need to wait until it + // fully completes before restoring state. + return fn(a, b); + } + + isBatchingEventUpdates = true; + + try { + return batchedEventUpdatesImpl(fn, a, b); + } finally { + isBatchingEventUpdates = false; + finishEventHandler(); + } + } // This is for the React Flare event system + function discreteUpdates(fn, a, b, c, d) { + var prevIsInsideEventHandler = isInsideEventHandler; + isInsideEventHandler = true; + + try { + return discreteUpdatesImpl(fn, a, b, c, d); + } finally { + isInsideEventHandler = prevIsInsideEventHandler; + + if (!isInsideEventHandler) { + finishEventHandler(); + } + } + } + function flushDiscreteUpdatesIfNeeded(timeStamp) { + // event.timeStamp isn't overly reliable due to inconsistencies in + // how different browsers have historically provided the time stamp. + // Some browsers provide high-resolution time stamps for all events, + // some provide low-resolution time stamps for all events. FF < 52 + // even mixes both time stamps together. Some browsers even report + // negative time stamps or time stamps that are 0 (iOS9) in some cases. + // Given we are only comparing two time stamps with equality (!==), + // we are safe from the resolution differences. If the time stamp is 0 + // we bail-out of preventing the flush, which can affect semantics, + // such as if an earlier flush removes or adds event listeners that + // are fired in the subsequent flush. However, this is the same + // behaviour as we had before this change, so the risks are low. + if (!isInsideEventHandler && (!enableDeprecatedFlareAPI )) { + flushDiscreteUpdatesImpl(); + } + } + function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) { + batchedUpdatesImpl = _batchedUpdatesImpl; + discreteUpdatesImpl = _discreteUpdatesImpl; + flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl; + batchedEventUpdatesImpl = _batchedEventUpdatesImpl; + } + + var DiscreteEvent = 0; + var UserBlockingEvent = 1; + var ContinuousEvent = 2; + + var ReactInternals$1 = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + var _ReactInternals$Sched = ReactInternals$1.Scheduler, + unstable_cancelCallback = _ReactInternals$Sched.unstable_cancelCallback, + unstable_now = _ReactInternals$Sched.unstable_now, + unstable_scheduleCallback = _ReactInternals$Sched.unstable_scheduleCallback, + unstable_shouldYield = _ReactInternals$Sched.unstable_shouldYield, + unstable_requestPaint = _ReactInternals$Sched.unstable_requestPaint, + unstable_getFirstCallbackNode = _ReactInternals$Sched.unstable_getFirstCallbackNode, + unstable_runWithPriority = _ReactInternals$Sched.unstable_runWithPriority, + unstable_next = _ReactInternals$Sched.unstable_next, + unstable_continueExecution = _ReactInternals$Sched.unstable_continueExecution, + unstable_pauseExecution = _ReactInternals$Sched.unstable_pauseExecution, + unstable_getCurrentPriorityLevel = _ReactInternals$Sched.unstable_getCurrentPriorityLevel, + unstable_ImmediatePriority = _ReactInternals$Sched.unstable_ImmediatePriority, + unstable_UserBlockingPriority = _ReactInternals$Sched.unstable_UserBlockingPriority, + unstable_NormalPriority = _ReactInternals$Sched.unstable_NormalPriority, + unstable_LowPriority = _ReactInternals$Sched.unstable_LowPriority, + unstable_IdlePriority = _ReactInternals$Sched.unstable_IdlePriority, + unstable_forceFrameRate = _ReactInternals$Sched.unstable_forceFrameRate, + unstable_flushAllWithoutAsserting = _ReactInternals$Sched.unstable_flushAllWithoutAsserting; + + // A reserved attribute. + // It is handled by React separately and shouldn't be written to the DOM. + var RESERVED = 0; // A simple string attribute. + // Attributes that aren't in the whitelist are presumed to have this type. + + var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called + // "enumerated" attributes with "true" and "false" as possible values. + // When true, it should be set to a "true" string. + // When false, it should be set to a "false" string. + + var BOOLEANISH_STRING = 2; // A real boolean attribute. + // When true, it should be present (set either to an empty string or its name). + // When false, it should be omitted. + + var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value. + // When true, it should be present (set either to an empty string or its name). + // When false, it should be omitted. + // For any other value, should be present with that value. + + var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric. + // When falsy, it should be removed. + + var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric. + // When falsy, it should be removed. + + var POSITIVE_NUMERIC = 6; + + /* eslint-disable max-len */ + var ATTRIBUTE_NAME_START_CHAR = ":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"; + /* eslint-enable max-len */ + + var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; + var ROOT_ATTRIBUTE_NAME = 'data-reactroot'; + var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$'); + var hasOwnProperty = Object.prototype.hasOwnProperty; + var illegalAttributeNameCache = {}; + var validatedAttributeNameCache = {}; + function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) { + return true; + } + + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) { + return false; + } + + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { + validatedAttributeNameCache[attributeName] = true; + return true; + } + + illegalAttributeNameCache[attributeName] = true; + + { + error('Invalid attribute name: `%s`', attributeName); + } + + return false; + } + function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { + if (propertyInfo !== null) { + return propertyInfo.type === RESERVED; + } + + if (isCustomComponentTag) { + return false; + } + + if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) { + return true; + } + + return false; + } + function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { + if (propertyInfo !== null && propertyInfo.type === RESERVED) { + return false; + } + + switch (typeof value) { + case 'function': // $FlowIssue symbol is perfectly valid here + + case 'symbol': + // eslint-disable-line + return true; + + case 'boolean': + { + if (isCustomComponentTag) { + return false; + } + + if (propertyInfo !== null) { + return !propertyInfo.acceptsBooleans; + } else { + var prefix = name.toLowerCase().slice(0, 5); + return prefix !== 'data-' && prefix !== 'aria-'; + } + } + + default: + return false; + } + } + function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { + if (value === null || typeof value === 'undefined') { + return true; + } + + if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) { + return true; + } + + if (isCustomComponentTag) { + return false; + } + + if (propertyInfo !== null) { + switch (propertyInfo.type) { + case BOOLEAN: + return !value; + + case OVERLOADED_BOOLEAN: + return value === false; + + case NUMERIC: + return isNaN(value); + + case POSITIVE_NUMERIC: + return isNaN(value) || value < 1; + } + } + + return false; + } + function getPropertyInfo(name) { + return properties.hasOwnProperty(name) ? properties[name] : null; + } + + function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) { + this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN; + this.attributeName = attributeName; + this.attributeNamespace = attributeNamespace; + this.mustUseProperty = mustUseProperty; + this.propertyName = name; + this.type = type; + this.sanitizeURL = sanitizeURL; + } // When adding attributes to this list, be sure to also add them to + // the `possibleStandardNames` module to ensure casing and incorrect + // name warnings. + + + var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM. + + var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular + // elements (not just inputs). Now that ReactDOMInput assigns to the + // defaultValue property -- do we need this? + 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style']; + + reservedProps.forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty + name, // attributeName + null, // attributeNamespace + false); + }); // A few React string attributes have a different name. + // This is a mapping from React prop names to the attribute names. + + [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) { + var name = _ref[0], + attributeName = _ref[1]; + properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty + attributeName, // attributeName + null, // attributeNamespace + false); + }); // These are "enumerated" HTML attributes that accept "true" and "false". + // In React, we let users pass `true` and `false` even though technically + // these aren't boolean attributes (they are coerced to strings). + + ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty + name.toLowerCase(), // attributeName + null, // attributeNamespace + false); + }); // These are "enumerated" SVG attributes that accept "true" and "false". + // In React, we let users pass `true` and `false` even though technically + // these aren't boolean attributes (they are coerced to strings). + // Since these are SVG attributes, their attribute names are case-sensitive. + + ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty + name, // attributeName + null, // attributeNamespace + false); + }); // These are HTML boolean attributes. + + ['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM + // on the client side because the browsers are inconsistent. Instead we call focus(). + 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata + 'itemScope'].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty + name.toLowerCase(), // attributeName + null, // attributeNamespace + false); + }); // These are the few React props that we set as DOM properties + // rather than attributes. These are all booleans. + + ['checked', // Note: `option.selected` is not updated if `select.multiple` is + // disabled with `removeAttribute`. We have special logic for handling this. + 'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty + name, // attributeName + null, // attributeNamespace + false); + }); // These are HTML attributes that are "overloaded booleans": they behave like + // booleans, but can also accept a string value. + + ['capture', 'download' // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty + name, // attributeName + null, // attributeNamespace + false); + }); // These are HTML attributes that must be positive numbers. + + ['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty + name, // attributeName + null, // attributeNamespace + false); + }); // These are HTML attributes that must be numbers. + + ['rowSpan', 'start'].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty + name.toLowerCase(), // attributeName + null, // attributeNamespace + false); + }); + var CAMELIZE = /[\-\:]([a-z])/g; + + var capitalize = function (token) { + return token[1].toUpperCase(); + }; // This is a list of all SVG attributes that need special casing, namespacing, + // or boolean value assignment. Regular attributes that just accept strings + // and have the same names are omitted, just like in the HTML whitelist. + // Some of these attributes can be hard to find. This list was created by + // scraping the MDN documentation. + + + ['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' // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function (attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty + attributeName, null, // attributeNamespace + false); + }); // String SVG attributes with the xlink namespace. + + ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function (attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty + attributeName, 'http://www.w3.org/1999/xlink', false); + }); // String SVG attributes with the xml namespace. + + ['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function (attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty + attributeName, 'http://www.w3.org/XML/1998/namespace', false); + }); // These attribute exists both in HTML and SVG. + // The attribute name is case-sensitive in SVG so we can't just use + // the React name like we do for attributes that exist only in HTML. + + ['tabIndex', 'crossOrigin'].forEach(function (attributeName) { + properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty + attributeName.toLowerCase(), // attributeName + null, // attributeNamespace + false); + }); // These attributes accept URLs. These must not allow javascript: URLS. + // These will also need to accept Trusted Types object in the future. + + var xlinkHref = 'xlinkHref'; + properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty + 'xlink:href', 'http://www.w3.org/1999/xlink', true); + ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) { + properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty + attributeName.toLowerCase(), // attributeName + null, // attributeNamespace + true); + }); + + var ReactDebugCurrentFrame = null; + + { + ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + } // A javascript: URL can contain leading C0 control or \u0020 SPACE, + // and any newline or tab are filtered out as if they're not part of the URL. + // https://url.spec.whatwg.org/#url-parsing + // Tab or newline are defined as \r\n\t: + // https://infra.spec.whatwg.org/#ascii-tab-or-newline + // A C0 control is a code point in the range \u0000 NULL to \u001F + // INFORMATION SEPARATOR ONE, inclusive: + // https://infra.spec.whatwg.org/#c0-control-or-space + + /* eslint-disable max-len */ + + + var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; + var didWarn = false; + + function sanitizeURL(url) { + { + if (!didWarn && isJavaScriptProtocol.test(url)) { + didWarn = true; + + error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url)); + } + } + } + + /** + * Get the value for a property on a node. Only used in DEV for SSR validation. + * The "expected" argument is used as a hint of what the expected value is. + * Some properties have multiple equivalent values. + */ + function getValueForProperty(node, name, expected, propertyInfo) { + { + if (propertyInfo.mustUseProperty) { + var propertyName = propertyInfo.propertyName; + return node[propertyName]; + } else { + if ( propertyInfo.sanitizeURL) { + // If we haven't fully disabled javascript: URLs, and if + // the hydration is successful of a javascript: URL, we + // still want to warn on the client. + sanitizeURL('' + expected); + } + + var attributeName = propertyInfo.attributeName; + var stringValue = null; + + if (propertyInfo.type === OVERLOADED_BOOLEAN) { + if (node.hasAttribute(attributeName)) { + var value = node.getAttribute(attributeName); + + if (value === '') { + return true; + } + + if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { + return value; + } + + if (value === '' + expected) { + return expected; + } + + return value; + } + } else if (node.hasAttribute(attributeName)) { + if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { + // We had an attribute but shouldn't have had one, so read it + // for the error message. + return node.getAttribute(attributeName); + } + + if (propertyInfo.type === BOOLEAN) { + // If this was a boolean, it doesn't matter what the value is + // the fact that we have it is the same as the expected. + return expected; + } // Even if this property uses a namespace we use getAttribute + // because we assume its namespaced name is the same as our config. + // To use getAttributeNS we need the local name which we don't have + // in our config atm. + + + stringValue = node.getAttribute(attributeName); + } + + if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { + return stringValue === null ? expected : stringValue; + } else if (stringValue === '' + expected) { + return expected; + } else { + return stringValue; + } + } + } + } + /** + * Get the value for a attribute on a node. Only used in DEV for SSR validation. + * The third argument is used as a hint of what the expected value is. Some + * attributes have multiple equivalent values. + */ + + function getValueForAttribute(node, name, expected) { + { + if (!isAttributeNameSafe(name)) { + return; + } + + if (!node.hasAttribute(name)) { + return expected === undefined ? undefined : null; + } + + var value = node.getAttribute(name); + + if (value === '' + expected) { + return expected; + } + + return value; + } + } + /** + * Sets the value for a property on a node. + * + * @param {DOMElement} node + * @param {string} name + * @param {*} value + */ + + function setValueForProperty(node, name, value, isCustomComponentTag) { + var propertyInfo = getPropertyInfo(name); + + if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) { + return; + } + + if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) { + value = null; + } // If the prop isn't in the special list, treat it as a simple attribute. + + + if (isCustomComponentTag || propertyInfo === null) { + if (isAttributeNameSafe(name)) { + var _attributeName = name; + + if (value === null) { + node.removeAttribute(_attributeName); + } else { + node.setAttribute(_attributeName, '' + value); + } + } + + return; + } + + var mustUseProperty = propertyInfo.mustUseProperty; + + if (mustUseProperty) { + var propertyName = propertyInfo.propertyName; + + if (value === null) { + var type = propertyInfo.type; + node[propertyName] = type === BOOLEAN ? false : ''; + } else { + // Contrary to `setAttribute`, object properties are properly + // `toString`ed by IE8/9. + node[propertyName] = value; + } + + return; + } // The rest are treated as attributes with special cases. + + + var attributeName = propertyInfo.attributeName, + attributeNamespace = propertyInfo.attributeNamespace; + + if (value === null) { + node.removeAttribute(attributeName); + } else { + var _type = propertyInfo.type; + var attributeValue; + + if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) { + // If attribute type is boolean, we know for sure it won't be an execution sink + // and we won't require Trusted Type here. + attributeValue = ''; + } else { + // `setAttribute` with objects becomes only `[object]` in IE8/9, + // ('' + value) makes it output the correct toString()-value. + { + attributeValue = '' + value; + } + + if (propertyInfo.sanitizeURL) { + sanitizeURL(attributeValue.toString()); + } + } + + if (attributeNamespace) { + node.setAttributeNS(attributeNamespace, attributeName, attributeValue); + } else { + node.setAttribute(attributeName, attributeValue); + } + } + } + + var BEFORE_SLASH_RE = /^(.*)[\\\/]/; + function describeComponentFrame (name, source, ownerName) { + var sourceInfo = ''; + + if (source) { + var path = source.fileName; + var fileName = path.replace(BEFORE_SLASH_RE, ''); + + { + // In DEV, include code for a common special case: + // prefer "folder/index.js" instead of just "index.js". + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + + if (match) { + var pathBeforeSlash = match[1]; + + if (pathBeforeSlash) { + var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); + fileName = folderName + '/' + fileName; + } + } + } + } + + sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; + } else if (ownerName) { + sourceInfo = ' (created by ' + ownerName + ')'; + } + + return '\n in ' + (name || 'Unknown') + sourceInfo; + } + + // The Symbol used to tag the ReactElement-like types. If there is no native Symbol + // nor polyfill, then a plain number is used for performance. + var hasSymbol = typeof Symbol === 'function' && Symbol.for; + var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; + var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; + var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; + var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; + var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; + var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; + var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary + var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; + var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; + var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; + var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; + var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; + var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; + var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; + var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== 'object') { + return null; + } + + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + + if (typeof maybeIterator === 'function') { + return maybeIterator; + } + + return null; + } + + var Uninitialized = -1; + var Pending = 0; + var Resolved = 1; + var Rejected = 2; + function refineResolvedLazyComponent(lazyComponent) { + return lazyComponent._status === Resolved ? lazyComponent._result : null; + } + function initializeLazyComponentType(lazyComponent) { + if (lazyComponent._status === Uninitialized) { + lazyComponent._status = Pending; + var ctor = lazyComponent._ctor; + var thenable = ctor(); + lazyComponent._result = thenable; + thenable.then(function (moduleObject) { + if (lazyComponent._status === Pending) { + var defaultExport = moduleObject.default; + + { + if (defaultExport === undefined) { + error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + "const MyComponent = lazy(() => import('./MyComponent'))", moduleObject); + } + } + + lazyComponent._status = Resolved; + lazyComponent._result = defaultExport; + } + }, function (error) { + if (lazyComponent._status === Pending) { + lazyComponent._status = Rejected; + lazyComponent._result = error; + } + }); + } + } + + function getWrappedName(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ''; + return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); + } + + function getComponentName(type) { + if (type == null) { + // Host root, text node or just invalid type. + return null; + } + + { + if (typeof type.tag === 'number') { + error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); + } + } + + if (typeof type === 'function') { + return type.displayName || type.name || null; + } + + if (typeof type === 'string') { + return type; + } + + switch (type) { + case REACT_FRAGMENT_TYPE: + return 'Fragment'; + + case REACT_PORTAL_TYPE: + return 'Portal'; + + case REACT_PROFILER_TYPE: + return "Profiler"; + + case REACT_STRICT_MODE_TYPE: + return 'StrictMode'; + + case REACT_SUSPENSE_TYPE: + return 'Suspense'; + + case REACT_SUSPENSE_LIST_TYPE: + return 'SuspenseList'; + } + + if (typeof type === 'object') { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return 'Context.Consumer'; + + case REACT_PROVIDER_TYPE: + return 'Context.Provider'; + + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, 'ForwardRef'); + + case REACT_MEMO_TYPE: + return getComponentName(type.type); + + case REACT_BLOCK_TYPE: + return getComponentName(type.render); + + case REACT_LAZY_TYPE: + { + var thenable = type; + var resolvedThenable = refineResolvedLazyComponent(thenable); + + if (resolvedThenable) { + return getComponentName(resolvedThenable); + } + + break; + } + } + } + + return null; + } + + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + + function describeFiber(fiber) { + switch (fiber.tag) { + case HostRoot: + case HostPortal: + case HostText: + case Fragment: + case ContextProvider: + case ContextConsumer: + return ''; + + default: + var owner = fiber._debugOwner; + var source = fiber._debugSource; + var name = getComponentName(fiber.type); + var ownerName = null; + + if (owner) { + ownerName = getComponentName(owner.type); + } + + return describeComponentFrame(name, source, ownerName); + } + } + + function getStackByFiberInDevAndProd(workInProgress) { + var info = ''; + var node = workInProgress; + + do { + info += describeFiber(node); + node = node.return; + } while (node); + + return info; + } + var current = null; + var isRendering = false; + function getCurrentFiberOwnerNameInDevOrNull() { + { + if (current === null) { + return null; + } + + var owner = current._debugOwner; + + if (owner !== null && typeof owner !== 'undefined') { + return getComponentName(owner.type); + } + } + + return null; + } + function getCurrentFiberStackInDev() { + { + if (current === null) { + return ''; + } // Safe because if current fiber exists, we are reconciling, + // and it is guaranteed to be the work-in-progress version. + + + return getStackByFiberInDevAndProd(current); + } + } + function resetCurrentFiber() { + { + ReactDebugCurrentFrame$1.getCurrentStack = null; + current = null; + isRendering = false; + } + } + function setCurrentFiber(fiber) { + { + ReactDebugCurrentFrame$1.getCurrentStack = getCurrentFiberStackInDev; + current = fiber; + isRendering = false; + } + } + function setIsRendering(rendering) { + { + isRendering = rendering; + } + } + + // Flow does not allow string concatenation of most non-string types. To work + // around this limitation, we use an opaque type that can only be obtained by + // passing the value through getToStringValue first. + function toString(value) { + return '' + value; + } + function getToStringValue(value) { + switch (typeof value) { + case 'boolean': + case 'number': + case 'object': + case 'string': + case 'undefined': + return value; + + default: + // function, symbol are assigned as empty strings + return ''; + } + } + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + + var ReactPropTypesSecret_1 = ReactPropTypesSecret; + + var printWarning$1 = function() {}; + + { + var ReactPropTypesSecret$1 = ReactPropTypesSecret_1; + var loggedTypeFailures = {}; + var has = Function.call.bind(Object.prototype.hasOwnProperty); + + printWarning$1 = function(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; + } + + /** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ + function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + { + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error( + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + ); + err.name = 'Invariant Violation'; + throw err; + } + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1); + } catch (ex) { + error = ex; + } + if (error && !(error instanceof Error)) { + printWarning$1( + (componentName || 'React class') + ': type specification of ' + + location + ' `' + typeSpecName + '` is invalid; the type checker ' + + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + + 'You may have forgotten to pass an argument to the type checker ' + + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + + 'shape all require an argument).' + ); + } + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + printWarning$1( + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') + ); + } + } + } + } + } + + /** + * Resets warning cache when testing. + * + * @private + */ + checkPropTypes.resetWarningCache = function() { + { + loggedTypeFailures = {}; + } + }; + + var checkPropTypes_1 = checkPropTypes; + + var ReactDebugCurrentFrame$2 = null; + var ReactControlledValuePropTypes = { + checkPropTypes: null + }; + + { + ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame; + var hasReadOnlyValue = { + button: true, + checkbox: true, + image: true, + hidden: true, + radio: true, + reset: true, + submit: true + }; + var propTypes = { + value: function (props, propName, componentName) { + if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableDeprecatedFlareAPI ) { + return null; + } + + return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); + }, + checked: function (props, propName, componentName) { + if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableDeprecatedFlareAPI ) { + return null; + } + + return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); + } + }; + /** + * Provide a linked `value` attribute for controlled forms. You should not use + * this outside of the ReactDOM controlled form components. + */ + + ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) { + checkPropTypes_1(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum); + }; + } + + function isCheckable(elem) { + var type = elem.type; + var nodeName = elem.nodeName; + return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio'); + } + + function getTracker(node) { + return node._valueTracker; + } + + function detachTracker(node) { + node._valueTracker = null; + } + + function getValueFromNode(node) { + var value = ''; + + if (!node) { + return value; + } + + if (isCheckable(node)) { + value = node.checked ? 'true' : 'false'; + } else { + value = node.value; + } + + return value; + } + + function trackValueOnNode(node) { + var valueField = isCheckable(node) ? 'checked' : 'value'; + var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); + var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail + // and don't track value will cause over reporting of changes, + // but it's better then a hard failure + // (needed for certain tests that spyOn input values and Safari) + + if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') { + return; + } + + var get = descriptor.get, + set = descriptor.set; + Object.defineProperty(node, valueField, { + configurable: true, + get: function () { + return get.call(this); + }, + set: function (value) { + currentValue = '' + value; + set.call(this, value); + } + }); // We could've passed this the first time + // but it triggers a bug in IE11 and Edge 14/15. + // Calling defineProperty() again should be equivalent. + // https://github.com/facebook/react/issues/11768 + + Object.defineProperty(node, valueField, { + enumerable: descriptor.enumerable + }); + var tracker = { + getValue: function () { + return currentValue; + }, + setValue: function (value) { + currentValue = '' + value; + }, + stopTracking: function () { + detachTracker(node); + delete node[valueField]; + } + }; + return tracker; + } + + function track(node) { + if (getTracker(node)) { + return; + } // TODO: Once it's just Fiber we can move this to node._wrapperState + + + node._valueTracker = trackValueOnNode(node); + } + function updateValueIfChanged(node) { + if (!node) { + return false; + } + + var tracker = getTracker(node); // if there is no tracker at this point it's unlikely + // that trying again will succeed + + if (!tracker) { + return true; + } + + var lastValue = tracker.getValue(); + var nextValue = getValueFromNode(node); + + if (nextValue !== lastValue) { + tracker.setValue(nextValue); + return true; + } + + return false; + } + + var didWarnValueDefaultValue = false; + var didWarnCheckedDefaultChecked = false; + var didWarnControlledToUncontrolled = false; + var didWarnUncontrolledToControlled = false; + + function isControlled(props) { + var usesChecked = props.type === 'checkbox' || props.type === 'radio'; + return usesChecked ? props.checked != null : props.value != null; + } + /** + * Implements an <input> host component that allows setting these optional + * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. + * + * If `checked` or `value` are not supplied (or null/undefined), user actions + * that affect the checked state or value will trigger updates to the element. + * + * If they are supplied (and not null/undefined), the rendered element will not + * trigger updates to the element. Instead, the props must change in order for + * the rendered element to be updated. + * + * The rendered element will be initialized as unchecked (or `defaultChecked`) + * with an empty value (or `defaultValue`). + * + * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html + */ + + + function getHostProps(element, props) { + var node = element; + var checked = props.checked; + + var hostProps = _assign({}, props, { + defaultChecked: undefined, + defaultValue: undefined, + value: undefined, + checked: checked != null ? checked : node._wrapperState.initialChecked + }); + + return hostProps; + } + function initWrapperState(element, props) { + { + ReactControlledValuePropTypes.checkPropTypes('input', props); + + if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) { + error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type); + + didWarnCheckedDefaultChecked = true; + } + + if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) { + error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type); + + didWarnValueDefaultValue = true; + } + } + + var node = element; + var defaultValue = props.defaultValue == null ? '' : props.defaultValue; + node._wrapperState = { + initialChecked: props.checked != null ? props.checked : props.defaultChecked, + initialValue: getToStringValue(props.value != null ? props.value : defaultValue), + controlled: isControlled(props) + }; + } + function updateChecked(element, props) { + var node = element; + var checked = props.checked; + + if (checked != null) { + setValueForProperty(node, 'checked', checked, false); + } + } + function updateWrapper(element, props) { + var node = element; + + { + var controlled = isControlled(props); + + if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) { + error('A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type); + + didWarnUncontrolledToControlled = true; + } + + if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) { + error('A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type); + + didWarnControlledToUncontrolled = true; + } + } + + updateChecked(element, props); + var value = getToStringValue(props.value); + var type = props.type; + + if (value != null) { + if (type === 'number') { + if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible. + // eslint-disable-next-line + node.value != value) { + node.value = toString(value); + } + } else if (node.value !== toString(value)) { + node.value = toString(value); + } + } else if (type === 'submit' || type === 'reset') { + // Submit/reset inputs need the attribute removed completely to avoid + // blank-text buttons. + node.removeAttribute('value'); + return; + } + + { + // When syncing the value attribute, the value comes from a cascade of + // properties: + // 1. The value React property + // 2. The defaultValue React property + // 3. Otherwise there should be no change + if (props.hasOwnProperty('value')) { + setDefaultValue(node, props.type, value); + } else if (props.hasOwnProperty('defaultValue')) { + setDefaultValue(node, props.type, getToStringValue(props.defaultValue)); + } + } + + { + // When syncing the checked attribute, it only changes when it needs + // to be removed, such as transitioning from a checkbox into a text input + if (props.checked == null && props.defaultChecked != null) { + node.defaultChecked = !!props.defaultChecked; + } + } + } + function postMountWrapper(element, props, isHydrating) { + var node = element; // Do not assign value if it is already set. This prevents user text input + // from being lost during SSR hydration. + + if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) { + var type = props.type; + var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the + // default value provided by the browser. See: #12872 + + if (isButton && (props.value === undefined || props.value === null)) { + return; + } + + var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input + // from being lost during SSR hydration. + + if (!isHydrating) { + { + // When syncing the value attribute, the value property should use + // the wrapperState._initialValue property. This uses: + // + // 1. The value React property when present + // 2. The defaultValue React property when present + // 3. An empty string + if (initialValue !== node.value) { + node.value = initialValue; + } + } + } + + { + // Otherwise, the value attribute is synchronized to the property, + // so we assign defaultValue to the same thing as the value property + // assignment step above. + node.defaultValue = initialValue; + } + } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug + // this is needed to work around a chrome bug where setting defaultChecked + // will sometimes influence the value of checked (even after detachment). + // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416 + // We need to temporarily unset name to avoid disrupting radio button groups. + + + var name = node.name; + + if (name !== '') { + node.name = ''; + } + + { + // When syncing the checked attribute, both the checked property and + // attribute are assigned at the same time using defaultChecked. This uses: + // + // 1. The checked React property when present + // 2. The defaultChecked React property when present + // 3. Otherwise, false + node.defaultChecked = !node.defaultChecked; + node.defaultChecked = !!node._wrapperState.initialChecked; + } + + if (name !== '') { + node.name = name; + } + } + function restoreControlledState(element, props) { + var node = element; + updateWrapper(node, props); + updateNamedCousins(node, props); + } + + function updateNamedCousins(rootNode, props) { + var name = props.name; + + if (props.type === 'radio' && name != null) { + var queryRoot = rootNode; + + while (queryRoot.parentNode) { + queryRoot = queryRoot.parentNode; + } // If `rootNode.form` was non-null, then we could try `form.elements`, + // but that sometimes behaves strangely in IE8. We could also try using + // `form.getElementsByName`, but that will only return direct children + // and won't include inputs that use the HTML5 `form=` attribute. Since + // the input might not even be in a form. It might not even be in the + // document. Let's just use the local `querySelectorAll` to ensure we don't + // miss anything. + + + var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]'); + + for (var i = 0; i < group.length; i++) { + var otherNode = group[i]; + + if (otherNode === rootNode || otherNode.form !== rootNode.form) { + continue; + } // This will throw if radio buttons rendered by different copies of React + // and the same name are rendered into the same form (same as #1939). + // That's probably okay; we don't support it just as we don't support + // mixing React radio buttons with non-React ones. + + + var otherProps = getFiberCurrentPropsFromNode$1(otherNode); + + if (!otherProps) { + { + throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." ); + } + } // We need update the tracked value on the named cousin since the value + // was changed but the input saw no event or value set + + + updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that + // was previously checked to update will cause it to be come re-checked + // as appropriate. + + updateWrapper(otherNode, otherProps); + } + } + } // In Chrome, assigning defaultValue to certain input types triggers input validation. + // For number inputs, the display value loses trailing decimal points. For email inputs, + // Chrome raises "The specified value <x> is not a valid email address". + // + // Here we check to see if the defaultValue has actually changed, avoiding these problems + // when the user is inputting text + // + // https://github.com/facebook/react/issues/7253 + + + function setDefaultValue(node, type, value) { + if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js + type !== 'number' || node.ownerDocument.activeElement !== node) { + if (value == null) { + node.defaultValue = toString(node._wrapperState.initialValue); + } else if (node.defaultValue !== toString(value)) { + node.defaultValue = toString(value); + } + } + } + + var didWarnSelectedSetOnOption = false; + var didWarnInvalidChild = false; + + function flattenChildren(children) { + var content = ''; // Flatten children. We'll warn if they are invalid + // during validateProps() which runs for hydration too. + // Note that this would throw on non-element objects. + // Elements are stringified (which is normally irrelevant + // but matters for <fbt>). + + React.Children.forEach(children, function (child) { + if (child == null) { + return; + } + + content += child; // Note: we don't warn about invalid children here. + // Instead, this is done separately below so that + // it happens during the hydration codepath too. + }); + return content; + } + /** + * Implements an <option> host component that warns when `selected` is set. + */ + + + function validateProps(element, props) { + { + // This mirrors the codepath above, but runs for hydration too. + // Warn about invalid children here so that client and hydration are consistent. + // TODO: this seems like it could cause a DEV-only throw for hydration + // if children contains a non-element object. We should try to avoid that. + if (typeof props.children === 'object' && props.children !== null) { + React.Children.forEach(props.children, function (child) { + if (child == null) { + return; + } + + if (typeof child === 'string' || typeof child === 'number') { + return; + } + + if (typeof child.type !== 'string') { + return; + } + + if (!didWarnInvalidChild) { + didWarnInvalidChild = true; + + error('Only strings and numbers are supported as <option> children.'); + } + }); + } // TODO: Remove support for `selected` in <option>. + + + if (props.selected != null && !didWarnSelectedSetOnOption) { + error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.'); + + didWarnSelectedSetOnOption = true; + } + } + } + function postMountWrapper$1(element, props) { + // value="" should make a value attribute (#6219) + if (props.value != null) { + element.setAttribute('value', toString(getToStringValue(props.value))); + } + } + function getHostProps$1(element, props) { + var hostProps = _assign({ + children: undefined + }, props); + + var content = flattenChildren(props.children); + + if (content) { + hostProps.children = content; + } + + return hostProps; + } + + var didWarnValueDefaultValue$1; + + { + didWarnValueDefaultValue$1 = false; + } + + function getDeclarationErrorAddendum() { + var ownerName = getCurrentFiberOwnerNameInDevOrNull(); + + if (ownerName) { + return '\n\nCheck the render method of `' + ownerName + '`.'; + } + + return ''; + } + + var valuePropNames = ['value', 'defaultValue']; + /** + * Validation function for `value` and `defaultValue`. + */ + + function checkSelectPropTypes(props) { + { + ReactControlledValuePropTypes.checkPropTypes('select', props); + + for (var i = 0; i < valuePropNames.length; i++) { + var propName = valuePropNames[i]; + + if (props[propName] == null) { + continue; + } + + var isArray = Array.isArray(props[propName]); + + if (props.multiple && !isArray) { + error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum()); + } else if (!props.multiple && isArray) { + error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum()); + } + } + } + } + + function updateOptions(node, multiple, propValue, setDefaultSelected) { + var options = node.options; + + if (multiple) { + var selectedValues = propValue; + var selectedValue = {}; + + for (var i = 0; i < selectedValues.length; i++) { + // Prefix to avoid chaos with special keys. + selectedValue['$' + selectedValues[i]] = true; + } + + for (var _i = 0; _i < options.length; _i++) { + var selected = selectedValue.hasOwnProperty('$' + options[_i].value); + + if (options[_i].selected !== selected) { + options[_i].selected = selected; + } + + if (selected && setDefaultSelected) { + options[_i].defaultSelected = true; + } + } + } else { + // Do not set `select.value` as exact behavior isn't consistent across all + // browsers for all cases. + var _selectedValue = toString(getToStringValue(propValue)); + + var defaultSelected = null; + + for (var _i2 = 0; _i2 < options.length; _i2++) { + if (options[_i2].value === _selectedValue) { + options[_i2].selected = true; + + if (setDefaultSelected) { + options[_i2].defaultSelected = true; + } + + return; + } + + if (defaultSelected === null && !options[_i2].disabled) { + defaultSelected = options[_i2]; + } + } + + if (defaultSelected !== null) { + defaultSelected.selected = true; + } + } + } + /** + * Implements a <select> host component that allows optionally setting the + * props `value` and `defaultValue`. If `multiple` is false, the prop must be a + * stringable. If `multiple` is true, the prop must be an array of stringables. + * + * If `value` is not supplied (or null/undefined), user actions that change the + * selected option will trigger updates to the rendered options. + * + * If it is supplied (and not null/undefined), the rendered options will not + * update in response to user actions. Instead, the `value` prop must change in + * order for the rendered options to update. + * + * If `defaultValue` is provided, any options with the supplied values will be + * selected. + */ + + + function getHostProps$2(element, props) { + return _assign({}, props, { + value: undefined + }); + } + function initWrapperState$1(element, props) { + var node = element; + + { + checkSelectPropTypes(props); + } + + node._wrapperState = { + wasMultiple: !!props.multiple + }; + + { + if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) { + error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components'); + + didWarnValueDefaultValue$1 = true; + } + } + } + function postMountWrapper$2(element, props) { + var node = element; + node.multiple = !!props.multiple; + var value = props.value; + + if (value != null) { + updateOptions(node, !!props.multiple, value, false); + } else if (props.defaultValue != null) { + updateOptions(node, !!props.multiple, props.defaultValue, true); + } + } + function postUpdateWrapper(element, props) { + var node = element; + var wasMultiple = node._wrapperState.wasMultiple; + node._wrapperState.wasMultiple = !!props.multiple; + var value = props.value; + + if (value != null) { + updateOptions(node, !!props.multiple, value, false); + } else if (wasMultiple !== !!props.multiple) { + // For simplicity, reapply `defaultValue` if `multiple` is toggled. + if (props.defaultValue != null) { + updateOptions(node, !!props.multiple, props.defaultValue, true); + } else { + // Revert the select back to its default unselected state. + updateOptions(node, !!props.multiple, props.multiple ? [] : '', false); + } + } + } + function restoreControlledState$1(element, props) { + var node = element; + var value = props.value; + + if (value != null) { + updateOptions(node, !!props.multiple, value, false); + } + } + + var didWarnValDefaultVal = false; + + /** + * Implements a <textarea> host component that allows setting `value`, and + * `defaultValue`. This differs from the traditional DOM API because value is + * usually set as PCDATA children. + * + * If `value` is not supplied (or null/undefined), user actions that affect the + * value will trigger updates to the element. + * + * If `value` is supplied (and not null/undefined), the rendered element will + * not trigger updates to the element. Instead, the `value` prop must change in + * order for the rendered element to be updated. + * + * The rendered element will be initialized with an empty value, the prop + * `defaultValue` if specified, or the children content (deprecated). + */ + function getHostProps$3(element, props) { + var node = element; + + if (!(props.dangerouslySetInnerHTML == null)) { + { + throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." ); + } + } // Always set children to the same thing. In IE9, the selection range will + // get reset if `textContent` is mutated. We could add a check in setTextContent + // to only set the value if/when the value differs from the node value (which would + // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this + // solution. The value can be a boolean or object so that's why it's forced + // to be a string. + + + var hostProps = _assign({}, props, { + value: undefined, + defaultValue: undefined, + children: toString(node._wrapperState.initialValue) + }); + + return hostProps; + } + function initWrapperState$2(element, props) { + var node = element; + + { + ReactControlledValuePropTypes.checkPropTypes('textarea', props); + + if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) { + error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component'); + + didWarnValDefaultVal = true; + } + } + + var initialValue = props.value; // Only bother fetching default value if we're going to use it + + if (initialValue == null) { + var children = props.children, + defaultValue = props.defaultValue; + + if (children != null) { + { + error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.'); + } + + { + if (!(defaultValue == null)) { + { + throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." ); + } + } + + if (Array.isArray(children)) { + if (!(children.length <= 1)) { + { + throw Error( "<textarea> can only have at most one child." ); + } + } + + children = children[0]; + } + + defaultValue = children; + } + } + + if (defaultValue == null) { + defaultValue = ''; + } + + initialValue = defaultValue; + } + + node._wrapperState = { + initialValue: getToStringValue(initialValue) + }; + } + function updateWrapper$1(element, props) { + var node = element; + var value = getToStringValue(props.value); + var defaultValue = getToStringValue(props.defaultValue); + + if (value != null) { + // Cast `value` to a string to ensure the value is set correctly. While + // browsers typically do this as necessary, jsdom doesn't. + var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed + + if (newValue !== node.value) { + node.value = newValue; + } + + if (props.defaultValue == null && node.defaultValue !== newValue) { + node.defaultValue = newValue; + } + } + + if (defaultValue != null) { + node.defaultValue = toString(defaultValue); + } + } + function postMountWrapper$3(element, props) { + var node = element; // This is in postMount because we need access to the DOM node, which is not + // available until after the component has mounted. + + var textContent = node.textContent; // Only set node.value if textContent is equal to the expected + // initial value. In IE10/IE11 there is a bug where the placeholder attribute + // will populate textContent as well. + // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/ + + if (textContent === node._wrapperState.initialValue) { + if (textContent !== '' && textContent !== null) { + node.value = textContent; + } + } + } + function restoreControlledState$2(element, props) { + // DOM component is still mounted; update + updateWrapper$1(element, props); + } + + var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; + var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; + var SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; + var Namespaces = { + html: HTML_NAMESPACE, + mathml: MATH_NAMESPACE, + svg: SVG_NAMESPACE + }; // Assumes there is no parent namespace. + + function getIntrinsicNamespace(type) { + switch (type) { + case 'svg': + return SVG_NAMESPACE; + + case 'math': + return MATH_NAMESPACE; + + default: + return HTML_NAMESPACE; + } + } + function getChildNamespace(parentNamespace, type) { + if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) { + // No (or default) parent namespace: potential entry point. + return getIntrinsicNamespace(type); + } + + if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') { + // We're leaving SVG. + return HTML_NAMESPACE; + } // By default, pass namespace below. + + + return parentNamespace; + } + + /* globals MSApp */ + + /** + * Create a function which has 'unsafe' privileges (required by windows8 apps) + */ + var createMicrosoftUnsafeLocalFunction = function (func) { + if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) { + return function (arg0, arg1, arg2, arg3) { + MSApp.execUnsafeLocalFunction(function () { + return func(arg0, arg1, arg2, arg3); + }); + }; + } else { + return func; + } + }; + + var reusableSVGContainer; + /** + * Set the innerHTML property of a node + * + * @param {DOMElement} node + * @param {string} html + * @internal + */ + + var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) { + if (node.namespaceURI === Namespaces.svg) { + + if (!('innerHTML' in node)) { + // IE does not have innerHTML for SVG nodes, so instead we inject the + // new markup in a temp node and then move the child nodes across into + // the target node + reusableSVGContainer = reusableSVGContainer || document.createElement('div'); + reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>'; + var svgNode = reusableSVGContainer.firstChild; + + while (node.firstChild) { + node.removeChild(node.firstChild); + } + + while (svgNode.firstChild) { + node.appendChild(svgNode.firstChild); + } + + return; + } + } + + node.innerHTML = html; + }); + + /** + * HTML nodeType values that represent the type of the node + */ + var ELEMENT_NODE = 1; + var TEXT_NODE = 3; + var COMMENT_NODE = 8; + var DOCUMENT_NODE = 9; + var DOCUMENT_FRAGMENT_NODE = 11; + + /** + * Set the textContent property of a node. For text updates, it's faster + * to set the `nodeValue` of the Text node directly instead of using + * `.textContent` which will remove the existing node and create a new one. + * + * @param {DOMElement} node + * @param {string} text + * @internal + */ + + var setTextContent = function (node, text) { + if (text) { + var firstChild = node.firstChild; + + if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) { + firstChild.nodeValue = text; + return; + } + } + + node.textContent = text; + }; + + // Do not use the below two methods directly! + // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM. + // (It is the only module that is allowed to access these methods.) + function unsafeCastStringToDOMTopLevelType(topLevelType) { + return topLevelType; + } + function unsafeCastDOMTopLevelTypeToString(topLevelType) { + return topLevelType; + } + + /** + * Generate a mapping of standard vendor prefixes using the defined style property and event name. + * + * @param {string} styleProp + * @param {string} eventName + * @returns {object} + */ + + function makePrefixMap(styleProp, eventName) { + var prefixes = {}; + prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); + prefixes['Webkit' + styleProp] = 'webkit' + eventName; + prefixes['Moz' + styleProp] = 'moz' + eventName; + return prefixes; + } + /** + * A list of event names to a configurable list of vendor prefixes. + */ + + + var vendorPrefixes = { + animationend: makePrefixMap('Animation', 'AnimationEnd'), + animationiteration: makePrefixMap('Animation', 'AnimationIteration'), + animationstart: makePrefixMap('Animation', 'AnimationStart'), + transitionend: makePrefixMap('Transition', 'TransitionEnd') + }; + /** + * Event names that have already been detected and prefixed (if applicable). + */ + + var prefixedEventNames = {}; + /** + * Element to check for prefixes on. + */ + + var style = {}; + /** + * Bootstrap if a DOM exists. + */ + + if (canUseDOM) { + style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x, + // the un-prefixed "animation" and "transition" properties are defined on the + // style object but the events that fire will still be prefixed, so we need + // to check if the un-prefixed events are usable, and if not remove them from the map. + + if (!('AnimationEvent' in window)) { + delete vendorPrefixes.animationend.animation; + delete vendorPrefixes.animationiteration.animation; + delete vendorPrefixes.animationstart.animation; + } // Same as above + + + if (!('TransitionEvent' in window)) { + delete vendorPrefixes.transitionend.transition; + } + } + /** + * Attempts to determine the correct vendor prefixed event name. + * + * @param {string} eventName + * @returns {string} + */ + + + function getVendorPrefixedEventName(eventName) { + if (prefixedEventNames[eventName]) { + return prefixedEventNames[eventName]; + } else if (!vendorPrefixes[eventName]) { + return eventName; + } + + var prefixMap = vendorPrefixes[eventName]; + + for (var styleProp in prefixMap) { + if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) { + return prefixedEventNames[eventName] = prefixMap[styleProp]; + } + } + + return eventName; + } + + /** + * To identify top level events in ReactDOM, we use constants defined by this + * module. This is the only module that uses the unsafe* methods to express + * that the constants actually correspond to the browser event names. This lets + * us save some bundle size by avoiding a top level type -> event name map. + * The rest of ReactDOM code should import top level types from this file. + */ + + var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort'); + var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend')); + var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration')); + var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart')); + var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur'); + var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay'); + var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough'); + var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel'); + var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change'); + var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click'); + var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close'); + var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend'); + var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart'); + var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate'); + var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu'); + var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy'); + var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut'); + var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick'); + var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick'); + var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag'); + var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend'); + var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter'); + var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit'); + var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave'); + var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover'); + var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart'); + var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop'); + var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange'); + var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied'); + var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted'); + var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended'); + var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error'); + var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus'); + var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture'); + var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input'); + var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid'); + var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown'); + var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress'); + var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup'); + var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load'); + var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart'); + var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata'); + var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata'); + var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture'); + var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown'); + var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove'); + var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout'); + var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover'); + var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup'); + var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste'); + var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause'); + var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play'); + var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing'); + var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel'); + var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown'); + var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove'); + var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout'); + var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover'); + var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup'); + var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress'); + var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange'); + var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset'); + var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll'); + var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked'); + var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking'); + var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange'); + var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled'); + var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit'); + var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend'); + var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput'); + var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate'); + var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle'); + var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel'); + var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend'); + var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove'); + var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart'); + var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend')); + var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange'); + var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting'); + var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); // List of events that need to be individually attached to media elements. + // Note that events in this list will *not* be listened to at the top level + // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`. + + var mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING]; + function getRawEventName(topLevelType) { + return unsafeCastDOMTopLevelTypeToString(topLevelType); + } + + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // prettier-ignore + + var elementListenerMap = new PossiblyWeakMap(); + function getListenerMapForElement(element) { + var listenerMap = elementListenerMap.get(element); + + if (listenerMap === undefined) { + listenerMap = new Map(); + elementListenerMap.set(element, listenerMap); + } + + return listenerMap; + } + + /** + * `ReactInstanceMap` maintains a mapping from a public facing stateful + * instance (key) and the internal representation (value). This allows public + * methods to accept the user facing instance as an argument and map them back + * to internal methods. + * + * Note that this module is currently shared and assumed to be stateless. + * If this becomes an actual Map, that will break. + */ + function get(key) { + return key._reactInternalFiber; + } + function has$1(key) { + return key._reactInternalFiber !== undefined; + } + function set(key, value) { + key._reactInternalFiber = value; + } + + // Don't change these two values. They're used by React Dev Tools. + var NoEffect = + /* */ + 0; + var PerformedWork = + /* */ + 1; // You can change the rest (and add more). + + var Placement = + /* */ + 2; + var Update = + /* */ + 4; + var PlacementAndUpdate = + /* */ + 6; + var Deletion = + /* */ + 8; + var ContentReset = + /* */ + 16; + var Callback = + /* */ + 32; + var DidCapture = + /* */ + 64; + var Ref = + /* */ + 128; + var Snapshot = + /* */ + 256; + var Passive = + /* */ + 512; + var Hydrating = + /* */ + 1024; + var HydratingAndUpdate = + /* */ + 1028; // Passive & Update & Callback & Ref & Snapshot + + var LifecycleEffectMask = + /* */ + 932; // Union of all host effects + + var HostEffectMask = + /* */ + 2047; + var Incomplete = + /* */ + 2048; + var ShouldCapture = + /* */ + 4096; + + var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; + function getNearestMountedFiber(fiber) { + var node = fiber; + var nearestMounted = fiber; + + if (!fiber.alternate) { + // If there is no alternate, this might be a new tree that isn't inserted + // yet. If it is, then it will have a pending insertion effect on it. + var nextNode = node; + + do { + node = nextNode; + + if ((node.effectTag & (Placement | Hydrating)) !== NoEffect) { + // This is an insertion or in-progress hydration. The nearest possible + // mounted fiber is the parent but we need to continue to figure out + // if that one is still mounted. + nearestMounted = node.return; + } + + nextNode = node.return; + } while (nextNode); + } else { + while (node.return) { + node = node.return; + } + } + + if (node.tag === HostRoot) { + // TODO: Check if this was a nested HostRoot when used with + // renderContainerIntoSubtree. + return nearestMounted; + } // If we didn't hit the root, that means that we're in an disconnected tree + // that has been unmounted. + + + return null; + } + function getSuspenseInstanceFromFiber(fiber) { + if (fiber.tag === SuspenseComponent) { + var suspenseState = fiber.memoizedState; + + if (suspenseState === null) { + var current = fiber.alternate; + + if (current !== null) { + suspenseState = current.memoizedState; + } + } + + if (suspenseState !== null) { + return suspenseState.dehydrated; + } + } + + return null; + } + function getContainerFromFiber(fiber) { + return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null; + } + function isFiberMounted(fiber) { + return getNearestMountedFiber(fiber) === fiber; + } + function isMounted(component) { + { + var owner = ReactCurrentOwner.current; + + if (owner !== null && owner.tag === ClassComponent) { + var ownerFiber = owner; + var instance = ownerFiber.stateNode; + + if (!instance._warnedAboutRefsInRender) { + error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component'); + } + + instance._warnedAboutRefsInRender = true; + } + } + + var fiber = get(component); + + if (!fiber) { + return false; + } + + return getNearestMountedFiber(fiber) === fiber; + } + + function assertIsMounted(fiber) { + if (!(getNearestMountedFiber(fiber) === fiber)) { + { + throw Error( "Unable to find node on an unmounted component." ); + } + } + } + + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + + if (!alternate) { + // If there is no alternate, then we only need to check if it is mounted. + var nearestMounted = getNearestMountedFiber(fiber); + + if (!(nearestMounted !== null)) { + { + throw Error( "Unable to find node on an unmounted component." ); + } + } + + if (nearestMounted !== fiber) { + return null; + } + + return fiber; + } // If we have two possible branches, we'll walk backwards up to the root + // to see what path the root points to. On the way we may hit one of the + // special cases and we'll deal with them. + + + var a = fiber; + var b = alternate; + + while (true) { + var parentA = a.return; + + if (parentA === null) { + // We're at the root. + break; + } + + var parentB = parentA.alternate; + + if (parentB === null) { + // There is no alternate. This is an unusual case. Currently, it only + // happens when a Suspense component is hidden. An extra fragment fiber + // is inserted in between the Suspense fiber and its children. Skip + // over this extra fragment fiber and proceed to the next parent. + var nextParent = parentA.return; + + if (nextParent !== null) { + a = b = nextParent; + continue; + } // If there's no parent, we're at the root. + + + break; + } // If both copies of the parent fiber point to the same child, we can + // assume that the child is current. This happens when we bailout on low + // priority: the bailed out fiber's child reuses the current child. + + + if (parentA.child === parentB.child) { + var child = parentA.child; + + while (child) { + if (child === a) { + // We've determined that A is the current branch. + assertIsMounted(parentA); + return fiber; + } + + if (child === b) { + // We've determined that B is the current branch. + assertIsMounted(parentA); + return alternate; + } + + child = child.sibling; + } // We should never have an alternate for any mounting node. So the only + // way this could possibly happen is if this was unmounted, if at all. + + + { + { + throw Error( "Unable to find node on an unmounted component." ); + } + } + } + + if (a.return !== b.return) { + // The return pointer of A and the return pointer of B point to different + // fibers. We assume that return pointers never criss-cross, so A must + // belong to the child set of A.return, and B must belong to the child + // set of B.return. + a = parentA; + b = parentB; + } else { + // The return pointers point to the same fiber. We'll have to use the + // default, slow path: scan the child sets of each parent alternate to see + // which child belongs to which set. + // + // Search parent A's child set + var didFindChild = false; + var _child = parentA.child; + + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentA; + b = parentB; + break; + } + + if (_child === b) { + didFindChild = true; + b = parentA; + a = parentB; + break; + } + + _child = _child.sibling; + } + + if (!didFindChild) { + // Search parent B's child set + _child = parentB.child; + + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentB; + b = parentA; + break; + } + + if (_child === b) { + didFindChild = true; + b = parentB; + a = parentA; + break; + } + + _child = _child.sibling; + } + + if (!didFindChild) { + { + throw Error( "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." ); + } + } + } + } + + if (!(a.alternate === b)) { + { + throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." ); + } + } + } // If the root is not a host container, we're in a disconnected tree. I.e. + // unmounted. + + + if (!(a.tag === HostRoot)) { + { + throw Error( "Unable to find node on an unmounted component." ); + } + } + + if (a.stateNode.current === a) { + // We've determined that A is the current branch. + return fiber; + } // Otherwise B has to be current branch. + + + return alternate; + } + function findCurrentHostFiber(parent) { + var currentParent = findCurrentFiberUsingSlowPath(parent); + + if (!currentParent) { + return null; + } // Next we'll drill down this component to find the first HostComponent/Text. + + + var node = currentParent; + + while (true) { + if (node.tag === HostComponent || node.tag === HostText) { + return node; + } else if (node.child) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === currentParent) { + return null; + } + + while (!node.sibling) { + if (!node.return || node.return === currentParent) { + return null; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } // Flow needs the return null here, but ESLint complains about it. + // eslint-disable-next-line no-unreachable + + + return null; + } + function findCurrentHostFiberWithNoPortals(parent) { + var currentParent = findCurrentFiberUsingSlowPath(parent); + + if (!currentParent) { + return null; + } // Next we'll drill down this component to find the first HostComponent/Text. + + + var node = currentParent; + + while (true) { + if (node.tag === HostComponent || node.tag === HostText || enableFundamentalAPI ) { + return node; + } else if (node.child && node.tag !== HostPortal) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === currentParent) { + return null; + } + + while (!node.sibling) { + if (!node.return || node.return === currentParent) { + return null; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } // Flow needs the return null here, but ESLint complains about it. + // eslint-disable-next-line no-unreachable + + + return null; + } + + /** + * Accumulates items that must not be null or undefined into the first one. This + * is used to conserve memory by avoiding array allocations, and thus sacrifices + * API cleanness. Since `current` can be null before being passed in and not + * null after this function, make sure to assign it back to `current`: + * + * `a = accumulateInto(a, b);` + * + * This API should be sparingly used. Try `accumulate` for something cleaner. + * + * @return {*|array<*>} An accumulation of items. + */ + + function accumulateInto(current, next) { + if (!(next != null)) { + { + throw Error( "accumulateInto(...): Accumulated items must not be null or undefined." ); + } + } + + if (current == null) { + return next; + } // Both are not empty. Warning: Never call x.concat(y) when you are not + // certain that x is an Array (x could be a string with concat method). + + + if (Array.isArray(current)) { + if (Array.isArray(next)) { + current.push.apply(current, next); + return current; + } + + current.push(next); + return current; + } + + if (Array.isArray(next)) { + // A bit too dangerous to mutate `next`. + return [current].concat(next); + } + + return [current, next]; + } + + /** + * @param {array} arr an "accumulation" of items which is either an Array or + * a single item. Useful when paired with the `accumulate` module. This is a + * simple utility that allows us to reason about a collection of items, but + * handling the case when there is exactly one item (and we do not need to + * allocate an array). + * @param {function} cb Callback invoked with each element or a collection. + * @param {?} [scope] Scope used as `this` in a callback. + */ + function forEachAccumulated(arr, cb, scope) { + if (Array.isArray(arr)) { + arr.forEach(cb, scope); + } else if (arr) { + cb.call(scope, arr); + } + } + + /** + * Internal queue of events that have accumulated their dispatches and are + * waiting to have their dispatches executed. + */ + + var eventQueue = null; + /** + * Dispatches an event and releases it back into the pool, unless persistent. + * + * @param {?object} event Synthetic event to be dispatched. + * @private + */ + + var executeDispatchesAndRelease = function (event) { + if (event) { + executeDispatchesInOrder(event); + + if (!event.isPersistent()) { + event.constructor.release(event); + } + } + }; + + var executeDispatchesAndReleaseTopLevel = function (e) { + return executeDispatchesAndRelease(e); + }; + + function runEventsInBatch(events) { + if (events !== null) { + eventQueue = accumulateInto(eventQueue, events); + } // Set `eventQueue` to null before processing it so that we can tell if more + // events get enqueued while processing. + + + var processingEventQueue = eventQueue; + eventQueue = null; + + if (!processingEventQueue) { + return; + } + + forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); + + if (!!eventQueue) { + { + throw Error( "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented." ); + } + } // This would be a good time to rethrow if any of the event handlers threw. + + + rethrowCaughtError(); + } + + /** + * Gets the target node from a native browser event by accounting for + * inconsistencies in browser DOM APIs. + * + * @param {object} nativeEvent Native browser event. + * @return {DOMEventTarget} Target node. + */ + + function getEventTarget(nativeEvent) { + // Fallback to nativeEvent.srcElement for IE9 + // https://github.com/facebook/react/issues/12506 + var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963 + + if (target.correspondingUseElement) { + target = target.correspondingUseElement; + } // Safari may fire events on text nodes (Node.TEXT_NODE is 3). + // @see http://www.quirksmode.org/js/events_properties.html + + + return target.nodeType === TEXT_NODE ? target.parentNode : target; + } + + /** + * Checks if an event is supported in the current execution environment. + * + * NOTE: This will not work correctly for non-generic events such as `change`, + * `reset`, `load`, `error`, and `select`. + * + * Borrows from Modernizr. + * + * @param {string} eventNameSuffix Event name, e.g. "click". + * @return {boolean} True if the event is supported. + * @internal + * @license Modernizr 3.0.0pre (Custom Build) | MIT + */ + + function isEventSupported(eventNameSuffix) { + if (!canUseDOM) { + return false; + } + + var eventName = 'on' + eventNameSuffix; + var isSupported = eventName in document; + + if (!isSupported) { + var element = document.createElement('div'); + element.setAttribute(eventName, 'return;'); + isSupported = typeof element[eventName] === 'function'; + } + + return isSupported; + } + + /** + * Summary of `DOMEventPluginSystem` event handling: + * + * - Top-level delegation is used to trap most native browser events. This + * may only occur in the main thread and is the responsibility of + * ReactDOMEventListener, which is injected and can therefore support + * pluggable event sources. This is the only work that occurs in the main + * thread. + * + * - We normalize and de-duplicate events to account for browser quirks. This + * may be done in the worker thread. + * + * - Forward these native events (with the associated top-level type used to + * trap it) to `EventPluginRegistry`, which in turn will ask plugins if they want + * to extract any synthetic events. + * + * - The `EventPluginRegistry` will then process each event by annotating them with + * "dispatches", a sequence of listeners and IDs that care about that event. + * + * - The `EventPluginRegistry` then dispatches the events. + * + * Overview of React and the event system: + * + * +------------+ . + * | DOM | . + * +------------+ . + * | . + * v . + * +------------+ . + * | ReactEvent | . + * | Listener | . + * +------------+ . +-----------+ + * | . +--------+|SimpleEvent| + * | . | |Plugin | + * +-----|------+ . v +-----------+ + * | | | . +--------------+ +------------+ + * | +-----------.--->|PluginRegistry| | Event | + * | | . | | +-----------+ | Propagators| + * | ReactEvent | . | | |TapEvent | |------------| + * | Emitter | . | |<---+|Plugin | |other plugin| + * | | . | | +-----------+ | utilities | + * | +-----------.--->| | +------------+ + * | | | . +--------------+ + * +-----|------+ . ^ +-----------+ + * | . | |Enter/Leave| + * + . +-------+|Plugin | + * +-------------+ . +-----------+ + * | application | . + * |-------------| . + * | | . + * | | . + * +-------------+ . + * . + * React Core . General Purpose Event Plugin System + */ + + var CALLBACK_BOOKKEEPING_POOL_SIZE = 10; + var callbackBookkeepingPool = []; + + function releaseTopLevelCallbackBookKeeping(instance) { + instance.topLevelType = null; + instance.nativeEvent = null; + instance.targetInst = null; + instance.ancestors.length = 0; + + if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) { + callbackBookkeepingPool.push(instance); + } + } // Used to store ancestor hierarchy in top level callback + + + function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags) { + if (callbackBookkeepingPool.length) { + var instance = callbackBookkeepingPool.pop(); + instance.topLevelType = topLevelType; + instance.eventSystemFlags = eventSystemFlags; + instance.nativeEvent = nativeEvent; + instance.targetInst = targetInst; + return instance; + } + + return { + topLevelType: topLevelType, + eventSystemFlags: eventSystemFlags, + nativeEvent: nativeEvent, + targetInst: targetInst, + ancestors: [] + }; + } + /** + * Find the deepest React component completely containing the root of the + * passed-in instance (for use when entire React trees are nested within each + * other). If React trees are not nested, returns null. + */ + + + function findRootContainerNode(inst) { + if (inst.tag === HostRoot) { + return inst.stateNode.containerInfo; + } // TODO: It may be a good idea to cache this to prevent unnecessary DOM + // traversal, but caching is difficult to do correctly without using a + // mutation observer to listen for all DOM changes. + + + while (inst.return) { + inst = inst.return; + } + + if (inst.tag !== HostRoot) { + // This can happen if we're in a detached tree. + return null; + } + + return inst.stateNode.containerInfo; + } + /** + * Allows registered plugins an opportunity to extract events from top-level + * native browser events. + * + * @return {*} An accumulation of synthetic events. + * @internal + */ + + + function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { + var events = null; + + for (var i = 0; i < plugins.length; i++) { + // Not every plugin in the ordering may be loaded at runtime. + var possiblePlugin = plugins[i]; + + if (possiblePlugin) { + var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags); + + if (extractedEvents) { + events = accumulateInto(events, extractedEvents); + } + } + } + + return events; + } + + function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { + var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags); + runEventsInBatch(events); + } + + function handleTopLevel(bookKeeping) { + var targetInst = bookKeeping.targetInst; // Loop through the hierarchy, in case there's any nested components. + // It's important that we build the array of ancestors before calling any + // event handlers, because event handlers can modify the DOM, leading to + // inconsistencies with ReactMount's node cache. See #1105. + + var ancestor = targetInst; + + do { + if (!ancestor) { + var ancestors = bookKeeping.ancestors; + ancestors.push(ancestor); + break; + } + + var root = findRootContainerNode(ancestor); + + if (!root) { + break; + } + + var tag = ancestor.tag; + + if (tag === HostComponent || tag === HostText) { + bookKeeping.ancestors.push(ancestor); + } + + ancestor = getClosestInstanceFromNode(root); + } while (ancestor); + + for (var i = 0; i < bookKeeping.ancestors.length; i++) { + targetInst = bookKeeping.ancestors[i]; + var eventTarget = getEventTarget(bookKeeping.nativeEvent); + var topLevelType = bookKeeping.topLevelType; + var nativeEvent = bookKeeping.nativeEvent; + var eventSystemFlags = bookKeeping.eventSystemFlags; // If this is the first ancestor, we mark it on the system flags + + if (i === 0) { + eventSystemFlags |= IS_FIRST_ANCESTOR; + } + + runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, eventTarget, eventSystemFlags); + } + } + + function dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) { + var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags); + + try { + // Event queue being processed in the same cycle allows + // `preventDefault`. + batchedEventUpdates(handleTopLevel, bookKeeping); + } finally { + releaseTopLevelCallbackBookKeeping(bookKeeping); + } + } + /** + * We listen for bubbled touch events on the document object. + * + * Firefox v8.01 (and possibly others) exhibited strange behavior when + * mounting `onmousemove` events at some node that was not the document + * element. The symptoms were that if your mouse is not moving over something + * contained within that mount point (for example on the background) the + * top-level listeners for `onmousemove` won't be called. However, if you + * register the `mousemove` on the document object, then it will of course + * catch all `mousemove`s. This along with iOS quirks, justifies restricting + * top-level listeners to the document object only, at least for these + * movement types of events and possibly all events. + * + * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html + * + * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but + * they bubble to document. + * + * @param {string} registrationName Name of listener (e.g. `onClick`). + * @param {object} mountAt Container where to mount the listener + */ + + function legacyListenToEvent(registrationName, mountAt) { + var listenerMap = getListenerMapForElement(mountAt); + var dependencies = registrationNameDependencies[registrationName]; + + for (var i = 0; i < dependencies.length; i++) { + var dependency = dependencies[i]; + legacyListenToTopLevelEvent(dependency, mountAt, listenerMap); + } + } + function legacyListenToTopLevelEvent(topLevelType, mountAt, listenerMap) { + if (!listenerMap.has(topLevelType)) { + switch (topLevelType) { + case TOP_SCROLL: + trapCapturedEvent(TOP_SCROLL, mountAt); + break; + + case TOP_FOCUS: + case TOP_BLUR: + trapCapturedEvent(TOP_FOCUS, mountAt); + trapCapturedEvent(TOP_BLUR, mountAt); // We set the flag for a single dependency later in this function, + // but this ensures we mark both as attached rather than just one. + + listenerMap.set(TOP_BLUR, null); + listenerMap.set(TOP_FOCUS, null); + break; + + case TOP_CANCEL: + case TOP_CLOSE: + if (isEventSupported(getRawEventName(topLevelType))) { + trapCapturedEvent(topLevelType, mountAt); + } + + break; + + case TOP_INVALID: + case TOP_SUBMIT: + case TOP_RESET: + // We listen to them on the target DOM elements. + // Some of them bubble so we don't want them to fire twice. + break; + + default: + // By default, listen on the top level to all non-media events. + // Media events don't bubble so adding the listener wouldn't do anything. + var isMediaEvent = mediaEventTypes.indexOf(topLevelType) !== -1; + + if (!isMediaEvent) { + trapBubbledEvent(topLevelType, mountAt); + } + + break; + } + + listenerMap.set(topLevelType, null); + } + } + function isListeningToAllDependencies(registrationName, mountAt) { + var listenerMap = getListenerMapForElement(mountAt); + var dependencies = registrationNameDependencies[registrationName]; + + for (var i = 0; i < dependencies.length; i++) { + var dependency = dependencies[i]; + + if (!listenerMap.has(dependency)) { + return false; + } + } + + return true; + } + + var attemptUserBlockingHydration; + function setAttemptUserBlockingHydration(fn) { + attemptUserBlockingHydration = fn; + } + var attemptContinuousHydration; + function setAttemptContinuousHydration(fn) { + attemptContinuousHydration = fn; + } + var attemptHydrationAtCurrentPriority; + function setAttemptHydrationAtCurrentPriority(fn) { + attemptHydrationAtCurrentPriority = fn; + } // TODO: Upgrade this definition once we're on a newer version of Flow that + var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed. + + var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout. + // if the last target was dehydrated. + + var queuedFocus = null; + var queuedDrag = null; + var queuedMouse = null; // For pointer events there can be one latest event per pointerId. + + var queuedPointers = new Map(); + var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too. + + var queuedExplicitHydrationTargets = []; + function hasQueuedDiscreteEvents() { + return queuedDiscreteEvents.length > 0; + } + var discreteReplayableEvents = [TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_TOUCH_CANCEL, TOP_TOUCH_END, TOP_TOUCH_START, TOP_AUX_CLICK, TOP_DOUBLE_CLICK, TOP_POINTER_CANCEL, TOP_POINTER_DOWN, TOP_POINTER_UP, TOP_DRAG_END, TOP_DRAG_START, TOP_DROP, TOP_COMPOSITION_END, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_INPUT, TOP_TEXT_INPUT, TOP_CLOSE, TOP_CANCEL, TOP_COPY, TOP_CUT, TOP_PASTE, TOP_CLICK, TOP_CHANGE, TOP_CONTEXT_MENU, TOP_RESET, TOP_SUBMIT]; + var continuousReplayableEvents = [TOP_FOCUS, TOP_BLUR, TOP_DRAG_ENTER, TOP_DRAG_LEAVE, TOP_MOUSE_OVER, TOP_MOUSE_OUT, TOP_POINTER_OVER, TOP_POINTER_OUT, TOP_GOT_POINTER_CAPTURE, TOP_LOST_POINTER_CAPTURE]; + function isReplayableDiscreteEvent(eventType) { + return discreteReplayableEvents.indexOf(eventType) > -1; + } + + function trapReplayableEventForDocument(topLevelType, document, listenerMap) { + legacyListenToTopLevelEvent(topLevelType, document, listenerMap); + } + + function eagerlyTrapReplayableEvents(container, document) { + var listenerMapForDoc = getListenerMapForElement(document); // Discrete + + discreteReplayableEvents.forEach(function (topLevelType) { + trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc); + }); // Continuous + + continuousReplayableEvents.forEach(function (topLevelType) { + trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc); + }); + } + + function createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) { + return { + blockedOn: blockedOn, + topLevelType: topLevelType, + eventSystemFlags: eventSystemFlags | IS_REPLAYED, + nativeEvent: nativeEvent, + container: container + }; + } + + function queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) { + var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent); + queuedDiscreteEvents.push(queuedEvent); + } // Resets the replaying for this type of continuous event to no event. + + function clearIfContinuousEvent(topLevelType, nativeEvent) { + switch (topLevelType) { + case TOP_FOCUS: + case TOP_BLUR: + queuedFocus = null; + break; + + case TOP_DRAG_ENTER: + case TOP_DRAG_LEAVE: + queuedDrag = null; + break; + + case TOP_MOUSE_OVER: + case TOP_MOUSE_OUT: + queuedMouse = null; + break; + + case TOP_POINTER_OVER: + case TOP_POINTER_OUT: + { + var pointerId = nativeEvent.pointerId; + queuedPointers.delete(pointerId); + break; + } + + case TOP_GOT_POINTER_CAPTURE: + case TOP_LOST_POINTER_CAPTURE: + { + var _pointerId = nativeEvent.pointerId; + queuedPointerCaptures.delete(_pointerId); + break; + } + } + } + + function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) { + if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) { + var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent); + + if (blockedOn !== null) { + var _fiber2 = getInstanceFromNode$1(blockedOn); + + if (_fiber2 !== null) { + // Attempt to increase the priority of this target. + attemptContinuousHydration(_fiber2); + } + } + + return queuedEvent; + } // If we have already queued this exact event, then it's because + // the different event systems have different DOM event listeners. + // We can accumulate the flags and store a single event to be + // replayed. + + + existingQueuedEvent.eventSystemFlags |= eventSystemFlags; + return existingQueuedEvent; + } + + function queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) { + // These set relatedTarget to null because the replayed event will be treated as if we + // moved from outside the window (no target) onto the target once it hydrates. + // Instead of mutating we could clone the event. + switch (topLevelType) { + case TOP_FOCUS: + { + var focusEvent = nativeEvent; + queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, topLevelType, eventSystemFlags, container, focusEvent); + return true; + } + + case TOP_DRAG_ENTER: + { + var dragEvent = nativeEvent; + queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, topLevelType, eventSystemFlags, container, dragEvent); + return true; + } + + case TOP_MOUSE_OVER: + { + var mouseEvent = nativeEvent; + queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, topLevelType, eventSystemFlags, container, mouseEvent); + return true; + } + + case TOP_POINTER_OVER: + { + var pointerEvent = nativeEvent; + var pointerId = pointerEvent.pointerId; + queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, topLevelType, eventSystemFlags, container, pointerEvent)); + return true; + } + + case TOP_GOT_POINTER_CAPTURE: + { + var _pointerEvent = nativeEvent; + var _pointerId2 = _pointerEvent.pointerId; + queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, topLevelType, eventSystemFlags, container, _pointerEvent)); + return true; + } + } + + return false; + } // Check if this target is unblocked. Returns true if it's unblocked. + + function attemptExplicitHydrationTarget(queuedTarget) { + // TODO: This function shares a lot of logic with attemptToDispatchEvent. + // Try to unify them. It's a bit tricky since it would require two return + // values. + var targetInst = getClosestInstanceFromNode(queuedTarget.target); + + if (targetInst !== null) { + var nearestMounted = getNearestMountedFiber(targetInst); + + if (nearestMounted !== null) { + var tag = nearestMounted.tag; + + if (tag === SuspenseComponent) { + var instance = getSuspenseInstanceFromFiber(nearestMounted); + + if (instance !== null) { + // We're blocked on hydrating this boundary. + // Increase its priority. + queuedTarget.blockedOn = instance; + unstable_runWithPriority(queuedTarget.priority, function () { + attemptHydrationAtCurrentPriority(nearestMounted); + }); + return; + } + } else if (tag === HostRoot) { + var root = nearestMounted.stateNode; + + if (root.hydrate) { + queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of + // a root other than sync. + + return; + } + } + } + } + + queuedTarget.blockedOn = null; + } + + function attemptReplayContinuousQueuedEvent(queuedEvent) { + if (queuedEvent.blockedOn !== null) { + return false; + } + + var nextBlockedOn = attemptToDispatchEvent(queuedEvent.topLevelType, queuedEvent.eventSystemFlags, queuedEvent.container, queuedEvent.nativeEvent); + + if (nextBlockedOn !== null) { + // We're still blocked. Try again later. + var _fiber3 = getInstanceFromNode$1(nextBlockedOn); + + if (_fiber3 !== null) { + attemptContinuousHydration(_fiber3); + } + + queuedEvent.blockedOn = nextBlockedOn; + return false; + } + + return true; + } + + function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) { + if (attemptReplayContinuousQueuedEvent(queuedEvent)) { + map.delete(key); + } + } + + function replayUnblockedEvents() { + hasScheduledReplayAttempt = false; // First replay discrete events. + + while (queuedDiscreteEvents.length > 0) { + var nextDiscreteEvent = queuedDiscreteEvents[0]; + + if (nextDiscreteEvent.blockedOn !== null) { + // We're still blocked. + // Increase the priority of this boundary to unblock + // the next discrete event. + var _fiber4 = getInstanceFromNode$1(nextDiscreteEvent.blockedOn); + + if (_fiber4 !== null) { + attemptUserBlockingHydration(_fiber4); + } + + break; + } + + var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.topLevelType, nextDiscreteEvent.eventSystemFlags, nextDiscreteEvent.container, nextDiscreteEvent.nativeEvent); + + if (nextBlockedOn !== null) { + // We're still blocked. Try again later. + nextDiscreteEvent.blockedOn = nextBlockedOn; + } else { + // We've successfully replayed the first event. Let's try the next one. + queuedDiscreteEvents.shift(); + } + } // Next replay any continuous events. + + + if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) { + queuedFocus = null; + } + + if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) { + queuedDrag = null; + } + + if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) { + queuedMouse = null; + } + + queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap); + queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap); + } + + function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { + if (queuedEvent.blockedOn === unblocked) { + queuedEvent.blockedOn = null; + + if (!hasScheduledReplayAttempt) { + hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are + // now unblocked. This first might not actually be unblocked yet. + // We could check it early to avoid scheduling an unnecessary callback. + + unstable_scheduleCallback(unstable_NormalPriority, replayUnblockedEvents); + } + } + } + + function retryIfBlockedOn(unblocked) { + // Mark anything that was blocked on this as no longer blocked + // and eligible for a replay. + if (queuedDiscreteEvents.length > 0) { + scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's + // worth it because we expect very few discrete events to queue up and once + // we are actually fully unblocked it will be fast to replay them. + + for (var i = 1; i < queuedDiscreteEvents.length; i++) { + var queuedEvent = queuedDiscreteEvents[i]; + + if (queuedEvent.blockedOn === unblocked) { + queuedEvent.blockedOn = null; + } + } + } + + if (queuedFocus !== null) { + scheduleCallbackIfUnblocked(queuedFocus, unblocked); + } + + if (queuedDrag !== null) { + scheduleCallbackIfUnblocked(queuedDrag, unblocked); + } + + if (queuedMouse !== null) { + scheduleCallbackIfUnblocked(queuedMouse, unblocked); + } + + var unblock = function (queuedEvent) { + return scheduleCallbackIfUnblocked(queuedEvent, unblocked); + }; + + queuedPointers.forEach(unblock); + queuedPointerCaptures.forEach(unblock); + + for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) { + var queuedTarget = queuedExplicitHydrationTargets[_i]; + + if (queuedTarget.blockedOn === unblocked) { + queuedTarget.blockedOn = null; + } + } + + while (queuedExplicitHydrationTargets.length > 0) { + var nextExplicitTarget = queuedExplicitHydrationTargets[0]; + + if (nextExplicitTarget.blockedOn !== null) { + // We're still blocked. + break; + } else { + attemptExplicitHydrationTarget(nextExplicitTarget); + + if (nextExplicitTarget.blockedOn === null) { + // We're unblocked. + queuedExplicitHydrationTargets.shift(); + } + } + } + } + + function addEventBubbleListener(element, eventType, listener) { + element.addEventListener(eventType, listener, false); + } + function addEventCaptureListener(element, eventType, listener) { + element.addEventListener(eventType, listener, true); + } + + // do it in two places, which duplicates logic + // and increases the bundle size, we do it all + // here once. If we remove or refactor the + // SimpleEventPlugin, we should also remove or + // update the below line. + + var simpleEventPluginEventTypes = {}; + var topLevelEventsToDispatchConfig = new Map(); + var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use + // the code required to apply the same logic for event prioritization and that of the + // SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code + // duplication (for which there would be quite a bit). For the events that are not needed + // for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an + // array of top level events. + // Lastly, we ignore prettier so we can keep the formatting sane. + // prettier-ignore + + var discreteEventPairsForSimpleEventPlugin = [TOP_BLUR, 'blur', TOP_CANCEL, 'cancel', TOP_CLICK, 'click', TOP_CLOSE, 'close', TOP_CONTEXT_MENU, 'contextMenu', TOP_COPY, 'copy', TOP_CUT, 'cut', TOP_AUX_CLICK, 'auxClick', TOP_DOUBLE_CLICK, 'doubleClick', TOP_DRAG_END, 'dragEnd', TOP_DRAG_START, 'dragStart', TOP_DROP, 'drop', TOP_FOCUS, 'focus', TOP_INPUT, 'input', TOP_INVALID, 'invalid', TOP_KEY_DOWN, 'keyDown', TOP_KEY_PRESS, 'keyPress', TOP_KEY_UP, 'keyUp', TOP_MOUSE_DOWN, 'mouseDown', TOP_MOUSE_UP, 'mouseUp', TOP_PASTE, 'paste', TOP_PAUSE, 'pause', TOP_PLAY, 'play', TOP_POINTER_CANCEL, 'pointerCancel', TOP_POINTER_DOWN, 'pointerDown', TOP_POINTER_UP, 'pointerUp', TOP_RATE_CHANGE, 'rateChange', TOP_RESET, 'reset', TOP_SEEKED, 'seeked', TOP_SUBMIT, 'submit', TOP_TOUCH_CANCEL, 'touchCancel', TOP_TOUCH_END, 'touchEnd', TOP_TOUCH_START, 'touchStart', TOP_VOLUME_CHANGE, 'volumeChange']; + var otherDiscreteEvents = [TOP_CHANGE, TOP_SELECTION_CHANGE, TOP_TEXT_INPUT, TOP_COMPOSITION_START, TOP_COMPOSITION_END, TOP_COMPOSITION_UPDATE]; // prettier-ignore + + var userBlockingPairsForSimpleEventPlugin = [TOP_DRAG, 'drag', TOP_DRAG_ENTER, 'dragEnter', TOP_DRAG_EXIT, 'dragExit', TOP_DRAG_LEAVE, 'dragLeave', TOP_DRAG_OVER, 'dragOver', TOP_MOUSE_MOVE, 'mouseMove', TOP_MOUSE_OUT, 'mouseOut', TOP_MOUSE_OVER, 'mouseOver', TOP_POINTER_MOVE, 'pointerMove', TOP_POINTER_OUT, 'pointerOut', TOP_POINTER_OVER, 'pointerOver', TOP_SCROLL, 'scroll', TOP_TOGGLE, 'toggle', TOP_TOUCH_MOVE, 'touchMove', TOP_WHEEL, 'wheel']; // prettier-ignore + + var continuousPairsForSimpleEventPlugin = [TOP_ABORT, 'abort', TOP_ANIMATION_END, 'animationEnd', TOP_ANIMATION_ITERATION, 'animationIteration', TOP_ANIMATION_START, 'animationStart', TOP_CAN_PLAY, 'canPlay', TOP_CAN_PLAY_THROUGH, 'canPlayThrough', TOP_DURATION_CHANGE, 'durationChange', TOP_EMPTIED, 'emptied', TOP_ENCRYPTED, 'encrypted', TOP_ENDED, 'ended', TOP_ERROR, 'error', TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture', TOP_LOAD, 'load', TOP_LOADED_DATA, 'loadedData', TOP_LOADED_METADATA, 'loadedMetadata', TOP_LOAD_START, 'loadStart', TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture', TOP_PLAYING, 'playing', TOP_PROGRESS, 'progress', TOP_SEEKING, 'seeking', TOP_STALLED, 'stalled', TOP_SUSPEND, 'suspend', TOP_TIME_UPDATE, 'timeUpdate', TOP_TRANSITION_END, 'transitionEnd', TOP_WAITING, 'waiting']; + /** + * Turns + * ['abort', ...] + * into + * eventTypes = { + * 'abort': { + * phasedRegistrationNames: { + * bubbled: 'onAbort', + * captured: 'onAbortCapture', + * }, + * dependencies: [TOP_ABORT], + * }, + * ... + * }; + * topLevelEventsToDispatchConfig = new Map([ + * [TOP_ABORT, { sameConfig }], + * ]); + */ + + function processSimpleEventPluginPairsByPriority(eventTypes, priority) { + // As the event types are in pairs of two, we need to iterate + // through in twos. The events are in pairs of two to save code + // and improve init perf of processing this array, as it will + // result in far fewer object allocations and property accesses + // if we only use three arrays to process all the categories of + // instead of tuples. + for (var i = 0; i < eventTypes.length; i += 2) { + var topEvent = eventTypes[i]; + var event = eventTypes[i + 1]; + var capitalizedEvent = event[0].toUpperCase() + event.slice(1); + var onEvent = 'on' + capitalizedEvent; + var config = { + phasedRegistrationNames: { + bubbled: onEvent, + captured: onEvent + 'Capture' + }, + dependencies: [topEvent], + eventPriority: priority + }; + eventPriorities.set(topEvent, priority); + topLevelEventsToDispatchConfig.set(topEvent, config); + simpleEventPluginEventTypes[event] = config; + } + } + + function processTopEventPairsByPriority(eventTypes, priority) { + for (var i = 0; i < eventTypes.length; i++) { + eventPriorities.set(eventTypes[i], priority); + } + } // SimpleEventPlugin + + + processSimpleEventPluginPairsByPriority(discreteEventPairsForSimpleEventPlugin, DiscreteEvent); + processSimpleEventPluginPairsByPriority(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent); + processSimpleEventPluginPairsByPriority(continuousPairsForSimpleEventPlugin, ContinuousEvent); // Not used by SimpleEventPlugin + + processTopEventPairsByPriority(otherDiscreteEvents, DiscreteEvent); + function getEventPriorityForPluginSystem(topLevelType) { + var priority = eventPriorities.get(topLevelType); // Default to a ContinuousEvent. Note: we might + // want to warn if we can't detect the priority + // for the event. + + return priority === undefined ? ContinuousEvent : priority; + } + + // Intentionally not named imports because Rollup would use dynamic dispatch for + var UserBlockingPriority = unstable_UserBlockingPriority, + runWithPriority = unstable_runWithPriority; // TODO: can we stop exporting these? + + var _enabled = true; + function setEnabled(enabled) { + _enabled = !!enabled; + } + function isEnabled() { + return _enabled; + } + function trapBubbledEvent(topLevelType, element) { + trapEventForPluginEventSystem(element, topLevelType, false); + } + function trapCapturedEvent(topLevelType, element) { + trapEventForPluginEventSystem(element, topLevelType, true); + } + + function trapEventForPluginEventSystem(container, topLevelType, capture) { + var listener; + + switch (getEventPriorityForPluginSystem(topLevelType)) { + case DiscreteEvent: + listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container); + break; + + case UserBlockingEvent: + listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container); + break; + + case ContinuousEvent: + default: + listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container); + break; + } + + var rawEventName = getRawEventName(topLevelType); + + if (capture) { + addEventCaptureListener(container, rawEventName, listener); + } else { + addEventBubbleListener(container, rawEventName, listener); + } + } + + function dispatchDiscreteEvent(topLevelType, eventSystemFlags, container, nativeEvent) { + flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp); + discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, container, nativeEvent); + } + + function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, container, nativeEvent) { + runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, container, nativeEvent)); + } + + function dispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) { + if (!_enabled) { + return; + } + + if (hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(topLevelType)) { + // If we already have a queue of discrete events, and this is another discrete + // event, then we can't dispatch it regardless of its target, since they + // need to dispatch in order. + queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know. + topLevelType, eventSystemFlags, container, nativeEvent); + return; + } + + var blockedOn = attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent); + + if (blockedOn === null) { + // We successfully dispatched this event. + clearIfContinuousEvent(topLevelType, nativeEvent); + return; + } + + if (isReplayableDiscreteEvent(topLevelType)) { + // This this to be replayed later once the target is available. + queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent); + return; + } + + if (queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent)) { + return; + } // We need to clear only if we didn't queue because + // queueing is accummulative. + + + clearIfContinuousEvent(topLevelType, nativeEvent); // This is not replayable so we'll invoke it but without a target, + // in case the event system needs to trace it. + + { + dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, null); + } + } // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked. + + function attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) { + // TODO: Warn if _enabled is false. + var nativeEventTarget = getEventTarget(nativeEvent); + var targetInst = getClosestInstanceFromNode(nativeEventTarget); + + if (targetInst !== null) { + var nearestMounted = getNearestMountedFiber(targetInst); + + if (nearestMounted === null) { + // This tree has been unmounted already. Dispatch without a target. + targetInst = null; + } else { + var tag = nearestMounted.tag; + + if (tag === SuspenseComponent) { + var instance = getSuspenseInstanceFromFiber(nearestMounted); + + if (instance !== null) { + // Queue the event to be replayed later. Abort dispatching since we + // don't want this event dispatched twice through the event system. + // TODO: If this is the first discrete event in the queue. Schedule an increased + // priority for this boundary. + return instance; + } // This shouldn't happen, something went wrong but to avoid blocking + // the whole system, dispatch the event without a target. + // TODO: Warn. + + + targetInst = null; + } else if (tag === HostRoot) { + var root = nearestMounted.stateNode; + + if (root.hydrate) { + // If this happens during a replay something went wrong and it might block + // the whole system. + return getContainerFromFiber(nearestMounted); + } + + targetInst = null; + } else if (nearestMounted !== targetInst) { + // If we get an event (ex: img onload) before committing that + // component's mount, ignore it for now (that is, treat it as if it was an + // event on a non-React tree). We might also consider queueing events and + // dispatching them after the mount. + targetInst = null; + } + } + } + + { + dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst); + } // We're not blocked on anything. + + + return null; + } + + // List derived from Gecko source code: + // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js + var shorthandToLonghand = { + animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'], + background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'], + backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'], + border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'], + borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'], + borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'], + borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'], + borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'], + borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'], + borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'], + borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'], + borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'], + borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'], + borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'], + borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'], + borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'], + borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'], + columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'], + columns: ['columnCount', 'columnWidth'], + flex: ['flexBasis', 'flexGrow', 'flexShrink'], + flexFlow: ['flexDirection', 'flexWrap'], + font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'], + fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'], + gap: ['columnGap', 'rowGap'], + grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'], + gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'], + gridColumn: ['gridColumnEnd', 'gridColumnStart'], + gridColumnGap: ['columnGap'], + gridGap: ['columnGap', 'rowGap'], + gridRow: ['gridRowEnd', 'gridRowStart'], + gridRowGap: ['rowGap'], + gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'], + listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'], + margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'], + marker: ['markerEnd', 'markerMid', 'markerStart'], + mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'], + maskPosition: ['maskPositionX', 'maskPositionY'], + outline: ['outlineColor', 'outlineStyle', 'outlineWidth'], + overflow: ['overflowX', 'overflowY'], + padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'], + placeContent: ['alignContent', 'justifyContent'], + placeItems: ['alignItems', 'justifyItems'], + placeSelf: ['alignSelf', 'justifySelf'], + textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'], + textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'], + transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'], + wordWrap: ['overflowWrap'] + }; + + /** + * CSS properties which accept numbers but are not in units of "px". + */ + var isUnitlessNumber = { + animationIterationCount: true, + borderImageOutset: true, + borderImageSlice: true, + borderImageWidth: true, + boxFlex: true, + boxFlexGroup: true, + boxOrdinalGroup: true, + columnCount: true, + columns: true, + flex: true, + flexGrow: true, + flexPositive: true, + flexShrink: true, + flexNegative: true, + flexOrder: true, + gridArea: true, + gridRow: true, + gridRowEnd: true, + gridRowSpan: true, + gridRowStart: true, + gridColumn: true, + gridColumnEnd: true, + gridColumnSpan: true, + gridColumnStart: true, + fontWeight: true, + lineClamp: true, + lineHeight: true, + opacity: true, + order: true, + orphans: true, + tabSize: true, + widows: true, + zIndex: true, + zoom: true, + // SVG-related properties + fillOpacity: true, + floodOpacity: true, + stopOpacity: true, + strokeDasharray: true, + strokeDashoffset: true, + strokeMiterlimit: true, + strokeOpacity: true, + strokeWidth: true + }; + /** + * @param {string} prefix vendor-specific prefix, eg: Webkit + * @param {string} key style name, eg: transitionDuration + * @return {string} style name prefixed with `prefix`, properly camelCased, eg: + * WebkitTransitionDuration + */ + + function prefixKey(prefix, key) { + return prefix + key.charAt(0).toUpperCase() + key.substring(1); + } + /** + * Support style names that may come passed in prefixed by adding permutations + * of vendor prefixes. + */ + + + var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an + // infinite loop, because it iterates over the newly added props too. + + Object.keys(isUnitlessNumber).forEach(function (prop) { + prefixes.forEach(function (prefix) { + isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop]; + }); + }); + + /** + * Convert a value into the proper css writable value. The style name `name` + * should be logical (no hyphens), as specified + * in `CSSProperty.isUnitlessNumber`. + * + * @param {string} name CSS property name such as `topMargin`. + * @param {*} value CSS property value such as `10px`. + * @return {string} Normalized style value with dimensions applied. + */ + + function dangerousStyleValue(name, value, isCustomProperty) { + // Note that we've removed escapeTextForBrowser() calls here since the + // whole string will be escaped when the attribute is injected into + // the markup. If you provide unsafe user data here they can inject + // arbitrary CSS which may be problematic (I couldn't repro this): + // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet + // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/ + // This is not an XSS hole but instead a potential CSS injection issue + // which has lead to a greater discussion about how we're going to + // trust URLs moving forward. See #2115901 + var isEmpty = value == null || typeof value === 'boolean' || value === ''; + + if (isEmpty) { + return ''; + } + + if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) { + return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers + } + + return ('' + value).trim(); + } + + var uppercasePattern = /([A-Z])/g; + var msPattern = /^ms-/; + /** + * Hyphenates a camelcased CSS property name, for example: + * + * > hyphenateStyleName('backgroundColor') + * < "background-color" + * > hyphenateStyleName('MozTransition') + * < "-moz-transition" + * > hyphenateStyleName('msTransition') + * < "-ms-transition" + * + * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix + * is converted to `-ms-`. + */ + + function hyphenateStyleName(name) { + return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-'); + } + + var warnValidStyle = function () {}; + + { + // 'msTransform' is correct, but the other prefixes should be capitalized + var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; + var msPattern$1 = /^-ms-/; + var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon + + var badStyleValueWithSemicolonPattern = /;\s*$/; + var warnedStyleNames = {}; + var warnedStyleValues = {}; + var warnedForNaNValue = false; + var warnedForInfinityValue = false; + + var camelize = function (string) { + return string.replace(hyphenPattern, function (_, character) { + return character.toUpperCase(); + }); + }; + + var warnHyphenatedStyleName = function (name) { + if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { + return; + } + + warnedStyleNames[name] = true; + + error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests + // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix + // is converted to lowercase `ms`. + camelize(name.replace(msPattern$1, 'ms-'))); + }; + + var warnBadVendoredStyleName = function (name) { + if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { + return; + } + + warnedStyleNames[name] = true; + + error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1)); + }; + + var warnStyleValueWithSemicolon = function (name, value) { + if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) { + return; + } + + warnedStyleValues[value] = true; + + error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, '')); + }; + + var warnStyleValueIsNaN = function (name, value) { + if (warnedForNaNValue) { + return; + } + + warnedForNaNValue = true; + + error('`NaN` is an invalid value for the `%s` css style property.', name); + }; + + var warnStyleValueIsInfinity = function (name, value) { + if (warnedForInfinityValue) { + return; + } + + warnedForInfinityValue = true; + + error('`Infinity` is an invalid value for the `%s` css style property.', name); + }; + + warnValidStyle = function (name, value) { + if (name.indexOf('-') > -1) { + warnHyphenatedStyleName(name); + } else if (badVendoredStyleNamePattern.test(name)) { + warnBadVendoredStyleName(name); + } else if (badStyleValueWithSemicolonPattern.test(value)) { + warnStyleValueWithSemicolon(name, value); + } + + if (typeof value === 'number') { + if (isNaN(value)) { + warnStyleValueIsNaN(name, value); + } else if (!isFinite(value)) { + warnStyleValueIsInfinity(name, value); + } + } + }; + } + + var warnValidStyle$1 = warnValidStyle; + + /** + * Operations for dealing with CSS properties. + */ + + /** + * This creates a string that is expected to be equivalent to the style + * attribute generated by server-side rendering. It by-passes warnings and + * security checks so it's not safe to use this value for anything other than + * comparison. It is only used in DEV for SSR validation. + */ + + function createDangerousStringForStyles(styles) { + { + var serialized = ''; + var delimiter = ''; + + for (var styleName in styles) { + if (!styles.hasOwnProperty(styleName)) { + continue; + } + + var styleValue = styles[styleName]; + + if (styleValue != null) { + var isCustomProperty = styleName.indexOf('--') === 0; + serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':'; + serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty); + delimiter = ';'; + } + } + + return serialized || null; + } + } + /** + * Sets the value for multiple styles on a node. If a value is specified as + * '' (empty string), the corresponding style property will be unset. + * + * @param {DOMElement} node + * @param {object} styles + */ + + function setValueForStyles(node, styles) { + var style = node.style; + + for (var styleName in styles) { + if (!styles.hasOwnProperty(styleName)) { + continue; + } + + var isCustomProperty = styleName.indexOf('--') === 0; + + { + if (!isCustomProperty) { + warnValidStyle$1(styleName, styles[styleName]); + } + } + + var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty); + + if (styleName === 'float') { + styleName = 'cssFloat'; + } + + if (isCustomProperty) { + style.setProperty(styleName, styleValue); + } else { + style[styleName] = styleValue; + } + } + } + + function isValueEmpty(value) { + return value == null || typeof value === 'boolean' || value === ''; + } + /** + * Given {color: 'red', overflow: 'hidden'} returns { + * color: 'color', + * overflowX: 'overflow', + * overflowY: 'overflow', + * }. This can be read as "the overflowY property was set by the overflow + * shorthand". That is, the values are the property that each was derived from. + */ + + + function expandShorthandMap(styles) { + var expanded = {}; + + for (var key in styles) { + var longhands = shorthandToLonghand[key] || [key]; + + for (var i = 0; i < longhands.length; i++) { + expanded[longhands[i]] = key; + } + } + + return expanded; + } + /** + * When mixing shorthand and longhand property names, we warn during updates if + * we expect an incorrect result to occur. In particular, we warn for: + * + * Updating a shorthand property (longhand gets overwritten): + * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'} + * becomes .style.font = 'baz' + * Removing a shorthand property (longhand gets lost too): + * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'} + * becomes .style.font = '' + * Removing a longhand property (should revert to shorthand; doesn't): + * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'} + * becomes .style.fontVariant = '' + */ + + + function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) { + { + + if (!nextStyles) { + return; + } + + var expandedUpdates = expandShorthandMap(styleUpdates); + var expandedStyles = expandShorthandMap(nextStyles); + var warnedAbout = {}; + + for (var key in expandedUpdates) { + var originalKey = expandedUpdates[key]; + var correctOriginalKey = expandedStyles[key]; + + if (correctOriginalKey && originalKey !== correctOriginalKey) { + var warningKey = originalKey + ',' + correctOriginalKey; + + if (warnedAbout[warningKey]) { + continue; + } + + warnedAbout[warningKey] = true; + + error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey); + } + } + } + } + + // For HTML, certain tags should omit their close tag. We keep a whitelist for + // those special-case tags. + var omittedCloseTags = { + area: true, + base: true, + br: true, + col: true, + embed: true, + hr: true, + img: true, + input: true, + keygen: true, + link: true, + meta: true, + param: true, + source: true, + track: true, + wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems. + + }; + + // `omittedCloseTags` except that `menuitem` should still have its closing tag. + + var voidElementTags = _assign({ + menuitem: true + }, omittedCloseTags); + + var HTML = '__html'; + var ReactDebugCurrentFrame$3 = null; + + { + ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame; + } + + function assertValidProps(tag, props) { + if (!props) { + return; + } // Note the use of `==` which checks for null or undefined. + + + if (voidElementTags[tag]) { + if (!(props.children == null && props.dangerouslySetInnerHTML == null)) { + { + throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." + ( ReactDebugCurrentFrame$3.getStackAddendum() ) ); + } + } + } + + if (props.dangerouslySetInnerHTML != null) { + if (!(props.children == null)) { + { + throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." ); + } + } + + if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) { + { + throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information." ); + } + } + } + + { + if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) { + error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.'); + } + } + + if (!(props.style == null || typeof props.style === 'object')) { + { + throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." + ( ReactDebugCurrentFrame$3.getStackAddendum() ) ); + } + } + } + + function isCustomComponent(tagName, props) { + if (tagName.indexOf('-') === -1) { + return typeof props.is === 'string'; + } + + switch (tagName) { + // These are reserved SVG and MathML elements. + // We don't mind this whitelist too much because we expect it to never grow. + // The alternative is to track the namespace in a few places which is convoluted. + // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts + 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 false; + + default: + return true; + } + } + + // When adding attributes to the HTML or SVG whitelist, be sure to + // also add them to this module to ensure casing and incorrect name + // warnings. + var possibleStandardNames = { + // HTML + accept: 'accept', + acceptcharset: 'acceptCharset', + 'accept-charset': 'acceptCharset', + accesskey: 'accessKey', + action: 'action', + allowfullscreen: 'allowFullScreen', + alt: 'alt', + as: 'as', + async: 'async', + autocapitalize: 'autoCapitalize', + autocomplete: 'autoComplete', + autocorrect: 'autoCorrect', + autofocus: 'autoFocus', + autoplay: 'autoPlay', + autosave: 'autoSave', + capture: 'capture', + cellpadding: 'cellPadding', + cellspacing: 'cellSpacing', + challenge: 'challenge', + charset: 'charSet', + checked: 'checked', + children: 'children', + cite: 'cite', + class: 'className', + classid: 'classID', + classname: 'className', + cols: 'cols', + colspan: 'colSpan', + content: 'content', + contenteditable: 'contentEditable', + contextmenu: 'contextMenu', + controls: 'controls', + controlslist: 'controlsList', + coords: 'coords', + crossorigin: 'crossOrigin', + dangerouslysetinnerhtml: 'dangerouslySetInnerHTML', + data: 'data', + datetime: 'dateTime', + default: 'default', + defaultchecked: 'defaultChecked', + defaultvalue: 'defaultValue', + defer: 'defer', + dir: 'dir', + disabled: 'disabled', + disablepictureinpicture: 'disablePictureInPicture', + download: 'download', + draggable: 'draggable', + enctype: 'encType', + for: 'htmlFor', + form: 'form', + formmethod: 'formMethod', + formaction: 'formAction', + formenctype: 'formEncType', + formnovalidate: 'formNoValidate', + formtarget: 'formTarget', + frameborder: 'frameBorder', + headers: 'headers', + height: 'height', + hidden: 'hidden', + high: 'high', + href: 'href', + hreflang: 'hrefLang', + htmlfor: 'htmlFor', + httpequiv: 'httpEquiv', + 'http-equiv': 'httpEquiv', + icon: 'icon', + id: 'id', + innerhtml: 'innerHTML', + inputmode: 'inputMode', + integrity: 'integrity', + is: 'is', + itemid: 'itemID', + itemprop: 'itemProp', + itemref: 'itemRef', + itemscope: 'itemScope', + itemtype: 'itemType', + keyparams: 'keyParams', + keytype: 'keyType', + kind: 'kind', + label: 'label', + lang: 'lang', + list: 'list', + loop: 'loop', + low: 'low', + manifest: 'manifest', + marginwidth: 'marginWidth', + marginheight: 'marginHeight', + max: 'max', + maxlength: 'maxLength', + media: 'media', + mediagroup: 'mediaGroup', + method: 'method', + min: 'min', + minlength: 'minLength', + multiple: 'multiple', + muted: 'muted', + name: 'name', + nomodule: 'noModule', + nonce: 'nonce', + novalidate: 'noValidate', + open: 'open', + optimum: 'optimum', + pattern: 'pattern', + placeholder: 'placeholder', + playsinline: 'playsInline', + poster: 'poster', + preload: 'preload', + profile: 'profile', + radiogroup: 'radioGroup', + readonly: 'readOnly', + referrerpolicy: 'referrerPolicy', + rel: 'rel', + required: 'required', + reversed: 'reversed', + role: 'role', + rows: 'rows', + rowspan: 'rowSpan', + sandbox: 'sandbox', + scope: 'scope', + scoped: 'scoped', + scrolling: 'scrolling', + seamless: 'seamless', + selected: 'selected', + shape: 'shape', + size: 'size', + sizes: 'sizes', + span: 'span', + spellcheck: 'spellCheck', + src: 'src', + srcdoc: 'srcDoc', + srclang: 'srcLang', + srcset: 'srcSet', + start: 'start', + step: 'step', + style: 'style', + summary: 'summary', + tabindex: 'tabIndex', + target: 'target', + title: 'title', + type: 'type', + usemap: 'useMap', + value: 'value', + width: 'width', + wmode: 'wmode', + wrap: 'wrap', + // SVG + about: 'about', + accentheight: 'accentHeight', + 'accent-height': 'accentHeight', + accumulate: 'accumulate', + additive: 'additive', + alignmentbaseline: 'alignmentBaseline', + 'alignment-baseline': 'alignmentBaseline', + allowreorder: 'allowReorder', + alphabetic: 'alphabetic', + amplitude: 'amplitude', + arabicform: 'arabicForm', + 'arabic-form': 'arabicForm', + ascent: 'ascent', + attributename: 'attributeName', + attributetype: 'attributeType', + autoreverse: 'autoReverse', + azimuth: 'azimuth', + basefrequency: 'baseFrequency', + baselineshift: 'baselineShift', + 'baseline-shift': 'baselineShift', + baseprofile: 'baseProfile', + bbox: 'bbox', + begin: 'begin', + bias: 'bias', + by: 'by', + calcmode: 'calcMode', + capheight: 'capHeight', + 'cap-height': 'capHeight', + clip: 'clip', + clippath: 'clipPath', + 'clip-path': 'clipPath', + clippathunits: 'clipPathUnits', + cliprule: 'clipRule', + 'clip-rule': 'clipRule', + color: 'color', + colorinterpolation: 'colorInterpolation', + 'color-interpolation': 'colorInterpolation', + colorinterpolationfilters: 'colorInterpolationFilters', + 'color-interpolation-filters': 'colorInterpolationFilters', + colorprofile: 'colorProfile', + 'color-profile': 'colorProfile', + colorrendering: 'colorRendering', + 'color-rendering': 'colorRendering', + contentscripttype: 'contentScriptType', + contentstyletype: 'contentStyleType', + cursor: 'cursor', + cx: 'cx', + cy: 'cy', + d: 'd', + datatype: 'datatype', + decelerate: 'decelerate', + descent: 'descent', + diffuseconstant: 'diffuseConstant', + direction: 'direction', + display: 'display', + divisor: 'divisor', + dominantbaseline: 'dominantBaseline', + 'dominant-baseline': 'dominantBaseline', + dur: 'dur', + dx: 'dx', + dy: 'dy', + edgemode: 'edgeMode', + elevation: 'elevation', + enablebackground: 'enableBackground', + 'enable-background': 'enableBackground', + end: 'end', + exponent: 'exponent', + externalresourcesrequired: 'externalResourcesRequired', + fill: 'fill', + fillopacity: 'fillOpacity', + 'fill-opacity': 'fillOpacity', + fillrule: 'fillRule', + 'fill-rule': 'fillRule', + filter: 'filter', + filterres: 'filterRes', + filterunits: 'filterUnits', + floodopacity: 'floodOpacity', + 'flood-opacity': 'floodOpacity', + floodcolor: 'floodColor', + 'flood-color': 'floodColor', + focusable: 'focusable', + fontfamily: 'fontFamily', + 'font-family': 'fontFamily', + fontsize: 'fontSize', + 'font-size': 'fontSize', + fontsizeadjust: 'fontSizeAdjust', + 'font-size-adjust': 'fontSizeAdjust', + fontstretch: 'fontStretch', + 'font-stretch': 'fontStretch', + fontstyle: 'fontStyle', + 'font-style': 'fontStyle', + fontvariant: 'fontVariant', + 'font-variant': 'fontVariant', + fontweight: 'fontWeight', + 'font-weight': 'fontWeight', + format: 'format', + from: 'from', + fx: 'fx', + fy: 'fy', + g1: 'g1', + g2: 'g2', + glyphname: 'glyphName', + 'glyph-name': 'glyphName', + glyphorientationhorizontal: 'glyphOrientationHorizontal', + 'glyph-orientation-horizontal': 'glyphOrientationHorizontal', + glyphorientationvertical: 'glyphOrientationVertical', + 'glyph-orientation-vertical': 'glyphOrientationVertical', + glyphref: 'glyphRef', + gradienttransform: 'gradientTransform', + gradientunits: 'gradientUnits', + hanging: 'hanging', + horizadvx: 'horizAdvX', + 'horiz-adv-x': 'horizAdvX', + horizoriginx: 'horizOriginX', + 'horiz-origin-x': 'horizOriginX', + ideographic: 'ideographic', + imagerendering: 'imageRendering', + 'image-rendering': 'imageRendering', + in2: 'in2', + in: 'in', + inlist: 'inlist', + intercept: 'intercept', + k1: 'k1', + k2: 'k2', + k3: 'k3', + k4: 'k4', + k: 'k', + kernelmatrix: 'kernelMatrix', + kernelunitlength: 'kernelUnitLength', + kerning: 'kerning', + keypoints: 'keyPoints', + keysplines: 'keySplines', + keytimes: 'keyTimes', + lengthadjust: 'lengthAdjust', + letterspacing: 'letterSpacing', + 'letter-spacing': 'letterSpacing', + lightingcolor: 'lightingColor', + 'lighting-color': 'lightingColor', + limitingconeangle: 'limitingConeAngle', + local: 'local', + markerend: 'markerEnd', + 'marker-end': 'markerEnd', + markerheight: 'markerHeight', + markermid: 'markerMid', + 'marker-mid': 'markerMid', + markerstart: 'markerStart', + 'marker-start': 'markerStart', + markerunits: 'markerUnits', + markerwidth: 'markerWidth', + mask: 'mask', + maskcontentunits: 'maskContentUnits', + maskunits: 'maskUnits', + mathematical: 'mathematical', + mode: 'mode', + numoctaves: 'numOctaves', + offset: 'offset', + opacity: 'opacity', + operator: 'operator', + order: 'order', + orient: 'orient', + orientation: 'orientation', + origin: 'origin', + overflow: 'overflow', + overlineposition: 'overlinePosition', + 'overline-position': 'overlinePosition', + overlinethickness: 'overlineThickness', + 'overline-thickness': 'overlineThickness', + paintorder: 'paintOrder', + 'paint-order': 'paintOrder', + panose1: 'panose1', + 'panose-1': 'panose1', + pathlength: 'pathLength', + patterncontentunits: 'patternContentUnits', + patterntransform: 'patternTransform', + patternunits: 'patternUnits', + pointerevents: 'pointerEvents', + 'pointer-events': 'pointerEvents', + points: 'points', + pointsatx: 'pointsAtX', + pointsaty: 'pointsAtY', + pointsatz: 'pointsAtZ', + prefix: 'prefix', + preservealpha: 'preserveAlpha', + preserveaspectratio: 'preserveAspectRatio', + primitiveunits: 'primitiveUnits', + property: 'property', + r: 'r', + radius: 'radius', + refx: 'refX', + refy: 'refY', + renderingintent: 'renderingIntent', + 'rendering-intent': 'renderingIntent', + repeatcount: 'repeatCount', + repeatdur: 'repeatDur', + requiredextensions: 'requiredExtensions', + requiredfeatures: 'requiredFeatures', + resource: 'resource', + restart: 'restart', + result: 'result', + results: 'results', + rotate: 'rotate', + rx: 'rx', + ry: 'ry', + scale: 'scale', + security: 'security', + seed: 'seed', + shaperendering: 'shapeRendering', + 'shape-rendering': 'shapeRendering', + slope: 'slope', + spacing: 'spacing', + specularconstant: 'specularConstant', + specularexponent: 'specularExponent', + speed: 'speed', + spreadmethod: 'spreadMethod', + startoffset: 'startOffset', + stddeviation: 'stdDeviation', + stemh: 'stemh', + stemv: 'stemv', + stitchtiles: 'stitchTiles', + stopcolor: 'stopColor', + 'stop-color': 'stopColor', + stopopacity: 'stopOpacity', + 'stop-opacity': 'stopOpacity', + strikethroughposition: 'strikethroughPosition', + 'strikethrough-position': 'strikethroughPosition', + strikethroughthickness: 'strikethroughThickness', + 'strikethrough-thickness': 'strikethroughThickness', + string: 'string', + stroke: 'stroke', + strokedasharray: 'strokeDasharray', + 'stroke-dasharray': 'strokeDasharray', + strokedashoffset: 'strokeDashoffset', + 'stroke-dashoffset': 'strokeDashoffset', + strokelinecap: 'strokeLinecap', + 'stroke-linecap': 'strokeLinecap', + strokelinejoin: 'strokeLinejoin', + 'stroke-linejoin': 'strokeLinejoin', + strokemiterlimit: 'strokeMiterlimit', + 'stroke-miterlimit': 'strokeMiterlimit', + strokewidth: 'strokeWidth', + 'stroke-width': 'strokeWidth', + strokeopacity: 'strokeOpacity', + 'stroke-opacity': 'strokeOpacity', + suppresscontenteditablewarning: 'suppressContentEditableWarning', + suppresshydrationwarning: 'suppressHydrationWarning', + surfacescale: 'surfaceScale', + systemlanguage: 'systemLanguage', + tablevalues: 'tableValues', + targetx: 'targetX', + targety: 'targetY', + textanchor: 'textAnchor', + 'text-anchor': 'textAnchor', + textdecoration: 'textDecoration', + 'text-decoration': 'textDecoration', + textlength: 'textLength', + textrendering: 'textRendering', + 'text-rendering': 'textRendering', + to: 'to', + transform: 'transform', + typeof: 'typeof', + u1: 'u1', + u2: 'u2', + underlineposition: 'underlinePosition', + 'underline-position': 'underlinePosition', + underlinethickness: 'underlineThickness', + 'underline-thickness': 'underlineThickness', + unicode: 'unicode', + unicodebidi: 'unicodeBidi', + 'unicode-bidi': 'unicodeBidi', + unicoderange: 'unicodeRange', + 'unicode-range': 'unicodeRange', + unitsperem: 'unitsPerEm', + 'units-per-em': 'unitsPerEm', + unselectable: 'unselectable', + valphabetic: 'vAlphabetic', + 'v-alphabetic': 'vAlphabetic', + values: 'values', + vectoreffect: 'vectorEffect', + 'vector-effect': 'vectorEffect', + version: 'version', + vertadvy: 'vertAdvY', + 'vert-adv-y': 'vertAdvY', + vertoriginx: 'vertOriginX', + 'vert-origin-x': 'vertOriginX', + vertoriginy: 'vertOriginY', + 'vert-origin-y': 'vertOriginY', + vhanging: 'vHanging', + 'v-hanging': 'vHanging', + videographic: 'vIdeographic', + 'v-ideographic': 'vIdeographic', + viewbox: 'viewBox', + viewtarget: 'viewTarget', + visibility: 'visibility', + vmathematical: 'vMathematical', + 'v-mathematical': 'vMathematical', + vocab: 'vocab', + widths: 'widths', + wordspacing: 'wordSpacing', + 'word-spacing': 'wordSpacing', + writingmode: 'writingMode', + 'writing-mode': 'writingMode', + x1: 'x1', + x2: 'x2', + x: 'x', + xchannelselector: 'xChannelSelector', + xheight: 'xHeight', + 'x-height': 'xHeight', + xlinkactuate: 'xlinkActuate', + 'xlink:actuate': 'xlinkActuate', + xlinkarcrole: 'xlinkArcrole', + 'xlink:arcrole': 'xlinkArcrole', + xlinkhref: 'xlinkHref', + 'xlink:href': 'xlinkHref', + xlinkrole: 'xlinkRole', + 'xlink:role': 'xlinkRole', + xlinkshow: 'xlinkShow', + 'xlink:show': 'xlinkShow', + xlinktitle: 'xlinkTitle', + 'xlink:title': 'xlinkTitle', + xlinktype: 'xlinkType', + 'xlink:type': 'xlinkType', + xmlbase: 'xmlBase', + 'xml:base': 'xmlBase', + xmllang: 'xmlLang', + 'xml:lang': 'xmlLang', + xmlns: 'xmlns', + 'xml:space': 'xmlSpace', + xmlnsxlink: 'xmlnsXlink', + 'xmlns:xlink': 'xmlnsXlink', + xmlspace: 'xmlSpace', + y1: 'y1', + y2: 'y2', + y: 'y', + ychannelselector: 'yChannelSelector', + z: 'z', + zoomandpan: 'zoomAndPan' + }; + + var ariaProperties = { + 'aria-current': 0, + // state + 'aria-details': 0, + 'aria-disabled': 0, + // state + 'aria-hidden': 0, + // state + 'aria-invalid': 0, + // state + 'aria-keyshortcuts': 0, + 'aria-label': 0, + 'aria-roledescription': 0, + // Widget Attributes + 'aria-autocomplete': 0, + 'aria-checked': 0, + 'aria-expanded': 0, + 'aria-haspopup': 0, + 'aria-level': 0, + 'aria-modal': 0, + 'aria-multiline': 0, + 'aria-multiselectable': 0, + 'aria-orientation': 0, + 'aria-placeholder': 0, + 'aria-pressed': 0, + 'aria-readonly': 0, + 'aria-required': 0, + 'aria-selected': 0, + 'aria-sort': 0, + 'aria-valuemax': 0, + 'aria-valuemin': 0, + 'aria-valuenow': 0, + 'aria-valuetext': 0, + // Live Region Attributes + 'aria-atomic': 0, + 'aria-busy': 0, + 'aria-live': 0, + 'aria-relevant': 0, + // Drag-and-Drop Attributes + 'aria-dropeffect': 0, + 'aria-grabbed': 0, + // Relationship Attributes + 'aria-activedescendant': 0, + 'aria-colcount': 0, + 'aria-colindex': 0, + 'aria-colspan': 0, + 'aria-controls': 0, + 'aria-describedby': 0, + 'aria-errormessage': 0, + 'aria-flowto': 0, + 'aria-labelledby': 0, + 'aria-owns': 0, + 'aria-posinset': 0, + 'aria-rowcount': 0, + 'aria-rowindex': 0, + 'aria-rowspan': 0, + 'aria-setsize': 0 + }; + + var warnedProperties = {}; + var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'); + var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$'); + var hasOwnProperty$1 = Object.prototype.hasOwnProperty; + + function validateProperty(tagName, name) { + { + if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) { + return true; + } + + if (rARIACamel.test(name)) { + var ariaName = 'aria-' + name.slice(4).toLowerCase(); + var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM + // DOM properties, then it is an invalid aria-* attribute. + + if (correctName == null) { + error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name); + + warnedProperties[name] = true; + return true; + } // aria-* attributes should be lowercase; suggest the lowercase version. + + + if (name !== correctName) { + error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName); + + warnedProperties[name] = true; + return true; + } + } + + if (rARIA.test(name)) { + var lowerCasedName = name.toLowerCase(); + var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM + // DOM properties, then it is an invalid aria-* attribute. + + if (standardName == null) { + warnedProperties[name] = true; + return false; + } // aria-* attributes should be lowercase; suggest the lowercase version. + + + if (name !== standardName) { + error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName); + + warnedProperties[name] = true; + return true; + } + } + } + + return true; + } + + function warnInvalidARIAProps(type, props) { + { + var invalidProps = []; + + for (var key in props) { + var isValid = validateProperty(type, key); + + if (!isValid) { + invalidProps.push(key); + } + } + + var unknownPropString = invalidProps.map(function (prop) { + return '`' + prop + '`'; + }).join(', '); + + if (invalidProps.length === 1) { + error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type); + } else if (invalidProps.length > 1) { + error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type); + } + } + } + + function validateProperties(type, props) { + if (isCustomComponent(type, props)) { + return; + } + + warnInvalidARIAProps(type, props); + } + + var didWarnValueNull = false; + function validateProperties$1(type, props) { + { + if (type !== 'input' && type !== 'textarea' && type !== 'select') { + return; + } + + if (props != null && props.value === null && !didWarnValueNull) { + didWarnValueNull = true; + + if (type === 'select' && props.multiple) { + error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type); + } else { + error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type); + } + } + } + } + + var validateProperty$1 = function () {}; + + { + var warnedProperties$1 = {}; + var _hasOwnProperty = Object.prototype.hasOwnProperty; + var EVENT_NAME_REGEX = /^on./; + var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; + var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'); + var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$'); + + validateProperty$1 = function (tagName, name, value, canUseEventSystem) { + if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) { + return true; + } + + var lowerCasedName = name.toLowerCase(); + + if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') { + error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.'); + + warnedProperties$1[name] = true; + return true; + } // We can't rely on the event system being injected on the server. + + + if (canUseEventSystem) { + if (registrationNameModules.hasOwnProperty(name)) { + return true; + } + + var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null; + + if (registrationName != null) { + error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName); + + warnedProperties$1[name] = true; + return true; + } + + if (EVENT_NAME_REGEX.test(name)) { + error('Unknown event handler property `%s`. It will be ignored.', name); + + warnedProperties$1[name] = true; + return true; + } + } else if (EVENT_NAME_REGEX.test(name)) { + // If no event plugins have been injected, we are in a server environment. + // So we can't tell if the event name is correct for sure, but we can filter + // out known bad ones like `onclick`. We can't suggest a specific replacement though. + if (INVALID_EVENT_NAME_REGEX.test(name)) { + error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name); + } + + warnedProperties$1[name] = true; + return true; + } // Let the ARIA attribute hook validate ARIA attributes + + + if (rARIA$1.test(name) || rARIACamel$1.test(name)) { + return true; + } + + if (lowerCasedName === 'innerhtml') { + error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.'); + + warnedProperties$1[name] = true; + return true; + } + + if (lowerCasedName === 'aria') { + error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.'); + + warnedProperties$1[name] = true; + return true; + } + + if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') { + error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value); + + warnedProperties$1[name] = true; + return true; + } + + if (typeof value === 'number' && isNaN(value)) { + error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name); + + warnedProperties$1[name] = true; + return true; + } + + var propertyInfo = getPropertyInfo(name); + var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config. + + if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { + var standardName = possibleStandardNames[lowerCasedName]; + + if (standardName !== name) { + error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName); + + warnedProperties$1[name] = true; + return true; + } + } else if (!isReserved && name !== lowerCasedName) { + // Unknown attributes should have lowercase casing since that's how they + // will be cased anyway with server rendering. + error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName); + + warnedProperties$1[name] = true; + return true; + } + + if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { + if (value) { + error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name); + } else { + error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name); + } + + warnedProperties$1[name] = true; + return true; + } // Now that we've validated casing, do not validate + // data types for reserved props + + + if (isReserved) { + return true; + } // Warn when a known attribute is a bad type + + + if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { + warnedProperties$1[name] = true; + return false; + } // Warn when passing the strings 'false' or 'true' into a boolean prop + + + if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) { + error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value); + + warnedProperties$1[name] = true; + return true; + } + + return true; + }; + } + + var warnUnknownProperties = function (type, props, canUseEventSystem) { + { + var unknownProps = []; + + for (var key in props) { + var isValid = validateProperty$1(type, key, props[key], canUseEventSystem); + + if (!isValid) { + unknownProps.push(key); + } + } + + var unknownPropString = unknownProps.map(function (prop) { + return '`' + prop + '`'; + }).join(', '); + + if (unknownProps.length === 1) { + error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type); + } else if (unknownProps.length > 1) { + error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type); + } + } + }; + + function validateProperties$2(type, props, canUseEventSystem) { + if (isCustomComponent(type, props)) { + return; + } + + warnUnknownProperties(type, props, canUseEventSystem); + } + + var didWarnInvalidHydration = false; + var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML'; + var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning'; + var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning'; + var AUTOFOCUS = 'autoFocus'; + var CHILDREN = 'children'; + var STYLE = 'style'; + var HTML$1 = '__html'; + var HTML_NAMESPACE$1 = Namespaces.html; + var warnedUnknownTags; + var suppressHydrationWarning; + var validatePropertiesInDevelopment; + var warnForTextDifference; + var warnForPropDifference; + var warnForExtraAttributes; + var warnForInvalidEventListener; + var canDiffStyleForHydrationWarning; + var normalizeMarkupForTextOrAttribute; + var normalizeHTML; + + { + warnedUnknownTags = { + // Chrome is the only major browser not shipping <time>. But as of July + // 2017 it intends to ship it due to widespread usage. We intentionally + // *don't* warn for <time> even if it's unrecognized by Chrome because + // it soon will be, and many apps have been using it anyway. + time: true, + // There are working polyfills for <dialog>. Let people use it. + dialog: true, + // Electron ships a custom <webview> tag to display external web content in + // an isolated frame and process. + // This tag is not present in non Electron environments such as JSDom which + // is often used for testing purposes. + // @see https://electronjs.org/docs/api/webview-tag + webview: true + }; + + validatePropertiesInDevelopment = function (type, props) { + validateProperties(type, props); + validateProperties$1(type, props); + validateProperties$2(type, props, + /* canUseEventSystem */ + true); + }; // IE 11 parses & normalizes the style attribute as opposed to other + // browsers. It adds spaces and sorts the properties in some + // non-alphabetical order. Handling that would require sorting CSS + // properties in the client & server versions or applying + // `expectedStyle` to a temporary DOM node to read its `style` attribute + // normalized. Since it only affects IE, we're skipping style warnings + // in that browser completely in favor of doing all that work. + // See https://github.com/facebook/react/issues/11807 + + + canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode; // HTML parsing normalizes CR and CRLF to LF. + // It also can turn \u0000 into \uFFFD inside attributes. + // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream + // If we have a mismatch, it might be caused by that. + // We will still patch up in this case but not fire the warning. + + var NORMALIZE_NEWLINES_REGEX = /\r\n?/g; + var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g; + + normalizeMarkupForTextOrAttribute = function (markup) { + var markupString = typeof markup === 'string' ? markup : '' + markup; + return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ''); + }; + + warnForTextDifference = function (serverText, clientText) { + if (didWarnInvalidHydration) { + return; + } + + var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText); + var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText); + + if (normalizedServerText === normalizedClientText) { + return; + } + + didWarnInvalidHydration = true; + + error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText); + }; + + warnForPropDifference = function (propName, serverValue, clientValue) { + if (didWarnInvalidHydration) { + return; + } + + var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue); + var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue); + + if (normalizedServerValue === normalizedClientValue) { + return; + } + + didWarnInvalidHydration = true; + + error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue)); + }; + + warnForExtraAttributes = function (attributeNames) { + if (didWarnInvalidHydration) { + return; + } + + didWarnInvalidHydration = true; + var names = []; + attributeNames.forEach(function (name) { + names.push(name); + }); + + error('Extra attributes from the server: %s', names); + }; + + warnForInvalidEventListener = function (registrationName, listener) { + if (listener === false) { + error('Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName); + } else { + error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener); + } + }; // Parse the HTML and read it back to normalize the HTML string so that it + // can be used for comparison. + + + normalizeHTML = function (parent, html) { + // We could have created a separate document here to avoid + // re-initializing custom elements if they exist. But this breaks + // how <noscript> is being handled. So we use the same document. + // See the discussion in https://github.com/facebook/react/pull/11157. + var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName); + testElement.innerHTML = html; + return testElement.innerHTML; + }; + } + + function ensureListeningTo(rootContainerElement, registrationName) { + var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE; + var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument; + legacyListenToEvent(registrationName, doc); + } + + function getOwnerDocumentFromRootContainer(rootContainerElement) { + return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument; + } + + function noop() {} + + function trapClickOnNonInteractiveElement(node) { + // Mobile Safari does not fire properly bubble click events on + // non-interactive elements, which means delegated click listeners do not + // fire. The workaround for this bug involves attaching an empty click + // listener on the target node. + // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html + // Just set it using the onclick property so that we don't have to manage any + // bookkeeping for it. Not sure if we need to clear it when the listener is + // removed. + // TODO: Only do this for the relevant Safaris maybe? + node.onclick = noop; + } + + function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) { + for (var propKey in nextProps) { + if (!nextProps.hasOwnProperty(propKey)) { + continue; + } + + var nextProp = nextProps[propKey]; + + if (propKey === STYLE) { + { + if (nextProp) { + // Freeze the next style object so that we can assume it won't be + // mutated. We have already warned for this in the past. + Object.freeze(nextProp); + } + } // Relies on `updateStylesByID` not mutating `styleUpdates`. + + + setValueForStyles(domElement, nextProp); + } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { + var nextHtml = nextProp ? nextProp[HTML$1] : undefined; + + if (nextHtml != null) { + setInnerHTML(domElement, nextHtml); + } + } else if (propKey === CHILDREN) { + if (typeof nextProp === 'string') { + // Avoid setting initial textContent when the text is empty. In IE11 setting + // textContent on a <textarea> will cause the placeholder to not + // show within the <textarea> until it has been focused and blurred again. + // https://github.com/facebook/react/issues/6731#issuecomment-254874553 + var canSetTextContent = tag !== 'textarea' || nextProp !== ''; + + if (canSetTextContent) { + setTextContent(domElement, nextProp); + } + } else if (typeof nextProp === 'number') { + setTextContent(domElement, '' + nextProp); + } + } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameModules.hasOwnProperty(propKey)) { + if (nextProp != null) { + if ( typeof nextProp !== 'function') { + warnForInvalidEventListener(propKey, nextProp); + } + + ensureListeningTo(rootContainerElement, propKey); + } + } else if (nextProp != null) { + setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag); + } + } + } + + function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) { + // TODO: Handle wasCustomComponentTag + for (var i = 0; i < updatePayload.length; i += 2) { + var propKey = updatePayload[i]; + var propValue = updatePayload[i + 1]; + + if (propKey === STYLE) { + setValueForStyles(domElement, propValue); + } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { + setInnerHTML(domElement, propValue); + } else if (propKey === CHILDREN) { + setTextContent(domElement, propValue); + } else { + setValueForProperty(domElement, propKey, propValue, isCustomComponentTag); + } + } + } + + function createElement(type, props, rootContainerElement, parentNamespace) { + var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML + // tags get no namespace. + + var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement); + var domElement; + var namespaceURI = parentNamespace; + + if (namespaceURI === HTML_NAMESPACE$1) { + namespaceURI = getIntrinsicNamespace(type); + } + + if (namespaceURI === HTML_NAMESPACE$1) { + { + isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to + // allow <SVG> or <mATH>. + + if (!isCustomComponentTag && type !== type.toLowerCase()) { + error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type); + } + } + + if (type === 'script') { + // Create the script via .innerHTML so its "parser-inserted" flag is + // set to true and it does not execute + var div = ownerDocument.createElement('div'); + + div.innerHTML = '<script><' + '/script>'; // eslint-disable-line + // This is guaranteed to yield a script element. + + var firstChild = div.firstChild; + domElement = div.removeChild(firstChild); + } else if (typeof props.is === 'string') { + // $FlowIssue `createElement` should be updated for Web Components + domElement = ownerDocument.createElement(type, { + is: props.is + }); + } else { + // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug. + // See discussion in https://github.com/facebook/react/pull/6896 + // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240 + domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size` + // attributes on `select`s needs to be added before `option`s are inserted. + // This prevents: + // - a bug where the `select` does not scroll to the correct option because singular + // `select` elements automatically pick the first item #13222 + // - a bug where the `select` set the first item as selected despite the `size` attribute #14239 + // See https://github.com/facebook/react/issues/13222 + // and https://github.com/facebook/react/issues/14239 + + if (type === 'select') { + var node = domElement; + + if (props.multiple) { + node.multiple = true; + } else if (props.size) { + // Setting a size greater than 1 causes a select to behave like `multiple=true`, where + // it is possible that no option is selected. + // + // This is only necessary when a select in "single selection mode". + node.size = props.size; + } + } + } + } else { + domElement = ownerDocument.createElementNS(namespaceURI, type); + } + + { + if (namespaceURI === HTML_NAMESPACE$1) { + if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) { + warnedUnknownTags[type] = true; + + error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type); + } + } + } + + return domElement; + } + function createTextNode(text, rootContainerElement) { + return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text); + } + function setInitialProperties(domElement, tag, rawProps, rootContainerElement) { + var isCustomComponentTag = isCustomComponent(tag, rawProps); + + { + validatePropertiesInDevelopment(tag, rawProps); + } // TODO: Make sure that we check isMounted before firing any of these events. + + + var props; + + switch (tag) { + case 'iframe': + case 'object': + case 'embed': + trapBubbledEvent(TOP_LOAD, domElement); + props = rawProps; + break; + + case 'video': + case 'audio': + // Create listener for each media event + for (var i = 0; i < mediaEventTypes.length; i++) { + trapBubbledEvent(mediaEventTypes[i], domElement); + } + + props = rawProps; + break; + + case 'source': + trapBubbledEvent(TOP_ERROR, domElement); + props = rawProps; + break; + + case 'img': + case 'image': + case 'link': + trapBubbledEvent(TOP_ERROR, domElement); + trapBubbledEvent(TOP_LOAD, domElement); + props = rawProps; + break; + + case 'form': + trapBubbledEvent(TOP_RESET, domElement); + trapBubbledEvent(TOP_SUBMIT, domElement); + props = rawProps; + break; + + case 'details': + trapBubbledEvent(TOP_TOGGLE, domElement); + props = rawProps; + break; + + case 'input': + initWrapperState(domElement, rawProps); + props = getHostProps(domElement, rawProps); + trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening + // to onChange. Even if there is no listener. + + ensureListeningTo(rootContainerElement, 'onChange'); + break; + + case 'option': + validateProps(domElement, rawProps); + props = getHostProps$1(domElement, rawProps); + break; + + case 'select': + initWrapperState$1(domElement, rawProps); + props = getHostProps$2(domElement, rawProps); + trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening + // to onChange. Even if there is no listener. + + ensureListeningTo(rootContainerElement, 'onChange'); + break; + + case 'textarea': + initWrapperState$2(domElement, rawProps); + props = getHostProps$3(domElement, rawProps); + trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening + // to onChange. Even if there is no listener. + + ensureListeningTo(rootContainerElement, 'onChange'); + break; + + default: + props = rawProps; + } + + assertValidProps(tag, props); + setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag); + + switch (tag) { + case 'input': + // TODO: Make sure we check if this is still unmounted or do any clean + // up necessary since we never stop tracking anymore. + track(domElement); + postMountWrapper(domElement, rawProps, false); + break; + + case 'textarea': + // TODO: Make sure we check if this is still unmounted or do any clean + // up necessary since we never stop tracking anymore. + track(domElement); + postMountWrapper$3(domElement); + break; + + case 'option': + postMountWrapper$1(domElement, rawProps); + break; + + case 'select': + postMountWrapper$2(domElement, rawProps); + break; + + default: + if (typeof props.onClick === 'function') { + // TODO: This cast may not be sound for SVG, MathML or custom elements. + trapClickOnNonInteractiveElement(domElement); + } + + break; + } + } // Calculate the diff between the two objects. + + function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) { + { + validatePropertiesInDevelopment(tag, nextRawProps); + } + + var updatePayload = null; + var lastProps; + var nextProps; + + switch (tag) { + case 'input': + lastProps = getHostProps(domElement, lastRawProps); + nextProps = getHostProps(domElement, nextRawProps); + updatePayload = []; + break; + + case 'option': + lastProps = getHostProps$1(domElement, lastRawProps); + nextProps = getHostProps$1(domElement, nextRawProps); + updatePayload = []; + break; + + case 'select': + lastProps = getHostProps$2(domElement, lastRawProps); + nextProps = getHostProps$2(domElement, nextRawProps); + updatePayload = []; + break; + + case 'textarea': + lastProps = getHostProps$3(domElement, lastRawProps); + nextProps = getHostProps$3(domElement, nextRawProps); + updatePayload = []; + break; + + default: + lastProps = lastRawProps; + nextProps = nextRawProps; + + if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') { + // TODO: This cast may not be sound for SVG, MathML or custom elements. + trapClickOnNonInteractiveElement(domElement); + } + + break; + } + + assertValidProps(tag, nextProps); + var propKey; + var styleName; + var styleUpdates = null; + + for (propKey in lastProps) { + if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) { + continue; + } + + if (propKey === STYLE) { + var lastStyle = lastProps[propKey]; + + for (styleName in lastStyle) { + if (lastStyle.hasOwnProperty(styleName)) { + if (!styleUpdates) { + styleUpdates = {}; + } + + styleUpdates[styleName] = ''; + } + } + } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameModules.hasOwnProperty(propKey)) { + // This is a special case. If any listener updates we need to ensure + // that the "current" fiber pointer gets updated so we need a commit + // to update this element. + if (!updatePayload) { + updatePayload = []; + } + } else { + // For all other deleted properties we add it to the queue. We use + // the whitelist in the commit phase instead. + (updatePayload = updatePayload || []).push(propKey, null); + } + } + + for (propKey in nextProps) { + var nextProp = nextProps[propKey]; + var lastProp = lastProps != null ? lastProps[propKey] : undefined; + + if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) { + continue; + } + + if (propKey === STYLE) { + { + if (nextProp) { + // Freeze the next style object so that we can assume it won't be + // mutated. We have already warned for this in the past. + Object.freeze(nextProp); + } + } + + if (lastProp) { + // Unset styles on `lastProp` but not on `nextProp`. + for (styleName in lastProp) { + if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) { + if (!styleUpdates) { + styleUpdates = {}; + } + + styleUpdates[styleName] = ''; + } + } // Update styles that changed since `lastProp`. + + + for (styleName in nextProp) { + if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) { + if (!styleUpdates) { + styleUpdates = {}; + } + + styleUpdates[styleName] = nextProp[styleName]; + } + } + } else { + // Relies on `updateStylesByID` not mutating `styleUpdates`. + if (!styleUpdates) { + if (!updatePayload) { + updatePayload = []; + } + + updatePayload.push(propKey, styleUpdates); + } + + styleUpdates = nextProp; + } + } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { + var nextHtml = nextProp ? nextProp[HTML$1] : undefined; + var lastHtml = lastProp ? lastProp[HTML$1] : undefined; + + if (nextHtml != null) { + if (lastHtml !== nextHtml) { + (updatePayload = updatePayload || []).push(propKey, nextHtml); + } + } + } else if (propKey === CHILDREN) { + if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) { + (updatePayload = updatePayload || []).push(propKey, '' + nextProp); + } + } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameModules.hasOwnProperty(propKey)) { + if (nextProp != null) { + // We eagerly listen to this even though we haven't committed yet. + if ( typeof nextProp !== 'function') { + warnForInvalidEventListener(propKey, nextProp); + } + + ensureListeningTo(rootContainerElement, propKey); + } + + if (!updatePayload && lastProp !== nextProp) { + // This is a special case. If any listener updates we need to ensure + // that the "current" props pointer gets updated so we need a commit + // to update this element. + updatePayload = []; + } + } else { + // For any other property we always add it to the queue and then we + // filter it out using the whitelist during the commit. + (updatePayload = updatePayload || []).push(propKey, nextProp); + } + } + + if (styleUpdates) { + { + validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]); + } + + (updatePayload = updatePayload || []).push(STYLE, styleUpdates); + } + + return updatePayload; + } // Apply the diff. + + function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) { + // Update checked *before* name. + // In the middle of an update, it is possible to have multiple checked. + // When a checked radio tries to change name, browser makes another radio's checked false. + if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) { + updateChecked(domElement, nextRawProps); + } + + var wasCustomComponentTag = isCustomComponent(tag, lastRawProps); + var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff. + + updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props + // changed. + + switch (tag) { + case 'input': + // Update the wrapper around inputs *after* updating props. This has to + // happen after `updateDOMProperties`. Otherwise HTML5 input validations + // raise warnings and prevent the new value from being assigned. + updateWrapper(domElement, nextRawProps); + break; + + case 'textarea': + updateWrapper$1(domElement, nextRawProps); + break; + + case 'select': + // <select> value update needs to occur after <option> children + // reconciliation + postUpdateWrapper(domElement, nextRawProps); + break; + } + } + + function getPossibleStandardName(propName) { + { + var lowerCasedName = propName.toLowerCase(); + + if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) { + return null; + } + + return possibleStandardNames[lowerCasedName] || null; + } + } + + function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) { + var isCustomComponentTag; + var extraAttributeNames; + + { + suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING] === true; + isCustomComponentTag = isCustomComponent(tag, rawProps); + validatePropertiesInDevelopment(tag, rawProps); + } // TODO: Make sure that we check isMounted before firing any of these events. + + + switch (tag) { + case 'iframe': + case 'object': + case 'embed': + trapBubbledEvent(TOP_LOAD, domElement); + break; + + case 'video': + case 'audio': + // Create listener for each media event + for (var i = 0; i < mediaEventTypes.length; i++) { + trapBubbledEvent(mediaEventTypes[i], domElement); + } + + break; + + case 'source': + trapBubbledEvent(TOP_ERROR, domElement); + break; + + case 'img': + case 'image': + case 'link': + trapBubbledEvent(TOP_ERROR, domElement); + trapBubbledEvent(TOP_LOAD, domElement); + break; + + case 'form': + trapBubbledEvent(TOP_RESET, domElement); + trapBubbledEvent(TOP_SUBMIT, domElement); + break; + + case 'details': + trapBubbledEvent(TOP_TOGGLE, domElement); + break; + + case 'input': + initWrapperState(domElement, rawProps); + trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening + // to onChange. Even if there is no listener. + + ensureListeningTo(rootContainerElement, 'onChange'); + break; + + case 'option': + validateProps(domElement, rawProps); + break; + + case 'select': + initWrapperState$1(domElement, rawProps); + trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening + // to onChange. Even if there is no listener. + + ensureListeningTo(rootContainerElement, 'onChange'); + break; + + case 'textarea': + initWrapperState$2(domElement, rawProps); + trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening + // to onChange. Even if there is no listener. + + ensureListeningTo(rootContainerElement, 'onChange'); + break; + } + + assertValidProps(tag, rawProps); + + { + extraAttributeNames = new Set(); + var attributes = domElement.attributes; + + for (var _i = 0; _i < attributes.length; _i++) { + var name = attributes[_i].name.toLowerCase(); + + switch (name) { + // Built-in SSR attribute is whitelisted + case 'data-reactroot': + break; + // Controlled attributes are not validated + // TODO: Only ignore them on controlled tags. + + case 'value': + break; + + case 'checked': + break; + + case 'selected': + break; + + default: + // Intentionally use the original name. + // See discussion in https://github.com/facebook/react/pull/10676. + extraAttributeNames.add(attributes[_i].name); + } + } + } + + var updatePayload = null; + + for (var propKey in rawProps) { + if (!rawProps.hasOwnProperty(propKey)) { + continue; + } + + var nextProp = rawProps[propKey]; + + if (propKey === CHILDREN) { + // For text content children we compare against textContent. This + // might match additional HTML that is hidden when we read it using + // textContent. E.g. "foo" will match "f<span>oo</span>" but that still + // satisfies our requirement. Our requirement is not to produce perfect + // HTML and attributes. Ideally we should preserve structure but it's + // ok not to if the visible content is still enough to indicate what + // even listeners these nodes might be wired up to. + // TODO: Warn if there is more than a single textNode as a child. + // TODO: Should we use domElement.firstChild.nodeValue to compare? + if (typeof nextProp === 'string') { + if (domElement.textContent !== nextProp) { + if ( !suppressHydrationWarning) { + warnForTextDifference(domElement.textContent, nextProp); + } + + updatePayload = [CHILDREN, nextProp]; + } + } else if (typeof nextProp === 'number') { + if (domElement.textContent !== '' + nextProp) { + if ( !suppressHydrationWarning) { + warnForTextDifference(domElement.textContent, nextProp); + } + + updatePayload = [CHILDREN, '' + nextProp]; + } + } + } else if (registrationNameModules.hasOwnProperty(propKey)) { + if (nextProp != null) { + if ( typeof nextProp !== 'function') { + warnForInvalidEventListener(propKey, nextProp); + } + + ensureListeningTo(rootContainerElement, propKey); + } + } else if ( // Convince Flow we've calculated it (it's DEV-only in this method.) + typeof isCustomComponentTag === 'boolean') { + // Validate that the properties correspond to their expected values. + var serverValue = void 0; + var propertyInfo = getPropertyInfo(propKey); + + if (suppressHydrationWarning) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated + // TODO: Only ignore them on controlled tags. + propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) { + var serverHTML = domElement.innerHTML; + var nextHtml = nextProp ? nextProp[HTML$1] : undefined; + var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : ''); + + if (expectedHTML !== serverHTML) { + warnForPropDifference(propKey, serverHTML, expectedHTML); + } + } else if (propKey === STYLE) { + // $FlowFixMe - Should be inferred as not undefined. + extraAttributeNames.delete(propKey); + + if (canDiffStyleForHydrationWarning) { + var expectedStyle = createDangerousStringForStyles(nextProp); + serverValue = domElement.getAttribute('style'); + + if (expectedStyle !== serverValue) { + warnForPropDifference(propKey, serverValue, expectedStyle); + } + } + } else if (isCustomComponentTag) { + // $FlowFixMe - Should be inferred as not undefined. + extraAttributeNames.delete(propKey.toLowerCase()); + serverValue = getValueForAttribute(domElement, propKey, nextProp); + + if (nextProp !== serverValue) { + warnForPropDifference(propKey, serverValue, nextProp); + } + } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) { + var isMismatchDueToBadCasing = false; + + if (propertyInfo !== null) { + // $FlowFixMe - Should be inferred as not undefined. + extraAttributeNames.delete(propertyInfo.attributeName); + serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo); + } else { + var ownNamespace = parentNamespace; + + if (ownNamespace === HTML_NAMESPACE$1) { + ownNamespace = getIntrinsicNamespace(tag); + } + + if (ownNamespace === HTML_NAMESPACE$1) { + // $FlowFixMe - Should be inferred as not undefined. + extraAttributeNames.delete(propKey.toLowerCase()); + } else { + var standardName = getPossibleStandardName(propKey); + + if (standardName !== null && standardName !== propKey) { + // If an SVG prop is supplied with bad casing, it will + // be successfully parsed from HTML, but will produce a mismatch + // (and would be incorrectly rendered on the client). + // However, we already warn about bad casing elsewhere. + // So we'll skip the misleading extra mismatch warning in this case. + isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined. + + extraAttributeNames.delete(standardName); + } // $FlowFixMe - Should be inferred as not undefined. + + + extraAttributeNames.delete(propKey); + } + + serverValue = getValueForAttribute(domElement, propKey, nextProp); + } + + if (nextProp !== serverValue && !isMismatchDueToBadCasing) { + warnForPropDifference(propKey, serverValue, nextProp); + } + } + } + } + + { + // $FlowFixMe - Should be inferred as not undefined. + if (extraAttributeNames.size > 0 && !suppressHydrationWarning) { + // $FlowFixMe - Should be inferred as not undefined. + warnForExtraAttributes(extraAttributeNames); + } + } + + switch (tag) { + case 'input': + // TODO: Make sure we check if this is still unmounted or do any clean + // up necessary since we never stop tracking anymore. + track(domElement); + postMountWrapper(domElement, rawProps, true); + break; + + case 'textarea': + // TODO: Make sure we check if this is still unmounted or do any clean + // up necessary since we never stop tracking anymore. + track(domElement); + postMountWrapper$3(domElement); + break; + + case 'select': + case 'option': + // For input and textarea we current always set the value property at + // post mount to force it to diverge from attributes. However, for + // option and select we don't quite do the same thing and select + // is not resilient to the DOM state changing so we don't do that here. + // TODO: Consider not doing this for input and textarea. + break; + + default: + if (typeof rawProps.onClick === 'function') { + // TODO: This cast may not be sound for SVG, MathML or custom elements. + trapClickOnNonInteractiveElement(domElement); + } + + break; + } + + return updatePayload; + } + function diffHydratedText(textNode, text) { + var isDifferent = textNode.nodeValue !== text; + return isDifferent; + } + function warnForUnmatchedText(textNode, text) { + { + warnForTextDifference(textNode.nodeValue, text); + } + } + function warnForDeletedHydratableElement(parentNode, child) { + { + if (didWarnInvalidHydration) { + return; + } + + didWarnInvalidHydration = true; + + error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase()); + } + } + function warnForDeletedHydratableText(parentNode, child) { + { + if (didWarnInvalidHydration) { + return; + } + + didWarnInvalidHydration = true; + + error('Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase()); + } + } + function warnForInsertedHydratedElement(parentNode, tag, props) { + { + if (didWarnInvalidHydration) { + return; + } + + didWarnInvalidHydration = true; + + error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase()); + } + } + function warnForInsertedHydratedText(parentNode, text) { + { + if (text === '') { + // We expect to insert empty text nodes since they're not represented in + // the HTML. + // TODO: Remove this special case if we can just avoid inserting empty + // text nodes. + return; + } + + if (didWarnInvalidHydration) { + return; + } + + didWarnInvalidHydration = true; + + error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase()); + } + } + function restoreControlledState$3(domElement, tag, props) { + switch (tag) { + case 'input': + restoreControlledState(domElement, props); + return; + + case 'textarea': + restoreControlledState$2(domElement, props); + return; + + case 'select': + restoreControlledState$1(domElement, props); + return; + } + } + + function getActiveElement(doc) { + doc = doc || (typeof document !== 'undefined' ? document : undefined); + + if (typeof doc === 'undefined') { + return null; + } + + try { + return doc.activeElement || doc.body; + } catch (e) { + return doc.body; + } + } + + /** + * Given any node return the first leaf node without children. + * + * @param {DOMElement|DOMTextNode} node + * @return {DOMElement|DOMTextNode} + */ + + function getLeafNode(node) { + while (node && node.firstChild) { + node = node.firstChild; + } + + return node; + } + /** + * Get the next sibling within a container. This will walk up the + * DOM if a node's siblings have been exhausted. + * + * @param {DOMElement|DOMTextNode} node + * @return {?DOMElement|DOMTextNode} + */ + + + function getSiblingNode(node) { + while (node) { + if (node.nextSibling) { + return node.nextSibling; + } + + node = node.parentNode; + } + } + /** + * Get object describing the nodes which contain characters at offset. + * + * @param {DOMElement|DOMTextNode} root + * @param {number} offset + * @return {?object} + */ + + + function getNodeForCharacterOffset(root, offset) { + var node = getLeafNode(root); + var nodeStart = 0; + var nodeEnd = 0; + + while (node) { + if (node.nodeType === TEXT_NODE) { + nodeEnd = nodeStart + node.textContent.length; + + if (nodeStart <= offset && nodeEnd >= offset) { + return { + node: node, + offset: offset - nodeStart + }; + } + + nodeStart = nodeEnd; + } + + node = getLeafNode(getSiblingNode(node)); + } + } + + /** + * @param {DOMElement} outerNode + * @return {?object} + */ + + function getOffsets(outerNode) { + var ownerDocument = outerNode.ownerDocument; + var win = ownerDocument && ownerDocument.defaultView || window; + var selection = win.getSelection && win.getSelection(); + + if (!selection || selection.rangeCount === 0) { + return null; + } + + var anchorNode = selection.anchorNode, + anchorOffset = selection.anchorOffset, + focusNode = selection.focusNode, + focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the + // up/down buttons on an <input type="number">. Anonymous divs do not seem to + // expose properties, triggering a "Permission denied error" if any of its + // properties are accessed. The only seemingly possible way to avoid erroring + // is to access a property that typically works for non-anonymous divs and + // catch any error that may otherwise arise. See + // https://bugzilla.mozilla.org/show_bug.cgi?id=208427 + + try { + /* eslint-disable no-unused-expressions */ + anchorNode.nodeType; + focusNode.nodeType; + /* eslint-enable no-unused-expressions */ + } catch (e) { + return null; + } + + return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset); + } + /** + * Returns {start, end} where `start` is the character/codepoint index of + * (anchorNode, anchorOffset) within the textContent of `outerNode`, and + * `end` is the index of (focusNode, focusOffset). + * + * Returns null if you pass in garbage input but we should probably just crash. + * + * Exported only for testing. + */ + + function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) { + var length = 0; + var start = -1; + var end = -1; + var indexWithinAnchor = 0; + var indexWithinFocus = 0; + var node = outerNode; + var parentNode = null; + + outer: while (true) { + var next = null; + + while (true) { + if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) { + start = length + anchorOffset; + } + + if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) { + end = length + focusOffset; + } + + if (node.nodeType === TEXT_NODE) { + length += node.nodeValue.length; + } + + if ((next = node.firstChild) === null) { + break; + } // Moving from `node` to its first child `next`. + + + parentNode = node; + node = next; + } + + while (true) { + if (node === outerNode) { + // If `outerNode` has children, this is always the second time visiting + // it. If it has no children, this is still the first loop, and the only + // valid selection is anchorNode and focusNode both equal to this node + // and both offsets 0, in which case we will have handled above. + break outer; + } + + if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) { + start = length; + } + + if (parentNode === focusNode && ++indexWithinFocus === focusOffset) { + end = length; + } + + if ((next = node.nextSibling) !== null) { + break; + } + + node = parentNode; + parentNode = node.parentNode; + } // Moving from `node` to its next sibling `next`. + + + node = next; + } + + if (start === -1 || end === -1) { + // This should never happen. (Would happen if the anchor/focus nodes aren't + // actually inside the passed-in node.) + return null; + } + + return { + start: start, + end: end + }; + } + /** + * In modern non-IE browsers, we can support both forward and backward + * selections. + * + * Note: IE10+ supports the Selection object, but it does not support + * the `extend` method, which means that even in modern IE, it's not possible + * to programmatically create a backward selection. Thus, for all IE + * versions, we use the old IE API to create our selections. + * + * @param {DOMElement|DOMTextNode} node + * @param {object} offsets + */ + + function setOffsets(node, offsets) { + var doc = node.ownerDocument || document; + var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios. + // (For instance: TinyMCE editor used in a list component that supports pasting to add more, + // fails when pasting 100+ items) + + if (!win.getSelection) { + return; + } + + var selection = win.getSelection(); + var length = node.textContent.length; + var start = Math.min(offsets.start, length); + var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method. + // Flip backward selections, so we can set with a single range. + + if (!selection.extend && start > end) { + var temp = end; + end = start; + start = temp; + } + + var startMarker = getNodeForCharacterOffset(node, start); + var endMarker = getNodeForCharacterOffset(node, end); + + if (startMarker && endMarker) { + if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) { + return; + } + + var range = doc.createRange(); + range.setStart(startMarker.node, startMarker.offset); + selection.removeAllRanges(); + + if (start > end) { + selection.addRange(range); + selection.extend(endMarker.node, endMarker.offset); + } else { + range.setEnd(endMarker.node, endMarker.offset); + selection.addRange(range); + } + } + } + + function isTextNode(node) { + return node && node.nodeType === TEXT_NODE; + } + + function containsNode(outerNode, innerNode) { + if (!outerNode || !innerNode) { + return false; + } else if (outerNode === innerNode) { + return true; + } else if (isTextNode(outerNode)) { + return false; + } else if (isTextNode(innerNode)) { + return containsNode(outerNode, innerNode.parentNode); + } else if ('contains' in outerNode) { + return outerNode.contains(innerNode); + } else if (outerNode.compareDocumentPosition) { + return !!(outerNode.compareDocumentPosition(innerNode) & 16); + } else { + return false; + } + } + + function isInDocument(node) { + return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node); + } + + function isSameOriginFrame(iframe) { + try { + // Accessing the contentDocument of a HTMLIframeElement can cause the browser + // to throw, e.g. if it has a cross-origin src attribute. + // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g: + // iframe.contentDocument.defaultView; + // A safety way is to access one of the cross origin properties: Window or Location + // Which might result in "SecurityError" DOM Exception and it is compatible to Safari. + // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl + return typeof iframe.contentWindow.location.href === 'string'; + } catch (err) { + return false; + } + } + + function getActiveElementDeep() { + var win = window; + var element = getActiveElement(); + + while (element instanceof win.HTMLIFrameElement) { + if (isSameOriginFrame(element)) { + win = element.contentWindow; + } else { + return element; + } + + element = getActiveElement(win.document); + } + + return element; + } + /** + * @ReactInputSelection: React input selection module. Based on Selection.js, + * but modified to be suitable for react and has a couple of bug fixes (doesn't + * assume buttons have range selections allowed). + * Input selection module for React. + */ + + /** + * @hasSelectionCapabilities: we get the element types that support selection + * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart` + * and `selectionEnd` rows. + */ + + + function hasSelectionCapabilities(elem) { + var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); + return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true'); + } + function getSelectionInformation() { + var focusedElem = getActiveElementDeep(); + return { + // Used by Flare + activeElementDetached: null, + focusedElem: focusedElem, + selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null + }; + } + /** + * @restoreSelection: If any selection information was potentially lost, + * restore it. This is useful when performing operations that could remove dom + * nodes and place them back in, resulting in focus being lost. + */ + + function restoreSelection(priorSelectionInformation) { + var curFocusedElem = getActiveElementDeep(); + var priorFocusedElem = priorSelectionInformation.focusedElem; + var priorSelectionRange = priorSelectionInformation.selectionRange; + + if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) { + if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) { + setSelection(priorFocusedElem, priorSelectionRange); + } // Focusing a node can change the scroll position, which is undesirable + + + var ancestors = []; + var ancestor = priorFocusedElem; + + while (ancestor = ancestor.parentNode) { + if (ancestor.nodeType === ELEMENT_NODE) { + ancestors.push({ + element: ancestor, + left: ancestor.scrollLeft, + top: ancestor.scrollTop + }); + } + } + + if (typeof priorFocusedElem.focus === 'function') { + priorFocusedElem.focus(); + } + + for (var i = 0; i < ancestors.length; i++) { + var info = ancestors[i]; + info.element.scrollLeft = info.left; + info.element.scrollTop = info.top; + } + } + } + /** + * @getSelection: Gets the selection bounds of a focused textarea, input or + * contentEditable node. + * -@input: Look up selection bounds of this input + * -@return {start: selectionStart, end: selectionEnd} + */ + + function getSelection(input) { + var selection; + + if ('selectionStart' in input) { + // Modern browser with input or textarea. + selection = { + start: input.selectionStart, + end: input.selectionEnd + }; + } else { + // Content editable or old IE textarea. + selection = getOffsets(input); + } + + return selection || { + start: 0, + end: 0 + }; + } + /** + * @setSelection: Sets the selection bounds of a textarea or input and focuses + * the input. + * -@input Set selection bounds of this input or textarea + * -@offsets Object of same form that is returned from get* + */ + + function setSelection(input, offsets) { + var start = offsets.start, + end = offsets.end; + + if (end === undefined) { + end = start; + } + + if ('selectionStart' in input) { + input.selectionStart = start; + input.selectionEnd = Math.min(end, input.value.length); + } else { + setOffsets(input, offsets); + } + } + + var validateDOMNesting = function () {}; + + var updatedAncestorInfo = function () {}; + + { + // This validation code was written based on the HTML5 parsing spec: + // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope + // + // Note: this does not catch all invalid nesting, nor does it try to (as it's + // not clear what practical benefit doing so provides); instead, we warn only + // for cases where the parser will give a parse tree differing from what React + // intended. For example, <b><div></div></b> is invalid but we don't warn + // because it still parses correctly; we do warn for other cases like nested + // <p> tags where the beginning of the second element implicitly closes the + // first, causing a confusing mess. + // https://html.spec.whatwg.org/multipage/syntax.html#special + var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope + + var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point + // TODO: Distinguish by namespace here -- for <title>, including it here + // errs on the side of fewer warnings + 'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope + + var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags + + var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt']; + var emptyAncestorInfo = { + current: null, + formTag: null, + aTagInScope: null, + buttonTagInScope: null, + nobrTagInScope: null, + pTagInButtonScope: null, + listItemTagAutoclosing: null, + dlItemTagAutoclosing: null + }; + + updatedAncestorInfo = function (oldInfo, tag) { + var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo); + + var info = { + tag: tag + }; + + if (inScopeTags.indexOf(tag) !== -1) { + ancestorInfo.aTagInScope = null; + ancestorInfo.buttonTagInScope = null; + ancestorInfo.nobrTagInScope = null; + } + + if (buttonScopeTags.indexOf(tag) !== -1) { + ancestorInfo.pTagInButtonScope = null; + } // See rules for 'li', 'dd', 'dt' start tags in + // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody + + + if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') { + ancestorInfo.listItemTagAutoclosing = null; + ancestorInfo.dlItemTagAutoclosing = null; + } + + ancestorInfo.current = info; + + if (tag === 'form') { + ancestorInfo.formTag = info; + } + + if (tag === 'a') { + ancestorInfo.aTagInScope = info; + } + + if (tag === 'button') { + ancestorInfo.buttonTagInScope = info; + } + + if (tag === 'nobr') { + ancestorInfo.nobrTagInScope = info; + } + + if (tag === 'p') { + ancestorInfo.pTagInButtonScope = info; + } + + if (tag === 'li') { + ancestorInfo.listItemTagAutoclosing = info; + } + + if (tag === 'dd' || tag === 'dt') { + ancestorInfo.dlItemTagAutoclosing = info; + } + + return ancestorInfo; + }; + /** + * Returns whether + */ + + + var isTagValidWithParent = function (tag, parentTag) { + // First, let's check if we're in an unusual parsing mode... + switch (parentTag) { + // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect + case 'select': + return tag === 'option' || tag === 'optgroup' || tag === '#text'; + + case 'optgroup': + return tag === 'option' || tag === '#text'; + // Strictly speaking, seeing an <option> doesn't mean we're in a <select> + // but + + case 'option': + return tag === '#text'; + // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd + // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption + // No special behavior since these rules fall back to "in body" mode for + // all except special table nodes which cause bad parsing behavior anyway. + // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr + + case 'tr': + return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template'; + // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody + + case 'tbody': + case 'thead': + case 'tfoot': + return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template'; + // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup + + case 'colgroup': + return tag === 'col' || tag === 'template'; + // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable + + case 'table': + return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template'; + // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead + + case 'head': + return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template'; + // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element + + case 'html': + return tag === 'head' || tag === 'body' || tag === 'frameset'; + + case 'frameset': + return tag === 'frame'; + + case '#document': + return tag === 'html'; + } // Probably in the "in body" parsing mode, so we outlaw only tag combos + // where the parsing rules cause implicit opens or closes to be added. + // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody + + + switch (tag) { + case 'h1': + case 'h2': + case 'h3': + case 'h4': + case 'h5': + case 'h6': + return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6'; + + case 'rp': + case 'rt': + return impliedEndTags.indexOf(parentTag) === -1; + + case 'body': + case 'caption': + case 'col': + case 'colgroup': + case 'frameset': + case 'frame': + case 'head': + case 'html': + case 'tbody': + case 'td': + case 'tfoot': + case 'th': + case 'thead': + case 'tr': + // These tags are only valid with a few parents that have special child + // parsing rules -- if we're down here, then none of those matched and + // so we allow it only if we don't know what the parent is, as all other + // cases are invalid. + return parentTag == null; + } + + return true; + }; + /** + * Returns whether + */ + + + var findInvalidAncestorForTag = function (tag, ancestorInfo) { + switch (tag) { + case 'address': + case 'article': + case 'aside': + case 'blockquote': + case 'center': + case 'details': + case 'dialog': + case 'dir': + case 'div': + case 'dl': + case 'fieldset': + case 'figcaption': + case 'figure': + case 'footer': + case 'header': + case 'hgroup': + case 'main': + case 'menu': + case 'nav': + case 'ol': + case 'p': + case 'section': + case 'summary': + case 'ul': + case 'pre': + case 'listing': + case 'table': + case 'hr': + case 'xmp': + case 'h1': + case 'h2': + case 'h3': + case 'h4': + case 'h5': + case 'h6': + return ancestorInfo.pTagInButtonScope; + + case 'form': + return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope; + + case 'li': + return ancestorInfo.listItemTagAutoclosing; + + case 'dd': + case 'dt': + return ancestorInfo.dlItemTagAutoclosing; + + case 'button': + return ancestorInfo.buttonTagInScope; + + case 'a': + // Spec says something about storing a list of markers, but it sounds + // equivalent to this check. + return ancestorInfo.aTagInScope; + + case 'nobr': + return ancestorInfo.nobrTagInScope; + } + + return null; + }; + + var didWarn$1 = {}; + + validateDOMNesting = function (childTag, childText, ancestorInfo) { + ancestorInfo = ancestorInfo || emptyAncestorInfo; + var parentInfo = ancestorInfo.current; + var parentTag = parentInfo && parentInfo.tag; + + if (childText != null) { + if (childTag != null) { + error('validateDOMNesting: when childText is passed, childTag should be null'); + } + + childTag = '#text'; + } + + var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo; + var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo); + var invalidParentOrAncestor = invalidParent || invalidAncestor; + + if (!invalidParentOrAncestor) { + return; + } + + var ancestorTag = invalidParentOrAncestor.tag; + var addendum = getCurrentFiberStackInDev(); + var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum; + + if (didWarn$1[warnKey]) { + return; + } + + didWarn$1[warnKey] = true; + var tagDisplayName = childTag; + var whitespaceInfo = ''; + + if (childTag === '#text') { + if (/\S/.test(childText)) { + tagDisplayName = 'Text nodes'; + } else { + tagDisplayName = 'Whitespace text nodes'; + whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.'; + } + } else { + tagDisplayName = '<' + childTag + '>'; + } + + if (invalidParent) { + var info = ''; + + if (ancestorTag === 'table' && childTag === 'tr') { + info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.'; + } + + error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info); + } else { + error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag); + } + }; + } + + var SUPPRESS_HYDRATION_WARNING$1; + + { + SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning'; + } + + var SUSPENSE_START_DATA = '$'; + var SUSPENSE_END_DATA = '/$'; + var SUSPENSE_PENDING_START_DATA = '$?'; + var SUSPENSE_FALLBACK_START_DATA = '$!'; + var STYLE$1 = 'style'; + var eventsEnabled = null; + var selectionInformation = null; + + function shouldAutoFocusHostComponent(type, props) { + switch (type) { + case 'button': + case 'input': + case 'select': + case 'textarea': + return !!props.autoFocus; + } + + return false; + } + function getRootHostContext(rootContainerInstance) { + var type; + var namespace; + var nodeType = rootContainerInstance.nodeType; + + switch (nodeType) { + case DOCUMENT_NODE: + case DOCUMENT_FRAGMENT_NODE: + { + type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment'; + var root = rootContainerInstance.documentElement; + namespace = root ? root.namespaceURI : getChildNamespace(null, ''); + break; + } + + default: + { + var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance; + var ownNamespace = container.namespaceURI || null; + type = container.tagName; + namespace = getChildNamespace(ownNamespace, type); + break; + } + } + + { + var validatedTag = type.toLowerCase(); + var ancestorInfo = updatedAncestorInfo(null, validatedTag); + return { + namespace: namespace, + ancestorInfo: ancestorInfo + }; + } + } + function getChildHostContext(parentHostContext, type, rootContainerInstance) { + { + var parentHostContextDev = parentHostContext; + var namespace = getChildNamespace(parentHostContextDev.namespace, type); + var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type); + return { + namespace: namespace, + ancestorInfo: ancestorInfo + }; + } + } + function getPublicInstance(instance) { + return instance; + } + function prepareForCommit(containerInfo) { + eventsEnabled = isEnabled(); + selectionInformation = getSelectionInformation(); + setEnabled(false); + } + function resetAfterCommit(containerInfo) { + restoreSelection(selectionInformation); + setEnabled(eventsEnabled); + eventsEnabled = null; + + selectionInformation = null; + } + function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { + var parentNamespace; + + { + // TODO: take namespace into account when validating. + var hostContextDev = hostContext; + validateDOMNesting(type, null, hostContextDev.ancestorInfo); + + if (typeof props.children === 'string' || typeof props.children === 'number') { + var string = '' + props.children; + var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type); + validateDOMNesting(null, string, ownAncestorInfo); + } + + parentNamespace = hostContextDev.namespace; + } + + var domElement = createElement(type, props, rootContainerInstance, parentNamespace); + precacheFiberNode(internalInstanceHandle, domElement); + updateFiberProps(domElement, props); + return domElement; + } + function appendInitialChild(parentInstance, child) { + parentInstance.appendChild(child); + } + function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) { + setInitialProperties(domElement, type, props, rootContainerInstance); + return shouldAutoFocusHostComponent(type, props); + } + function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) { + { + var hostContextDev = hostContext; + + if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) { + var string = '' + newProps.children; + var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type); + validateDOMNesting(null, string, ownAncestorInfo); + } + } + + return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance); + } + function shouldSetTextContent(type, props) { + return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null; + } + function shouldDeprioritizeSubtree(type, props) { + return !!props.hidden; + } + function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { + { + var hostContextDev = hostContext; + validateDOMNesting(null, text, hostContextDev.ancestorInfo); + } + + var textNode = createTextNode(text, rootContainerInstance); + precacheFiberNode(internalInstanceHandle, textNode); + return textNode; + } + // if a component just imports ReactDOM (e.g. for findDOMNode). + // Some environments might not have setTimeout or clearTimeout. + + var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined; + var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined; + var noTimeout = -1; // ------------------- + function commitMount(domElement, type, newProps, internalInstanceHandle) { + // Despite the naming that might imply otherwise, this method only + // fires if there is an `Update` effect scheduled during mounting. + // This happens if `finalizeInitialChildren` returns `true` (which it + // does to implement the `autoFocus` attribute on the client). But + // there are also other cases when this might happen (such as patching + // up text content during hydration mismatch). So we'll check this again. + if (shouldAutoFocusHostComponent(type, newProps)) { + domElement.focus(); + } + } + function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) { + // Update the props handle so that we know which props are the ones with + // with current event handlers. + updateFiberProps(domElement, newProps); // Apply the diff to the DOM node. + + updateProperties(domElement, updatePayload, type, oldProps, newProps); + } + function resetTextContent(domElement) { + setTextContent(domElement, ''); + } + function commitTextUpdate(textInstance, oldText, newText) { + textInstance.nodeValue = newText; + } + function appendChild(parentInstance, child) { + parentInstance.appendChild(child); + } + function appendChildToContainer(container, child) { + var parentNode; + + if (container.nodeType === COMMENT_NODE) { + parentNode = container.parentNode; + parentNode.insertBefore(child, container); + } else { + parentNode = container; + parentNode.appendChild(child); + } // This container might be used for a portal. + // If something inside a portal is clicked, that click should bubble + // through the React tree. However, on Mobile Safari the click would + // never bubble through the *DOM* tree unless an ancestor with onclick + // event exists. So we wouldn't see it and dispatch it. + // This is why we ensure that non React root containers have inline onclick + // defined. + // https://github.com/facebook/react/issues/11918 + + + var reactRootContainer = container._reactRootContainer; + + if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) { + // TODO: This cast may not be sound for SVG, MathML or custom elements. + trapClickOnNonInteractiveElement(parentNode); + } + } + function insertBefore(parentInstance, child, beforeChild) { + parentInstance.insertBefore(child, beforeChild); + } + function insertInContainerBefore(container, child, beforeChild) { + if (container.nodeType === COMMENT_NODE) { + container.parentNode.insertBefore(child, beforeChild); + } else { + container.insertBefore(child, beforeChild); + } + } + function removeChild(parentInstance, child) { + parentInstance.removeChild(child); + } + function removeChildFromContainer(container, child) { + if (container.nodeType === COMMENT_NODE) { + container.parentNode.removeChild(child); + } else { + container.removeChild(child); + } + } + + function hideInstance(instance) { + // pass host context to this method? + + + instance = instance; + var style = instance.style; + + if (typeof style.setProperty === 'function') { + style.setProperty('display', 'none', 'important'); + } else { + style.display = 'none'; + } + } + function hideTextInstance(textInstance) { + textInstance.nodeValue = ''; + } + function unhideInstance(instance, props) { + instance = instance; + var styleProp = props[STYLE$1]; + var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null; + instance.style.display = dangerousStyleValue('display', display); + } + function unhideTextInstance(textInstance, text) { + textInstance.nodeValue = text; + } // ------------------- + function canHydrateInstance(instance, type, props) { + if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) { + return null; + } // This has now been refined to an element node. + + + return instance; + } + function canHydrateTextInstance(instance, text) { + if (text === '' || instance.nodeType !== TEXT_NODE) { + // Empty strings are not parsed by HTML so there won't be a correct match here. + return null; + } // This has now been refined to a text node. + + + return instance; + } + function isSuspenseInstancePending(instance) { + return instance.data === SUSPENSE_PENDING_START_DATA; + } + function isSuspenseInstanceFallback(instance) { + return instance.data === SUSPENSE_FALLBACK_START_DATA; + } + + function getNextHydratable(node) { + // Skip non-hydratable nodes. + for (; node != null; node = node.nextSibling) { + var nodeType = node.nodeType; + + if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) { + break; + } + } + + return node; + } + + function getNextHydratableSibling(instance) { + return getNextHydratable(instance.nextSibling); + } + function getFirstHydratableChild(parentInstance) { + return getNextHydratable(parentInstance.firstChild); + } + function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) { + precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events + // get attached. + + updateFiberProps(instance, props); + var parentNamespace; + + { + var hostContextDev = hostContext; + parentNamespace = hostContextDev.namespace; + } + + return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance); + } + function hydrateTextInstance(textInstance, text, internalInstanceHandle) { + precacheFiberNode(internalInstanceHandle, textInstance); + return diffHydratedText(textInstance, text); + } + function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) { + var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary. + // There might be nested nodes so we need to keep track of how + // deep we are and only break out when we're back on top. + + var depth = 0; + + while (node) { + if (node.nodeType === COMMENT_NODE) { + var data = node.data; + + if (data === SUSPENSE_END_DATA) { + if (depth === 0) { + return getNextHydratableSibling(node); + } else { + depth--; + } + } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) { + depth++; + } + } + + node = node.nextSibling; + } // TODO: Warn, we didn't find the end comment boundary. + + + return null; + } // Returns the SuspenseInstance if this node is a direct child of a + // SuspenseInstance. I.e. if its previous sibling is a Comment with + // SUSPENSE_x_START_DATA. Otherwise, null. + + function getParentSuspenseInstance(targetInstance) { + var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary. + // There might be nested nodes so we need to keep track of how + // deep we are and only break out when we're back on top. + + var depth = 0; + + while (node) { + if (node.nodeType === COMMENT_NODE) { + var data = node.data; + + if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) { + if (depth === 0) { + return node; + } else { + depth--; + } + } else if (data === SUSPENSE_END_DATA) { + depth++; + } + } + + node = node.previousSibling; + } + + return null; + } + function commitHydratedContainer(container) { + // Retry if any event replaying was blocked on this. + retryIfBlockedOn(container); + } + function commitHydratedSuspenseInstance(suspenseInstance) { + // Retry if any event replaying was blocked on this. + retryIfBlockedOn(suspenseInstance); + } + function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) { + { + warnForUnmatchedText(textInstance, text); + } + } + function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) { + if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) { + warnForUnmatchedText(textInstance, text); + } + } + function didNotHydrateContainerInstance(parentContainer, instance) { + { + if (instance.nodeType === ELEMENT_NODE) { + warnForDeletedHydratableElement(parentContainer, instance); + } else if (instance.nodeType === COMMENT_NODE) ; else { + warnForDeletedHydratableText(parentContainer, instance); + } + } + } + function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) { + if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) { + if (instance.nodeType === ELEMENT_NODE) { + warnForDeletedHydratableElement(parentInstance, instance); + } else if (instance.nodeType === COMMENT_NODE) ; else { + warnForDeletedHydratableText(parentInstance, instance); + } + } + } + function didNotFindHydratableContainerInstance(parentContainer, type, props) { + { + warnForInsertedHydratedElement(parentContainer, type); + } + } + function didNotFindHydratableContainerTextInstance(parentContainer, text) { + { + warnForInsertedHydratedText(parentContainer, text); + } + } + function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) { + if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) { + warnForInsertedHydratedElement(parentInstance, type); + } + } + function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) { + if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) { + warnForInsertedHydratedText(parentInstance, text); + } + } + function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) { + if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) ; + } + + var randomKey = Math.random().toString(36).slice(2); + var internalInstanceKey = '__reactInternalInstance$' + randomKey; + var internalEventHandlersKey = '__reactEventHandlers$' + randomKey; + var internalContainerInstanceKey = '__reactContainere$' + randomKey; + function precacheFiberNode(hostInst, node) { + node[internalInstanceKey] = hostInst; + } + function markContainerAsRoot(hostRoot, node) { + node[internalContainerInstanceKey] = hostRoot; + } + function unmarkContainerAsRoot(node) { + node[internalContainerInstanceKey] = null; + } + function isContainerMarkedAsRoot(node) { + return !!node[internalContainerInstanceKey]; + } // Given a DOM node, return the closest HostComponent or HostText fiber ancestor. + // If the target node is part of a hydrated or not yet rendered subtree, then + // this may also return a SuspenseComponent or HostRoot to indicate that. + // Conceptually the HostRoot fiber is a child of the Container node. So if you + // pass the Container node as the targetNode, you will not actually get the + // HostRoot back. To get to the HostRoot, you need to pass a child of it. + // The same thing applies to Suspense boundaries. + + function getClosestInstanceFromNode(targetNode) { + var targetInst = targetNode[internalInstanceKey]; + + if (targetInst) { + // Don't return HostRoot or SuspenseComponent here. + return targetInst; + } // If the direct event target isn't a React owned DOM node, we need to look + // to see if one of its parents is a React owned DOM node. + + + var parentNode = targetNode.parentNode; + + while (parentNode) { + // We'll check if this is a container root that could include + // React nodes in the future. We need to check this first because + // if we're a child of a dehydrated container, we need to first + // find that inner container before moving on to finding the parent + // instance. Note that we don't check this field on the targetNode + // itself because the fibers are conceptually between the container + // node and the first child. It isn't surrounding the container node. + // If it's not a container, we check if it's an instance. + targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey]; + + if (targetInst) { + // Since this wasn't the direct target of the event, we might have + // stepped past dehydrated DOM nodes to get here. However they could + // also have been non-React nodes. We need to answer which one. + // If we the instance doesn't have any children, then there can't be + // a nested suspense boundary within it. So we can use this as a fast + // bailout. Most of the time, when people add non-React children to + // the tree, it is using a ref to a child-less DOM node. + // Normally we'd only need to check one of the fibers because if it + // has ever gone from having children to deleting them or vice versa + // it would have deleted the dehydrated boundary nested inside already. + // However, since the HostRoot starts out with an alternate it might + // have one on the alternate so we need to check in case this was a + // root. + var alternate = targetInst.alternate; + + if (targetInst.child !== null || alternate !== null && alternate.child !== null) { + // Next we need to figure out if the node that skipped past is + // nested within a dehydrated boundary and if so, which one. + var suspenseInstance = getParentSuspenseInstance(targetNode); + + while (suspenseInstance !== null) { + // We found a suspense instance. That means that we haven't + // hydrated it yet. Even though we leave the comments in the + // DOM after hydrating, and there are boundaries in the DOM + // that could already be hydrated, we wouldn't have found them + // through this pass since if the target is hydrated it would + // have had an internalInstanceKey on it. + // Let's get the fiber associated with the SuspenseComponent + // as the deepest instance. + var targetSuspenseInst = suspenseInstance[internalInstanceKey]; + + if (targetSuspenseInst) { + return targetSuspenseInst; + } // If we don't find a Fiber on the comment, it might be because + // we haven't gotten to hydrate it yet. There might still be a + // parent boundary that hasn't above this one so we need to find + // the outer most that is known. + + + suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent + // host component also hasn't hydrated yet. We can return it + // below since it will bail out on the isMounted check later. + } + } + + return targetInst; + } + + targetNode = parentNode; + parentNode = targetNode.parentNode; + } + + return null; + } + /** + * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent + * instance, or null if the node was not rendered by this React. + */ + + function getInstanceFromNode$1(node) { + var inst = node[internalInstanceKey] || node[internalContainerInstanceKey]; + + if (inst) { + if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) { + return inst; + } else { + return null; + } + } + + return null; + } + /** + * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding + * DOM node. + */ + + function getNodeFromInstance$1(inst) { + if (inst.tag === HostComponent || inst.tag === HostText) { + // In Fiber this, is just the state node right now. We assume it will be + // a host component or host text. + return inst.stateNode; + } // Without this first invariant, passing a non-DOM-component triggers the next + // invariant for a missing parent, which is super confusing. + + + { + { + throw Error( "getNodeFromInstance: Invalid argument." ); + } + } + } + function getFiberCurrentPropsFromNode$1(node) { + return node[internalEventHandlersKey] || null; + } + function updateFiberProps(node, props) { + node[internalEventHandlersKey] = props; + } + + function getParent(inst) { + do { + inst = inst.return; // TODO: If this is a HostRoot we might want to bail out. + // That is depending on if we want nested subtrees (layers) to bubble + // events to their parent. We could also go through parentNode on the + // host node but that wouldn't work for React Native and doesn't let us + // do the portal feature. + } while (inst && inst.tag !== HostComponent); + + if (inst) { + return inst; + } + + return null; + } + /** + * Return the lowest common ancestor of A and B, or null if they are in + * different trees. + */ + + + function getLowestCommonAncestor(instA, instB) { + var depthA = 0; + + for (var tempA = instA; tempA; tempA = getParent(tempA)) { + depthA++; + } + + var depthB = 0; + + for (var tempB = instB; tempB; tempB = getParent(tempB)) { + depthB++; + } // If A is deeper, crawl up. + + + while (depthA - depthB > 0) { + instA = getParent(instA); + depthA--; + } // If B is deeper, crawl up. + + + while (depthB - depthA > 0) { + instB = getParent(instB); + depthB--; + } // Walk in lockstep until we find a match. + + + var depth = depthA; + + while (depth--) { + if (instA === instB || instA === instB.alternate) { + return instA; + } + + instA = getParent(instA); + instB = getParent(instB); + } + + return null; + } + /** + * Simulates the traversal of a two-phase, capture/bubble event dispatch. + */ + + function traverseTwoPhase(inst, fn, arg) { + var path = []; + + while (inst) { + path.push(inst); + inst = getParent(inst); + } + + var i; + + for (i = path.length; i-- > 0;) { + fn(path[i], 'captured', arg); + } + + for (i = 0; i < path.length; i++) { + fn(path[i], 'bubbled', arg); + } + } + /** + * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that + * should would receive a `mouseEnter` or `mouseLeave` event. + * + * Does not invoke the callback on the nearest common ancestor because nothing + * "entered" or "left" that element. + */ + + function traverseEnterLeave(from, to, fn, argFrom, argTo) { + var common = from && to ? getLowestCommonAncestor(from, to) : null; + var pathFrom = []; + + while (true) { + if (!from) { + break; + } + + if (from === common) { + break; + } + + var alternate = from.alternate; + + if (alternate !== null && alternate === common) { + break; + } + + pathFrom.push(from); + from = getParent(from); + } + + var pathTo = []; + + while (true) { + if (!to) { + break; + } + + if (to === common) { + break; + } + + var _alternate = to.alternate; + + if (_alternate !== null && _alternate === common) { + break; + } + + pathTo.push(to); + to = getParent(to); + } + + for (var i = 0; i < pathFrom.length; i++) { + fn(pathFrom[i], 'bubbled', argFrom); + } + + for (var _i = pathTo.length; _i-- > 0;) { + fn(pathTo[_i], 'captured', argTo); + } + } + + function isInteractive(tag) { + return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea'; + } + + function shouldPreventMouseEvent(name, type, props) { + switch (name) { + case 'onClick': + case 'onClickCapture': + case 'onDoubleClick': + case 'onDoubleClickCapture': + case 'onMouseDown': + case 'onMouseDownCapture': + case 'onMouseMove': + case 'onMouseMoveCapture': + case 'onMouseUp': + case 'onMouseUpCapture': + case 'onMouseEnter': + return !!(props.disabled && isInteractive(type)); + + default: + return false; + } + } + /** + * @param {object} inst The instance, which is the source of events. + * @param {string} registrationName Name of listener (e.g. `onClick`). + * @return {?function} The stored callback. + */ + + + function getListener(inst, registrationName) { + var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not + // live here; needs to be moved to a better place soon + + var stateNode = inst.stateNode; + + if (!stateNode) { + // Work in progress (ex: onload events in incremental mode). + return null; + } + + var props = getFiberCurrentPropsFromNode(stateNode); + + if (!props) { + // Work in progress. + return null; + } + + listener = props[registrationName]; + + if (shouldPreventMouseEvent(registrationName, inst.type, props)) { + return null; + } + + if (!(!listener || typeof listener === 'function')) { + { + throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." ); + } + } + + return listener; + } + + /** + * Some event types have a notion of different registration names for different + * "phases" of propagation. This finds listeners by a given phase. + */ + function listenerAtPhase(inst, event, propagationPhase) { + var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; + return getListener(inst, registrationName); + } + /** + * A small set of propagation patterns, each of which will accept a small amount + * of information, and generate a set of "dispatch ready event objects" - which + * are sets of events that have already been annotated with a set of dispatched + * listener functions/ids. The API is designed this way to discourage these + * propagation strategies from actually executing the dispatches, since we + * always want to collect the entire set of dispatches before executing even a + * single one. + */ + + /** + * Tags a `SyntheticEvent` with dispatched listeners. Creating this function + * here, allows us to not have to bind or create functions for each event. + * Mutating the event's members allows us to not have to create a wrapping + * "dispatch" object that pairs the event with the listener. + */ + + + function accumulateDirectionalDispatches(inst, phase, event) { + { + if (!inst) { + error('Dispatching inst must not be null'); + } + } + + var listener = listenerAtPhase(inst, event, phase); + + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + } + /** + * Collect dispatches (must be entirely collected before dispatching - see unit + * tests). Lazily allocate the array to conserve memory. We must loop through + * each event and perform the traversal for each one. We cannot perform a + * single traversal for the entire collection of events because each event may + * have a different target. + */ + + + function accumulateTwoPhaseDispatchesSingle(event) { + if (event && event.dispatchConfig.phasedRegistrationNames) { + traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); + } + } + /** + * Accumulates without regard to direction, does not look for phased + * registration names. Same as `accumulateDirectDispatchesSingle` but without + * requiring that the `dispatchMarker` be the same as the dispatched ID. + */ + + + function accumulateDispatches(inst, ignoredDirection, event) { + if (inst && event && event.dispatchConfig.registrationName) { + var registrationName = event.dispatchConfig.registrationName; + var listener = getListener(inst, registrationName); + + if (listener) { + event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); + event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); + } + } + } + /** + * Accumulates dispatches on an `SyntheticEvent`, but only for the + * `dispatchMarker`. + * @param {SyntheticEvent} event + */ + + + function accumulateDirectDispatchesSingle(event) { + if (event && event.dispatchConfig.registrationName) { + accumulateDispatches(event._targetInst, null, event); + } + } + + function accumulateTwoPhaseDispatches(events) { + forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); + } + function accumulateEnterLeaveDispatches(leave, enter, from, to) { + traverseEnterLeave(from, to, accumulateDispatches, leave, enter); + } + function accumulateDirectDispatches(events) { + forEachAccumulated(events, accumulateDirectDispatchesSingle); + } + + /** + * These variables store information about text content of a target node, + * allowing comparison of content before and after a given event. + * + * Identify the node where selection currently begins, then observe + * both its text content and its current position in the DOM. Since the + * browser may natively replace the target node during composition, we can + * use its position to find its replacement. + * + * + */ + var root = null; + var startText = null; + var fallbackText = null; + function initialize(nativeEventTarget) { + root = nativeEventTarget; + startText = getText(); + return true; + } + function reset() { + root = null; + startText = null; + fallbackText = null; + } + function getData() { + if (fallbackText) { + return fallbackText; + } + + var start; + var startValue = startText; + var startLength = startValue.length; + var end; + var endValue = getText(); + var endLength = endValue.length; + + for (start = 0; start < startLength; start++) { + if (startValue[start] !== endValue[start]) { + break; + } + } + + var minEnd = startLength - start; + + for (end = 1; end <= minEnd; end++) { + if (startValue[startLength - end] !== endValue[endLength - end]) { + break; + } + } + + var sliceTail = end > 1 ? 1 - end : undefined; + fallbackText = endValue.slice(start, sliceTail); + return fallbackText; + } + function getText() { + if ('value' in root) { + return root.value; + } + + return root.textContent; + } + + var EVENT_POOL_SIZE = 10; + /** + * @interface Event + * @see http://www.w3.org/TR/DOM-Level-3-Events/ + */ + + var EventInterface = { + type: null, + target: null, + // currentTarget is set when dispatching; no use in copying it here + currentTarget: function () { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function (event) { + return event.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + + function functionThatReturnsTrue() { + return true; + } + + function functionThatReturnsFalse() { + return false; + } + /** + * Synthetic events are dispatched by event plugins, typically in response to a + * top-level event delegation handler. + * + * These systems should generally use pooling to reduce the frequency of garbage + * collection. The system should check `isPersistent` to determine whether the + * event should be released into the pool after being dispatched. Users that + * need a persisted event should invoke `persist`. + * + * Synthetic events (and subclasses) implement the DOM Level 3 Events API by + * normalizing browser quirks. Subclasses do not necessarily have to implement a + * DOM interface; custom application-specific events can also subclass this. + * + * @param {object} dispatchConfig Configuration used to dispatch this event. + * @param {*} targetInst Marker identifying the event target. + * @param {object} nativeEvent Native browser event. + * @param {DOMEventTarget} nativeEventTarget Target node. + */ + + + function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { + { + // these have a getter/setter for warnings + delete this.nativeEvent; + delete this.preventDefault; + delete this.stopPropagation; + delete this.isDefaultPrevented; + delete this.isPropagationStopped; + } + + this.dispatchConfig = dispatchConfig; + this._targetInst = targetInst; + this.nativeEvent = nativeEvent; + var Interface = this.constructor.Interface; + + for (var propName in Interface) { + if (!Interface.hasOwnProperty(propName)) { + continue; + } + + { + delete this[propName]; // this has a getter/setter for warnings + } + + var normalize = Interface[propName]; + + if (normalize) { + this[propName] = normalize(nativeEvent); + } else { + if (propName === 'target') { + this.target = nativeEventTarget; + } else { + this[propName] = nativeEvent[propName]; + } + } + } + + var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; + + if (defaultPrevented) { + this.isDefaultPrevented = functionThatReturnsTrue; + } else { + this.isDefaultPrevented = functionThatReturnsFalse; + } + + this.isPropagationStopped = functionThatReturnsFalse; + return this; + } + + _assign(SyntheticEvent.prototype, { + preventDefault: function () { + this.defaultPrevented = true; + var event = this.nativeEvent; + + if (!event) { + return; + } + + if (event.preventDefault) { + event.preventDefault(); + } else if (typeof event.returnValue !== 'unknown') { + event.returnValue = false; + } + + this.isDefaultPrevented = functionThatReturnsTrue; + }, + stopPropagation: function () { + var event = this.nativeEvent; + + if (!event) { + return; + } + + if (event.stopPropagation) { + event.stopPropagation(); + } else if (typeof event.cancelBubble !== 'unknown') { + // The ChangeEventPlugin registers a "propertychange" event for + // IE. This event does not support bubbling or cancelling, and + // any references to cancelBubble throw "Member not found". A + // typeof check of "unknown" circumvents this issue (and is also + // IE specific). + event.cancelBubble = true; + } + + this.isPropagationStopped = functionThatReturnsTrue; + }, + + /** + * We release all dispatched `SyntheticEvent`s after each event loop, adding + * them back into the pool. This allows a way to hold onto a reference that + * won't be added back into the pool. + */ + persist: function () { + this.isPersistent = functionThatReturnsTrue; + }, + + /** + * Checks if this event should be released back into the pool. + * + * @return {boolean} True if this should not be released, false otherwise. + */ + isPersistent: functionThatReturnsFalse, + + /** + * `PooledClass` looks for `destructor` on each instance it releases. + */ + destructor: function () { + var Interface = this.constructor.Interface; + + for (var propName in Interface) { + { + Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); + } + } + + this.dispatchConfig = null; + this._targetInst = null; + this.nativeEvent = null; + this.isDefaultPrevented = functionThatReturnsFalse; + this.isPropagationStopped = functionThatReturnsFalse; + this._dispatchListeners = null; + this._dispatchInstances = null; + + { + Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null)); + Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse)); + Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse)); + Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {})); + Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {})); + } + } + }); + + SyntheticEvent.Interface = EventInterface; + /** + * Helper to reduce boilerplate when creating subclasses. + */ + + SyntheticEvent.extend = function (Interface) { + var Super = this; + + var E = function () {}; + + E.prototype = Super.prototype; + var prototype = new E(); + + function Class() { + return Super.apply(this, arguments); + } + + _assign(prototype, Class.prototype); + + Class.prototype = prototype; + Class.prototype.constructor = Class; + Class.Interface = _assign({}, Super.Interface, Interface); + Class.extend = Super.extend; + addEventPoolingTo(Class); + return Class; + }; + + addEventPoolingTo(SyntheticEvent); + /** + * Helper to nullify syntheticEvent instance properties when destructing + * + * @param {String} propName + * @param {?object} getVal + * @return {object} defineProperty object + */ + + function getPooledWarningPropertyDefinition(propName, getVal) { + var isFunction = typeof getVal === 'function'; + return { + configurable: true, + set: set, + get: get + }; + + function set(val) { + var action = isFunction ? 'setting the method' : 'setting the property'; + warn(action, 'This is effectively a no-op'); + return val; + } + + function get() { + var action = isFunction ? 'accessing the method' : 'accessing the property'; + var result = isFunction ? 'This is a no-op function' : 'This is set to null'; + warn(action, result); + return getVal; + } + + function warn(action, result) { + { + error("This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result); + } + } + } + + function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { + var EventConstructor = this; + + if (EventConstructor.eventPool.length) { + var instance = EventConstructor.eventPool.pop(); + EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); + return instance; + } + + return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); + } + + function releasePooledEvent(event) { + var EventConstructor = this; + + if (!(event instanceof EventConstructor)) { + { + throw Error( "Trying to release an event instance into a pool of a different type." ); + } + } + + event.destructor(); + + if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { + EventConstructor.eventPool.push(event); + } + } + + function addEventPoolingTo(EventConstructor) { + EventConstructor.eventPool = []; + EventConstructor.getPooled = getPooledEvent; + EventConstructor.release = releasePooledEvent; + } + + /** + * @interface Event + * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents + */ + + var SyntheticCompositionEvent = SyntheticEvent.extend({ + data: null + }); + + /** + * @interface Event + * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105 + * /#events-inputevents + */ + + var SyntheticInputEvent = SyntheticEvent.extend({ + data: null + }); + + var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space + + var START_KEYCODE = 229; + var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window; + var documentMode = null; + + if (canUseDOM && 'documentMode' in document) { + documentMode = document.documentMode; + } // Webkit offers a very useful `textInput` event that can be used to + // directly represent `beforeInput`. The IE `textinput` event is not as + // useful, so we don't use it. + + + var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied + // by the native compositionend event may be incorrect. Japanese ideographic + // spaces, for instance (\u3000) are not recorded correctly. + + var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11); + var SPACEBAR_CODE = 32; + var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); // Events and their corresponding property names. + + var eventTypes = { + beforeInput: { + phasedRegistrationNames: { + bubbled: 'onBeforeInput', + captured: 'onBeforeInputCapture' + }, + dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE] + }, + compositionEnd: { + phasedRegistrationNames: { + bubbled: 'onCompositionEnd', + captured: 'onCompositionEndCapture' + }, + dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN] + }, + compositionStart: { + phasedRegistrationNames: { + bubbled: 'onCompositionStart', + captured: 'onCompositionStartCapture' + }, + dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN] + }, + compositionUpdate: { + phasedRegistrationNames: { + bubbled: 'onCompositionUpdate', + captured: 'onCompositionUpdateCapture' + }, + dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN] + } + }; // Track whether we've ever handled a keypress on the space key. + + var hasSpaceKeypress = false; + /** + * Return whether a native keypress event is assumed to be a command. + * This is required because Firefox fires `keypress` events for key commands + * (cut, copy, select-all, etc.) even though no character is inserted. + */ + + function isKeypressCommand(nativeEvent) { + return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command. + !(nativeEvent.ctrlKey && nativeEvent.altKey); + } + /** + * Translate native top level events into event types. + * + * @param {string} topLevelType + * @return {object} + */ + + + function getCompositionEventType(topLevelType) { + switch (topLevelType) { + case TOP_COMPOSITION_START: + return eventTypes.compositionStart; + + case TOP_COMPOSITION_END: + return eventTypes.compositionEnd; + + case TOP_COMPOSITION_UPDATE: + return eventTypes.compositionUpdate; + } + } + /** + * Does our fallback best-guess model think this event signifies that + * composition has begun? + * + * @param {string} topLevelType + * @param {object} nativeEvent + * @return {boolean} + */ + + + function isFallbackCompositionStart(topLevelType, nativeEvent) { + return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE; + } + /** + * Does our fallback mode think that this event is the end of composition? + * + * @param {string} topLevelType + * @param {object} nativeEvent + * @return {boolean} + */ + + + function isFallbackCompositionEnd(topLevelType, nativeEvent) { + switch (topLevelType) { + case TOP_KEY_UP: + // Command keys insert or clear IME input. + return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1; + + case TOP_KEY_DOWN: + // Expect IME keyCode on each keydown. If we get any other + // code we must have exited earlier. + return nativeEvent.keyCode !== START_KEYCODE; + + case TOP_KEY_PRESS: + case TOP_MOUSE_DOWN: + case TOP_BLUR: + // Events are not possible without cancelling IME. + return true; + + default: + return false; + } + } + /** + * Google Input Tools provides composition data via a CustomEvent, + * with the `data` property populated in the `detail` object. If this + * is available on the event object, use it. If not, this is a plain + * composition event and we have nothing special to extract. + * + * @param {object} nativeEvent + * @return {?string} + */ + + + function getDataFromCustomEvent(nativeEvent) { + var detail = nativeEvent.detail; + + if (typeof detail === 'object' && 'data' in detail) { + return detail.data; + } + + return null; + } + /** + * Check if a composition event was triggered by Korean IME. + * Our fallback mode does not work well with IE's Korean IME, + * so just use native composition events when Korean IME is used. + * Although CompositionEvent.locale property is deprecated, + * it is available in IE, where our fallback mode is enabled. + * + * @param {object} nativeEvent + * @return {boolean} + */ + + + function isUsingKoreanIME(nativeEvent) { + return nativeEvent.locale === 'ko'; + } // Track the current IME composition status, if any. + + + var isComposing = false; + /** + * @return {?object} A SyntheticCompositionEvent. + */ + + function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var eventType; + var fallbackData; + + if (canUseCompositionEvent) { + eventType = getCompositionEventType(topLevelType); + } else if (!isComposing) { + if (isFallbackCompositionStart(topLevelType, nativeEvent)) { + eventType = eventTypes.compositionStart; + } + } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) { + eventType = eventTypes.compositionEnd; + } + + if (!eventType) { + return null; + } + + if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) { + // The current composition is stored statically and must not be + // overwritten while composition continues. + if (!isComposing && eventType === eventTypes.compositionStart) { + isComposing = initialize(nativeEventTarget); + } else if (eventType === eventTypes.compositionEnd) { + if (isComposing) { + fallbackData = getData(); + } + } + } + + var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget); + + if (fallbackData) { + // Inject data generated from fallback path into the synthetic event. + // This matches the property of native CompositionEventInterface. + event.data = fallbackData; + } else { + var customData = getDataFromCustomEvent(nativeEvent); + + if (customData !== null) { + event.data = customData; + } + } + + accumulateTwoPhaseDispatches(event); + return event; + } + /** + * @param {TopLevelType} topLevelType Number from `TopLevelType`. + * @param {object} nativeEvent Native browser event. + * @return {?string} The string corresponding to this `beforeInput` event. + */ + + + function getNativeBeforeInputChars(topLevelType, nativeEvent) { + switch (topLevelType) { + case TOP_COMPOSITION_END: + return getDataFromCustomEvent(nativeEvent); + + case TOP_KEY_PRESS: + /** + * If native `textInput` events are available, our goal is to make + * use of them. However, there is a special case: the spacebar key. + * In Webkit, preventing default on a spacebar `textInput` event + * cancels character insertion, but it *also* causes the browser + * to fall back to its default spacebar behavior of scrolling the + * page. + * + * Tracking at: + * https://code.google.com/p/chromium/issues/detail?id=355103 + * + * To avoid this issue, use the keypress event as if no `textInput` + * event is available. + */ + var which = nativeEvent.which; + + if (which !== SPACEBAR_CODE) { + return null; + } + + hasSpaceKeypress = true; + return SPACEBAR_CHAR; + + case TOP_TEXT_INPUT: + // Record the characters to be added to the DOM. + var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled + // it at the keypress level and bail immediately. Android Chrome + // doesn't give us keycodes, so we need to ignore it. + + if (chars === SPACEBAR_CHAR && hasSpaceKeypress) { + return null; + } + + return chars; + + default: + // For other native event types, do nothing. + return null; + } + } + /** + * For browsers that do not provide the `textInput` event, extract the + * appropriate string to use for SyntheticInputEvent. + * + * @param {number} topLevelType Number from `TopLevelEventTypes`. + * @param {object} nativeEvent Native browser event. + * @return {?string} The fallback string for this `beforeInput` event. + */ + + + function getFallbackBeforeInputChars(topLevelType, nativeEvent) { + // If we are currently composing (IME) and using a fallback to do so, + // try to extract the composed characters from the fallback object. + // If composition event is available, we extract a string only at + // compositionevent, otherwise extract it at fallback events. + if (isComposing) { + if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) { + var chars = getData(); + reset(); + isComposing = false; + return chars; + } + + return null; + } + + switch (topLevelType) { + case TOP_PASTE: + // If a paste event occurs after a keypress, throw out the input + // chars. Paste events should not lead to BeforeInput events. + return null; + + case TOP_KEY_PRESS: + /** + * As of v27, Firefox may fire keypress events even when no character + * will be inserted. A few possibilities: + * + * - `which` is `0`. Arrow keys, Esc key, etc. + * + * - `which` is the pressed key code, but no char is available. + * Ex: 'AltGr + d` in Polish. There is no modified character for + * this key combination and no character is inserted into the + * document, but FF fires the keypress for char code `100` anyway. + * No `input` event will occur. + * + * - `which` is the pressed key code, but a command combination is + * being used. Ex: `Cmd+C`. No character is inserted, and no + * `input` event will occur. + */ + if (!isKeypressCommand(nativeEvent)) { + // IE fires the `keypress` event when a user types an emoji via + // Touch keyboard of Windows. In such a case, the `char` property + // holds an emoji character like `\uD83D\uDE0A`. Because its length + // is 2, the property `which` does not represent an emoji correctly. + // In such a case, we directly return the `char` property instead of + // using `which`. + if (nativeEvent.char && nativeEvent.char.length > 1) { + return nativeEvent.char; + } else if (nativeEvent.which) { + return String.fromCharCode(nativeEvent.which); + } + } + + return null; + + case TOP_COMPOSITION_END: + return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data; + + default: + return null; + } + } + /** + * Extract a SyntheticInputEvent for `beforeInput`, based on either native + * `textInput` or fallback behavior. + * + * @return {?object} A SyntheticInputEvent. + */ + + + function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { + var chars; + + if (canUseTextInputEvent) { + chars = getNativeBeforeInputChars(topLevelType, nativeEvent); + } else { + chars = getFallbackBeforeInputChars(topLevelType, nativeEvent); + } // If no characters are being inserted, no BeforeInput event should + // be fired. + + + if (!chars) { + return null; + } + + var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget); + event.data = chars; + accumulateTwoPhaseDispatches(event); + return event; + } + /** + * Create an `onBeforeInput` event to match + * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents. + * + * This event plugin is based on the native `textInput` event + * available in Chrome, Safari, Opera, and IE. This event fires after + * `onKeyPress` and `onCompositionEnd`, but before `onInput`. + * + * `beforeInput` is spec'd but not implemented in any browsers, and + * the `input` event does not provide any useful information about what has + * actually been added, contrary to the spec. Thus, `textInput` is the best + * available event to identify the characters that have actually been inserted + * into the target node. + * + * This plugin is also responsible for emitting `composition` events, thus + * allowing us to share composition fallback code for both `beforeInput` and + * `composition` event types. + */ + + + var BeforeInputEventPlugin = { + eventTypes: eventTypes, + extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { + var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget); + var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget); + + if (composition === null) { + return beforeInput; + } + + if (beforeInput === null) { + return composition; + } + + return [composition, beforeInput]; + } + }; + + /** + * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary + */ + var supportedInputTypes = { + color: true, + date: true, + datetime: true, + 'datetime-local': true, + email: true, + month: true, + number: true, + password: true, + range: true, + search: true, + tel: true, + text: true, + time: true, + url: true, + week: true + }; + + function isTextInputElement(elem) { + var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); + + if (nodeName === 'input') { + return !!supportedInputTypes[elem.type]; + } + + if (nodeName === 'textarea') { + return true; + } + + return false; + } + + var eventTypes$1 = { + change: { + phasedRegistrationNames: { + bubbled: 'onChange', + captured: 'onChangeCapture' + }, + dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE] + } + }; + + function createAndAccumulateChangeEvent(inst, nativeEvent, target) { + var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target); + event.type = 'change'; // Flag this event loop as needing state restore. + + enqueueStateRestore(target); + accumulateTwoPhaseDispatches(event); + return event; + } + /** + * For IE shims + */ + + + var activeElement = null; + var activeElementInst = null; + /** + * SECTION: handle `change` event + */ + + function shouldUseChangeEvent(elem) { + var nodeName = elem.nodeName && elem.nodeName.toLowerCase(); + return nodeName === 'select' || nodeName === 'input' && elem.type === 'file'; + } + + function manualDispatchChangeEvent(nativeEvent) { + var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the + // other events and have it go through ReactBrowserEventEmitter. Since it + // doesn't, we manually listen for the events and so we have to enqueue and + // process the abstract event manually. + // + // Batching is necessary here in order to ensure that all event handlers run + // before the next rerender (including event handlers attached to ancestor + // elements instead of directly on the input). Without this, controlled + // components don't work properly in conjunction with event bubbling because + // the component is rerendered and the value reverted before all the event + // handlers can run. See https://github.com/facebook/react/issues/708. + + batchedUpdates(runEventInBatch, event); + } + + function runEventInBatch(event) { + runEventsInBatch(event); + } + + function getInstIfValueChanged(targetInst) { + var targetNode = getNodeFromInstance$1(targetInst); + + if (updateValueIfChanged(targetNode)) { + return targetInst; + } + } + + function getTargetInstForChangeEvent(topLevelType, targetInst) { + if (topLevelType === TOP_CHANGE) { + return targetInst; + } + } + /** + * SECTION: handle `input` event + */ + + + var isInputEventSupported = false; + + if (canUseDOM) { + // IE9 claims to support the input event but fails to trigger it when + // deleting text, so we ignore its input events. + isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9); + } + /** + * (For IE <=9) Starts tracking propertychange events on the passed-in element + * and override the value property so that we can distinguish user events from + * value changes in JS. + */ + + + function startWatchingForValueChange(target, targetInst) { + activeElement = target; + activeElementInst = targetInst; + activeElement.attachEvent('onpropertychange', handlePropertyChange); + } + /** + * (For IE <=9) Removes the event listeners from the currently-tracked element, + * if any exists. + */ + + + function stopWatchingForValueChange() { + if (!activeElement) { + return; + } + + activeElement.detachEvent('onpropertychange', handlePropertyChange); + activeElement = null; + activeElementInst = null; + } + /** + * (For IE <=9) Handles a propertychange event, sending a `change` event if + * the value of the active element has changed. + */ + + + function handlePropertyChange(nativeEvent) { + if (nativeEvent.propertyName !== 'value') { + return; + } + + if (getInstIfValueChanged(activeElementInst)) { + manualDispatchChangeEvent(nativeEvent); + } + } + + function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) { + if (topLevelType === TOP_FOCUS) { + // In IE9, propertychange fires for most input events but is buggy and + // doesn't fire when text is deleted, but conveniently, selectionchange + // appears to fire in all of the remaining cases so we catch those and + // forward the event if the value has changed + // In either case, we don't want to call the event handler if the value + // is changed from JS so we redefine a setter for `.value` that updates + // our activeElementValue variable, allowing us to ignore those changes + // + // stopWatching() should be a noop here but we call it just in case we + // missed a blur event somehow. + stopWatchingForValueChange(); + startWatchingForValueChange(target, targetInst); + } else if (topLevelType === TOP_BLUR) { + stopWatchingForValueChange(); + } + } // For IE8 and IE9. + + + function getTargetInstForInputEventPolyfill(topLevelType, targetInst) { + if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) { + // On the selectionchange event, the target is just document which isn't + // helpful for us so just check activeElement instead. + // + // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire + // propertychange on the first input event after setting `value` from a + // script and fires only keydown, keypress, keyup. Catching keyup usually + // gets it and catching keydown lets us fire an event for the first + // keystroke if user does a key repeat (it'll be a little delayed: right + // before the second keystroke). Other input methods (e.g., paste) seem to + // fire selectionchange normally. + return getInstIfValueChanged(activeElementInst); + } + } + /** + * SECTION: handle `click` event + */ + + + function shouldUseClickEvent(elem) { + // Use the `click` event to detect changes to checkbox and radio inputs. + // This approach works across all browsers, whereas `change` does not fire + // until `blur` in IE8. + var nodeName = elem.nodeName; + return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio'); + } + + function getTargetInstForClickEvent(topLevelType, targetInst) { + if (topLevelType === TOP_CLICK) { + return getInstIfValueChanged(targetInst); + } + } + + function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) { + if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) { + return getInstIfValueChanged(targetInst); + } + } + + function handleControlledInputBlur(node) { + var state = node._wrapperState; + + if (!state || !state.controlled || node.type !== 'number') { + return; + } + + { + // If controlled, assign the value attribute to the current value on blur + setDefaultValue(node, 'number', node.value); + } + } + /** + * This plugin creates an `onChange` event that normalizes change events + * across form elements. This event fires at a time when it's possible to + * change the element's value without seeing a flicker. + * + * Supported elements are: + * - input (see `isTextInputElement`) + * - textarea + * - select + */ + + + var ChangeEventPlugin = { + eventTypes: eventTypes$1, + _isInputEventSupported: isInputEventSupported, + extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { + var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window; + var getTargetInstFunc, handleEventFunc; + + if (shouldUseChangeEvent(targetNode)) { + getTargetInstFunc = getTargetInstForChangeEvent; + } else if (isTextInputElement(targetNode)) { + if (isInputEventSupported) { + getTargetInstFunc = getTargetInstForInputOrChangeEvent; + } else { + getTargetInstFunc = getTargetInstForInputEventPolyfill; + handleEventFunc = handleEventsForInputEventPolyfill; + } + } else if (shouldUseClickEvent(targetNode)) { + getTargetInstFunc = getTargetInstForClickEvent; + } + + if (getTargetInstFunc) { + var inst = getTargetInstFunc(topLevelType, targetInst); + + if (inst) { + var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget); + return event; + } + } + + if (handleEventFunc) { + handleEventFunc(topLevelType, targetNode, targetInst); + } // When blurring, set the value attribute for number inputs + + + if (topLevelType === TOP_BLUR) { + handleControlledInputBlur(targetNode); + } + } + }; + + var SyntheticUIEvent = SyntheticEvent.extend({ + view: null, + detail: null + }); + + /** + * Translation from modifier key to the associated property in the event. + * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers + */ + var modifierKeyToProp = { + Alt: 'altKey', + Control: 'ctrlKey', + Meta: 'metaKey', + Shift: 'shiftKey' + }; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support + // getModifierState. If getModifierState is not supported, we map it to a set of + // modifier keys exposed by the event. In this case, Lock-keys are not supported. + + function modifierStateGetter(keyArg) { + var syntheticEvent = this; + var nativeEvent = syntheticEvent.nativeEvent; + + if (nativeEvent.getModifierState) { + return nativeEvent.getModifierState(keyArg); + } + + var keyProp = modifierKeyToProp[keyArg]; + return keyProp ? !!nativeEvent[keyProp] : false; + } + + function getEventModifierState(nativeEvent) { + return modifierStateGetter; + } + + var previousScreenX = 0; + var previousScreenY = 0; // Use flags to signal movementX/Y has already been set + + var isMovementXSet = false; + var isMovementYSet = false; + /** + * @interface MouseEvent + * @see http://www.w3.org/TR/DOM-Level-3-Events/ + */ + + var SyntheticMouseEvent = SyntheticUIEvent.extend({ + screenX: null, + screenY: null, + clientX: null, + clientY: null, + pageX: null, + pageY: null, + ctrlKey: null, + shiftKey: null, + altKey: null, + metaKey: null, + getModifierState: getEventModifierState, + button: null, + buttons: null, + relatedTarget: function (event) { + return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement); + }, + movementX: function (event) { + if ('movementX' in event) { + return event.movementX; + } + + var screenX = previousScreenX; + previousScreenX = event.screenX; + + if (!isMovementXSet) { + isMovementXSet = true; + return 0; + } + + return event.type === 'mousemove' ? event.screenX - screenX : 0; + }, + movementY: function (event) { + if ('movementY' in event) { + return event.movementY; + } + + var screenY = previousScreenY; + previousScreenY = event.screenY; + + if (!isMovementYSet) { + isMovementYSet = true; + return 0; + } + + return event.type === 'mousemove' ? event.screenY - screenY : 0; + } + }); + + /** + * @interface PointerEvent + * @see http://www.w3.org/TR/pointerevents/ + */ + + var SyntheticPointerEvent = SyntheticMouseEvent.extend({ + pointerId: null, + width: null, + height: null, + pressure: null, + tangentialPressure: null, + tiltX: null, + tiltY: null, + twist: null, + pointerType: null, + isPrimary: null + }); + + var eventTypes$2 = { + mouseEnter: { + registrationName: 'onMouseEnter', + dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER] + }, + mouseLeave: { + registrationName: 'onMouseLeave', + dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER] + }, + pointerEnter: { + registrationName: 'onPointerEnter', + dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER] + }, + pointerLeave: { + registrationName: 'onPointerLeave', + dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER] + } + }; + var EnterLeaveEventPlugin = { + eventTypes: eventTypes$2, + + /** + * For almost every interaction we care about, there will be both a top-level + * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that + * we do not extract duplicate events. However, moving the mouse into the + * browser from outside will not fire a `mouseout` event. In this case, we use + * the `mouseover` top-level event. + */ + extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { + var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER; + var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT; + + if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0 && (nativeEvent.relatedTarget || nativeEvent.fromElement)) { + // If this is an over event with a target, then we've already dispatched + // the event in the out event of the other target. If this is replayed, + // then it's because we couldn't dispatch against this target previously + // so we have to do it now instead. + return null; + } + + if (!isOutEvent && !isOverEvent) { + // Must not be a mouse or pointer in or out - ignoring. + return null; + } + + var win; + + if (nativeEventTarget.window === nativeEventTarget) { + // `nativeEventTarget` is probably a window object. + win = nativeEventTarget; + } else { + // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8. + var doc = nativeEventTarget.ownerDocument; + + if (doc) { + win = doc.defaultView || doc.parentWindow; + } else { + win = window; + } + } + + var from; + var to; + + if (isOutEvent) { + from = targetInst; + var related = nativeEvent.relatedTarget || nativeEvent.toElement; + to = related ? getClosestInstanceFromNode(related) : null; + + if (to !== null) { + var nearestMounted = getNearestMountedFiber(to); + + if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) { + to = null; + } + } + } else { + // Moving to a node from outside the window. + from = null; + to = targetInst; + } + + if (from === to) { + // Nothing pertains to our managed components. + return null; + } + + var eventInterface, leaveEventType, enterEventType, eventTypePrefix; + + if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) { + eventInterface = SyntheticMouseEvent; + leaveEventType = eventTypes$2.mouseLeave; + enterEventType = eventTypes$2.mouseEnter; + eventTypePrefix = 'mouse'; + } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) { + eventInterface = SyntheticPointerEvent; + leaveEventType = eventTypes$2.pointerLeave; + enterEventType = eventTypes$2.pointerEnter; + eventTypePrefix = 'pointer'; + } + + var fromNode = from == null ? win : getNodeFromInstance$1(from); + var toNode = to == null ? win : getNodeFromInstance$1(to); + var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget); + leave.type = eventTypePrefix + 'leave'; + leave.target = fromNode; + leave.relatedTarget = toNode; + var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget); + enter.type = eventTypePrefix + 'enter'; + enter.target = toNode; + enter.relatedTarget = fromNode; + accumulateEnterLeaveDispatches(leave, enter, from, to); // If we are not processing the first ancestor, then we + // should not process the same nativeEvent again, as we + // will have already processed it in the first ancestor. + + if ((eventSystemFlags & IS_FIRST_ANCESTOR) === 0) { + return [leave]; + } + + return [leave, enter]; + } + }; + + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + function is(x, y) { + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare + ; + } + + var objectIs = typeof Object.is === 'function' ? Object.is : is; + + var hasOwnProperty$2 = Object.prototype.hasOwnProperty; + /** + * Performs equality by iterating through keys on an object and returning false + * when any key has values which are not strictly equal between the arguments. + * Returns true when the values of all keys are strictly equal. + */ + + function shallowEqual(objA, objB) { + if (objectIs(objA, objB)) { + return true; + } + + if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) { + return false; + } + + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); + + if (keysA.length !== keysB.length) { + return false; + } // Test for A's keys different from B. + + + for (var i = 0; i < keysA.length; i++) { + if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) { + return false; + } + } + + return true; + } + + var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11; + var eventTypes$3 = { + select: { + phasedRegistrationNames: { + bubbled: 'onSelect', + captured: 'onSelectCapture' + }, + dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE] + } + }; + var activeElement$1 = null; + var activeElementInst$1 = null; + var lastSelection = null; + var mouseDown = false; + /** + * Get an object which is a unique representation of the current selection. + * + * The return value will not be consistent across nodes or browsers, but + * two identical selections on the same node will return identical objects. + * + * @param {DOMElement} node + * @return {object} + */ + + function getSelection$1(node) { + if ('selectionStart' in node && hasSelectionCapabilities(node)) { + return { + start: node.selectionStart, + end: node.selectionEnd + }; + } else { + var win = node.ownerDocument && node.ownerDocument.defaultView || window; + var selection = win.getSelection(); + return { + anchorNode: selection.anchorNode, + anchorOffset: selection.anchorOffset, + focusNode: selection.focusNode, + focusOffset: selection.focusOffset + }; + } + } + /** + * Get document associated with the event target. + * + * @param {object} nativeEventTarget + * @return {Document} + */ + + + function getEventTargetDocument(eventTarget) { + return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument; + } + /** + * Poll selection to see whether it's changed. + * + * @param {object} nativeEvent + * @param {object} nativeEventTarget + * @return {?SyntheticEvent} + */ + + + function constructSelectEvent(nativeEvent, nativeEventTarget) { + // Ensure we have the right element, and that the user is not dragging a + // selection (this matches native `select` event behavior). In HTML5, select + // fires only on input and textarea thus if there's no focused element we + // won't dispatch. + var doc = getEventTargetDocument(nativeEventTarget); + + if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) { + return null; + } // Only fire when selection has actually changed. + + + var currentSelection = getSelection$1(activeElement$1); + + if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { + lastSelection = currentSelection; + var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget); + syntheticEvent.type = 'select'; + syntheticEvent.target = activeElement$1; + accumulateTwoPhaseDispatches(syntheticEvent); + return syntheticEvent; + } + + return null; + } + /** + * This plugin creates an `onSelect` event that normalizes select events + * across form elements. + * + * Supported elements are: + * - input (see `isTextInputElement`) + * - textarea + * - contentEditable + * + * This differs from native browser implementations in the following ways: + * - Fires on contentEditable fields as well as inputs. + * - Fires for collapsed selection. + * - Fires after user input. + */ + + + var SelectEventPlugin = { + eventTypes: eventTypes$3, + extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, container) { + var containerOrDoc = container || getEventTargetDocument(nativeEventTarget); // Track whether all listeners exists for this plugin. If none exist, we do + // not extract events. See #3639. + + if (!containerOrDoc || !isListeningToAllDependencies('onSelect', containerOrDoc)) { + return null; + } + + var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window; + + switch (topLevelType) { + // Track the input node that has focus. + case TOP_FOCUS: + if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') { + activeElement$1 = targetNode; + activeElementInst$1 = targetInst; + lastSelection = null; + } + + break; + + case TOP_BLUR: + activeElement$1 = null; + activeElementInst$1 = null; + lastSelection = null; + break; + // Don't fire the event while the user is dragging. This matches the + // semantics of the native select event. + + case TOP_MOUSE_DOWN: + mouseDown = true; + break; + + case TOP_CONTEXT_MENU: + case TOP_MOUSE_UP: + case TOP_DRAG_END: + mouseDown = false; + return constructSelectEvent(nativeEvent, nativeEventTarget); + // Chrome and IE fire non-standard event when selection is changed (and + // sometimes when it hasn't). IE's event fires out of order with respect + // to key and input events on deletion, so we discard it. + // + // Firefox doesn't support selectionchange, so check selection status + // after each key entry. The selection changes after keydown and before + // keyup, but we check on keydown as well in the case of holding down a + // key, when multiple keydown events are fired but only one keyup is. + // This is also our approach for IE handling, for the reason above. + + case TOP_SELECTION_CHANGE: + if (skipSelectionChangeEvent) { + break; + } + + // falls through + + case TOP_KEY_DOWN: + case TOP_KEY_UP: + return constructSelectEvent(nativeEvent, nativeEventTarget); + } + + return null; + } + }; + + /** + * @interface Event + * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface + * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent + */ + + var SyntheticAnimationEvent = SyntheticEvent.extend({ + animationName: null, + elapsedTime: null, + pseudoElement: null + }); + + /** + * @interface Event + * @see http://www.w3.org/TR/clipboard-apis/ + */ + + var SyntheticClipboardEvent = SyntheticEvent.extend({ + clipboardData: function (event) { + return 'clipboardData' in event ? event.clipboardData : window.clipboardData; + } + }); + + /** + * @interface FocusEvent + * @see http://www.w3.org/TR/DOM-Level-3-Events/ + */ + + var SyntheticFocusEvent = SyntheticUIEvent.extend({ + relatedTarget: null + }); + + /** + * `charCode` represents the actual "character code" and is safe to use with + * `String.fromCharCode`. As such, only keys that correspond to printable + * characters produce a valid `charCode`, the only exception to this is Enter. + * The Tab-key is considered non-printable and does not have a `charCode`, + * presumably because it does not produce a tab-character in browsers. + * + * @param {object} nativeEvent Native browser event. + * @return {number} Normalized `charCode` property. + */ + function getEventCharCode(nativeEvent) { + var charCode; + var keyCode = nativeEvent.keyCode; + + if ('charCode' in nativeEvent) { + charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`. + + if (charCode === 0 && keyCode === 13) { + charCode = 13; + } + } else { + // IE8 does not implement `charCode`, but `keyCode` has the correct value. + charCode = keyCode; + } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux) + // report Enter as charCode 10 when ctrl is pressed. + + + if (charCode === 10) { + charCode = 13; + } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them. + // Must not discard the (non-)printable Enter-key. + + + if (charCode >= 32 || charCode === 13) { + return charCode; + } + + return 0; + } + + /** + * Normalization of deprecated HTML5 `key` values + * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names + */ + + var normalizeKey = { + Esc: 'Escape', + Spacebar: ' ', + Left: 'ArrowLeft', + Up: 'ArrowUp', + Right: 'ArrowRight', + Down: 'ArrowDown', + Del: 'Delete', + Win: 'OS', + Menu: 'ContextMenu', + Apps: 'ContextMenu', + Scroll: 'ScrollLock', + MozPrintableKey: 'Unidentified' + }; + /** + * Translation from legacy `keyCode` to HTML5 `key` + * Only special keys supported, all others depend on keyboard layout or browser + * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names + */ + + var translateToKey = { + '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' + }; + /** + * @param {object} nativeEvent Native browser event. + * @return {string} Normalized `key` property. + */ + + function getEventKey(nativeEvent) { + if (nativeEvent.key) { + // Normalize inconsistent values reported by browsers due to + // implementations of a working draft specification. + // FireFox implements `key` but returns `MozPrintableKey` for all + // printable characters (normalized to `Unidentified`), ignore it. + var key = normalizeKey[nativeEvent.key] || nativeEvent.key; + + if (key !== 'Unidentified') { + return key; + } + } // Browser does not implement `key`, polyfill as much of it as we can. + + + if (nativeEvent.type === 'keypress') { + var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can + // thus be captured by `keypress`, no other non-printable key should. + + return charCode === 13 ? 'Enter' : String.fromCharCode(charCode); + } + + if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') { + // While user keyboard layout determines the actual meaning of each + // `keyCode` value, almost all function keys have a universal value. + return translateToKey[nativeEvent.keyCode] || 'Unidentified'; + } + + return ''; + } + + /** + * @interface KeyboardEvent + * @see http://www.w3.org/TR/DOM-Level-3-Events/ + */ + + var SyntheticKeyboardEvent = SyntheticUIEvent.extend({ + key: getEventKey, + location: null, + ctrlKey: null, + shiftKey: null, + altKey: null, + metaKey: null, + repeat: null, + locale: null, + getModifierState: getEventModifierState, + // Legacy Interface + charCode: function (event) { + // `charCode` is the result of a KeyPress event and represents the value of + // the actual printable character. + // KeyPress is deprecated, but its replacement is not yet final and not + // implemented in any major browser. Only KeyPress has charCode. + if (event.type === 'keypress') { + return getEventCharCode(event); + } + + return 0; + }, + keyCode: function (event) { + // `keyCode` is the result of a KeyDown/Up event and represents the value of + // physical keyboard key. + // The actual meaning of the value depends on the users' keyboard layout + // which cannot be detected. Assuming that it is a US keyboard layout + // provides a surprisingly accurate mapping for US and European users. + // Due to this, it is left to the user to implement at this time. + if (event.type === 'keydown' || event.type === 'keyup') { + return event.keyCode; + } + + return 0; + }, + which: function (event) { + // `which` is an alias for either `keyCode` or `charCode` depending on the + // type of the event. + if (event.type === 'keypress') { + return getEventCharCode(event); + } + + if (event.type === 'keydown' || event.type === 'keyup') { + return event.keyCode; + } + + return 0; + } + }); + + /** + * @interface DragEvent + * @see http://www.w3.org/TR/DOM-Level-3-Events/ + */ + + var SyntheticDragEvent = SyntheticMouseEvent.extend({ + dataTransfer: null + }); + + /** + * @interface TouchEvent + * @see http://www.w3.org/TR/touch-events/ + */ + + var SyntheticTouchEvent = SyntheticUIEvent.extend({ + touches: null, + targetTouches: null, + changedTouches: null, + altKey: null, + metaKey: null, + ctrlKey: null, + shiftKey: null, + getModifierState: getEventModifierState + }); + + /** + * @interface Event + * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events- + * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent + */ + + var SyntheticTransitionEvent = SyntheticEvent.extend({ + propertyName: null, + elapsedTime: null, + pseudoElement: null + }); + + /** + * @interface WheelEvent + * @see http://www.w3.org/TR/DOM-Level-3-Events/ + */ + + var SyntheticWheelEvent = SyntheticMouseEvent.extend({ + deltaX: function (event) { + return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive). + 'wheelDeltaX' in event ? -event.wheelDeltaX : 0; + }, + deltaY: function (event) { + return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive). + 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive). + 'wheelDelta' in event ? -event.wheelDelta : 0; + }, + deltaZ: null, + // Browsers without "deltaMode" is reporting in raw wheel delta where one + // notch on the scroll is always +/- 120, roughly equivalent to pixels. + // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or + // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size. + deltaMode: null + }); + + var knownHTMLTopLevelTypes = [TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING]; + var SimpleEventPlugin = { + // simpleEventPluginEventTypes gets populated from + // the DOMEventProperties module. + eventTypes: simpleEventPluginEventTypes, + extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { + var dispatchConfig = topLevelEventsToDispatchConfig.get(topLevelType); + + if (!dispatchConfig) { + return null; + } + + var EventConstructor; + + switch (topLevelType) { + case TOP_KEY_PRESS: + // Firefox creates a keypress event for function keys too. This removes + // the unwanted keypress events. Enter is however both printable and + // non-printable. One would expect Tab to be as well (but it isn't). + if (getEventCharCode(nativeEvent) === 0) { + return null; + } + + /* falls through */ + + case TOP_KEY_DOWN: + case TOP_KEY_UP: + EventConstructor = SyntheticKeyboardEvent; + break; + + case TOP_BLUR: + case TOP_FOCUS: + EventConstructor = SyntheticFocusEvent; + break; + + case TOP_CLICK: + // Firefox creates a click event on right mouse clicks. This removes the + // unwanted click events. + if (nativeEvent.button === 2) { + return null; + } + + /* falls through */ + + case TOP_AUX_CLICK: + case TOP_DOUBLE_CLICK: + case TOP_MOUSE_DOWN: + case TOP_MOUSE_MOVE: + case TOP_MOUSE_UP: // TODO: Disabled elements should not respond to mouse events + + /* falls through */ + + case TOP_MOUSE_OUT: + case TOP_MOUSE_OVER: + case TOP_CONTEXT_MENU: + EventConstructor = SyntheticMouseEvent; + break; + + case TOP_DRAG: + case TOP_DRAG_END: + case TOP_DRAG_ENTER: + case TOP_DRAG_EXIT: + case TOP_DRAG_LEAVE: + case TOP_DRAG_OVER: + case TOP_DRAG_START: + case TOP_DROP: + EventConstructor = SyntheticDragEvent; + break; + + case TOP_TOUCH_CANCEL: + case TOP_TOUCH_END: + case TOP_TOUCH_MOVE: + case TOP_TOUCH_START: + EventConstructor = SyntheticTouchEvent; + break; + + case TOP_ANIMATION_END: + case TOP_ANIMATION_ITERATION: + case TOP_ANIMATION_START: + EventConstructor = SyntheticAnimationEvent; + break; + + case TOP_TRANSITION_END: + EventConstructor = SyntheticTransitionEvent; + break; + + case TOP_SCROLL: + EventConstructor = SyntheticUIEvent; + break; + + case TOP_WHEEL: + EventConstructor = SyntheticWheelEvent; + break; + + case TOP_COPY: + case TOP_CUT: + case TOP_PASTE: + EventConstructor = SyntheticClipboardEvent; + break; + + case TOP_GOT_POINTER_CAPTURE: + case TOP_LOST_POINTER_CAPTURE: + case TOP_POINTER_CANCEL: + case TOP_POINTER_DOWN: + case TOP_POINTER_MOVE: + case TOP_POINTER_OUT: + case TOP_POINTER_OVER: + case TOP_POINTER_UP: + EventConstructor = SyntheticPointerEvent; + break; + + default: + { + if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) { + error('SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType); + } + } // HTML Events + // @see http://www.w3.org/TR/html5/index.html#events-0 + + + EventConstructor = SyntheticEvent; + break; + } + + var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget); + accumulateTwoPhaseDispatches(event); + return event; + } + }; + + /** + * Specifies a deterministic ordering of `EventPlugin`s. A convenient way to + * reason about plugins, without having to package every one of them. This + * is better than having plugins be ordered in the same order that they + * are injected because that ordering would be influenced by the packaging order. + * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that + * preventing default on events is convenient in `SimpleEventPlugin` handlers. + */ + + var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin']; + /** + * Inject modules for resolving DOM hierarchy and plugin ordering. + */ + + injectEventPluginOrder(DOMEventPluginOrder); + setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1); + /** + * Some important event plugins included by default (without having to require + * them). + */ + + injectEventPluginsByName({ + SimpleEventPlugin: SimpleEventPlugin, + EnterLeaveEventPlugin: EnterLeaveEventPlugin, + ChangeEventPlugin: ChangeEventPlugin, + SelectEventPlugin: SelectEventPlugin, + BeforeInputEventPlugin: BeforeInputEventPlugin + }); + + // Prefix measurements so that it's possible to filter them. + // Longer prefixes are hard to read in DevTools. + var reactEmoji = "\u269B"; + var warningEmoji = "\u26D4"; + var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function'; // Keep track of current fiber so that we know the path to unwind on pause. + // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them? + + var currentFiber = null; // If we're in the middle of user code, which fiber and method is it? + // Reusing `currentFiber` would be confusing for this because user code fiber + // can change during commit phase too, but we don't need to unwind it (since + // lifecycles in the commit phase don't resemble a tree). + + var currentPhase = null; + var currentPhaseFiber = null; // Did lifecycle hook schedule an update? This is often a performance problem, + // so we will keep track of it, and include it in the report. + // Track commits caused by cascading updates. + + var isCommitting = false; + var hasScheduledUpdateInCurrentCommit = false; + var hasScheduledUpdateInCurrentPhase = false; + var commitCountInCurrentWorkLoop = 0; + var effectCountInCurrentCommit = 0; + // to avoid stretch the commit phase with measurement overhead. + + var labelsInCurrentCommit = new Set(); + + var formatMarkName = function (markName) { + return reactEmoji + " " + markName; + }; + + var formatLabel = function (label, warning) { + var prefix = warning ? warningEmoji + " " : reactEmoji + " "; + var suffix = warning ? " Warning: " + warning : ''; + return "" + prefix + label + suffix; + }; + + var beginMark = function (markName) { + performance.mark(formatMarkName(markName)); + }; + + var clearMark = function (markName) { + performance.clearMarks(formatMarkName(markName)); + }; + + var endMark = function (label, markName, warning) { + var formattedMarkName = formatMarkName(markName); + var formattedLabel = formatLabel(label, warning); + + try { + performance.measure(formattedLabel, formattedMarkName); + } catch (err) {} // If previous mark was missing for some reason, this will throw. + // This could only happen if React crashed in an unexpected place earlier. + // Don't pile on with more errors. + // Clear marks immediately to avoid growing buffer. + + + performance.clearMarks(formattedMarkName); + performance.clearMeasures(formattedLabel); + }; + + var getFiberMarkName = function (label, debugID) { + return label + " (#" + debugID + ")"; + }; + + var getFiberLabel = function (componentName, isMounted, phase) { + if (phase === null) { + // These are composite component total time measurements. + return componentName + " [" + (isMounted ? 'update' : 'mount') + "]"; + } else { + // Composite component methods. + return componentName + "." + phase; + } + }; + + var beginFiberMark = function (fiber, phase) { + var componentName = getComponentName(fiber.type) || 'Unknown'; + var debugID = fiber._debugID; + var isMounted = fiber.alternate !== null; + var label = getFiberLabel(componentName, isMounted, phase); + + if (isCommitting && labelsInCurrentCommit.has(label)) { + // During the commit phase, we don't show duplicate labels because + // there is a fixed overhead for every measurement, and we don't + // want to stretch the commit phase beyond necessary. + return false; + } + + labelsInCurrentCommit.add(label); + var markName = getFiberMarkName(label, debugID); + beginMark(markName); + return true; + }; + + var clearFiberMark = function (fiber, phase) { + var componentName = getComponentName(fiber.type) || 'Unknown'; + var debugID = fiber._debugID; + var isMounted = fiber.alternate !== null; + var label = getFiberLabel(componentName, isMounted, phase); + var markName = getFiberMarkName(label, debugID); + clearMark(markName); + }; + + var endFiberMark = function (fiber, phase, warning) { + var componentName = getComponentName(fiber.type) || 'Unknown'; + var debugID = fiber._debugID; + var isMounted = fiber.alternate !== null; + var label = getFiberLabel(componentName, isMounted, phase); + var markName = getFiberMarkName(label, debugID); + endMark(label, markName, warning); + }; + + var shouldIgnoreFiber = function (fiber) { + // Host components should be skipped in the timeline. + // We could check typeof fiber.type, but does this work with RN? + switch (fiber.tag) { + case HostRoot: + case HostComponent: + case HostText: + case HostPortal: + case Fragment: + case ContextProvider: + case ContextConsumer: + case Mode: + return true; + + default: + return false; + } + }; + + var clearPendingPhaseMeasurement = function () { + if (currentPhase !== null && currentPhaseFiber !== null) { + clearFiberMark(currentPhaseFiber, currentPhase); + } + + currentPhaseFiber = null; + currentPhase = null; + hasScheduledUpdateInCurrentPhase = false; + }; + + var pauseTimers = function () { + // Stops all currently active measurements so that they can be resumed + // if we continue in a later deferred loop from the same unit of work. + var fiber = currentFiber; + + while (fiber) { + if (fiber._debugIsCurrentlyTiming) { + endFiberMark(fiber, null, null); + } + + fiber = fiber.return; + } + }; + + var resumeTimersRecursively = function (fiber) { + if (fiber.return !== null) { + resumeTimersRecursively(fiber.return); + } + + if (fiber._debugIsCurrentlyTiming) { + beginFiberMark(fiber, null); + } + }; + + var resumeTimers = function () { + // Resumes all measurements that were active during the last deferred loop. + if (currentFiber !== null) { + resumeTimersRecursively(currentFiber); + } + }; + + function recordEffect() { + { + effectCountInCurrentCommit++; + } + } + function recordScheduleUpdate() { + { + if (isCommitting) { + hasScheduledUpdateInCurrentCommit = true; + } + + if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') { + hasScheduledUpdateInCurrentPhase = true; + } + } + } + function startWorkTimer(fiber) { + { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } // If we pause, this is the fiber to unwind from. + + + currentFiber = fiber; + + if (!beginFiberMark(fiber, null)) { + return; + } + + fiber._debugIsCurrentlyTiming = true; + } + } + function cancelWorkTimer(fiber) { + { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } // Remember we shouldn't complete measurement for this fiber. + // Otherwise flamechart will be deep even for small updates. + + + fiber._debugIsCurrentlyTiming = false; + clearFiberMark(fiber, null); + } + } + function stopWorkTimer(fiber) { + { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } // If we pause, its parent is the fiber to unwind from. + + + currentFiber = fiber.return; + + if (!fiber._debugIsCurrentlyTiming) { + return; + } + + fiber._debugIsCurrentlyTiming = false; + endFiberMark(fiber, null, null); + } + } + function stopFailedWorkTimer(fiber) { + { + if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { + return; + } // If we pause, its parent is the fiber to unwind from. + + + currentFiber = fiber.return; + + if (!fiber._debugIsCurrentlyTiming) { + return; + } + + fiber._debugIsCurrentlyTiming = false; + var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary'; + endFiberMark(fiber, null, warning); + } + } + function startPhaseTimer(fiber, phase) { + { + if (!supportsUserTiming) { + return; + } + + clearPendingPhaseMeasurement(); + + if (!beginFiberMark(fiber, phase)) { + return; + } + + currentPhaseFiber = fiber; + currentPhase = phase; + } + } + function stopPhaseTimer() { + { + if (!supportsUserTiming) { + return; + } + + if (currentPhase !== null && currentPhaseFiber !== null) { + var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null; + endFiberMark(currentPhaseFiber, currentPhase, warning); + } + + currentPhase = null; + currentPhaseFiber = null; + } + } + function startWorkLoopTimer(nextUnitOfWork) { + { + currentFiber = nextUnitOfWork; + + if (!supportsUserTiming) { + return; + } + + commitCountInCurrentWorkLoop = 0; // This is top level call. + // Any other measurements are performed within. + + beginMark('(React Tree Reconciliation)'); // Resume any measurements that were in progress during the last loop. + + resumeTimers(); + } + } + function stopWorkLoopTimer(interruptedBy, didCompleteRoot) { + { + if (!supportsUserTiming) { + return; + } + + var warning = null; + + if (interruptedBy !== null) { + if (interruptedBy.tag === HostRoot) { + warning = 'A top-level update interrupted the previous render'; + } else { + var componentName = getComponentName(interruptedBy.type) || 'Unknown'; + warning = "An update to " + componentName + " interrupted the previous render"; + } + } else if (commitCountInCurrentWorkLoop > 1) { + warning = 'There were cascading updates'; + } + + commitCountInCurrentWorkLoop = 0; + var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)'; // Pause any measurements until the next loop. + + pauseTimers(); + endMark(label, '(React Tree Reconciliation)', warning); + } + } + function startCommitTimer() { + { + if (!supportsUserTiming) { + return; + } + + isCommitting = true; + hasScheduledUpdateInCurrentCommit = false; + labelsInCurrentCommit.clear(); + beginMark('(Committing Changes)'); + } + } + function stopCommitTimer() { + { + if (!supportsUserTiming) { + return; + } + + var warning = null; + + if (hasScheduledUpdateInCurrentCommit) { + warning = 'Lifecycle hook scheduled a cascading update'; + } else if (commitCountInCurrentWorkLoop > 0) { + warning = 'Caused by a cascading update in earlier commit'; + } + + hasScheduledUpdateInCurrentCommit = false; + commitCountInCurrentWorkLoop++; + isCommitting = false; + labelsInCurrentCommit.clear(); + endMark('(Committing Changes)', '(Committing Changes)', warning); + } + } + function startCommitSnapshotEffectsTimer() { + { + if (!supportsUserTiming) { + return; + } + + effectCountInCurrentCommit = 0; + beginMark('(Committing Snapshot Effects)'); + } + } + function stopCommitSnapshotEffectsTimer() { + { + if (!supportsUserTiming) { + return; + } + + var count = effectCountInCurrentCommit; + effectCountInCurrentCommit = 0; + endMark("(Committing Snapshot Effects: " + count + " Total)", '(Committing Snapshot Effects)', null); + } + } + function startCommitHostEffectsTimer() { + { + if (!supportsUserTiming) { + return; + } + + effectCountInCurrentCommit = 0; + beginMark('(Committing Host Effects)'); + } + } + function stopCommitHostEffectsTimer() { + { + if (!supportsUserTiming) { + return; + } + + var count = effectCountInCurrentCommit; + effectCountInCurrentCommit = 0; + endMark("(Committing Host Effects: " + count + " Total)", '(Committing Host Effects)', null); + } + } + function startCommitLifeCyclesTimer() { + { + if (!supportsUserTiming) { + return; + } + + effectCountInCurrentCommit = 0; + beginMark('(Calling Lifecycle Methods)'); + } + } + function stopCommitLifeCyclesTimer() { + { + if (!supportsUserTiming) { + return; + } + + var count = effectCountInCurrentCommit; + effectCountInCurrentCommit = 0; + endMark("(Calling Lifecycle Methods: " + count + " Total)", '(Calling Lifecycle Methods)', null); + } + } + + var valueStack = []; + var fiberStack; + + { + fiberStack = []; + } + + var index = -1; + + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + + function pop(cursor, fiber) { + if (index < 0) { + { + error('Unexpected pop.'); + } + + return; + } + + { + if (fiber !== fiberStack[index]) { + error('Unexpected Fiber popped.'); + } + } + + cursor.current = valueStack[index]; + valueStack[index] = null; + + { + fiberStack[index] = null; + } + + index--; + } + + function push(cursor, value, fiber) { + index++; + valueStack[index] = cursor.current; + + { + fiberStack[index] = fiber; + } + + cursor.current = value; + } + + var warnedAboutMissingGetChildContext; + + { + warnedAboutMissingGetChildContext = {}; + } + + var emptyContextObject = {}; + + { + Object.freeze(emptyContextObject); + } // A cursor to the current merged context object on the stack. + + + var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed. + + var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack. + // We use this to get access to the parent context after we have already + // pushed the next context provider, and now need to merge their contexts. + + var previousContext = emptyContextObject; + + function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) { + { + if (didPushOwnContextIfProvider && isContextProvider(Component)) { + // If the fiber is a context provider itself, when we read its context + // we may have already pushed its own child context on the stack. A context + // provider should not "see" its own child context. Therefore we read the + // previous (parent) context instead for a context provider. + return previousContext; + } + + return contextStackCursor.current; + } + } + + function cacheContext(workInProgress, unmaskedContext, maskedContext) { + { + var instance = workInProgress.stateNode; + instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; + instance.__reactInternalMemoizedMaskedChildContext = maskedContext; + } + } + + function getMaskedContext(workInProgress, unmaskedContext) { + { + var type = workInProgress.type; + var contextTypes = type.contextTypes; + + if (!contextTypes) { + return emptyContextObject; + } // Avoid recreating masked context unless unmasked context has changed. + // Failing to do this will result in unnecessary calls to componentWillReceiveProps. + // This may trigger infinite loops if componentWillReceiveProps calls setState. + + + var instance = workInProgress.stateNode; + + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { + return instance.__reactInternalMemoizedMaskedChildContext; + } + + var context = {}; + + for (var key in contextTypes) { + context[key] = unmaskedContext[key]; + } + + { + var name = getComponentName(type) || 'Unknown'; + checkPropTypes_1(contextTypes, context, 'context', name, getCurrentFiberStackInDev); + } // Cache unmasked context so we can avoid recreating masked context unless necessary. + // Context is created before the class component is instantiated so check for instance. + + + if (instance) { + cacheContext(workInProgress, unmaskedContext, context); + } + + return context; + } + } + + function hasContextChanged() { + { + return didPerformWorkStackCursor.current; + } + } + + function isContextProvider(type) { + { + var childContextTypes = type.childContextTypes; + return childContextTypes !== null && childContextTypes !== undefined; + } + } + + function popContext(fiber) { + { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + } + + function popTopLevelContextObject(fiber) { + { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + } + + function pushTopLevelContextObject(fiber, context, didChange) { + { + if (!(contextStackCursor.current === emptyContextObject)) { + { + throw Error( "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + push(contextStackCursor, context, fiber); + push(didPerformWorkStackCursor, didChange, fiber); + } + } + + function processChildContext(fiber, type, parentContext) { + { + var instance = fiber.stateNode; + var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future. + // It has only been added in Fiber to match the (unintentional) behavior in Stack. + + if (typeof instance.getChildContext !== 'function') { + { + var componentName = getComponentName(type) || 'Unknown'; + + if (!warnedAboutMissingGetChildContext[componentName]) { + warnedAboutMissingGetChildContext[componentName] = true; + + error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName); + } + } + + return parentContext; + } + + var childContext; + startPhaseTimer(fiber, 'getChildContext'); + childContext = instance.getChildContext(); + stopPhaseTimer(); + + for (var contextKey in childContext) { + if (!(contextKey in childContextTypes)) { + { + throw Error( (getComponentName(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes." ); + } + } + } + + { + var name = getComponentName(type) || 'Unknown'; + checkPropTypes_1(childContextTypes, childContext, 'child context', name, // In practice, there is one case in which we won't get a stack. It's when + // somebody calls unstable_renderSubtreeIntoContainer() and we process + // context from the parent component instance. The stack will be missing + // because it's outside of the reconciliation, and so the pointer has not + // been set. This is rare and doesn't matter. We'll also remove that API. + getCurrentFiberStackInDev); + } + + return _assign({}, parentContext, {}, childContext); + } + } + + function pushContextProvider(workInProgress) { + { + var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity. + // If the instance does not exist yet, we will push null at first, + // and replace it on the stack later when invalidating the context. + + var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later. + // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates. + + previousContext = contextStackCursor.current; + push(contextStackCursor, memoizedMergedChildContext, workInProgress); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); + return true; + } + } + + function invalidateContextProvider(workInProgress, type, didChange) { + { + var instance = workInProgress.stateNode; + + if (!instance) { + { + throw Error( "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + if (didChange) { + // Merge parent and own context. + // Skip this if we're not updating due to sCU. + // This avoids unnecessarily recomputing memoized values. + var mergedContext = processChildContext(workInProgress, type, previousContext); + instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one. + // It is important to unwind the context in the reverse order. + + pop(didPerformWorkStackCursor, workInProgress); + pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed. + + push(contextStackCursor, mergedContext, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } else { + pop(didPerformWorkStackCursor, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } + } + } + + function findCurrentUnmaskedContext(fiber) { + { + // Currently this is only used with renderSubtreeIntoContainer; not sure if it + // makes sense elsewhere + if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) { + { + throw Error( "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + var node = fiber; + + do { + switch (node.tag) { + case HostRoot: + return node.stateNode.context; + + case ClassComponent: + { + var Component = node.type; + + if (isContextProvider(Component)) { + return node.stateNode.__reactInternalMemoizedMergedChildContext; + } + + break; + } + } + + node = node.return; + } while (node !== null); + + { + { + throw Error( "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue." ); + } + } + } + } + + var LegacyRoot = 0; + var BlockingRoot = 1; + var ConcurrentRoot = 2; + + var ReactInternals$2 = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + var _ReactInternals$Sched$1 = ReactInternals$2.SchedulerTracing, + __interactionsRef = _ReactInternals$Sched$1.__interactionsRef, + __subscriberRef = _ReactInternals$Sched$1.__subscriberRef, + unstable_clear = _ReactInternals$Sched$1.unstable_clear, + unstable_getCurrent = _ReactInternals$Sched$1.unstable_getCurrent, + unstable_getThreadID = _ReactInternals$Sched$1.unstable_getThreadID, + unstable_subscribe = _ReactInternals$Sched$1.unstable_subscribe, + unstable_trace = _ReactInternals$Sched$1.unstable_trace, + unstable_unsubscribe = _ReactInternals$Sched$1.unstable_unsubscribe, + unstable_wrap = _ReactInternals$Sched$1.unstable_wrap; + + var Scheduler_runWithPriority = unstable_runWithPriority, + Scheduler_scheduleCallback = unstable_scheduleCallback, + Scheduler_cancelCallback = unstable_cancelCallback, + Scheduler_shouldYield = unstable_shouldYield, + Scheduler_requestPaint = unstable_requestPaint, + Scheduler_now = unstable_now, + Scheduler_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel, + Scheduler_ImmediatePriority = unstable_ImmediatePriority, + Scheduler_UserBlockingPriority = unstable_UserBlockingPriority, + Scheduler_NormalPriority = unstable_NormalPriority, + Scheduler_LowPriority = unstable_LowPriority, + Scheduler_IdlePriority = unstable_IdlePriority; + + { + // Provide explicit error message when production+profiling bundle of e.g. + // react-dom is used with production (non-profiling) bundle of + // scheduler/tracing + if (!(__interactionsRef != null && __interactionsRef.current != null)) { + { + throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling" ); + } + } + } + + var fakeCallbackNode = {}; // Except for NoPriority, these correspond to Scheduler priorities. We use + // ascending numbers so we can compare them like numbers. They start at 90 to + // avoid clashing with Scheduler's priorities. + + var ImmediatePriority = 99; + var UserBlockingPriority$1 = 98; + var NormalPriority = 97; + var LowPriority = 96; + var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only. + + var NoPriority = 90; + var shouldYield = Scheduler_shouldYield; + var requestPaint = // Fall back gracefully if we're running an older version of Scheduler. + Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {}; + var syncQueue = null; + var immediateQueueCallbackNode = null; + var isFlushingSyncQueue = false; + var initialTimeMs = Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly. + // This will be the case for modern browsers that support `performance.now`. In + // older browsers, Scheduler falls back to `Date.now`, which returns a Unix + // timestamp. In that case, subtract the module initialization time to simulate + // the behavior of performance.now and keep our times small enough to fit + // within 32 bits. + // TODO: Consider lifting this into Scheduler. + + var now = initialTimeMs < 10000 ? Scheduler_now : function () { + return Scheduler_now() - initialTimeMs; + }; + function getCurrentPriorityLevel() { + switch (Scheduler_getCurrentPriorityLevel()) { + case Scheduler_ImmediatePriority: + return ImmediatePriority; + + case Scheduler_UserBlockingPriority: + return UserBlockingPriority$1; + + case Scheduler_NormalPriority: + return NormalPriority; + + case Scheduler_LowPriority: + return LowPriority; + + case Scheduler_IdlePriority: + return IdlePriority; + + default: + { + { + throw Error( "Unknown priority level." ); + } + } + + } + } + + function reactPriorityToSchedulerPriority(reactPriorityLevel) { + switch (reactPriorityLevel) { + case ImmediatePriority: + return Scheduler_ImmediatePriority; + + case UserBlockingPriority$1: + return Scheduler_UserBlockingPriority; + + case NormalPriority: + return Scheduler_NormalPriority; + + case LowPriority: + return Scheduler_LowPriority; + + case IdlePriority: + return Scheduler_IdlePriority; + + default: + { + { + throw Error( "Unknown priority level." ); + } + } + + } + } + + function runWithPriority$1(reactPriorityLevel, fn) { + var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel); + return Scheduler_runWithPriority(priorityLevel, fn); + } + function scheduleCallback(reactPriorityLevel, callback, options) { + var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel); + return Scheduler_scheduleCallback(priorityLevel, callback, options); + } + function scheduleSyncCallback(callback) { + // Push this callback into an internal queue. We'll flush these either in + // the next tick, or earlier if something calls `flushSyncCallbackQueue`. + if (syncQueue === null) { + syncQueue = [callback]; // Flush the queue in the next tick, at the earliest. + + immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl); + } else { + // Push onto existing queue. Don't need to schedule a callback because + // we already scheduled one when we created the queue. + syncQueue.push(callback); + } + + return fakeCallbackNode; + } + function cancelCallback(callbackNode) { + if (callbackNode !== fakeCallbackNode) { + Scheduler_cancelCallback(callbackNode); + } + } + function flushSyncCallbackQueue() { + if (immediateQueueCallbackNode !== null) { + var node = immediateQueueCallbackNode; + immediateQueueCallbackNode = null; + Scheduler_cancelCallback(node); + } + + flushSyncCallbackQueueImpl(); + } + + function flushSyncCallbackQueueImpl() { + if (!isFlushingSyncQueue && syncQueue !== null) { + // Prevent re-entrancy. + isFlushingSyncQueue = true; + var i = 0; + + try { + var _isSync = true; + var queue = syncQueue; + runWithPriority$1(ImmediatePriority, function () { + for (; i < queue.length; i++) { + var callback = queue[i]; + + do { + callback = callback(_isSync); + } while (callback !== null); + } + }); + syncQueue = null; + } catch (error) { + // If something throws, leave the remaining callbacks on the queue. + if (syncQueue !== null) { + syncQueue = syncQueue.slice(i + 1); + } // Resume flushing in the next tick + + + Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue); + throw error; + } finally { + isFlushingSyncQueue = false; + } + } + } + + var NoMode = 0; + var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root + // tag instead + + var BlockingMode = 2; + var ConcurrentMode = 4; + var ProfileMode = 8; + + // Max 31 bit integer. The max integer size in V8 for 32-bit systems. + // Math.pow(2, 30) - 1 + // 0b111111111111111111111111111111 + var MAX_SIGNED_31_BIT_INT = 1073741823; + + var NoWork = 0; // TODO: Think of a better name for Never. The key difference with Idle is that + // Never work can be committed in an inconsistent state without tearing the UI. + // The main example is offscreen content, like a hidden subtree. So one possible + // name is Offscreen. However, it also includes dehydrated Suspense boundaries, + // which are inconsistent in the sense that they haven't finished yet, but + // aren't visibly inconsistent because the server rendered HTML matches what the + // hydrated tree would look like. + + var Never = 1; // Idle is slightly higher priority than Never. It must completely finish in + // order to be consistent. + + var Idle = 2; // Continuous Hydration is slightly higher than Idle and is used to increase + // priority of hover targets. + + var ContinuousHydration = 3; + var Sync = MAX_SIGNED_31_BIT_INT; + var Batched = Sync - 1; + var UNIT_SIZE = 10; + var MAGIC_NUMBER_OFFSET = Batched - 1; // 1 unit of expiration time represents 10ms. + + function msToExpirationTime(ms) { + // Always subtract from the offset so that we don't clash with the magic number for NoWork. + return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0); + } + function expirationTimeToMs(expirationTime) { + return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE; + } + + function ceiling(num, precision) { + return ((num / precision | 0) + 1) * precision; + } + + function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) { + return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE); + } // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update + // the names to reflect. + + + var LOW_PRIORITY_EXPIRATION = 5000; + var LOW_PRIORITY_BATCH_SIZE = 250; + function computeAsyncExpiration(currentTime) { + return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE); + } + function computeSuspenseExpiration(currentTime, timeoutMs) { + // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time? + return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE); + } // We intentionally set a higher expiration time for interactive updates in + // dev than in production. + // + // If the main thread is being blocked so long that you hit the expiration, + // it's a problem that could be solved with better scheduling. + // + // People will be more likely to notice this and fix it with the long + // expiration time in development. + // + // In production we opt for better UX at the risk of masking scheduling + // problems, by expiring fast. + + var HIGH_PRIORITY_EXPIRATION = 500 ; + var HIGH_PRIORITY_BATCH_SIZE = 100; + function computeInteractiveExpiration(currentTime) { + return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE); + } + function inferPriorityFromExpirationTime(currentTime, expirationTime) { + if (expirationTime === Sync) { + return ImmediatePriority; + } + + if (expirationTime === Never || expirationTime === Idle) { + return IdlePriority; + } + + var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime); + + if (msUntil <= 0) { + return ImmediatePriority; + } + + if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) { + return UserBlockingPriority$1; + } + + if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) { + return NormalPriority; + } // TODO: Handle LowPriority + // Assume anything lower has idle priority + + + return IdlePriority; + } + + var ReactStrictModeWarnings = { + recordUnsafeLifecycleWarnings: function (fiber, instance) {}, + flushPendingUnsafeLifecycleWarnings: function () {}, + recordLegacyContextWarning: function (fiber, instance) {}, + flushLegacyContextWarning: function () {}, + discardPendingWarnings: function () {} + }; + + { + var findStrictRoot = function (fiber) { + var maybeStrictRoot = null; + var node = fiber; + + while (node !== null) { + if (node.mode & StrictMode) { + maybeStrictRoot = node; + } + + node = node.return; + } + + return maybeStrictRoot; + }; + + var setToSortedString = function (set) { + var array = []; + set.forEach(function (value) { + array.push(value); + }); + return array.sort().join(', '); + }; + + var pendingComponentWillMountWarnings = []; + var pendingUNSAFE_ComponentWillMountWarnings = []; + var pendingComponentWillReceivePropsWarnings = []; + var pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + var pendingComponentWillUpdateWarnings = []; + var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about. + + var didWarnAboutUnsafeLifecycles = new Set(); + + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) { + // Dedup strategy: Warn once per component. + if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { + return; + } + + if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components. + instance.componentWillMount.__suppressDeprecationWarning !== true) { + pendingComponentWillMountWarnings.push(fiber); + } + + if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') { + pendingUNSAFE_ComponentWillMountWarnings.push(fiber); + } + + if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + pendingComponentWillReceivePropsWarnings.push(fiber); + } + + if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') { + pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber); + } + + if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + pendingComponentWillUpdateWarnings.push(fiber); + } + + if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') { + pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber); + } + }; + + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { + // We do an initial pass to gather component names + var componentWillMountUniqueNames = new Set(); + + if (pendingComponentWillMountWarnings.length > 0) { + pendingComponentWillMountWarnings.forEach(function (fiber) { + componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component'); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillMountWarnings = []; + } + + var UNSAFE_componentWillMountUniqueNames = new Set(); + + if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) { + pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) { + UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component'); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillMountWarnings = []; + } + + var componentWillReceivePropsUniqueNames = new Set(); + + if (pendingComponentWillReceivePropsWarnings.length > 0) { + pendingComponentWillReceivePropsWarnings.forEach(function (fiber) { + componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component'); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillReceivePropsWarnings = []; + } + + var UNSAFE_componentWillReceivePropsUniqueNames = new Set(); + + if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) { + pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) { + UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component'); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + } + + var componentWillUpdateUniqueNames = new Set(); + + if (pendingComponentWillUpdateWarnings.length > 0) { + pendingComponentWillUpdateWarnings.forEach(function (fiber) { + componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component'); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillUpdateWarnings = []; + } + + var UNSAFE_componentWillUpdateUniqueNames = new Set(); + + if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) { + pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) { + UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component'); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillUpdateWarnings = []; + } // Finally, we flush all the warnings + // UNSAFE_ ones before the deprecated ones, since they'll be 'louder' + + + if (UNSAFE_componentWillMountUniqueNames.size > 0) { + var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames); + + error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames); + } + + if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) { + var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames); + + error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '\nPlease update the following components: %s', _sortedNames); + } + + if (UNSAFE_componentWillUpdateUniqueNames.size > 0) { + var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames); + + error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2); + } + + if (componentWillMountUniqueNames.size > 0) { + var _sortedNames3 = setToSortedString(componentWillMountUniqueNames); + + warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3); + } + + if (componentWillReceivePropsUniqueNames.size > 0) { + var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames); + + warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4); + } + + if (componentWillUpdateUniqueNames.size > 0) { + var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames); + + warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5); + } + }; + + var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about. + + var didWarnAboutLegacyContext = new Set(); + + ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) { + var strictRoot = findStrictRoot(fiber); + + if (strictRoot === null) { + error('Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.'); + + return; + } // Dedup strategy: Warn once per component. + + + if (didWarnAboutLegacyContext.has(fiber.type)) { + return; + } + + var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); + + if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') { + if (warningsForRoot === undefined) { + warningsForRoot = []; + pendingLegacyContextWarning.set(strictRoot, warningsForRoot); + } + + warningsForRoot.push(fiber); + } + }; + + ReactStrictModeWarnings.flushLegacyContextWarning = function () { + pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) { + if (fiberArray.length === 0) { + return; + } + + var firstFiber = fiberArray[0]; + var uniqueNames = new Set(); + fiberArray.forEach(function (fiber) { + uniqueNames.add(getComponentName(fiber.type) || 'Component'); + didWarnAboutLegacyContext.add(fiber.type); + }); + var sortedNames = setToSortedString(uniqueNames); + var firstComponentStack = getStackByFiberInDevAndProd(firstFiber); + + error('Legacy context API has been detected within a strict-mode tree.' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here: https://fb.me/react-legacy-context' + '%s', sortedNames, firstComponentStack); + }); + }; + + ReactStrictModeWarnings.discardPendingWarnings = function () { + pendingComponentWillMountWarnings = []; + pendingUNSAFE_ComponentWillMountWarnings = []; + pendingComponentWillReceivePropsWarnings = []; + pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + pendingComponentWillUpdateWarnings = []; + pendingUNSAFE_ComponentWillUpdateWarnings = []; + pendingLegacyContextWarning = new Map(); + }; + } + + var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below. + + var failedBoundaries = null; + var setRefreshHandler = function (handler) { + { + resolveFamily = handler; + } + }; + function resolveFunctionForHotReloading(type) { + { + if (resolveFamily === null) { + // Hot reloading is disabled. + return type; + } + + var family = resolveFamily(type); + + if (family === undefined) { + return type; + } // Use the latest known implementation. + + + return family.current; + } + } + function resolveClassForHotReloading(type) { + // No implementation differences. + return resolveFunctionForHotReloading(type); + } + function resolveForwardRefForHotReloading(type) { + { + if (resolveFamily === null) { + // Hot reloading is disabled. + return type; + } + + var family = resolveFamily(type); + + if (family === undefined) { + // Check if we're dealing with a real forwardRef. Don't want to crash early. + if (type !== null && type !== undefined && typeof type.render === 'function') { + // ForwardRef is special because its resolved .type is an object, + // but it's possible that we only have its inner render function in the map. + // If that inner render function is different, we'll build a new forwardRef type. + var currentRender = resolveFunctionForHotReloading(type.render); + + if (type.render !== currentRender) { + var syntheticType = { + $$typeof: REACT_FORWARD_REF_TYPE, + render: currentRender + }; + + if (type.displayName !== undefined) { + syntheticType.displayName = type.displayName; + } + + return syntheticType; + } + } + + return type; + } // Use the latest known implementation. + + + return family.current; + } + } + function isCompatibleFamilyForHotReloading(fiber, element) { + { + if (resolveFamily === null) { + // Hot reloading is disabled. + return false; + } + + var prevType = fiber.elementType; + var nextType = element.type; // If we got here, we know types aren't === equal. + + var needsCompareFamilies = false; + var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null; + + switch (fiber.tag) { + case ClassComponent: + { + if (typeof nextType === 'function') { + needsCompareFamilies = true; + } + + break; + } + + case FunctionComponent: + { + if (typeof nextType === 'function') { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + // We don't know the inner type yet. + // We're going to assume that the lazy inner type is stable, + // and so it is sufficient to avoid reconciling it away. + // We're not going to unwrap or actually use the new lazy type. + needsCompareFamilies = true; + } + + break; + } + + case ForwardRef: + { + if ($$typeofNextType === REACT_FORWARD_REF_TYPE) { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + + break; + } + + case MemoComponent: + case SimpleMemoComponent: + { + if ($$typeofNextType === REACT_MEMO_TYPE) { + // TODO: if it was but can no longer be simple, + // we shouldn't set this. + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + + break; + } + + default: + return false; + } // Check if both types have a family and it's the same one. + + + if (needsCompareFamilies) { + // Note: memo() and forwardRef() we'll compare outer rather than inner type. + // This means both of them need to be registered to preserve state. + // If we unwrapped and compared the inner types for wrappers instead, + // then we would risk falsely saying two separate memo(Foo) + // calls are equivalent because they wrap the same Foo function. + var prevFamily = resolveFamily(prevType); + + if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) { + return true; + } + } + + return false; + } + } + function markFailedErrorBoundaryForHotReloading(fiber) { + { + if (resolveFamily === null) { + // Hot reloading is disabled. + return; + } + + if (typeof WeakSet !== 'function') { + return; + } + + if (failedBoundaries === null) { + failedBoundaries = new WeakSet(); + } + + failedBoundaries.add(fiber); + } + } + var scheduleRefresh = function (root, update) { + { + if (resolveFamily === null) { + // Hot reloading is disabled. + return; + } + + var staleFamilies = update.staleFamilies, + updatedFamilies = update.updatedFamilies; + flushPassiveEffects(); + flushSync(function () { + scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies); + }); + } + }; + var scheduleRoot = function (root, element) { + { + if (root.context !== emptyContextObject) { + // Super edge case: root has a legacy _renderSubtree context + // but we don't know the parentComponent so we can't pass it. + // Just ignore. We'll delete this with _renderSubtree code path later. + return; + } + + flushPassiveEffects(); + syncUpdates(function () { + updateContainer(element, root, null, null); + }); + } + }; + + function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { + { + var alternate = fiber.alternate, + child = fiber.child, + sibling = fiber.sibling, + tag = fiber.tag, + type = fiber.type; + var candidateType = null; + + switch (tag) { + case FunctionComponent: + case SimpleMemoComponent: + case ClassComponent: + candidateType = type; + break; + + case ForwardRef: + candidateType = type.render; + break; + } + + if (resolveFamily === null) { + throw new Error('Expected resolveFamily to be set during hot reload.'); + } + + var needsRender = false; + var needsRemount = false; + + if (candidateType !== null) { + var family = resolveFamily(candidateType); + + if (family !== undefined) { + if (staleFamilies.has(family)) { + needsRemount = true; + } else if (updatedFamilies.has(family)) { + if (tag === ClassComponent) { + needsRemount = true; + } else { + needsRender = true; + } + } + } + } + + if (failedBoundaries !== null) { + if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) { + needsRemount = true; + } + } + + if (needsRemount) { + fiber._debugNeedsRemount = true; + } + + if (needsRemount || needsRender) { + scheduleWork(fiber, Sync); + } + + if (child !== null && !needsRemount) { + scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies); + } + + if (sibling !== null) { + scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies); + } + } + } + + var findHostInstancesForRefresh = function (root, families) { + { + var hostInstances = new Set(); + var types = new Set(families.map(function (family) { + return family.current; + })); + findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances); + return hostInstances; + } + }; + + function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) { + { + var child = fiber.child, + sibling = fiber.sibling, + tag = fiber.tag, + type = fiber.type; + var candidateType = null; + + switch (tag) { + case FunctionComponent: + case SimpleMemoComponent: + case ClassComponent: + candidateType = type; + break; + + case ForwardRef: + candidateType = type.render; + break; + } + + var didMatch = false; + + if (candidateType !== null) { + if (types.has(candidateType)) { + didMatch = true; + } + } + + if (didMatch) { + // We have a match. This only drills down to the closest host components. + // There's no need to search deeper because for the purpose of giving + // visual feedback, "flashing" outermost parent rectangles is sufficient. + findHostInstancesForFiberShallowly(fiber, hostInstances); + } else { + // If there's no match, maybe there will be one further down in the child tree. + if (child !== null) { + findHostInstancesForMatchingFibersRecursively(child, types, hostInstances); + } + } + + if (sibling !== null) { + findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances); + } + } + } + + function findHostInstancesForFiberShallowly(fiber, hostInstances) { + { + var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances); + + if (foundHostInstances) { + return; + } // If we didn't find any host children, fallback to closest host parent. + + + var node = fiber; + + while (true) { + switch (node.tag) { + case HostComponent: + hostInstances.add(node.stateNode); + return; + + case HostPortal: + hostInstances.add(node.stateNode.containerInfo); + return; + + case HostRoot: + hostInstances.add(node.stateNode.containerInfo); + return; + } + + if (node.return === null) { + throw new Error('Expected to reach root first.'); + } + + node = node.return; + } + } + } + + function findChildHostInstancesForFiberShallowly(fiber, hostInstances) { + { + var node = fiber; + var foundHostInstances = false; + + while (true) { + if (node.tag === HostComponent) { + // We got a match. + foundHostInstances = true; + hostInstances.add(node.stateNode); // There may still be more, so keep searching. + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === fiber) { + return foundHostInstances; + } + + while (node.sibling === null) { + if (node.return === null || node.return === fiber) { + return foundHostInstances; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + return false; + } + + function resolveDefaultProps(Component, baseProps) { + if (Component && Component.defaultProps) { + // Resolve default props. Taken from ReactElement + var props = _assign({}, baseProps); + + var defaultProps = Component.defaultProps; + + for (var propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + + return props; + } + + return baseProps; + } + function readLazyComponentType(lazyComponent) { + initializeLazyComponentType(lazyComponent); + + if (lazyComponent._status !== Resolved) { + throw lazyComponent._result; + } + + return lazyComponent._result; + } + + var valueCursor = createCursor(null); + var rendererSigil; + + { + // Use this to detect multiple renderers using the same context + rendererSigil = {}; + } + + var currentlyRenderingFiber = null; + var lastContextDependency = null; + var lastContextWithAllBitsObserved = null; + var isDisallowedContextReadInDEV = false; + function resetContextDependencies() { + // This is called right before React yields execution, to ensure `readContext` + // cannot be called outside the render phase. + currentlyRenderingFiber = null; + lastContextDependency = null; + lastContextWithAllBitsObserved = null; + + { + isDisallowedContextReadInDEV = false; + } + } + function enterDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = true; + } + } + function exitDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = false; + } + } + function pushProvider(providerFiber, nextValue) { + var context = providerFiber.type._context; + + { + push(valueCursor, context._currentValue, providerFiber); + context._currentValue = nextValue; + + { + if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) { + error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.'); + } + + context._currentRenderer = rendererSigil; + } + } + } + function popProvider(providerFiber) { + var currentValue = valueCursor.current; + pop(valueCursor, providerFiber); + var context = providerFiber.type._context; + + { + context._currentValue = currentValue; + } + } + function calculateChangedBits(context, newValue, oldValue) { + if (objectIs(oldValue, newValue)) { + // No change + return 0; + } else { + var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT; + + { + if ((changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits) { + error('calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits); + } + } + + return changedBits | 0; + } + } + function scheduleWorkOnParentPath(parent, renderExpirationTime) { + // Update the child expiration time of all the ancestors, including + // the alternates. + var node = parent; + + while (node !== null) { + var alternate = node.alternate; + + if (node.childExpirationTime < renderExpirationTime) { + node.childExpirationTime = renderExpirationTime; + + if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) { + alternate.childExpirationTime = renderExpirationTime; + } + } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) { + alternate.childExpirationTime = renderExpirationTime; + } else { + // Neither alternate was updated, which means the rest of the + // ancestor path already has sufficient priority. + break; + } + + node = node.return; + } + } + function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { + var fiber = workInProgress.child; + + if (fiber !== null) { + // Set the return pointer of the child to the work-in-progress fiber. + fiber.return = workInProgress; + } + + while (fiber !== null) { + var nextFiber = void 0; // Visit this fiber. + + var list = fiber.dependencies; + + if (list !== null) { + nextFiber = fiber.child; + var dependency = list.firstContext; + + while (dependency !== null) { + // Check if the context matches. + if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) { + // Match! Schedule an update on this fiber. + if (fiber.tag === ClassComponent) { + // Schedule a force update on the work-in-progress. + var update = createUpdate(renderExpirationTime, null); + update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the + // update to the current fiber, too, which means it will persist even if + // this render is thrown away. Since it's a race condition, not sure it's + // worth fixing. + + enqueueUpdate(fiber, update); + } + + if (fiber.expirationTime < renderExpirationTime) { + fiber.expirationTime = renderExpirationTime; + } + + var alternate = fiber.alternate; + + if (alternate !== null && alternate.expirationTime < renderExpirationTime) { + alternate.expirationTime = renderExpirationTime; + } + + scheduleWorkOnParentPath(fiber.return, renderExpirationTime); // Mark the expiration time on the list, too. + + if (list.expirationTime < renderExpirationTime) { + list.expirationTime = renderExpirationTime; + } // Since we already found a match, we can stop traversing the + // dependency list. + + + break; + } + + dependency = dependency.next; + } + } else if (fiber.tag === ContextProvider) { + // Don't scan deeper if this is a matching provider + nextFiber = fiber.type === workInProgress.type ? null : fiber.child; + } else { + // Traverse down. + nextFiber = fiber.child; + } + + if (nextFiber !== null) { + // Set the return pointer of the child to the work-in-progress fiber. + nextFiber.return = fiber; + } else { + // No child. Traverse to next sibling. + nextFiber = fiber; + + while (nextFiber !== null) { + if (nextFiber === workInProgress) { + // We're back to the root of this subtree. Exit. + nextFiber = null; + break; + } + + var sibling = nextFiber.sibling; + + if (sibling !== null) { + // Set the return pointer of the sibling to the work-in-progress fiber. + sibling.return = nextFiber.return; + nextFiber = sibling; + break; + } // No more siblings. Traverse up. + + + nextFiber = nextFiber.return; + } + } + + fiber = nextFiber; + } + } + function prepareToReadContext(workInProgress, renderExpirationTime) { + currentlyRenderingFiber = workInProgress; + lastContextDependency = null; + lastContextWithAllBitsObserved = null; + var dependencies = workInProgress.dependencies; + + if (dependencies !== null) { + var firstContext = dependencies.firstContext; + + if (firstContext !== null) { + if (dependencies.expirationTime >= renderExpirationTime) { + // Context list has a pending update. Mark that this fiber performed work. + markWorkInProgressReceivedUpdate(); + } // Reset the work-in-progress list + + + dependencies.firstContext = null; + } + } + } + function readContext(context, observedBits) { + { + // This warning would fire if you read context inside a Hook like useMemo. + // Unlike the class check below, it's not enforced in production for perf. + if (isDisallowedContextReadInDEV) { + error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().'); + } + } + + if (lastContextWithAllBitsObserved === context) ; else if (observedBits === false || observedBits === 0) ; else { + var resolvedObservedBits; // Avoid deopting on observable arguments or heterogeneous types. + + if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) { + // Observe all updates. + lastContextWithAllBitsObserved = context; + resolvedObservedBits = MAX_SIGNED_31_BIT_INT; + } else { + resolvedObservedBits = observedBits; + } + + var contextItem = { + context: context, + observedBits: resolvedObservedBits, + next: null + }; + + if (lastContextDependency === null) { + if (!(currentlyRenderingFiber !== null)) { + { + throw Error( "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." ); + } + } // This is the first dependency for this component. Create a new list. + + + lastContextDependency = contextItem; + currentlyRenderingFiber.dependencies = { + expirationTime: NoWork, + firstContext: contextItem, + responders: null + }; + } else { + // Append a new context item. + lastContextDependency = lastContextDependency.next = contextItem; + } + } + + return context._currentValue ; + } + + var UpdateState = 0; + var ReplaceState = 1; + var ForceUpdate = 2; + var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`. + // It should only be read right after calling `processUpdateQueue`, via + // `checkHasForceUpdateAfterProcessing`. + + var hasForceUpdate = false; + var didWarnUpdateInsideUpdate; + var currentlyProcessingQueue; + + { + didWarnUpdateInsideUpdate = false; + currentlyProcessingQueue = null; + } + + function initializeUpdateQueue(fiber) { + var queue = { + baseState: fiber.memoizedState, + baseQueue: null, + shared: { + pending: null + }, + effects: null + }; + fiber.updateQueue = queue; + } + function cloneUpdateQueue(current, workInProgress) { + // Clone the update queue from current. Unless it's already a clone. + var queue = workInProgress.updateQueue; + var currentQueue = current.updateQueue; + + if (queue === currentQueue) { + var clone = { + baseState: currentQueue.baseState, + baseQueue: currentQueue.baseQueue, + shared: currentQueue.shared, + effects: currentQueue.effects + }; + workInProgress.updateQueue = clone; + } + } + function createUpdate(expirationTime, suspenseConfig) { + var update = { + expirationTime: expirationTime, + suspenseConfig: suspenseConfig, + tag: UpdateState, + payload: null, + callback: null, + next: null + }; + update.next = update; + + { + update.priority = getCurrentPriorityLevel(); + } + + return update; + } + function enqueueUpdate(fiber, update) { + var updateQueue = fiber.updateQueue; + + if (updateQueue === null) { + // Only occurs if the fiber has been unmounted. + return; + } + + var sharedQueue = updateQueue.shared; + var pending = sharedQueue.pending; + + if (pending === null) { + // This is the first update. Create a circular list. + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + + sharedQueue.pending = update; + + { + if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) { + error('An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.'); + + didWarnUpdateInsideUpdate = true; + } + } + } + function enqueueCapturedUpdate(workInProgress, update) { + var current = workInProgress.alternate; + + if (current !== null) { + // Ensure the work-in-progress queue is a clone + cloneUpdateQueue(current, workInProgress); + } // Captured updates go only on the work-in-progress queue. + + + var queue = workInProgress.updateQueue; // Append the update to the end of the list. + + var last = queue.baseQueue; + + if (last === null) { + queue.baseQueue = update.next = update; + update.next = update; + } else { + update.next = last.next; + last.next = update; + } + } + + function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { + switch (update.tag) { + case ReplaceState: + { + var payload = update.payload; + + if (typeof payload === 'function') { + // Updater function + { + enterDisallowedContextReadInDEV(); + + if ( workInProgress.mode & StrictMode) { + payload.call(instance, prevState, nextProps); + } + } + + var nextState = payload.call(instance, prevState, nextProps); + + { + exitDisallowedContextReadInDEV(); + } + + return nextState; + } // State object + + + return payload; + } + + case CaptureUpdate: + { + workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture; + } + // Intentional fallthrough + + case UpdateState: + { + var _payload = update.payload; + var partialState; + + if (typeof _payload === 'function') { + // Updater function + { + enterDisallowedContextReadInDEV(); + + if ( workInProgress.mode & StrictMode) { + _payload.call(instance, prevState, nextProps); + } + } + + partialState = _payload.call(instance, prevState, nextProps); + + { + exitDisallowedContextReadInDEV(); + } + } else { + // Partial state object + partialState = _payload; + } + + if (partialState === null || partialState === undefined) { + // Null and undefined are treated as no-ops. + return prevState; + } // Merge the partial state and the previous state. + + + return _assign({}, prevState, partialState); + } + + case ForceUpdate: + { + hasForceUpdate = true; + return prevState; + } + } + + return prevState; + } + + function processUpdateQueue(workInProgress, props, instance, renderExpirationTime) { + // This is always non-null on a ClassComponent or HostRoot + var queue = workInProgress.updateQueue; + hasForceUpdate = false; + + { + currentlyProcessingQueue = queue.shared; + } // The last rebase update that is NOT part of the base state. + + + var baseQueue = queue.baseQueue; // The last pending update that hasn't been processed yet. + + var pendingQueue = queue.shared.pending; + + if (pendingQueue !== null) { + // We have new updates that haven't been processed yet. + // We'll add them to the base queue. + if (baseQueue !== null) { + // Merge the pending queue and the base queue. + var baseFirst = baseQueue.next; + var pendingFirst = pendingQueue.next; + baseQueue.next = pendingFirst; + pendingQueue.next = baseFirst; + } + + baseQueue = pendingQueue; + queue.shared.pending = null; // TODO: Pass `current` as argument + + var current = workInProgress.alternate; + + if (current !== null) { + var currentQueue = current.updateQueue; + + if (currentQueue !== null) { + currentQueue.baseQueue = pendingQueue; + } + } + } // These values may change as we process the queue. + + + if (baseQueue !== null) { + var first = baseQueue.next; // Iterate through the list of updates to compute the result. + + var newState = queue.baseState; + var newExpirationTime = NoWork; + var newBaseState = null; + var newBaseQueueFirst = null; + var newBaseQueueLast = null; + + if (first !== null) { + var update = first; + + do { + var updateExpirationTime = update.expirationTime; + + if (updateExpirationTime < renderExpirationTime) { + // Priority is insufficient. Skip this update. If this is the first + // skipped update, the previous update/state is the new base + // update/state. + var clone = { + expirationTime: update.expirationTime, + suspenseConfig: update.suspenseConfig, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + + if (newBaseQueueLast === null) { + newBaseQueueFirst = newBaseQueueLast = clone; + newBaseState = newState; + } else { + newBaseQueueLast = newBaseQueueLast.next = clone; + } // Update the remaining priority in the queue. + + + if (updateExpirationTime > newExpirationTime) { + newExpirationTime = updateExpirationTime; + } + } else { + // This update does have sufficient priority. + if (newBaseQueueLast !== null) { + var _clone = { + expirationTime: Sync, + // This update is going to be committed so we never want uncommit it. + suspenseConfig: update.suspenseConfig, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + newBaseQueueLast = newBaseQueueLast.next = _clone; + } // Mark the event time of this update as relevant to this render pass. + // TODO: This should ideally use the true event time of this update rather than + // its priority which is a derived and not reverseable value. + // TODO: We should skip this update if it was already committed but currently + // we have no way of detecting the difference between a committed and suspended + // update here. + + + markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update. + + newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance); + var callback = update.callback; + + if (callback !== null) { + workInProgress.effectTag |= Callback; + var effects = queue.effects; + + if (effects === null) { + queue.effects = [update]; + } else { + effects.push(update); + } + } + } + + update = update.next; + + if (update === null || update === first) { + pendingQueue = queue.shared.pending; + + if (pendingQueue === null) { + break; + } else { + // An update was scheduled from inside a reducer. Add the new + // pending updates to the end of the list and keep processing. + update = baseQueue.next = pendingQueue.next; + pendingQueue.next = first; + queue.baseQueue = baseQueue = pendingQueue; + queue.shared.pending = null; + } + } + } while (true); + } + + if (newBaseQueueLast === null) { + newBaseState = newState; + } else { + newBaseQueueLast.next = newBaseQueueFirst; + } + + queue.baseState = newBaseState; + queue.baseQueue = newBaseQueueLast; // Set the remaining expiration time to be whatever is remaining in the queue. + // This should be fine because the only two other things that contribute to + // expiration time are props and context. We're already in the middle of the + // begin phase by the time we start processing the queue, so we've already + // dealt with the props. Context in components that specify + // shouldComponentUpdate is tricky; but we'll have to account for + // that regardless. + + markUnprocessedUpdateTime(newExpirationTime); + workInProgress.expirationTime = newExpirationTime; + workInProgress.memoizedState = newState; + } + + { + currentlyProcessingQueue = null; + } + } + + function callCallback(callback, context) { + if (!(typeof callback === 'function')) { + { + throw Error( "Invalid argument passed as callback. Expected a function. Instead received: " + callback ); + } + } + + callback.call(context); + } + + function resetHasForceUpdateBeforeProcessing() { + hasForceUpdate = false; + } + function checkHasForceUpdateAfterProcessing() { + return hasForceUpdate; + } + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + // Commit the effects + var effects = finishedQueue.effects; + finishedQueue.effects = null; + + if (effects !== null) { + for (var i = 0; i < effects.length; i++) { + var effect = effects[i]; + var callback = effect.callback; + + if (callback !== null) { + effect.callback = null; + callCallback(callback, instance); + } + } + } + } + + var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + function requestCurrentSuspenseConfig() { + return ReactCurrentBatchConfig.suspense; + } + + var fakeInternalInstance = {}; + var isArray = Array.isArray; // React.Component uses a shared frozen object by default. + // We'll use it to determine whether we need to initialize legacy refs. + + var emptyRefsObject = new React.Component().refs; + var didWarnAboutStateAssignmentForComponent; + var didWarnAboutUninitializedState; + var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate; + var didWarnAboutLegacyLifecyclesAndDerivedState; + var didWarnAboutUndefinedDerivedState; + var warnOnUndefinedDerivedState; + var warnOnInvalidCallback; + var didWarnAboutDirectlyAssigningPropsToState; + var didWarnAboutContextTypeAndContextTypes; + var didWarnAboutInvalidateContextType; + + { + didWarnAboutStateAssignmentForComponent = new Set(); + didWarnAboutUninitializedState = new Set(); + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(); + didWarnAboutLegacyLifecyclesAndDerivedState = new Set(); + didWarnAboutDirectlyAssigningPropsToState = new Set(); + didWarnAboutUndefinedDerivedState = new Set(); + didWarnAboutContextTypeAndContextTypes = new Set(); + didWarnAboutInvalidateContextType = new Set(); + var didWarnOnInvalidCallback = new Set(); + + warnOnInvalidCallback = function (callback, callerName) { + if (callback === null || typeof callback === 'function') { + return; + } + + var key = callerName + "_" + callback; + + if (!didWarnOnInvalidCallback.has(key)) { + didWarnOnInvalidCallback.add(key); + + error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback); + } + }; + + warnOnUndefinedDerivedState = function (type, partialState) { + if (partialState === undefined) { + var componentName = getComponentName(type) || 'Component'; + + if (!didWarnAboutUndefinedDerivedState.has(componentName)) { + didWarnAboutUndefinedDerivedState.add(componentName); + + error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName); + } + } + }; // This is so gross but it's at least non-critical and can be removed if + // it causes problems. This is meant to give a nicer error message for + // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component, + // ...)) which otherwise throws a "_processChildContext is not a function" + // exception. + + + Object.defineProperty(fakeInternalInstance, '_processChildContext', { + enumerable: false, + value: function () { + { + { + throw Error( "_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)." ); + } + } + } + }); + Object.freeze(fakeInternalInstance); + } + + function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { + var prevState = workInProgress.memoizedState; + + { + if ( workInProgress.mode & StrictMode) { + // Invoke the function an extra time to help detect side-effects. + getDerivedStateFromProps(nextProps, prevState); + } + } + + var partialState = getDerivedStateFromProps(nextProps, prevState); + + { + warnOnUndefinedDerivedState(ctor, partialState); + } // Merge the partial state and the previous state. + + + var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState); + workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the + // base state. + + if (workInProgress.expirationTime === NoWork) { + // Queue is always non-null for classes + var updateQueue = workInProgress.updateQueue; + updateQueue.baseState = memoizedState; + } + } + var classComponentUpdater = { + isMounted: isMounted, + enqueueSetState: function (inst, payload, callback) { + var fiber = get(inst); + var currentTime = requestCurrentTimeForUpdate(); + var suspenseConfig = requestCurrentSuspenseConfig(); + var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig); + var update = createUpdate(expirationTime, suspenseConfig); + update.payload = payload; + + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, 'setState'); + } + + update.callback = callback; + } + + enqueueUpdate(fiber, update); + scheduleWork(fiber, expirationTime); + }, + enqueueReplaceState: function (inst, payload, callback) { + var fiber = get(inst); + var currentTime = requestCurrentTimeForUpdate(); + var suspenseConfig = requestCurrentSuspenseConfig(); + var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig); + var update = createUpdate(expirationTime, suspenseConfig); + update.tag = ReplaceState; + update.payload = payload; + + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, 'replaceState'); + } + + update.callback = callback; + } + + enqueueUpdate(fiber, update); + scheduleWork(fiber, expirationTime); + }, + enqueueForceUpdate: function (inst, callback) { + var fiber = get(inst); + var currentTime = requestCurrentTimeForUpdate(); + var suspenseConfig = requestCurrentSuspenseConfig(); + var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig); + var update = createUpdate(expirationTime, suspenseConfig); + update.tag = ForceUpdate; + + if (callback !== undefined && callback !== null) { + { + warnOnInvalidCallback(callback, 'forceUpdate'); + } + + update.callback = callback; + } + + enqueueUpdate(fiber, update); + scheduleWork(fiber, expirationTime); + } + }; + + function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { + var instance = workInProgress.stateNode; + + if (typeof instance.shouldComponentUpdate === 'function') { + { + if ( workInProgress.mode & StrictMode) { + // Invoke the function an extra time to help detect side-effects. + instance.shouldComponentUpdate(newProps, newState, nextContext); + } + } + + startPhaseTimer(workInProgress, 'shouldComponentUpdate'); + var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext); + stopPhaseTimer(); + + { + if (shouldUpdate === undefined) { + error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component'); + } + } + + return shouldUpdate; + } + + if (ctor.prototype && ctor.prototype.isPureReactComponent) { + return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); + } + + return true; + } + + function checkClassInstance(workInProgress, ctor, newProps) { + var instance = workInProgress.stateNode; + + { + var name = getComponentName(ctor) || 'Component'; + var renderPresent = instance.render; + + if (!renderPresent) { + if (ctor.prototype && typeof ctor.prototype.render === 'function') { + error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name); + } else { + error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name); + } + } + + if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) { + error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name); + } + + if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) { + error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name); + } + + if (instance.propTypes) { + error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name); + } + + if (instance.contextType) { + error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name); + } + + { + if (instance.contextTypes) { + error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name); + } + + if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) { + didWarnAboutContextTypeAndContextTypes.add(ctor); + + error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name); + } + } + + if (typeof instance.componentShouldUpdate === 'function') { + error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name); + } + + if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') { + error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component'); + } + + if (typeof instance.componentDidUnmount === 'function') { + error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name); + } + + if (typeof instance.componentDidReceiveProps === 'function') { + error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name); + } + + if (typeof instance.componentWillRecieveProps === 'function') { + error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name); + } + + if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') { + error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name); + } + + var hasMutatedProps = instance.props !== newProps; + + if (instance.props !== undefined && hasMutatedProps) { + error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name); + } + + if (instance.defaultProps) { + error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name); + } + + if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) { + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor); + + error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor)); + } + + if (typeof instance.getDerivedStateFromProps === 'function') { + error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name); + } + + if (typeof instance.getDerivedStateFromError === 'function') { + error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name); + } + + if (typeof ctor.getSnapshotBeforeUpdate === 'function') { + error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name); + } + + var _state = instance.state; + + if (_state && (typeof _state !== 'object' || isArray(_state))) { + error('%s.state: must be set to an object or null', name); + } + + if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') { + error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name); + } + } + } + + function adoptClassInstance(workInProgress, instance) { + instance.updater = classComponentUpdater; + workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates + + set(instance, workInProgress); + + { + instance._reactInternalInstance = fakeInternalInstance; + } + } + + function constructClassInstance(workInProgress, ctor, props) { + var isLegacyContextConsumer = false; + var unmaskedContext = emptyContextObject; + var context = emptyContextObject; + var contextType = ctor.contextType; + + { + if ('contextType' in ctor) { + var isValid = // Allow null for conditional declaration + contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer> + + if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) { + didWarnAboutInvalidateContextType.add(ctor); + var addendum = ''; + + if (contextType === undefined) { + addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.'; + } else if (typeof contextType !== 'object') { + addendum = ' However, it is set to a ' + typeof contextType + '.'; + } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) { + addendum = ' Did you accidentally pass the Context.Provider instead?'; + } else if (contextType._context !== undefined) { + // <Context.Consumer> + addendum = ' Did you accidentally pass the Context.Consumer instead?'; + } else { + addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.'; + } + + error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum); + } + } + } + + if (typeof contextType === 'object' && contextType !== null) { + context = readContext(contextType); + } else { + unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + var contextTypes = ctor.contextTypes; + isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined; + context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject; + } // Instantiate twice to help detect side-effects. + + + { + if ( workInProgress.mode & StrictMode) { + new ctor(props, context); // eslint-disable-line no-new + } + } + + var instance = new ctor(props, context); + var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null; + adoptClassInstance(workInProgress, instance); + + { + if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) { + var componentName = getComponentName(ctor) || 'Component'; + + if (!didWarnAboutUninitializedState.has(componentName)) { + didWarnAboutUninitializedState.add(componentName); + + error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName); + } + } // If new component APIs are defined, "unsafe" lifecycles won't be called. + // Warn about these lifecycles if they are present. + // Don't warn about react-lifecycles-compat polyfilled methods though. + + + if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') { + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; + + if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) { + foundWillMountName = 'componentWillMount'; + } else if (typeof instance.UNSAFE_componentWillMount === 'function') { + foundWillMountName = 'UNSAFE_componentWillMount'; + } + + if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + foundWillReceivePropsName = 'componentWillReceiveProps'; + } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') { + foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; + } + + if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + foundWillUpdateName = 'componentWillUpdate'; + } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') { + foundWillUpdateName = 'UNSAFE_componentWillUpdate'; + } + + if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { + var _componentName = getComponentName(ctor) || 'Component'; + + var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()'; + + if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) { + didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName); + + error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n " + foundWillUpdateName : ''); + } + } + } + } // Cache unmasked context so we can avoid recreating masked context unless necessary. + // ReactFiberContext usually updates this cache but can't for newly-created instances. + + + if (isLegacyContextConsumer) { + cacheContext(workInProgress, unmaskedContext, context); + } + + return instance; + } + + function callComponentWillMount(workInProgress, instance) { + startPhaseTimer(workInProgress, 'componentWillMount'); + var oldState = instance.state; + + if (typeof instance.componentWillMount === 'function') { + instance.componentWillMount(); + } + + if (typeof instance.UNSAFE_componentWillMount === 'function') { + instance.UNSAFE_componentWillMount(); + } + + stopPhaseTimer(); + + if (oldState !== instance.state) { + { + error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component'); + } + + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + + function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { + var oldState = instance.state; + startPhaseTimer(workInProgress, 'componentWillReceiveProps'); + + if (typeof instance.componentWillReceiveProps === 'function') { + instance.componentWillReceiveProps(newProps, nextContext); + } + + if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') { + instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); + } + + stopPhaseTimer(); + + if (instance.state !== oldState) { + { + var componentName = getComponentName(workInProgress.type) || 'Component'; + + if (!didWarnAboutStateAssignmentForComponent.has(componentName)) { + didWarnAboutStateAssignmentForComponent.add(componentName); + + error('%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName); + } + } + + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } // Invokes the mount life-cycles on a previously never rendered instance. + + + function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) { + { + checkClassInstance(workInProgress, ctor, newProps); + } + + var instance = workInProgress.stateNode; + instance.props = newProps; + instance.state = workInProgress.memoizedState; + instance.refs = emptyRefsObject; + initializeUpdateQueue(workInProgress); + var contextType = ctor.contextType; + + if (typeof contextType === 'object' && contextType !== null) { + instance.context = readContext(contextType); + } else { + var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + instance.context = getMaskedContext(workInProgress, unmaskedContext); + } + + { + if (instance.state === newProps) { + var componentName = getComponentName(ctor) || 'Component'; + + if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) { + didWarnAboutDirectlyAssigningPropsToState.add(componentName); + + error('%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName); + } + } + + if (workInProgress.mode & StrictMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance); + } + + { + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance); + } + } + + processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime); + instance.state = workInProgress.memoizedState; + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + + if (typeof getDerivedStateFromProps === 'function') { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + instance.state = workInProgress.memoizedState; + } // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. + + + if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) { + callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's + // process them now. + + processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime); + instance.state = workInProgress.memoizedState; + } + + if (typeof instance.componentDidMount === 'function') { + workInProgress.effectTag |= Update; + } + } + + function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) { + var instance = workInProgress.stateNode; + var oldProps = workInProgress.memoizedProps; + instance.props = oldProps; + var oldContext = instance.context; + var contextType = ctor.contextType; + var nextContext = emptyContextObject; + + if (typeof contextType === 'object' && contextType !== null) { + nextContext = readContext(contextType); + } else { + var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext); + } + + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what + // ever the previously attempted to render - not the "current". However, + // during componentDidUpdate we pass the "current" props. + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) { + if (oldProps !== newProps || oldContext !== nextContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext); + } + } + + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime); + newState = workInProgress.memoizedState; + + if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. + if (typeof instance.componentDidMount === 'function') { + workInProgress.effectTag |= Update; + } + + return false; + } + + if (typeof getDerivedStateFromProps === 'function') { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext); + + if (shouldUpdate) { + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) { + startPhaseTimer(workInProgress, 'componentWillMount'); + + if (typeof instance.componentWillMount === 'function') { + instance.componentWillMount(); + } + + if (typeof instance.UNSAFE_componentWillMount === 'function') { + instance.UNSAFE_componentWillMount(); + } + + stopPhaseTimer(); + } + + if (typeof instance.componentDidMount === 'function') { + workInProgress.effectTag |= Update; + } + } else { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. + if (typeof instance.componentDidMount === 'function') { + workInProgress.effectTag |= Update; + } // If shouldComponentUpdate returned false, we should still update the + // memoized state to indicate that this work can be reused. + + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } // Update the existing instance's state, props, and context pointers even + // if shouldComponentUpdate returns false. + + + instance.props = newProps; + instance.state = newState; + instance.context = nextContext; + return shouldUpdate; + } // Invokes the update life-cycles and returns false if it shouldn't rerender. + + + function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) { + var instance = workInProgress.stateNode; + cloneUpdateQueue(current, workInProgress); + var oldProps = workInProgress.memoizedProps; + instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps); + var oldContext = instance.context; + var contextType = ctor.contextType; + var nextContext = emptyContextObject; + + if (typeof contextType === 'object' && contextType !== null) { + nextContext = readContext(contextType); + } else { + var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); + nextContext = getMaskedContext(workInProgress, nextUnmaskedContext); + } + + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what + // ever the previously attempted to render - not the "current". However, + // during componentDidUpdate we pass the "current" props. + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. + + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) { + if (oldProps !== newProps || oldContext !== nextContext) { + callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext); + } + } + + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress.memoizedState; + var newState = instance.state = oldState; + processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime); + newState = workInProgress.memoizedState; + + if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. + if (typeof instance.componentDidUpdate === 'function') { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Update; + } + } + + if (typeof instance.getSnapshotBeforeUpdate === 'function') { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Snapshot; + } + } + + return false; + } + + if (typeof getDerivedStateFromProps === 'function') { + applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps); + newState = workInProgress.memoizedState; + } + + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext); + + if (shouldUpdate) { + // In order to support react-lifecycles-compat polyfilled components, + // Unsafe lifecycles should not be invoked for components using the new APIs. + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) { + startPhaseTimer(workInProgress, 'componentWillUpdate'); + + if (typeof instance.componentWillUpdate === 'function') { + instance.componentWillUpdate(newProps, newState, nextContext); + } + + if (typeof instance.UNSAFE_componentWillUpdate === 'function') { + instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext); + } + + stopPhaseTimer(); + } + + if (typeof instance.componentDidUpdate === 'function') { + workInProgress.effectTag |= Update; + } + + if (typeof instance.getSnapshotBeforeUpdate === 'function') { + workInProgress.effectTag |= Snapshot; + } + } else { + // If an update was already in progress, we should schedule an Update + // effect even though we're bailing out, so that cWU/cDU are called. + if (typeof instance.componentDidUpdate === 'function') { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Update; + } + } + + if (typeof instance.getSnapshotBeforeUpdate === 'function') { + if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { + workInProgress.effectTag |= Snapshot; + } + } // If shouldComponentUpdate returned false, we should still update the + // memoized props/state to indicate that this work can be reused. + + + workInProgress.memoizedProps = newProps; + workInProgress.memoizedState = newState; + } // Update the existing instance's state, props, and context pointers even + // if shouldComponentUpdate returns false. + + + instance.props = newProps; + instance.state = newState; + instance.context = nextContext; + return shouldUpdate; + } + + var didWarnAboutMaps; + var didWarnAboutGenerators; + var didWarnAboutStringRefs; + var ownerHasKeyUseWarning; + var ownerHasFunctionTypeWarning; + + var warnForMissingKey = function (child) {}; + + { + didWarnAboutMaps = false; + didWarnAboutGenerators = false; + didWarnAboutStringRefs = {}; + /** + * Warn if there's no key explicitly set on dynamic arrays of children or + * object keys are not valid. This allows us to keep track of children between + * updates. + */ + + ownerHasKeyUseWarning = {}; + ownerHasFunctionTypeWarning = {}; + + warnForMissingKey = function (child) { + if (child === null || typeof child !== 'object') { + return; + } + + if (!child._store || child._store.validated || child.key != null) { + return; + } + + if (!(typeof child._store === 'object')) { + { + throw Error( "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + child._store.validated = true; + var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev(); + + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + + error('Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.'); + }; + } + + var isArray$1 = Array.isArray; + + function coerceRef(returnFiber, current, element) { + var mixedRef = element.ref; + + if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') { + { + // TODO: Clean this up once we turn on the string ref warning for + // everyone, because the strict mode case will no longer be relevant + if ((returnFiber.mode & StrictMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs + // because these cannot be automatically converted to an arrow function + // using a codemod. Therefore, we don't have to warn about string refs again. + !(element._owner && element._self && element._owner.stateNode !== element._self)) { + var componentName = getComponentName(returnFiber.type) || 'Component'; + + if (!didWarnAboutStringRefs[componentName]) { + { + error('A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref%s', mixedRef, getStackByFiberInDevAndProd(returnFiber)); + } + + didWarnAboutStringRefs[componentName] = true; + } + } + } + + if (element._owner) { + var owner = element._owner; + var inst; + + if (owner) { + var ownerFiber = owner; + + if (!(ownerFiber.tag === ClassComponent)) { + { + throw Error( "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref" ); + } + } + + inst = ownerFiber.stateNode; + } + + if (!inst) { + { + throw Error( "Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue." ); + } + } + + var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref + + if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) { + return current.ref; + } + + var ref = function (value) { + var refs = inst.refs; + + if (refs === emptyRefsObject) { + // This is a lazy pooled frozen object, so we need to initialize. + refs = inst.refs = {}; + } + + if (value === null) { + delete refs[stringRef]; + } else { + refs[stringRef] = value; + } + }; + + ref._stringRef = stringRef; + return ref; + } else { + if (!(typeof mixedRef === 'string')) { + { + throw Error( "Expected ref to be a function, a string, an object returned by React.createRef(), or null." ); + } + } + + if (!element._owner) { + { + throw Error( "Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information." ); + } + } + } + } + + return mixedRef; + } + + function throwOnInvalidObjectType(returnFiber, newChild) { + if (returnFiber.type !== 'textarea') { + var addendum = ''; + + { + addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev(); + } + + { + { + throw Error( "Objects are not valid as a React child (found: " + (Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild) + ")." + addendum ); + } + } + } + } + + function warnOnFunctionType() { + { + var currentComponentErrorInfo = 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.' + getCurrentFiberStackInDev(); + + if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) { + return; + } + + ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true; + + error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.'); + } + } // This wrapper function exists because I expect to clone the code in each path + // to be able to optimize each path individually by branching early. This needs + // a compiler or we can do it manually. Helpers that don't need this branching + // live outside of this function. + + + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (!shouldTrackSideEffects) { + // Noop. + return; + } // Deletions are added in reversed order so we add it to the front. + // At this point, the return fiber's effect list is empty except for + // deletions, so we can just append the deletion to the list. The remaining + // effects aren't added until the complete phase. Once we implement + // resuming, this may not be true. + + + var last = returnFiber.lastEffect; + + if (last !== null) { + last.nextEffect = childToDelete; + returnFiber.lastEffect = childToDelete; + } else { + returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; + } + + childToDelete.nextEffect = null; + childToDelete.effectTag = Deletion; + } + + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) { + // Noop. + return null; + } // TODO: For the shouldClone case, this could be micro-optimized a bit by + // assuming that after the first child we've already added everything. + + + var childToDelete = currentFirstChild; + + while (childToDelete !== null) { + deleteChild(returnFiber, childToDelete); + childToDelete = childToDelete.sibling; + } + + return null; + } + + function mapRemainingChildren(returnFiber, currentFirstChild) { + // Add the remaining children to a temporary map so that we can find them by + // keys quickly. Implicit (null) keys get added to this set with their index + // instead. + var existingChildren = new Map(); + var existingChild = currentFirstChild; + + while (existingChild !== null) { + if (existingChild.key !== null) { + existingChildren.set(existingChild.key, existingChild); + } else { + existingChildren.set(existingChild.index, existingChild); + } + + existingChild = existingChild.sibling; + } + + return existingChildren; + } + + function useFiber(fiber, pendingProps) { + // We currently set sibling to null and index to 0 here because it is easy + // to forget to do before returning it. E.g. for the single child case. + var clone = createWorkInProgress(fiber, pendingProps); + clone.index = 0; + clone.sibling = null; + return clone; + } + + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + + if (!shouldTrackSideEffects) { + // Noop. + return lastPlacedIndex; + } + + var current = newFiber.alternate; + + if (current !== null) { + var oldIndex = current.index; + + if (oldIndex < lastPlacedIndex) { + // This is a move. + newFiber.effectTag = Placement; + return lastPlacedIndex; + } else { + // This item can stay in place. + return oldIndex; + } + } else { + // This is an insertion. + newFiber.effectTag = Placement; + return lastPlacedIndex; + } + } + + function placeSingleChild(newFiber) { + // This is simpler for the single child case. We only need to do a + // placement for inserting new children. + if (shouldTrackSideEffects && newFiber.alternate === null) { + newFiber.effectTag = Placement; + } + + return newFiber; + } + + function updateTextNode(returnFiber, current, textContent, expirationTime) { + if (current === null || current.tag !== HostText) { + // Insert + var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } else { + // Update + var existing = useFiber(current, textContent); + existing.return = returnFiber; + return existing; + } + } + + function updateElement(returnFiber, current, element, expirationTime) { + if (current !== null) { + if (current.elementType === element.type || ( // Keep this check inline so it only runs on the false path: + isCompatibleFamilyForHotReloading(current, element) )) { + // Move based on index + var existing = useFiber(current, element.props); + existing.ref = coerceRef(returnFiber, current, element); + existing.return = returnFiber; + + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + + return existing; + } + } // Insert + + + var created = createFiberFromElement(element, returnFiber.mode, expirationTime); + created.ref = coerceRef(returnFiber, current, element); + created.return = returnFiber; + return created; + } + + function updatePortal(returnFiber, current, portal, expirationTime) { + if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { + // Insert + var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } else { + // Update + var existing = useFiber(current, portal.children || []); + existing.return = returnFiber; + return existing; + } + } + + function updateFragment(returnFiber, current, fragment, expirationTime, key) { + if (current === null || current.tag !== Fragment) { + // Insert + var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key); + created.return = returnFiber; + return created; + } else { + // Update + var existing = useFiber(current, fragment); + existing.return = returnFiber; + return existing; + } + } + + function createChild(returnFiber, newChild, expirationTime) { + if (typeof newChild === 'string' || typeof newChild === 'number') { + // Text nodes don't have keys. If the previous node is implicitly keyed + // we can continue to replace it without aborting even if it is not a text + // node. + var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } + + if (typeof newChild === 'object' && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime); + + _created.ref = coerceRef(returnFiber, null, newChild); + _created.return = returnFiber; + return _created; + } + + case REACT_PORTAL_TYPE: + { + var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); + + _created2.return = returnFiber; + return _created2; + } + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) { + var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null); + + _created3.return = returnFiber; + return _created3; + } + + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === 'function') { + warnOnFunctionType(); + } + } + + return null; + } + + function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { + // Update the fiber if the keys match, otherwise return null. + var key = oldFiber !== null ? oldFiber.key : null; + + if (typeof newChild === 'string' || typeof newChild === 'number') { + // Text nodes don't have keys. If the previous node is implicitly keyed + // we can continue to replace it without aborting even if it is not a text + // node. + if (key !== null) { + return null; + } + + return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime); + } + + if (typeof newChild === 'object' && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + if (newChild.key === key) { + if (newChild.type === REACT_FRAGMENT_TYPE) { + return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key); + } + + return updateElement(returnFiber, oldFiber, newChild, expirationTime); + } else { + return null; + } + } + + case REACT_PORTAL_TYPE: + { + if (newChild.key === key) { + return updatePortal(returnFiber, oldFiber, newChild, expirationTime); + } else { + return null; + } + } + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) { + if (key !== null) { + return null; + } + + return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); + } + + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === 'function') { + warnOnFunctionType(); + } + } + + return null; + } + + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { + if (typeof newChild === 'string' || typeof newChild === 'number') { + // Text nodes don't have keys, so we neither have to check the old nor + // new node for the key. If both are text nodes, they match. + var matchedFiber = existingChildren.get(newIdx) || null; + return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime); + } + + if (typeof newChild === 'object' && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + { + var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + + if (newChild.type === REACT_FRAGMENT_TYPE) { + return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key); + } + + return updateElement(returnFiber, _matchedFiber, newChild, expirationTime); + } + + case REACT_PORTAL_TYPE: + { + var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + + return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime); + } + } + + if (isArray$1(newChild) || getIteratorFn(newChild)) { + var _matchedFiber3 = existingChildren.get(newIdx) || null; + + return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null); + } + + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === 'function') { + warnOnFunctionType(); + } + } + + return null; + } + /** + * Warns if there is a duplicate or missing key + */ + + + function warnOnInvalidKey(child, knownKeys) { + { + if (typeof child !== 'object' || child === null) { + return knownKeys; + } + + switch (child.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + warnForMissingKey(child); + var key = child.key; + + if (typeof key !== 'string') { + break; + } + + if (knownKeys === null) { + knownKeys = new Set(); + knownKeys.add(key); + break; + } + + if (!knownKeys.has(key)) { + knownKeys.add(key); + break; + } + + error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key); + + break; + } + } + + return knownKeys; + } + + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { + // This algorithm can't optimize by searching from both ends since we + // don't have backpointers on fibers. I'm trying to see how far we can get + // with that model. If it ends up not being worth the tradeoffs, we can + // add it later. + // Even with a two ended optimization, we'd want to optimize for the case + // where there are few changes and brute force the comparison instead of + // going for the Map. It'd like to explore hitting that path first in + // forward-only mode and only go for the Map once we notice that we need + // lots of look ahead. This doesn't handle reversal as well as two ended + // search but that's unusual. Besides, for the two ended optimization to + // work on Iterables, we'd need to copy the whole set. + // In this first iteration, we'll just live with hitting the bad case + // (adding everything to a Map) in for every insert/move. + // If you change this code, also update reconcileChildrenIterator() which + // uses the same algorithm. + { + // First, validate keys. + var knownKeys = null; + + for (var i = 0; i < newChildren.length; i++) { + var child = newChildren[i]; + knownKeys = warnOnInvalidKey(child, knownKeys); + } + } + + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + + for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); + + if (newFiber === null) { + // TODO: This breaks on empty slots like null children. That's + // unfortunate because it triggers the slow path all the time. We need + // a better way to communicate whether this was a miss or null, + // boolean, undefined, etc. + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + + break; + } + + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + // We matched the slot, but we didn't reuse the existing fiber, so we + // need to delete the existing child. + deleteChild(returnFiber, oldFiber); + } + } + + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. + resultingFirstChild = newFiber; + } else { + // TODO: Defer siblings if we're not at the right index for this slot. + // I.e. if we had null values before, then we want to defer this + // for each null value. However, we also don't want to call updateSlot + // with the previous one. + previousNewFiber.sibling = newFiber; + } + + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + + if (newIdx === newChildren.length) { + // We've reached the end of the new children. We can delete the rest. + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + + if (oldFiber === null) { + // If we don't have any more existing children we can choose a fast path + // since the rest will all be insertions. + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime); + + if (_newFiber === null) { + continue; + } + + lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. + resultingFirstChild = _newFiber; + } else { + previousNewFiber.sibling = _newFiber; + } + + previousNewFiber = _newFiber; + } + + return resultingFirstChild; + } // Add all children to a key map for quick lookups. + + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves. + + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime); + + if (_newFiber2 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber2.alternate !== null) { + // The new fiber is a work in progress, but if there exists a + // current, that means that we reused the fiber. We need to delete + // it from the child list so that we don't add it to the deletion + // list. + existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); + } + } + + lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = _newFiber2; + } else { + previousNewFiber.sibling = _newFiber2; + } + + previousNewFiber = _newFiber2; + } + } + + if (shouldTrackSideEffects) { + // Any existing children that weren't consumed above were deleted. We need + // to add them to the deletion list. + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + + return resultingFirstChild; + } + + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { + // This is the same implementation as reconcileChildrenArray(), + // but using the iterator instead. + var iteratorFn = getIteratorFn(newChildrenIterable); + + if (!(typeof iteratorFn === 'function')) { + { + throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + { + // We don't support rendering Generators because it's a mutation. + // See https://github.com/facebook/react/issues/12995 + if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag + newChildrenIterable[Symbol.toStringTag] === 'Generator') { + if (!didWarnAboutGenerators) { + error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.'); + } + + didWarnAboutGenerators = true; + } // Warn about using Maps as children + + + if (newChildrenIterable.entries === iteratorFn) { + if (!didWarnAboutMaps) { + error('Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.'); + } + + didWarnAboutMaps = true; + } // First, validate keys. + // We'll get a different iterator later for the main pass. + + + var _newChildren = iteratorFn.call(newChildrenIterable); + + if (_newChildren) { + var knownKeys = null; + + var _step = _newChildren.next(); + + for (; !_step.done; _step = _newChildren.next()) { + var child = _step.value; + knownKeys = warnOnInvalidKey(child, knownKeys); + } + } + } + + var newChildren = iteratorFn.call(newChildrenIterable); + + if (!(newChildren != null)) { + { + throw Error( "An iterable object provided no iterator." ); + } + } + + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + var step = newChildren.next(); + + for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + + var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); + + if (newFiber === null) { + // TODO: This breaks on empty slots like null children. That's + // unfortunate because it triggers the slow path all the time. We need + // a better way to communicate whether this was a miss or null, + // boolean, undefined, etc. + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + + break; + } + + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + // We matched the slot, but we didn't reuse the existing fiber, so we + // need to delete the existing child. + deleteChild(returnFiber, oldFiber); + } + } + + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. + resultingFirstChild = newFiber; + } else { + // TODO: Defer siblings if we're not at the right index for this slot. + // I.e. if we had null values before, then we want to defer this + // for each null value. However, we also don't want to call updateSlot + // with the previous one. + previousNewFiber.sibling = newFiber; + } + + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + + if (step.done) { + // We've reached the end of the new children. We can delete the rest. + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + + if (oldFiber === null) { + // If we don't have any more existing children we can choose a fast path + // since the rest will all be insertions. + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber3 = createChild(returnFiber, step.value, expirationTime); + + if (_newFiber3 === null) { + continue; + } + + lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + // TODO: Move out of the loop. This only happens for the first run. + resultingFirstChild = _newFiber3; + } else { + previousNewFiber.sibling = _newFiber3; + } + + previousNewFiber = _newFiber3; + } + + return resultingFirstChild; + } // Add all children to a key map for quick lookups. + + + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves. + + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime); + + if (_newFiber4 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber4.alternate !== null) { + // The new fiber is a work in progress, but if there exists a + // current, that means that we reused the fiber. We need to delete + // it from the child list so that we don't add it to the deletion + // list. + existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); + } + } + + lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx); + + if (previousNewFiber === null) { + resultingFirstChild = _newFiber4; + } else { + previousNewFiber.sibling = _newFiber4; + } + + previousNewFiber = _newFiber4; + } + } + + if (shouldTrackSideEffects) { + // Any existing children that weren't consumed above were deleted. We need + // to add them to the deletion list. + existingChildren.forEach(function (child) { + return deleteChild(returnFiber, child); + }); + } + + return resultingFirstChild; + } + + function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) { + // There's no need to check for keys on text nodes since we don't have a + // way to define them. + if (currentFirstChild !== null && currentFirstChild.tag === HostText) { + // We already have an existing node so let's just update it and delete + // the rest. + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + var existing = useFiber(currentFirstChild, textContent); + existing.return = returnFiber; + return existing; + } // The existing first child is not a text node so we need to create one + // and delete the existing ones. + + + deleteRemainingChildren(returnFiber, currentFirstChild); + var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } + + function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) { + var key = element.key; + var child = currentFirstChild; + + while (child !== null) { + // TODO: If key === null and child.key === null, then this only applies to + // the first item in the list. + if (child.key === key) { + switch (child.tag) { + case Fragment: + { + if (element.type === REACT_FRAGMENT_TYPE) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, element.props.children); + existing.return = returnFiber; + + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + + return existing; + } + + break; + } + + case Block: + + // We intentionally fallthrough here if enableBlocksAPI is not on. + // eslint-disable-next-lined no-fallthrough + + default: + { + if (child.elementType === element.type || ( // Keep this check inline so it only runs on the false path: + isCompatibleFamilyForHotReloading(child, element) )) { + deleteRemainingChildren(returnFiber, child.sibling); + + var _existing3 = useFiber(child, element.props); + + _existing3.ref = coerceRef(returnFiber, child, element); + _existing3.return = returnFiber; + + { + _existing3._debugSource = element._source; + _existing3._debugOwner = element._owner; + } + + return _existing3; + } + + break; + } + } // Didn't match. + + + deleteRemainingChildren(returnFiber, child); + break; + } else { + deleteChild(returnFiber, child); + } + + child = child.sibling; + } + + if (element.type === REACT_FRAGMENT_TYPE) { + var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key); + created.return = returnFiber; + return created; + } else { + var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime); + + _created4.ref = coerceRef(returnFiber, currentFirstChild, element); + _created4.return = returnFiber; + return _created4; + } + } + + function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) { + var key = portal.key; + var child = currentFirstChild; + + while (child !== null) { + // TODO: If key === null and child.key === null, then this only applies to + // the first item in the list. + if (child.key === key) { + if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, portal.children || []); + existing.return = returnFiber; + return existing; + } else { + deleteRemainingChildren(returnFiber, child); + break; + } + } else { + deleteChild(returnFiber, child); + } + + child = child.sibling; + } + + var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); + created.return = returnFiber; + return created; + } // This API will tag the children with the side-effect of the reconciliation + // itself. They will be added to the side-effect list as we pass through the + // children and the parent. + + + function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) { + // This function is not recursive. + // If the top level item is an array, we treat it as a set of children, + // not as a fragment. Nested arrays on the other hand will be treated as + // fragment nodes. Recursion happens at the normal flow. + // Handle top level unkeyed fragments as if they were arrays. + // This leads to an ambiguity between <>{[...]}</> and <>...</>. + // We treat the ambiguous cases above the same. + var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; + + if (isUnkeyedTopLevelFragment) { + newChild = newChild.props.children; + } // Handle object types + + + var isObject = typeof newChild === 'object' && newChild !== null; + + if (isObject) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime)); + + case REACT_PORTAL_TYPE: + return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime)); + } + } + + if (typeof newChild === 'string' || typeof newChild === 'number') { + return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime)); + } + + if (isArray$1(newChild)) { + return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); + } + + if (getIteratorFn(newChild)) { + return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); + } + + if (isObject) { + throwOnInvalidObjectType(returnFiber, newChild); + } + + { + if (typeof newChild === 'function') { + warnOnFunctionType(); + } + } + + if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) { + // If the new child is undefined, and the return fiber is a composite + // component, throw an error. If Fiber return types are disabled, + // we already threw above. + switch (returnFiber.tag) { + case ClassComponent: + { + { + var instance = returnFiber.stateNode; + + if (instance.render._isMockFunction) { + // We allow auto-mocks to proceed as if they're returning null. + break; + } + } + } + // Intentionally fall through to the next case, which handles both + // functions and classes + // eslint-disable-next-lined no-fallthrough + + case FunctionComponent: + { + var Component = returnFiber.type; + + { + { + throw Error( (Component.displayName || Component.name || 'Component') + "(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null." ); + } + } + } + } + } // Remaining cases are all treated as empty. + + + return deleteRemainingChildren(returnFiber, currentFirstChild); + } + + return reconcileChildFibers; + } + + var reconcileChildFibers = ChildReconciler(true); + var mountChildFibers = ChildReconciler(false); + function cloneChildFibers(current, workInProgress) { + if (!(current === null || workInProgress.child === current.child)) { + { + throw Error( "Resuming work not yet implemented." ); + } + } + + if (workInProgress.child === null) { + return; + } + + var currentChild = workInProgress.child; + var newChild = createWorkInProgress(currentChild, currentChild.pendingProps); + workInProgress.child = newChild; + newChild.return = workInProgress; + + while (currentChild.sibling !== null) { + currentChild = currentChild.sibling; + newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps); + newChild.return = workInProgress; + } + + newChild.sibling = null; + } // Reset a workInProgress child set to prepare it for a second pass. + + function resetChildFibers(workInProgress, renderExpirationTime) { + var child = workInProgress.child; + + while (child !== null) { + resetWorkInProgress(child, renderExpirationTime); + child = child.sibling; + } + } + + var NO_CONTEXT = {}; + var contextStackCursor$1 = createCursor(NO_CONTEXT); + var contextFiberStackCursor = createCursor(NO_CONTEXT); + var rootInstanceStackCursor = createCursor(NO_CONTEXT); + + function requiredContext(c) { + if (!(c !== NO_CONTEXT)) { + { + throw Error( "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + return c; + } + + function getRootHostContainer() { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + return rootInstance; + } + + function pushHostContainer(fiber, nextRootInstance) { + // Push current root instance onto the stack; + // This allows us to reset root when portals are popped. + push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it. + // This enables us to pop only Fibers that provide unique contexts. + + push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack. + // However, we can't just call getRootHostContext() and push it because + // we'd have a different number of entries on the stack depending on + // whether getRootHostContext() throws somewhere in renderer code or not. + // So we push an empty value first. This lets us safely unwind on errors. + + push(contextStackCursor$1, NO_CONTEXT, fiber); + var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it. + + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, nextRootContext, fiber); + } + + function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + + function getHostContext() { + var context = requiredContext(contextStackCursor$1.current); + return context; + } + + function pushHostContext(fiber) { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique. + + if (context === nextContext) { + return; + } // Track the context and the Fiber that provided it. + // This enables us to pop only Fibers that provide unique contexts. + + + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, nextContext, fiber); + } + + function popHostContext(fiber) { + // Do not pop unless this Fiber provided the current context. + // pushHostContext() only pushes Fibers that provide unique contexts. + if (contextFiberStackCursor.current !== fiber) { + return; + } + + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + } + + var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is + // inherited deeply down the subtree. The upper bits only affect + // this immediate suspense boundary and gets reset each new + // boundary or suspense list. + + var SubtreeSuspenseContextMask = 1; // Subtree Flags: + // InvisibleParentSuspenseContext indicates that one of our parent Suspense + // boundaries is not currently showing visible main content. + // Either because it is already showing a fallback or is not mounted at all. + // We can use this to determine if it is desirable to trigger a fallback at + // the parent. If not, then we might need to trigger undesirable boundaries + // and/or suspend the commit to avoid hiding the parent content. + + var InvisibleParentSuspenseContext = 1; // Shallow Flags: + // ForceSuspenseFallback can be used by SuspenseList to force newly added + // items into their fallback state during one of the render passes. + + var ForceSuspenseFallback = 2; + var suspenseStackCursor = createCursor(DefaultSuspenseContext); + function hasSuspenseContext(parentContext, flag) { + return (parentContext & flag) !== 0; + } + function setDefaultShallowSuspenseContext(parentContext) { + return parentContext & SubtreeSuspenseContextMask; + } + function setShallowSuspenseContext(parentContext, shallowContext) { + return parentContext & SubtreeSuspenseContextMask | shallowContext; + } + function addSubtreeSuspenseContext(parentContext, subtreeContext) { + return parentContext | subtreeContext; + } + function pushSuspenseContext(fiber, newContext) { + push(suspenseStackCursor, newContext, fiber); + } + function popSuspenseContext(fiber) { + pop(suspenseStackCursor, fiber); + } + + function shouldCaptureSuspense(workInProgress, hasInvisibleParent) { + // If it was the primary children that just suspended, capture and render the + // fallback. Otherwise, don't capture and bubble to the next boundary. + var nextState = workInProgress.memoizedState; + + if (nextState !== null) { + if (nextState.dehydrated !== null) { + // A dehydrated boundary always captures. + return true; + } + + return false; + } + + var props = workInProgress.memoizedProps; // In order to capture, the Suspense component must have a fallback prop. + + if (props.fallback === undefined) { + return false; + } // Regular boundaries always capture. + + + if (props.unstable_avoidThisFallback !== true) { + return true; + } // If it's a boundary we should avoid, then we prefer to bubble up to the + // parent boundary if it is currently invisible. + + + if (hasInvisibleParent) { + return false; + } // If the parent is not able to handle it, we must handle it. + + + return true; + } + function findFirstSuspended(row) { + var node = row; + + while (node !== null) { + if (node.tag === SuspenseComponent) { + var state = node.memoizedState; + + if (state !== null) { + var dehydrated = state.dehydrated; + + if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) { + return node; + } + } + } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't + // keep track of whether it suspended or not. + node.memoizedProps.revealOrder !== undefined) { + var didSuspend = (node.effectTag & DidCapture) !== NoEffect; + + if (didSuspend) { + return node; + } + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === row) { + return null; + } + + while (node.sibling === null) { + if (node.return === null || node.return === row) { + return null; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + + return null; + } + + function createDeprecatedResponderListener(responder, props) { + var eventResponderListener = { + responder: responder, + props: props + }; + + { + Object.freeze(eventResponderListener); + } + + return eventResponderListener; + } + + var HasEffect = + /* */ + 1; // Represents the phase in which the effect (not the clean-up) fires. + + var Layout = + /* */ + 2; + var Passive$1 = + /* */ + 4; + + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig; + var didWarnAboutMismatchedHooksForComponent; + + { + didWarnAboutMismatchedHooksForComponent = new Set(); + } + + // These are set right before calling the component. + var renderExpirationTime = NoWork; // The work-in-progress fiber. I've named it differently to distinguish it from + // the work-in-progress hook. + + var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The + // current hook list is the list that belongs to the current fiber. The + // work-in-progress hook list is a new list that will be added to the + // work-in-progress fiber. + + var currentHook = null; + var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This + // does not get reset if we do another render pass; only when we're completely + // finished evaluating this component. This is an optimization so we know + // whether we need to clear render phase updates after a throw. + + var didScheduleRenderPhaseUpdate = false; + var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook + + var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders. + // The list stores the order of hooks used during the initial render (mount). + // Subsequent renders (updates) reference this list. + + var hookTypesDev = null; + var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore + // the dependencies for Hooks that need them (e.g. useEffect or useMemo). + // When true, such Hooks will always be "remounted". Only used during hot reload. + + var ignorePreviousDependencies = false; + + function mountHookTypesDev() { + { + var hookName = currentHookNameInDev; + + if (hookTypesDev === null) { + hookTypesDev = [hookName]; + } else { + hookTypesDev.push(hookName); + } + } + } + + function updateHookTypesDev() { + { + var hookName = currentHookNameInDev; + + if (hookTypesDev !== null) { + hookTypesUpdateIndexDev++; + + if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) { + warnOnHookMismatchInDev(hookName); + } + } + } + } + + function checkDepsAreArrayDev(deps) { + { + if (deps !== undefined && deps !== null && !Array.isArray(deps)) { + // Verify deps, but only on mount to avoid extra checks. + // It's unlikely their type would change as usually you define them inline. + error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps); + } + } + } + + function warnOnHookMismatchInDev(currentHookName) { + { + var componentName = getComponentName(currentlyRenderingFiber$1.type); + + if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { + didWarnAboutMismatchedHooksForComponent.add(componentName); + + if (hookTypesDev !== null) { + var table = ''; + var secondColumnStart = 30; + + for (var i = 0; i <= hookTypesUpdateIndexDev; i++) { + var oldHookName = hookTypesDev[i]; + var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName; + var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up + // lol @ IE not supporting String#repeat + + while (row.length < secondColumnStart) { + row += ' '; + } + + row += newHookName + '\n'; + table += row; + } + + error('React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks\n\n' + ' Previous render Next render\n' + ' ------------------------------------------------------\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table); + } + } + } + } + + function throwInvalidHookError() { + { + { + throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." ); + } + } + } + + function areHookInputsEqual(nextDeps, prevDeps) { + { + if (ignorePreviousDependencies) { + // Only true when this component is being hot reloaded. + return false; + } + } + + if (prevDeps === null) { + { + error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev); + } + + return false; + } + + { + // Don't bother comparing lengths in prod because these arrays should be + // passed inline. + if (nextDeps.length !== prevDeps.length) { + error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, "[" + prevDeps.join(', ') + "]", "[" + nextDeps.join(', ') + "]"); + } + } + + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { + if (objectIs(nextDeps[i], prevDeps[i])) { + continue; + } + + return false; + } + + return true; + } + + function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderExpirationTime) { + renderExpirationTime = nextRenderExpirationTime; + currentlyRenderingFiber$1 = workInProgress; + + { + hookTypesDev = current !== null ? current._debugHookTypes : null; + hookTypesUpdateIndexDev = -1; // Used for hot reloading: + + ignorePreviousDependencies = current !== null && current.type !== workInProgress.type; + } + + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.expirationTime = NoWork; // The following should have already been reset + // currentHook = null; + // workInProgressHook = null; + // didScheduleRenderPhaseUpdate = false; + // TODO Warn if no hooks are used at all during mount, then some are used during update. + // Currently we will identify the update render as a mount because memoizedState === null. + // This is tricky because it's valid for certain types of components (e.g. React.lazy) + // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used. + // Non-stateful hooks (e.g. context) don't get added to memoizedState, + // so memoizedState would be null during updates and mounts. + + { + if (current !== null && current.memoizedState !== null) { + ReactCurrentDispatcher.current = HooksDispatcherOnUpdateInDEV; + } else if (hookTypesDev !== null) { + // This dispatcher handles an edge case where a component is updating, + // but no stateful hooks have been used. + // We want to match the production code behavior (which will use HooksDispatcherOnMount), + // but with the extra DEV validation to ensure hooks ordering hasn't changed. + // This dispatcher does that. + ReactCurrentDispatcher.current = HooksDispatcherOnMountWithHookTypesInDEV; + } else { + ReactCurrentDispatcher.current = HooksDispatcherOnMountInDEV; + } + } + + var children = Component(props, secondArg); // Check if there was a render phase update + + if (workInProgress.expirationTime === renderExpirationTime) { + // Keep rendering in a loop for as long as render phase updates continue to + // be scheduled. Use a counter to prevent infinite loops. + var numberOfReRenders = 0; + + do { + workInProgress.expirationTime = NoWork; + + if (!(numberOfReRenders < RE_RENDER_LIMIT)) { + { + throw Error( "Too many re-renders. React limits the number of renders to prevent an infinite loop." ); + } + } + + numberOfReRenders += 1; + + { + // Even when hot reloading, allow dependencies to stabilize + // after first render to prevent infinite render phase updates. + ignorePreviousDependencies = false; + } // Start over from the beginning of the list + + + currentHook = null; + workInProgressHook = null; + workInProgress.updateQueue = null; + + { + // Also validate hook order for cascading updates. + hookTypesUpdateIndexDev = -1; + } + + ReactCurrentDispatcher.current = HooksDispatcherOnRerenderInDEV ; + children = Component(props, secondArg); + } while (workInProgress.expirationTime === renderExpirationTime); + } // We can assume the previous dispatcher is always this one, since we set it + // at the beginning of the render phase and there's no re-entrancy. + + + ReactCurrentDispatcher.current = ContextOnlyDispatcher; + + { + workInProgress._debugHookTypes = hookTypesDev; + } // This check uses currentHook so that it works the same in DEV and prod bundles. + // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles. + + + var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; + renderExpirationTime = NoWork; + currentlyRenderingFiber$1 = null; + currentHook = null; + workInProgressHook = null; + + { + currentHookNameInDev = null; + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + } + + didScheduleRenderPhaseUpdate = false; + + if (!!didRenderTooFewHooks) { + { + throw Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." ); + } + } + + return children; + } + function bailoutHooks(current, workInProgress, expirationTime) { + workInProgress.updateQueue = current.updateQueue; + workInProgress.effectTag &= ~(Passive | Update); + + if (current.expirationTime <= expirationTime) { + current.expirationTime = NoWork; + } + } + function resetHooksAfterThrow() { + // We can assume the previous dispatcher is always this one, since we set it + // at the beginning of the render phase and there's no re-entrancy. + ReactCurrentDispatcher.current = ContextOnlyDispatcher; + + if (didScheduleRenderPhaseUpdate) { + // There were render phase updates. These are only valid for this render + // phase, which we are now aborting. Remove the updates from the queues so + // they do not persist to the next render. Do not remove updates from hooks + // that weren't processed. + // + // Only reset the updates from the queue if it has a clone. If it does + // not have a clone, that means it wasn't processed, and the updates were + // scheduled before we entered the render phase. + var hook = currentlyRenderingFiber$1.memoizedState; + + while (hook !== null) { + var queue = hook.queue; + + if (queue !== null) { + queue.pending = null; + } + + hook = hook.next; + } + } + + renderExpirationTime = NoWork; + currentlyRenderingFiber$1 = null; + currentHook = null; + workInProgressHook = null; + + { + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + currentHookNameInDev = null; + } + + didScheduleRenderPhaseUpdate = false; + } + + function mountWorkInProgressHook() { + var hook = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + + if (workInProgressHook === null) { + // This is the first hook in the list + currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; + } else { + // Append to the end of the list + workInProgressHook = workInProgressHook.next = hook; + } + + return workInProgressHook; + } + + function updateWorkInProgressHook() { + // This function is used both for updates and for re-renders triggered by a + // render phase update. It assumes there is either a current hook we can + // clone, or a work-in-progress hook from a previous render pass that we can + // use as a base. When we reach the end of the base list, we must switch to + // the dispatcher used for mounts. + var nextCurrentHook; + + if (currentHook === null) { + var current = currentlyRenderingFiber$1.alternate; + + if (current !== null) { + nextCurrentHook = current.memoizedState; + } else { + nextCurrentHook = null; + } + } else { + nextCurrentHook = currentHook.next; + } + + var nextWorkInProgressHook; + + if (workInProgressHook === null) { + nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState; + } else { + nextWorkInProgressHook = workInProgressHook.next; + } + + if (nextWorkInProgressHook !== null) { + // There's already a work-in-progress. Reuse it. + workInProgressHook = nextWorkInProgressHook; + nextWorkInProgressHook = workInProgressHook.next; + currentHook = nextCurrentHook; + } else { + // Clone from the current hook. + if (!(nextCurrentHook !== null)) { + { + throw Error( "Rendered more hooks than during the previous render." ); + } + } + + currentHook = nextCurrentHook; + var newHook = { + memoizedState: currentHook.memoizedState, + baseState: currentHook.baseState, + baseQueue: currentHook.baseQueue, + queue: currentHook.queue, + next: null + }; + + if (workInProgressHook === null) { + // This is the first hook in the list. + currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; + } else { + // Append to the end of the list. + workInProgressHook = workInProgressHook.next = newHook; + } + } + + return workInProgressHook; + } + + function createFunctionComponentUpdateQueue() { + return { + lastEffect: null + }; + } + + function basicStateReducer(state, action) { + // $FlowFixMe: Flow doesn't like mixed types + return typeof action === 'function' ? action(state) : action; + } + + function mountReducer(reducer, initialArg, init) { + var hook = mountWorkInProgressHook(); + var initialState; + + if (init !== undefined) { + initialState = init(initialArg); + } else { + initialState = initialArg; + } + + hook.memoizedState = hook.baseState = initialState; + var queue = hook.queue = { + pending: null, + dispatch: null, + lastRenderedReducer: reducer, + lastRenderedState: initialState + }; + var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; + } + + function updateReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + + if (!(queue !== null)) { + { + throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." ); + } + } + + queue.lastRenderedReducer = reducer; + var current = currentHook; // The last rebase update that is NOT part of the base state. + + var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet. + + var pendingQueue = queue.pending; + + if (pendingQueue !== null) { + // We have new updates that haven't been processed yet. + // We'll add them to the base queue. + if (baseQueue !== null) { + // Merge the pending queue and the base queue. + var baseFirst = baseQueue.next; + var pendingFirst = pendingQueue.next; + baseQueue.next = pendingFirst; + pendingQueue.next = baseFirst; + } + + current.baseQueue = baseQueue = pendingQueue; + queue.pending = null; + } + + if (baseQueue !== null) { + // We have a queue to process. + var first = baseQueue.next; + var newState = current.baseState; + var newBaseState = null; + var newBaseQueueFirst = null; + var newBaseQueueLast = null; + var update = first; + + do { + var updateExpirationTime = update.expirationTime; + + if (updateExpirationTime < renderExpirationTime) { + // Priority is insufficient. Skip this update. If this is the first + // skipped update, the previous update/state is the new base + // update/state. + var clone = { + expirationTime: update.expirationTime, + suspenseConfig: update.suspenseConfig, + action: update.action, + eagerReducer: update.eagerReducer, + eagerState: update.eagerState, + next: null + }; + + if (newBaseQueueLast === null) { + newBaseQueueFirst = newBaseQueueLast = clone; + newBaseState = newState; + } else { + newBaseQueueLast = newBaseQueueLast.next = clone; + } // Update the remaining priority in the queue. + + + if (updateExpirationTime > currentlyRenderingFiber$1.expirationTime) { + currentlyRenderingFiber$1.expirationTime = updateExpirationTime; + markUnprocessedUpdateTime(updateExpirationTime); + } + } else { + // This update does have sufficient priority. + if (newBaseQueueLast !== null) { + var _clone = { + expirationTime: Sync, + // This update is going to be committed so we never want uncommit it. + suspenseConfig: update.suspenseConfig, + action: update.action, + eagerReducer: update.eagerReducer, + eagerState: update.eagerState, + next: null + }; + newBaseQueueLast = newBaseQueueLast.next = _clone; + } // Mark the event time of this update as relevant to this render pass. + // TODO: This should ideally use the true event time of this update rather than + // its priority which is a derived and not reverseable value. + // TODO: We should skip this update if it was already committed but currently + // we have no way of detecting the difference between a committed and suspended + // update here. + + + markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update. + + if (update.eagerReducer === reducer) { + // If this update was processed eagerly, and its reducer matches the + // current reducer, we can use the eagerly computed state. + newState = update.eagerState; + } else { + var action = update.action; + newState = reducer(newState, action); + } + } + + update = update.next; + } while (update !== null && update !== first); + + if (newBaseQueueLast === null) { + newBaseState = newState; + } else { + newBaseQueueLast.next = newBaseQueueFirst; + } // Mark that the fiber performed work, but only if the new state is + // different from the current state. + + + if (!objectIs(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + + hook.memoizedState = newState; + hook.baseState = newBaseState; + hook.baseQueue = newBaseQueueLast; + queue.lastRenderedState = newState; + } + + var dispatch = queue.dispatch; + return [hook.memoizedState, dispatch]; + } + + function rerenderReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + + if (!(queue !== null)) { + { + throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." ); + } + } + + queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous + // work-in-progress hook. + + var dispatch = queue.dispatch; + var lastRenderPhaseUpdate = queue.pending; + var newState = hook.memoizedState; + + if (lastRenderPhaseUpdate !== null) { + // The queue doesn't persist past this render pass. + queue.pending = null; + var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next; + var update = firstRenderPhaseUpdate; + + do { + // Process this render phase update. We don't have to check the + // priority because it will always be the same as the current + // render's. + var action = update.action; + newState = reducer(newState, action); + update = update.next; + } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is + // different from the current state. + + + if (!objectIs(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + + hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to + // the base state unless the queue is empty. + // TODO: Not sure if this is the desired semantics, but it's what we + // do for gDSFP. I can't remember why. + + if (hook.baseQueue === null) { + hook.baseState = newState; + } + + queue.lastRenderedState = newState; + } + + return [newState, dispatch]; + } + + function mountState(initialState) { + var hook = mountWorkInProgressHook(); + + if (typeof initialState === 'function') { + // $FlowFixMe: Flow doesn't like mixed types + initialState = initialState(); + } + + hook.memoizedState = hook.baseState = initialState; + var queue = hook.queue = { + pending: null, + dispatch: null, + lastRenderedReducer: basicStateReducer, + lastRenderedState: initialState + }; + var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; + } + + function updateState(initialState) { + return updateReducer(basicStateReducer); + } + + function rerenderState(initialState) { + return rerenderReducer(basicStateReducer); + } + + function pushEffect(tag, create, destroy, deps) { + var effect = { + tag: tag, + create: create, + destroy: destroy, + deps: deps, + // Circular + next: null + }; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; + + if (componentUpdateQueue === null) { + componentUpdateQueue = createFunctionComponentUpdateQueue(); + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var lastEffect = componentUpdateQueue.lastEffect; + + if (lastEffect === null) { + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var firstEffect = lastEffect.next; + lastEffect.next = effect; + effect.next = firstEffect; + componentUpdateQueue.lastEffect = effect; + } + } + + return effect; + } + + function mountRef(initialValue) { + var hook = mountWorkInProgressHook(); + var ref = { + current: initialValue + }; + + { + Object.seal(ref); + } + + hook.memoizedState = ref; + return ref; + } + + function updateRef(initialValue) { + var hook = updateWorkInProgressHook(); + return hook.memoizedState; + } + + function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + currentlyRenderingFiber$1.effectTag |= fiberEffectTag; + hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, undefined, nextDeps); + } + + function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var destroy = undefined; + + if (currentHook !== null) { + var prevEffect = currentHook.memoizedState; + destroy = prevEffect.destroy; + + if (nextDeps !== null) { + var prevDeps = prevEffect.deps; + + if (areHookInputsEqual(nextDeps, prevDeps)) { + pushEffect(hookEffectTag, create, destroy, nextDeps); + return; + } + } + } + + currentlyRenderingFiber$1.effectTag |= fiberEffectTag; + hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, destroy, nextDeps); + } + + function mountEffect(create, deps) { + { + // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests + if ('undefined' !== typeof jest) { + warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1); + } + } + + return mountEffectImpl(Update | Passive, Passive$1, create, deps); + } + + function updateEffect(create, deps) { + { + // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests + if ('undefined' !== typeof jest) { + warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1); + } + } + + return updateEffectImpl(Update | Passive, Passive$1, create, deps); + } + + function mountLayoutEffect(create, deps) { + return mountEffectImpl(Update, Layout, create, deps); + } + + function updateLayoutEffect(create, deps) { + return updateEffectImpl(Update, Layout, create, deps); + } + + function imperativeHandleEffect(create, ref) { + if (typeof ref === 'function') { + var refCallback = ref; + + var _inst = create(); + + refCallback(_inst); + return function () { + refCallback(null); + }; + } else if (ref !== null && ref !== undefined) { + var refObject = ref; + + { + if (!refObject.hasOwnProperty('current')) { + error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}'); + } + } + + var _inst2 = create(); + + refObject.current = _inst2; + return function () { + refObject.current = null; + }; + } + } + + function mountImperativeHandle(ref, create, deps) { + { + if (typeof create !== 'function') { + error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null'); + } + } // TODO: If deps are provided, should we skip comparing the ref itself? + + + var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; + return mountEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); + } + + function updateImperativeHandle(ref, create, deps) { + { + if (typeof create !== 'function') { + error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null'); + } + } // TODO: If deps are provided, should we skip comparing the ref itself? + + + var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; + return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps); + } + + function mountDebugValue(value, formatterFn) {// This hook is normally a no-op. + // The react-debug-hooks package injects its own implementation + // so that e.g. DevTools can display custom hook values. + } + + var updateDebugValue = mountDebugValue; + + function mountCallback(callback, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + hook.memoizedState = [callback, nextDeps]; + return callback; + } + + function updateCallback(callback, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var prevState = hook.memoizedState; + + if (prevState !== null) { + if (nextDeps !== null) { + var prevDeps = prevState[1]; + + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + + hook.memoizedState = [callback, nextDeps]; + return callback; + } + + function mountMemo(nextCreate, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + + function updateMemo(nextCreate, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var prevState = hook.memoizedState; + + if (prevState !== null) { + // Assume these are defined. If they're not, areHookInputsEqual will warn. + if (nextDeps !== null) { + var prevDeps = prevState[1]; + + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + + function mountDeferredValue(value, config) { + var _mountState = mountState(value), + prevValue = _mountState[0], + setValue = _mountState[1]; + + mountEffect(function () { + var previousConfig = ReactCurrentBatchConfig$1.suspense; + ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config; + + try { + setValue(value); + } finally { + ReactCurrentBatchConfig$1.suspense = previousConfig; + } + }, [value, config]); + return prevValue; + } + + function updateDeferredValue(value, config) { + var _updateState = updateState(), + prevValue = _updateState[0], + setValue = _updateState[1]; + + updateEffect(function () { + var previousConfig = ReactCurrentBatchConfig$1.suspense; + ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config; + + try { + setValue(value); + } finally { + ReactCurrentBatchConfig$1.suspense = previousConfig; + } + }, [value, config]); + return prevValue; + } + + function rerenderDeferredValue(value, config) { + var _rerenderState = rerenderState(), + prevValue = _rerenderState[0], + setValue = _rerenderState[1]; + + updateEffect(function () { + var previousConfig = ReactCurrentBatchConfig$1.suspense; + ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config; + + try { + setValue(value); + } finally { + ReactCurrentBatchConfig$1.suspense = previousConfig; + } + }, [value, config]); + return prevValue; + } + + function startTransition(setPending, config, callback) { + var priorityLevel = getCurrentPriorityLevel(); + runWithPriority$1(priorityLevel < UserBlockingPriority$1 ? UserBlockingPriority$1 : priorityLevel, function () { + setPending(true); + }); + runWithPriority$1(priorityLevel > NormalPriority ? NormalPriority : priorityLevel, function () { + var previousConfig = ReactCurrentBatchConfig$1.suspense; + ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config; + + try { + setPending(false); + callback(); + } finally { + ReactCurrentBatchConfig$1.suspense = previousConfig; + } + }); + } + + function mountTransition(config) { + var _mountState2 = mountState(false), + isPending = _mountState2[0], + setPending = _mountState2[1]; + + var start = mountCallback(startTransition.bind(null, setPending, config), [setPending, config]); + return [start, isPending]; + } + + function updateTransition(config) { + var _updateState2 = updateState(), + isPending = _updateState2[0], + setPending = _updateState2[1]; + + var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]); + return [start, isPending]; + } + + function rerenderTransition(config) { + var _rerenderState2 = rerenderState(), + isPending = _rerenderState2[0], + setPending = _rerenderState2[1]; + + var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]); + return [start, isPending]; + } + + function dispatchAction(fiber, queue, action) { + { + if (typeof arguments[3] === 'function') { + error("State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().'); + } + } + + var currentTime = requestCurrentTimeForUpdate(); + var suspenseConfig = requestCurrentSuspenseConfig(); + var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig); + var update = { + expirationTime: expirationTime, + suspenseConfig: suspenseConfig, + action: action, + eagerReducer: null, + eagerState: null, + next: null + }; + + { + update.priority = getCurrentPriorityLevel(); + } // Append the update to the end of the list. + + + var pending = queue.pending; + + if (pending === null) { + // This is the first update. Create a circular list. + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + + queue.pending = update; + var alternate = fiber.alternate; + + if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) { + // This is a render phase update. Stash it in a lazily-created map of + // queue -> linked list of updates. After this render pass, we'll restart + // and apply the stashed updates on top of the work-in-progress hook. + didScheduleRenderPhaseUpdate = true; + update.expirationTime = renderExpirationTime; + currentlyRenderingFiber$1.expirationTime = renderExpirationTime; + } else { + if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) { + // The queue is currently empty, which means we can eagerly compute the + // next state before entering the render phase. If the new state is the + // same as the current state, we may be able to bail out entirely. + var lastRenderedReducer = queue.lastRenderedReducer; + + if (lastRenderedReducer !== null) { + var prevDispatcher; + + { + prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + } + + try { + var currentState = queue.lastRenderedState; + var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute + // it, on the update object. If the reducer hasn't changed by the + // time we enter the render phase, then the eager state can be used + // without calling the reducer again. + + update.eagerReducer = lastRenderedReducer; + update.eagerState = eagerState; + + if (objectIs(eagerState, currentState)) { + // Fast path. We can bail out without scheduling React to re-render. + // It's still possible that we'll need to rebase this update later, + // if the component re-renders for a different reason and by that + // time the reducer has changed. + return; + } + } catch (error) {// Suppress the error. It will throw again in the render phase. + } finally { + { + ReactCurrentDispatcher.current = prevDispatcher; + } + } + } + } + + { + // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests + if ('undefined' !== typeof jest) { + warnIfNotScopedWithMatchingAct(fiber); + warnIfNotCurrentlyActingUpdatesInDev(fiber); + } + } + + scheduleWork(fiber, expirationTime); + } + } + + var ContextOnlyDispatcher = { + readContext: readContext, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useResponder: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError + }; + var HooksDispatcherOnMountInDEV = null; + var HooksDispatcherOnMountWithHookTypesInDEV = null; + var HooksDispatcherOnUpdateInDEV = null; + var HooksDispatcherOnRerenderInDEV = null; + var InvalidNestedHooksDispatcherOnMountInDEV = null; + var InvalidNestedHooksDispatcherOnUpdateInDEV = null; + var InvalidNestedHooksDispatcherOnRerenderInDEV = null; + + { + var warnInvalidContextAccess = function () { + error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().'); + }; + + var warnInvalidHookAccess = function () { + error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks'); + }; + + HooksDispatcherOnMountInDEV = { + readContext: function (context, observedBits) { + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + mountHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV; + + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV; + + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV; + + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + mountHookTypesDev(); + return mountDebugValue(); + }, + useResponder: function (responder, props) { + currentHookNameInDev = 'useResponder'; + mountHookTypesDev(); + return createDeprecatedResponderListener(responder, props); + }, + useDeferredValue: function (value, config) { + currentHookNameInDev = 'useDeferredValue'; + mountHookTypesDev(); + return mountDeferredValue(value, config); + }, + useTransition: function (config) { + currentHookNameInDev = 'useTransition'; + mountHookTypesDev(); + return mountTransition(config); + } + }; + HooksDispatcherOnMountWithHookTypesInDEV = { + readContext: function (context, observedBits) { + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + updateHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + updateHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + updateHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + updateHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + updateHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV; + + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV; + + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + updateHookTypesDev(); + return mountRef(initialValue); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV; + + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + updateHookTypesDev(); + return mountDebugValue(); + }, + useResponder: function (responder, props) { + currentHookNameInDev = 'useResponder'; + updateHookTypesDev(); + return createDeprecatedResponderListener(responder, props); + }, + useDeferredValue: function (value, config) { + currentHookNameInDev = 'useDeferredValue'; + updateHookTypesDev(); + return mountDeferredValue(value, config); + }, + useTransition: function (config) { + currentHookNameInDev = 'useTransition'; + updateHookTypesDev(); + return mountTransition(config); + } + }; + HooksDispatcherOnUpdateInDEV = { + readContext: function (context, observedBits) { + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + updateHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + updateHookTypesDev(); + return updateRef(); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + updateHookTypesDev(); + return updateDebugValue(); + }, + useResponder: function (responder, props) { + currentHookNameInDev = 'useResponder'; + updateHookTypesDev(); + return createDeprecatedResponderListener(responder, props); + }, + useDeferredValue: function (value, config) { + currentHookNameInDev = 'useDeferredValue'; + updateHookTypesDev(); + return updateDeferredValue(value, config); + }, + useTransition: function (config) { + currentHookNameInDev = 'useTransition'; + updateHookTypesDev(); + return updateTransition(config); + } + }; + HooksDispatcherOnRerenderInDEV = { + readContext: function (context, observedBits) { + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + updateHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + + try { + return rerenderReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + updateHookTypesDev(); + return updateRef(); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + + try { + return rerenderState(initialState); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + updateHookTypesDev(); + return updateDebugValue(); + }, + useResponder: function (responder, props) { + currentHookNameInDev = 'useResponder'; + updateHookTypesDev(); + return createDeprecatedResponderListener(responder, props); + }, + useDeferredValue: function (value, config) { + currentHookNameInDev = 'useDeferredValue'; + updateHookTypesDev(); + return rerenderDeferredValue(value, config); + }, + useTransition: function (config) { + currentHookNameInDev = 'useTransition'; + updateHookTypesDev(); + return rerenderTransition(config); + } + }; + InvalidNestedHooksDispatcherOnMountInDEV = { + readContext: function (context, observedBits) { + warnInvalidContextAccess(); + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV; + + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV; + + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV; + + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDebugValue(); + }, + useResponder: function (responder, props) { + currentHookNameInDev = 'useResponder'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return createDeprecatedResponderListener(responder, props); + }, + useDeferredValue: function (value, config) { + currentHookNameInDev = 'useDeferredValue'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDeferredValue(value, config); + }, + useTransition: function (config) { + currentHookNameInDev = 'useTransition'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountTransition(config); + } + }; + InvalidNestedHooksDispatcherOnUpdateInDEV = { + readContext: function (context, observedBits) { + warnInvalidContextAccess(); + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(); + }, + useResponder: function (responder, props) { + currentHookNameInDev = 'useResponder'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return createDeprecatedResponderListener(responder, props); + }, + useDeferredValue: function (value, config) { + currentHookNameInDev = 'useDeferredValue'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDeferredValue(value, config); + }, + useTransition: function (config) { + currentHookNameInDev = 'useTransition'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateTransition(config); + } + }; + InvalidNestedHooksDispatcherOnRerenderInDEV = { + readContext: function (context, observedBits) { + warnInvalidContextAccess(); + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + + try { + return rerenderReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + + try { + return rerenderState(initialState); + } finally { + ReactCurrentDispatcher.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(); + }, + useResponder: function (responder, props) { + currentHookNameInDev = 'useResponder'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return createDeprecatedResponderListener(responder, props); + }, + useDeferredValue: function (value, config) { + currentHookNameInDev = 'useDeferredValue'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderDeferredValue(value, config); + }, + useTransition: function (config) { + currentHookNameInDev = 'useTransition'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderTransition(config); + } + }; + } + + var now$1 = unstable_now; + var commitTime = 0; + var profilerStartTime = -1; + + function getCommitTime() { + return commitTime; + } + + function recordCommitTime() { + + commitTime = now$1(); + } + + function startProfilerTimer(fiber) { + + profilerStartTime = now$1(); + + if (fiber.actualStartTime < 0) { + fiber.actualStartTime = now$1(); + } + } + + function stopProfilerTimerIfRunning(fiber) { + + profilerStartTime = -1; + } + + function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { + + if (profilerStartTime >= 0) { + var elapsedTime = now$1() - profilerStartTime; + fiber.actualDuration += elapsedTime; + + if (overrideBaseTime) { + fiber.selfBaseDuration = elapsedTime; + } + + profilerStartTime = -1; + } + } + + // This may have been an insertion or a hydration. + + var hydrationParentFiber = null; + var nextHydratableInstance = null; + var isHydrating = false; + + function enterHydrationState(fiber) { + + var parentInstance = fiber.stateNode.containerInfo; + nextHydratableInstance = getFirstHydratableChild(parentInstance); + hydrationParentFiber = fiber; + isHydrating = true; + return true; + } + + function deleteHydratableInstance(returnFiber, instance) { + { + switch (returnFiber.tag) { + case HostRoot: + didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance); + break; + + case HostComponent: + didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance); + break; + } + } + + var childToDelete = createFiberFromHostInstanceForDeletion(); + childToDelete.stateNode = instance; + childToDelete.return = returnFiber; + childToDelete.effectTag = Deletion; // This might seem like it belongs on progressedFirstDeletion. However, + // these children are not part of the reconciliation list of children. + // Even if we abort and rereconcile the children, that will try to hydrate + // again and the nodes are still in the host tree so these will be + // recreated. + + if (returnFiber.lastEffect !== null) { + returnFiber.lastEffect.nextEffect = childToDelete; + returnFiber.lastEffect = childToDelete; + } else { + returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; + } + } + + function insertNonHydratedInstance(returnFiber, fiber) { + fiber.effectTag = fiber.effectTag & ~Hydrating | Placement; + + { + switch (returnFiber.tag) { + case HostRoot: + { + var parentContainer = returnFiber.stateNode.containerInfo; + + switch (fiber.tag) { + case HostComponent: + var type = fiber.type; + var props = fiber.pendingProps; + didNotFindHydratableContainerInstance(parentContainer, type); + break; + + case HostText: + var text = fiber.pendingProps; + didNotFindHydratableContainerTextInstance(parentContainer, text); + break; + } + + break; + } + + case HostComponent: + { + var parentType = returnFiber.type; + var parentProps = returnFiber.memoizedProps; + var parentInstance = returnFiber.stateNode; + + switch (fiber.tag) { + case HostComponent: + var _type = fiber.type; + var _props = fiber.pendingProps; + didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type); + break; + + case HostText: + var _text = fiber.pendingProps; + didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text); + break; + + case SuspenseComponent: + didNotFindHydratableSuspenseInstance(parentType, parentProps); + break; + } + + break; + } + + default: + return; + } + } + } + + function tryHydrate(fiber, nextInstance) { + switch (fiber.tag) { + case HostComponent: + { + var type = fiber.type; + var props = fiber.pendingProps; + var instance = canHydrateInstance(nextInstance, type); + + if (instance !== null) { + fiber.stateNode = instance; + return true; + } + + return false; + } + + case HostText: + { + var text = fiber.pendingProps; + var textInstance = canHydrateTextInstance(nextInstance, text); + + if (textInstance !== null) { + fiber.stateNode = textInstance; + return true; + } + + return false; + } + + case SuspenseComponent: + { + + return false; + } + + default: + return false; + } + } + + function tryToClaimNextHydratableInstance(fiber) { + if (!isHydrating) { + return; + } + + var nextInstance = nextHydratableInstance; + + if (!nextInstance) { + // Nothing to hydrate. Make it an insertion. + insertNonHydratedInstance(hydrationParentFiber, fiber); + isHydrating = false; + hydrationParentFiber = fiber; + return; + } + + var firstAttemptedInstance = nextInstance; + + if (!tryHydrate(fiber, nextInstance)) { + // If we can't hydrate this instance let's try the next one. + // We use this as a heuristic. It's based on intuition and not data so it + // might be flawed or unnecessary. + nextInstance = getNextHydratableSibling(firstAttemptedInstance); + + if (!nextInstance || !tryHydrate(fiber, nextInstance)) { + // Nothing to hydrate. Make it an insertion. + insertNonHydratedInstance(hydrationParentFiber, fiber); + isHydrating = false; + hydrationParentFiber = fiber; + return; + } // We matched the next one, we'll now assume that the first one was + // superfluous and we'll delete it. Since we can't eagerly delete it + // we'll have to schedule a deletion. To do that, this node needs a dummy + // fiber associated with it. + + + deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance); + } + + hydrationParentFiber = fiber; + nextHydratableInstance = getFirstHydratableChild(nextInstance); + } + + function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { + + var instance = fiber.stateNode; + var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); // TODO: Type this specific to this type of component. + + fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there + // is a new ref we mark this as an update. + + if (updatePayload !== null) { + return true; + } + + return false; + } + + function prepareToHydrateHostTextInstance(fiber) { + + var textInstance = fiber.stateNode; + var textContent = fiber.memoizedProps; + var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber); + + { + if (shouldUpdate) { + // We assume that prepareToHydrateHostTextInstance is called in a context where the + // hydration parent is the parent host component of this host text. + var returnFiber = hydrationParentFiber; + + if (returnFiber !== null) { + switch (returnFiber.tag) { + case HostRoot: + { + var parentContainer = returnFiber.stateNode.containerInfo; + didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent); + break; + } + + case HostComponent: + { + var parentType = returnFiber.type; + var parentProps = returnFiber.memoizedProps; + var parentInstance = returnFiber.stateNode; + didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent); + break; + } + } + } + } + } + + return shouldUpdate; + } + + function skipPastDehydratedSuspenseInstance(fiber) { + + var suspenseState = fiber.memoizedState; + var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null; + + if (!suspenseInstance) { + { + throw Error( "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance); + } + + function popToNextHostParent(fiber) { + var parent = fiber.return; + + while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) { + parent = parent.return; + } + + hydrationParentFiber = parent; + } + + function popHydrationState(fiber) { + + if (fiber !== hydrationParentFiber) { + // We're deeper than the current hydration context, inside an inserted + // tree. + return false; + } + + if (!isHydrating) { + // If we're not currently hydrating but we're in a hydration context, then + // we were an insertion and now need to pop up reenter hydration of our + // siblings. + popToNextHostParent(fiber); + isHydrating = true; + return false; + } + + var type = fiber.type; // If we have any remaining hydratable nodes, we need to delete them now. + // We only do this deeper than head and body since they tend to have random + // other nodes in them. We also ignore components with pure text content in + // side of them. + // TODO: Better heuristic. + + if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) { + var nextInstance = nextHydratableInstance; + + while (nextInstance) { + deleteHydratableInstance(fiber, nextInstance); + nextInstance = getNextHydratableSibling(nextInstance); + } + } + + popToNextHostParent(fiber); + + if (fiber.tag === SuspenseComponent) { + nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber); + } else { + nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null; + } + + return true; + } + + function resetHydrationState() { + + hydrationParentFiber = null; + nextHydratableInstance = null; + isHydrating = false; + } + + var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; + var didReceiveUpdate = false; + var didWarnAboutBadClass; + var didWarnAboutModulePatternComponent; + var didWarnAboutContextTypeOnFunctionComponent; + var didWarnAboutGetDerivedStateOnFunctionComponent; + var didWarnAboutFunctionRefs; + var didWarnAboutReassigningProps; + var didWarnAboutRevealOrder; + var didWarnAboutTailOptions; + + { + didWarnAboutBadClass = {}; + didWarnAboutModulePatternComponent = {}; + didWarnAboutContextTypeOnFunctionComponent = {}; + didWarnAboutGetDerivedStateOnFunctionComponent = {}; + didWarnAboutFunctionRefs = {}; + didWarnAboutReassigningProps = false; + didWarnAboutRevealOrder = {}; + didWarnAboutTailOptions = {}; + } + + function reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime) { + if (current === null) { + // If this is a fresh new component that hasn't been rendered yet, we + // won't update its child set by applying minimal side-effects. Instead, + // we will add them all to the child before it gets rendered. That means + // we can optimize this reconciliation pass by not tracking side-effects. + workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + } else { + // If the current child is the same as the work in progress, it means that + // we haven't yet started any work on these children. Therefore, we use + // the clone algorithm to create a copy of all the current children. + // If we had any progressed work already, that is invalid at this point so + // let's throw it out. + workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); + } + } + + function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime) { + // This function is fork of reconcileChildren. It's used in cases where we + // want to reconcile without matching against the existing set. This has the + // effect of all current children being unmounted; even if the type and key + // are the same, the old child is unmounted and a new child is created. + // + // To do this, we're going to go through the reconcile algorithm twice. In + // the first pass, we schedule a deletion for all the current children by + // passing null. + workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderExpirationTime); // In the second pass, we mount the new children. The trick here is that we + // pass null in place of where we usually pass the current child set. This has + // the effect of remounting all children regardless of whether their + // identities match. + + workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + } + + function updateForwardRef(current, workInProgress, Component, nextProps, renderExpirationTime) { + // TODO: current can be non-null here even if the component + // hasn't yet mounted. This happens after the first render suspends. + // We'll need to figure out if this is fine or can cause issues. + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var innerPropTypes = Component.propTypes; + + if (innerPropTypes) { + checkPropTypes_1(innerPropTypes, nextProps, // Resolved props + 'prop', getComponentName(Component), getCurrentFiberStackInDev); + } + } + } + + var render = Component.render; + var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent + + var nextChildren; + prepareToReadContext(workInProgress, renderExpirationTime); + + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime); + + if ( workInProgress.mode & StrictMode) { + // Only double-render components with Hooks + if (workInProgress.memoizedState !== null) { + nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime); + } + } + + setIsRendering(false); + } + + if (current !== null && !didReceiveUpdate) { + bailoutHooks(current, workInProgress, renderExpirationTime); + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime); + } // React DevTools reads this flag. + + + workInProgress.effectTag |= PerformedWork; + reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime); + return workInProgress.child; + } + + function updateMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) { + if (current === null) { + var type = Component.type; + + if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either. + Component.defaultProps === undefined) { + var resolvedType = type; + + { + resolvedType = resolveFunctionForHotReloading(type); + } // If this is a plain function component without default props, + // and with only the default shallow comparison, we upgrade it + // to a SimpleMemoComponent to allow fast path updates. + + + workInProgress.tag = SimpleMemoComponent; + workInProgress.type = resolvedType; + + { + validateFunctionComponentInDev(workInProgress, type); + } + + return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime); + } + + { + var innerPropTypes = type.propTypes; + + if (innerPropTypes) { + // Inner memo component props aren't currently validated in createElement. + // We could move it there, but we'd still need this for lazy code path. + checkPropTypes_1(innerPropTypes, nextProps, // Resolved props + 'prop', getComponentName(type), getCurrentFiberStackInDev); + } + } + + var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime); + child.ref = workInProgress.ref; + child.return = workInProgress; + workInProgress.child = child; + return child; + } + + { + var _type = Component.type; + var _innerPropTypes = _type.propTypes; + + if (_innerPropTypes) { + // Inner memo component props aren't currently validated in createElement. + // We could move it there, but we'd still need this for lazy code path. + checkPropTypes_1(_innerPropTypes, nextProps, // Resolved props + 'prop', getComponentName(_type), getCurrentFiberStackInDev); + } + } + + var currentChild = current.child; // This is always exactly one child + + if (updateExpirationTime < renderExpirationTime) { + // This will be the props with resolved defaultProps, + // unlike current.memoizedProps which will be the unresolved ones. + var prevProps = currentChild.memoizedProps; // Default to shallow comparison + + var compare = Component.compare; + compare = compare !== null ? compare : shallowEqual; + + if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime); + } + } // React DevTools reads this flag. + + + workInProgress.effectTag |= PerformedWork; + var newChild = createWorkInProgress(currentChild, nextProps); + newChild.ref = workInProgress.ref; + newChild.return = workInProgress; + workInProgress.child = newChild; + return newChild; + } + + function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) { + // TODO: current can be non-null here even if the component + // hasn't yet mounted. This happens when the inner render suspends. + // We'll need to figure out if this is fine or can cause issues. + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var outerMemoType = workInProgress.elementType; + + if (outerMemoType.$$typeof === REACT_LAZY_TYPE) { + // We warn when you define propTypes on lazy() + // so let's just skip over it to find memo() outer wrapper. + // Inner props for memo are validated later. + outerMemoType = refineResolvedLazyComponent(outerMemoType); + } + + var outerPropTypes = outerMemoType && outerMemoType.propTypes; + + if (outerPropTypes) { + checkPropTypes_1(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps) + 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev); + } // Inner propTypes will be validated in the function component path. + + } + } + + if (current !== null) { + var prevProps = current.memoizedProps; + + if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload. + workInProgress.type === current.type )) { + didReceiveUpdate = false; + + if (updateExpirationTime < renderExpirationTime) { + // The pending update priority was cleared at the beginning of + // beginWork. We're about to bail out, but there might be additional + // updates at a lower priority. Usually, the priority level of the + // remaining updates is accumlated during the evaluation of the + // component (i.e. when processing the update queue). But since since + // we're bailing out early *without* evaluating the component, we need + // to account for it here, too. Reset to the value of the current fiber. + // NOTE: This only applies to SimpleMemoComponent, not MemoComponent, + // because a MemoComponent fiber does not have hooks or an update queue; + // rather, it wraps around an inner component, which may or may not + // contains hooks. + // TODO: Move the reset at in beginWork out of the common path so that + // this is no longer necessary. + workInProgress.expirationTime = current.expirationTime; + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime); + } + } + } + + return updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime); + } + + function updateFragment(current, workInProgress, renderExpirationTime) { + var nextChildren = workInProgress.pendingProps; + reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime); + return workInProgress.child; + } + + function updateMode(current, workInProgress, renderExpirationTime) { + var nextChildren = workInProgress.pendingProps.children; + reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime); + return workInProgress.child; + } + + function updateProfiler(current, workInProgress, renderExpirationTime) { + { + workInProgress.effectTag |= Update; + } + + var nextProps = workInProgress.pendingProps; + var nextChildren = nextProps.children; + reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime); + return workInProgress.child; + } + + function markRef(current, workInProgress) { + var ref = workInProgress.ref; + + if (current === null && ref !== null || current !== null && current.ref !== ref) { + // Schedule a Ref effect + workInProgress.effectTag |= Ref; + } + } + + function updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime) { + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var innerPropTypes = Component.propTypes; + + if (innerPropTypes) { + checkPropTypes_1(innerPropTypes, nextProps, // Resolved props + 'prop', getComponentName(Component), getCurrentFiberStackInDev); + } + } + } + + var context; + + { + var unmaskedContext = getUnmaskedContext(workInProgress, Component, true); + context = getMaskedContext(workInProgress, unmaskedContext); + } + + var nextChildren; + prepareToReadContext(workInProgress, renderExpirationTime); + + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime); + + if ( workInProgress.mode & StrictMode) { + // Only double-render components with Hooks + if (workInProgress.memoizedState !== null) { + nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime); + } + } + + setIsRendering(false); + } + + if (current !== null && !didReceiveUpdate) { + bailoutHooks(current, workInProgress, renderExpirationTime); + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime); + } // React DevTools reads this flag. + + + workInProgress.effectTag |= PerformedWork; + reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime); + return workInProgress.child; + } + + function updateClassComponent(current, workInProgress, Component, nextProps, renderExpirationTime) { + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var innerPropTypes = Component.propTypes; + + if (innerPropTypes) { + checkPropTypes_1(innerPropTypes, nextProps, // Resolved props + 'prop', getComponentName(Component), getCurrentFiberStackInDev); + } + } + } // Push context providers early to prevent context stack mismatches. + // During mounting we don't know the child context yet as the instance doesn't exist. + // We will invalidate the child context in finishClassComponent() right after rendering. + + + var hasContext; + + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + + prepareToReadContext(workInProgress, renderExpirationTime); + var instance = workInProgress.stateNode; + var shouldUpdate; + + if (instance === null) { + if (current !== null) { + // A class component without an instance only mounts if it suspended + // inside a non-concurrent tree, in an inconsistent state. We want to + // treat it like a new mount, even though an empty version of it already + // committed. Disconnect the alternate pointers. + current.alternate = null; + workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect + + workInProgress.effectTag |= Placement; + } // In the initial pass we might need to construct the instance. + + + constructClassInstance(workInProgress, Component, nextProps); + mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime); + shouldUpdate = true; + } else if (current === null) { + // In a resume, we'll already have an instance we can reuse. + shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime); + } else { + shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderExpirationTime); + } + + var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime); + + { + var inst = workInProgress.stateNode; + + if (inst.props !== nextProps) { + if (!didWarnAboutReassigningProps) { + error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component'); + } + + didWarnAboutReassigningProps = true; + } + } + + return nextUnitOfWork; + } + + function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) { + // Refs should update even if shouldComponentUpdate returns false + markRef(current, workInProgress); + var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect; + + if (!shouldUpdate && !didCaptureError) { + // Context providers should defer to sCU for rendering + if (hasContext) { + invalidateContextProvider(workInProgress, Component, false); + } + + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime); + } + + var instance = workInProgress.stateNode; // Rerender + + ReactCurrentOwner$1.current = workInProgress; + var nextChildren; + + if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') { + // If we captured an error, but getDerivedStateFromError is not defined, + // unmount all the children. componentDidCatch will schedule an update to + // re-render a fallback. This is temporary until we migrate everyone to + // the new API. + // TODO: Warn in a future release. + nextChildren = null; + + { + stopProfilerTimerIfRunning(); + } + } else { + { + setIsRendering(true); + nextChildren = instance.render(); + + if ( workInProgress.mode & StrictMode) { + instance.render(); + } + + setIsRendering(false); + } + } // React DevTools reads this flag. + + + workInProgress.effectTag |= PerformedWork; + + if (current !== null && didCaptureError) { + // If we're recovering from an error, reconcile without reusing any of + // the existing children. Conceptually, the normal children and the children + // that are shown on error are two different sets, so we shouldn't reuse + // normal children even if their identities match. + forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime); + } else { + reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime); + } // Memoize state using the values we just used to render. + // TODO: Restructure so we never read values from the instance. + + + workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it. + + if (hasContext) { + invalidateContextProvider(workInProgress, Component, true); + } + + return workInProgress.child; + } + + function pushHostRootContext(workInProgress) { + var root = workInProgress.stateNode; + + if (root.pendingContext) { + pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context); + } else if (root.context) { + // Should always be set + pushTopLevelContextObject(workInProgress, root.context, false); + } + + pushHostContainer(workInProgress, root.containerInfo); + } + + function updateHostRoot(current, workInProgress, renderExpirationTime) { + pushHostRootContext(workInProgress); + var updateQueue = workInProgress.updateQueue; + + if (!(current !== null && updateQueue !== null)) { + { + throw Error( "If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + var nextProps = workInProgress.pendingProps; + var prevState = workInProgress.memoizedState; + var prevChildren = prevState !== null ? prevState.element : null; + cloneUpdateQueue(current, workInProgress); + processUpdateQueue(workInProgress, nextProps, null, renderExpirationTime); + var nextState = workInProgress.memoizedState; // Caution: React DevTools currently depends on this property + // being called "element". + + var nextChildren = nextState.element; + + if (nextChildren === prevChildren) { + // If the state is the same as before, that's a bailout because we had + // no work that expires at this time. + resetHydrationState(); + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime); + } + + var root = workInProgress.stateNode; + + if (root.hydrate && enterHydrationState(workInProgress)) { + // If we don't have any current children this might be the first pass. + // We always try to hydrate. If this isn't a hydration pass there won't + // be any children to hydrate which is effectively the same thing as + // not hydrating. + var child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + workInProgress.child = child; + var node = child; + + while (node) { + // Mark each child as hydrating. This is a fast path to know whether this + // tree is part of a hydrating tree. This is used to determine if a child + // node has fully mounted yet, and for scheduling event replaying. + // Conceptually this is similar to Placement in that a new subtree is + // inserted into the React tree here. It just happens to not need DOM + // mutations because it already exists. + node.effectTag = node.effectTag & ~Placement | Hydrating; + node = node.sibling; + } + } else { + // Otherwise reset hydration state in case we aborted and resumed another + // root. + reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime); + resetHydrationState(); + } + + return workInProgress.child; + } + + function updateHostComponent(current, workInProgress, renderExpirationTime) { + pushHostContext(workInProgress); + + if (current === null) { + tryToClaimNextHydratableInstance(workInProgress); + } + + var type = workInProgress.type; + var nextProps = workInProgress.pendingProps; + var prevProps = current !== null ? current.memoizedProps : null; + var nextChildren = nextProps.children; + var isDirectTextChild = shouldSetTextContent(type, nextProps); + + if (isDirectTextChild) { + // We special case a direct text child of a host node. This is a common + // case. We won't handle it as a reified child. We will instead handle + // this in the host environment that also has access to this prop. That + // avoids allocating another HostText fiber and traversing it. + nextChildren = null; + } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) { + // If we're switching from a direct text child to a normal child, or to + // empty, we need to schedule the text content to be reset. + workInProgress.effectTag |= ContentReset; + } + + markRef(current, workInProgress); // Check the host config to see if the children are offscreen/hidden. + + if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) { + { + markSpawnedWork(Never); + } // Schedule this fiber to re-render at offscreen priority. Then bailout. + + + workInProgress.expirationTime = workInProgress.childExpirationTime = Never; + return null; + } + + reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime); + return workInProgress.child; + } + + function updateHostText(current, workInProgress) { + if (current === null) { + tryToClaimNextHydratableInstance(workInProgress); + } // Nothing to do here. This is terminal. We'll do the completion step + // immediately after. + + + return null; + } + + function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) { + if (_current !== null) { + // A lazy component only mounts if it suspended inside a non- + // concurrent tree, in an inconsistent state. We want to treat it like + // a new mount, even though an empty version of it already committed. + // Disconnect the alternate pointers. + _current.alternate = null; + workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect + + workInProgress.effectTag |= Placement; + } + + var props = workInProgress.pendingProps; // We can't start a User Timing measurement with correct label yet. + // Cancel and resume right after we know the tag. + + cancelWorkTimer(workInProgress); + var Component = readLazyComponentType(elementType); // Store the unwrapped component in the type. + + workInProgress.type = Component; + var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component); + startWorkTimer(workInProgress); + var resolvedProps = resolveDefaultProps(Component, props); + var child; + + switch (resolvedTag) { + case FunctionComponent: + { + { + validateFunctionComponentInDev(workInProgress, Component); + workInProgress.type = Component = resolveFunctionForHotReloading(Component); + } + + child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime); + return child; + } + + case ClassComponent: + { + { + workInProgress.type = Component = resolveClassForHotReloading(Component); + } + + child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime); + return child; + } + + case ForwardRef: + { + { + workInProgress.type = Component = resolveForwardRefForHotReloading(Component); + } + + child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime); + return child; + } + + case MemoComponent: + { + { + if (workInProgress.type !== workInProgress.elementType) { + var outerPropTypes = Component.propTypes; + + if (outerPropTypes) { + checkPropTypes_1(outerPropTypes, resolvedProps, // Resolved for outer only + 'prop', getComponentName(Component), getCurrentFiberStackInDev); + } + } + } + + child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too + updateExpirationTime, renderExpirationTime); + return child; + } + } + + var hint = ''; + + { + if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) { + hint = ' Did you wrap a component in React.lazy() more than once?'; + } + } // This message intentionally doesn't mention ForwardRef or MemoComponent + // because the fact that it's a separate type of work is an + // implementation detail. + + + { + { + throw Error( "Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function." + hint ); + } + } + } + + function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) { + if (_current !== null) { + // An incomplete component only mounts if it suspended inside a non- + // concurrent tree, in an inconsistent state. We want to treat it like + // a new mount, even though an empty version of it already committed. + // Disconnect the alternate pointers. + _current.alternate = null; + workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect + + workInProgress.effectTag |= Placement; + } // Promote the fiber to a class and try rendering again. + + + workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent` + // Push context providers early to prevent context stack mismatches. + // During mounting we don't know the child context yet as the instance doesn't exist. + // We will invalidate the child context in finishClassComponent() right after rendering. + + var hasContext; + + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + + prepareToReadContext(workInProgress, renderExpirationTime); + constructClassInstance(workInProgress, Component, nextProps); + mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime); + return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime); + } + + function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) { + if (_current !== null) { + // An indeterminate component only mounts if it suspended inside a non- + // concurrent tree, in an inconsistent state. We want to treat it like + // a new mount, even though an empty version of it already committed. + // Disconnect the alternate pointers. + _current.alternate = null; + workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect + + workInProgress.effectTag |= Placement; + } + + var props = workInProgress.pendingProps; + var context; + + { + var unmaskedContext = getUnmaskedContext(workInProgress, Component, false); + context = getMaskedContext(workInProgress, unmaskedContext); + } + + prepareToReadContext(workInProgress, renderExpirationTime); + var value; + + { + if (Component.prototype && typeof Component.prototype.render === 'function') { + var componentName = getComponentName(Component) || 'Unknown'; + + if (!didWarnAboutBadClass[componentName]) { + error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName); + + didWarnAboutBadClass[componentName] = true; + } + } + + if (workInProgress.mode & StrictMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); + } + + setIsRendering(true); + ReactCurrentOwner$1.current = workInProgress; + value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime); + setIsRendering(false); + } // React DevTools reads this flag. + + + workInProgress.effectTag |= PerformedWork; + + if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) { + { + var _componentName = getComponentName(Component) || 'Unknown'; + + if (!didWarnAboutModulePatternComponent[_componentName]) { + error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName); + + didWarnAboutModulePatternComponent[_componentName] = true; + } + } // Proceed under the assumption that this is a class instance + + + workInProgress.tag = ClassComponent; // Throw out any hooks that were used. + + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches. + // During mounting we don't know the child context yet as the instance doesn't exist. + // We will invalidate the child context in finishClassComponent() right after rendering. + + var hasContext = false; + + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress); + } else { + hasContext = false; + } + + workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null; + initializeUpdateQueue(workInProgress); + var getDerivedStateFromProps = Component.getDerivedStateFromProps; + + if (typeof getDerivedStateFromProps === 'function') { + applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props); + } + + adoptClassInstance(workInProgress, value); + mountClassInstance(workInProgress, Component, props, renderExpirationTime); + return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime); + } else { + // Proceed under the assumption that this is a function component + workInProgress.tag = FunctionComponent; + + { + + if ( workInProgress.mode & StrictMode) { + // Only double-render components with Hooks + if (workInProgress.memoizedState !== null) { + value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime); + } + } + } + + reconcileChildren(null, workInProgress, value, renderExpirationTime); + + { + validateFunctionComponentInDev(workInProgress, Component); + } + + return workInProgress.child; + } + } + + function validateFunctionComponentInDev(workInProgress, Component) { + { + if (Component) { + if (Component.childContextTypes) { + error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component'); + } + } + + if (workInProgress.ref !== null) { + var info = ''; + var ownerName = getCurrentFiberOwnerNameInDevOrNull(); + + if (ownerName) { + info += '\n\nCheck the render method of `' + ownerName + '`.'; + } + + var warningKey = ownerName || workInProgress._debugID || ''; + var debugSource = workInProgress._debugSource; + + if (debugSource) { + warningKey = debugSource.fileName + ':' + debugSource.lineNumber; + } + + if (!didWarnAboutFunctionRefs[warningKey]) { + didWarnAboutFunctionRefs[warningKey] = true; + + error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info); + } + } + + if (typeof Component.getDerivedStateFromProps === 'function') { + var _componentName2 = getComponentName(Component) || 'Unknown'; + + if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) { + error('%s: Function components do not support getDerivedStateFromProps.', _componentName2); + + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true; + } + } + + if (typeof Component.contextType === 'object' && Component.contextType !== null) { + var _componentName3 = getComponentName(Component) || 'Unknown'; + + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) { + error('%s: Function components do not support contextType.', _componentName3); + + didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true; + } + } + } + } + + var SUSPENDED_MARKER = { + dehydrated: null, + retryTime: NoWork + }; + + function shouldRemainOnFallback(suspenseContext, current, workInProgress) { + // If the context is telling us that we should show a fallback, and we're not + // already showing content, then we should show the fallback instead. + return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current === null || current.memoizedState !== null); + } + + function updateSuspenseComponent(current, workInProgress, renderExpirationTime) { + var mode = workInProgress.mode; + var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend. + + { + if (shouldSuspend(workInProgress)) { + workInProgress.effectTag |= DidCapture; + } + } + + var suspenseContext = suspenseStackCursor.current; + var nextDidTimeout = false; + var didSuspend = (workInProgress.effectTag & DidCapture) !== NoEffect; + + if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) { + // Something in this boundary's subtree already suspended. Switch to + // rendering the fallback children. + nextDidTimeout = true; + workInProgress.effectTag &= ~DidCapture; + } else { + // Attempting the main content + if (current === null || current.memoizedState !== null) { + // This is a new mount or this boundary is already showing a fallback state. + // Mark this subtree context as having at least one invisible parent that could + // handle the fallback state. + // Boundaries without fallbacks or should be avoided are not considered since + // they cannot handle preferred fallback states. + if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) { + suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext); + } + } + } + + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + pushSuspenseContext(workInProgress, suspenseContext); // This next part is a bit confusing. If the children timeout, we switch to + // showing the fallback children in place of the "primary" children. + // However, we don't want to delete the primary children because then their + // state will be lost (both the React state and the host state, e.g. + // uncontrolled form inputs). Instead we keep them mounted and hide them. + // Both the fallback children AND the primary children are rendered at the + // same time. Once the primary children are un-suspended, we can delete + // the fallback children — don't need to preserve their state. + // + // The two sets of children are siblings in the host environment, but + // semantically, for purposes of reconciliation, they are two separate sets. + // So we store them using two fragment fibers. + // + // However, we want to avoid allocating extra fibers for every placeholder. + // They're only necessary when the children time out, because that's the + // only time when both sets are mounted. + // + // So, the extra fragment fibers are only used if the children time out. + // Otherwise, we render the primary children directly. This requires some + // custom reconciliation logic to preserve the state of the primary + // children. It's essentially a very basic form of re-parenting. + + if (current === null) { + // If we're currently hydrating, try to hydrate this boundary. + // But only if this has a fallback. + if (nextProps.fallback !== undefined) { + tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component. + } // This is the initial mount. This branch is pretty simple because there's + // no previous state that needs to be preserved. + + + if (nextDidTimeout) { + // Mount separate fragments for primary and fallback children. + var nextFallbackChildren = nextProps.fallback; + var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null); + primaryChildFragment.return = workInProgress; + + if ((workInProgress.mode & BlockingMode) === NoMode) { + // Outside of blocking mode, we commit the effects from the + // partially completed, timed-out tree, too. + var progressedState = workInProgress.memoizedState; + var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child; + primaryChildFragment.child = progressedPrimaryChild; + var progressedChild = progressedPrimaryChild; + + while (progressedChild !== null) { + progressedChild.return = primaryChildFragment; + progressedChild = progressedChild.sibling; + } + } + + var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null); + fallbackChildFragment.return = workInProgress; + primaryChildFragment.sibling = fallbackChildFragment; // Skip the primary children, and continue working on the + // fallback children. + + workInProgress.memoizedState = SUSPENDED_MARKER; + workInProgress.child = primaryChildFragment; + return fallbackChildFragment; + } else { + // Mount the primary children without an intermediate fragment fiber. + var nextPrimaryChildren = nextProps.children; + workInProgress.memoizedState = null; + return workInProgress.child = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime); + } + } else { + // This is an update. This branch is more complicated because we need to + // ensure the state of the primary children is preserved. + var prevState = current.memoizedState; + + if (prevState !== null) { + // wrapped in a fragment fiber. + + + var currentPrimaryChildFragment = current.child; + var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; + + if (nextDidTimeout) { + // Still timed out. Reuse the current primary children by cloning + // its fragment. We're going to skip over these entirely. + var _nextFallbackChildren2 = nextProps.fallback; + + var _primaryChildFragment2 = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps); + + _primaryChildFragment2.return = workInProgress; + + if ((workInProgress.mode & BlockingMode) === NoMode) { + // Outside of blocking mode, we commit the effects from the + // partially completed, timed-out tree, too. + var _progressedState = workInProgress.memoizedState; + + var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child; + + if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) { + _primaryChildFragment2.child = _progressedPrimaryChild; + var _progressedChild2 = _progressedPrimaryChild; + + while (_progressedChild2 !== null) { + _progressedChild2.return = _primaryChildFragment2; + _progressedChild2 = _progressedChild2.sibling; + } + } + } // Because primaryChildFragment is a new fiber that we're inserting as the + // parent of a new tree, we need to set its treeBaseDuration. + + + if ( workInProgress.mode & ProfileMode) { + // treeBaseDuration is the sum of all the child tree base durations. + var _treeBaseDuration = 0; + var _hiddenChild = _primaryChildFragment2.child; + + while (_hiddenChild !== null) { + _treeBaseDuration += _hiddenChild.treeBaseDuration; + _hiddenChild = _hiddenChild.sibling; + } + + _primaryChildFragment2.treeBaseDuration = _treeBaseDuration; + } // Clone the fallback child fragment, too. These we'll continue + // working on. + + + var _fallbackChildFragment2 = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren2); + + _fallbackChildFragment2.return = workInProgress; + _primaryChildFragment2.sibling = _fallbackChildFragment2; + _primaryChildFragment2.childExpirationTime = NoWork; // Skip the primary children, and continue working on the + // fallback children. + + workInProgress.memoizedState = SUSPENDED_MARKER; + workInProgress.child = _primaryChildFragment2; + return _fallbackChildFragment2; + } else { + // No longer suspended. Switch back to showing the primary children, + // and remove the intermediate fragment fiber. + var _nextPrimaryChildren = nextProps.children; + var currentPrimaryChild = currentPrimaryChildFragment.child; + var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime); // If this render doesn't suspend, we need to delete the fallback + // children. Wait until the complete phase, after we've confirmed the + // fallback is no longer needed. + // TODO: Would it be better to store the fallback fragment on + // the stateNode? + // Continue rendering the children, like we normally do. + + workInProgress.memoizedState = null; + return workInProgress.child = primaryChild; + } + } else { + // The current tree has not already timed out. That means the primary + // children are not wrapped in a fragment fiber. + var _currentPrimaryChild = current.child; + + if (nextDidTimeout) { + // Timed out. Wrap the children in a fragment fiber to keep them + // separate from the fallback children. + var _nextFallbackChildren3 = nextProps.fallback; + + var _primaryChildFragment3 = createFiberFromFragment( // It shouldn't matter what the pending props are because we aren't + // going to render this fragment. + null, mode, NoWork, null); + + _primaryChildFragment3.return = workInProgress; + _primaryChildFragment3.child = _currentPrimaryChild; + + if (_currentPrimaryChild !== null) { + _currentPrimaryChild.return = _primaryChildFragment3; + } // Even though we're creating a new fiber, there are no new children, + // because we're reusing an already mounted tree. So we don't need to + // schedule a placement. + // primaryChildFragment.effectTag |= Placement; + + + if ((workInProgress.mode & BlockingMode) === NoMode) { + // Outside of blocking mode, we commit the effects from the + // partially completed, timed-out tree, too. + var _progressedState2 = workInProgress.memoizedState; + + var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child; + + _primaryChildFragment3.child = _progressedPrimaryChild2; + var _progressedChild3 = _progressedPrimaryChild2; + + while (_progressedChild3 !== null) { + _progressedChild3.return = _primaryChildFragment3; + _progressedChild3 = _progressedChild3.sibling; + } + } // Because primaryChildFragment is a new fiber that we're inserting as the + // parent of a new tree, we need to set its treeBaseDuration. + + + if ( workInProgress.mode & ProfileMode) { + // treeBaseDuration is the sum of all the child tree base durations. + var _treeBaseDuration2 = 0; + var _hiddenChild2 = _primaryChildFragment3.child; + + while (_hiddenChild2 !== null) { + _treeBaseDuration2 += _hiddenChild2.treeBaseDuration; + _hiddenChild2 = _hiddenChild2.sibling; + } + + _primaryChildFragment3.treeBaseDuration = _treeBaseDuration2; + } // Create a fragment from the fallback children, too. + + + var _fallbackChildFragment3 = createFiberFromFragment(_nextFallbackChildren3, mode, renderExpirationTime, null); + + _fallbackChildFragment3.return = workInProgress; + _primaryChildFragment3.sibling = _fallbackChildFragment3; + _fallbackChildFragment3.effectTag |= Placement; + _primaryChildFragment3.childExpirationTime = NoWork; // Skip the primary children, and continue working on the + // fallback children. + + workInProgress.memoizedState = SUSPENDED_MARKER; + workInProgress.child = _primaryChildFragment3; + return _fallbackChildFragment3; + } else { + // Still haven't timed out. Continue rendering the children, like we + // normally do. + workInProgress.memoizedState = null; + var _nextPrimaryChildren2 = nextProps.children; + return workInProgress.child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime); + } + } + } + } + + function scheduleWorkOnFiber(fiber, renderExpirationTime) { + if (fiber.expirationTime < renderExpirationTime) { + fiber.expirationTime = renderExpirationTime; + } + + var alternate = fiber.alternate; + + if (alternate !== null && alternate.expirationTime < renderExpirationTime) { + alternate.expirationTime = renderExpirationTime; + } + + scheduleWorkOnParentPath(fiber.return, renderExpirationTime); + } + + function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) { + // Mark any Suspense boundaries with fallbacks as having work to do. + // If they were previously forced into fallbacks, they may now be able + // to unblock. + var node = firstChild; + + while (node !== null) { + if (node.tag === SuspenseComponent) { + var state = node.memoizedState; + + if (state !== null) { + scheduleWorkOnFiber(node, renderExpirationTime); + } + } else if (node.tag === SuspenseListComponent) { + // If the tail is hidden there might not be an Suspense boundaries + // to schedule work on. In this case we have to schedule it on the + // list itself. + // We don't have to traverse to the children of the list since + // the list will propagate the change when it rerenders. + scheduleWorkOnFiber(node, renderExpirationTime); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === workInProgress) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function findLastContentRow(firstChild) { + // This is going to find the last row among these children that is already + // showing content on the screen, as opposed to being in fallback state or + // new. If a row has multiple Suspense boundaries, any of them being in the + // fallback state, counts as the whole row being in a fallback state. + // Note that the "rows" will be workInProgress, but any nested children + // will still be current since we haven't rendered them yet. The mounted + // order may not be the same as the new order. We use the new order. + var row = firstChild; + var lastContentRow = null; + + while (row !== null) { + var currentRow = row.alternate; // New rows can't be content rows. + + if (currentRow !== null && findFirstSuspended(currentRow) === null) { + lastContentRow = row; + } + + row = row.sibling; + } + + return lastContentRow; + } + + function validateRevealOrder(revealOrder) { + { + if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) { + didWarnAboutRevealOrder[revealOrder] = true; + + if (typeof revealOrder === 'string') { + switch (revealOrder.toLowerCase()) { + case 'together': + case 'forwards': + case 'backwards': + { + error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase()); + + break; + } + + case 'forward': + case 'backward': + { + error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase()); + + break; + } + + default: + error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder); + + break; + } + } else { + error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder); + } + } + } + } + + function validateTailOptions(tailMode, revealOrder) { + { + if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) { + if (tailMode !== 'collapsed' && tailMode !== 'hidden') { + didWarnAboutTailOptions[tailMode] = true; + + error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode); + } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') { + didWarnAboutTailOptions[tailMode] = true; + + error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode); + } + } + } + } + + function validateSuspenseListNestedChild(childSlot, index) { + { + var isArray = Array.isArray(childSlot); + var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function'; + + if (isArray || isIterable) { + var type = isArray ? 'array' : 'iterable'; + + error('A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type); + + return false; + } + } + + return true; + } + + function validateSuspenseListChildren(children, revealOrder) { + { + if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) { + if (Array.isArray(children)) { + for (var i = 0; i < children.length; i++) { + if (!validateSuspenseListNestedChild(children[i], i)) { + return; + } + } + } else { + var iteratorFn = getIteratorFn(children); + + if (typeof iteratorFn === 'function') { + var childrenIterator = iteratorFn.call(children); + + if (childrenIterator) { + var step = childrenIterator.next(); + var _i = 0; + + for (; !step.done; step = childrenIterator.next()) { + if (!validateSuspenseListNestedChild(step.value, _i)) { + return; + } + + _i++; + } + } + } else { + error('A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder); + } + } + } + } + } + + function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering) { + var renderState = workInProgress.memoizedState; + + if (renderState === null) { + workInProgress.memoizedState = { + isBackwards: isBackwards, + rendering: null, + renderingStartTime: 0, + last: lastContentRow, + tail: tail, + tailExpiration: 0, + tailMode: tailMode, + lastEffect: lastEffectBeforeRendering + }; + } else { + // We can reuse the existing object from previous renders. + renderState.isBackwards = isBackwards; + renderState.rendering = null; + renderState.renderingStartTime = 0; + renderState.last = lastContentRow; + renderState.tail = tail; + renderState.tailExpiration = 0; + renderState.tailMode = tailMode; + renderState.lastEffect = lastEffectBeforeRendering; + } + } // This can end up rendering this component multiple passes. + // The first pass splits the children fibers into two sets. A head and tail. + // We first render the head. If anything is in fallback state, we do another + // pass through beginWork to rerender all children (including the tail) with + // the force suspend context. If the first render didn't have anything in + // in fallback state. Then we render each row in the tail one-by-one. + // That happens in the completeWork phase without going back to beginWork. + + + function updateSuspenseListComponent(current, workInProgress, renderExpirationTime) { + var nextProps = workInProgress.pendingProps; + var revealOrder = nextProps.revealOrder; + var tailMode = nextProps.tail; + var newChildren = nextProps.children; + validateRevealOrder(revealOrder); + validateTailOptions(tailMode, revealOrder); + validateSuspenseListChildren(newChildren, revealOrder); + reconcileChildren(current, workInProgress, newChildren, renderExpirationTime); + var suspenseContext = suspenseStackCursor.current; + var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback); + + if (shouldForceFallback) { + suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); + workInProgress.effectTag |= DidCapture; + } else { + var didSuspendBefore = current !== null && (current.effectTag & DidCapture) !== NoEffect; + + if (didSuspendBefore) { + // If we previously forced a fallback, we need to schedule work + // on any nested boundaries to let them know to try to render + // again. This is the same as context updating. + propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime); + } + + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + } + + pushSuspenseContext(workInProgress, suspenseContext); + + if ((workInProgress.mode & BlockingMode) === NoMode) { + // Outside of blocking mode, SuspenseList doesn't work so we just + // use make it a noop by treating it as the default revealOrder. + workInProgress.memoizedState = null; + } else { + switch (revealOrder) { + case 'forwards': + { + var lastContentRow = findLastContentRow(workInProgress.child); + var tail; + + if (lastContentRow === null) { + // The whole list is part of the tail. + // TODO: We could fast path by just rendering the tail now. + tail = workInProgress.child; + workInProgress.child = null; + } else { + // Disconnect the tail rows after the content row. + // We're going to render them separately later. + tail = lastContentRow.sibling; + lastContentRow.sibling = null; + } + + initSuspenseListRenderState(workInProgress, false, // isBackwards + tail, lastContentRow, tailMode, workInProgress.lastEffect); + break; + } + + case 'backwards': + { + // We're going to find the first row that has existing content. + // At the same time we're going to reverse the list of everything + // we pass in the meantime. That's going to be our tail in reverse + // order. + var _tail = null; + var row = workInProgress.child; + workInProgress.child = null; + + while (row !== null) { + var currentRow = row.alternate; // New rows can't be content rows. + + if (currentRow !== null && findFirstSuspended(currentRow) === null) { + // This is the beginning of the main content. + workInProgress.child = row; + break; + } + + var nextRow = row.sibling; + row.sibling = _tail; + _tail = row; + row = nextRow; + } // TODO: If workInProgress.child is null, we can continue on the tail immediately. + + + initSuspenseListRenderState(workInProgress, true, // isBackwards + _tail, null, // last + tailMode, workInProgress.lastEffect); + break; + } + + case 'together': + { + initSuspenseListRenderState(workInProgress, false, // isBackwards + null, // tail + null, // last + undefined, workInProgress.lastEffect); + break; + } + + default: + { + // The default reveal order is the same as not having + // a boundary. + workInProgress.memoizedState = null; + } + } + } + + return workInProgress.child; + } + + function updatePortalComponent(current, workInProgress, renderExpirationTime) { + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + var nextChildren = workInProgress.pendingProps; + + if (current === null) { + // Portals are special because we don't append the children during mount + // but at commit. Therefore we need to track insertions which the normal + // flow doesn't do during mount. This doesn't happen at the root because + // the root always starts with a "current" with a null child. + // TODO: Consider unifying this with how the root works. + workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + } else { + reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime); + } + + return workInProgress.child; + } + + function updateContextProvider(current, workInProgress, renderExpirationTime) { + var providerType = workInProgress.type; + var context = providerType._context; + var newProps = workInProgress.pendingProps; + var oldProps = workInProgress.memoizedProps; + var newValue = newProps.value; + + { + var providerPropTypes = workInProgress.type.propTypes; + + if (providerPropTypes) { + checkPropTypes_1(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev); + } + } + + pushProvider(workInProgress, newValue); + + if (oldProps !== null) { + var oldValue = oldProps.value; + var changedBits = calculateChangedBits(context, newValue, oldValue); + + if (changedBits === 0) { + // No change. Bailout early if children are the same. + if (oldProps.children === newProps.children && !hasContextChanged()) { + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime); + } + } else { + // The context value changed. Search for matching consumers and schedule + // them to update. + propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); + } + } + + var newChildren = newProps.children; + reconcileChildren(current, workInProgress, newChildren, renderExpirationTime); + return workInProgress.child; + } + + var hasWarnedAboutUsingContextAsConsumer = false; + + function updateContextConsumer(current, workInProgress, renderExpirationTime) { + var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In + // DEV mode, we create a separate object for Context.Consumer that acts + // like a proxy to Context. This proxy object adds unnecessary code in PROD + // so we use the old behaviour (Context.Consumer references Context) to + // reduce size and overhead. The separate object references context via + // a property called "_context", which also gives us the ability to check + // in DEV mode if this property exists or not and warn if it does not. + + { + if (context._context === undefined) { + // This may be because it's a Context (rather than a Consumer). + // Or it may be because it's older React where they're the same thing. + // We only want to warn if we're sure it's a new React. + if (context !== context.Consumer) { + if (!hasWarnedAboutUsingContextAsConsumer) { + hasWarnedAboutUsingContextAsConsumer = true; + + error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?'); + } + } + } else { + context = context._context; + } + } + + var newProps = workInProgress.pendingProps; + var render = newProps.children; + + { + if (typeof render !== 'function') { + error('A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.'); + } + } + + prepareToReadContext(workInProgress, renderExpirationTime); + var newValue = readContext(context, newProps.unstable_observedBits); + var newChildren; + + { + ReactCurrentOwner$1.current = workInProgress; + setIsRendering(true); + newChildren = render(newValue); + setIsRendering(false); + } // React DevTools reads this flag. + + + workInProgress.effectTag |= PerformedWork; + reconcileChildren(current, workInProgress, newChildren, renderExpirationTime); + return workInProgress.child; + } + + function markWorkInProgressReceivedUpdate() { + didReceiveUpdate = true; + } + + function bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime) { + cancelWorkTimer(workInProgress); + + if (current !== null) { + // Reuse previous dependencies + workInProgress.dependencies = current.dependencies; + } + + { + // Don't update "base" render times for bailouts. + stopProfilerTimerIfRunning(); + } + + var updateExpirationTime = workInProgress.expirationTime; + + if (updateExpirationTime !== NoWork) { + markUnprocessedUpdateTime(updateExpirationTime); + } // Check if the children have any pending work. + + + var childExpirationTime = workInProgress.childExpirationTime; + + if (childExpirationTime < renderExpirationTime) { + // The children don't have any work either. We can skip them. + // TODO: Once we add back resuming, we should check if the children are + // a work-in-progress set. If so, we need to transfer their effects. + return null; + } else { + // This fiber doesn't have work, but its subtree does. Clone the child + // fibers and continue. + cloneChildFibers(current, workInProgress); + return workInProgress.child; + } + } + + function remountFiber(current, oldWorkInProgress, newWorkInProgress) { + { + var returnFiber = oldWorkInProgress.return; + + if (returnFiber === null) { + throw new Error('Cannot swap the root fiber.'); + } // Disconnect from the old current. + // It will get deleted. + + + current.alternate = null; + oldWorkInProgress.alternate = null; // Connect to the new tree. + + newWorkInProgress.index = oldWorkInProgress.index; + newWorkInProgress.sibling = oldWorkInProgress.sibling; + newWorkInProgress.return = oldWorkInProgress.return; + newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it. + + if (oldWorkInProgress === returnFiber.child) { + returnFiber.child = newWorkInProgress; + } else { + var prevSibling = returnFiber.child; + + if (prevSibling === null) { + throw new Error('Expected parent to have a child.'); + } + + while (prevSibling.sibling !== oldWorkInProgress) { + prevSibling = prevSibling.sibling; + + if (prevSibling === null) { + throw new Error('Expected to find the previous sibling.'); + } + } + + prevSibling.sibling = newWorkInProgress; + } // Delete the old fiber and place the new one. + // Since the old fiber is disconnected, we have to schedule it manually. + + + var last = returnFiber.lastEffect; + + if (last !== null) { + last.nextEffect = current; + returnFiber.lastEffect = current; + } else { + returnFiber.firstEffect = returnFiber.lastEffect = current; + } + + current.nextEffect = null; + current.effectTag = Deletion; + newWorkInProgress.effectTag |= Placement; // Restart work from the new fiber. + + return newWorkInProgress; + } + } + + function beginWork(current, workInProgress, renderExpirationTime) { + var updateExpirationTime = workInProgress.expirationTime; + + { + if (workInProgress._debugNeedsRemount && current !== null) { + // This will restart the begin phase with a new fiber. + return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime)); + } + } + + if (current !== null) { + var oldProps = current.memoizedProps; + var newProps = workInProgress.pendingProps; + + if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload: + workInProgress.type !== current.type )) { + // If props or context changed, mark the fiber as having performed work. + // This may be unset if the props are determined to be equal later (memo). + didReceiveUpdate = true; + } else if (updateExpirationTime < renderExpirationTime) { + didReceiveUpdate = false; // This fiber does not have any pending work. Bailout without entering + // the begin phase. There's still some bookkeeping we that needs to be done + // in this optimized path, mostly pushing stuff onto the stack. + + switch (workInProgress.tag) { + case HostRoot: + pushHostRootContext(workInProgress); + resetHydrationState(); + break; + + case HostComponent: + pushHostContext(workInProgress); + + if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) { + { + markSpawnedWork(Never); + } // Schedule this fiber to re-render at offscreen priority. Then bailout. + + + workInProgress.expirationTime = workInProgress.childExpirationTime = Never; + return null; + } + + break; + + case ClassComponent: + { + var Component = workInProgress.type; + + if (isContextProvider(Component)) { + pushContextProvider(workInProgress); + } + + break; + } + + case HostPortal: + pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); + break; + + case ContextProvider: + { + var newValue = workInProgress.memoizedProps.value; + pushProvider(workInProgress, newValue); + break; + } + + case Profiler: + { + // Profiler should only call onRender when one of its descendants actually rendered. + var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime; + + if (hasChildWork) { + workInProgress.effectTag |= Update; + } + } + + break; + + case SuspenseComponent: + { + var state = workInProgress.memoizedState; + + if (state !== null) { + // whether to retry the primary children, or to skip over it and + // go straight to the fallback. Check the priority of the primary + // child fragment. + + + var primaryChildFragment = workInProgress.child; + var primaryChildExpirationTime = primaryChildFragment.childExpirationTime; + + if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) { + // The primary children have pending work. Use the normal path + // to attempt to render the primary children again. + return updateSuspenseComponent(current, workInProgress, renderExpirationTime); + } else { + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient + // priority. Bailout. + + var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime); + + if (child !== null) { + // The fallback children have pending work. Skip over the + // primary children and work on the fallback. + return child.sibling; + } else { + return null; + } + } + } else { + pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + } + + break; + } + + case SuspenseListComponent: + { + var didSuspendBefore = (current.effectTag & DidCapture) !== NoEffect; + + var _hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime; + + if (didSuspendBefore) { + if (_hasChildWork) { + // If something was in fallback state last time, and we have all the + // same children then we're still in progressive loading state. + // Something might get unblocked by state updates or retries in the + // tree which will affect the tail. So we need to use the normal + // path to compute the correct tail. + return updateSuspenseListComponent(current, workInProgress, renderExpirationTime); + } // If none of the children had any work, that means that none of + // them got retried so they'll still be blocked in the same way + // as before. We can fast bail out. + + + workInProgress.effectTag |= DidCapture; + } // If nothing suspended before and we're rendering the same children, + // then the tail doesn't matter. Anything new that suspends will work + // in the "together" mode, so we can continue from the state we had. + + + var renderState = workInProgress.memoizedState; + + if (renderState !== null) { + // Reset to the "together" mode in case we've started a different + // update in the past but didn't complete it. + renderState.rendering = null; + renderState.tail = null; + } + + pushSuspenseContext(workInProgress, suspenseStackCursor.current); + + if (_hasChildWork) { + break; + } else { + // If none of the children had any work, that means that none of + // them got retried so they'll still be blocked in the same way + // as before. We can fast bail out. + return null; + } + } + } + + return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime); + } else { + // An update was scheduled on this fiber, but there are no new props + // nor legacy context. Set this to false. If an update queue or context + // consumer produces a changed value, it will set this to true. Otherwise, + // the component will assume the children have not changed and bail out. + didReceiveUpdate = false; + } + } else { + didReceiveUpdate = false; + } // Before entering the begin phase, clear pending update priority. + // TODO: This assumes that we're about to evaluate the component and process + // the update queue. However, there's an exception: SimpleMemoComponent + // sometimes bails out later in the begin phase. This indicates that we should + // move this assignment out of the common path and into each branch. + + + workInProgress.expirationTime = NoWork; + + switch (workInProgress.tag) { + case IndeterminateComponent: + { + return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderExpirationTime); + } + + case LazyComponent: + { + var elementType = workInProgress.elementType; + return mountLazyComponent(current, workInProgress, elementType, updateExpirationTime, renderExpirationTime); + } + + case FunctionComponent: + { + var _Component = workInProgress.type; + var unresolvedProps = workInProgress.pendingProps; + var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps); + return updateFunctionComponent(current, workInProgress, _Component, resolvedProps, renderExpirationTime); + } + + case ClassComponent: + { + var _Component2 = workInProgress.type; + var _unresolvedProps = workInProgress.pendingProps; + + var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps); + + return updateClassComponent(current, workInProgress, _Component2, _resolvedProps, renderExpirationTime); + } + + case HostRoot: + return updateHostRoot(current, workInProgress, renderExpirationTime); + + case HostComponent: + return updateHostComponent(current, workInProgress, renderExpirationTime); + + case HostText: + return updateHostText(current, workInProgress); + + case SuspenseComponent: + return updateSuspenseComponent(current, workInProgress, renderExpirationTime); + + case HostPortal: + return updatePortalComponent(current, workInProgress, renderExpirationTime); + + case ForwardRef: + { + var type = workInProgress.type; + var _unresolvedProps2 = workInProgress.pendingProps; + + var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2); + + return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderExpirationTime); + } + + case Fragment: + return updateFragment(current, workInProgress, renderExpirationTime); + + case Mode: + return updateMode(current, workInProgress, renderExpirationTime); + + case Profiler: + return updateProfiler(current, workInProgress, renderExpirationTime); + + case ContextProvider: + return updateContextProvider(current, workInProgress, renderExpirationTime); + + case ContextConsumer: + return updateContextConsumer(current, workInProgress, renderExpirationTime); + + case MemoComponent: + { + var _type2 = workInProgress.type; + var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props. + + var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3); + + { + if (workInProgress.type !== workInProgress.elementType) { + var outerPropTypes = _type2.propTypes; + + if (outerPropTypes) { + checkPropTypes_1(outerPropTypes, _resolvedProps3, // Resolved for outer only + 'prop', getComponentName(_type2), getCurrentFiberStackInDev); + } + } + } + + _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3); + return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime); + } + + case SimpleMemoComponent: + { + return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime); + } + + case IncompleteClassComponent: + { + var _Component3 = workInProgress.type; + var _unresolvedProps4 = workInProgress.pendingProps; + + var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4); + + return mountIncompleteClassComponent(current, workInProgress, _Component3, _resolvedProps4, renderExpirationTime); + } + + case SuspenseListComponent: + { + return updateSuspenseListComponent(current, workInProgress, renderExpirationTime); + } + } + + { + { + throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." ); + } + } + } + + function markUpdate(workInProgress) { + // Tag the fiber with an update effect. This turns a Placement into + // a PlacementAndUpdate. + workInProgress.effectTag |= Update; + } + + function markRef$1(workInProgress) { + workInProgress.effectTag |= Ref; + } + + var appendAllChildren; + var updateHostContainer; + var updateHostComponent$1; + var updateHostText$1; + + { + // Mutation mode + appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) { + // We only have the top Fiber that was created but we need recurse down its + // children to find all the terminal nodes. + var node = workInProgress.child; + + while (node !== null) { + if (node.tag === HostComponent || node.tag === HostText) { + appendInitialChild(parent, node.stateNode); + } else if (node.tag === HostPortal) ; else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === workInProgress) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + }; + + updateHostContainer = function (workInProgress) {// Noop + }; + + updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) { + // If we have an alternate, that means this is an update and we need to + // schedule a side-effect to do the updates. + var oldProps = current.memoizedProps; + + if (oldProps === newProps) { + // In mutation mode, this is sufficient for a bailout because + // we won't touch this node even if children changed. + return; + } // If we get updated because one of our children updated, we don't + // have newProps so we'll have to reuse them. + // TODO: Split the update API as separate for the props vs. children. + // Even better would be if children weren't special cased at all tho. + + + var instance = workInProgress.stateNode; + var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host + // component is hitting the resume path. Figure out why. Possibly + // related to `hidden`. + + var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component. + + workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there + // is a new ref we mark this as an update. All the work is done in commitWork. + + if (updatePayload) { + markUpdate(workInProgress); + } + }; + + updateHostText$1 = function (current, workInProgress, oldText, newText) { + // If the text differs, mark it as an update. All the work in done in commitWork. + if (oldText !== newText) { + markUpdate(workInProgress); + } + }; + } + + function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { + switch (renderState.tailMode) { + case 'hidden': + { + // Any insertions at the end of the tail list after this point + // should be invisible. If there are already mounted boundaries + // anything before them are not considered for collapsing. + // Therefore we need to go through the whole tail to find if + // there are any. + var tailNode = renderState.tail; + var lastTailNode = null; + + while (tailNode !== null) { + if (tailNode.alternate !== null) { + lastTailNode = tailNode; + } + + tailNode = tailNode.sibling; + } // Next we're simply going to delete all insertions after the + // last rendered item. + + + if (lastTailNode === null) { + // All remaining items in the tail are insertions. + renderState.tail = null; + } else { + // Detach the insertion after the last node that was already + // inserted. + lastTailNode.sibling = null; + } + + break; + } + + case 'collapsed': + { + // Any insertions at the end of the tail list after this point + // should be invisible. If there are already mounted boundaries + // anything before them are not considered for collapsing. + // Therefore we need to go through the whole tail to find if + // there are any. + var _tailNode = renderState.tail; + var _lastTailNode = null; + + while (_tailNode !== null) { + if (_tailNode.alternate !== null) { + _lastTailNode = _tailNode; + } + + _tailNode = _tailNode.sibling; + } // Next we're simply going to delete all insertions after the + // last rendered item. + + + if (_lastTailNode === null) { + // All remaining items in the tail are insertions. + if (!hasRenderedATailFallback && renderState.tail !== null) { + // We suspended during the head. We want to show at least one + // row at the tail. So we'll keep on and cut off the rest. + renderState.tail.sibling = null; + } else { + renderState.tail = null; + } + } else { + // Detach the insertion after the last node that was already + // inserted. + _lastTailNode.sibling = null; + } + + break; + } + } + } + + function completeWork(current, workInProgress, renderExpirationTime) { + var newProps = workInProgress.pendingProps; + + switch (workInProgress.tag) { + case IndeterminateComponent: + case LazyComponent: + case SimpleMemoComponent: + case FunctionComponent: + case ForwardRef: + case Fragment: + case Mode: + case Profiler: + case ContextConsumer: + case MemoComponent: + return null; + + case ClassComponent: + { + var Component = workInProgress.type; + + if (isContextProvider(Component)) { + popContext(workInProgress); + } + + return null; + } + + case HostRoot: + { + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + var fiberRoot = workInProgress.stateNode; + + if (fiberRoot.pendingContext) { + fiberRoot.context = fiberRoot.pendingContext; + fiberRoot.pendingContext = null; + } + + if (current === null || current.child === null) { + // If we hydrated, pop so that we can delete any remaining children + // that weren't hydrated. + var wasHydrated = popHydrationState(workInProgress); + + if (wasHydrated) { + // If we hydrated, then we'll need to schedule an update for + // the commit side-effects on the root. + markUpdate(workInProgress); + } + } + + updateHostContainer(workInProgress); + return null; + } + + case HostComponent: + { + popHostContext(workInProgress); + var rootContainerInstance = getRootHostContainer(); + var type = workInProgress.type; + + if (current !== null && workInProgress.stateNode != null) { + updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance); + + if (current.ref !== workInProgress.ref) { + markRef$1(workInProgress); + } + } else { + if (!newProps) { + if (!(workInProgress.stateNode !== null)) { + { + throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." ); + } + } // This can happen when we abort work. + + + return null; + } + + var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context + // "stack" as the parent. Then append children as we go in beginWork + // or completeWork depending on whether we want to add them top->down or + // bottom->up. Top->down is faster in IE11. + + var _wasHydrated = popHydrationState(workInProgress); + + if (_wasHydrated) { + // TODO: Move this and createInstance step into the beginPhase + // to consolidate. + if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) { + // If changes to the hydrated node need to be applied at the + // commit-phase we mark this as such. + markUpdate(workInProgress); + } + } else { + var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress); + appendAllChildren(instance, workInProgress, false, false); // This needs to be set before we mount Flare event listeners + + workInProgress.stateNode = instance; + // (eg DOM renderer supports auto-focus for certain elements). + // Make sure such renderers get scheduled for later work. + + + if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) { + markUpdate(workInProgress); + } + } + + if (workInProgress.ref !== null) { + // If there is a ref on a host node we need to schedule a callback + markRef$1(workInProgress); + } + } + + return null; + } + + case HostText: + { + var newText = newProps; + + if (current && workInProgress.stateNode != null) { + var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need + // to schedule a side-effect to do the updates. + + updateHostText$1(current, workInProgress, oldText, newText); + } else { + if (typeof newText !== 'string') { + if (!(workInProgress.stateNode !== null)) { + { + throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." ); + } + } // This can happen when we abort work. + + } + + var _rootContainerInstance = getRootHostContainer(); + + var _currentHostContext = getHostContext(); + + var _wasHydrated2 = popHydrationState(workInProgress); + + if (_wasHydrated2) { + if (prepareToHydrateHostTextInstance(workInProgress)) { + markUpdate(workInProgress); + } + } else { + workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress); + } + } + + return null; + } + + case SuspenseComponent: + { + popSuspenseContext(workInProgress); + var nextState = workInProgress.memoizedState; + + if ((workInProgress.effectTag & DidCapture) !== NoEffect) { + // Something suspended. Re-render with the fallback children. + workInProgress.expirationTime = renderExpirationTime; // Do not reset the effect list. + + return workInProgress; + } + + var nextDidTimeout = nextState !== null; + var prevDidTimeout = false; + + if (current === null) { + if (workInProgress.memoizedProps.fallback !== undefined) { + popHydrationState(workInProgress); + } + } else { + var prevState = current.memoizedState; + prevDidTimeout = prevState !== null; + + if (!nextDidTimeout && prevState !== null) { + // We just switched from the fallback to the normal children. + // Delete the fallback. + // TODO: Would it be better to store the fallback fragment on + // the stateNode during the begin phase? + var currentFallbackChild = current.child.sibling; + + if (currentFallbackChild !== null) { + // Deletions go at the beginning of the return fiber's effect list + var first = workInProgress.firstEffect; + + if (first !== null) { + workInProgress.firstEffect = currentFallbackChild; + currentFallbackChild.nextEffect = first; + } else { + workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild; + currentFallbackChild.nextEffect = null; + } + + currentFallbackChild.effectTag = Deletion; + } + } + } + + if (nextDidTimeout && !prevDidTimeout) { + // If this subtreee is running in blocking mode we can suspend, + // otherwise we won't suspend. + // TODO: This will still suspend a synchronous tree if anything + // in the concurrent tree already suspended during this render. + // This is a known bug. + if ((workInProgress.mode & BlockingMode) !== NoMode) { + // TODO: Move this back to throwException because this is too late + // if this is a large tree which is common for initial loads. We + // don't know if we should restart a render or not until we get + // this marker, and this is too late. + // If this render already had a ping or lower pri updates, + // and this is the first time we know we're going to suspend we + // should be able to immediately restart from within throwException. + var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true; + + if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) { + // If this was in an invisible tree or a new render, then showing + // this boundary is ok. + renderDidSuspend(); + } else { + // Otherwise, we're going to have to hide content so we should + // suspend for longer if possible. + renderDidSuspendDelayIfPossible(); + } + } + } + + { + // TODO: Only schedule updates if these values are non equal, i.e. it changed. + if (nextDidTimeout || prevDidTimeout) { + // If this boundary just timed out, schedule an effect to attach a + // retry listener to the promise. This flag is also used to hide the + // primary children. In mutation mode, we also need the flag to + // *unhide* children that were previously hidden, so check if this + // is currently timed out, too. + workInProgress.effectTag |= Update; + } + } + + return null; + } + + case HostPortal: + popHostContainer(workInProgress); + updateHostContainer(workInProgress); + return null; + + case ContextProvider: + // Pop provider fiber + popProvider(workInProgress); + return null; + + case IncompleteClassComponent: + { + // Same as class component case. I put it down here so that the tags are + // sequential to ensure this switch is compiled to a jump table. + var _Component = workInProgress.type; + + if (isContextProvider(_Component)) { + popContext(workInProgress); + } + + return null; + } + + case SuspenseListComponent: + { + popSuspenseContext(workInProgress); + var renderState = workInProgress.memoizedState; + + if (renderState === null) { + // We're running in the default, "independent" mode. + // We don't do anything in this mode. + return null; + } + + var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect; + var renderedTail = renderState.rendering; + + if (renderedTail === null) { + // We just rendered the head. + if (!didSuspendAlready) { + // This is the first pass. We need to figure out if anything is still + // suspended in the rendered set. + // If new content unsuspended, but there's still some content that + // didn't. Then we need to do a second pass that forces everything + // to keep showing their fallbacks. + // We might be suspended if something in this render pass suspended, or + // something in the previous committed pass suspended. Otherwise, + // there's no chance so we can skip the expensive call to + // findFirstSuspended. + var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect); + + if (!cannotBeSuspended) { + var row = workInProgress.child; + + while (row !== null) { + var suspended = findFirstSuspended(row); + + if (suspended !== null) { + didSuspendAlready = true; + workInProgress.effectTag |= DidCapture; + cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as + // part of the second pass. In that case nothing will subscribe to + // its thennables. Instead, we'll transfer its thennables to the + // SuspenseList so that it can retry if they resolve. + // There might be multiple of these in the list but since we're + // going to wait for all of them anyway, it doesn't really matter + // which ones gets to ping. In theory we could get clever and keep + // track of how many dependencies remain but it gets tricky because + // in the meantime, we can add/remove/change items and dependencies. + // We might bail out of the loop before finding any but that + // doesn't matter since that means that the other boundaries that + // we did find already has their listeners attached. + + var newThennables = suspended.updateQueue; + + if (newThennables !== null) { + workInProgress.updateQueue = newThennables; + workInProgress.effectTag |= Update; + } // Rerender the whole list, but this time, we'll force fallbacks + // to stay in place. + // Reset the effect list before doing the second pass since that's now invalid. + + + if (renderState.lastEffect === null) { + workInProgress.firstEffect = null; + } + + workInProgress.lastEffect = renderState.lastEffect; // Reset the child fibers to their original state. + + resetChildFibers(workInProgress, renderExpirationTime); // Set up the Suspense Context to force suspense and immediately + // rerender the children. + + pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); + return workInProgress.child; + } + + row = row.sibling; + } + } + } else { + cutOffTailIfNeeded(renderState, false); + } // Next we're going to render the tail. + + } else { + // Append the rendered row to the child list. + if (!didSuspendAlready) { + var _suspended = findFirstSuspended(renderedTail); + + if (_suspended !== null) { + workInProgress.effectTag |= DidCapture; + didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't + // get lost if this row ends up dropped during a second pass. + + var _newThennables = _suspended.updateQueue; + + if (_newThennables !== null) { + workInProgress.updateQueue = _newThennables; + workInProgress.effectTag |= Update; + } + + cutOffTailIfNeeded(renderState, true); // This might have been modified. + + if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate) { + // We need to delete the row we just rendered. + // Reset the effect list to what it was before we rendered this + // child. The nested children have already appended themselves. + var lastEffect = workInProgress.lastEffect = renderState.lastEffect; // Remove any effects that were appended after this point. + + if (lastEffect !== null) { + lastEffect.nextEffect = null; + } // We're done. + + + return null; + } + } else if ( // The time it took to render last row is greater than time until + // the expiration. + now() * 2 - renderState.renderingStartTime > renderState.tailExpiration && renderExpirationTime > Never) { + // We have now passed our CPU deadline and we'll just give up further + // attempts to render the main content and only render fallbacks. + // The assumption is that this is usually faster. + workInProgress.effectTag |= DidCapture; + didSuspendAlready = true; + cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this + // to get it started back up to attempt the next item. If we can show + // them, then they really have the same priority as this render. + // So we'll pick it back up the very next render pass once we've had + // an opportunity to yield for paint. + + var nextPriority = renderExpirationTime - 1; + workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority; + + { + markSpawnedWork(nextPriority); + } + } + } + + if (renderState.isBackwards) { + // The effect list of the backwards tail will have been added + // to the end. This breaks the guarantee that life-cycles fire in + // sibling order but that isn't a strong guarantee promised by React. + // Especially since these might also just pop in during future commits. + // Append to the beginning of the list. + renderedTail.sibling = workInProgress.child; + workInProgress.child = renderedTail; + } else { + var previousSibling = renderState.last; + + if (previousSibling !== null) { + previousSibling.sibling = renderedTail; + } else { + workInProgress.child = renderedTail; + } + + renderState.last = renderedTail; + } + } + + if (renderState.tail !== null) { + // We still have tail rows to render. + if (renderState.tailExpiration === 0) { + // Heuristic for how long we're willing to spend rendering rows + // until we just give up and show what we have so far. + var TAIL_EXPIRATION_TIMEOUT_MS = 500; + renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS; // TODO: This is meant to mimic the train model or JND but this + // is a per component value. It should really be since the start + // of the total render or last commit. Consider using something like + // globalMostRecentFallbackTime. That doesn't account for being + // suspended for part of the time or when it's a new render. + // It should probably use a global start time value instead. + } // Pop a row. + + + var next = renderState.tail; + renderState.rendering = next; + renderState.tail = next.sibling; + renderState.lastEffect = workInProgress.lastEffect; + renderState.renderingStartTime = now(); + next.sibling = null; // Restore the context. + // TODO: We can probably just avoid popping it instead and only + // setting it the first time we go from not suspended to suspended. + + var suspenseContext = suspenseStackCursor.current; + + if (didSuspendAlready) { + suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); + } else { + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + } + + pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row. + + return next; + } + + return null; + } + } + + { + { + throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." ); + } + } + } + + function unwindWork(workInProgress, renderExpirationTime) { + switch (workInProgress.tag) { + case ClassComponent: + { + var Component = workInProgress.type; + + if (isContextProvider(Component)) { + popContext(workInProgress); + } + + var effectTag = workInProgress.effectTag; + + if (effectTag & ShouldCapture) { + workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; + return workInProgress; + } + + return null; + } + + case HostRoot: + { + popHostContainer(workInProgress); + popTopLevelContextObject(workInProgress); + var _effectTag = workInProgress.effectTag; + + if (!((_effectTag & DidCapture) === NoEffect)) { + { + throw Error( "The root failed to unmount after an error. This is likely a bug in React. Please file an issue." ); + } + } + + workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; + return workInProgress; + } + + case HostComponent: + { + // TODO: popHydrationState + popHostContext(workInProgress); + return null; + } + + case SuspenseComponent: + { + popSuspenseContext(workInProgress); + + var _effectTag2 = workInProgress.effectTag; + + if (_effectTag2 & ShouldCapture) { + workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary. + + return workInProgress; + } + + return null; + } + + case SuspenseListComponent: + { + popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been + // caught by a nested boundary. If not, it should bubble through. + + return null; + } + + case HostPortal: + popHostContainer(workInProgress); + return null; + + case ContextProvider: + popProvider(workInProgress); + return null; + + default: + return null; + } + } + + function unwindInterruptedWork(interruptedWork) { + switch (interruptedWork.tag) { + case ClassComponent: + { + var childContextTypes = interruptedWork.type.childContextTypes; + + if (childContextTypes !== null && childContextTypes !== undefined) { + popContext(interruptedWork); + } + + break; + } + + case HostRoot: + { + popHostContainer(interruptedWork); + popTopLevelContextObject(interruptedWork); + break; + } + + case HostComponent: + { + popHostContext(interruptedWork); + break; + } + + case HostPortal: + popHostContainer(interruptedWork); + break; + + case SuspenseComponent: + popSuspenseContext(interruptedWork); + break; + + case SuspenseListComponent: + popSuspenseContext(interruptedWork); + break; + + case ContextProvider: + popProvider(interruptedWork); + break; + } + } + + function createCapturedValue(value, source) { + // If the value is an error, call this function immediately after it is thrown + // so the stack is accurate. + return { + value: value, + source: source, + stack: getStackByFiberInDevAndProd(source) + }; + } + + function logCapturedError(capturedError) { + + var error = capturedError.error; + + { + var componentName = capturedError.componentName, + componentStack = capturedError.componentStack, + errorBoundaryName = capturedError.errorBoundaryName, + errorBoundaryFound = capturedError.errorBoundaryFound, + willRetry = capturedError.willRetry; // Browsers support silencing uncaught errors by calling + // `preventDefault()` in window `error` handler. + // We record this information as an expando on the error. + + if (error != null && error._suppressLogging) { + if (errorBoundaryFound && willRetry) { + // The error is recoverable and was silenced. + // Ignore it and don't print the stack addendum. + // This is handy for testing error boundaries without noise. + return; + } // The error is fatal. Since the silencing might have + // been accidental, we'll surface it anyway. + // However, the browser would have silenced the original error + // so we'll print it first, and then print the stack addendum. + + + console['error'](error); // Don't transform to our wrapper + // For a more detailed description of this block, see: + // https://github.com/facebook/react/pull/13384 + } + + var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : 'The above error occurred in one of your React components:'; + var errorBoundaryMessage; // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow. + + if (errorBoundaryFound && errorBoundaryName) { + if (willRetry) { + errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); + } else { + errorBoundaryMessage = "This error was initially handled by the error boundary " + errorBoundaryName + ".\n" + "Recreating the tree from scratch failed so React will unmount the tree."; + } + } else { + errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://fb.me/react-error-boundaries to learn more about error boundaries.'; + } + + var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack. + // We don't include the original error message and JS stack because the browser + // has already printed it. Even if the application swallows the error, it is still + // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils. + + console['error'](combinedMessage); // Don't transform to our wrapper + } + } + + var didWarnAboutUndefinedSnapshotBeforeUpdate = null; + + { + didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); + } + + var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set; + function logError(boundary, errorInfo) { + var source = errorInfo.source; + var stack = errorInfo.stack; + + if (stack === null && source !== null) { + stack = getStackByFiberInDevAndProd(source); + } + + var capturedError = { + componentName: source !== null ? getComponentName(source.type) : null, + componentStack: stack !== null ? stack : '', + error: errorInfo.value, + errorBoundary: null, + errorBoundaryName: null, + errorBoundaryFound: false, + willRetry: false + }; + + if (boundary !== null && boundary.tag === ClassComponent) { + capturedError.errorBoundary = boundary.stateNode; + capturedError.errorBoundaryName = getComponentName(boundary.type); + capturedError.errorBoundaryFound = true; + capturedError.willRetry = true; + } + + try { + logCapturedError(capturedError); + } catch (e) { + // This method must not throw, or React internal state will get messed up. + // If console.error is overridden, or logCapturedError() shows a dialog that throws, + // we want to report this error outside of the normal stack as a last resort. + // https://github.com/facebook/react/issues/13188 + setTimeout(function () { + throw e; + }); + } + } + + var callComponentWillUnmountWithTimer = function (current, instance) { + startPhaseTimer(current, 'componentWillUnmount'); + instance.props = current.memoizedProps; + instance.state = current.memoizedState; + instance.componentWillUnmount(); + stopPhaseTimer(); + }; // Capture errors so they don't interrupt unmounting. + + + function safelyCallComponentWillUnmount(current, instance) { + { + invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance); + + if (hasCaughtError()) { + var unmountError = clearCaughtError(); + captureCommitPhaseError(current, unmountError); + } + } + } + + function safelyDetachRef(current) { + var ref = current.ref; + + if (ref !== null) { + if (typeof ref === 'function') { + { + invokeGuardedCallback(null, ref, null, null); + + if (hasCaughtError()) { + var refError = clearCaughtError(); + captureCommitPhaseError(current, refError); + } + } + } else { + ref.current = null; + } + } + } + + function safelyCallDestroy(current, destroy) { + { + invokeGuardedCallback(null, destroy, null); + + if (hasCaughtError()) { + var error = clearCaughtError(); + captureCommitPhaseError(current, error); + } + } + } + + function commitBeforeMutationLifeCycles(current, finishedWork) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + case Block: + { + return; + } + + case ClassComponent: + { + if (finishedWork.effectTag & Snapshot) { + if (current !== null) { + var prevProps = current.memoizedProps; + var prevState = current.memoizedState; + startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate'); + var instance = finishedWork.stateNode; // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. + + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error('Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance'); + } + + if (instance.state !== finishedWork.memoizedState) { + error('Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance'); + } + } + } + + var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState); + + { + var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; + + if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) { + didWarnSet.add(finishedWork.type); + + error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type)); + } + } + + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + stopPhaseTimer(); + } + } + + return; + } + + case HostRoot: + case HostComponent: + case HostText: + case HostPortal: + case IncompleteClassComponent: + // Nothing to do for these component types + return; + } + + { + { + throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." ); + } + } + } + + function commitHookEffectListUnmount(tag, finishedWork) { + var updateQueue = finishedWork.updateQueue; + var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; + + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + + do { + if ((effect.tag & tag) === tag) { + // Unmount + var destroy = effect.destroy; + effect.destroy = undefined; + + if (destroy !== undefined) { + destroy(); + } + } + + effect = effect.next; + } while (effect !== firstEffect); + } + } + + function commitHookEffectListMount(tag, finishedWork) { + var updateQueue = finishedWork.updateQueue; + var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; + + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + + do { + if ((effect.tag & tag) === tag) { + // Mount + var create = effect.create; + effect.destroy = create(); + + { + var destroy = effect.destroy; + + if (destroy !== undefined && typeof destroy !== 'function') { + var addendum = void 0; + + if (destroy === null) { + addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).'; + } else if (typeof destroy.then === 'function') { + addendum = '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + 'useEffect(() => {\n' + ' async function fetchData() {\n' + ' // You can await here\n' + ' const response = await MyAPI.getData(someId);\n' + ' // ...\n' + ' }\n' + ' fetchData();\n' + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + 'Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching'; + } else { + addendum = ' You returned: ' + destroy; + } + + error('An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork)); + } + } + } + + effect = effect.next; + } while (effect !== firstEffect); + } + } + + function commitPassiveHookEffects(finishedWork) { + if ((finishedWork.effectTag & Passive) !== NoEffect) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + case Block: + { + // TODO (#17945) We should call all passive destroy functions (for all fibers) + // before calling any create functions. The current approach only serializes + // these for a single fiber. + commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork); + commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); + break; + } + } + } + } + + function commitLifeCycles(finishedRoot, current, finishedWork, committedExpirationTime) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + case Block: + { + // At this point layout effects have already been destroyed (during mutation phase). + // This is done to prevent sibling component effects from interfering with each other, + // e.g. a destroy function in one component should never override a ref set + // by a create function in another component during the same commit. + commitHookEffectListMount(Layout | HasEffect, finishedWork); + + return; + } + + case ClassComponent: + { + var instance = finishedWork.stateNode; + + if (finishedWork.effectTag & Update) { + if (current === null) { + startPhaseTimer(finishedWork, 'componentDidMount'); // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. + + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error('Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance'); + } + + if (instance.state !== finishedWork.memoizedState) { + error('Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance'); + } + } + } + + instance.componentDidMount(); + stopPhaseTimer(); + } else { + var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps); + var prevState = current.memoizedState; + startPhaseTimer(finishedWork, 'componentDidUpdate'); // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. + + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error('Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance'); + } + + if (instance.state !== finishedWork.memoizedState) { + error('Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance'); + } + } + } + + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + stopPhaseTimer(); + } + } + + var updateQueue = finishedWork.updateQueue; + + if (updateQueue !== null) { + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error('Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance'); + } + + if (instance.state !== finishedWork.memoizedState) { + error('Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance'); + } + } + } // We could update instance props and state here, + // but instead we rely on them being set during last render. + // TODO: revisit this when we implement resuming. + + + commitUpdateQueue(finishedWork, updateQueue, instance); + } + + return; + } + + case HostRoot: + { + var _updateQueue = finishedWork.updateQueue; + + if (_updateQueue !== null) { + var _instance = null; + + if (finishedWork.child !== null) { + switch (finishedWork.child.tag) { + case HostComponent: + _instance = getPublicInstance(finishedWork.child.stateNode); + break; + + case ClassComponent: + _instance = finishedWork.child.stateNode; + break; + } + } + + commitUpdateQueue(finishedWork, _updateQueue, _instance); + } + + return; + } + + case HostComponent: + { + var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted + // (eg DOM renderer may schedule auto-focus for inputs and form controls). + // These effects should only be committed when components are first mounted, + // aka when there is no current/alternate. + + if (current === null && finishedWork.effectTag & Update) { + var type = finishedWork.type; + var props = finishedWork.memoizedProps; + commitMount(_instance2, type, props); + } + + return; + } + + case HostText: + { + // We have no life-cycles associated with text. + return; + } + + case HostPortal: + { + // We have no life-cycles associated with portals. + return; + } + + case Profiler: + { + { + var onRender = finishedWork.memoizedProps.onRender; + + if (typeof onRender === 'function') { + { + onRender(finishedWork.memoizedProps.id, current === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions); + } + } + } + + return; + } + + case SuspenseComponent: + { + commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + return; + } + + case SuspenseListComponent: + case IncompleteClassComponent: + case FundamentalComponent: + case ScopeComponent: + return; + } + + { + { + throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." ); + } + } + } + + function hideOrUnhideAllChildren(finishedWork, isHidden) { + { + // We only have the top Fiber that was inserted but we need to recurse down its + // children to find all the terminal nodes. + var node = finishedWork; + + while (true) { + if (node.tag === HostComponent) { + var instance = node.stateNode; + + if (isHidden) { + hideInstance(instance); + } else { + unhideInstance(node.stateNode, node.memoizedProps); + } + } else if (node.tag === HostText) { + var _instance3 = node.stateNode; + + if (isHidden) { + hideTextInstance(_instance3); + } else { + unhideTextInstance(_instance3, node.memoizedProps); + } + } else if (node.tag === SuspenseComponent && node.memoizedState !== null && node.memoizedState.dehydrated === null) { + // Found a nested Suspense component that timed out. Skip over the + // primary child fragment, which should remain hidden. + var fallbackChildFragment = node.child.sibling; + fallbackChildFragment.return = node; + node = fallbackChildFragment; + continue; + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === finishedWork) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === finishedWork) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + } + + function commitAttachRef(finishedWork) { + var ref = finishedWork.ref; + + if (ref !== null) { + var instance = finishedWork.stateNode; + var instanceToUse; + + switch (finishedWork.tag) { + case HostComponent: + instanceToUse = getPublicInstance(instance); + break; + + default: + instanceToUse = instance; + } // Moved outside to ensure DCE works with this flag + + if (typeof ref === 'function') { + ref(instanceToUse); + } else { + { + if (!ref.hasOwnProperty('current')) { + error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork)); + } + } + + ref.current = instanceToUse; + } + } + } + + function commitDetachRef(current) { + var currentRef = current.ref; + + if (currentRef !== null) { + if (typeof currentRef === 'function') { + currentRef(null); + } else { + currentRef.current = null; + } + } + } // User-originating errors (lifecycles and refs) should not interrupt + // deletion, so don't let them throw. Host-originating errors should + // interrupt deletion, so it's okay + + + function commitUnmount(finishedRoot, current, renderPriorityLevel) { + onCommitUnmount(current); + + switch (current.tag) { + case FunctionComponent: + case ForwardRef: + case MemoComponent: + case SimpleMemoComponent: + case Block: + { + var updateQueue = current.updateQueue; + + if (updateQueue !== null) { + var lastEffect = updateQueue.lastEffect; + + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + + { + // When the owner fiber is deleted, the destroy function of a passive + // effect hook is called during the synchronous commit phase. This is + // a concession to implementation complexity. Calling it in the + // passive effect phase (like they usually are, when dependencies + // change during an update) would require either traversing the + // children of the deleted fiber again, or including unmount effects + // as part of the fiber effect list. + // + // Because this is during the sync commit phase, we need to change + // the priority. + // + // TODO: Reconsider this implementation trade off. + var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel; + runWithPriority$1(priorityLevel, function () { + var effect = firstEffect; + + do { + var _destroy = effect.destroy; + + if (_destroy !== undefined) { + safelyCallDestroy(current, _destroy); + } + + effect = effect.next; + } while (effect !== firstEffect); + }); + } + } + } + + return; + } + + case ClassComponent: + { + safelyDetachRef(current); + var instance = current.stateNode; + + if (typeof instance.componentWillUnmount === 'function') { + safelyCallComponentWillUnmount(current, instance); + } + + return; + } + + case HostComponent: + { + + safelyDetachRef(current); + return; + } + + case HostPortal: + { + // TODO: this is recursive. + // We are also not using this parent because + // the portal will get pushed immediately. + { + unmountHostComponents(finishedRoot, current, renderPriorityLevel); + } + + return; + } + + case FundamentalComponent: + { + + return; + } + + case DehydratedFragment: + { + + return; + } + + case ScopeComponent: + { + + return; + } + } + } + + function commitNestedUnmounts(finishedRoot, root, renderPriorityLevel) { + // While we're inside a removed host node we don't want to call + // removeChild on the inner nodes because they're removed by the top + // call anyway. We also want to call componentWillUnmount on all + // composites before this host node is removed from the tree. Therefore + // we do an inner loop while we're still inside the host node. + var node = root; + + while (true) { + commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because they may contain more composite or host nodes. + // Skip portals because commitUnmount() currently visits them recursively. + + if (node.child !== null && ( // If we use mutation we drill down into portals using commitUnmount above. + // If we don't use mutation we drill down into portals here instead. + node.tag !== HostPortal)) { + node.child.return = node; + node = node.child; + continue; + } + + if (node === root) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === root) { + return; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function detachFiber(current) { + var alternate = current.alternate; // Cut off the return pointers to disconnect it from the tree. Ideally, we + // should clear the child pointer of the parent alternate to let this + // get GC:ed but we don't know which for sure which parent is the current + // one so we'll settle for GC:ing the subtree of this child. This child + // itself will be GC:ed when the parent updates the next time. + + current.return = null; + current.child = null; + current.memoizedState = null; + current.updateQueue = null; + current.dependencies = null; + current.alternate = null; + current.firstEffect = null; + current.lastEffect = null; + current.pendingProps = null; + current.memoizedProps = null; + current.stateNode = null; + + if (alternate !== null) { + detachFiber(alternate); + } + } + + function getHostParentFiber(fiber) { + var parent = fiber.return; + + while (parent !== null) { + if (isHostParent(parent)) { + return parent; + } + + parent = parent.return; + } + + { + { + throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." ); + } + } + } + + function isHostParent(fiber) { + return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; + } + + function getHostSibling(fiber) { + // We're going to search forward into the tree until we find a sibling host + // node. Unfortunately, if multiple insertions are done in a row we have to + // search past them. This leads to exponential search for the next sibling. + // TODO: Find a more efficient way to do this. + var node = fiber; + + siblings: while (true) { + // If we didn't find anything, let's try the next sibling. + while (node.sibling === null) { + if (node.return === null || isHostParent(node.return)) { + // If we pop out of the root or hit the parent the fiber we are the + // last sibling. + return null; + } + + node = node.return; + } + + node.sibling.return = node.return; + node = node.sibling; + + while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) { + // If it is not host node and, we might have a host node inside it. + // Try to search down until we find one. + if (node.effectTag & Placement) { + // If we don't have a child, try the siblings instead. + continue siblings; + } // If we don't have a child, try the siblings instead. + // We also skip portals because they are not part of this host tree. + + + if (node.child === null || node.tag === HostPortal) { + continue siblings; + } else { + node.child.return = node; + node = node.child; + } + } // Check if this host node is stable or about to be placed. + + + if (!(node.effectTag & Placement)) { + // Found it! + return node.stateNode; + } + } + } + + function commitPlacement(finishedWork) { + + + var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together. + + var parent; + var isContainer; + var parentStateNode = parentFiber.stateNode; + + switch (parentFiber.tag) { + case HostComponent: + parent = parentStateNode; + isContainer = false; + break; + + case HostRoot: + parent = parentStateNode.containerInfo; + isContainer = true; + break; + + case HostPortal: + parent = parentStateNode.containerInfo; + isContainer = true; + break; + + case FundamentalComponent: + + // eslint-disable-next-line-no-fallthrough + + default: + { + { + throw Error( "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + } + + if (parentFiber.effectTag & ContentReset) { + // Reset the text content of the parent before doing any insertions + resetTextContent(parent); // Clear ContentReset from the effect tag + + parentFiber.effectTag &= ~ContentReset; + } + + var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its + // children to find all the terminal nodes. + + if (isContainer) { + insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent); + } else { + insertOrAppendPlacementNode(finishedWork, before, parent); + } + } + + function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { + var tag = node.tag; + var isHost = tag === HostComponent || tag === HostText; + + if (isHost || enableFundamentalAPI ) { + var stateNode = isHost ? node.stateNode : node.stateNode.instance; + + if (before) { + insertInContainerBefore(parent, stateNode, before); + } else { + appendChildToContainer(parent, stateNode); + } + } else if (tag === HostPortal) ; else { + var child = node.child; + + if (child !== null) { + insertOrAppendPlacementNodeIntoContainer(child, before, parent); + var sibling = child.sibling; + + while (sibling !== null) { + insertOrAppendPlacementNodeIntoContainer(sibling, before, parent); + sibling = sibling.sibling; + } + } + } + } + + function insertOrAppendPlacementNode(node, before, parent) { + var tag = node.tag; + var isHost = tag === HostComponent || tag === HostText; + + if (isHost || enableFundamentalAPI ) { + var stateNode = isHost ? node.stateNode : node.stateNode.instance; + + if (before) { + insertBefore(parent, stateNode, before); + } else { + appendChild(parent, stateNode); + } + } else if (tag === HostPortal) ; else { + var child = node.child; + + if (child !== null) { + insertOrAppendPlacementNode(child, before, parent); + var sibling = child.sibling; + + while (sibling !== null) { + insertOrAppendPlacementNode(sibling, before, parent); + sibling = sibling.sibling; + } + } + } + } + + function unmountHostComponents(finishedRoot, current, renderPriorityLevel) { + // We only have the top Fiber that was deleted but we need to recurse down its + // children to find all the terminal nodes. + var node = current; // Each iteration, currentParent is populated with node's host parent if not + // currentParentIsValid. + + var currentParentIsValid = false; // Note: these two variables *must* always be updated together. + + var currentParent; + var currentParentIsContainer; + + while (true) { + if (!currentParentIsValid) { + var parent = node.return; + + findParent: while (true) { + if (!(parent !== null)) { + { + throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + var parentStateNode = parent.stateNode; + + switch (parent.tag) { + case HostComponent: + currentParent = parentStateNode; + currentParentIsContainer = false; + break findParent; + + case HostRoot: + currentParent = parentStateNode.containerInfo; + currentParentIsContainer = true; + break findParent; + + case HostPortal: + currentParent = parentStateNode.containerInfo; + currentParentIsContainer = true; + break findParent; + + } + + parent = parent.return; + } + + currentParentIsValid = true; + } + + if (node.tag === HostComponent || node.tag === HostText) { + commitNestedUnmounts(finishedRoot, node, renderPriorityLevel); // After all the children have unmounted, it is now safe to remove the + // node from the tree. + + if (currentParentIsContainer) { + removeChildFromContainer(currentParent, node.stateNode); + } else { + removeChild(currentParent, node.stateNode); + } // Don't visit children because we already visited them. + + } else if (node.tag === HostPortal) { + if (node.child !== null) { + // When we go into a portal, it becomes the parent to remove from. + // We will reassign it back when we pop the portal on the way up. + currentParent = node.stateNode.containerInfo; + currentParentIsContainer = true; // Visit children because portals might contain host components. + + node.child.return = node; + node = node.child; + continue; + } + } else { + commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because we may find more host components below. + + if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + } + + if (node === current) { + return; + } + + while (node.sibling === null) { + if (node.return === null || node.return === current) { + return; + } + + node = node.return; + + if (node.tag === HostPortal) { + // When we go out of the portal, we need to restore the parent. + // Since we don't keep a stack of them, we will search for it. + currentParentIsValid = false; + } + } + + node.sibling.return = node.return; + node = node.sibling; + } + } + + function commitDeletion(finishedRoot, current, renderPriorityLevel) { + { + // Recursively delete all host nodes from the parent. + // Detach refs and call componentWillUnmount() on the whole subtree. + unmountHostComponents(finishedRoot, current, renderPriorityLevel); + } + + detachFiber(current); + } + + function commitWork(current, finishedWork) { + + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case MemoComponent: + case SimpleMemoComponent: + case Block: + { + // Layout effects are destroyed during the mutation phase so that all + // destroy functions for all fibers are called before any create functions. + // This prevents sibling component effects from interfering with each other, + // e.g. a destroy function in one component should never override a ref set + // by a create function in another component during the same commit. + commitHookEffectListUnmount(Layout | HasEffect, finishedWork); + return; + } + + case ClassComponent: + { + return; + } + + case HostComponent: + { + var instance = finishedWork.stateNode; + + if (instance != null) { + // Commit the work prepared earlier. + var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps + // as the newProps. The updatePayload will contain the real change in + // this case. + + var oldProps = current !== null ? current.memoizedProps : newProps; + var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components. + + var updatePayload = finishedWork.updateQueue; + finishedWork.updateQueue = null; + + if (updatePayload !== null) { + commitUpdate(instance, updatePayload, type, oldProps, newProps); + } + } + + return; + } + + case HostText: + { + if (!(finishedWork.stateNode !== null)) { + { + throw Error( "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue." ); + } + } + + var textInstance = finishedWork.stateNode; + var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps + // as the newProps. The updatePayload will contain the real change in + // this case. + + var oldText = current !== null ? current.memoizedProps : newText; + commitTextUpdate(textInstance, oldText, newText); + return; + } + + case HostRoot: + { + { + var _root = finishedWork.stateNode; + + if (_root.hydrate) { + // We've just hydrated. No need to hydrate again. + _root.hydrate = false; + commitHydratedContainer(_root.containerInfo); + } + } + + return; + } + + case Profiler: + { + return; + } + + case SuspenseComponent: + { + commitSuspenseComponent(finishedWork); + attachSuspenseRetryListeners(finishedWork); + return; + } + + case SuspenseListComponent: + { + attachSuspenseRetryListeners(finishedWork); + return; + } + + case IncompleteClassComponent: + { + return; + } + } + + { + { + throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." ); + } + } + } + + function commitSuspenseComponent(finishedWork) { + var newState = finishedWork.memoizedState; + var newDidTimeout; + var primaryChildParent = finishedWork; + + if (newState === null) { + newDidTimeout = false; + } else { + newDidTimeout = true; + primaryChildParent = finishedWork.child; + markCommitTimeOfFallback(); + } + + if ( primaryChildParent !== null) { + hideOrUnhideAllChildren(primaryChildParent, newDidTimeout); + } + } + + function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { + + var newState = finishedWork.memoizedState; + + if (newState === null) { + var current = finishedWork.alternate; + + if (current !== null) { + var prevState = current.memoizedState; + + if (prevState !== null) { + var suspenseInstance = prevState.dehydrated; + + if (suspenseInstance !== null) { + commitHydratedSuspenseInstance(suspenseInstance); + } + } + } + } + } + + function attachSuspenseRetryListeners(finishedWork) { + // If this boundary just timed out, then it will have a set of thenables. + // For each thenable, attach a listener so that when it resolves, React + // attempts to re-render the boundary in the primary (pre-timeout) state. + var thenables = finishedWork.updateQueue; + + if (thenables !== null) { + finishedWork.updateQueue = null; + var retryCache = finishedWork.stateNode; + + if (retryCache === null) { + retryCache = finishedWork.stateNode = new PossiblyWeakSet(); + } + + thenables.forEach(function (thenable) { + // Memoize using the boundary fiber to prevent redundant listeners. + var retry = resolveRetryThenable.bind(null, finishedWork, thenable); + + if (!retryCache.has(thenable)) { + { + if (thenable.__reactDoNotTraceInteractions !== true) { + retry = unstable_wrap(retry); + } + } + + retryCache.add(thenable); + thenable.then(retry, retry); + } + }); + } + } + + function commitResetTextContent(current) { + + resetTextContent(current.stateNode); + } + + var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map; + + function createRootErrorUpdate(fiber, errorInfo, expirationTime) { + var update = createUpdate(expirationTime, null); // Unmount the root by rendering null. + + update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property + // being called "element". + + update.payload = { + element: null + }; + var error = errorInfo.value; + + update.callback = function () { + onUncaughtError(error); + logError(fiber, errorInfo); + }; + + return update; + } + + function createClassErrorUpdate(fiber, errorInfo, expirationTime) { + var update = createUpdate(expirationTime, null); + update.tag = CaptureUpdate; + var getDerivedStateFromError = fiber.type.getDerivedStateFromError; + + if (typeof getDerivedStateFromError === 'function') { + var error$1 = errorInfo.value; + + update.payload = function () { + logError(fiber, errorInfo); + return getDerivedStateFromError(error$1); + }; + } + + var inst = fiber.stateNode; + + if (inst !== null && typeof inst.componentDidCatch === 'function') { + update.callback = function callback() { + { + markFailedErrorBoundaryForHotReloading(fiber); + } + + if (typeof getDerivedStateFromError !== 'function') { + // To preserve the preexisting retry behavior of error boundaries, + // we keep track of which ones already failed during this batch. + // This gets reset before we yield back to the browser. + // TODO: Warn in strict mode if getDerivedStateFromError is + // not defined. + markLegacyErrorBoundaryAsFailed(this); // Only log here if componentDidCatch is the only error boundary method defined + + logError(fiber, errorInfo); + } + + var error$1 = errorInfo.value; + var stack = errorInfo.stack; + this.componentDidCatch(error$1, { + componentStack: stack !== null ? stack : '' + }); + + { + if (typeof getDerivedStateFromError !== 'function') { + // If componentDidCatch is the only error boundary method defined, + // then it needs to call setState to recover from errors. + // If no state update is scheduled then the boundary will swallow the error. + if (fiber.expirationTime !== Sync) { + error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown'); + } + } + } + }; + } else { + update.callback = function () { + markFailedErrorBoundaryForHotReloading(fiber); + }; + } + + return update; + } + + function attachPingListener(root, renderExpirationTime, thenable) { + // Attach a listener to the promise to "ping" the root and retry. But + // only if one does not already exist for the current render expiration + // time (which acts like a "thread ID" here). + var pingCache = root.pingCache; + var threadIDs; + + if (pingCache === null) { + pingCache = root.pingCache = new PossiblyWeakMap$1(); + threadIDs = new Set(); + pingCache.set(thenable, threadIDs); + } else { + threadIDs = pingCache.get(thenable); + + if (threadIDs === undefined) { + threadIDs = new Set(); + pingCache.set(thenable, threadIDs); + } + } + + if (!threadIDs.has(renderExpirationTime)) { + // Memoize using the thread ID to prevent redundant listeners. + threadIDs.add(renderExpirationTime); + var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime); + thenable.then(ping, ping); + } + } + + function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) { + // The source fiber did not complete. + sourceFiber.effectTag |= Incomplete; // Its effect list is no longer valid. + + sourceFiber.firstEffect = sourceFiber.lastEffect = null; + + if (value !== null && typeof value === 'object' && typeof value.then === 'function') { + // This is a thenable. + var thenable = value; + + if ((sourceFiber.mode & BlockingMode) === NoMode) { + // Reset the memoizedState to what it was before we attempted + // to render it. + var currentSource = sourceFiber.alternate; + + if (currentSource) { + sourceFiber.updateQueue = currentSource.updateQueue; + sourceFiber.memoizedState = currentSource.memoizedState; + sourceFiber.expirationTime = currentSource.expirationTime; + } else { + sourceFiber.updateQueue = null; + sourceFiber.memoizedState = null; + } + } + + var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext); // Schedule the nearest Suspense to re-render the timed out view. + + var _workInProgress = returnFiber; + + do { + if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) { + // Found the nearest boundary. + // Stash the promise on the boundary fiber. If the boundary times out, we'll + // attach another listener to flip the boundary back to its normal state. + var thenables = _workInProgress.updateQueue; + + if (thenables === null) { + var updateQueue = new Set(); + updateQueue.add(thenable); + _workInProgress.updateQueue = updateQueue; + } else { + thenables.add(thenable); + } // If the boundary is outside of blocking mode, we should *not* + // suspend the commit. Pretend as if the suspended component rendered + // null and keep rendering. In the commit phase, we'll schedule a + // subsequent synchronous update to re-render the Suspense. + // + // Note: It doesn't matter whether the component that suspended was + // inside a blocking mode tree. If the Suspense is outside of it, we + // should *not* suspend the commit. + + + if ((_workInProgress.mode & BlockingMode) === NoMode) { + _workInProgress.effectTag |= DidCapture; // We're going to commit this fiber even though it didn't complete. + // But we shouldn't call any lifecycle methods or callbacks. Remove + // all lifecycle effect tags. + + sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete); + + if (sourceFiber.tag === ClassComponent) { + var currentSourceFiber = sourceFiber.alternate; + + if (currentSourceFiber === null) { + // This is a new mount. Change the tag so it's not mistaken for a + // completed class component. For example, we should not call + // componentWillUnmount if it is deleted. + sourceFiber.tag = IncompleteClassComponent; + } else { + // When we try rendering again, we should not reuse the current fiber, + // since it's known to be in an inconsistent state. Use a force update to + // prevent a bail out. + var update = createUpdate(Sync, null); + update.tag = ForceUpdate; + enqueueUpdate(sourceFiber, update); + } + } // The source fiber did not complete. Mark it with Sync priority to + // indicate that it still has pending work. + + + sourceFiber.expirationTime = Sync; // Exit without suspending. + + return; + } // Confirmed that the boundary is in a concurrent mode tree. Continue + // with the normal suspend path. + // + // After this we'll use a set of heuristics to determine whether this + // render pass will run to completion or restart or "suspend" the commit. + // The actual logic for this is spread out in different places. + // + // This first principle is that if we're going to suspend when we complete + // a root, then we should also restart if we get an update or ping that + // might unsuspend it, and vice versa. The only reason to suspend is + // because you think you might want to restart before committing. However, + // it doesn't make sense to restart only while in the period we're suspended. + // + // Restarting too aggressively is also not good because it starves out any + // intermediate loading state. So we use heuristics to determine when. + // Suspense Heuristics + // + // If nothing threw a Promise or all the same fallbacks are already showing, + // then don't suspend/restart. + // + // If this is an initial render of a new tree of Suspense boundaries and + // those trigger a fallback, then don't suspend/restart. We want to ensure + // that we can show the initial loading state as quickly as possible. + // + // If we hit a "Delayed" case, such as when we'd switch from content back into + // a fallback, then we should always suspend/restart. SuspenseConfig applies to + // this case. If none is defined, JND is used instead. + // + // If we're already showing a fallback and it gets "retried", allowing us to show + // another level, but there's still an inner boundary that would show a fallback, + // then we suspend/restart for 500ms since the last time we showed a fallback + // anywhere in the tree. This effectively throttles progressive loading into a + // consistent train of commits. This also gives us an opportunity to restart to + // get to the completed state slightly earlier. + // + // If there's ambiguity due to batching it's resolved in preference of: + // 1) "delayed", 2) "initial render", 3) "retry". + // + // We want to ensure that a "busy" state doesn't get force committed. We want to + // ensure that new initial loading states can commit as soon as possible. + + + attachPingListener(root, renderExpirationTime, thenable); + _workInProgress.effectTag |= ShouldCapture; + _workInProgress.expirationTime = renderExpirationTime; + return; + } // This boundary already captured during this render. Continue to the next + // boundary. + + + _workInProgress = _workInProgress.return; + } while (_workInProgress !== null); // No boundary was found. Fallthrough to error mode. + // TODO: Use invariant so the message is stripped in prod? + + + value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.' + getStackByFiberInDevAndProd(sourceFiber)); + } // We didn't find a boundary that could handle this type of exception. Start + // over and traverse parent path again, this time treating the exception + // as an error. + + + renderDidError(); + value = createCapturedValue(value, sourceFiber); + var workInProgress = returnFiber; + + do { + switch (workInProgress.tag) { + case HostRoot: + { + var _errorInfo = value; + workInProgress.effectTag |= ShouldCapture; + workInProgress.expirationTime = renderExpirationTime; + + var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime); + + enqueueCapturedUpdate(workInProgress, _update); + return; + } + + case ClassComponent: + // Capture and retry + var errorInfo = value; + var ctor = workInProgress.type; + var instance = workInProgress.stateNode; + + if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) { + workInProgress.effectTag |= ShouldCapture; + workInProgress.expirationTime = renderExpirationTime; // Schedule the error boundary to re-render using updated state + + var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime); + + enqueueCapturedUpdate(workInProgress, _update2); + return; + } + + break; + } + + workInProgress = workInProgress.return; + } while (workInProgress !== null); + } + + var ceil = Math.ceil; + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, + ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, + IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing; + var NoContext = + /* */ + 0; + var BatchedContext = + /* */ + 1; + var EventContext = + /* */ + 2; + var DiscreteEventContext = + /* */ + 4; + var LegacyUnbatchedContext = + /* */ + 8; + var RenderContext = + /* */ + 16; + var CommitContext = + /* */ + 32; + var RootIncomplete = 0; + var RootFatalErrored = 1; + var RootErrored = 2; + var RootSuspended = 3; + var RootSuspendedWithDelay = 4; + var RootCompleted = 5; + // Describes where we are in the React execution stack + var executionContext = NoContext; // The root we're working on + + var workInProgressRoot = null; // The fiber we're working on + + var workInProgress = null; // The expiration time we're rendering + + var renderExpirationTime$1 = NoWork; // Whether to root completed, errored, suspended, etc. + + var workInProgressRootExitStatus = RootIncomplete; // A fatal error, if one is thrown + + var workInProgressRootFatalError = null; // Most recent event time among processed updates during this render. + // This is conceptually a time stamp but expressed in terms of an ExpirationTime + // because we deal mostly with expiration times in the hot path, so this avoids + // the conversion happening in the hot path. + + var workInProgressRootLatestProcessedExpirationTime = Sync; + var workInProgressRootLatestSuspenseTimeout = Sync; + var workInProgressRootCanSuspendUsingConfig = null; // The work left over by components that were visited during this render. Only + // includes unprocessed updates, not work in bailed out children. + + var workInProgressRootNextUnprocessedUpdateTime = NoWork; // If we're pinged while rendering we don't always restart immediately. + // This flag determines if it might be worthwhile to restart if an opportunity + // happens latere. + + var workInProgressRootHasPendingPing = false; // The most recent time we committed a fallback. This lets us ensure a train + // model where we don't commit new loading states in too quick succession. + + var globalMostRecentFallbackTime = 0; + var FALLBACK_THROTTLE_MS = 500; + var nextEffect = null; + var hasUncaughtError = false; + var firstUncaughtError = null; + var legacyErrorBoundariesThatAlreadyFailed = null; + var rootDoesHavePassiveEffects = false; + var rootWithPendingPassiveEffects = null; + var pendingPassiveEffectsRenderPriority = NoPriority; + var pendingPassiveEffectsExpirationTime = NoWork; + var rootsWithPendingDiscreteUpdates = null; // Use these to prevent an infinite loop of nested updates + + var NESTED_UPDATE_LIMIT = 50; + var nestedUpdateCount = 0; + var rootWithNestedUpdates = null; + var NESTED_PASSIVE_UPDATE_LIMIT = 50; + var nestedPassiveUpdateCount = 0; + var interruptedBy = null; // Marks the need to reschedule pending interactions at these expiration times + // during the commit phase. This enables them to be traced across components + // that spawn new work during render. E.g. hidden boundaries, suspended SSR + // hydration or SuspenseList. + + var spawnedWorkDuringRender = null; // Expiration times are computed by adding to the current time (the start + // time). However, if two updates are scheduled within the same event, we + // should treat their start times as simultaneous, even if the actual clock + // time has advanced between the first and second call. + // In other words, because expiration times determine how updates are batched, + // we want all updates of like priority that occur within the same event to + // receive the same expiration time. Otherwise we get tearing. + + var currentEventTime = NoWork; + function requestCurrentTimeForUpdate() { + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + // We're inside React, so it's fine to read the actual time. + return msToExpirationTime(now()); + } // We're not inside React, so we may be in the middle of a browser event. + + + if (currentEventTime !== NoWork) { + // Use the same start time for all updates until we enter React again. + return currentEventTime; + } // This is the first update since React yielded. Compute a new start time. + + + currentEventTime = msToExpirationTime(now()); + return currentEventTime; + } + function getCurrentTime() { + return msToExpirationTime(now()); + } + function computeExpirationForFiber(currentTime, fiber, suspenseConfig) { + var mode = fiber.mode; + + if ((mode & BlockingMode) === NoMode) { + return Sync; + } + + var priorityLevel = getCurrentPriorityLevel(); + + if ((mode & ConcurrentMode) === NoMode) { + return priorityLevel === ImmediatePriority ? Sync : Batched; + } + + if ((executionContext & RenderContext) !== NoContext) { + // Use whatever time we're already rendering + // TODO: Should there be a way to opt out, like with `runWithPriority`? + return renderExpirationTime$1; + } + + var expirationTime; + + if (suspenseConfig !== null) { + // Compute an expiration time based on the Suspense timeout. + expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION); + } else { + // Compute an expiration time based on the Scheduler priority. + switch (priorityLevel) { + case ImmediatePriority: + expirationTime = Sync; + break; + + case UserBlockingPriority$1: + // TODO: Rename this to computeUserBlockingExpiration + expirationTime = computeInteractiveExpiration(currentTime); + break; + + case NormalPriority: + case LowPriority: + // TODO: Handle LowPriority + // TODO: Rename this to... something better. + expirationTime = computeAsyncExpiration(currentTime); + break; + + case IdlePriority: + expirationTime = Idle; + break; + + default: + { + { + throw Error( "Expected a valid priority level" ); + } + } + + } + } // If we're in the middle of rendering a tree, do not update at the same + // expiration time that is already rendering. + // TODO: We shouldn't have to do this if the update is on a different root. + // Refactor computeExpirationForFiber + scheduleUpdate so we have access to + // the root when we check for this condition. + + + if (workInProgressRoot !== null && expirationTime === renderExpirationTime$1) { + // This is a trick to move this update into a separate batch + expirationTime -= 1; + } + + return expirationTime; + } + function scheduleUpdateOnFiber(fiber, expirationTime) { + checkForNestedUpdates(); + warnAboutRenderPhaseUpdatesInDEV(fiber); + var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime); + + if (root === null) { + warnAboutUpdateOnUnmountedFiberInDEV(fiber); + return; + } + + checkForInterruption(fiber, expirationTime); + recordScheduleUpdate(); // TODO: computeExpirationForFiber also reads the priority. Pass the + // priority as an argument to that function and this one. + + var priorityLevel = getCurrentPriorityLevel(); + + if (expirationTime === Sync) { + if ( // Check if we're inside unbatchedUpdates + (executionContext & LegacyUnbatchedContext) !== NoContext && // Check if we're not already rendering + (executionContext & (RenderContext | CommitContext)) === NoContext) { + // Register pending interactions on the root to avoid losing traced interaction data. + schedulePendingInteractions(root, expirationTime); // This is a legacy edge case. The initial mount of a ReactDOM.render-ed + // root inside of batchedUpdates should be synchronous, but layout updates + // should be deferred until the end of the batch. + + performSyncWorkOnRoot(root); + } else { + ensureRootIsScheduled(root); + schedulePendingInteractions(root, expirationTime); + + if (executionContext === NoContext) { + // Flush the synchronous work now, unless we're already working or inside + // a batch. This is intentionally inside scheduleUpdateOnFiber instead of + // scheduleCallbackForFiber to preserve the ability to schedule a callback + // without immediately flushing it. We only do this for user-initiated + // updates, to preserve historical behavior of legacy mode. + flushSyncCallbackQueue(); + } + } + } else { + ensureRootIsScheduled(root); + schedulePendingInteractions(root, expirationTime); + } + + if ((executionContext & DiscreteEventContext) !== NoContext && ( // Only updates at user-blocking priority or greater are considered + // discrete, even inside a discrete event. + priorityLevel === UserBlockingPriority$1 || priorityLevel === ImmediatePriority)) { + // This is the result of a discrete event. Track the lowest priority + // discrete update per root so we can flush them early, if needed. + if (rootsWithPendingDiscreteUpdates === null) { + rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]); + } else { + var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root); + + if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) { + rootsWithPendingDiscreteUpdates.set(root, expirationTime); + } + } + } + } + var scheduleWork = scheduleUpdateOnFiber; // This is split into a separate function so we can mark a fiber with pending + // work without treating it as a typical update that originates from an event; + // e.g. retrying a Suspense boundary isn't an update, but it does schedule work + // on a fiber. + + function markUpdateTimeFromFiberToRoot(fiber, expirationTime) { + // Update the source fiber's expiration time + if (fiber.expirationTime < expirationTime) { + fiber.expirationTime = expirationTime; + } + + var alternate = fiber.alternate; + + if (alternate !== null && alternate.expirationTime < expirationTime) { + alternate.expirationTime = expirationTime; + } // Walk the parent path to the root and update the child expiration time. + + + var node = fiber.return; + var root = null; + + if (node === null && fiber.tag === HostRoot) { + root = fiber.stateNode; + } else { + while (node !== null) { + alternate = node.alternate; + + if (node.childExpirationTime < expirationTime) { + node.childExpirationTime = expirationTime; + + if (alternate !== null && alternate.childExpirationTime < expirationTime) { + alternate.childExpirationTime = expirationTime; + } + } else if (alternate !== null && alternate.childExpirationTime < expirationTime) { + alternate.childExpirationTime = expirationTime; + } + + if (node.return === null && node.tag === HostRoot) { + root = node.stateNode; + break; + } + + node = node.return; + } + } + + if (root !== null) { + if (workInProgressRoot === root) { + // Received an update to a tree that's in the middle of rendering. Mark + // that's unprocessed work on this root. + markUnprocessedUpdateTime(expirationTime); + + if (workInProgressRootExitStatus === RootSuspendedWithDelay) { + // The root already suspended with a delay, which means this render + // definitely won't finish. Since we have a new update, let's mark it as + // suspended now, right before marking the incoming update. This has the + // effect of interrupting the current render and switching to the update. + // TODO: This happens to work when receiving an update during the render + // phase, because of the trick inside computeExpirationForFiber to + // subtract 1 from `renderExpirationTime` to move it into a + // separate bucket. But we should probably model it with an exception, + // using the same mechanism we use to force hydration of a subtree. + // TODO: This does not account for low pri updates that were already + // scheduled before the root started rendering. Need to track the next + // pending expiration time (perhaps by backtracking the return path) and + // then trigger a restart in the `renderDidSuspendDelayIfPossible` path. + markRootSuspendedAtTime(root, renderExpirationTime$1); + } + } // Mark that the root has a pending update. + + + markRootUpdatedAtTime(root, expirationTime); + } + + return root; + } + + function getNextRootExpirationTimeToWorkOn(root) { + // Determines the next expiration time that the root should render, taking + // into account levels that may be suspended, or levels that may have + // received a ping. + var lastExpiredTime = root.lastExpiredTime; + + if (lastExpiredTime !== NoWork) { + return lastExpiredTime; + } // "Pending" refers to any update that hasn't committed yet, including if it + // suspended. The "suspended" range is therefore a subset. + + + var firstPendingTime = root.firstPendingTime; + + if (!isRootSuspendedAtTime(root, firstPendingTime)) { + // The highest priority pending time is not suspended. Let's work on that. + return firstPendingTime; + } // If the first pending time is suspended, check if there's a lower priority + // pending level that we know about. Or check if we received a ping. Work + // on whichever is higher priority. + + + var lastPingedTime = root.lastPingedTime; + var nextKnownPendingLevel = root.nextKnownPendingLevel; + var nextLevel = lastPingedTime > nextKnownPendingLevel ? lastPingedTime : nextKnownPendingLevel; + + if ( nextLevel <= Idle && firstPendingTime !== nextLevel) { + // Don't work on Idle/Never priority unless everything else is committed. + return NoWork; + } + + return nextLevel; + } // Use this function to schedule a task for a root. There's only one task per + // root; if a task was already scheduled, we'll check to make sure the + // expiration time of the existing task is the same as the expiration time of + // the next level that the root has work on. This function is called on every + // update, and right before exiting a task. + + + function ensureRootIsScheduled(root) { + var lastExpiredTime = root.lastExpiredTime; + + if (lastExpiredTime !== NoWork) { + // Special case: Expired work should flush synchronously. + root.callbackExpirationTime = Sync; + root.callbackPriority = ImmediatePriority; + root.callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)); + return; + } + + var expirationTime = getNextRootExpirationTimeToWorkOn(root); + var existingCallbackNode = root.callbackNode; + + if (expirationTime === NoWork) { + // There's nothing to work on. + if (existingCallbackNode !== null) { + root.callbackNode = null; + root.callbackExpirationTime = NoWork; + root.callbackPriority = NoPriority; + } + + return; + } // TODO: If this is an update, we already read the current time. Pass the + // time as an argument. + + + var currentTime = requestCurrentTimeForUpdate(); + var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime); // If there's an existing render task, confirm it has the correct priority and + // expiration time. Otherwise, we'll cancel it and schedule a new one. + + if (existingCallbackNode !== null) { + var existingCallbackPriority = root.callbackPriority; + var existingCallbackExpirationTime = root.callbackExpirationTime; + + if ( // Callback must have the exact same expiration time. + existingCallbackExpirationTime === expirationTime && // Callback must have greater or equal priority. + existingCallbackPriority >= priorityLevel) { + // Existing callback is sufficient. + return; + } // Need to schedule a new task. + // TODO: Instead of scheduling a new task, we should be able to change the + // priority of the existing one. + + + cancelCallback(existingCallbackNode); + } + + root.callbackExpirationTime = expirationTime; + root.callbackPriority = priorityLevel; + var callbackNode; + + if (expirationTime === Sync) { + // Sync React callbacks are scheduled on a special internal queue + callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)); + } else { + callbackNode = scheduleCallback(priorityLevel, performConcurrentWorkOnRoot.bind(null, root), // Compute a task timeout based on the expiration time. This also affects + // ordering because tasks are processed in timeout order. + { + timeout: expirationTimeToMs(expirationTime) - now() + }); + } + + root.callbackNode = callbackNode; + } // This is the entry point for every concurrent task, i.e. anything that + // goes through Scheduler. + + + function performConcurrentWorkOnRoot(root, didTimeout) { + // Since we know we're in a React event, we can clear the current + // event time. The next update will compute a new event time. + currentEventTime = NoWork; + + if (didTimeout) { + // The render task took too long to complete. Mark the current time as + // expired to synchronously render all expired work in a single batch. + var currentTime = requestCurrentTimeForUpdate(); + markRootExpiredAtTime(root, currentTime); // This will schedule a synchronous callback. + + ensureRootIsScheduled(root); + return null; + } // Determine the next expiration time to work on, using the fields stored + // on the root. + + + var expirationTime = getNextRootExpirationTimeToWorkOn(root); + + if (expirationTime !== NoWork) { + var originalCallbackNode = root.callbackNode; + + if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) { + { + throw Error( "Should not already be working." ); + } + } + + flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack + // and prepare a fresh one. Otherwise we'll continue where we left off. + + if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) { + prepareFreshStack(root, expirationTime); + startWorkOnPendingInteractions(root, expirationTime); + } // If we have a work-in-progress fiber, it means there's still work to do + // in this root. + + + if (workInProgress !== null) { + var prevExecutionContext = executionContext; + executionContext |= RenderContext; + var prevDispatcher = pushDispatcher(); + var prevInteractions = pushInteractions(root); + startWorkLoopTimer(workInProgress); + + do { + try { + workLoopConcurrent(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (true); + + resetContextDependencies(); + executionContext = prevExecutionContext; + popDispatcher(prevDispatcher); + + { + popInteractions(prevInteractions); + } + + if (workInProgressRootExitStatus === RootFatalErrored) { + var fatalError = workInProgressRootFatalError; + stopInterruptedWorkLoopTimer(); + prepareFreshStack(root, expirationTime); + markRootSuspendedAtTime(root, expirationTime); + ensureRootIsScheduled(root); + throw fatalError; + } + + if (workInProgress !== null) { + // There's still work left over. Exit without committing. + stopInterruptedWorkLoopTimer(); + } else { + // We now have a consistent tree. The next step is either to commit it, + // or, if something suspended, wait to commit it after a timeout. + stopFinishedWorkLoopTimer(); + var finishedWork = root.finishedWork = root.current.alternate; + root.finishedExpirationTime = expirationTime; + finishConcurrentRender(root, finishedWork, workInProgressRootExitStatus, expirationTime); + } + + ensureRootIsScheduled(root); + + if (root.callbackNode === originalCallbackNode) { + // The task node scheduled for this root is the same one that's + // currently executed. Need to return a continuation. + return performConcurrentWorkOnRoot.bind(null, root); + } + } + } + + return null; + } + + function finishConcurrentRender(root, finishedWork, exitStatus, expirationTime) { + // Set this to null to indicate there's no in-progress render. + workInProgressRoot = null; + + switch (exitStatus) { + case RootIncomplete: + case RootFatalErrored: + { + { + { + throw Error( "Root did not complete. This is a bug in React." ); + } + } + } + // Flow knows about invariant, so it complains if I add a break + // statement, but eslint doesn't know about invariant, so it complains + // if I do. eslint-disable-next-line no-fallthrough + + case RootErrored: + { + // If this was an async render, the error may have happened due to + // a mutation in a concurrent event. Try rendering one more time, + // synchronously, to see if the error goes away. If there are + // lower priority updates, let's include those, too, in case they + // fix the inconsistency. Render at Idle to include all updates. + // If it was Idle or Never or some not-yet-invented time, render + // at that time. + markRootExpiredAtTime(root, expirationTime > Idle ? Idle : expirationTime); // We assume that this second render pass will be synchronous + // and therefore not hit this path again. + + break; + } + + case RootSuspended: + { + markRootSuspendedAtTime(root, expirationTime); + var lastSuspendedTime = root.lastSuspendedTime; + + if (expirationTime === lastSuspendedTime) { + root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork); + } // We have an acceptable loading state. We need to figure out if we + // should immediately commit it or wait a bit. + // If we have processed new updates during this render, we may now + // have a new loading state ready. We want to ensure that we commit + // that as soon as possible. + + + var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync; + + if (hasNotProcessedNewUpdates && // do not delay if we're inside an act() scope + !( IsThisRendererActing.current)) { + // If we have not processed any new updates during this pass, then + // this is either a retry of an existing fallback state or a + // hidden tree. Hidden trees shouldn't be batched with other work + // and after that's fixed it can only be a retry. We're going to + // throttle committing retries so that we don't show too many + // loading states too quickly. + var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time. + + if (msUntilTimeout > 10) { + if (workInProgressRootHasPendingPing) { + var lastPingedTime = root.lastPingedTime; + + if (lastPingedTime === NoWork || lastPingedTime >= expirationTime) { + // This render was pinged but we didn't get to restart + // earlier so try restarting now instead. + root.lastPingedTime = expirationTime; + prepareFreshStack(root, expirationTime); + break; + } + } + + var nextTime = getNextRootExpirationTimeToWorkOn(root); + + if (nextTime !== NoWork && nextTime !== expirationTime) { + // There's additional work on this root. + break; + } + + if (lastSuspendedTime !== NoWork && lastSuspendedTime !== expirationTime) { + // We should prefer to render the fallback of at the last + // suspended level. Ping the last suspended level to try + // rendering it again. + root.lastPingedTime = lastSuspendedTime; + break; + } // The render is suspended, it hasn't timed out, and there's no + // lower priority work to do. Instead of committing the fallback + // immediately, wait for more data to arrive. + + + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout); + break; + } + } // The work expired. Commit immediately. + + + commitRoot(root); + break; + } + + case RootSuspendedWithDelay: + { + markRootSuspendedAtTime(root, expirationTime); + var _lastSuspendedTime = root.lastSuspendedTime; + + if (expirationTime === _lastSuspendedTime) { + root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork); + } + + if ( // do not delay if we're inside an act() scope + !( IsThisRendererActing.current)) { + // We're suspended in a state that should be avoided. We'll try to + // avoid committing it for as long as the timeouts let us. + if (workInProgressRootHasPendingPing) { + var _lastPingedTime = root.lastPingedTime; + + if (_lastPingedTime === NoWork || _lastPingedTime >= expirationTime) { + // This render was pinged but we didn't get to restart earlier + // so try restarting now instead. + root.lastPingedTime = expirationTime; + prepareFreshStack(root, expirationTime); + break; + } + } + + var _nextTime = getNextRootExpirationTimeToWorkOn(root); + + if (_nextTime !== NoWork && _nextTime !== expirationTime) { + // There's additional work on this root. + break; + } + + if (_lastSuspendedTime !== NoWork && _lastSuspendedTime !== expirationTime) { + // We should prefer to render the fallback of at the last + // suspended level. Ping the last suspended level to try + // rendering it again. + root.lastPingedTime = _lastSuspendedTime; + break; + } + + var _msUntilTimeout; + + if (workInProgressRootLatestSuspenseTimeout !== Sync) { + // We have processed a suspense config whose expiration time we + // can use as the timeout. + _msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now(); + } else if (workInProgressRootLatestProcessedExpirationTime === Sync) { + // This should never normally happen because only new updates + // cause delayed states, so we should have processed something. + // However, this could also happen in an offscreen tree. + _msUntilTimeout = 0; + } else { + // If we don't have a suspense config, we're going to use a + // heuristic to determine how long we can suspend. + var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime); + var currentTimeMs = now(); + var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs; + var timeElapsed = currentTimeMs - eventTimeMs; + + if (timeElapsed < 0) { + // We get this wrong some time since we estimate the time. + timeElapsed = 0; + } + + _msUntilTimeout = jnd(timeElapsed) - timeElapsed; // Clamp the timeout to the expiration time. TODO: Once the + // event time is exact instead of inferred from expiration time + // we don't need this. + + if (timeUntilExpirationMs < _msUntilTimeout) { + _msUntilTimeout = timeUntilExpirationMs; + } + } // Don't bother with a very short suspense time. + + + if (_msUntilTimeout > 10) { + // The render is suspended, it hasn't timed out, and there's no + // lower priority work to do. Instead of committing the fallback + // immediately, wait for more data to arrive. + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout); + break; + } + } // The work expired. Commit immediately. + + + commitRoot(root); + break; + } + + case RootCompleted: + { + // The work completed. Ready to commit. + if ( // do not delay if we're inside an act() scope + !( IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) { + // If we have exceeded the minimum loading delay, which probably + // means we have shown a spinner already, we might have to suspend + // a bit longer to ensure that the spinner is shown for + // enough time. + var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig); + + if (_msUntilTimeout2 > 10) { + markRootSuspendedAtTime(root, expirationTime); + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2); + break; + } + } + + commitRoot(root); + break; + } + + default: + { + { + { + throw Error( "Unknown root exit status." ); + } + } + } + } + } // This is the entry point for synchronous tasks that don't go + // through Scheduler + + + function performSyncWorkOnRoot(root) { + // Check if there's expired work on this root. Otherwise, render at Sync. + var lastExpiredTime = root.lastExpiredTime; + var expirationTime = lastExpiredTime !== NoWork ? lastExpiredTime : Sync; + + if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) { + { + throw Error( "Should not already be working." ); + } + } + + flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack + // and prepare a fresh one. Otherwise we'll continue where we left off. + + if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) { + prepareFreshStack(root, expirationTime); + startWorkOnPendingInteractions(root, expirationTime); + } // If we have a work-in-progress fiber, it means there's still work to do + // in this root. + + + if (workInProgress !== null) { + var prevExecutionContext = executionContext; + executionContext |= RenderContext; + var prevDispatcher = pushDispatcher(); + var prevInteractions = pushInteractions(root); + startWorkLoopTimer(workInProgress); + + do { + try { + workLoopSync(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (true); + + resetContextDependencies(); + executionContext = prevExecutionContext; + popDispatcher(prevDispatcher); + + { + popInteractions(prevInteractions); + } + + if (workInProgressRootExitStatus === RootFatalErrored) { + var fatalError = workInProgressRootFatalError; + stopInterruptedWorkLoopTimer(); + prepareFreshStack(root, expirationTime); + markRootSuspendedAtTime(root, expirationTime); + ensureRootIsScheduled(root); + throw fatalError; + } + + if (workInProgress !== null) { + // This is a sync render, so we should have finished the whole tree. + { + { + throw Error( "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." ); + } + } + } else { + // We now have a consistent tree. Because this is a sync render, we + // will commit it even if something suspended. + stopFinishedWorkLoopTimer(); + root.finishedWork = root.current.alternate; + root.finishedExpirationTime = expirationTime; + finishSyncRender(root); + } // Before exiting, make sure there's a callback scheduled for the next + // pending level. + + + ensureRootIsScheduled(root); + } + + return null; + } + + function finishSyncRender(root) { + // Set this to null to indicate there's no in-progress render. + workInProgressRoot = null; + commitRoot(root); + } + function flushDiscreteUpdates() { + // TODO: Should be able to flush inside batchedUpdates, but not inside `act`. + // However, `act` uses `batchedUpdates`, so there's no way to distinguish + // those two cases. Need to fix this before exposing flushDiscreteUpdates + // as a public API. + if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) { + { + if ((executionContext & RenderContext) !== NoContext) { + error('unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.'); + } + } // We're already rendering, so we can't synchronously flush pending work. + // This is probably a nested event dispatch triggered by a lifecycle/effect, + // like `el.focus()`. Exit. + + + return; + } + + flushPendingDiscreteUpdates(); // If the discrete updates scheduled passive effects, flush them now so that + // they fire before the next serial event. + + flushPassiveEffects(); + } + function syncUpdates(fn, a, b, c) { + return runWithPriority$1(ImmediatePriority, fn.bind(null, a, b, c)); + } + + function flushPendingDiscreteUpdates() { + if (rootsWithPendingDiscreteUpdates !== null) { + // For each root with pending discrete updates, schedule a callback to + // immediately flush them. + var roots = rootsWithPendingDiscreteUpdates; + rootsWithPendingDiscreteUpdates = null; + roots.forEach(function (expirationTime, root) { + markRootExpiredAtTime(root, expirationTime); + ensureRootIsScheduled(root); + }); // Now flush the immediate queue. + + flushSyncCallbackQueue(); + } + } + + function batchedUpdates$1(fn, a) { + var prevExecutionContext = executionContext; + executionContext |= BatchedContext; + + try { + return fn(a); + } finally { + executionContext = prevExecutionContext; + + if (executionContext === NoContext) { + // Flush the immediate callbacks that were scheduled during this batch + flushSyncCallbackQueue(); + } + } + } + function batchedEventUpdates$1(fn, a) { + var prevExecutionContext = executionContext; + executionContext |= EventContext; + + try { + return fn(a); + } finally { + executionContext = prevExecutionContext; + + if (executionContext === NoContext) { + // Flush the immediate callbacks that were scheduled during this batch + flushSyncCallbackQueue(); + } + } + } + function discreteUpdates$1(fn, a, b, c, d) { + var prevExecutionContext = executionContext; + executionContext |= DiscreteEventContext; + + try { + // Should this + return runWithPriority$1(UserBlockingPriority$1, fn.bind(null, a, b, c, d)); + } finally { + executionContext = prevExecutionContext; + + if (executionContext === NoContext) { + // Flush the immediate callbacks that were scheduled during this batch + flushSyncCallbackQueue(); + } + } + } + function unbatchedUpdates(fn, a) { + var prevExecutionContext = executionContext; + executionContext &= ~BatchedContext; + executionContext |= LegacyUnbatchedContext; + + try { + return fn(a); + } finally { + executionContext = prevExecutionContext; + + if (executionContext === NoContext) { + // Flush the immediate callbacks that were scheduled during this batch + flushSyncCallbackQueue(); + } + } + } + function flushSync(fn, a) { + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + { + { + throw Error( "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering." ); + } + } + } + + var prevExecutionContext = executionContext; + executionContext |= BatchedContext; + + try { + return runWithPriority$1(ImmediatePriority, fn.bind(null, a)); + } finally { + executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch. + // Note that this will happen even if batchedUpdates is higher up + // the stack. + + flushSyncCallbackQueue(); + } + } + + function prepareFreshStack(root, expirationTime) { + root.finishedWork = null; + root.finishedExpirationTime = NoWork; + var timeoutHandle = root.timeoutHandle; + + if (timeoutHandle !== noTimeout) { + // The root previous suspended and scheduled a timeout to commit a fallback + // state. Now that we have additional work, cancel the timeout. + root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above + + cancelTimeout(timeoutHandle); + } + + if (workInProgress !== null) { + var interruptedWork = workInProgress.return; + + while (interruptedWork !== null) { + unwindInterruptedWork(interruptedWork); + interruptedWork = interruptedWork.return; + } + } + + workInProgressRoot = root; + workInProgress = createWorkInProgress(root.current, null); + renderExpirationTime$1 = expirationTime; + workInProgressRootExitStatus = RootIncomplete; + workInProgressRootFatalError = null; + workInProgressRootLatestProcessedExpirationTime = Sync; + workInProgressRootLatestSuspenseTimeout = Sync; + workInProgressRootCanSuspendUsingConfig = null; + workInProgressRootNextUnprocessedUpdateTime = NoWork; + workInProgressRootHasPendingPing = false; + + { + spawnedWorkDuringRender = null; + } + + { + ReactStrictModeWarnings.discardPendingWarnings(); + } + } + + function handleError(root, thrownValue) { + do { + try { + // Reset module-level state that was set during the render phase. + resetContextDependencies(); + resetHooksAfterThrow(); + resetCurrentFiber(); + + if (workInProgress === null || workInProgress.return === null) { + // Expected to be working on a non-root fiber. This is a fatal error + // because there's no ancestor that can handle it; the root is + // supposed to capture all errors that weren't caught by an error + // boundary. + workInProgressRootExitStatus = RootFatalErrored; + workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next + // sibling, or the parent if there are no siblings. But since the root + // has no siblings nor a parent, we set it to null. Usually this is + // handled by `completeUnitOfWork` or `unwindWork`, but since we're + // interntionally not calling those, we need set it here. + // TODO: Consider calling `unwindWork` to pop the contexts. + + workInProgress = null; + return null; + } + + if (enableProfilerTimer && workInProgress.mode & ProfileMode) { + // Record the time spent rendering before an error was thrown. This + // avoids inaccurate Profiler durations in the case of a + // suspended render. + stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true); + } + + throwException(root, workInProgress.return, workInProgress, thrownValue, renderExpirationTime$1); + workInProgress = completeUnitOfWork(workInProgress); + } catch (yetAnotherThrownValue) { + // Something in the return path also threw. + thrownValue = yetAnotherThrownValue; + continue; + } // Return to the normal work loop. + + + return; + } while (true); + } + + function pushDispatcher(root) { + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + + if (prevDispatcher === null) { + // The React isomorphic package does not include a default dispatcher. + // Instead the first renderer will lazily attach one, in order to give + // nicer error messages. + return ContextOnlyDispatcher; + } else { + return prevDispatcher; + } + } + + function popDispatcher(prevDispatcher) { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + + function pushInteractions(root) { + { + var prevInteractions = __interactionsRef.current; + __interactionsRef.current = root.memoizedInteractions; + return prevInteractions; + } + } + + function popInteractions(prevInteractions) { + { + __interactionsRef.current = prevInteractions; + } + } + + function markCommitTimeOfFallback() { + globalMostRecentFallbackTime = now(); + } + function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) { + if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Idle) { + workInProgressRootLatestProcessedExpirationTime = expirationTime; + } + + if (suspenseConfig !== null) { + if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Idle) { + workInProgressRootLatestSuspenseTimeout = expirationTime; // Most of the time we only have one config and getting wrong is not bad. + + workInProgressRootCanSuspendUsingConfig = suspenseConfig; + } + } + } + function markUnprocessedUpdateTime(expirationTime) { + if (expirationTime > workInProgressRootNextUnprocessedUpdateTime) { + workInProgressRootNextUnprocessedUpdateTime = expirationTime; + } + } + function renderDidSuspend() { + if (workInProgressRootExitStatus === RootIncomplete) { + workInProgressRootExitStatus = RootSuspended; + } + } + function renderDidSuspendDelayIfPossible() { + if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) { + workInProgressRootExitStatus = RootSuspendedWithDelay; + } // Check if there's a lower priority update somewhere else in the tree. + + + if (workInProgressRootNextUnprocessedUpdateTime !== NoWork && workInProgressRoot !== null) { + // Mark the current render as suspended, and then mark that there's a + // pending update. + // TODO: This should immediately interrupt the current render, instead + // of waiting until the next time we yield. + markRootSuspendedAtTime(workInProgressRoot, renderExpirationTime$1); + markRootUpdatedAtTime(workInProgressRoot, workInProgressRootNextUnprocessedUpdateTime); + } + } + function renderDidError() { + if (workInProgressRootExitStatus !== RootCompleted) { + workInProgressRootExitStatus = RootErrored; + } + } // Called during render to determine if anything has suspended. + // Returns false if we're not sure. + + function renderHasNotSuspendedYet() { + // If something errored or completed, we can't really be sure, + // so those are false. + return workInProgressRootExitStatus === RootIncomplete; + } + + function inferTimeFromExpirationTime(expirationTime) { + // We don't know exactly when the update was scheduled, but we can infer an + // approximate start time from the expiration time. + var earliestExpirationTimeMs = expirationTimeToMs(expirationTime); + return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION; + } + + function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) { + // We don't know exactly when the update was scheduled, but we can infer an + // approximate start time from the expiration time by subtracting the timeout + // that was added to the event time. + var earliestExpirationTimeMs = expirationTimeToMs(expirationTime); + return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION); + } // The work loop is an extremely hot path. Tell Closure not to inline it. + + /** @noinline */ + + + function workLoopSync() { + // Already timed out, so perform work without checking if we need to yield. + while (workInProgress !== null) { + workInProgress = performUnitOfWork(workInProgress); + } + } + /** @noinline */ + + + function workLoopConcurrent() { + // Perform work until Scheduler asks us to yield + while (workInProgress !== null && !shouldYield()) { + workInProgress = performUnitOfWork(workInProgress); + } + } + + function performUnitOfWork(unitOfWork) { + // The current, flushed, state of this fiber is the alternate. Ideally + // nothing should rely on this, but relying on it here means that we don't + // need an additional field on the work in progress. + var current = unitOfWork.alternate; + startWorkTimer(unitOfWork); + setCurrentFiber(unitOfWork); + var next; + + if ( (unitOfWork.mode & ProfileMode) !== NoMode) { + startProfilerTimer(unitOfWork); + next = beginWork$1(current, unitOfWork, renderExpirationTime$1); + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true); + } else { + next = beginWork$1(current, unitOfWork, renderExpirationTime$1); + } + + resetCurrentFiber(); + unitOfWork.memoizedProps = unitOfWork.pendingProps; + + if (next === null) { + // If this doesn't spawn new work, complete the current work. + next = completeUnitOfWork(unitOfWork); + } + + ReactCurrentOwner$2.current = null; + return next; + } + + function completeUnitOfWork(unitOfWork) { + // Attempt to complete the current unit of work, then move to the next + // sibling. If there are no more siblings, return to the parent fiber. + workInProgress = unitOfWork; + + do { + // The current, flushed, state of this fiber is the alternate. Ideally + // nothing should rely on this, but relying on it here means that we don't + // need an additional field on the work in progress. + var current = workInProgress.alternate; + var returnFiber = workInProgress.return; // Check if the work completed or if something threw. + + if ((workInProgress.effectTag & Incomplete) === NoEffect) { + setCurrentFiber(workInProgress); + var next = void 0; + + if ( (workInProgress.mode & ProfileMode) === NoMode) { + next = completeWork(current, workInProgress, renderExpirationTime$1); + } else { + startProfilerTimer(workInProgress); + next = completeWork(current, workInProgress, renderExpirationTime$1); // Update render duration assuming we didn't error. + + stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false); + } + + stopWorkTimer(workInProgress); + resetCurrentFiber(); + resetChildExpirationTime(workInProgress); + + if (next !== null) { + // Completing this fiber spawned new work. Work on that next. + return next; + } + + if (returnFiber !== null && // Do not append effects to parents if a sibling failed to complete + (returnFiber.effectTag & Incomplete) === NoEffect) { + // Append all the effects of the subtree and this fiber onto the effect + // list of the parent. The completion order of the children affects the + // side-effect order. + if (returnFiber.firstEffect === null) { + returnFiber.firstEffect = workInProgress.firstEffect; + } + + if (workInProgress.lastEffect !== null) { + if (returnFiber.lastEffect !== null) { + returnFiber.lastEffect.nextEffect = workInProgress.firstEffect; + } + + returnFiber.lastEffect = workInProgress.lastEffect; + } // If this fiber had side-effects, we append it AFTER the children's + // side-effects. We can perform certain side-effects earlier if needed, + // by doing multiple passes over the effect list. We don't want to + // schedule our own side-effect on our own list because if end up + // reusing children we'll schedule this effect onto itself since we're + // at the end. + + + var effectTag = workInProgress.effectTag; // Skip both NoWork and PerformedWork tags when creating the effect + // list. PerformedWork effect is read by React DevTools but shouldn't be + // committed. + + if (effectTag > PerformedWork) { + if (returnFiber.lastEffect !== null) { + returnFiber.lastEffect.nextEffect = workInProgress; + } else { + returnFiber.firstEffect = workInProgress; + } + + returnFiber.lastEffect = workInProgress; + } + } + } else { + // This fiber did not complete because something threw. Pop values off + // the stack without entering the complete phase. If this is a boundary, + // capture values if possible. + var _next = unwindWork(workInProgress); // Because this fiber did not complete, don't reset its expiration time. + + + if ( (workInProgress.mode & ProfileMode) !== NoMode) { + // Record the render duration for the fiber that errored. + stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false); // Include the time spent working on failed children before continuing. + + var actualDuration = workInProgress.actualDuration; + var child = workInProgress.child; + + while (child !== null) { + actualDuration += child.actualDuration; + child = child.sibling; + } + + workInProgress.actualDuration = actualDuration; + } + + if (_next !== null) { + // If completing this work spawned new work, do that next. We'll come + // back here again. + // Since we're restarting, remove anything that is not a host effect + // from the effect tag. + // TODO: The name stopFailedWorkTimer is misleading because Suspense + // also captures and restarts. + stopFailedWorkTimer(workInProgress); + _next.effectTag &= HostEffectMask; + return _next; + } + + stopWorkTimer(workInProgress); + + if (returnFiber !== null) { + // Mark the parent fiber as incomplete and clear its effect list. + returnFiber.firstEffect = returnFiber.lastEffect = null; + returnFiber.effectTag |= Incomplete; + } + } + + var siblingFiber = workInProgress.sibling; + + if (siblingFiber !== null) { + // If there is more work to do in this returnFiber, do that next. + return siblingFiber; + } // Otherwise, return to the parent + + + workInProgress = returnFiber; + } while (workInProgress !== null); // We've reached the root. + + + if (workInProgressRootExitStatus === RootIncomplete) { + workInProgressRootExitStatus = RootCompleted; + } + + return null; + } + + function getRemainingExpirationTime(fiber) { + var updateExpirationTime = fiber.expirationTime; + var childExpirationTime = fiber.childExpirationTime; + return updateExpirationTime > childExpirationTime ? updateExpirationTime : childExpirationTime; + } + + function resetChildExpirationTime(completedWork) { + if (renderExpirationTime$1 !== Never && completedWork.childExpirationTime === Never) { + // The children of this component are hidden. Don't bubble their + // expiration times. + return; + } + + var newChildExpirationTime = NoWork; // Bubble up the earliest expiration time. + + if ( (completedWork.mode & ProfileMode) !== NoMode) { + // In profiling mode, resetChildExpirationTime is also used to reset + // profiler durations. + var actualDuration = completedWork.actualDuration; + var treeBaseDuration = completedWork.selfBaseDuration; // When a fiber is cloned, its actualDuration is reset to 0. This value will + // only be updated if work is done on the fiber (i.e. it doesn't bailout). + // When work is done, it should bubble to the parent's actualDuration. If + // the fiber has not been cloned though, (meaning no work was done), then + // this value will reflect the amount of time spent working on a previous + // render. In that case it should not bubble. We determine whether it was + // cloned by comparing the child pointer. + + var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child; + var child = completedWork.child; + + while (child !== null) { + var childUpdateExpirationTime = child.expirationTime; + var childChildExpirationTime = child.childExpirationTime; + + if (childUpdateExpirationTime > newChildExpirationTime) { + newChildExpirationTime = childUpdateExpirationTime; + } + + if (childChildExpirationTime > newChildExpirationTime) { + newChildExpirationTime = childChildExpirationTime; + } + + if (shouldBubbleActualDurations) { + actualDuration += child.actualDuration; + } + + treeBaseDuration += child.treeBaseDuration; + child = child.sibling; + } + + completedWork.actualDuration = actualDuration; + completedWork.treeBaseDuration = treeBaseDuration; + } else { + var _child = completedWork.child; + + while (_child !== null) { + var _childUpdateExpirationTime = _child.expirationTime; + var _childChildExpirationTime = _child.childExpirationTime; + + if (_childUpdateExpirationTime > newChildExpirationTime) { + newChildExpirationTime = _childUpdateExpirationTime; + } + + if (_childChildExpirationTime > newChildExpirationTime) { + newChildExpirationTime = _childChildExpirationTime; + } + + _child = _child.sibling; + } + } + + completedWork.childExpirationTime = newChildExpirationTime; + } + + function commitRoot(root) { + var renderPriorityLevel = getCurrentPriorityLevel(); + runWithPriority$1(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel)); + return null; + } + + function commitRootImpl(root, renderPriorityLevel) { + do { + // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which + // means `flushPassiveEffects` will sometimes result in additional + // passive effects. So we need to keep flushing in a loop until there are + // no more pending effects. + // TODO: Might be better if `flushPassiveEffects` did not automatically + // flush synchronous work at the end, to avoid factoring hazards like this. + flushPassiveEffects(); + } while (rootWithPendingPassiveEffects !== null); + + flushRenderPhaseStrictModeWarningsInDEV(); + + if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) { + { + throw Error( "Should not already be working." ); + } + } + + var finishedWork = root.finishedWork; + var expirationTime = root.finishedExpirationTime; + + if (finishedWork === null) { + return null; + } + + root.finishedWork = null; + root.finishedExpirationTime = NoWork; + + if (!(finishedWork !== root.current)) { + { + throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); + } + } // commitRoot never returns a continuation; it always finishes synchronously. + // So we can clear these now to allow a new callback to be scheduled. + + + root.callbackNode = null; + root.callbackExpirationTime = NoWork; + root.callbackPriority = NoPriority; + root.nextKnownPendingLevel = NoWork; + startCommitTimer(); // Update the first and last pending times on this root. The new first + // pending time is whatever is left on the root fiber. + + var remainingExpirationTimeBeforeCommit = getRemainingExpirationTime(finishedWork); + markRootFinishedAtTime(root, expirationTime, remainingExpirationTimeBeforeCommit); + + if (root === workInProgressRoot) { + // We can reset these now that they are finished. + workInProgressRoot = null; + workInProgress = null; + renderExpirationTime$1 = NoWork; + } // This indicates that the last root we worked on is not the same one that + // we're committing now. This most commonly happens when a suspended root + // times out. + // Get the list of effects. + + + var firstEffect; + + if (finishedWork.effectTag > PerformedWork) { + // A fiber's effect list consists only of its children, not itself. So if + // the root has an effect, we need to add it to the end of the list. The + // resulting list is the set that would belong to the root's parent, if it + // had one; that is, all the effects in the tree including the root. + if (finishedWork.lastEffect !== null) { + finishedWork.lastEffect.nextEffect = finishedWork; + firstEffect = finishedWork.firstEffect; + } else { + firstEffect = finishedWork; + } + } else { + // There is no effect on the root. + firstEffect = finishedWork.firstEffect; + } + + if (firstEffect !== null) { + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + var prevInteractions = pushInteractions(root); // Reset this to null before calling lifecycles + + ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass + // of the effect list for each phase: all mutation effects come before all + // layout effects, and so on. + // The first phase a "before mutation" phase. We use this phase to read the + // state of the host tree right before we mutate it. This is where + // getSnapshotBeforeUpdate is called. + + startCommitSnapshotEffectsTimer(); + prepareForCommit(root.containerInfo); + nextEffect = firstEffect; + + do { + { + invokeGuardedCallback(null, commitBeforeMutationEffects, null); + + if (hasCaughtError()) { + if (!(nextEffect !== null)) { + { + throw Error( "Should be working on an effect." ); + } + } + + var error = clearCaughtError(); + captureCommitPhaseError(nextEffect, error); + nextEffect = nextEffect.nextEffect; + } + } + } while (nextEffect !== null); + + stopCommitSnapshotEffectsTimer(); + + { + // Mark the current commit time to be shared by all Profilers in this + // batch. This enables them to be grouped later. + recordCommitTime(); + } // The next phase is the mutation phase, where we mutate the host tree. + + + startCommitHostEffectsTimer(); + nextEffect = firstEffect; + + do { + { + invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel); + + if (hasCaughtError()) { + if (!(nextEffect !== null)) { + { + throw Error( "Should be working on an effect." ); + } + } + + var _error = clearCaughtError(); + + captureCommitPhaseError(nextEffect, _error); + nextEffect = nextEffect.nextEffect; + } + } + } while (nextEffect !== null); + + stopCommitHostEffectsTimer(); + resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after + // the mutation phase, so that the previous tree is still current during + // componentWillUnmount, but before the layout phase, so that the finished + // work is current during componentDidMount/Update. + + root.current = finishedWork; // The next phase is the layout phase, where we call effects that read + // the host tree after it's been mutated. The idiomatic use case for this is + // layout, but class component lifecycles also fire here for legacy reasons. + + startCommitLifeCyclesTimer(); + nextEffect = firstEffect; + + do { + { + invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime); + + if (hasCaughtError()) { + if (!(nextEffect !== null)) { + { + throw Error( "Should be working on an effect." ); + } + } + + var _error2 = clearCaughtError(); + + captureCommitPhaseError(nextEffect, _error2); + nextEffect = nextEffect.nextEffect; + } + } + } while (nextEffect !== null); + + stopCommitLifeCyclesTimer(); + nextEffect = null; // Tell Scheduler to yield at the end of the frame, so the browser has an + // opportunity to paint. + + requestPaint(); + + { + popInteractions(prevInteractions); + } + + executionContext = prevExecutionContext; + } else { + // No effects. + root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were + // no effects. + // TODO: Maybe there's a better way to report this. + + startCommitSnapshotEffectsTimer(); + stopCommitSnapshotEffectsTimer(); + + { + recordCommitTime(); + } + + startCommitHostEffectsTimer(); + stopCommitHostEffectsTimer(); + startCommitLifeCyclesTimer(); + stopCommitLifeCyclesTimer(); + } + + stopCommitTimer(); + var rootDidHavePassiveEffects = rootDoesHavePassiveEffects; + + if (rootDoesHavePassiveEffects) { + // This commit has passive effects. Stash a reference to them. But don't + // schedule a callback until after flushing layout work. + rootDoesHavePassiveEffects = false; + rootWithPendingPassiveEffects = root; + pendingPassiveEffectsExpirationTime = expirationTime; + pendingPassiveEffectsRenderPriority = renderPriorityLevel; + } else { + // We are done with the effect chain at this point so let's clear the + // nextEffect pointers to assist with GC. If we have passive effects, we'll + // clear this in flushPassiveEffects. + nextEffect = firstEffect; + + while (nextEffect !== null) { + var nextNextEffect = nextEffect.nextEffect; + nextEffect.nextEffect = null; + nextEffect = nextNextEffect; + } + } // Check if there's remaining work on this root + + + var remainingExpirationTime = root.firstPendingTime; + + if (remainingExpirationTime !== NoWork) { + { + if (spawnedWorkDuringRender !== null) { + var expirationTimes = spawnedWorkDuringRender; + spawnedWorkDuringRender = null; + + for (var i = 0; i < expirationTimes.length; i++) { + scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions); + } + } + + schedulePendingInteractions(root, remainingExpirationTime); + } + } else { + // If there's no remaining work, we can clear the set of already failed + // error boundaries. + legacyErrorBoundariesThatAlreadyFailed = null; + } + + { + if (!rootDidHavePassiveEffects) { + // If there are no passive effects, then we can complete the pending interactions. + // Otherwise, we'll wait until after the passive effects are flushed. + // Wait to do this until after remaining work has been scheduled, + // so that we don't prematurely signal complete for interactions when there's e.g. hidden work. + finishPendingInteractions(root, expirationTime); + } + } + + if (remainingExpirationTime === Sync) { + // Count the number of times the root synchronously re-renders without + // finishing. If there are too many, it indicates an infinite update loop. + if (root === rootWithNestedUpdates) { + nestedUpdateCount++; + } else { + nestedUpdateCount = 0; + rootWithNestedUpdates = root; + } + } else { + nestedUpdateCount = 0; + } + + onCommitRoot(finishedWork.stateNode, expirationTime); // Always call this before exiting `commitRoot`, to ensure that any + // additional work on this root is scheduled. + + ensureRootIsScheduled(root); + + if (hasUncaughtError) { + hasUncaughtError = false; + var _error3 = firstUncaughtError; + firstUncaughtError = null; + throw _error3; + } + + if ((executionContext & LegacyUnbatchedContext) !== NoContext) { + // This is a legacy edge case. We just committed the initial mount of + // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired + // synchronously, but layout updates should be deferred until the end + // of the batch. + return null; + } // If layout work was scheduled, flush it now. + + + flushSyncCallbackQueue(); + return null; + } + + function commitBeforeMutationEffects() { + while (nextEffect !== null) { + var effectTag = nextEffect.effectTag; + + if ((effectTag & Snapshot) !== NoEffect) { + setCurrentFiber(nextEffect); + recordEffect(); + var current = nextEffect.alternate; + commitBeforeMutationLifeCycles(current, nextEffect); + resetCurrentFiber(); + } + + if ((effectTag & Passive) !== NoEffect) { + // If there are passive effects, schedule a callback to flush at + // the earliest opportunity. + if (!rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = true; + scheduleCallback(NormalPriority, function () { + flushPassiveEffects(); + return null; + }); + } + } + + nextEffect = nextEffect.nextEffect; + } + } + + function commitMutationEffects(root, renderPriorityLevel) { + // TODO: Should probably move the bulk of this function to commitWork. + while (nextEffect !== null) { + setCurrentFiber(nextEffect); + var effectTag = nextEffect.effectTag; + + if (effectTag & ContentReset) { + commitResetTextContent(nextEffect); + } + + if (effectTag & Ref) { + var current = nextEffect.alternate; + + if (current !== null) { + commitDetachRef(current); + } + } // The following switch statement is only concerned about placement, + // updates, and deletions. To avoid needing to add a case for every possible + // bitmap value, we remove the secondary effects from the effect tag and + // switch on that value. + + + var primaryEffectTag = effectTag & (Placement | Update | Deletion | Hydrating); + + switch (primaryEffectTag) { + case Placement: + { + commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is + // inserted, before any life-cycles like componentDidMount gets called. + // TODO: findDOMNode doesn't rely on this any more but isMounted does + // and isMounted is deprecated anyway so we should be able to kill this. + + nextEffect.effectTag &= ~Placement; + break; + } + + case PlacementAndUpdate: + { + // Placement + commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is + // inserted, before any life-cycles like componentDidMount gets called. + + nextEffect.effectTag &= ~Placement; // Update + + var _current = nextEffect.alternate; + commitWork(_current, nextEffect); + break; + } + + case Hydrating: + { + nextEffect.effectTag &= ~Hydrating; + break; + } + + case HydratingAndUpdate: + { + nextEffect.effectTag &= ~Hydrating; // Update + + var _current2 = nextEffect.alternate; + commitWork(_current2, nextEffect); + break; + } + + case Update: + { + var _current3 = nextEffect.alternate; + commitWork(_current3, nextEffect); + break; + } + + case Deletion: + { + commitDeletion(root, nextEffect, renderPriorityLevel); + break; + } + } // TODO: Only record a mutation effect if primaryEffectTag is non-zero. + + + recordEffect(); + resetCurrentFiber(); + nextEffect = nextEffect.nextEffect; + } + } + + function commitLayoutEffects(root, committedExpirationTime) { + // TODO: Should probably move the bulk of this function to commitWork. + while (nextEffect !== null) { + setCurrentFiber(nextEffect); + var effectTag = nextEffect.effectTag; + + if (effectTag & (Update | Callback)) { + recordEffect(); + var current = nextEffect.alternate; + commitLifeCycles(root, current, nextEffect); + } + + if (effectTag & Ref) { + recordEffect(); + commitAttachRef(nextEffect); + } + + resetCurrentFiber(); + nextEffect = nextEffect.nextEffect; + } + } + + function flushPassiveEffects() { + if (pendingPassiveEffectsRenderPriority !== NoPriority) { + var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority ? NormalPriority : pendingPassiveEffectsRenderPriority; + pendingPassiveEffectsRenderPriority = NoPriority; + return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl); + } + } + + function flushPassiveEffectsImpl() { + if (rootWithPendingPassiveEffects === null) { + return false; + } + + var root = rootWithPendingPassiveEffects; + var expirationTime = pendingPassiveEffectsExpirationTime; + rootWithPendingPassiveEffects = null; + pendingPassiveEffectsExpirationTime = NoWork; + + if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) { + { + throw Error( "Cannot flush passive effects while already rendering." ); + } + } + + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + var prevInteractions = pushInteractions(root); + + { + // Note: This currently assumes there are no passive effects on the root fiber + // because the root is not part of its own effect list. + // This could change in the future. + var _effect2 = root.current.firstEffect; + + while (_effect2 !== null) { + { + setCurrentFiber(_effect2); + invokeGuardedCallback(null, commitPassiveHookEffects, null, _effect2); + + if (hasCaughtError()) { + if (!(_effect2 !== null)) { + { + throw Error( "Should be working on an effect." ); + } + } + + var _error5 = clearCaughtError(); + + captureCommitPhaseError(_effect2, _error5); + } + + resetCurrentFiber(); + } + + var nextNextEffect = _effect2.nextEffect; // Remove nextEffect pointer to assist GC + + _effect2.nextEffect = null; + _effect2 = nextNextEffect; + } + } + + { + popInteractions(prevInteractions); + finishPendingInteractions(root, expirationTime); + } + + executionContext = prevExecutionContext; + flushSyncCallbackQueue(); // If additional passive effects were scheduled, increment a counter. If this + // exceeds the limit, we'll fire a warning. + + nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1; + return true; + } + + function isAlreadyFailedLegacyErrorBoundary(instance) { + return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance); + } + function markLegacyErrorBoundaryAsFailed(instance) { + if (legacyErrorBoundariesThatAlreadyFailed === null) { + legacyErrorBoundariesThatAlreadyFailed = new Set([instance]); + } else { + legacyErrorBoundariesThatAlreadyFailed.add(instance); + } + } + + function prepareToThrowUncaughtError(error) { + if (!hasUncaughtError) { + hasUncaughtError = true; + firstUncaughtError = error; + } + } + + var onUncaughtError = prepareToThrowUncaughtError; + + function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { + var errorInfo = createCapturedValue(error, sourceFiber); + var update = createRootErrorUpdate(rootFiber, errorInfo, Sync); + enqueueUpdate(rootFiber, update); + var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync); + + if (root !== null) { + ensureRootIsScheduled(root); + schedulePendingInteractions(root, Sync); + } + } + + function captureCommitPhaseError(sourceFiber, error) { + if (sourceFiber.tag === HostRoot) { + // Error was thrown at the root. There is no parent, so the root + // itself should capture it. + captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error); + return; + } + + var fiber = sourceFiber.return; + + while (fiber !== null) { + if (fiber.tag === HostRoot) { + captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error); + return; + } else if (fiber.tag === ClassComponent) { + var ctor = fiber.type; + var instance = fiber.stateNode; + + if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) { + var errorInfo = createCapturedValue(error, sourceFiber); + var update = createClassErrorUpdate(fiber, errorInfo, // TODO: This is always sync + Sync); + enqueueUpdate(fiber, update); + var root = markUpdateTimeFromFiberToRoot(fiber, Sync); + + if (root !== null) { + ensureRootIsScheduled(root); + schedulePendingInteractions(root, Sync); + } + + return; + } + } + + fiber = fiber.return; + } + } + function pingSuspendedRoot(root, thenable, suspendedTime) { + var pingCache = root.pingCache; + + if (pingCache !== null) { + // The thenable resolved, so we no longer need to memoize, because it will + // never be thrown again. + pingCache.delete(thenable); + } + + if (workInProgressRoot === root && renderExpirationTime$1 === suspendedTime) { + // Received a ping at the same priority level at which we're currently + // rendering. We might want to restart this render. This should mirror + // the logic of whether or not a root suspends once it completes. + // TODO: If we're rendering sync either due to Sync, Batched or expired, + // we should probably never restart. + // If we're suspended with delay, we'll always suspend so we can always + // restart. If we're suspended without any updates, it might be a retry. + // If it's early in the retry we can restart. We can't know for sure + // whether we'll eventually process an update during this render pass, + // but it's somewhat unlikely that we get to a ping before that, since + // getting to the root most update is usually very fast. + if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) { + // Restart from the root. Don't need to schedule a ping because + // we're already working on this tree. + prepareFreshStack(root, renderExpirationTime$1); + } else { + // Even though we can't restart right now, we might get an + // opportunity later. So we mark this render as having a ping. + workInProgressRootHasPendingPing = true; + } + + return; + } + + if (!isRootSuspendedAtTime(root, suspendedTime)) { + // The root is no longer suspended at this time. + return; + } + + var lastPingedTime = root.lastPingedTime; + + if (lastPingedTime !== NoWork && lastPingedTime < suspendedTime) { + // There's already a lower priority ping scheduled. + return; + } // Mark the time at which this ping was scheduled. + + + root.lastPingedTime = suspendedTime; + + ensureRootIsScheduled(root); + schedulePendingInteractions(root, suspendedTime); + } + + function retryTimedOutBoundary(boundaryFiber, retryTime) { + // The boundary fiber (a Suspense component or SuspenseList component) + // previously was rendered in its fallback state. One of the promises that + // suspended it has resolved, which means at least part of the tree was + // likely unblocked. Try rendering again, at a new expiration time. + if (retryTime === NoWork) { + var suspenseConfig = null; // Retries don't carry over the already committed update. + + var currentTime = requestCurrentTimeForUpdate(); + retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig); + } // TODO: Special case idle priority? + + + var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime); + + if (root !== null) { + ensureRootIsScheduled(root); + schedulePendingInteractions(root, retryTime); + } + } + function resolveRetryThenable(boundaryFiber, thenable) { + var retryTime = NoWork; // Default + + var retryCache; + + { + retryCache = boundaryFiber.stateNode; + } + + if (retryCache !== null) { + // The thenable resolved, so we no longer need to memoize, because it will + // never be thrown again. + retryCache.delete(thenable); + } + + retryTimedOutBoundary(boundaryFiber, retryTime); + } // Computes the next Just Noticeable Difference (JND) boundary. + // The theory is that a person can't tell the difference between small differences in time. + // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable + // difference in the experience. However, waiting for longer might mean that we can avoid + // showing an intermediate loading state. The longer we have already waited, the harder it + // is to tell small differences in time. Therefore, the longer we've already waited, + // the longer we can wait additionally. At some point we have to give up though. + // We pick a train model where the next boundary commits at a consistent schedule. + // These particular numbers are vague estimates. We expect to adjust them based on research. + + function jnd(timeElapsed) { + return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960; + } + + function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) { + var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0; + + if (busyMinDurationMs <= 0) { + return 0; + } + + var busyDelayMs = suspenseConfig.busyDelayMs | 0; // Compute the time until this render pass would expire. + + var currentTimeMs = now(); + var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig); + var timeElapsed = currentTimeMs - eventTimeMs; + + if (timeElapsed <= busyDelayMs) { + // If we haven't yet waited longer than the initial delay, we don't + // have to wait any additional time. + return 0; + } + + var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed; // This is the value that is passed to `setTimeout`. + + return msUntilTimeout; + } + + function checkForNestedUpdates() { + if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { + nestedUpdateCount = 0; + rootWithNestedUpdates = null; + + { + { + throw Error( "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops." ); + } + } + } + + { + if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) { + nestedPassiveUpdateCount = 0; + + error('Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.'); + } + } + } + + function flushRenderPhaseStrictModeWarningsInDEV() { + { + ReactStrictModeWarnings.flushLegacyContextWarning(); + + { + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); + } + } + } + + function stopFinishedWorkLoopTimer() { + var didCompleteRoot = true; + stopWorkLoopTimer(interruptedBy, didCompleteRoot); + interruptedBy = null; + } + + function stopInterruptedWorkLoopTimer() { + // TODO: Track which fiber caused the interruption. + var didCompleteRoot = false; + stopWorkLoopTimer(interruptedBy, didCompleteRoot); + interruptedBy = null; + } + + function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) { + if ( workInProgressRoot !== null && updateExpirationTime > renderExpirationTime$1) { + interruptedBy = fiberThatReceivedUpdate; + } + } + + var didWarnStateUpdateForUnmountedComponent = null; + + function warnAboutUpdateOnUnmountedFiberInDEV(fiber) { + { + var tag = fiber.tag; + + if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) { + // Only warn for user-defined components, not internal ones like Suspense. + return; + } + // the problematic code almost always lies inside that component. + + + var componentName = getComponentName(fiber.type) || 'ReactComponent'; + + if (didWarnStateUpdateForUnmountedComponent !== null) { + if (didWarnStateUpdateForUnmountedComponent.has(componentName)) { + return; + } + + didWarnStateUpdateForUnmountedComponent.add(componentName); + } else { + didWarnStateUpdateForUnmountedComponent = new Set([componentName]); + } + + error("Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', tag === ClassComponent ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber)); + } + } + + var beginWork$1; + + { + var dummyFiber = null; + + beginWork$1 = function (current, unitOfWork, expirationTime) { + // If a component throws an error, we replay it again in a synchronously + // dispatched event, so that the debugger will treat it as an uncaught + // error See ReactErrorUtils for more information. + // Before entering the begin phase, copy the work-in-progress onto a dummy + // fiber. If beginWork throws, we'll use this to reset the state. + var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork); + + try { + return beginWork(current, unitOfWork, expirationTime); + } catch (originalError) { + if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') { + // Don't replay promises. Treat everything else like an error. + throw originalError; + } // Keep this code in sync with handleError; any changes here must have + // corresponding changes there. + + + resetContextDependencies(); + resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the + // same fiber again. + // Unwind the failed stack frame + + unwindInterruptedWork(unitOfWork); // Restore the original properties of the fiber. + + assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy); + + if ( unitOfWork.mode & ProfileMode) { + // Reset the profiler timer. + startProfilerTimer(unitOfWork); + } // Run beginWork again. + + + invokeGuardedCallback(null, beginWork, null, current, unitOfWork, expirationTime); + + if (hasCaughtError()) { + var replayError = clearCaughtError(); // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`. + // Rethrow this error instead of the original one. + + throw replayError; + } else { + // This branch is reachable if the render phase is impure. + throw originalError; + } + } + }; + } + + var didWarnAboutUpdateInRender = false; + var didWarnAboutUpdateInRenderForAnotherComponent; + + { + didWarnAboutUpdateInRenderForAnotherComponent = new Set(); + } + + function warnAboutRenderPhaseUpdatesInDEV(fiber) { + { + if (isRendering && (executionContext & RenderContext) !== NoContext) { + switch (fiber.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: + { + var renderingComponentName = workInProgress && getComponentName(workInProgress.type) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed. + + var dedupeKey = renderingComponentName; + + if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) { + didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey); + var setStateComponentName = getComponentName(fiber.type) || 'Unknown'; + + error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://fb.me/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName); + } + + break; + } + + case ClassComponent: + { + if (!didWarnAboutUpdateInRender) { + error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.'); + + didWarnAboutUpdateInRender = true; + } + + break; + } + } + } + } + } // a 'shared' variable that changes when act() opens/closes in tests. + + + var IsThisRendererActing = { + current: false + }; + function warnIfNotScopedWithMatchingAct(fiber) { + { + if ( IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) { + error("It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + "import {act} from 'react-dom/test-utils';\n" + '// ...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' + "import TestRenderer from 'react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '// ...\n' + 'act(() => ...);' + '%s', getStackByFiberInDevAndProd(fiber)); + } + } + } + function warnIfNotCurrentlyActingEffectsInDEV(fiber) { + { + if ( (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) { + error('An update to %s ran an effect, but was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber)); + } + } + } + + function warnIfNotCurrentlyActingUpdatesInDEV(fiber) { + { + if ( executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) { + error('An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber)); + } + } + } + + var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV; // In tests, we want to enforce a mocked scheduler. + + var didWarnAboutUnmockedScheduler = false; // TODO Before we release concurrent mode, revisit this and decide whether a mocked + // scheduler is the actual recommendation. The alternative could be a testing build, + // a new lib, or whatever; we dunno just yet. This message is for early adopters + // to get their tests right. + + function warnIfUnmockedScheduler(fiber) { + { + if (didWarnAboutUnmockedScheduler === false && unstable_flushAllWithoutAsserting === undefined) { + if (fiber.mode & BlockingMode || fiber.mode & ConcurrentMode) { + didWarnAboutUnmockedScheduler = true; + + error('In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler'); + } + } + } + } + + function computeThreadID(root, expirationTime) { + // Interaction threads are unique per root and expiration time. + return expirationTime * 1000 + root.interactionThreadID; + } + + function markSpawnedWork(expirationTime) { + + if (spawnedWorkDuringRender === null) { + spawnedWorkDuringRender = [expirationTime]; + } else { + spawnedWorkDuringRender.push(expirationTime); + } + } + + function scheduleInteractions(root, expirationTime, interactions) { + + if (interactions.size > 0) { + var pendingInteractionMap = root.pendingInteractionMap; + var pendingInteractions = pendingInteractionMap.get(expirationTime); + + if (pendingInteractions != null) { + interactions.forEach(function (interaction) { + if (!pendingInteractions.has(interaction)) { + // Update the pending async work count for previously unscheduled interaction. + interaction.__count++; + } + + pendingInteractions.add(interaction); + }); + } else { + pendingInteractionMap.set(expirationTime, new Set(interactions)); // Update the pending async work count for the current interactions. + + interactions.forEach(function (interaction) { + interaction.__count++; + }); + } + + var subscriber = __subscriberRef.current; + + if (subscriber !== null) { + var threadID = computeThreadID(root, expirationTime); + subscriber.onWorkScheduled(interactions, threadID); + } + } + } + + function schedulePendingInteractions(root, expirationTime) { + + scheduleInteractions(root, expirationTime, __interactionsRef.current); + } + + function startWorkOnPendingInteractions(root, expirationTime) { + // we can accurately attribute time spent working on it, And so that cascading + // work triggered during the render phase will be associated with it. + + + var interactions = new Set(); + root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) { + if (scheduledExpirationTime >= expirationTime) { + scheduledInteractions.forEach(function (interaction) { + return interactions.add(interaction); + }); + } + }); // Store the current set of interactions on the FiberRoot for a few reasons: + // We can re-use it in hot functions like performConcurrentWorkOnRoot() + // without having to recalculate it. We will also use it in commitWork() to + // pass to any Profiler onRender() hooks. This also provides DevTools with a + // way to access it when the onCommitRoot() hook is called. + + root.memoizedInteractions = interactions; + + if (interactions.size > 0) { + var subscriber = __subscriberRef.current; + + if (subscriber !== null) { + var threadID = computeThreadID(root, expirationTime); + + try { + subscriber.onWorkStarted(interactions, threadID); + } catch (error) { + // If the subscriber throws, rethrow it in a separate task + scheduleCallback(ImmediatePriority, function () { + throw error; + }); + } + } + } + } + + function finishPendingInteractions(root, committedExpirationTime) { + + var earliestRemainingTimeAfterCommit = root.firstPendingTime; + var subscriber; + + try { + subscriber = __subscriberRef.current; + + if (subscriber !== null && root.memoizedInteractions.size > 0) { + var threadID = computeThreadID(root, committedExpirationTime); + subscriber.onWorkStopped(root.memoizedInteractions, threadID); + } + } catch (error) { + // If the subscriber throws, rethrow it in a separate task + scheduleCallback(ImmediatePriority, function () { + throw error; + }); + } finally { + // Clear completed interactions from the pending Map. + // Unless the render was suspended or cascading work was scheduled, + // In which case– leave pending interactions until the subsequent render. + var pendingInteractionMap = root.pendingInteractionMap; + pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) { + // Only decrement the pending interaction count if we're done. + // If there's still work at the current priority, + // That indicates that we are waiting for suspense data. + if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) { + pendingInteractionMap.delete(scheduledExpirationTime); + scheduledInteractions.forEach(function (interaction) { + interaction.__count--; + + if (subscriber !== null && interaction.__count === 0) { + try { + subscriber.onInteractionScheduledWorkCompleted(interaction); + } catch (error) { + // If the subscriber throws, rethrow it in a separate task + scheduleCallback(ImmediatePriority, function () { + throw error; + }); + } + } + }); + } + }); + } + } + + var onScheduleFiberRoot = null; + var onCommitFiberRoot = null; + var onCommitFiberUnmount = null; + var hasLoggedError = false; + var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined'; + function injectInternals(internals) { + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') { + // No DevTools + return false; + } + + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + + if (hook.isDisabled) { + // This isn't a real property on the hook, but it can be set to opt out + // of DevTools integration and associated warnings and logs. + // https://github.com/facebook/react/issues/3877 + return true; + } + + if (!hook.supportsFiber) { + { + error('The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools'); + } // DevTools exists, even though it doesn't support Fiber. + + + return true; + } + + try { + var rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks. + + if (true) { + // Only used by Fast Refresh + if (typeof hook.onScheduleFiberRoot === 'function') { + onScheduleFiberRoot = function (root, children) { + try { + hook.onScheduleFiberRoot(rendererID, root, children); + } catch (err) { + if (true && !hasLoggedError) { + hasLoggedError = true; + + error('React instrumentation encountered an error: %s', err); + } + } + }; + } + } + + onCommitFiberRoot = function (root, expirationTime) { + try { + var didError = (root.current.effectTag & DidCapture) === DidCapture; + + if (enableProfilerTimer) { + var currentTime = getCurrentTime(); + var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime); + hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError); + } else { + hook.onCommitFiberRoot(rendererID, root, undefined, didError); + } + } catch (err) { + if (true) { + if (!hasLoggedError) { + hasLoggedError = true; + + error('React instrumentation encountered an error: %s', err); + } + } + } + }; + + onCommitFiberUnmount = function (fiber) { + try { + hook.onCommitFiberUnmount(rendererID, fiber); + } catch (err) { + if (true) { + if (!hasLoggedError) { + hasLoggedError = true; + + error('React instrumentation encountered an error: %s', err); + } + } + } + }; + } catch (err) { + // Catch all errors because it is unsafe to throw during initialization. + { + error('React instrumentation encountered an error: %s.', err); + } + } // DevTools exists + + + return true; + } + function onScheduleRoot(root, children) { + if (typeof onScheduleFiberRoot === 'function') { + onScheduleFiberRoot(root, children); + } + } + function onCommitRoot(root, expirationTime) { + if (typeof onCommitFiberRoot === 'function') { + onCommitFiberRoot(root, expirationTime); + } + } + function onCommitUnmount(fiber) { + if (typeof onCommitFiberUnmount === 'function') { + onCommitFiberUnmount(fiber); + } + } + + var hasBadMapPolyfill; + + { + hasBadMapPolyfill = false; + + try { + var nonExtensibleObject = Object.preventExtensions({}); + var testMap = new Map([[nonExtensibleObject, null]]); + var testSet = new Set([nonExtensibleObject]); // This is necessary for Rollup to not consider these unused. + // https://github.com/rollup/rollup/issues/1771 + // TODO: we can remove these if Rollup fixes the bug. + + testMap.set(0, 0); + testSet.add(0); + } catch (e) { + // TODO: Consider warning about bad polyfills + hasBadMapPolyfill = true; + } + } + + var debugCounter = 1; + + function FiberNode(tag, pendingProps, key, mode) { + // Instance + this.tag = tag; + this.key = key; + this.elementType = null; + this.type = null; + this.stateNode = null; // Fiber + + this.return = null; + this.child = null; + this.sibling = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.memoizedProps = null; + this.updateQueue = null; + this.memoizedState = null; + this.dependencies = null; + this.mode = mode; // Effects + + this.effectTag = NoEffect; + this.nextEffect = null; + this.firstEffect = null; + this.lastEffect = null; + this.expirationTime = NoWork; + this.childExpirationTime = NoWork; + this.alternate = null; + + { + // Note: The following is done to avoid a v8 performance cliff. + // + // Initializing the fields below to smis and later updating them with + // double values will cause Fibers to end up having separate shapes. + // This behavior/bug has something to do with Object.preventExtension(). + // Fortunately this only impacts DEV builds. + // Unfortunately it makes React unusably slow for some applications. + // To work around this, initialize the fields below with doubles. + // + // Learn more about this here: + // https://github.com/facebook/react/issues/14365 + // https://bugs.chromium.org/p/v8/issues/detail?id=8538 + this.actualDuration = Number.NaN; + this.actualStartTime = Number.NaN; + this.selfBaseDuration = Number.NaN; + this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization. + // This won't trigger the performance cliff mentioned above, + // and it simplifies other profiler code (including DevTools). + + this.actualDuration = 0; + this.actualStartTime = -1; + this.selfBaseDuration = 0; + this.treeBaseDuration = 0; + } // This is normally DEV-only except www when it adds listeners. + // TODO: remove the User Timing integration in favor of Root Events. + + + { + this._debugID = debugCounter++; + this._debugIsCurrentlyTiming = false; + } + + { + this._debugSource = null; + this._debugOwner = null; + this._debugNeedsRemount = false; + this._debugHookTypes = null; + + if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') { + Object.preventExtensions(this); + } + } + } // This is a constructor function, rather than a POJO constructor, still + // please ensure we do the following: + // 1) Nobody should add any instance methods on this. Instance methods can be + // more difficult to predict when they get optimized and they are almost + // never inlined properly in static compilers. + // 2) Nobody should rely on `instanceof Fiber` for type testing. We should + // always know when it is a fiber. + // 3) We might want to experiment with using numeric keys since they are easier + // to optimize in a non-JIT environment. + // 4) We can easily go from a constructor to a createFiber object literal if that + // is faster. + // 5) It should be easy to port this to a C struct and keep a C implementation + // compatible. + + + var createFiber = function (tag, pendingProps, key, mode) { + // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors + return new FiberNode(tag, pendingProps, key, mode); + }; + + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + + function isSimpleFunctionComponent(type) { + return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined; + } + function resolveLazyComponentTag(Component) { + if (typeof Component === 'function') { + return shouldConstruct(Component) ? ClassComponent : FunctionComponent; + } else if (Component !== undefined && Component !== null) { + var $$typeof = Component.$$typeof; + + if ($$typeof === REACT_FORWARD_REF_TYPE) { + return ForwardRef; + } + + if ($$typeof === REACT_MEMO_TYPE) { + return MemoComponent; + } + } + + return IndeterminateComponent; + } // This is used to create an alternate fiber to do work on. + + function createWorkInProgress(current, pendingProps) { + var workInProgress = current.alternate; + + if (workInProgress === null) { + // We use a double buffering pooling technique because we know that we'll + // only ever need at most two versions of a tree. We pool the "other" unused + // node that we're free to reuse. This is lazily created to avoid allocating + // extra objects for things that are never updated. It also allow us to + // reclaim the extra memory if needed. + workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode); + workInProgress.elementType = current.elementType; + workInProgress.type = current.type; + workInProgress.stateNode = current.stateNode; + + { + // DEV-only fields + { + workInProgress._debugID = current._debugID; + } + + workInProgress._debugSource = current._debugSource; + workInProgress._debugOwner = current._debugOwner; + workInProgress._debugHookTypes = current._debugHookTypes; + } + + workInProgress.alternate = current; + current.alternate = workInProgress; + } else { + workInProgress.pendingProps = pendingProps; // We already have an alternate. + // Reset the effect tag. + + workInProgress.effectTag = NoEffect; // The effect list is no longer valid. + + workInProgress.nextEffect = null; + workInProgress.firstEffect = null; + workInProgress.lastEffect = null; + + { + // We intentionally reset, rather than copy, actualDuration & actualStartTime. + // This prevents time from endlessly accumulating in new commits. + // This has the downside of resetting values for different priority renders, + // But works for yielding (the common case) and should support resuming. + workInProgress.actualDuration = 0; + workInProgress.actualStartTime = -1; + } + } + + workInProgress.childExpirationTime = current.childExpirationTime; + workInProgress.expirationTime = current.expirationTime; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so + // it cannot be shared with the current fiber. + + var currentDependencies = current.dependencies; + workInProgress.dependencies = currentDependencies === null ? null : { + expirationTime: currentDependencies.expirationTime, + firstContext: currentDependencies.firstContext, + responders: currentDependencies.responders + }; // These will be overridden during the parent's reconciliation + + workInProgress.sibling = current.sibling; + workInProgress.index = current.index; + workInProgress.ref = current.ref; + + { + workInProgress.selfBaseDuration = current.selfBaseDuration; + workInProgress.treeBaseDuration = current.treeBaseDuration; + } + + { + workInProgress._debugNeedsRemount = current._debugNeedsRemount; + + switch (workInProgress.tag) { + case IndeterminateComponent: + case FunctionComponent: + case SimpleMemoComponent: + workInProgress.type = resolveFunctionForHotReloading(current.type); + break; + + case ClassComponent: + workInProgress.type = resolveClassForHotReloading(current.type); + break; + + case ForwardRef: + workInProgress.type = resolveForwardRefForHotReloading(current.type); + break; + } + } + + return workInProgress; + } // Used to reuse a Fiber for a second pass. + + function resetWorkInProgress(workInProgress, renderExpirationTime) { + // This resets the Fiber to what createFiber or createWorkInProgress would + // have set the values to before during the first pass. Ideally this wouldn't + // be necessary but unfortunately many code paths reads from the workInProgress + // when they should be reading from current and writing to workInProgress. + // We assume pendingProps, index, key, ref, return are still untouched to + // avoid doing another reconciliation. + // Reset the effect tag but keep any Placement tags, since that's something + // that child fiber is setting, not the reconciliation. + workInProgress.effectTag &= Placement; // The effect list is no longer valid. + + workInProgress.nextEffect = null; + workInProgress.firstEffect = null; + workInProgress.lastEffect = null; + var current = workInProgress.alternate; + + if (current === null) { + // Reset to createFiber's initial values. + workInProgress.childExpirationTime = NoWork; + workInProgress.expirationTime = renderExpirationTime; + workInProgress.child = null; + workInProgress.memoizedProps = null; + workInProgress.memoizedState = null; + workInProgress.updateQueue = null; + workInProgress.dependencies = null; + + { + // Note: We don't reset the actualTime counts. It's useful to accumulate + // actual time across multiple render passes. + workInProgress.selfBaseDuration = 0; + workInProgress.treeBaseDuration = 0; + } + } else { + // Reset to the cloned values that createWorkInProgress would've. + workInProgress.childExpirationTime = current.childExpirationTime; + workInProgress.expirationTime = current.expirationTime; + workInProgress.child = current.child; + workInProgress.memoizedProps = current.memoizedProps; + workInProgress.memoizedState = current.memoizedState; + workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so + // it cannot be shared with the current fiber. + + var currentDependencies = current.dependencies; + workInProgress.dependencies = currentDependencies === null ? null : { + expirationTime: currentDependencies.expirationTime, + firstContext: currentDependencies.firstContext, + responders: currentDependencies.responders + }; + + { + // Note: We don't reset the actualTime counts. It's useful to accumulate + // actual time across multiple render passes. + workInProgress.selfBaseDuration = current.selfBaseDuration; + workInProgress.treeBaseDuration = current.treeBaseDuration; + } + } + + return workInProgress; + } + function createHostRootFiber(tag) { + var mode; + + if (tag === ConcurrentRoot) { + mode = ConcurrentMode | BlockingMode | StrictMode; + } else if (tag === BlockingRoot) { + mode = BlockingMode | StrictMode; + } else { + mode = NoMode; + } + + if ( isDevToolsPresent) { + // Always collect profile timings when DevTools are present. + // This enables DevTools to start capturing timing at any point– + // Without some nodes in the tree having empty base times. + mode |= ProfileMode; + } + + return createFiber(HostRoot, null, null, mode); + } + function createFiberFromTypeAndProps(type, // React$ElementType + key, pendingProps, owner, mode, expirationTime) { + var fiber; + var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy. + + var resolvedType = type; + + if (typeof type === 'function') { + if (shouldConstruct(type)) { + fiberTag = ClassComponent; + + { + resolvedType = resolveClassForHotReloading(resolvedType); + } + } else { + { + resolvedType = resolveFunctionForHotReloading(resolvedType); + } + } + } else if (typeof type === 'string') { + fiberTag = HostComponent; + } else { + getTag: switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, expirationTime, key); + + case REACT_CONCURRENT_MODE_TYPE: + fiberTag = Mode; + mode |= ConcurrentMode | BlockingMode | StrictMode; + break; + + case REACT_STRICT_MODE_TYPE: + fiberTag = Mode; + mode |= StrictMode; + break; + + case REACT_PROFILER_TYPE: + return createFiberFromProfiler(pendingProps, mode, expirationTime, key); + + case REACT_SUSPENSE_TYPE: + return createFiberFromSuspense(pendingProps, mode, expirationTime, key); + + case REACT_SUSPENSE_LIST_TYPE: + return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key); + + default: + { + if (typeof type === 'object' && type !== null) { + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + fiberTag = ContextProvider; + break getTag; + + case REACT_CONTEXT_TYPE: + // This is a consumer + fiberTag = ContextConsumer; + break getTag; + + case REACT_FORWARD_REF_TYPE: + fiberTag = ForwardRef; + + { + resolvedType = resolveForwardRefForHotReloading(resolvedType); + } + + break getTag; + + case REACT_MEMO_TYPE: + fiberTag = MemoComponent; + break getTag; + + case REACT_LAZY_TYPE: + fiberTag = LazyComponent; + resolvedType = null; + break getTag; + + case REACT_BLOCK_TYPE: + fiberTag = Block; + break getTag; + + } + } + + var info = ''; + + { + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { + info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.'; + } + + var ownerName = owner ? getComponentName(owner.type) : null; + + if (ownerName) { + info += '\n\nCheck the render method of `' + ownerName + '`.'; + } + } + + { + { + throw Error( "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (type == null ? type : typeof type) + "." + info ); + } + } + } + } + } + + fiber = createFiber(fiberTag, pendingProps, key, mode); + fiber.elementType = type; + fiber.type = resolvedType; + fiber.expirationTime = expirationTime; + return fiber; + } + function createFiberFromElement(element, mode, expirationTime) { + var owner = null; + + { + owner = element._owner; + } + + var type = element.type; + var key = element.key; + var pendingProps = element.props; + var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime); + + { + fiber._debugSource = element._source; + fiber._debugOwner = element._owner; + } + + return fiber; + } + function createFiberFromFragment(elements, mode, expirationTime, key) { + var fiber = createFiber(Fragment, elements, key, mode); + fiber.expirationTime = expirationTime; + return fiber; + } + + function createFiberFromProfiler(pendingProps, mode, expirationTime, key) { + { + if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') { + error('Profiler must specify an "id" string and "onRender" function as props'); + } + } + + var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); // TODO: The Profiler fiber shouldn't have a type. It has a tag. + + fiber.elementType = REACT_PROFILER_TYPE; + fiber.type = REACT_PROFILER_TYPE; + fiber.expirationTime = expirationTime; + return fiber; + } + + function createFiberFromSuspense(pendingProps, mode, expirationTime, key) { + var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag. + // This needs to be fixed in getComponentName so that it relies on the tag + // instead. + + fiber.type = REACT_SUSPENSE_TYPE; + fiber.elementType = REACT_SUSPENSE_TYPE; + fiber.expirationTime = expirationTime; + return fiber; + } + function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) { + var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode); + + { + // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag. + // This needs to be fixed in getComponentName so that it relies on the tag + // instead. + fiber.type = REACT_SUSPENSE_LIST_TYPE; + } + + fiber.elementType = REACT_SUSPENSE_LIST_TYPE; + fiber.expirationTime = expirationTime; + return fiber; + } + function createFiberFromText(content, mode, expirationTime) { + var fiber = createFiber(HostText, content, null, mode); + fiber.expirationTime = expirationTime; + return fiber; + } + function createFiberFromHostInstanceForDeletion() { + var fiber = createFiber(HostComponent, null, null, NoMode); // TODO: These should not need a type. + + fiber.elementType = 'DELETED'; + fiber.type = 'DELETED'; + return fiber; + } + function createFiberFromPortal(portal, mode, expirationTime) { + var pendingProps = portal.children !== null ? portal.children : []; + var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); + fiber.expirationTime = expirationTime; + fiber.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + // Used by persistent updates + implementation: portal.implementation + }; + return fiber; + } // Used for stashing WIP properties to replay failed work in DEV. + + function assignFiberPropertiesInDEV(target, source) { + if (target === null) { + // This Fiber's initial properties will always be overwritten. + // We only use a Fiber to ensure the same hidden class so DEV isn't slow. + target = createFiber(IndeterminateComponent, null, null, NoMode); + } // This is intentionally written as a list of all properties. + // We tried to use Object.assign() instead but this is called in + // the hottest path, and Object.assign() was too slow: + // https://github.com/facebook/react/issues/12502 + // This code is DEV-only so size is not a concern. + + + target.tag = source.tag; + target.key = source.key; + target.elementType = source.elementType; + target.type = source.type; + target.stateNode = source.stateNode; + target.return = source.return; + target.child = source.child; + target.sibling = source.sibling; + target.index = source.index; + target.ref = source.ref; + target.pendingProps = source.pendingProps; + target.memoizedProps = source.memoizedProps; + target.updateQueue = source.updateQueue; + target.memoizedState = source.memoizedState; + target.dependencies = source.dependencies; + target.mode = source.mode; + target.effectTag = source.effectTag; + target.nextEffect = source.nextEffect; + target.firstEffect = source.firstEffect; + target.lastEffect = source.lastEffect; + target.expirationTime = source.expirationTime; + target.childExpirationTime = source.childExpirationTime; + target.alternate = source.alternate; + + { + target.actualDuration = source.actualDuration; + target.actualStartTime = source.actualStartTime; + target.selfBaseDuration = source.selfBaseDuration; + target.treeBaseDuration = source.treeBaseDuration; + } + + { + target._debugID = source._debugID; + } + + target._debugSource = source._debugSource; + target._debugOwner = source._debugOwner; + target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming; + target._debugNeedsRemount = source._debugNeedsRemount; + target._debugHookTypes = source._debugHookTypes; + return target; + } + + function FiberRootNode(containerInfo, tag, hydrate) { + this.tag = tag; + this.current = null; + this.containerInfo = containerInfo; + this.pendingChildren = null; + this.pingCache = null; + this.finishedExpirationTime = NoWork; + this.finishedWork = null; + this.timeoutHandle = noTimeout; + this.context = null; + this.pendingContext = null; + this.hydrate = hydrate; + this.callbackNode = null; + this.callbackPriority = NoPriority; + this.firstPendingTime = NoWork; + this.firstSuspendedTime = NoWork; + this.lastSuspendedTime = NoWork; + this.nextKnownPendingLevel = NoWork; + this.lastPingedTime = NoWork; + this.lastExpiredTime = NoWork; + + { + this.interactionThreadID = unstable_getThreadID(); + this.memoizedInteractions = new Set(); + this.pendingInteractionMap = new Map(); + } + } + + function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) { + var root = new FiberRootNode(containerInfo, tag, hydrate); + // stateNode is any. + + + var uninitializedFiber = createHostRootFiber(tag); + root.current = uninitializedFiber; + uninitializedFiber.stateNode = root; + initializeUpdateQueue(uninitializedFiber); + return root; + } + function isRootSuspendedAtTime(root, expirationTime) { + var firstSuspendedTime = root.firstSuspendedTime; + var lastSuspendedTime = root.lastSuspendedTime; + return firstSuspendedTime !== NoWork && firstSuspendedTime >= expirationTime && lastSuspendedTime <= expirationTime; + } + function markRootSuspendedAtTime(root, expirationTime) { + var firstSuspendedTime = root.firstSuspendedTime; + var lastSuspendedTime = root.lastSuspendedTime; + + if (firstSuspendedTime < expirationTime) { + root.firstSuspendedTime = expirationTime; + } + + if (lastSuspendedTime > expirationTime || firstSuspendedTime === NoWork) { + root.lastSuspendedTime = expirationTime; + } + + if (expirationTime <= root.lastPingedTime) { + root.lastPingedTime = NoWork; + } + + if (expirationTime <= root.lastExpiredTime) { + root.lastExpiredTime = NoWork; + } + } + function markRootUpdatedAtTime(root, expirationTime) { + // Update the range of pending times + var firstPendingTime = root.firstPendingTime; + + if (expirationTime > firstPendingTime) { + root.firstPendingTime = expirationTime; + } // Update the range of suspended times. Treat everything lower priority or + // equal to this update as unsuspended. + + + var firstSuspendedTime = root.firstSuspendedTime; + + if (firstSuspendedTime !== NoWork) { + if (expirationTime >= firstSuspendedTime) { + // The entire suspended range is now unsuspended. + root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork; + } else if (expirationTime >= root.lastSuspendedTime) { + root.lastSuspendedTime = expirationTime + 1; + } // This is a pending level. Check if it's higher priority than the next + // known pending level. + + + if (expirationTime > root.nextKnownPendingLevel) { + root.nextKnownPendingLevel = expirationTime; + } + } + } + function markRootFinishedAtTime(root, finishedExpirationTime, remainingExpirationTime) { + // Update the range of pending times + root.firstPendingTime = remainingExpirationTime; // Update the range of suspended times. Treat everything higher priority or + // equal to this update as unsuspended. + + if (finishedExpirationTime <= root.lastSuspendedTime) { + // The entire suspended range is now unsuspended. + root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork; + } else if (finishedExpirationTime <= root.firstSuspendedTime) { + // Part of the suspended range is now unsuspended. Narrow the range to + // include everything between the unsuspended time (non-inclusive) and the + // last suspended time. + root.firstSuspendedTime = finishedExpirationTime - 1; + } + + if (finishedExpirationTime <= root.lastPingedTime) { + // Clear the pinged time + root.lastPingedTime = NoWork; + } + + if (finishedExpirationTime <= root.lastExpiredTime) { + // Clear the expired time + root.lastExpiredTime = NoWork; + } + } + function markRootExpiredAtTime(root, expirationTime) { + var lastExpiredTime = root.lastExpiredTime; + + if (lastExpiredTime === NoWork || lastExpiredTime > expirationTime) { + root.lastExpiredTime = expirationTime; + } + } + + var didWarnAboutNestedUpdates; + var didWarnAboutFindNodeInStrictMode; + + { + didWarnAboutNestedUpdates = false; + didWarnAboutFindNodeInStrictMode = {}; + } + + function getContextForSubtree(parentComponent) { + if (!parentComponent) { + return emptyContextObject; + } + + var fiber = get(parentComponent); + var parentContext = findCurrentUnmaskedContext(fiber); + + if (fiber.tag === ClassComponent) { + var Component = fiber.type; + + if (isContextProvider(Component)) { + return processChildContext(fiber, Component, parentContext); + } + } + + return parentContext; + } + + function findHostInstanceWithWarning(component, methodName) { + { + var fiber = get(component); + + if (fiber === undefined) { + if (typeof component.render === 'function') { + { + { + throw Error( "Unable to find node on an unmounted component." ); + } + } + } else { + { + { + throw Error( "Argument appears to not be a ReactComponent. Keys: " + Object.keys(component) ); + } + } + } + } + + var hostFiber = findCurrentHostFiber(fiber); + + if (hostFiber === null) { + return null; + } + + if (hostFiber.mode & StrictMode) { + var componentName = getComponentName(fiber.type) || 'Component'; + + if (!didWarnAboutFindNodeInStrictMode[componentName]) { + didWarnAboutFindNodeInStrictMode[componentName] = true; + + if (fiber.mode & StrictMode) { + error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber)); + } else { + error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber)); + } + } + } + + return hostFiber.stateNode; + } + } + + function createContainer(containerInfo, tag, hydrate, hydrationCallbacks) { + return createFiberRoot(containerInfo, tag, hydrate); + } + function updateContainer(element, container, parentComponent, callback) { + { + onScheduleRoot(container, element); + } + + var current$1 = container.current; + var currentTime = requestCurrentTimeForUpdate(); + + { + // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests + if ('undefined' !== typeof jest) { + warnIfUnmockedScheduler(current$1); + warnIfNotScopedWithMatchingAct(current$1); + } + } + + var suspenseConfig = requestCurrentSuspenseConfig(); + var expirationTime = computeExpirationForFiber(currentTime, current$1, suspenseConfig); + var context = getContextForSubtree(parentComponent); + + if (container.context === null) { + container.context = context; + } else { + container.pendingContext = context; + } + + { + if (isRendering && current !== null && !didWarnAboutNestedUpdates) { + didWarnAboutNestedUpdates = true; + + error('Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown'); + } + } + + var update = createUpdate(expirationTime, suspenseConfig); // Caution: React DevTools currently depends on this property + // being called "element". + + update.payload = { + element: element + }; + callback = callback === undefined ? null : callback; + + if (callback !== null) { + { + if (typeof callback !== 'function') { + error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback); + } + } + + update.callback = callback; + } + + enqueueUpdate(current$1, update); + scheduleWork(current$1, expirationTime); + return expirationTime; + } + function getPublicRootInstance(container) { + var containerFiber = container.current; + + if (!containerFiber.child) { + return null; + } + + switch (containerFiber.child.tag) { + case HostComponent: + return getPublicInstance(containerFiber.child.stateNode); + + default: + return containerFiber.child.stateNode; + } + } + + function markRetryTimeImpl(fiber, retryTime) { + var suspenseState = fiber.memoizedState; + + if (suspenseState !== null && suspenseState.dehydrated !== null) { + if (suspenseState.retryTime < retryTime) { + suspenseState.retryTime = retryTime; + } + } + } // Increases the priority of thennables when they resolve within this boundary. + + + function markRetryTimeIfNotHydrated(fiber, retryTime) { + markRetryTimeImpl(fiber, retryTime); + var alternate = fiber.alternate; + + if (alternate) { + markRetryTimeImpl(alternate, retryTime); + } + } + + function attemptUserBlockingHydration$1(fiber) { + if (fiber.tag !== SuspenseComponent) { + // We ignore HostRoots here because we can't increase + // their priority and they should not suspend on I/O, + // since you have to wrap anything that might suspend in + // Suspense. + return; + } + + var expTime = computeInteractiveExpiration(requestCurrentTimeForUpdate()); + scheduleWork(fiber, expTime); + markRetryTimeIfNotHydrated(fiber, expTime); + } + function attemptContinuousHydration$1(fiber) { + if (fiber.tag !== SuspenseComponent) { + // We ignore HostRoots here because we can't increase + // their priority and they should not suspend on I/O, + // since you have to wrap anything that might suspend in + // Suspense. + return; + } + + scheduleWork(fiber, ContinuousHydration); + markRetryTimeIfNotHydrated(fiber, ContinuousHydration); + } + function attemptHydrationAtCurrentPriority$1(fiber) { + if (fiber.tag !== SuspenseComponent) { + // We ignore HostRoots here because we can't increase + // their priority other than synchronously flush it. + return; + } + + var currentTime = requestCurrentTimeForUpdate(); + var expTime = computeExpirationForFiber(currentTime, fiber, null); + scheduleWork(fiber, expTime); + markRetryTimeIfNotHydrated(fiber, expTime); + } + function findHostInstanceWithNoPortals(fiber) { + var hostFiber = findCurrentHostFiberWithNoPortals(fiber); + + if (hostFiber === null) { + return null; + } + + if (hostFiber.tag === FundamentalComponent) { + return hostFiber.stateNode.instance; + } + + return hostFiber.stateNode; + } + + var shouldSuspendImpl = function (fiber) { + return false; + }; + + function shouldSuspend(fiber) { + return shouldSuspendImpl(fiber); + } + var overrideHookState = null; + var overrideProps = null; + var scheduleUpdate = null; + var setSuspenseHandler = null; + + { + var copyWithSetImpl = function (obj, path, idx, value) { + if (idx >= path.length) { + return value; + } + + var key = path[idx]; + var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj); // $FlowFixMe number or string is fine here + + updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value); + return updated; + }; + + var copyWithSet = function (obj, path, value) { + return copyWithSetImpl(obj, path, 0, value); + }; // Support DevTools editable values for useState and useReducer. + + + overrideHookState = function (fiber, id, path, value) { + // For now, the "id" of stateful hooks is just the stateful hook index. + // This may change in the future with e.g. nested hooks. + var currentHook = fiber.memoizedState; + + while (currentHook !== null && id > 0) { + currentHook = currentHook.next; + id--; + } + + if (currentHook !== null) { + var newState = copyWithSet(currentHook.memoizedState, path, value); + currentHook.memoizedState = newState; + currentHook.baseState = newState; // We aren't actually adding an update to the queue, + // because there is no update we can add for useReducer hooks that won't trigger an error. + // (There's no appropriate action type for DevTools overrides.) + // As a result though, React will see the scheduled update as a noop and bailout. + // Shallow cloning props works as a workaround for now to bypass the bailout check. + + fiber.memoizedProps = _assign({}, fiber.memoizedProps); + scheduleWork(fiber, Sync); + } + }; // Support DevTools props for function components, forwardRef, memo, host components, etc. + + + overrideProps = function (fiber, path, value) { + fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value); + + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + + scheduleWork(fiber, Sync); + }; + + scheduleUpdate = function (fiber) { + scheduleWork(fiber, Sync); + }; + + setSuspenseHandler = function (newShouldSuspendImpl) { + shouldSuspendImpl = newShouldSuspendImpl; + }; + } + + function injectIntoDevTools(devToolsConfig) { + var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + return injectInternals(_assign({}, devToolsConfig, { + overrideHookState: overrideHookState, + overrideProps: overrideProps, + setSuspenseHandler: setSuspenseHandler, + scheduleUpdate: scheduleUpdate, + currentDispatcherRef: ReactCurrentDispatcher, + findHostInstanceByFiber: function (fiber) { + var hostFiber = findCurrentHostFiber(fiber); + + if (hostFiber === null) { + return null; + } + + return hostFiber.stateNode; + }, + findFiberByHostInstance: function (instance) { + if (!findFiberByHostInstance) { + // Might not be implemented by the renderer. + return null; + } + + return findFiberByHostInstance(instance); + }, + // React Refresh + findHostInstancesForRefresh: findHostInstancesForRefresh , + scheduleRefresh: scheduleRefresh , + scheduleRoot: scheduleRoot , + setRefreshHandler: setRefreshHandler , + // Enables DevTools to append owner stacks to error messages in DEV mode. + getCurrentFiber: function () { + return current; + } + })); + } + var IsSomeRendererActing$1 = ReactSharedInternals.IsSomeRendererActing; + + function ReactDOMRoot(container, options) { + this._internalRoot = createRootImpl(container, ConcurrentRoot, options); + } + + function ReactDOMBlockingRoot(container, tag, options) { + this._internalRoot = createRootImpl(container, tag, options); + } + + ReactDOMRoot.prototype.render = ReactDOMBlockingRoot.prototype.render = function (children) { + var root = this._internalRoot; + + { + if (typeof arguments[1] === 'function') { + error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().'); + } + + var container = root.containerInfo; + + if (container.nodeType !== COMMENT_NODE) { + var hostInstance = findHostInstanceWithNoPortals(root.current); + + if (hostInstance) { + if (hostInstance.parentNode !== container) { + error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + "root.unmount() to empty a root's container."); + } + } + } + } + + updateContainer(children, root, null, null); + }; + + ReactDOMRoot.prototype.unmount = ReactDOMBlockingRoot.prototype.unmount = function () { + { + if (typeof arguments[0] === 'function') { + error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().'); + } + } + + var root = this._internalRoot; + var container = root.containerInfo; + updateContainer(null, root, null, function () { + unmarkContainerAsRoot(container); + }); + }; + + function createRootImpl(container, tag, options) { + // Tag is either LegacyRoot or Concurrent Root + var hydrate = options != null && options.hydrate === true; + var hydrationCallbacks = options != null && options.hydrationOptions || null; + var root = createContainer(container, tag, hydrate); + markContainerAsRoot(root.current, container); + + if (hydrate && tag !== LegacyRoot) { + var doc = container.nodeType === DOCUMENT_NODE ? container : container.ownerDocument; + eagerlyTrapReplayableEvents(container, doc); + } + + return root; + } + function createLegacyRoot(container, options) { + return new ReactDOMBlockingRoot(container, LegacyRoot, options); + } + function isValidContainer(node) { + return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable ')); + } + + var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner; + var topLevelUpdateWarnings; + var warnedAboutHydrateAPI = false; + + { + topLevelUpdateWarnings = function (container) { + if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) { + var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current); + + if (hostInstance) { + if (hostInstance.parentNode !== container) { + error('render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.'); + } + } + } + + var isRootRenderedBySomeReact = !!container._reactRootContainer; + var rootEl = getReactRootElementInContainer(container); + var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl)); + + if (hasNonRootReactChild && !isRootRenderedBySomeReact) { + error('render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.'); + } + + if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') { + error('render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.'); + } + }; + } + + function getReactRootElementInContainer(container) { + if (!container) { + return null; + } + + if (container.nodeType === DOCUMENT_NODE) { + return container.documentElement; + } else { + return container.firstChild; + } + } + + function shouldHydrateDueToLegacyHeuristic(container) { + var rootElement = getReactRootElementInContainer(container); + return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME)); + } + + function legacyCreateRootFromDOMContainer(container, forceHydrate) { + var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); // First clear any existing content. + + if (!shouldHydrate) { + var warned = false; + var rootSibling; + + while (rootSibling = container.lastChild) { + { + if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) { + warned = true; + + error('render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.'); + } + } + + container.removeChild(rootSibling); + } + } + + { + if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) { + warnedAboutHydrateAPI = true; + + warn('render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.'); + } + } + + return createLegacyRoot(container, shouldHydrate ? { + hydrate: true + } : undefined); + } + + function warnOnInvalidCallback$1(callback, callerName) { + { + if (callback !== null && typeof callback !== 'function') { + error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback); + } + } + } + + function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) { + { + topLevelUpdateWarnings(container); + warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render'); + } // TODO: Without `any` type, Flow says "Property cannot be accessed on any + // member of intersection type." Whyyyyyy. + + + var root = container._reactRootContainer; + var fiberRoot; + + if (!root) { + // Initial mount + root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate); + fiberRoot = root._internalRoot; + + if (typeof callback === 'function') { + var originalCallback = callback; + + callback = function () { + var instance = getPublicRootInstance(fiberRoot); + originalCallback.call(instance); + }; + } // Initial mount should not be batched. + + + unbatchedUpdates(function () { + updateContainer(children, fiberRoot, parentComponent, callback); + }); + } else { + fiberRoot = root._internalRoot; + + if (typeof callback === 'function') { + var _originalCallback = callback; + + callback = function () { + var instance = getPublicRootInstance(fiberRoot); + + _originalCallback.call(instance); + }; + } // Update + + + updateContainer(children, fiberRoot, parentComponent, callback); + } + + return getPublicRootInstance(fiberRoot); + } + + function findDOMNode(componentOrElement) { + { + var owner = ReactCurrentOwner$3.current; + + if (owner !== null && owner.stateNode !== null) { + var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender; + + if (!warnedAboutRefsInRender) { + error('%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component'); + } + + owner.stateNode._warnedAboutRefsInRender = true; + } + } + + if (componentOrElement == null) { + return null; + } + + if (componentOrElement.nodeType === ELEMENT_NODE) { + return componentOrElement; + } + + { + return findHostInstanceWithWarning(componentOrElement, 'findDOMNode'); + } + } + function hydrate(element, container, callback) { + if (!isValidContainer(container)) { + { + throw Error( "Target container is not a DOM element." ); + } + } + + { + var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined; + + if (isModernRoot) { + error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?'); + } + } // TODO: throw or warn if we couldn't hydrate? + + + return legacyRenderSubtreeIntoContainer(null, element, container, true, callback); + } + function render(element, container, callback) { + if (!isValidContainer(container)) { + { + throw Error( "Target container is not a DOM element." ); + } + } + + { + var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined; + + if (isModernRoot) { + error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?'); + } + } + + return legacyRenderSubtreeIntoContainer(null, element, container, false, callback); + } + function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) { + if (!isValidContainer(containerNode)) { + { + throw Error( "Target container is not a DOM element." ); + } + } + + if (!(parentComponent != null && has$1(parentComponent))) { + { + throw Error( "parentComponent must be a valid React Component" ); + } + } + + return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback); + } + function unmountComponentAtNode(container) { + if (!isValidContainer(container)) { + { + throw Error( "unmountComponentAtNode(...): Target container is not a DOM element." ); + } + } + + { + var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined; + + if (isModernRoot) { + error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?'); + } + } + + if (container._reactRootContainer) { + { + var rootEl = getReactRootElementInContainer(container); + var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl); + + if (renderedByDifferentReact) { + error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.'); + } + } // Unmount should not be batched. + + + unbatchedUpdates(function () { + legacyRenderSubtreeIntoContainer(null, null, container, false, function () { + // $FlowFixMe This should probably use `delete container._reactRootContainer` + container._reactRootContainer = null; + unmarkContainerAsRoot(container); + }); + }); // If you call unmountComponentAtNode twice in quick succession, you'll + // get `true` twice. That's probably fine? + + return true; + } else { + { + var _rootEl = getReactRootElementInContainer(container); + + var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl)); // Check if the container itself is a React root node. + + var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer; + + if (hasNonRootReactChild) { + error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.'); + } + } + + return false; + } + } + + function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation. + implementation) { + var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + return { + // This tag allow us to uniquely identify this as a React Portal + $$typeof: REACT_PORTAL_TYPE, + key: key == null ? null : '' + key, + children: children, + containerInfo: containerInfo, + implementation: implementation + }; + } + + var ReactVersion = '16.13.1'; + + setAttemptUserBlockingHydration(attemptUserBlockingHydration$1); + setAttemptContinuousHydration(attemptContinuousHydration$1); + setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1); + var didWarnAboutUnstableCreatePortal = false; + + { + if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype + Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype + Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') { + error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills'); + } + } + + setRestoreImplementation(restoreControlledState$3); + setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1); + + function createPortal$1(children, container) { + var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + + if (!isValidContainer(container)) { + { + throw Error( "Target container is not a DOM element." ); + } + } // TODO: pass ReactDOM portal implementation as third argument + // $FlowFixMe The Flow type is opaque but there's no way to actually create it. + + + return createPortal(children, container, null, key); + } + + function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) { + + return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback); + } + + function unstable_createPortal(children, container) { + var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + + { + if (!didWarnAboutUnstableCreatePortal) { + didWarnAboutUnstableCreatePortal = true; + + warn('The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.'); + } + } + + return createPortal$1(children, container, key); + } + + var Internals = { + // Keep in sync with ReactDOMUnstableNativeDependencies.js + // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification. + Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing] + }; + var foundDevTools = injectIntoDevTools({ + findFiberByHostInstance: getClosestInstanceFromNode, + bundleType: 1 , + version: ReactVersion, + rendererPackageName: 'react-dom' + }); + + { + if (!foundDevTools && canUseDOM && window.top === window.self) { + // If we're in Chrome or Firefox, provide a download link if not installed. + if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) { + var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://. + + if (/^(https?|file):$/.test(protocol)) { + // eslint-disable-next-line react-internal/no-production-logging + console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://fb.me/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://fb.me/react-devtools-faq' : ''), 'font-weight:bold'); + } + } + } + } + + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; + exports.createPortal = createPortal$1; + exports.findDOMNode = findDOMNode; + exports.flushSync = flushSync; + exports.hydrate = hydrate; + exports.render = render; + exports.unmountComponentAtNode = unmountComponentAtNode; + exports.unstable_batchedUpdates = batchedUpdates$1; + exports.unstable_createPortal = unstable_createPortal; + exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer; + exports.version = ReactVersion; + +}))); diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/react.development.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/react.development.js new file mode 100644 index 0000000000000000000000000000000000000000..6d64de13504724ce63e9ebd682b27c74dd0f0be8 --- /dev/null +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/react/react.development.js @@ -0,0 +1,3318 @@ +/** @license React v16.13.1 + * react.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (global = global || self, factory(global.React = {})); +}(this, (function (exports) { 'use strict'; + + var ReactVersion = '16.13.1'; + + // The Symbol used to tag the ReactElement-like types. If there is no native Symbol + // nor polyfill, then a plain number is used for performance. + var hasSymbol = typeof Symbol === 'function' && Symbol.for; + var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; + var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; + var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; + var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; + var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; + var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; + var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary + var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; + var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; + var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; + var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; + var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; + var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; + var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; + var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; + var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; + var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; + var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== 'object') { + return null; + } + + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + + if (typeof maybeIterator === 'function') { + return maybeIterator; + } + + return null; + } + + /* + object-assign + (c) Sindre Sorhus + @license MIT + */ + /* eslint-disable no-unused-vars */ + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; + + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } + + return Object(val); + } + + function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } + + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } + + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } + } + + var objectAssign = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } + + return to; + }; + + /** + * Keeps track of the current dispatcher. + */ + var ReactCurrentDispatcher = { + /** + * @internal + * @type {ReactComponent} + */ + current: null + }; + + /** + * Keeps track of the current batch's configuration such as how long an update + * should suspend for if it needs to. + */ + var ReactCurrentBatchConfig = { + suspense: null + }; + + /** + * Keeps track of the current owner. + * + * The current owner is the component who should own any components that are + * currently being constructed. + */ + var ReactCurrentOwner = { + /** + * @internal + * @type {ReactComponent} + */ + current: null + }; + + var BEFORE_SLASH_RE = /^(.*)[\\\/]/; + function describeComponentFrame (name, source, ownerName) { + var sourceInfo = ''; + + if (source) { + var path = source.fileName; + var fileName = path.replace(BEFORE_SLASH_RE, ''); + + { + // In DEV, include code for a common special case: + // prefer "folder/index.js" instead of just "index.js". + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + + if (match) { + var pathBeforeSlash = match[1]; + + if (pathBeforeSlash) { + var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); + fileName = folderName + '/' + fileName; + } + } + } + } + + sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; + } else if (ownerName) { + sourceInfo = ' (created by ' + ownerName + ')'; + } + + return '\n in ' + (name || 'Unknown') + sourceInfo; + } + + var Resolved = 1; + function refineResolvedLazyComponent(lazyComponent) { + return lazyComponent._status === Resolved ? lazyComponent._result : null; + } + + function getWrappedName(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ''; + return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); + } + + function getComponentName(type) { + if (type == null) { + // Host root, text node or just invalid type. + return null; + } + + { + if (typeof type.tag === 'number') { + error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); + } + } + + if (typeof type === 'function') { + return type.displayName || type.name || null; + } + + if (typeof type === 'string') { + return type; + } + + switch (type) { + case REACT_FRAGMENT_TYPE: + return 'Fragment'; + + case REACT_PORTAL_TYPE: + return 'Portal'; + + case REACT_PROFILER_TYPE: + return "Profiler"; + + case REACT_STRICT_MODE_TYPE: + return 'StrictMode'; + + case REACT_SUSPENSE_TYPE: + return 'Suspense'; + + case REACT_SUSPENSE_LIST_TYPE: + return 'SuspenseList'; + } + + if (typeof type === 'object') { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return 'Context.Consumer'; + + case REACT_PROVIDER_TYPE: + return 'Context.Provider'; + + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, 'ForwardRef'); + + case REACT_MEMO_TYPE: + return getComponentName(type.type); + + case REACT_BLOCK_TYPE: + return getComponentName(type.render); + + case REACT_LAZY_TYPE: + { + var thenable = type; + var resolvedThenable = refineResolvedLazyComponent(thenable); + + if (resolvedThenable) { + return getComponentName(resolvedThenable); + } + + break; + } + } + } + + return null; + } + + var ReactDebugCurrentFrame = {}; + var currentlyValidatingElement = null; + function setCurrentlyValidatingElement(element) { + { + currentlyValidatingElement = element; + } + } + + { + // Stack implementation injected by the current renderer. + ReactDebugCurrentFrame.getCurrentStack = null; + + ReactDebugCurrentFrame.getStackAddendum = function () { + var stack = ''; // Add an extra top frame while an element is being validated + + if (currentlyValidatingElement) { + var name = getComponentName(currentlyValidatingElement.type); + var owner = currentlyValidatingElement._owner; + stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type)); + } // Delegate to the injected renderer-specific implementation + + + var impl = ReactDebugCurrentFrame.getCurrentStack; + + if (impl) { + stack += impl() || ''; + } + + return stack; + }; + } + + /** + * Used by act() to track whether you're inside an act() scope. + */ + var IsSomeRendererActing = { + current: false + }; + + var ReactSharedInternals = { + ReactCurrentDispatcher: ReactCurrentDispatcher, + ReactCurrentBatchConfig: ReactCurrentBatchConfig, + ReactCurrentOwner: ReactCurrentOwner, + IsSomeRendererActing: IsSomeRendererActing, + // Used by renderers to avoid bundling object-assign twice in UMD bundles: + assign: objectAssign + }; + + { + objectAssign(ReactSharedInternals, { + // These should not be included in production. + ReactDebugCurrentFrame: ReactDebugCurrentFrame, + // Shim for React DOM 16.0.0 which still destructured (but not used) this. + // TODO: remove in React 17.0. + ReactComponentTreeHook: {} + }); + } + + // by calls to these methods by a Babel plugin. + // + // In PROD (or in packages without access to React internals), + // they are left as they are instead. + + function warn(format) { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + printWarning('warn', format, args); + } + } + function error(format) { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + + printWarning('error', format, args); + } + } + + function printWarning(level, format, args) { + // When changing this logic, you might want to also + // update consoleWithStackDev.www.js as well. + { + var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0; + + if (!hasExistingStack) { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + + if (stack !== '') { + format += '%s'; + args = args.concat([stack]); + } + } + + var argsWithFormat = args.map(function (item) { + return '' + item; + }); // Careful: RN currently depends on this prefix + + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it + // breaks IE9: https://github.com/facebook/react/issues/13610 + // eslint-disable-next-line react-internal/no-production-logging + + Function.prototype.apply.call(console[level], console, argsWithFormat); + + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + throw new Error(message); + } catch (x) {} + } + } + + var didWarnStateUpdateForUnmountedComponent = {}; + + function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass'; + var warningKey = componentName + "." + callerName; + + if (didWarnStateUpdateForUnmountedComponent[warningKey]) { + return; + } + + error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName); + + didWarnStateUpdateForUnmountedComponent[warningKey] = true; + } + } + /** + * This is the abstract API for an update queue. + */ + + + var ReactNoopUpdateQueue = { + /** + * Checks whether or not this composite component is mounted. + * @param {ReactClass} publicInstance The instance we want to test. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: function (publicInstance) { + return false; + }, + + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueForceUpdate: function (publicInstance, callback, callerName) { + warnNoop(publicInstance, 'forceUpdate'); + }, + + /** + * Replaces all of the state. Always use this or `setState` to mutate state. + * You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} completeState Next state. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueReplaceState: function (publicInstance, completeState, callback, callerName) { + warnNoop(publicInstance, 'replaceState'); + }, + + /** + * Sets a subset of the state. This only exists because _pendingState is + * internal. This provides a merging strategy that is not available to deep + * properties which is confusing. TODO: Expose pendingState or don't use it + * during the merge. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} partialState Next partial state to be merged with state. + * @param {?function} callback Called after component is updated. + * @param {?string} Name of the calling function in the public API. + * @internal + */ + enqueueSetState: function (publicInstance, partialState, callback, callerName) { + warnNoop(publicInstance, 'setState'); + } + }; + + var emptyObject = {}; + + { + Object.freeze(emptyObject); + } + /** + * Base class helpers for the updating state of a component. + */ + + + function Component(props, context, updater) { + this.props = props; + this.context = context; // If a component has string refs, we will assign a different object later. + + this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the + // renderer. + + this.updater = updater || ReactNoopUpdateQueue; + } + + Component.prototype.isReactComponent = {}; + /** + * Sets a subset of the state. Always use this to mutate + * state. You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * There is no guarantee that calls to `setState` will run synchronously, + * as they may eventually be batched together. You can provide an optional + * callback that will be executed when the call to setState is actually + * completed. + * + * When a function is provided to setState, it will be called at some point in + * the future (not synchronously). It will be called with the up to date + * component arguments (state, props, context). These values can be different + * from this.* because your function may be called after receiveProps but before + * shouldComponentUpdate, and this new state, props, and context will not yet be + * assigned to this. + * + * @param {object|function} partialState Next partial state or function to + * produce next partial state to be merged with current state. + * @param {?function} callback Called after state is updated. + * @final + * @protected + */ + + Component.prototype.setState = function (partialState, callback) { + if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) { + { + throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." ); + } + } + + this.updater.enqueueSetState(this, partialState, callback, 'setState'); + }; + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {?function} callback Called after update is complete. + * @final + * @protected + */ + + + Component.prototype.forceUpdate = function (callback) { + this.updater.enqueueForceUpdate(this, callback, 'forceUpdate'); + }; + /** + * Deprecated APIs. These APIs used to exist on classic React classes but since + * we would like to deprecate them, we're not going to move them over to this + * modern base class. Instead, we define a getter that warns if it's accessed. + */ + + + { + var deprecatedAPIs = { + isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'], + replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).'] + }; + + var defineDeprecationWarning = function (methodName, info) { + Object.defineProperty(Component.prototype, methodName, { + get: function () { + warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); + + return undefined; + } + }); + }; + + for (var fnName in deprecatedAPIs) { + if (deprecatedAPIs.hasOwnProperty(fnName)) { + defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); + } + } + } + + function ComponentDummy() {} + + ComponentDummy.prototype = Component.prototype; + /** + * Convenience component with default shallow equality check for sCU. + */ + + function PureComponent(props, context, updater) { + this.props = props; + this.context = context; // If a component has string refs, we will assign a different object later. + + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + + var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); + pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods. + + objectAssign(pureComponentPrototype, Component.prototype); + + pureComponentPrototype.isPureReactComponent = true; + + // an immutable object with a single mutable value + function createRef() { + var refObject = { + current: null + }; + + { + Object.seal(refObject); + } + + return refObject; + } + + var hasOwnProperty$1 = Object.prototype.hasOwnProperty; + var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true + }; + var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; + + { + didWarnAboutStringRefs = {}; + } + + function hasValidRef(config) { + { + if (hasOwnProperty$1.call(config, 'ref')) { + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get; + + if (getter && getter.isReactWarning) { + return false; + } + } + } + + return config.ref !== undefined; + } + + function hasValidKey(config) { + { + if (hasOwnProperty$1.call(config, 'key')) { + var getter = Object.getOwnPropertyDescriptor(config, 'key').get; + + if (getter && getter.isReactWarning) { + return false; + } + } + } + + return config.key !== undefined; + } + + function defineKeyPropWarningGetter(props, displayName) { + var warnAboutAccessingKey = function () { + { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + + error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + } + } + }; + + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props, 'key', { + get: warnAboutAccessingKey, + configurable: true + }); + } + + function defineRefPropWarningGetter(props, displayName) { + var warnAboutAccessingRef = function () { + { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + + error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + } + } + }; + + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props, 'ref', { + get: warnAboutAccessingRef, + configurable: true + }); + } + + function warnIfStringRefCannotBeAutoConverted(config) { + { + if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { + var componentName = getComponentName(ReactCurrentOwner.current.type); + + if (!didWarnAboutStringRefs[componentName]) { + error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref); + + didWarnAboutStringRefs[componentName] = true; + } + } + } + } + /** + * Factory method to create a new React element. This no longer adheres to + * the class pattern, so do not use new to call it. Also, instanceof check + * will not work. Instead test $$typeof field against Symbol.for('react.element') to check + * if something is a React Element. + * + * @param {*} type + * @param {*} props + * @param {*} key + * @param {string|object} ref + * @param {*} owner + * @param {*} self A *temporary* helper to detect places where `this` is + * different from the `owner` when React.createElement is called, so that we + * can warn. We want to get rid of owner and replace string `ref`s with arrow + * functions, and as long as `this` and owner are the same, there will be no + * change in behavior. + * @param {*} source An annotation object (added by a transpiler or otherwise) + * indicating filename, line number, and/or other information. + * @internal + */ + + + var ReactElement = function (type, key, ref, self, source, owner, props) { + var element = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: REACT_ELEMENT_TYPE, + // Built-in properties that belong on the element + type: type, + key: key, + ref: ref, + props: props, + // Record the component responsible for creating this element. + _owner: owner + }; + + { + // The validation flag is currently mutative. We put it on + // an external backing store so that we can freeze the whole object. + // This can be replaced with a WeakMap once they are implemented in + // commonly used development environments. + element._store = {}; // To make comparing ReactElements easier for testing purposes, we make + // the validation flag non-enumerable (where possible, which should + // include every environment we run tests in), so the test framework + // ignores it. + + Object.defineProperty(element._store, 'validated', { + configurable: false, + enumerable: false, + writable: true, + value: false + }); // self and source are DEV only properties. + + Object.defineProperty(element, '_self', { + configurable: false, + enumerable: false, + writable: false, + value: self + }); // Two elements created in two different places should be considered + // equal for testing purposes and therefore we hide it from enumeration. + + Object.defineProperty(element, '_source', { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + + if (Object.freeze) { + Object.freeze(element.props); + Object.freeze(element); + } + } + + return element; + }; + /** + * Create and return a new ReactElement of the given type. + * See https://reactjs.org/docs/react-api.html#createelement + */ + + function createElement(type, config, children) { + var propName; // Reserved names are extracted + + var props = {}; + var key = null; + var ref = null; + var self = null; + var source = null; + + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + + { + warnIfStringRefCannotBeAutoConverted(config); + } + } + + if (hasValidKey(config)) { + key = '' + config.key; + } + + self = config.__self === undefined ? null : config.__self; + source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object + + for (propName in config) { + if (hasOwnProperty$1.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + props[propName] = config[propName]; + } + } + } // Children can be more than one argument, and those are transferred onto + // the newly allocated props object. + + + var childrenLength = arguments.length - 2; + + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + + { + if (Object.freeze) { + Object.freeze(childArray); + } + } + + props.children = childArray; + } // Resolve default props + + + if (type && type.defaultProps) { + var defaultProps = type.defaultProps; + + for (propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + } + + { + if (key || ref) { + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; + + if (key) { + defineKeyPropWarningGetter(props, displayName); + } + + if (ref) { + defineRefPropWarningGetter(props, displayName); + } + } + } + + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); + } + function cloneAndReplaceKey(oldElement, newKey) { + var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); + return newElement; + } + /** + * Clone and return a new ReactElement using element as the starting point. + * See https://reactjs.org/docs/react-api.html#cloneelement + */ + + function cloneElement(element, config, children) { + if (!!(element === null || element === undefined)) { + { + throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." ); + } + } + + var propName; // Original props are copied + + var props = objectAssign({}, element.props); // Reserved names are extracted + + + var key = element.key; + var ref = element.ref; // Self is preserved since the owner is preserved. + + var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a + // transpiler, and the original source is probably a better indicator of the + // true owner. + + var source = element._source; // Owner will be preserved, unless ref is overridden + + var owner = element._owner; + + if (config != null) { + if (hasValidRef(config)) { + // Silently steal the ref from the parent. + ref = config.ref; + owner = ReactCurrentOwner.current; + } + + if (hasValidKey(config)) { + key = '' + config.key; + } // Remaining properties override existing props + + + var defaultProps; + + if (element.type && element.type.defaultProps) { + defaultProps = element.type.defaultProps; + } + + for (propName in config) { + if (hasOwnProperty$1.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (config[propName] === undefined && defaultProps !== undefined) { + // Resolve default props + props[propName] = defaultProps[propName]; + } else { + props[propName] = config[propName]; + } + } + } + } // Children can be more than one argument, and those are transferred onto + // the newly allocated props object. + + + var childrenLength = arguments.length - 2; + + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + + props.children = childArray; + } + + return ReactElement(element.type, key, ref, self, source, owner, props); + } + /** + * Verifies the object is a ReactElement. + * See https://reactjs.org/docs/react-api.html#isvalidelement + * @param {?object} object + * @return {boolean} True if `object` is a ReactElement. + * @final + */ + + function isValidElement(object) { + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + } + + var SEPARATOR = '.'; + var SUBSEPARATOR = ':'; + /** + * Escape and wrap key so it is safe to use as a reactid + * + * @param {string} key to be escaped. + * @return {string} the escaped key. + */ + + function escape(key) { + var escapeRegex = /[=:]/g; + var escaperLookup = { + '=': '=0', + ':': '=2' + }; + var escapedString = ('' + key).replace(escapeRegex, function (match) { + return escaperLookup[match]; + }); + return '$' + escapedString; + } + /** + * TODO: Test that a single child and an array with one item have the same key + * pattern. + */ + + + var didWarnAboutMaps = false; + var userProvidedKeyEscapeRegex = /\/+/g; + + function escapeUserProvidedKey(text) { + return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/'); + } + + var POOL_SIZE = 10; + var traverseContextPool = []; + + function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) { + if (traverseContextPool.length) { + var traverseContext = traverseContextPool.pop(); + traverseContext.result = mapResult; + traverseContext.keyPrefix = keyPrefix; + traverseContext.func = mapFunction; + traverseContext.context = mapContext; + traverseContext.count = 0; + return traverseContext; + } else { + return { + result: mapResult, + keyPrefix: keyPrefix, + func: mapFunction, + context: mapContext, + count: 0 + }; + } + } + + function releaseTraverseContext(traverseContext) { + traverseContext.result = null; + traverseContext.keyPrefix = null; + traverseContext.func = null; + traverseContext.context = null; + traverseContext.count = 0; + + if (traverseContextPool.length < POOL_SIZE) { + traverseContextPool.push(traverseContext); + } + } + /** + * @param {?*} children Children tree container. + * @param {!string} nameSoFar Name of the key path so far. + * @param {!function} callback Callback to invoke with each child found. + * @param {?*} traverseContext Used to pass information throughout the traversal + * process. + * @return {!number} The number of children in this subtree. + */ + + + function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { + var type = typeof children; + + if (type === 'undefined' || type === 'boolean') { + // All of the above are perceived as null. + children = null; + } + + var invokeCallback = false; + + if (children === null) { + invokeCallback = true; + } else { + switch (type) { + case 'string': + case 'number': + invokeCallback = true; + break; + + case 'object': + switch (children.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + invokeCallback = true; + } + + } + } + + if (invokeCallback) { + callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array + // so that it's consistent if the number of children grows. + nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar); + return 1; + } + + var child; + var nextName; + var subtreeCount = 0; // Count of children found in the current subtree. + + var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; + + if (Array.isArray(children)) { + for (var i = 0; i < children.length; i++) { + child = children[i]; + nextName = nextNamePrefix + getComponentKey(child, i); + subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); + } + } else { + var iteratorFn = getIteratorFn(children); + + if (typeof iteratorFn === 'function') { + + { + // Warn about using Maps as children + if (iteratorFn === children.entries) { + if (!didWarnAboutMaps) { + warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.'); + } + + didWarnAboutMaps = true; + } + } + + var iterator = iteratorFn.call(children); + var step; + var ii = 0; + + while (!(step = iterator.next()).done) { + child = step.value; + nextName = nextNamePrefix + getComponentKey(child, ii++); + subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); + } + } else if (type === 'object') { + var addendum = ''; + + { + addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum(); + } + + var childrenString = '' + children; + + { + { + throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum ); + } + } + } + } + + return subtreeCount; + } + /** + * Traverses children that are typically specified as `props.children`, but + * might also be specified through attributes: + * + * - `traverseAllChildren(this.props.children, ...)` + * - `traverseAllChildren(this.props.leftPanelChildren, ...)` + * + * The `traverseContext` is an optional argument that is passed through the + * entire traversal. It can be used to store accumulations or anything else that + * the callback might find relevant. + * + * @param {?*} children Children tree object. + * @param {!function} callback To invoke upon traversing each child. + * @param {?*} traverseContext Context for traversal. + * @return {!number} The number of children in this subtree. + */ + + + function traverseAllChildren(children, callback, traverseContext) { + if (children == null) { + return 0; + } + + return traverseAllChildrenImpl(children, '', callback, traverseContext); + } + /** + * Generate a key string that identifies a component within a set. + * + * @param {*} component A component that could contain a manual key. + * @param {number} index Index that is used if a manual key is not provided. + * @return {string} + */ + + + function getComponentKey(component, index) { + // Do some typechecking here since we call this blindly. We want to ensure + // that we don't block potential future ES APIs. + if (typeof component === 'object' && component !== null && component.key != null) { + // Explicit key + return escape(component.key); + } // Implicit key determined by the index in the set + + + return index.toString(36); + } + + function forEachSingleChild(bookKeeping, child, name) { + var func = bookKeeping.func, + context = bookKeeping.context; + func.call(context, child, bookKeeping.count++); + } + /** + * Iterates through children that are typically specified as `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenforeach + * + * The provided forEachFunc(child, index) will be called for each + * leaf child. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} forEachFunc + * @param {*} forEachContext Context for forEachContext. + */ + + + function forEachChildren(children, forEachFunc, forEachContext) { + if (children == null) { + return children; + } + + var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext); + traverseAllChildren(children, forEachSingleChild, traverseContext); + releaseTraverseContext(traverseContext); + } + + function mapSingleChildIntoContext(bookKeeping, child, childKey) { + var result = bookKeeping.result, + keyPrefix = bookKeeping.keyPrefix, + func = bookKeeping.func, + context = bookKeeping.context; + var mappedChild = func.call(context, child, bookKeeping.count++); + + if (Array.isArray(mappedChild)) { + mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) { + return c; + }); + } else if (mappedChild != null) { + if (isValidElement(mappedChild)) { + mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as + // traverseAllChildren used to do for objects as children + keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey); + } + + result.push(mappedChild); + } + } + + function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { + var escapedPrefix = ''; + + if (prefix != null) { + escapedPrefix = escapeUserProvidedKey(prefix) + '/'; + } + + var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context); + traverseAllChildren(children, mapSingleChildIntoContext, traverseContext); + releaseTraverseContext(traverseContext); + } + /** + * Maps children that are typically specified as `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenmap + * + * The provided mapFunction(child, key, index) will be called for each + * leaf child. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func The map function. + * @param {*} context Context for mapFunction. + * @return {object} Object containing the ordered map of results. + */ + + + function mapChildren(children, func, context) { + if (children == null) { + return children; + } + + var result = []; + mapIntoWithKeyPrefixInternal(children, result, null, func, context); + return result; + } + /** + * Count the number of children that are typically specified as + * `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrencount + * + * @param {?*} children Children tree container. + * @return {number} The number of children. + */ + + + function countChildren(children) { + return traverseAllChildren(children, function () { + return null; + }, null); + } + /** + * Flatten a children object (typically specified as `props.children`) and + * return an array with appropriately re-keyed children. + * + * See https://reactjs.org/docs/react-api.html#reactchildrentoarray + */ + + + function toArray(children) { + var result = []; + mapIntoWithKeyPrefixInternal(children, result, null, function (child) { + return child; + }); + return result; + } + /** + * Returns the first child in a collection of children and verifies that there + * is only one child in the collection. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenonly + * + * The current implementation of this function assumes that a single child gets + * passed without a wrapper, but the purpose of this helper function is to + * abstract away the particular structure of children. + * + * @param {?object} children Child collection structure. + * @return {ReactElement} The first and only `ReactElement` contained in the + * structure. + */ + + + function onlyChild(children) { + if (!isValidElement(children)) { + { + throw Error( "React.Children.only expected to receive a single React element child." ); + } + } + + return children; + } + + function createContext(defaultValue, calculateChangedBits) { + if (calculateChangedBits === undefined) { + calculateChangedBits = null; + } else { + { + if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') { + error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits); + } + } + } + + var context = { + $$typeof: REACT_CONTEXT_TYPE, + _calculateChangedBits: calculateChangedBits, + // As a workaround to support multiple concurrent renderers, we categorize + // some renderers as primary and others as secondary. We only expect + // there to be two concurrent renderers at most: React Native (primary) and + // Fabric (secondary); React DOM (primary) and React ART (secondary). + // Secondary renderers store their context values on separate fields. + _currentValue: defaultValue, + _currentValue2: defaultValue, + // Used to track how many concurrent renderers this context currently + // supports within in a single renderer. Such as parallel server rendering. + _threadCount: 0, + // These are circular + Provider: null, + Consumer: null + }; + context.Provider = { + $$typeof: REACT_PROVIDER_TYPE, + _context: context + }; + var hasWarnedAboutUsingNestedContextConsumers = false; + var hasWarnedAboutUsingConsumerProvider = false; + + { + // A separate object, but proxies back to the original context object for + // backwards compatibility. It has a different $$typeof, so we can properly + // warn for the incorrect usage of Context as a Consumer. + var Consumer = { + $$typeof: REACT_CONTEXT_TYPE, + _context: context, + _calculateChangedBits: context._calculateChangedBits + }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here + + Object.defineProperties(Consumer, { + Provider: { + get: function () { + if (!hasWarnedAboutUsingConsumerProvider) { + hasWarnedAboutUsingConsumerProvider = true; + + error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?'); + } + + return context.Provider; + }, + set: function (_Provider) { + context.Provider = _Provider; + } + }, + _currentValue: { + get: function () { + return context._currentValue; + }, + set: function (_currentValue) { + context._currentValue = _currentValue; + } + }, + _currentValue2: { + get: function () { + return context._currentValue2; + }, + set: function (_currentValue2) { + context._currentValue2 = _currentValue2; + } + }, + _threadCount: { + get: function () { + return context._threadCount; + }, + set: function (_threadCount) { + context._threadCount = _threadCount; + } + }, + Consumer: { + get: function () { + if (!hasWarnedAboutUsingNestedContextConsumers) { + hasWarnedAboutUsingNestedContextConsumers = true; + + error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?'); + } + + return context.Consumer; + } + } + }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty + + context.Consumer = Consumer; + } + + { + context._currentRenderer = null; + context._currentRenderer2 = null; + } + + return context; + } + + function lazy(ctor) { + var lazyType = { + $$typeof: REACT_LAZY_TYPE, + _ctor: ctor, + // React uses these fields to store the result. + _status: -1, + _result: null + }; + + { + // In production, this would just set it on the object. + var defaultProps; + var propTypes; + Object.defineProperties(lazyType, { + defaultProps: { + configurable: true, + get: function () { + return defaultProps; + }, + set: function (newDefaultProps) { + error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + + defaultProps = newDefaultProps; // Match production behavior more closely: + + Object.defineProperty(lazyType, 'defaultProps', { + enumerable: true + }); + } + }, + propTypes: { + configurable: true, + get: function () { + return propTypes; + }, + set: function (newPropTypes) { + error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + + propTypes = newPropTypes; // Match production behavior more closely: + + Object.defineProperty(lazyType, 'propTypes', { + enumerable: true + }); + } + } + }); + } + + return lazyType; + } + + function forwardRef(render) { + { + if (render != null && render.$$typeof === REACT_MEMO_TYPE) { + error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).'); + } else if (typeof render !== 'function') { + error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render); + } else { + if (render.length !== 0 && render.length !== 2) { + error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.'); + } + } + + if (render != null) { + if (render.defaultProps != null || render.propTypes != null) { + error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?'); + } + } + } + + return { + $$typeof: REACT_FORWARD_REF_TYPE, + render: render + }; + } + + function isValidElementType(type) { + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); + } + + function memo(type, compare) { + { + if (!isValidElementType(type)) { + error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type); + } + } + + return { + $$typeof: REACT_MEMO_TYPE, + type: type, + compare: compare === undefined ? null : compare + }; + } + + function resolveDispatcher() { + var dispatcher = ReactCurrentDispatcher.current; + + if (!(dispatcher !== null)) { + { + throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." ); + } + } + + return dispatcher; + } + + function useContext(Context, unstable_observedBits) { + var dispatcher = resolveDispatcher(); + + { + if (unstable_observedBits !== undefined) { + error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : ''); + } // TODO: add a more generic warning for invalid values. + + + if (Context._context !== undefined) { + var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs + // and nobody should be using this in existing code. + + if (realContext.Consumer === Context) { + error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?'); + } else if (realContext.Provider === Context) { + error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?'); + } + } + } + + return dispatcher.useContext(Context, unstable_observedBits); + } + function useState(initialState) { + var dispatcher = resolveDispatcher(); + return dispatcher.useState(initialState); + } + function useReducer(reducer, initialArg, init) { + var dispatcher = resolveDispatcher(); + return dispatcher.useReducer(reducer, initialArg, init); + } + function useRef(initialValue) { + var dispatcher = resolveDispatcher(); + return dispatcher.useRef(initialValue); + } + function useEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useEffect(create, deps); + } + function useLayoutEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useLayoutEffect(create, deps); + } + function useCallback(callback, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useCallback(callback, deps); + } + function useMemo(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useMemo(create, deps); + } + function useImperativeHandle(ref, create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useImperativeHandle(ref, create, deps); + } + function useDebugValue(value, formatterFn) { + { + var dispatcher = resolveDispatcher(); + return dispatcher.useDebugValue(value, formatterFn); + } + } + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + + var ReactPropTypesSecret_1 = ReactPropTypesSecret; + + var printWarning$1 = function() {}; + + { + var ReactPropTypesSecret$1 = ReactPropTypesSecret_1; + var loggedTypeFailures = {}; + var has = Function.call.bind(Object.prototype.hasOwnProperty); + + printWarning$1 = function(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; + } + + /** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ + function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + { + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error( + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + ); + err.name = 'Invariant Violation'; + throw err; + } + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1); + } catch (ex) { + error = ex; + } + if (error && !(error instanceof Error)) { + printWarning$1( + (componentName || 'React class') + ': type specification of ' + + location + ' `' + typeSpecName + '` is invalid; the type checker ' + + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + + 'You may have forgotten to pass an argument to the type checker ' + + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + + 'shape all require an argument).' + ); + } + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + printWarning$1( + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') + ); + } + } + } + } + } + + /** + * Resets warning cache when testing. + * + * @private + */ + checkPropTypes.resetWarningCache = function() { + { + loggedTypeFailures = {}; + } + }; + + var checkPropTypes_1 = checkPropTypes; + + var propTypesMisspellWarningShown; + + { + propTypesMisspellWarningShown = false; + } + + function getDeclarationErrorAddendum() { + if (ReactCurrentOwner.current) { + var name = getComponentName(ReactCurrentOwner.current.type); + + if (name) { + return '\n\nCheck the render method of `' + name + '`.'; + } + } + + return ''; + } + + function getSourceInfoErrorAddendum(source) { + if (source !== undefined) { + var fileName = source.fileName.replace(/^.*[\\\/]/, ''); + var lineNumber = source.lineNumber; + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.'; + } + + return ''; + } + + function getSourceInfoErrorAddendumForProps(elementProps) { + if (elementProps !== null && elementProps !== undefined) { + return getSourceInfoErrorAddendum(elementProps.__source); + } + + return ''; + } + /** + * Warn if there's no key explicitly set on dynamic arrays of children or + * object keys are not valid. This allows us to keep track of children between + * updates. + */ + + + var ownerHasKeyUseWarning = {}; + + function getCurrentComponentErrorInfo(parentType) { + var info = getDeclarationErrorAddendum(); + + if (!info) { + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; + + if (parentName) { + info = "\n\nCheck the top-level render call using <" + parentName + ">."; + } + } + + return info; + } + /** + * Warn if the element doesn't have an explicit key assigned to it. + * This element is in an array. The array could grow and shrink or be + * reordered. All children that haven't already been validated are required to + * have a "key" property assigned to it. Error statuses are cached so a warning + * will only be shown once. + * + * @internal + * @param {ReactElement} element Element that requires a key. + * @param {*} parentType element's parent's type. + */ + + + function validateExplicitKey(element, parentType) { + if (!element._store || element._store.validated || element.key != null) { + return; + } + + element._store.validated = true; + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a + // property, it may be the creator of the child that's responsible for + // assigning it a key. + + var childOwner = ''; + + if (element && element._owner && element._owner !== ReactCurrentOwner.current) { + // Give the component that originally created this child. + childOwner = " It was passed a child from " + getComponentName(element._owner.type) + "."; + } + + setCurrentlyValidatingElement(element); + + { + error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner); + } + + setCurrentlyValidatingElement(null); + } + /** + * Ensure that every element either is passed in a static location, in an + * array with an explicit keys property defined, or in an object literal + * with valid key property. + * + * @internal + * @param {ReactNode} node Statically passed child of any type. + * @param {*} parentType node's parent's type. + */ + + + function validateChildKeys(node, parentType) { + if (typeof node !== 'object') { + return; + } + + if (Array.isArray(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } + } + } else if (isValidElement(node)) { + // This element was passed in a valid location. + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + + if (typeof iteratorFn === 'function') { + // Entry iterators used to provide implicit keys, + // but now we print a separate warning for them later. + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step; + + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } + } + /** + * Given an element, validate that its props follow the propTypes definition, + * provided by the type. + * + * @param {ReactElement} element + */ + + + function validatePropTypes(element) { + { + var type = element.type; + + if (type === null || type === undefined || typeof type === 'string') { + return; + } + + var name = getComponentName(type); + var propTypes; + + if (typeof type === 'function') { + propTypes = type.propTypes; + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + type.$$typeof === REACT_MEMO_TYPE)) { + propTypes = type.propTypes; + } else { + return; + } + + if (propTypes) { + setCurrentlyValidatingElement(element); + checkPropTypes_1(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum); + setCurrentlyValidatingElement(null); + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown'); + } + + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) { + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.'); + } + } + } + /** + * Given a fragment, validate that it can only be provided with fragment props + * @param {ReactElement} fragment + */ + + + function validateFragmentProps(fragment) { + { + setCurrentlyValidatingElement(fragment); + var keys = Object.keys(fragment.props); + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + + if (key !== 'children' && key !== 'key') { + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key); + + break; + } + } + + if (fragment.ref !== null) { + error('Invalid attribute `ref` supplied to `React.Fragment`.'); + } + + setCurrentlyValidatingElement(null); + } + } + function createElementWithValidation(type, props, children) { + var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to + // succeed and there will likely be errors in render. + + if (!validType) { + var info = ''; + + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { + info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports."; + } + + var sourceInfo = getSourceInfoErrorAddendumForProps(props); + + if (sourceInfo) { + info += sourceInfo; + } else { + info += getDeclarationErrorAddendum(); + } + + var typeString; + + if (type === null) { + typeString = 'null'; + } else if (Array.isArray(type)) { + typeString = 'array'; + } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) { + typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />"; + info = ' Did you accidentally export a JSX literal instead of a component?'; + } else { + typeString = typeof type; + } + + { + error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); + } + } + + var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. + // TODO: Drop this when these are no longer allowed as the type argument. + + if (element == null) { + return element; + } // Skip key warning if the type isn't valid since our key validation logic + // doesn't expect a non-string/function type and can throw confusing errors. + // We don't want exception behavior to differ between dev and prod. + // (Rendering will throw with a helpful message and as soon as the type is + // fixed, the key warnings will appear.) + + + if (validType) { + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], type); + } + } + + if (type === REACT_FRAGMENT_TYPE) { + validateFragmentProps(element); + } else { + validatePropTypes(element); + } + + return element; + } + var didWarnAboutDeprecatedCreateFactory = false; + function createFactoryWithValidation(type) { + var validatedFactory = createElementWithValidation.bind(null, type); + validatedFactory.type = type; + + { + if (!didWarnAboutDeprecatedCreateFactory) { + didWarnAboutDeprecatedCreateFactory = true; + + warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.'); + } // Legacy hook: remove it + + + Object.defineProperty(validatedFactory, 'type', { + enumerable: false, + get: function () { + warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); + + Object.defineProperty(this, 'type', { + value: type + }); + return type; + } + }); + } + + return validatedFactory; + } + function cloneElementWithValidation(element, props, children) { + var newElement = cloneElement.apply(this, arguments); + + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], newElement.type); + } + + validatePropTypes(newElement); + return newElement; + } + + var enableSchedulerDebugging = false; + var enableProfiling = true; + + var requestHostCallback; + var requestHostTimeout; + var cancelHostTimeout; + var shouldYieldToHost; + var requestPaint; + var getCurrentTime; + var forceFrameRate; + + if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive + // implementation using setTimeout. + typeof window === 'undefined' || // Check if MessageChannel is supported, too. + typeof MessageChannel !== 'function') { + // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore, + // fallback to a naive implementation. + var _callback = null; + var _timeoutID = null; + + var _flushCallback = function () { + if (_callback !== null) { + try { + var currentTime = getCurrentTime(); + var hasRemainingTime = true; + + _callback(hasRemainingTime, currentTime); + + _callback = null; + } catch (e) { + setTimeout(_flushCallback, 0); + throw e; + } + } + }; + + var initialTime = Date.now(); + + getCurrentTime = function () { + return Date.now() - initialTime; + }; + + requestHostCallback = function (cb) { + if (_callback !== null) { + // Protect against re-entrancy. + setTimeout(requestHostCallback, 0, cb); + } else { + _callback = cb; + setTimeout(_flushCallback, 0); + } + }; + + requestHostTimeout = function (cb, ms) { + _timeoutID = setTimeout(cb, ms); + }; + + cancelHostTimeout = function () { + clearTimeout(_timeoutID); + }; + + shouldYieldToHost = function () { + return false; + }; + + requestPaint = forceFrameRate = function () {}; + } else { + // Capture local references to native APIs, in case a polyfill overrides them. + var performance = window.performance; + var _Date = window.Date; + var _setTimeout = window.setTimeout; + var _clearTimeout = window.clearTimeout; + + if (typeof console !== 'undefined') { + // TODO: Scheduler no longer requires these methods to be polyfilled. But + // maybe we want to continue warning if they don't exist, to preserve the + // option to rely on it in the future? + var requestAnimationFrame = window.requestAnimationFrame; + var cancelAnimationFrame = window.cancelAnimationFrame; // TODO: Remove fb.me link + + if (typeof requestAnimationFrame !== 'function') { + // Using console['error'] to evade Babel and ESLint + console['error']("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills'); + } + + if (typeof cancelAnimationFrame !== 'function') { + // Using console['error'] to evade Babel and ESLint + console['error']("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills'); + } + } + + if (typeof performance === 'object' && typeof performance.now === 'function') { + getCurrentTime = function () { + return performance.now(); + }; + } else { + var _initialTime = _Date.now(); + + getCurrentTime = function () { + return _Date.now() - _initialTime; + }; + } + + var isMessageLoopRunning = false; + var scheduledHostCallback = null; + var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main + // thread, like user events. By default, it yields multiple times per frame. + // It does not attempt to align with frame boundaries, since most tasks don't + // need to be frame aligned; for those that do, use requestAnimationFrame. + + var yieldInterval = 5; + var deadline = 0; // TODO: Make this configurable + + { + // `isInputPending` is not available. Since we have no way of knowing if + // there's pending input, always yield at the end of the frame. + shouldYieldToHost = function () { + return getCurrentTime() >= deadline; + }; // Since we yield every frame regardless, `requestPaint` has no effect. + + + requestPaint = function () {}; + } + + forceFrameRate = function (fps) { + if (fps < 0 || fps > 125) { + // Using console['error'] to evade Babel and ESLint + console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported'); + return; + } + + if (fps > 0) { + yieldInterval = Math.floor(1000 / fps); + } else { + // reset the framerate + yieldInterval = 5; + } + }; + + var performWorkUntilDeadline = function () { + if (scheduledHostCallback !== null) { + var currentTime = getCurrentTime(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync + // cycle. This means there's always time remaining at the beginning of + // the message event. + + deadline = currentTime + yieldInterval; + var hasTimeRemaining = true; + + try { + var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); + + if (!hasMoreWork) { + isMessageLoopRunning = false; + scheduledHostCallback = null; + } else { + // If there's more work, schedule the next message event at the end + // of the preceding one. + port.postMessage(null); + } + } catch (error) { + // If a scheduler task throws, exit the current browser task so the + // error can be observed. + port.postMessage(null); + throw error; + } + } else { + isMessageLoopRunning = false; + } // Yielding to the browser will give it a chance to paint, so we can + }; + + var channel = new MessageChannel(); + var port = channel.port2; + channel.port1.onmessage = performWorkUntilDeadline; + + requestHostCallback = function (callback) { + scheduledHostCallback = callback; + + if (!isMessageLoopRunning) { + isMessageLoopRunning = true; + port.postMessage(null); + } + }; + + requestHostTimeout = function (callback, ms) { + taskTimeoutID = _setTimeout(function () { + callback(getCurrentTime()); + }, ms); + }; + + cancelHostTimeout = function () { + _clearTimeout(taskTimeoutID); + + taskTimeoutID = -1; + }; + } + + function push(heap, node) { + var index = heap.length; + heap.push(node); + siftUp(heap, node, index); + } + function peek(heap) { + var first = heap[0]; + return first === undefined ? null : first; + } + function pop(heap) { + var first = heap[0]; + + if (first !== undefined) { + var last = heap.pop(); + + if (last !== first) { + heap[0] = last; + siftDown(heap, last, 0); + } + + return first; + } else { + return null; + } + } + + function siftUp(heap, node, i) { + var index = i; + + while (true) { + var parentIndex = index - 1 >>> 1; + var parent = heap[parentIndex]; + + if (parent !== undefined && compare(parent, node) > 0) { + // The parent is larger. Swap positions. + heap[parentIndex] = node; + heap[index] = parent; + index = parentIndex; + } else { + // The parent is smaller. Exit. + return; + } + } + } + + function siftDown(heap, node, i) { + var index = i; + var length = heap.length; + + while (index < length) { + var leftIndex = (index + 1) * 2 - 1; + var left = heap[leftIndex]; + var rightIndex = leftIndex + 1; + var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those. + + if (left !== undefined && compare(left, node) < 0) { + if (right !== undefined && compare(right, left) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + heap[index] = left; + heap[leftIndex] = node; + index = leftIndex; + } + } else if (right !== undefined && compare(right, node) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + // Neither child is smaller. Exit. + return; + } + } + } + + function compare(a, b) { + // Compare sort index first, then task id. + var diff = a.sortIndex - b.sortIndex; + return diff !== 0 ? diff : a.id - b.id; + } + + // TODO: Use symbols? + var NoPriority = 0; + var ImmediatePriority = 1; + var UserBlockingPriority = 2; + var NormalPriority = 3; + var LowPriority = 4; + var IdlePriority = 5; + + var runIdCounter = 0; + var mainThreadIdCounter = 0; + var profilingStateSize = 4; + var sharedProfilingBuffer = // $FlowFixMe Flow doesn't know about SharedArrayBuffer + typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : // $FlowFixMe Flow doesn't know about ArrayBuffer + typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null // Don't crash the init path on IE9 + ; + var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks + + var PRIORITY = 0; + var CURRENT_TASK_ID = 1; + var CURRENT_RUN_ID = 2; + var QUEUE_SIZE = 3; + + { + profilingState[PRIORITY] = NoPriority; // This is maintained with a counter, because the size of the priority queue + // array might include canceled tasks. + + profilingState[QUEUE_SIZE] = 0; + profilingState[CURRENT_TASK_ID] = 0; + } // Bytes per element is 4 + + + var INITIAL_EVENT_LOG_SIZE = 131072; + var MAX_EVENT_LOG_SIZE = 524288; // Equivalent to 2 megabytes + + var eventLogSize = 0; + var eventLogBuffer = null; + var eventLog = null; + var eventLogIndex = 0; + var TaskStartEvent = 1; + var TaskCompleteEvent = 2; + var TaskErrorEvent = 3; + var TaskCancelEvent = 4; + var TaskRunEvent = 5; + var TaskYieldEvent = 6; + var SchedulerSuspendEvent = 7; + var SchedulerResumeEvent = 8; + + function logEvent(entries) { + if (eventLog !== null) { + var offset = eventLogIndex; + eventLogIndex += entries.length; + + if (eventLogIndex + 1 > eventLogSize) { + eventLogSize *= 2; + + if (eventLogSize > MAX_EVENT_LOG_SIZE) { + // Using console['error'] to evade Babel and ESLint + console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.'); + stopLoggingProfilingEvents(); + return; + } + + var newEventLog = new Int32Array(eventLogSize * 4); + newEventLog.set(eventLog); + eventLogBuffer = newEventLog.buffer; + eventLog = newEventLog; + } + + eventLog.set(entries, offset); + } + } + + function startLoggingProfilingEvents() { + eventLogSize = INITIAL_EVENT_LOG_SIZE; + eventLogBuffer = new ArrayBuffer(eventLogSize * 4); + eventLog = new Int32Array(eventLogBuffer); + eventLogIndex = 0; + } + function stopLoggingProfilingEvents() { + var buffer = eventLogBuffer; + eventLogSize = 0; + eventLogBuffer = null; + eventLog = null; + eventLogIndex = 0; + return buffer; + } + function markTaskStart(task, ms) { + { + profilingState[QUEUE_SIZE]++; + + if (eventLog !== null) { + // performance.now returns a float, representing milliseconds. When the + // event is logged, it's coerced to an int. Convert to microseconds to + // maintain extra degrees of precision. + logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]); + } + } + } + function markTaskCompleted(task, ms) { + { + profilingState[PRIORITY] = NoPriority; + profilingState[CURRENT_TASK_ID] = 0; + profilingState[QUEUE_SIZE]--; + + if (eventLog !== null) { + logEvent([TaskCompleteEvent, ms * 1000, task.id]); + } + } + } + function markTaskCanceled(task, ms) { + { + profilingState[QUEUE_SIZE]--; + + if (eventLog !== null) { + logEvent([TaskCancelEvent, ms * 1000, task.id]); + } + } + } + function markTaskErrored(task, ms) { + { + profilingState[PRIORITY] = NoPriority; + profilingState[CURRENT_TASK_ID] = 0; + profilingState[QUEUE_SIZE]--; + + if (eventLog !== null) { + logEvent([TaskErrorEvent, ms * 1000, task.id]); + } + } + } + function markTaskRun(task, ms) { + { + runIdCounter++; + profilingState[PRIORITY] = task.priorityLevel; + profilingState[CURRENT_TASK_ID] = task.id; + profilingState[CURRENT_RUN_ID] = runIdCounter; + + if (eventLog !== null) { + logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]); + } + } + } + function markTaskYield(task, ms) { + { + profilingState[PRIORITY] = NoPriority; + profilingState[CURRENT_TASK_ID] = 0; + profilingState[CURRENT_RUN_ID] = 0; + + if (eventLog !== null) { + logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]); + } + } + } + function markSchedulerSuspended(ms) { + { + mainThreadIdCounter++; + + if (eventLog !== null) { + logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]); + } + } + } + function markSchedulerUnsuspended(ms) { + { + if (eventLog !== null) { + logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]); + } + } + } + + /* eslint-disable no-var */ + // Math.pow(2, 30) - 1 + // 0b111111111111111111111111111111 + + var maxSigned31BitInt = 1073741823; // Times out immediately + + var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out + + var USER_BLOCKING_PRIORITY = 250; + var NORMAL_PRIORITY_TIMEOUT = 5000; + var LOW_PRIORITY_TIMEOUT = 10000; // Never times out + + var IDLE_PRIORITY = maxSigned31BitInt; // Tasks are stored on a min heap + + var taskQueue = []; + var timerQueue = []; // Incrementing id counter. Used to maintain insertion order. + + var taskIdCounter = 1; // Pausing the scheduler is useful for debugging. + var currentTask = null; + var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy. + + var isPerformingWork = false; + var isHostCallbackScheduled = false; + var isHostTimeoutScheduled = false; + + function advanceTimers(currentTime) { + // Check for tasks that are no longer delayed and add them to the queue. + var timer = peek(timerQueue); + + while (timer !== null) { + if (timer.callback === null) { + // Timer was cancelled. + pop(timerQueue); + } else if (timer.startTime <= currentTime) { + // Timer fired. Transfer to the task queue. + pop(timerQueue); + timer.sortIndex = timer.expirationTime; + push(taskQueue, timer); + + { + markTaskStart(timer, currentTime); + timer.isQueued = true; + } + } else { + // Remaining timers are pending. + return; + } + + timer = peek(timerQueue); + } + } + + function handleTimeout(currentTime) { + isHostTimeoutScheduled = false; + advanceTimers(currentTime); + + if (!isHostCallbackScheduled) { + if (peek(taskQueue) !== null) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } else { + var firstTimer = peek(timerQueue); + + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + } + } + } + + function flushWork(hasTimeRemaining, initialTime) { + { + markSchedulerUnsuspended(initialTime); + } // We'll need a host callback the next time work is scheduled. + + + isHostCallbackScheduled = false; + + if (isHostTimeoutScheduled) { + // We scheduled a timeout but it's no longer needed. Cancel it. + isHostTimeoutScheduled = false; + cancelHostTimeout(); + } + + isPerformingWork = true; + var previousPriorityLevel = currentPriorityLevel; + + try { + if (enableProfiling) { + try { + return workLoop(hasTimeRemaining, initialTime); + } catch (error) { + if (currentTask !== null) { + var currentTime = getCurrentTime(); + markTaskErrored(currentTask, currentTime); + currentTask.isQueued = false; + } + + throw error; + } + } else { + // No catch in prod codepath. + return workLoop(hasTimeRemaining, initialTime); + } + } finally { + currentTask = null; + currentPriorityLevel = previousPriorityLevel; + isPerformingWork = false; + + { + var _currentTime = getCurrentTime(); + + markSchedulerSuspended(_currentTime); + } + } + } + + function workLoop(hasTimeRemaining, initialTime) { + var currentTime = initialTime; + advanceTimers(currentTime); + currentTask = peek(taskQueue); + + while (currentTask !== null && !(enableSchedulerDebugging )) { + if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { + // This currentTask hasn't expired, and we've reached the deadline. + break; + } + + var callback = currentTask.callback; + + if (callback !== null) { + currentTask.callback = null; + currentPriorityLevel = currentTask.priorityLevel; + var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; + markTaskRun(currentTask, currentTime); + var continuationCallback = callback(didUserCallbackTimeout); + currentTime = getCurrentTime(); + + if (typeof continuationCallback === 'function') { + currentTask.callback = continuationCallback; + markTaskYield(currentTask, currentTime); + } else { + { + markTaskCompleted(currentTask, currentTime); + currentTask.isQueued = false; + } + + if (currentTask === peek(taskQueue)) { + pop(taskQueue); + } + } + + advanceTimers(currentTime); + } else { + pop(taskQueue); + } + + currentTask = peek(taskQueue); + } // Return whether there's additional work + + + if (currentTask !== null) { + return true; + } else { + var firstTimer = peek(timerQueue); + + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + + return false; + } + } + + function unstable_runWithPriority(priorityLevel, eventHandler) { + switch (priorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + case LowPriority: + case IdlePriority: + break; + + default: + priorityLevel = NormalPriority; + } + + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + + function unstable_next(eventHandler) { + var priorityLevel; + + switch (currentPriorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + // Shift down to normal priority + priorityLevel = NormalPriority; + break; + + default: + // Anything lower than normal priority should remain at the current level. + priorityLevel = currentPriorityLevel; + break; + } + + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + + function unstable_wrapCallback(callback) { + var parentPriorityLevel = currentPriorityLevel; + return function () { + // This is a fork of runWithPriority, inlined for performance. + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = parentPriorityLevel; + + try { + return callback.apply(this, arguments); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + }; + } + + function timeoutForPriorityLevel(priorityLevel) { + switch (priorityLevel) { + case ImmediatePriority: + return IMMEDIATE_PRIORITY_TIMEOUT; + + case UserBlockingPriority: + return USER_BLOCKING_PRIORITY; + + case IdlePriority: + return IDLE_PRIORITY; + + case LowPriority: + return LOW_PRIORITY_TIMEOUT; + + case NormalPriority: + default: + return NORMAL_PRIORITY_TIMEOUT; + } + } + + function unstable_scheduleCallback(priorityLevel, callback, options) { + var currentTime = getCurrentTime(); + var startTime; + var timeout; + + if (typeof options === 'object' && options !== null) { + var delay = options.delay; + + if (typeof delay === 'number' && delay > 0) { + startTime = currentTime + delay; + } else { + startTime = currentTime; + } + + timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel); + } else { + timeout = timeoutForPriorityLevel(priorityLevel); + startTime = currentTime; + } + + var expirationTime = startTime + timeout; + var newTask = { + id: taskIdCounter++, + callback: callback, + priorityLevel: priorityLevel, + startTime: startTime, + expirationTime: expirationTime, + sortIndex: -1 + }; + + { + newTask.isQueued = false; + } + + if (startTime > currentTime) { + // This is a delayed task. + newTask.sortIndex = startTime; + push(timerQueue, newTask); + + if (peek(taskQueue) === null && newTask === peek(timerQueue)) { + // All tasks are delayed, and this is the task with the earliest delay. + if (isHostTimeoutScheduled) { + // Cancel an existing timeout. + cancelHostTimeout(); + } else { + isHostTimeoutScheduled = true; + } // Schedule a timeout. + + + requestHostTimeout(handleTimeout, startTime - currentTime); + } + } else { + newTask.sortIndex = expirationTime; + push(taskQueue, newTask); + + { + markTaskStart(newTask, currentTime); + newTask.isQueued = true; + } // Schedule a host callback, if needed. If we're already performing work, + // wait until the next time we yield. + + + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + + return newTask; + } + + function unstable_pauseExecution() { + } + + function unstable_continueExecution() { + + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + + function unstable_getFirstCallbackNode() { + return peek(taskQueue); + } + + function unstable_cancelCallback(task) { + { + if (task.isQueued) { + var currentTime = getCurrentTime(); + markTaskCanceled(task, currentTime); + task.isQueued = false; + } + } // Null out the callback to indicate the task has been canceled. (Can't + // remove from the queue because you can't remove arbitrary nodes from an + // array based heap, only the first one.) + + + task.callback = null; + } + + function unstable_getCurrentPriorityLevel() { + return currentPriorityLevel; + } + + function unstable_shouldYield() { + var currentTime = getCurrentTime(); + advanceTimers(currentTime); + var firstTask = peek(taskQueue); + return firstTask !== currentTask && currentTask !== null && firstTask !== null && firstTask.callback !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost(); + } + + var unstable_requestPaint = requestPaint; + var unstable_Profiling = { + startLoggingProfilingEvents: startLoggingProfilingEvents, + stopLoggingProfilingEvents: stopLoggingProfilingEvents, + sharedProfilingBuffer: sharedProfilingBuffer + } ; + + + + var Scheduler = /*#__PURE__*/Object.freeze({ + __proto__: null, + unstable_ImmediatePriority: ImmediatePriority, + unstable_UserBlockingPriority: UserBlockingPriority, + unstable_NormalPriority: NormalPriority, + unstable_IdlePriority: IdlePriority, + unstable_LowPriority: LowPriority, + unstable_runWithPriority: unstable_runWithPriority, + unstable_next: unstable_next, + unstable_scheduleCallback: unstable_scheduleCallback, + unstable_cancelCallback: unstable_cancelCallback, + unstable_wrapCallback: unstable_wrapCallback, + unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel, + unstable_shouldYield: unstable_shouldYield, + unstable_requestPaint: unstable_requestPaint, + unstable_continueExecution: unstable_continueExecution, + unstable_pauseExecution: unstable_pauseExecution, + unstable_getFirstCallbackNode: unstable_getFirstCallbackNode, + get unstable_now () { return getCurrentTime; }, + get unstable_forceFrameRate () { return forceFrameRate; }, + unstable_Profiling: unstable_Profiling + }); + + var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs. + + var interactionIDCounter = 0; + var threadIDCounter = 0; // Set of currently traced interactions. + // Interactions "stack"– + // Meaning that newly traced interactions are appended to the previously active set. + // When an interaction goes out of scope, the previous set (if any) is restored. + + var interactionsRef = null; // Listener(s) to notify when interactions begin and end. + + var subscriberRef = null; + + { + interactionsRef = { + current: new Set() + }; + subscriberRef = { + current: null + }; + } + function unstable_clear(callback) { + + var prevInteractions = interactionsRef.current; + interactionsRef.current = new Set(); + + try { + return callback(); + } finally { + interactionsRef.current = prevInteractions; + } + } + function unstable_getCurrent() { + { + return interactionsRef.current; + } + } + function unstable_getThreadID() { + return ++threadIDCounter; + } + function unstable_trace(name, timestamp, callback) { + var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID; + + var interaction = { + __count: 1, + id: interactionIDCounter++, + name: name, + timestamp: timestamp + }; + var prevInteractions = interactionsRef.current; // Traced interactions should stack/accumulate. + // To do that, clone the current interactions. + // The previous set will be restored upon completion. + + var interactions = new Set(prevInteractions); + interactions.add(interaction); + interactionsRef.current = interactions; + var subscriber = subscriberRef.current; + var returnValue; + + try { + if (subscriber !== null) { + subscriber.onInteractionTraced(interaction); + } + } finally { + try { + if (subscriber !== null) { + subscriber.onWorkStarted(interactions, threadID); + } + } finally { + try { + returnValue = callback(); + } finally { + interactionsRef.current = prevInteractions; + + try { + if (subscriber !== null) { + subscriber.onWorkStopped(interactions, threadID); + } + } finally { + interaction.__count--; // If no async work was scheduled for this interaction, + // Notify subscribers that it's completed. + + if (subscriber !== null && interaction.__count === 0) { + subscriber.onInteractionScheduledWorkCompleted(interaction); + } + } + } + } + } + + return returnValue; + } + function unstable_wrap(callback) { + var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID; + + var wrappedInteractions = interactionsRef.current; + var subscriber = subscriberRef.current; + + if (subscriber !== null) { + subscriber.onWorkScheduled(wrappedInteractions, threadID); + } // Update the pending async work count for the current interactions. + // Update after calling subscribers in case of error. + + + wrappedInteractions.forEach(function (interaction) { + interaction.__count++; + }); + var hasRun = false; + + function wrapped() { + var prevInteractions = interactionsRef.current; + interactionsRef.current = wrappedInteractions; + subscriber = subscriberRef.current; + + try { + var returnValue; + + try { + if (subscriber !== null) { + subscriber.onWorkStarted(wrappedInteractions, threadID); + } + } finally { + try { + returnValue = callback.apply(undefined, arguments); + } finally { + interactionsRef.current = prevInteractions; + + if (subscriber !== null) { + subscriber.onWorkStopped(wrappedInteractions, threadID); + } + } + } + + return returnValue; + } finally { + if (!hasRun) { + // We only expect a wrapped function to be executed once, + // But in the event that it's executed more than once– + // Only decrement the outstanding interaction counts once. + hasRun = true; // Update pending async counts for all wrapped interactions. + // If this was the last scheduled async work for any of them, + // Mark them as completed. + + wrappedInteractions.forEach(function (interaction) { + interaction.__count--; + + if (subscriber !== null && interaction.__count === 0) { + subscriber.onInteractionScheduledWorkCompleted(interaction); + } + }); + } + } + } + + wrapped.cancel = function cancel() { + subscriber = subscriberRef.current; + + try { + if (subscriber !== null) { + subscriber.onWorkCanceled(wrappedInteractions, threadID); + } + } finally { + // Update pending async counts for all wrapped interactions. + // If this was the last scheduled async work for any of them, + // Mark them as completed. + wrappedInteractions.forEach(function (interaction) { + interaction.__count--; + + if (subscriber && interaction.__count === 0) { + subscriber.onInteractionScheduledWorkCompleted(interaction); + } + }); + } + }; + + return wrapped; + } + + var subscribers = null; + + { + subscribers = new Set(); + } + + function unstable_subscribe(subscriber) { + { + subscribers.add(subscriber); + + if (subscribers.size === 1) { + subscriberRef.current = { + onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted, + onInteractionTraced: onInteractionTraced, + onWorkCanceled: onWorkCanceled, + onWorkScheduled: onWorkScheduled, + onWorkStarted: onWorkStarted, + onWorkStopped: onWorkStopped + }; + } + } + } + function unstable_unsubscribe(subscriber) { + { + subscribers.delete(subscriber); + + if (subscribers.size === 0) { + subscriberRef.current = null; + } + } + } + + function onInteractionTraced(interaction) { + var didCatchError = false; + var caughtError = null; + subscribers.forEach(function (subscriber) { + try { + subscriber.onInteractionTraced(interaction); + } catch (error) { + if (!didCatchError) { + didCatchError = true; + caughtError = error; + } + } + }); + + if (didCatchError) { + throw caughtError; + } + } + + function onInteractionScheduledWorkCompleted(interaction) { + var didCatchError = false; + var caughtError = null; + subscribers.forEach(function (subscriber) { + try { + subscriber.onInteractionScheduledWorkCompleted(interaction); + } catch (error) { + if (!didCatchError) { + didCatchError = true; + caughtError = error; + } + } + }); + + if (didCatchError) { + throw caughtError; + } + } + + function onWorkScheduled(interactions, threadID) { + var didCatchError = false; + var caughtError = null; + subscribers.forEach(function (subscriber) { + try { + subscriber.onWorkScheduled(interactions, threadID); + } catch (error) { + if (!didCatchError) { + didCatchError = true; + caughtError = error; + } + } + }); + + if (didCatchError) { + throw caughtError; + } + } + + function onWorkStarted(interactions, threadID) { + var didCatchError = false; + var caughtError = null; + subscribers.forEach(function (subscriber) { + try { + subscriber.onWorkStarted(interactions, threadID); + } catch (error) { + if (!didCatchError) { + didCatchError = true; + caughtError = error; + } + } + }); + + if (didCatchError) { + throw caughtError; + } + } + + function onWorkStopped(interactions, threadID) { + var didCatchError = false; + var caughtError = null; + subscribers.forEach(function (subscriber) { + try { + subscriber.onWorkStopped(interactions, threadID); + } catch (error) { + if (!didCatchError) { + didCatchError = true; + caughtError = error; + } + } + }); + + if (didCatchError) { + throw caughtError; + } + } + + function onWorkCanceled(interactions, threadID) { + var didCatchError = false; + var caughtError = null; + subscribers.forEach(function (subscriber) { + try { + subscriber.onWorkCanceled(interactions, threadID); + } catch (error) { + if (!didCatchError) { + didCatchError = true; + caughtError = error; + } + } + }); + + if (didCatchError) { + throw caughtError; + } + } + + + + var SchedulerTracing = /*#__PURE__*/Object.freeze({ + __proto__: null, + get __interactionsRef () { return interactionsRef; }, + get __subscriberRef () { return subscriberRef; }, + unstable_clear: unstable_clear, + unstable_getCurrent: unstable_getCurrent, + unstable_getThreadID: unstable_getThreadID, + unstable_trace: unstable_trace, + unstable_wrap: unstable_wrap, + unstable_subscribe: unstable_subscribe, + unstable_unsubscribe: unstable_unsubscribe + }); + + var ReactSharedInternals$1 = { + ReactCurrentDispatcher: ReactCurrentDispatcher, + ReactCurrentOwner: ReactCurrentOwner, + IsSomeRendererActing: IsSomeRendererActing, + // Used by renderers to avoid bundling object-assign twice in UMD bundles: + assign: objectAssign + }; + + { + objectAssign(ReactSharedInternals$1, { + // These should not be included in production. + ReactDebugCurrentFrame: ReactDebugCurrentFrame, + // Shim for React DOM 16.0.0 which still destructured (but not used) this. + // TODO: remove in React 17.0. + ReactComponentTreeHook: {} + }); + } // Re-export the schedule API(s) for UMD bundles. + // This avoids introducing a dependency on a new UMD global in a minor update, + // Since that would be a breaking change (e.g. for all existing CodeSandboxes). + // This re-export is only required for UMD bundles; + // CJS bundles use the shared NPM package. + + + objectAssign(ReactSharedInternals$1, { + Scheduler: Scheduler, + SchedulerTracing: SchedulerTracing + }); + + { + + try { + var frozenObject = Object.freeze({}); + var testMap = new Map([[frozenObject, null]]); + var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused. + // https://github.com/rollup/rollup/issues/1771 + // TODO: we can remove these if Rollup fixes the bug. + + testMap.set(0, 0); + testSet.add(0); + } catch (e) { + } + } + + var createElement$1 = createElementWithValidation ; + var cloneElement$1 = cloneElementWithValidation ; + var createFactory = createFactoryWithValidation ; + var Children = { + map: mapChildren, + forEach: forEachChildren, + count: countChildren, + toArray: toArray, + only: onlyChild + }; + + exports.Children = Children; + exports.Component = Component; + exports.Fragment = REACT_FRAGMENT_TYPE; + exports.Profiler = REACT_PROFILER_TYPE; + exports.PureComponent = PureComponent; + exports.StrictMode = REACT_STRICT_MODE_TYPE; + exports.Suspense = REACT_SUSPENSE_TYPE; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals$1; + exports.cloneElement = cloneElement$1; + exports.createContext = createContext; + exports.createElement = createElement$1; + exports.createFactory = createFactory; + exports.createRef = createRef; + exports.forwardRef = forwardRef; + exports.isValidElement = isValidElement; + exports.lazy = lazy; + exports.memo = memo; + exports.useCallback = useCallback; + exports.useContext = useContext; + exports.useDebugValue = useDebugValue; + exports.useEffect = useEffect; + exports.useImperativeHandle = useImperativeHandle; + exports.useLayoutEffect = useLayoutEffect; + exports.useMemo = useMemo; + exports.useReducer = useReducer; + exports.useRef = useRef; + exports.useState = useState; + exports.version = ReactVersion; + +})));