diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..8f247d5 --- /dev/null +++ b/.babelrc @@ -0,0 +1,10 @@ +{ + "presets": ["react-app"], + "plugins": [ + "transform-class-properties", + "@babel/plugin-transform-runtime", + "@babel/plugin-proposal-export-default-from", + "@babel/plugin-transform-named-capturing-groups-regex", + "jsx-control-statements" + ] +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a68dfc0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,40 @@ +# dependencies # +############# +/node_modules + +# testing # +############# +/coverage + +# production # +############# + + +# misc # +############# +.DS_Store +.env +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +#ESLint config # +############# +.eslintrc.json + + +# IDE files # +############# +nbproject +.~lock.* +.buildpath +.idea +.project +.settings +composer.lock +.history/ +.vscode/ + +# Storybook build files # +############# +storybook-static/ diff --git a/dist/bundled.js b/dist/bundled.js new file mode 100644 index 0000000..2c769c5 --- /dev/null +++ b/dist/bundled.js @@ -0,0 +1,1780 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("react-props-playground",[],t):"object"==typeof exports?exports["react-props-playground"]=t():e["react-props-playground"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1299)}([function(e,t,n){(function(e){var a;/*! https://mths.be/regenerate v1.3.3 by @mathias | MIT license */!function(r){var i=t,o=(e&&e.exports,"object"==typeof global&&global);o.global!==o&&o.window;var s="A range’s `stop` value must be greater than or equal to the `start` value.",u="Invalid code point value. Code points range from U+000000 to U+10FFFF.",d=/\\x00([^0123456789]|$)/g,l={},c=l.hasOwnProperty,p=function(e,t){for(var n=-1,a=e.length;++n=n&&tn)return e;if(t<=a&&n>=r)e.splice(i,2);else{if(t>=a&&n=a&&t<=r)e[i+1]=t;else if(n>=a&&n<=r)return e[i]=n+1,e;i+=2}}return e},E=function(e,t){var n,a,r=0,i=null,o=e.length;if(t<0||t>1114111)throw RangeError(u);for(;r=n&&tt)return e.splice(null!=i?i+2:0,0,t,t+1),e;if(t==a)return t+1==e[r+2]?(e.splice(r,4,n,e[r+3]),e):(e[r+1]=t+1,e);i=r,r+=2}return e.push(t,t+1),e},x=function(e,t){for(var n,a,r=0,i=e.slice(),o=t.length;r1114111||n<0||n>1114111)throw RangeError(u);for(var a,r,i=0,o=!1,d=e.length;in)return e;a>=t&&a<=n&&(r>t&&r-1<=n?(e.splice(i,2),i-=2):(e.splice(i-1,2),i-=2))}else{if(a==n+1)return e[i]=t,e;if(a>n)return e.splice(i,0,t,n+1),e;if(t>=a&&t=a&&t=r&&(e[i]=t,e[i+1]=n+1,o=!0)}i+=2}return o||e.push(t,n+1),e},D=function(e,t){var n=0,a=e.length,r=e[n],i=e[a-1];if(a>=2&&(ti))return!1;for(;n=r&&t=40&&e<=43||46==e||47==e||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+O(e):e>=32&&e<=126?O(e):e<=255?"\\x"+m(y(e),2):"\\u"+m(y(e),4)},j=function(e){return e<=65535?F(e):"\\u{"+e.toString(16).toUpperCase()+"}"},M=function(e){var t=e.length,n=e.charCodeAt(0);return n>=55296&&n<=56319&&t>1?1024*(n-55296)+e.charCodeAt(1)-56320+65536:n},I=function(e){var t,n,a="",r=0,i=e.length;if(A(e))return F(e[0]);for(;r=55296&&n<=56319&&(i.push(t,55296),a.push(55296,n+1)),n>=56320&&n<=57343&&(i.push(t,55296),a.push(55296,56320),r.push(56320,n+1)),n>57343&&(i.push(t,55296),a.push(55296,56320),r.push(56320,57344),n<=65535?i.push(57344,n+1):(i.push(57344,65536),o.push(65536,n+1)))):t>=55296&&t<=56319?(n>=55296&&n<=56319&&a.push(t,n+1),n>=56320&&n<=57343&&(a.push(t,56320),r.push(56320,n+1)),n>57343&&(a.push(t,56320),r.push(56320,57344),n<=65535?i.push(57344,n+1):(i.push(57344,65536),o.push(65536,n+1)))):t>=56320&&t<=57343?(n>=56320&&n<=57343&&r.push(t,n+1),n>57343&&(r.push(t,57344),n<=65535?i.push(57344,n+1):(i.push(57344,65536),o.push(65536,n+1)))):t>57343&&t<=65535?n<=65535?i.push(t,n+1):(i.push(t,65536),o.push(65536,n+1)):o.push(t,n+1),s+=2;return{loneHighSurrogates:a,loneLowSurrogates:r,bmp:i,astral:o}}(e),i=r.loneHighSurrogates,o=r.loneLowSurrogates,s=r.bmp,u=r.astral,d=!w(i),l=!w(o),c=N(u);return t&&(s=x(s,i),d=!1,s=x(s,o),l=!1),w(s)||a.push(I(s)),c.length&&a.push(function(e){var t=[];return p(e,function(e){var n=e[0],a=e[1];t.push(I(n)+I(a))}),t.join("|")}(c)),d&&a.push(I(i)+"(?![\\uDC00-\\uDFFF])"),l&&a.push("(?:[^\\uD800-\\uDBFF]|^)"+I(o)),a.join("|")},V=function(e){return arguments.length>1&&(e=v.call(arguments)),this instanceof V?(this.data=[],e?this.add(e):this):(new V).add(e)};V.version="1.3.3";var z=V.prototype;!function(e,t){var n;for(n in t)c.call(t,n)&&(e[n]=t[n])}(z,{add:function(e){var t=this;return null==e?t:e instanceof V?(t.data=x(t.data,e.data),t):(arguments.length>1&&(e=v.call(arguments)),f(e)?(p(e,function(e){t.add(e)}),t):(t.data=E(t.data,g(e)?e:M(e)),t))},remove:function(e){var t=this;return null==e?t:e instanceof V?(t.data=S(t.data,e.data),t):(arguments.length>1&&(e=v.call(arguments)),f(e)?(p(e,function(e){t.remove(e)}),t):(t.data=b(t.data,g(e)?e:M(e)),t))},addRange:function(e,t){return this.data=C(this.data,g(e)?e:M(e),g(t)?t:M(t)),this},removeRange:function(e,t){var n=g(e)?e:M(e),a=g(t)?t:M(t);return this.data=R(this.data,n,a),this},intersection:function(e){var t=e instanceof V?_(e.data):e;return this.data=function(e,t){for(var n,a=0,r=t.length,i=[];a0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},r=this&&this.__spread||function(){for(var e=[],t=0;t=4;)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+((1540483477*(t>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++r;switch(n){case 3:a^=(255&e.charCodeAt(r+2))<<16;case 2:a^=(255&e.charCodeAt(r+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(r)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),((a^=a>>>15)>>>0).toString(36)};var o=function(e){function t(e,t,a){var r=t.trim().split(f);t=r;var i=r.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";sa&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:o=o.replace(u,"-webkit-"+u)+";"+o;break;case 207:case 102:o=o.replace(u,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0h)&&(L=(U=U.replace(" ",":")).length),01?r-1:0),o=1;o=0)return a[i];if("string"!=typeof r)throw new Error("missing name");return new h(r,e)}return new l(e)},def:function(e){return s.call(E,e)?E[e]:E[e]=new S(e)},hasDef:function(e){return s.call(E,e)}},n=[],a=[],i={};function u(e,t){var r=o.call(e),s=new h(t,function(e){return o.call(e)===r});return i[t]=s,e&&"function"==typeof e.constructor&&(n.push(e.constructor),a.push(s)),s}u("truthy","string");var y=u(function(){},"function"),v=u([],"array"),b=u({},"object"),R=(u(/./,"RegExp"),u(new Date,"Date"),u(3,"number"),u(!0,"boolean"),u(null,"null"),u(void 0,"undefined")),E=Object.create(null);function x(e){if(e&&"object"==typeof e){var t=e.type;if("string"==typeof t&&s.call(E,t)){var n=E[t];if(n.finalized)return n}}return null}var S=function(e){function n(t){var n=e.call(this,new h(t,function(e,t){return n.check(e,t)}),t)||this;return n}return r(n,e),n.prototype.check=function(e,t){if(!0!==this.finalized)throw new Error("prematurely checking unfinalized type "+this.typeName);if(null===e||"object"!=typeof e)return!1;var n=x(e);return n?t&&n===this?this.checkAllFields(e,t):!!this.isSupertypeOf(n)&&(!t||n.checkAllFields(e,t)&&this.checkAllFields(e,!1)):("SourceLocation"===this.typeName||"Position"===this.typeName)&&this.checkAllFields(e,t)},n.prototype.build=function(){for(var e=this,t=[],n=0;n=0&&function(e){var t=A(e);if(!C[t]){var n=C[w(e)];if(n){var a=function(){for(var e=[],t=0;t=e},i+" >= "+e)},defaults:{null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},isPrimitive:n.from(function(e){if(null===e)return!0;var t=typeof e;return"object"!==t&&"function"!==t},o.toString())}},e.exports=t.default},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(o.ObjectTypeSpreadProperty.check(e.node))return(0,i.default)(e.get("argument").get("id"),!1);if(e.node.computed)throw new TypeError("Property name must be an Identifier or a Literal");return(0,i.default)(e.get("key"),!1)};var r=a(n(7)),i=a(n(67));const o=r.default.types.namedTypes},function(e,t,n){var a=n(308),r="object"==typeof self&&self&&self.Object===Object&&self,i=a||r||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n=t.node;switch(n.type){case s.VariableDeclarator.name:if(n.init)return e(t.get("init"));break;case s.CallExpression.name:return(0,r.default)(n.callee,{type:s.Identifier.name,name:"require"})?n.arguments[0].value:e(t.get("callee"));case s.Identifier.name:case s.JSXIdentifier.name:{const n=(0,o.default)(t);if(n!==t)return e(n);break}case s.ImportDeclaration.name:return n.source.value;case s.MemberExpression.name:for(;t&&s.MemberExpression.check(t.node);)t=t.get("object");if(t)return e(t)}return null};var r=a(n(39)),i=a(n(7)),o=a(n(11));const s=i.default.types.namedTypes},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=h,Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return l.default}}),t.visitors=void 0;var a=p(n(593)),r=c(n(788));function i(){const e=p(n(160));return i=function(){return e},e}function o(){const e=c(n(9));return o=function(){return e},e}t.visitors=r;var s=c(n(101)),u=p(n(55)),d=p(n(347)),l=p(n(789));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n,a,i){if(e){if(t||(t={}),!t.noScope&&!n&&"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.");r.explode(t),h.node(e,t,n,a,i)}}function f(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}h.visitors=r,h.verify=r.verify,h.explode=r.explode,h.cheap=function(e,t){return o().traverseFast(e,t)},h.node=function(e,t,n,r,i,s){const u=o().VISITOR_KEYS[e.type];if(!u)return;const d=new a.default(n,t,r,i);for(const t of u)if((!s||!s[t])&&d.visit(e,t))return},h.clearNode=function(e,t){o().removeProperties(e,t),s.path.delete(e)},h.removeProperties=function(e,t){return o().traverseFast(e,h.clearNode,t),e},h.hasType=function(e,t,n){if((0,i().default)(n,e.type))return!1;if(e.type===t)return!0;const a={has:!1,type:t};return h(e,{noScope:!0,blacklist:n,enter:f},null,a),a.has},h.cache=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validate=p,t.typeIs=h,t.validateType=function(e){return p(h(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:h(e),optional:!0}},t.arrayOf=f,t.arrayOfType=g,t.validateArrayOfType=function(e){return p(g(e))},t.assertEach=m,t.assertOneOf=function(...e){function t(t,n,a){if(e.indexOf(a)<0)throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(a)}`)}return t.oneOf=e,t},t.assertNodeType=y,t.assertNodeOrValueType=function(...e){function t(t,n,a){let i=!1;for(const t of e)if(c(a)===t||(0,r.default)(t,a)){i=!0;break}if(!i)throw new TypeError(`Property ${n} of ${t.type} expected node to be of a type ${JSON.stringify(e)} `+`but instead got ${JSON.stringify(a&&a.type)}`)}return t.oneOfNodeOrValueTypes=e,t},t.assertValueType=v,t.chain=b,t.default=function(e,t={}){const n=t.inherits&&R[t.inherits]||{},a=t.fields||n.fields||{},r=t.visitor||n.visitor||[],p=t.aliases||n.aliases||[],h=t.builder||n.builder||t.visitor||[];t.deprecatedAlias&&(l[t.deprecatedAlias]=e);for(const e of r.concat(h))a[e]=a[e]||{};for(const e of Object.keys(a)){const t=a[e];-1===h.indexOf(e)&&(t.optional=!0),void 0===t.default?t.default=null:t.validate||(t.validate=v(c(t.default)))}i[e]=t.visitor=r,d[e]=t.builder=h,u[e]=t.fields=a,o[e]=t.aliases=p,p.forEach(t=>{s[t]=s[t]||[],s[t].push(e)}),R[e]=t},t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.ALIAS_KEYS=t.VISITOR_KEYS=void 0;var a,r=(a=n(155))&&a.__esModule?a:{default:a};const i={};t.VISITOR_KEYS=i;const o={};t.ALIAS_KEYS=o;const s={};t.FLIPPED_ALIAS_KEYS=s;const u={};t.NODE_FIELDS=u;const d={};t.BUILDER_KEYS=d;const l={};function c(e){return Array.isArray(e)?"array":null===e?"null":void 0===e?"undefined":typeof e}function p(e){return{validate:e}}function h(e){return"string"==typeof e?y(e):y(...e)}function f(e){return b(v("array"),m(e))}function g(e){return f(h(e))}function m(e){function t(t,n,a){if(Array.isArray(a))for(let r=0;ru.Function.check(e.node)?(0,s.default)(e):e},c={[u.ArrowFunctionExpression.name]:i.default,[u.CallExpression.name]:i.default,[u.FunctionExpression.name]:i.default,[u.FunctionDeclaration.name]:i.default,[u.VariableDeclaration.name]:i.default,[u.ObjectExpression.name]:o.default,[u.ClassDeclaration.name]:r.default,[u.ClassExpression.name]:r.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a.some(function(t){return t===e.toLowerCase()})};const a=["react","react/addons","react-native","proptypes","prop-types"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){if(!t)return!1;for(const a in n){if(!t[a])return!1;if(n[a]&&"object"==typeof n[a]){if(!e(t[a],n[a]))return!1}else if(t[a]!==n[a])return!1}return!0}},function(e,t,n){var a=n(56),r=n(610),i=n(611),o="[object Null]",s="[object Undefined]",u=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:o:u&&u in Object(e)?r(e):i(e)}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(417);t.Alert=a.Alert,t.AppLayout=a.AppLayout,t.Avatar=a.Avatar,t.AvatarBlock=a.AvatarBlock,t.Badge=a.Badge,t.Box=a.Box,t.Breadcrumb=a.Breadcrumb,t.Button=a.Button,t.ButtonGroup=a.ButtonGroup,t.Checkbox=a.Checkbox,t.Code=a.Code,t.DangerZone=a.DangerZone,t.Dialog=a.Dialog,t.EmptyState=a.EmptyState,t.Form=a.Form,t.FormGroup=a.FormGroup,t.Heading=a.Heading,t.Icon=a.Icon,t.Image=a.Image,t.Label=a.Label,t.Link=a.Link,t.List=a.List,t.Logo=a.Logo,t.Navigation=a.Navigation,t.PageHeader=a.PageHeader,t.Pagination=a.Pagination,t.PaginationToolbar=a.PaginationToolbar,t.Pager=a.Pager,t.Paragraph=a.Paragraph,t.Radio=a.Radio,t.ResourceList=a.ResourceList,t.Select=a.Select,t.Sidebar=a.Sidebar,t.Spinner=a.Spinner,t.Stack=a.Stack,t.Switch=a.Switch,t.Table=a.Table,t.Tabs=a.Tabs,t.Tag=a.Tag,t.Text=a.Text,t.TextArea=a.TextArea,t.TextInput=a.TextInput,t.Tooltip=a.Tooltip,t.Well=a.Well,t.ColumnLayout=a.ColumnLayout,t.GalleryLayout=a.GalleryLayout,t.RowLayout=a.RowLayout,t.PageLayout=a.PageLayout,t.StackLayout=a.StackLayout},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(207));!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(207)),t.default=r.default},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(272));t.default=r.default,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(272)),e.exports=t.default},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.node;if(!d.ClassDeclaration.check(t)&&!d.ClassExpression.check(t))return!1;if(t.body.body.some(l))return!0;if(e.parentPath&&e.parentPath.value){const t=Array.isArray(e.parentPath.value)?e.parentPath.value.find(function(e){return"ClassDeclaration"===e.type}):e.parentPath.value;if(t&&t.leadingComments&&t.leadingComments.some(function(e){return/@extends\s+React\.Component/.test(e.value)}))return!0}if(!t.superClass)return!1;const n=(0,u.default)(e.get("superClass"));if(!(0,i.default)(n.node,{property:{name:"Component"}}))return!1;const a=(0,s.default)(n);return!!a&&(0,r.default)(a)};var r=a(n(38)),i=a(n(39)),o=a(n(7)),s=a(n(32)),u=a(n(11));const d=o.default.types.namedTypes;function l(e){const t="ClassProperty"===e.type;return(d.MethodDefinition.check(e)||t)&&!e.computed&&!e.static&&(""===e.kind||"method"===e.kind||t)&&"render"===e.key.name}},function(e,t,n){var a=n(609),r=n(614);e.exports=function(e,t){var n=r(e,t);return a(n)?n:void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];t.FLATTENABLE_KEYS=["body","expressions"];t.FOR_INIT_KEYS=["left","init"];t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];t.LOGICAL_OPERATORS=["||","&&","??"];t.UPDATE_OPERATORS=["++","--"];const a=[">","<",">=","<="];t.BOOLEAN_NUMBER_BINARY_OPERATORS=a;const r=["==","===","!=","!=="];t.EQUALITY_BINARY_OPERATORS=r;const i=[...r,"in","instanceof"];t.COMPARISON_BINARY_OPERATORS=i;const o=[...i,...a];t.BOOLEAN_BINARY_OPERATORS=o;const s=["-","/","%","*","**","&","|",">>",">>>","<<","^"];t.NUMBER_BINARY_OPERATORS=s;const u=["+",...s,...o];t.BINARY_OPERATORS=u;const d=["delete","!"];t.BOOLEAN_UNARY_OPERATORS=d;const l=["+","-","~"];t.NUMBER_UNARY_OPERATORS=l;const c=["typeof"];t.STRING_UNARY_OPERATORS=c;const p=["void","throw",...d,...l,...c];t.UNARY_OPERATORS=p;t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};const h=Symbol.for("var used to be block scoped");t.BLOCK_SCOPED_SYMBOL=h;const f=Symbol.for("should not be considered a local binding");t.NOT_LOCAL_BINDING=f},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(194));t.default=r.default,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(194))},function(e,t,n){"use strict";n.r(t),n.d(t,"SelectBase",function(){return Ie}),n.d(t,"Async",function(){return Ue}),n.d(t,"AsyncCreatable",function(){return qe}),n.d(t,"Creatable",function(){return Ge}),n.d(t,"createFilter",function(){return X}),n.d(t,"makeAnimated",function(){return at}),n.d(t,"components",function(){return Te}),n.d(t,"mergeStyles",function(){return Oe}),n.d(t,"defaultTheme",function(){return Fe});var a=n(177),r=n.n(a),i=n(1),o=n.n(i),s=n(8),u=n(19),d=n(12),l=n.n(d),c=n(178),p=n.n(c),h=n(115),f=n(116),g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n},x=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},S=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1}function _(e){return A(e)?window.pageYOffset:e.scrollTop}function T(e,t){A(e)?window.scrollTo(0,t):e.scrollTop=t}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,i=_(e),o=t-i,s=10,u=0;!function t(){var d,l=o*((d=(d=u+=s)/n-1)*d*d+1)+i;T(e,l),u=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!o)return i&&P(u,C,160),{placement:"bottom",maxHeight:t};if(!o&&S>=a||o&&E>=a)return i&&P(u,C,160),{placement:"bottom",maxHeight:o?E-v:S-v};if("auto"===r||o){var w=t,A=o?R:x;return A>=a&&(w=Math.min(A-v-s.controlHeight,t)),{placement:"top",maxHeight:w}}if("bottom"===r)return T(u,C),{placement:"bottom",maxHeight:t};break;case"top":if(R>=h)return{placement:"top",maxHeight:t};if(x>=h&&!o)return i&&P(u,D,160),{placement:"top",maxHeight:t};if(!o&&x>=a||o&&R>=a){var k=t;return(!o&&x>=a||o&&R>=a)&&(k=o?R-b:x-b),i&&P(u,D,160),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+r+'".')}return d}var F=function(e){return"auto"===e?"bottom":e},j=function(e){function t(){var e,n,a;m(this,t);for(var r=arguments.length,i=Array(r),o=0;o-1}},J=function(e){return o.a.createElement("span",b({className:Object(s.css)({zIndex:9999,border:0,clip:"rect(1px, 1px, 1px, 1px)",height:1,width:1,position:"absolute",overflow:"hidden",padding:0,whiteSpace:"nowrap",backgroundColor:"red",color:"blue"})},e))},Y=function(e){function t(){return m(this,t),x(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return R(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=(e.in,e.out,e.onExited,e.appear,e.enter,e.exit,e.innerRef),n=(e.emotion,E(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return o.a.createElement("input",b({ref:t},n,{className:Object(s.css)({background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"})}))}}]),t}(i.Component),Q=function(e){function t(){return m(this,t),x(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return R(t,e),y(t,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(u.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(i.Component),Z=["boxSizing","height","overflow","paddingRight","position"],ee={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function te(e){e.preventDefault()}function ne(e){e.stopPropagation()}function ae(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function re(){return"ontouchstart"in window||navigator.maxTouchPoints}var ie=!("undefined"==typeof window||!window.document||!window.document.createElement),oe=0,se=function(e){function t(){var e,n,a;m(this,t);for(var r=arguments.length,i=Array(r),o=0;o0,f=l-c-d,g=!1;f>t&&a.isBottom&&(i&&i(e),a.isBottom=!1),h&&a.isTop&&(s&&s(e),a.isTop=!1),h&&t>f?(r&&!a.isBottom&&r(e),p.scrollTop=l,g=!0,a.isBottom=!0):!h&&-t>d&&(o&&!a.isTop&&o(e),p.scrollTop=0,g=!0,a.isTop=!0),g&&a.cancelScroll(e)},a.onWheel=function(e){a.handleEventDelta(e,e.deltaY)},a.onTouchStart=function(e){a.touchStart=e.changedTouches[0].clientY},a.onTouchMove=function(e){var t=a.touchStart-e.changedTouches[0].clientY;a.handleEventDelta(e,t)},a.getScrollTarget=function(e){a.scrollTarget=e},x(a,n)}return R(t,e),y(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return o.a.createElement(Q,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(i.Component),le=function(e){function t(){return m(this,t),x(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return R(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=E(e,["isEnabled"]);return t?o.a.createElement(de,n):this.props.children}}]),t}(i.Component);le.defaultProps={isEnabled:!0};var ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,a=t.isMulti,r=t.label;switch(e){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(r||"Select")+" is focused "+(n?",type to refine list":"")+", press Down to open the menu, "+(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Enter to remove the currently focused value"}},pe=function(e,t){var n=t.value;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return"option "+n+", selected."}},he=function(e){function t(){return m(this,t),x(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return R(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,a=e.cx,r=e.isMulti,i=e.getStyles,u=e.hasValue;return o.a.createElement("div",{className:a(Object(s.css)(i("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":u},n)},t)}}]),t}(i.Component),fe=function(e){var t=e.size,n=E(e,["size"]);return o.a.createElement("svg",b({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:Object(s.css)({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},n))},ge=function(e){return o.a.createElement(fe,b({size:20},e),o.a.createElement("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},me=function(e){return o.a.createElement(fe,b({size:20},e),o.a.createElement("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ye=function(e){var t=e.isFocused,n=e.theme,a=n.spacing.baseUnit,r=n.colors;return{color:t?r.neutral60:r.neutral20,display:"flex",padding:2*a,transition:"color 150ms",":hover":{color:t?r.neutral80:r.neutral40}}},ve=ye,be=ye,Re=!1,Ee=function(e){var t=e.color,n=e.delay,a=e.offset;return o.a.createElement("span",{className:Object(s.css)({animationDuration:"1s",animationDelay:n+"ms",animationIterationCount:"infinite",animationName:"react-select-loading-indicator",animationTimingFunction:"ease-in-out",backgroundColor:t,borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},xe=function(e){var t=e.className,n=e.cx,a=e.getStyles,r=e.innerProps,i=e.isFocused,u=e.isRtl,d=e.theme.colors,l=i?d.neutral80:d.neutral20;return Re||(Object(s.injectGlobal)("@keyframes ","react-select-loading-indicator","{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),Re=!0),o.a.createElement("div",b({},r,{className:n(Object(s.css)(a("loadingIndicator",e)),{indicator:!0,"loading-indicator":!0},t)}),o.a.createElement(Ee,{color:l,delay:0,offset:u}),o.a.createElement(Ee,{color:l,delay:160,offset:!0}),o.a.createElement(Ee,{color:l,delay:320,offset:!u}))};xe.defaultProps={size:4};var Se=function(e){return{background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Ce=function(e){var t=e.children,n=e.innerProps;return o.a.createElement("div",n,t)},De=Ce,we=Ce,Ae=function(e){function t(){return m(this,t),x(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return R(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps;return o.a.createElement("div",n,t||o.a.createElement(ge,{size:14}))}}]),t}(i.Component),_e=function(e){function t(){return m(this,t),x(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return R(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,a=e.components,r=e.cx,i=e.data,u=e.getStyles,d=e.innerProps,l=e.isDisabled,c=e.removeProps,p=e.selectProps,h=a.Container,f=a.Label,g=a.Remove,m=b({className:r(Object(s.css)(u("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":l},n)},d),y={className:r(Object(s.css)(u("multiValueLabel",this.props)),{"multi-value__label":!0},n)},v=b({className:r(Object(s.css)(u("multiValueRemove",this.props)),{"multi-value__remove":!0},n)},c);return o.a.createElement(h,{data:i,innerProps:m,selectProps:p},o.a.createElement(f,{data:i,innerProps:y,selectProps:p},t),o.a.createElement(g,{data:i,innerProps:v,selectProps:p}))}}]),t}(i.Component);_e.defaultProps={cropWithEllipsis:!0};var Te={ClearIndicator:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,i=e.innerProps;return o.a.createElement("div",b({},i,{className:a(Object(s.css)(r("clearIndicator",e)),{indicator:!0,"clear-indicator":!0},n)}),t||o.a.createElement(ge,null))},Control:function(e){var t=e.children,n=e.cx,a=e.getStyles,r=e.className,i=e.isDisabled,u=e.isFocused,d=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return o.a.createElement("div",b({ref:d,className:n(Object(s.css)(a("control",e)),{control:!0,"control--is-disabled":i,"control--is-focused":u,"control--menu-is-open":c},r)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,i=e.innerProps;return o.a.createElement("div",b({},i,{className:a(Object(s.css)(r("dropdownIndicator",e)),{indicator:!0,"dropdown-indicator":!0},n)}),t||o.a.createElement(me,null))},DownChevron:me,CrossIcon:ge,Group:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,i=e.Heading,u=e.headingProps,d=e.label,l=e.theme,c=e.selectProps;return o.a.createElement("div",{className:a(Object(s.css)(r("group",e)),{group:!0},n)},o.a.createElement(i,b({},u,{selectProps:c,theme:l,getStyles:r,cx:a}),d),o.a.createElement("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,a=e.getStyles,r=e.theme,i=(e.selectProps,E(e,["className","cx","getStyles","theme","selectProps"]));return o.a.createElement("div",b({className:n(Object(s.css)(a("groupHeading",b({theme:r},i))),{"group-heading":!0},t)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles;return o.a.createElement("div",{className:a(Object(s.css)(r("indicatorsContainer",e)),{indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,a=e.getStyles,r=e.innerProps;return o.a.createElement("span",b({},r,{className:n(Object(s.css)(a("indicatorSeparator",e)),{"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,a=e.getStyles,r=e.innerRef,i=e.isHidden,u=e.isDisabled,d=e.theme,l=(e.selectProps,E(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return o.a.createElement("div",{className:Object(s.css)(a("input",b({theme:d},l)))},o.a.createElement(p.a,b({className:n(null,{input:!0},t),inputRef:r,inputStyle:Se(i),disabled:u},l)))},LoadingIndicator:xe,Menu:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,i=e.innerRef,u=e.innerProps,d=a(Object(s.css)(r("menu",e)),{menu:!0},n);return o.a.createElement("div",b({className:d},u,{ref:i}),t)},MenuList:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,i=e.isMulti,u=e.innerRef;return o.a.createElement("div",{className:a(Object(s.css)(r("menuList",e)),{"menu-list":!0,"menu-list--is-multi":i},n),ref:u},t)},MenuPortal:V,LoadingMessage:L,NoOptionsMessage:N,MultiValue:_e,MultiValueContainer:De,MultiValueLabel:we,MultiValueRemove:Ae,Option:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,i=e.isDisabled,u=e.isFocused,d=e.isSelected,l=e.innerRef,c=e.innerProps;return o.a.createElement("div",b({ref:l,className:a(Object(s.css)(r("option",e)),{option:!0,"option--is-disabled":i,"option--is-focused":u,"option--is-selected":d},n)},c),t)},Placeholder:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,i=e.innerProps;return o.a.createElement("div",b({className:a(Object(s.css)(r("placeholder",e)),{placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,i=e.innerProps,u=e.isDisabled,d=e.isRtl;return o.a.createElement("div",b({className:a(Object(s.css)(r("container",e)),{"--is-disabled":u,"--is-rtl":d},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,a=e.cx,r=e.getStyles,i=e.isDisabled,u=e.innerProps;return o.a.createElement("div",b({className:a(Object(s.css)(r("singleValue",e)),{"single-value":!0,"single-value--is-disabled":i},n)},u),t)},ValueContainer:he},Pe=function(e){return b({},Te,e.components)},ke={clearIndicator:be,container:function(e){var t=e.isDisabled;return{direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,a=e.theme,r=a.colors,i=a.borderRadius,o=a.spacing;return{alignItems:"center",backgroundColor:t?r.neutral5:r.neutral0,borderColor:t?r.neutral10:n?r.primary:r.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+r.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?r.primary:r.neutral30}}},dropdownIndicator:ve,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,a=n.spacing.baseUnit,r=n.colors;return{alignSelf:"stretch",backgroundColor:t?r.neutral10:r.neutral20,marginBottom:2*a,marginTop:2*a,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,a=n.spacing,r=n.colors;return{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,visibility:t?"hidden":"visible",color:r.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,a=e.theme,r=a.colors,i=a.spacing.baseUnit;return{color:t?r.neutral60:r.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:B,menu:function(e){var t,n=e.placement,a=e.theme,r=a.borderRadius,i=a.spacing,o=a.colors;return v(t={},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),v(t,"backgroundColor",o.neutral0),v(t,"borderRadius",r),v(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),v(t,"marginBottom",i.menuGutter),v(t,"marginTop",i.menuGutter),v(t,"position","absolute"),v(t,"width","100%"),v(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,a=e.position;return{left:t.left,position:a,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,a=t.borderRadius;return{backgroundColor:t.colors.neutral10,borderRadius:a/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,a=t.colors,r=e.cropWithEllipsis;return{borderRadius:n/2,color:a.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:r?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,a=t.borderRadius,r=t.colors;return{alignItems:"center",borderRadius:a/2,backgroundColor:e.isFocused&&r.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}}},noOptionsMessage:I,option:function(e){var t=e.isDisabled,n=e.isFocused,a=e.isSelected,r=e.theme,i=r.spacing,o=r.colors;return{backgroundColor:a?o.primary:n?o.primary25:"transparent",color:t?o.neutral20:a?o.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*i.baseUnit+"px "+3*i.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:a?o.primary:o.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,a=n.spacing,r=n.colors;return{color:t?r.neutral40:r.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2,maxWidth:"calc(100% - "+2*a.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:t.baseUnit/2+"px "+2*t.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b({},e);return Object.keys(t).forEach(function(a){e[a]?n[a]=function(n,r){return t[a](e[a](n,r),r)}:n[a]=t[a]}),n}var Fe={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},je={backspaceRemovesValue:!0,blurInputOnSelect:k(),captureMenuScroll:!k(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:X(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},Me=1,Ie=function(e){function t(e){m(this,t);var n=x(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));Be.call(n);var a=e.value;n.cacheComponents=Object(h.default)(n.cacheComponents,$).bind(n),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Me);var r=w(a),i=n.buildMenuOptions(e,r);return n.state.menuOptions=i,n.state.selectValue=r,n}return R(t,e),y(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,a=t.value,r=t.inputValue;if(this.cacheComponents(e.components),e.value!==a||e.options!==n||e.inputValue!==r){var i=w(e.value),o=this.buildMenuOptions(e,i),s=this.getNextFocusedValue(i),u=this.getNextFocusedOption(o.focusable);this.setState({menuOptions:o,selectValue:i,focusedOption:u,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,a,r,i,o=this.props,s=o.isDisabled,u=o.menuIsOpen,d=this.state.isFocused;(d&&!s&&e.isDisabled||d&&u&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,a=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=n.offsetHeight/3,r.bottom+i>a.bottom?T(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):r.top-i-1&&(i=o)}this.scrollToFocusedOptionOnUpdate=!0,this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[i]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,a=t.isSearchable,r=this.state,i=r.selectValue,o=r.focusedValue;if(n){this.setState({focusedOption:null});var s=i.indexOf(o);o||(s=-1,this.announceAriaLiveContext({event:"value"}));var u=i.length-1,d=-1;if(i.length){switch(e){case"previous":d=0===s?0:-1===s?u:s-1;break;case"next":s>-1&&s0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,a=n.focusedOption,r=n.menuOptions,i=r.focusable;if(i.length){var o=0,s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?o=s>0?s-1:i.length-1:"down"===e?o=(s+1)%i.length:"pageup"===e?(o=s-t)<0&&(o=0):"pagedown"===e?(o=s+t)>i.length-1&&(o=i.length-1):"last"===e&&(o=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Fe):b({},Fe,this.props.theme):Fe}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,a=this.selectOption,r=this.props,i=r.classNamePrefix,o=r.isMulti,s=r.isRtl,u=r.options,d=this.state.selectValue,l=this.hasValue();return{cx:function(e,t,n,a){var r=[t,a];if(n&&e)for(var i in n)n.hasOwnProperty(i)&&n[i]&&r.push(""+D(e,i));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}.bind(null,i),clearValue:e,getStyles:t,getValue:function(){return d},hasValue:l,isMulti:o,isRtl:s,options:u,selectOption:a,setValue:n,selectProps:r,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,a=t.selectValue.indexOf(n);if(a>-1){if(e.indexOf(n)>-1)return n;if(a-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var a=this.getOptionValue(e);return t.some(function(e){return n.getOptionValue(e)===a})}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:a})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(e,t){var n=this,a=e.inputValue,r=void 0===a?"":a,i=e.options,o=function(e,a){var i=n.isOptionDisabled(e,t),o=n.isOptionSelected(e,t),s=n.getOptionLabel(e),u=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&o||!n.filterOption({label:s,value:u,data:e},r))){var d=i?void 0:function(){return n.onOptionHover(e)},l=i?void 0:function(){return n.selectOption(e)},c=n.getElementId("option")+"-"+a;return{innerProps:{id:c,onClick:l,onMouseMove:d,onMouseOver:d,role:"option",tabIndex:-1},data:e,isDisabled:i,isSelected:o,key:c,label:s,type:"option",value:u}}};return i.reduce(function(e,t,a){if(t.options){n.hasGroups||(n.hasGroups=!0);var r=t.options.map(function(t,n){var r=o(t,a+"-"+n);return r&&!r.isDisabled&&e.focusable.push(t),r}).filter(Boolean);if(r.length){var i=n.getElementId("group")+"-"+a;e.render.push({type:"group",key:i,data:t,options:r})}}else{var s=o(t,""+a);s&&(e.render.push(s),s.isDisabled||e.focusable.push(t))}return e},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,a=e.focusedValue,r=e.focusedOption,i=this.props,o=i.options,s=i.menuIsOpen,u=i.inputValue,d=i.screenReaderStatus;return(a?function(e){var t=e.focusedValue,n=e.getOptionLabel,a=e.selectValue;return"value "+n(t)+" focused, "+(a.indexOf(t)+1)+" of "+a.length+"."}({focusedValue:a,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(r&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,a=e.options;return"option "+n(t)+" focused, "+(a.indexOf(t)+1)+" of "+a.length+"."}({focusedOption:r,getOptionLabel:this.getOptionLabel,options:o}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:u,screenReaderMessage:d({count:this.countOptions()})})+" "+t}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,a=e.inputId,r=e.inputValue,i=e.tabIndex,s=this.components.Input,u=this.state.inputIsHidden,d=a||this.getElementId("input");if(!n)return o.a.createElement(Y,{id:d,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:C,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,value:""});var l={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},c=this.commonProps,p=c.cx,h=c.theme,f=c.selectProps;return o.a.createElement(s,b({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:d,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:f,spellCheck:"false",tabIndex:i,theme:h,type:"text",value:r},l))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,a=t.MultiValueContainer,r=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,d=this.commonProps,l=this.props,c=l.controlShouldRenderValue,p=l.isDisabled,h=l.isMulti,f=l.inputValue,g=l.placeholder,m=this.state,y=m.selectValue,v=m.focusedValue,R=m.isFocused;if(!this.hasValue()||!c)return f?null:o.a.createElement(u,b({},d,{key:"placeholder",isDisabled:p,isFocused:R}),g);if(h)return y.map(function(t){var s=t===v;return o.a.createElement(n,b({},d,{components:{Container:a,Label:r,Remove:i},isFocused:s,isDisabled:p,key:e.getOptionValue(t),removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});if(f)return null;var E=y[0];return o.a.createElement(s,b({},d,{data:E,isDisabled:p}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,a=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||a||!this.hasValue()||r)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,b({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,a=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!e||!r)return null;return o.a.createElement(e,b({},t,{innerProps:{"aria-hidden":"true"},isDisabled:a,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var a=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return o.a.createElement(n,b({},a,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,a=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,b({},t,{innerProps:r,isDisabled:n,isFocused:a}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,a=t.GroupHeading,r=t.Menu,i=t.MenuList,s=t.MenuPortal,u=t.LoadingMessage,d=t.NoOptionsMessage,l=t.Option,c=this.commonProps,p=this.state,h=p.focusedOption,f=p.menuOptions,g=this.props,m=g.captureMenuScroll,y=g.inputValue,v=g.isLoading,R=g.loadingMessage,x=g.minMenuHeight,S=g.maxMenuHeight,C=g.menuIsOpen,D=g.menuPlacement,w=g.menuPosition,A=g.menuPortalTarget,_=g.menuShouldBlockScroll,T=g.menuShouldScrollIntoView,P=g.noOptionsMessage,k=g.onMenuScrollToTop,O=g.onMenuScrollToBottom;if(!C)return null;var F=function(t){var n=h===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,o.a.createElement(l,b({},c,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))},M=void 0;if(this.hasOptions())M=f.render.map(function(t){if("group"===t.type){t.type;var r=E(t,["type"]),i=t.key+"-heading";return o.a.createElement(n,b({},c,r,{Heading:a,headingProps:{id:i},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return F(e)}))}if("option"===t.type)return F(t)});else if(v){var I=R({inputValue:y});if(null===I)return null;M=o.a.createElement(u,c,I)}else{var B=P({inputValue:y});if(null===B)return null;M=o.a.createElement(d,c,B)}var N={minMenuHeight:x,maxMenuHeight:S,menuPlacement:D,menuPosition:w,menuShouldScrollIntoView:T},L=o.a.createElement(j,b({},c,N),function(t){var n=t.ref,a=t.placerProps,s=a.placement,u=a.maxHeight;return o.a.createElement(r,b({},c,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),o.a.createElement(le,{isEnabled:m,onTopArrive:k,onBottomArrive:O},o.a.createElement(ue,{isEnabled:_},o.a.createElement(i,b({},c,{innerRef:e.getMenuListRef,isLoading:v,maxHeight:u}),M))))});return A||"fixed"===w?o.a.createElement(s,b({},c,{appendTo:A,controlElement:this.controlRef,menuPlacement:D,menuPosition:w}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,a=t.isDisabled,r=t.isMulti,i=t.name,s=this.state.selectValue;if(i&&!a){if(r){if(n){var u=s.map(function(t){return e.getOptionValue(t)}).join(n);return o.a.createElement("input",{name:i,type:"hidden",value:u})}var d=s.length>0?s.map(function(t,n){return o.a.createElement("input",{key:"i-"+n,name:i,type:"hidden",value:e.getOptionValue(t)})}):o.a.createElement("input",{name:i,type:"hidden"});return o.a.createElement("div",null,d)}var l=s[0]?this.getOptionValue(s[0]):"";return o.a.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?o.a.createElement(J,{"aria-live":"assertive"},o.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),o.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,a=e.SelectContainer,r=e.ValueContainer,i=this.props,s=i.className,u=i.id,d=i.isDisabled,l=i.menuIsOpen,c=this.state.isFocused,p=this.commonProps=this.getCommonProps();return o.a.createElement(a,b({},p,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:c}),this.renderLiveRegion(),o.a.createElement(t,b({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:c,menuIsOpen:l}),o.a.createElement(r,b({},p,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),o.a.createElement(n,b({},p,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}(i.Component);Ie.defaultProps=je;var Be=function(){var e=this;this.state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,isComposing:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},this.blockOptionHover=!1,this.clearFocusValueOnUpdate=!1,this.hasGroups=!1,this.initialTouchX=0,this.initialTouchY=0,this.instancePrefix="",this.openAfterFocus=!1,this.scrollToFocusedOptionOnUpdate=!1,this.controlRef=null,this.getControlRef=function(t){e.controlRef=t},this.focusedOptionRef=null,this.getFocusedOptionRef=function(t){e.focusedOptionRef=t},this.menuListRef=null,this.getMenuListRef=function(t){e.menuListRef=t},this.inputRef=null,this.getInputRef=function(t){e.inputRef=t},this.cacheComponents=function(t){e.components=Pe({components:t})},this.focus=this.focusInput,this.blur=this.blurInput,this.onChange=function(t,n){var a=e.props,r=a.onChange,i=a.name;r(t,b({},n,{name:i}))},this.setValue=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",a=arguments[2],r=e.props,i=r.closeMenuOnSelect,o=r.isMulti;e.onInputChange("",{action:"set-value"}),i&&(e.inputIsHiddenAfterUpdate=!o,e.onMenuClose()),e.clearFocusValueOnUpdate=!0,e.onChange(t,{action:n,option:a})},this.selectOption=function(t){var n=e.props,a=n.blurInputOnSelect;if(n.isMulti){var r=e.state.selectValue;if(e.isOptionSelected(t,r)){var i=e.getOptionValue(t);e.setValue(r.filter(function(t){return e.getOptionValue(t)!==i}),"deselect-option",t),e.announceAriaLiveSelection({event:"deselect-option",context:{value:e.getOptionLabel(t)}})}else e.setValue([].concat(S(r),[t]),"select-option",t),e.announceAriaLiveSelection({event:"select-option",context:{value:e.getOptionLabel(t)}})}else e.setValue(t,"select-option"),e.announceAriaLiveSelection({event:"select-option",context:{value:e.getOptionLabel(t)}});a&&e.blurInput()},this.removeValue=function(t){var n=e.state.selectValue,a=e.getOptionValue(t);e.onChange(n.filter(function(t){return e.getOptionValue(t)!==a}),{action:"remove-value",removedValue:t}),e.announceAriaLiveSelection({event:"remove-value",context:{value:t?e.getOptionLabel(t):void 0}}),e.focusInput()},this.clearValue=function(){var t=e.props.isMulti;e.onChange(t?[]:null,{action:"clear"})},this.popValue=function(){var t=e.state.selectValue,n=t[t.length-1];e.announceAriaLiveSelection({event:"pop-value",context:{value:n?e.getOptionLabel(n):void 0}}),e.onChange(t.slice(0,t.length-1),{action:"pop-value",removedValue:n})},this.getOptionLabel=function(t){return e.props.getOptionLabel(t)},this.getOptionValue=function(t){return e.props.getOptionValue(t)},this.getStyles=function(t,n){var a=ke[t](n);a.boxSizing="border-box";var r=e.props.styles[t];return r?r(a,n):a},this.getElementId=function(t){return e.instancePrefix+"-"+t},this.getActiveDescendentId=function(){var t=e.props.menuIsOpen,n=e.state,a=n.menuOptions,r=n.focusedOption;if(r&&t){var i=a.focusable.indexOf(r),o=a.render[i];return o&&o.key}},this.announceAriaLiveSelection=function(t){var n=t.event,a=t.context;e.setState({ariaLiveSelection:pe(n,a)})},this.announceAriaLiveContext=function(t){var n=t.event,a=t.context;e.setState({ariaLiveContext:ce(n,b({},a,{label:e.props["aria-label"]}))})},this.onMenuMouseDown=function(t){0===t.button&&(t.stopPropagation(),t.preventDefault(),e.focusInput())},this.onMenuMouseMove=function(t){e.blockOptionHover=!1},this.onControlMouseDown=function(t){var n=e.props.openMenuOnClick;e.state.isFocused?e.props.menuIsOpen?"INPUT"!==t.target.tagName&&e.onMenuClose():e.openMenu("first"):(n&&(e.openAfterFocus=!0),e.focusInput()),"INPUT"!==t.target.tagName&&t.preventDefault()},this.onDropdownIndicatorMouseDown=function(t){if(!(t&&"mousedown"===t.type&&0!==t.button||e.props.isDisabled)){var n=e.props,a=n.isMulti,r=n.menuIsOpen;e.focusInput(),r?(e.inputIsHiddenAfterUpdate=!a,e.onMenuClose()):e.openMenu("first"),t.preventDefault(),t.stopPropagation()}},this.onClearIndicatorMouseDown=function(t){t&&"mousedown"===t.type&&0!==t.button||(e.clearValue(),t.stopPropagation(),e.openAfterFocus=!1,setTimeout(function(){return e.focusInput()}))},this.onScroll=function(t){"boolean"==typeof e.props.closeMenuOnScroll?t.target instanceof HTMLElement&&A(t.target)&&e.props.onMenuClose():"function"==typeof e.props.closeMenuOnScroll&&e.props.closeMenuOnScroll(t)&&e.props.onMenuClose()},this.onCompositionStart=function(){e.setState({isComposing:!0})},this.onCompositionEnd=function(){e.setState({isComposing:!1})},this.onTouchStart=function(t){var n=t.touches.item(0);n&&(e.initialTouchX=n.clientX,e.initialTouchY=n.clientY,e.userIsDragging=!1)},this.onTouchMove=function(t){var n=t.touches.item(0);if(n){var a=Math.abs(n.clientX-e.initialTouchX),r=Math.abs(n.clientY-e.initialTouchY);e.userIsDragging=a>5||r>5}},this.onTouchEnd=function(t){if(!e.userIsDragging){var n=t.target;e.controlRef&&!e.controlRef.contains(n)&&e.menuListRef&&!e.menuListRef.contains(n)&&e.blurInput(),e.initialTouchX=0,e.initialTouchY=0}},this.onControlTouchEnd=function(t){e.userIsDragging||e.onControlMouseDown(t)},this.onClearIndicatorTouchEnd=function(t){e.userIsDragging||e.onClearIndicatorMouseDown(t)},this.onDropdownIndicatorTouchEnd=function(t){e.userIsDragging||e.onDropdownIndicatorMouseDown(t)},this.handleInputChange=function(t){var n=t.currentTarget.value;e.inputIsHiddenAfterUpdate=!1,e.onInputChange(n,{action:"input-change"}),e.onMenuOpen()},this.onInputFocus=function(t){var n=e.props,a=n.isSearchable,r=n.isMulti;e.props.onFocus&&e.props.onFocus(t),e.inputIsHiddenAfterUpdate=!1,e.announceAriaLiveContext({event:"input",context:{isSearchable:a,isMulti:r}}),e.setState({isFocused:!0}),(e.openAfterFocus||e.props.openMenuOnFocus)&&e.openMenu("first"),e.openAfterFocus=!1},this.onInputBlur=function(t){e.menuListRef&&e.menuListRef.contains(document.activeElement)?e.inputRef.focus():(e.props.onBlur&&e.props.onBlur(t),e.onInputChange("",{action:"input-blur"}),e.onMenuClose(),e.setState({focusedValue:null,isFocused:!1}))},this.onOptionHover=function(t){e.blockOptionHover||e.state.focusedOption===t||e.setState({focusedOption:t})},this.shouldHideSelectedOptions=function(){var t=e.props,n=t.hideSelectedOptions,a=t.isMulti;return void 0===n?a:n},this.onKeyDown=function(t){var n=e.props,a=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,o=n.inputValue,s=n.isClearable,u=n.isDisabled,d=n.menuIsOpen,l=n.onKeyDown,c=n.tabSelectsValue,p=n.openMenuOnFocus,h=e.state,f=h.isComposing,g=h.focusedOption,m=h.focusedValue,y=h.selectValue;if(!(u||"function"==typeof l&&(l(t),t.defaultPrevented))){switch(e.blockOptionHover=!0,t.key){case"ArrowLeft":if(!a||o)return;e.focusValue("previous");break;case"ArrowRight":if(!a||o)return;e.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(m)e.removeValue(m);else{if(!r)return;a?e.popValue():s&&e.clearValue()}break;case"Tab":if(f)return;if(t.shiftKey||!d||!c||!g||p&&e.isOptionSelected(g,y))return;e.selectOption(g);break;case"Enter":if(d){if(!g)return;if(f)return;e.selectOption(g)}else e.focusOption("first");break;case"Escape":d?(e.inputIsHiddenAfterUpdate=!1,e.onInputChange("",{action:"menu-close"}),e.onMenuClose()):s&&i&&e.clearValue();break;case" ":if(o)return;if(!d){e.openMenu("first");break}if(!g)return;e.selectOption(g);break;case"ArrowUp":d?e.focusOption("up"):e.openMenu("last");break;case"ArrowDown":d?e.focusOption("down"):e.openMenu("first");break;case"PageUp":if(!d)return;e.focusOption("pageup");break;case"PageDown":if(!d)return;e.focusOption("pagedown");break;case"Home":if(!d)return;e.focusOption("first");break;case"End":if(!d)return;e.focusOption("last");break;default:return}t.preventDefault()}}},Ne={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Le=function(e){var t,n;return n=t=function(t){function n(){var e,t,a;m(this,n);for(var r=arguments.length,i=Array(r),o=0;o1?n-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=String(e).toLowerCase(),a=String(t.value).toLowerCase(),r=String(t.label).toLowerCase();return a===n||r===n},$e=b({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'+e+'"'},isValidNewOption:function(e,t,n){return!(!e||t.some(function(t){return He(e,t)})||n.some(function(t){return He(e,t)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),We=function(e){var t,n;return n=t=function(t){function n(e){m(this,n);var t=x(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));t.onChange=function(e,n){var a=t.props,r=a.getNewOptionData,i=a.inputValue,o=a.isMulti,s=a.onChange,u=a.onCreateOption,d=a.value;if("select-option"!==n.action)return s(e,n);var l=t.state.newOption,c=Array.isArray(e)?e:[e];if(c[c.length-1]!==l)s(e,n);else if(u)u(i);else{var p=r(i,i),h={action:"create-option"};s(o?[].concat(S(w(d)),[p]):p,h)}};var a=e.options||[];return t.state={newOption:void 0,options:a},t}return R(n,t),y(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,n=e.createOptionPosition,a=e.formatCreateLabel,r=e.getNewOptionData,i=e.inputValue,o=e.isLoading,s=e.isValidNewOption,u=e.value,d=e.options||[],l=this.state.newOption;l=s(i,w(u),d)?r(i,a(i)):void 0,this.setState({newOption:l,options:!t&&o||!l?d:"first"===n?[l].concat(S(d)):[].concat(S(d),[l])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,n=E(this.props,[]),a=this.state.options;return o.a.createElement(e,b({},n,{ref:function(e){t.select=e},options:a,onChange:this.onChange}))}}]),n}(i.Component),t.defaultProps=$e,n},Ge=Le(We(Ie)),qe=ze(Le(We(Ie))),Ke=function(e){var t=e.component,n=e.duration,a=void 0===n?1:n,r=e.in,i=(e.onExited,E(e,["component","duration","in","onExited"])),s={entering:{opacity:0},entered:{opacity:1,transition:"opacity "+a+"ms"},exiting:{opacity:0},exited:{opacity:0}};return o.a.createElement(f.Transition,{mountOnEnter:!0,unmountOnExit:!0,in:r,timeout:a},function(e){var n={style:b({},s[e])};return o.a.createElement(t,b({innerProps:n},i))})},Xe=260,Je=function(e){function t(){var e,n,a;m(this,t);for(var r=arguments.length,i=Array(r),o=0;o * {\n margin: ",";\n }\n\n .cosmos-layout-child > * > *:last-child {\n margin-bottom: ",";\n }\n\n .cosmos-layout-child > * > *:first-child {\n margin-top: ",";\n }\n "],["\n .cosmos-layout-child > * {\n margin: ",";\n }\n\n .cosmos-layout-child > * > *:last-child {\n margin-bottom: ",";\n }\n\n .cosmos-layout-child > * > *:first-child {\n margin-top: ",";\n }\n "])),n,n,n):""}}},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.node.comments&&(e.node.comments.length=0);return r.default.print(e).code};var r=a(n(7))},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.node;if(-1===h.indexOf(t.type))return!1;if("Property"===t.type&&((0,o.default)(e.parent)||(0,i.default)(e.parent)))return!1;if(m(e))return!0;return!1};var r=a(n(88)),i=a(n(45)),o=a(n(54)),s=a(n(574)),u=a(n(575)),d=a(n(576)),l=a(n(7)),c=a(n(11));const p=l.default.types.namedTypes,h=["Property","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"];function f(e){return"JSXElement"===e.node.type||"JSXFragment"===e.node.type||"CallExpression"===e.node.type&&(0,s.default)(e)||"CallExpression"===e.node.type&&(0,u.default)(e)||"CallExpression"===e.node.type&&(0,d.default)(e)}function g(e){if(f(e))return!0;const t=(0,c.default)(e);if("ConditionalExpression"===t.node.type)return g(t.get("consequent"))||g(t.get("alternate"));if("LogicalExpression"===t.node.type)return g(t.get("left"))||g(t.get("right"));if(t!==e&&f(t))return!0;if("CallExpression"===t.node.type){let e,n=(0,c.default)(t.get("callee"));if(m(n))return!0;const a=[n.get("property")];if("MemberExpression"===n.node.type)if("Identifier"===n.get("object").node.type)e=(0,c.default)(n.get("object"));else if(p.MemberExpression.check(n.node)){do{n=n.get("object"),a.unshift(n.get("property"))}while(p.MemberExpression.check(n.node));e=(0,c.default)(n.get("object"))}if(e&&p.ObjectExpression.check(e.node)){const t=a.reduce((e,t)=>t&&e&&(e=(0,r.default)(e,t.node.name))&&p.Identifier.check(e.node)?(0,c.default)(e):e,e);if(!t||m(t))return!0}}return!1}function m(e){let t=!1;if("ArrowFunctionExpression"===e.node.type&&"BlockStatement"!==e.get("body").node.type&&g(e.get("body")))return!0;let n=e.scope;return"Property"===e.node.type&&(n=e.get("value").scope),l.default.visit(e,{visitReturnStatement(e){return e.scope===n&&(g(e.get("argument"))?(t=!0,!1):void this.traverse(e))}}),t}},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(e){u.ExpressionStatement.check(e.node)&&(e=e.get("expression"));if(!(0,i.default)(e.node,{callee:{property:{name:"createClass"}}}))return!1;const t=(0,s.default)(e.get("callee","object"));return Boolean(t&&(0,r.default)(t))}(e)||function(e){u.ExpressionStatement.check(e.node)&&(e=e.get("expression"));if(!(0,i.default)(e.node,{type:"CallExpression"}))return!1;const t=(0,s.default)(e);return Boolean(t&&"create-react-class"===t)}(e)};var r=a(n(38)),i=a(n(39)),o=a(n(7)),s=a(n(32));const u=o.default.types.namedTypes},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=x(n(302));function r(){const e=E(n(711));return r=function(){return e},e}var i=E(n(33)),o=E(n(347));function s(){const e=x(n(9));return s=function(){return e},e}var u=n(101);function d(){const e=E(n(165));return d=function(){return e},e}var l=x(n(757)),c=x(n(758)),p=x(n(761)),h=x(n(772)),f=x(n(773)),g=x(n(780)),m=x(n(781)),y=x(n(782)),v=x(n(784)),b=x(n(786)),R=x(n(787));function E(e){return e&&e.__esModule?e:{default:e}}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}const S=(0,r().default)("babel");class C{constructor(e,t){this.parent=t,this.hub=e,this.contexts=[],this.data=Object.create(null),this.shouldSkip=!1,this.shouldStop=!1,this.removed=!1,this.state=null,this.opts=null,this.skipKeys=null,this.parentPath=null,this.context=null,this.container=null,this.listKey=null,this.inList=!1,this.parentKey=null,this.key=null,this.node=null,this.scope=null,this.type=null,this.typeAnnotation=null}static get({hub:e,parentPath:t,parent:n,container:a,listKey:r,key:i}){if(!e&&t&&(e=t.hub),!n)throw new Error("To get a node path the parent needs to exist");const o=a[i],s=u.path.get(n)||[];let d;u.path.has(n)||u.path.set(n,s);for(let e=0;e!0}],e.set(n,i);break;case"invalidate":i=[{value:s,valid:o.validator()}],e.set(n,i);break;case"valid":i?i.push({value:s,valid:o.validator()}):(i=[{value:s,valid:o.validator()}],e.set(n,i))}return s}}Object.defineProperty(t,"__esModule",{value:!0}),t.makeStrongCache=function(e){return a(new Map,e)},t.makeWeakCache=function(e){return a(new WeakMap,e)},t.assertSimpleType=i;class r{constructor(e){this._active=!0,this._never=!1,this._forever=!1,this._invalidate=!1,this._configured=!1,this._pairs=[],this._data=e}simple(){return function(e){function t(t){if("boolean"!=typeof t)return e.using(()=>i(t()));t?e.forever():e.never()}return t.forever=()=>e.forever(),t.never=()=>e.never(),t.using=t=>e.using(()=>i(t())),t.invalidate=t=>e.invalidate(()=>i(t())),t}(this)}mode(){return this._never?"never":this._forever?"forever":this._invalidate?"invalidate":"valid"}forever(){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}never(){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}using(e){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;const t=e(this._data);return this._pairs.push([t,e]),t}invalidate(e){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._invalidate=!0,this._configured=!0;const t=e(this._data);return this._pairs.push([t,e]),t}validator(){const e=this._pairs;return t=>e.every(([e,n])=>e===n(t))}deactivate(){this._active=!1}configured(){return this._configured}}function i(e){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}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadOptions=function(e){const t=(0,r.default)(e);return t?t.options:null},Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"loadPartialConfig",{enumerable:!0,get:function(){return i.loadPartialConfig}});var a,r=(a=n(807))&&a.__esModule?a:{default:a},i=n(376)},function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,a,r,i,o,s,u,d,l,c){switch(n){case 1:if(0===l&&64===a.charCodeAt(0))return e(a+";"),"";break;case 2:if(0===d)return a+"/*|*/";break;case 3:switch(d){case 102:case 112:return e(r[0]+a),"";default:return a+(0===c?"/*|*/":"")}case-2:a.split("/*|*/}").forEach(t)}}}}()},function(e,t){e.exports=require("util")},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(275)),i=a(n(17)),o=a(n(28));t.default=function(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,a=t.Type.or,s=e.use(o.default).defaults;n("Function").field("async",Boolean,s.false),n("SpreadProperty").bases("Node").build("argument").field("argument",n("Expression")),n("ObjectExpression").field("properties",[a(n("Property"),n("SpreadProperty"),n("SpreadElement"))]),n("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",n("Pattern")),n("ObjectPattern").field("properties",[a(n("Property"),n("PropertyPattern"),n("SpreadPropertyPattern"))]),n("AwaitExpression").bases("Expression").build("argument","all").field("argument",a(n("Expression"),null)).field("all",Boolean,s.false)},e.exports=t.default},function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,a=/^data:.+\,.+$/;function r(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(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 o(e){var n=e,a=r(e);if(a){if(!a.path)return e;n=a.path}for(var o,s=t.isAbsolute(n),u=n.split(/\/+/),d=0,l=u.length-1;l>=0;l--)"."===(o=u[l])?u.splice(l,1):".."===o?d++:d>0&&(""===o?(u.splice(l+1,d),d=0):(u.splice(l,2),d--));return""===(n=u.join("/"))&&(n=s?"/":"."),a?(a.path=n,i(a)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),s=r(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),i(n);if(n||t.match(a))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var u="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=u,i(s)):u}t.urlParse=r,t.urlGenerate=i,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var a=e.lastIndexOf("/");if(a<0)return t;if((e=e.slice(0,a)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var u=!("__proto__"in Object.create(null));function d(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 n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function c(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?d:function(e){return l(e)?"$"+e:e},t.fromSetString=u?d:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var a=c(e.source,t.source);return 0!==a?a:0!=(a=e.originalLine-t.originalLine)?a:0!=(a=e.originalColumn-t.originalColumn)||n?a:0!=(a=e.generatedColumn-t.generatedColumn)?a:0!=(a=e.generatedLine-t.generatedLine)?a:c(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var a=e.generatedLine-t.generatedLine;return 0!==a?a:0!=(a=e.generatedColumn-t.generatedColumn)||n?a:0!==(a=c(e.source,t.source))?a:0!=(a=e.originalLine-t.originalLine)?a:0!=(a=e.originalColumn-t.originalColumn)?a:c(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=c(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:c(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var a=r(n);if(!a)throw new Error("sourceMapURL could not be parsed");if(a.path){var u=a.path.lastIndexOf("/");u>=0&&(a.path=a.path.substring(0,u+1))}t=s(i(a),t)}return o(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDocblock=function(e,t=!1){let n=[];t&&e.node.trailingComments?n=e.node.trailingComments.filter(e=>"CommentBlock"===e.type&&r.test(e.value)):e.node.leadingComments?n=e.node.leadingComments.filter(e=>"CommentBlock"===e.type&&r.test(e.value)):e.node.comments&&(n=e.node.comments.filter(e=>e.leading&&"CommentBlock"===e.type&&r.test(e.value)));if(n.length>0)return function(e){const t=e.split("\n");for(let e=0,n=t.length;ei(e,t)):i(e,t)}function s(e,t=!0){if(!e)return e;const{type:n}=e,i={type:n};if("Identifier"===n)i.name=e.name,r(e,"optional")&&"boolean"==typeof e.optional&&(i.optional=e.optional),r(e,"typeAnnotation")&&(i.typeAnnotation=t?o(e.typeAnnotation,!0):e.typeAnnotation);else{if(!r(a.NODE_FIELDS,n))throw new Error(`Unknown node type: "${n}"`);for(const s of Object.keys(a.NODE_FIELDS[n]))r(e,s)&&(i[s]=t?o(e[s],!0):e[s])}return r(e,"loc")&&(i.loc=e.loc),r(e,"leadingComments")&&(i.leadingComments=e.leadingComments),r(e,"innerComments")&&(i.innerComments=e.innerComments),r(e,"trailingComments")&&(i.trailingComments=e.trailingComments),r(e,"extra")&&(i.extra=Object.assign({},e.extra)),i}},function(e,t,n){var a=n(40),r=n(31),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||r(e)&&a(e)==i}},function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,a=/^data:.+\,.+$/;function r(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(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 o(e){var n=e,a=r(e);if(a){if(!a.path)return e;n=a.path}for(var o,s=t.isAbsolute(n),u=n.split(/\/+/),d=0,l=u.length-1;l>=0;l--)"."===(o=u[l])?u.splice(l,1):".."===o?d++:d>0&&(""===o?(u.splice(l+1,d),d=0):(u.splice(l,2),d--));return""===(n=u.join("/"))&&(n=s?"/":"."),a?(a.path=n,i(a)):n}t.urlParse=r,t.urlGenerate=i,t.normalize=o,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),s=r(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),i(n);if(n||t.match(a))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var u="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=u,i(s)):u},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var a=e.lastIndexOf("/");if(a<0)return t;if((e=e.slice(0,a)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function u(e){return e}function d(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 n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function l(e,t){return e===t?0:e>t?1:-1}t.toSetString=s?u:function(e){return d(e)?"$"+e:e},t.fromSetString=s?u:function(e){return d(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var a=e.source-t.source;return 0!==a?a:0!=(a=e.originalLine-t.originalLine)?a:0!=(a=e.originalColumn-t.originalColumn)||n?a:0!=(a=e.generatedColumn-t.generatedColumn)?a:0!=(a=e.generatedLine-t.generatedLine)?a:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,n){var a=e.generatedLine-t.generatedLine;return 0!==a?a:0!=(a=e.generatedColumn-t.generatedColumn)||n?a:0!=(a=e.source-t.source)?a:0!=(a=e.originalLine-t.originalLine)?a:0!=(a=e.originalColumn-t.originalColumn)?a:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=l(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:l(e.name,t.name)}},function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,a=/^data:.+\,.+$/;function r(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(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 o(e){var n=e,a=r(e);if(a){if(!a.path)return e;n=a.path}for(var o,s=t.isAbsolute(n),u=n.split(/\/+/),d=0,l=u.length-1;l>=0;l--)"."===(o=u[l])?u.splice(l,1):".."===o?d++:d>0&&(""===o?(u.splice(l+1,d),d=0):(u.splice(l,2),d--));return""===(n=u.join("/"))&&(n=s?"/":"."),a?(a.path=n,i(a)):n}t.urlParse=r,t.urlGenerate=i,t.normalize=o,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),s=r(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),i(n);if(n||t.match(a))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var u="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=u,i(s)):u},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var a=e.lastIndexOf("/");if(a<0)return t;if((e=e.slice(0,a)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function u(e){return e}function d(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 n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function l(e,t){return e===t?0:e>t?1:-1}t.toSetString=s?u:function(e){return d(e)?"$"+e:e},t.fromSetString=s?u:function(e){return d(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var a=e.source-t.source;return 0!==a?a:0!=(a=e.originalLine-t.originalLine)?a:0!=(a=e.originalColumn-t.originalColumn)||n?a:0!=(a=e.generatedColumn-t.generatedColumn)?a:0!=(a=e.generatedLine-t.generatedLine)?a:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,n){var a=e.generatedLine-t.generatedLine;return 0!==a?a:0!=(a=e.generatedColumn-t.generatedColumn)||n?a:0!=(a=e.source-t.source)?a:0!=(a=e.originalLine-t.originalLine)?a:0!=(a=e.originalColumn-t.originalColumn)?a:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=l(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:l(e.name,t.name)}},function(e,t,n){"use strict";e.exports=n(414)},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(196));!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(196)),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=0;t.default=function(e){return void 0===e&&(e="cosmos"),(e=e.toLowerCase().replace(/ /g,"_"))+"-"+a++}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(236));!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(236)),t.default=r.default},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(237));!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(237)),t.default=r.default},function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r=a.length)for(var r=n-a.length;1+r--;)a.push(void 0);return a.splice(n,0,a.splice(t,1)[0]),a},t.omit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;at)return t;return n},t.getElementMargin=function(e){var t=window.getComputedStyle(e);return{top:o(t.marginTop),right:o(t.marginRight),bottom:o(t.marginBottom),left:o(t.marginLeft)}},t.provideDisplayName=function(e,t){var n=t.displayName||t.name;return n?e+"("+n+")":e},t.getPosition=function(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}},t.isTouchEvent=function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length},t.getEdgeOffset=function e(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,left:0};if(t){var r={top:a.top+t.offsetTop,left:a.left+t.offsetLeft};return t.parentNode!==n?e(t.parentNode,n,r):r}},t.getLockPixelOffset=function(e){var t=e.lockOffset,n=e.width,a=e.height,r=t,o=t,s="px";if("string"==typeof t){var u=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);(0,i.default)(null!==u,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),r=o=parseFloat(t),s=u[1]}(0,i.default)(isFinite(r)&&isFinite(o),"lockOffset value should be a finite. Given %s",t),"%"===s&&(r=r*n/100,o=o*a/100);return{x:r,y:o}};var a,r=n(84),i=(a=r)&&a.__esModule?a:{default:a};t.events={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","touchcancel","mouseup"]},t.vendorPrefix=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function o(e){return"px"===e.substr(-2)?parseFloat(e):0}},function(e,t,n){"use strict";e.exports=function(e,t,n,a,r,i,o,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,a,r,i,o,s],l=0;(u=new Error(t.replace(/%s/g,function(){return d[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0),this.length=e.length,this.name=t||null,this.name&&this.mappings.push(new d.default(this,{start:this.firstPos(),end:this.lastPos()}))}return e.prototype.toString=function(e){return this.sliceString(this.firstPos(),this.lastPos(),e)},e.prototype.getSourceMap=function(e,t){if(!e)return null;var n=this;function a(n){return(n=n||{}).file=e,t&&(n.sourceRoot=t),n}if(n.cachedSourceMap)return a(n.cachedSourceMap.toJSON());var r=new o.default.SourceMapGenerator(a()),s={};return n.mappings.forEach(function(e){for(var t=e.sourceLines.skipSpaces(e.sourceLoc.start)||e.sourceLines.lastPos(),a=n.skipSpaces(e.targetLoc.start)||n.lastPos();u.comparePos(t,e.sourceLoc.end)<0&&u.comparePos(a,e.targetLoc.end)<0;){var o=e.sourceLines.charAt(t),d=n.charAt(a);i.default.strictEqual(o,d);var l=e.sourceLines.name;if(r.addMapping({source:l,original:{line:t.line,column:t.column},generated:{line:a.line,column:a.column}}),!p.call(s,l)){var c=e.sourceLines.toString();r.setSourceContent(l,c),s[l]=c}n.nextPos(a,!0),e.sourceLines.nextPos(t,!0)}}),n.cachedSourceMap=r,r.toJSON()},e.prototype.bootstrapCharAt=function(e){i.default.strictEqual(typeof e,"object"),i.default.strictEqual(typeof e.line,"number"),i.default.strictEqual(typeof e.column,"number");var t=e.line,n=e.column,a=this.toString().split(m),r=a[t-1];return void 0===r?"":n===r.length&&t=r.length?"":r.charAt(n)},e.prototype.charAt=function(e){i.default.strictEqual(typeof e,"object"),i.default.strictEqual(typeof e.line,"number"),i.default.strictEqual(typeof e.column,"number");var t=e.line,n=e.column,a=this.infos[t-1],r=n;if(void 0===a||r<0)return"";var o=this.getIndentAt(t);return r=a.sliceEnd?"":a.line.charAt(r)},e.prototype.stripMargin=function(t,n){if(0===t)return this;if(i.default.ok(t>0,"negative margin: "+t),n&&1===this.length)return this;var r=new e(this.infos.map(function(e,r){return e.line&&(r>0||!n)&&(e=a({},e,{indent:Math.max(0,e.indent-t)})),e}));if(this.mappings.length>0){var o=r.mappings;i.default.strictEqual(o.length,0),this.mappings.forEach(function(e){o.push(e.indent(t,n,!0))})}return r},e.prototype.indent=function(t){if(0===t)return this;var n=new e(this.infos.map(function(e){return e.line&&!e.locked&&(e=a({},e,{indent:e.indent+t})),e}));if(this.mappings.length>0){var r=n.mappings;i.default.strictEqual(r.length,0),this.mappings.forEach(function(e){r.push(e.indent(t))})}return n},e.prototype.indentTail=function(t){if(0===t)return this;if(this.length<2)return this;var n=new e(this.infos.map(function(e,n){return n>0&&e.line&&!e.locked&&(e=a({},e,{indent:e.indent+t})),e}));if(this.mappings.length>0){var r=n.mappings;i.default.strictEqual(r.length,0),this.mappings.forEach(function(e){r.push(e.indent(t,!0))})}return n},e.prototype.lockIndentTail=function(){return this.length<2?this:new e(this.infos.map(function(e,t){return a({},e,{locked:t>0})}))},e.prototype.getIndentAt=function(e){return i.default.ok(e>=1,"no line "+e+" (line numbers start from 1)"),Math.max(this.infos[e-1].indent,0)},e.prototype.guessTabWidth=function(){if("number"==typeof this.cachedTabWidth)return this.cachedTabWidth;for(var e=[],t=0,n=1,a=this.length;n<=a;++n){var r=this.infos[n-1];if(!v(r.line.slice(r.sliceStart,r.sliceEnd))){var i=Math.abs(r.indent-t);e[i]=1+~~e[i],t=r.indent}}for(var o=-1,s=2,u=1;uo&&(o=e[u],s=u);return this.cachedTabWidth=s},e.prototype.startsWithComment=function(){if(0===this.infos.length)return!1;var e=this.infos[0],t=e.sliceStart,n=e.sliceEnd,a=e.line.slice(t,n).trim();return 0===a.length||"//"===a.slice(0,2)||"/*"===a.slice(0,2)},e.prototype.isOnlyWhitespace=function(){return v(this.toString())},e.prototype.isPrecededOnlyByWhitespace=function(e){var t=this.infos[e.line-1],n=Math.max(t.indent,0),a=e.column-n;if(a<=0)return!0;var r=t.sliceStart,i=Math.min(r+a,t.sliceEnd);return v(t.line.slice(r,i))},e.prototype.getLineLength=function(e){var t=this.infos[e-1];return this.getIndentAt(e)+t.sliceEnd-t.sliceStart},e.prototype.nextPos=function(e,t){void 0===t&&(t=!1);var n=Math.max(e.line,0);return Math.max(e.column,0)0&&(n.push(n.pop().slice(0,t.column)),n[0]=n[0].slice(e.column)),y(n.join("\n"))},e.prototype.slice=function(t,n){if(!n){if(!t)return this;n=this.lastPos()}if(!t)throw new Error("cannot slice with end but not start");var a=this.infos.slice(t.line-1,n.line);t.line===n.line?a[0]=b(a[0],t.column,n.column):(i.default.ok(t.line0){var o=r.mappings;i.default.strictEqual(o.length,0),this.mappings.forEach(function(e){var a=e.slice(this,t,n);a&&o.push(a)},this)}return r},e.prototype.bootstrapSliceString=function(e,t,n){return this.slice(e,t).toString(n)},e.prototype.sliceString=function(e,t,n){void 0===e&&(e=this.firstPos()),void 0===t&&(t=this.lastPos());for(var a=[],r=(n=s.normalize(n)).tabWidth,i=void 0===r?2:r,o=e.line;o<=t.line;++o){var u=this.infos[o-1];o===e.line?u=o===t.line?b(u,e.column,t.column):b(u,e.column):o===t.line&&(u=b(u,0,t.column));var d=Math.max(u.indent,0),l=u.line.slice(0,u.sliceStart);if(n.reuseWhitespace&&v(l)&&f(l,n.tabWidth)===d)a.push(u.line.slice(0,u.sliceEnd));else{var c=0,p=d;n.useTabs&&(p-=(c=Math.floor(d/i))*i);var h="";c>0&&(h+=new Array(c+1).join("\t")),p>0&&(h+=new Array(p+1).join(" ")),h+=u.line.slice(u.sliceStart,u.sliceEnd),a.push(h)}}return a.join(n.lineTerminator)},e.prototype.isEmpty=function(){return this.length<2&&this.getLineLength(1)<1},e.prototype.join=function(t){var n,r=this,i=[],o=[];function s(e){if(null!==e){if(n){var t=e.infos[0],r=new Array(t.indent+1).join(" "),s=i.length,u=Math.max(n.indent,0)+n.sliceEnd-n.sliceStart;n.line=n.line.slice(0,n.sliceEnd)+r+t.line.slice(t.sliceStart,t.sliceEnd),n.locked=n.locked||t.locked,n.sliceEnd=n.line.length,e.mappings.length>0&&e.mappings.forEach(function(e){o.push(e.add(s,u))})}else e.mappings.length>0&&o.push.apply(o,e.mappings);e.infos.forEach(function(e,t){(!n||t>0)&&(n=a({},e),i.push(n))})}}if(t.map(function(e){var t=y(e);return t.isEmpty()?null:t}).forEach(function(e,t){r.isEmpty()?s(e):function(e,t){t>0&&s(r),s(e)}(e,t)}),i.length<1)return R;var u=new e(i);return u.mappings=o,u},e.prototype.concat=function(){for(var e=[],t=0;t0);var o=Math.ceil(n/t)*t;o===n?n+=t:n=o;break;case 11:case 12:case 13:case 65279:break;case 32:default:n+=1}return n}t.countSpaces=f;var g=/^\s*/,m=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function y(e,t){if(e instanceof l)return e;e+="";var n=t&&t.tabWidth,a=e.indexOf("\t")<0,r=!t&&a&&e.length<=h;if(i.default.ok(n||a,"No tab width specified but encountered tabs in string\n"+e),r&&p.call(c,e))return c[e];var o=new l(e.split(m).map(function(e){var t=g.exec(e)[0];return{line:e,indent:f(t,n),locked:!1,sliceStart:t.length,sliceEnd:e.length}}),s.normalize(t).sourceFileName);return r&&(c[e]=o),o}function v(e){return!/\S/.test(e)}function b(e,t,n){var a=e.sliceStart,r=e.sliceEnd,o=Math.max(e.indent,0),s=o+r-a;return void 0===n&&(n=s),t=Math.max(t,0),n=Math.min(n,s),(n=Math.max(n,t))=0),i.default.ok(a<=r),i.default.strictEqual(s,o+r-a),e.indent===o&&e.sliceStart===a&&e.sliceEnd===r?e:{line:e.line,indent:o,locked:!1,sliceStart:a,sliceEnd:r}}t.fromString=y,t.concat=function(e){return R.join(e)};var R=y("")},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return i.ObjectExpression.assert(e.node),e.get("properties").filter(e=>(0,r.default)(e)===t).map(e=>e.get("value"))[0]};var r=a(n(29));const i=a(n(7)).default.types.namedTypes},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!i(e))return null;let t=e;do{t=t.get("typeAnnotation")}while(i(t)&&!r.FlowType.check(t.node));return t};const r=a(n(7)).default.types.namedTypes;function i(e){return!!e.node.typeAnnotation}},function(e,t,n){!function(){"use strict";t.ast=n(569),t.code=n(292),t.keyword=n(570)}()},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!1){const n=[];let a=null;e:for(;;)switch(!0){case r.MemberExpression.check(e.node):n.push({path:e.get("property"),computed:e.node.computed,argumentsPath:a}),a=null,e=e.get("object");break;case r.CallExpression.check(e.node):a=e.get("arguments"),e=e.get("callee");break;default:break e}t&&n.length>0&&n.push({path:e,computed:!1,argumentsPath:a});return n.reverse()};const r=a(n(7)).default.types.namedTypes},function(e,t,n){var a=n(599),r=n(600),i=n(601),o=n(602),s=n(603);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tr?e(t):t;r&&(e=(0,a().default)(e,n));const d=e.split(i),{start:l,end:c,markerLines:p}=function(e,t,n){const a=Object.assign({column:0,line:-1},e.start),r=Object.assign({},a,e.end),{linesAbove:i=2,linesBelow:o=3}=n||{},s=a.line,u=a.column,d=r.line,l=r.column;let c=Math.max(s-(i+1),0),p=Math.min(t.length,d+o);-1===s&&(c=0),-1===d&&(p=t.length);const h=d-s,f={};if(h)for(let e=0;e<=h;e++){const n=e+s;if(u)if(0===e){const e=t[n-1].length;f[n]=[u,e-u]}else if(e===h)f[n]=[0,l];else{const a=t[n-e].length;f[n]=[0,a]}else f[n]=!0}else f[s]=u===l?!u||[u,0]:[u,l-u];return{start:c,end:p,markerLines:f}}(t,d,n),h=t.start&&"number"==typeof t.start.column,f=String(c).length;let g=d.slice(l,c).map((e,t)=>{const a=l+1+t,r=` ${` ${a}`.slice(-f)} | `,i=p[a],o=!p[a+1];if(i){let t="";if(Array.isArray(i)){const a=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),d=i[1]||1;t=["\n ",u(s.gutter,r.replace(/\d/g," ")),a,u(s.marker,"^").repeat(d)].join(""),o&&n.message&&(t+=" "+u(s.message,n.message))}return[u(s.marker,">"),u(s.gutter,r),e,t].join("")}return` ${u(s.gutter,r)}${e}`}).join("\n");return n.message&&!h&&(g=`${" ".repeat(f+1)}${n.message}\n${g}`),r?o.reset(g):g}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=!0;class r{constructor(e,t={}){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}}const i=new Map;function o(e,t={}){t.keyword=e;const n=new r(e,t);return i.set(e,n),n}function s(e,t){return new r(e,{beforeExpr:a,binop:t})}const u={num:new r("num",{startsExpr:!0}),bigint:new r("bigint",{startsExpr:!0}),regexp:new r("regexp",{startsExpr:!0}),string:new r("string",{startsExpr:!0}),name:new r("name",{startsExpr:!0}),eof:new r("eof"),bracketL:new r("[",{beforeExpr:a,startsExpr:!0}),bracketR:new r("]"),braceL:new r("{",{beforeExpr:a,startsExpr:!0}),braceBarL:new r("{|",{beforeExpr:a,startsExpr:!0}),braceR:new r("}"),braceBarR:new r("|}"),parenL:new r("(",{beforeExpr:a,startsExpr:!0}),parenR:new r(")"),comma:new r(",",{beforeExpr:a}),semi:new r(";",{beforeExpr:a}),colon:new r(":",{beforeExpr:a}),doubleColon:new r("::",{beforeExpr:a}),dot:new r("."),question:new r("?",{beforeExpr:a}),questionDot:new r("?."),arrow:new r("=>",{beforeExpr:a}),template:new r("template"),ellipsis:new r("...",{beforeExpr:a}),backQuote:new r("`",{startsExpr:!0}),dollarBraceL:new r("${",{beforeExpr:a,startsExpr:!0}),at:new r("@"),hash:new r("#",{startsExpr:!0}),interpreterDirective:new r("#!..."),eq:new r("=",{beforeExpr:a,isAssign:!0}),assign:new r("_=",{beforeExpr:a,isAssign:!0}),incDec:new r("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new r("!",{beforeExpr:a,prefix:!0,startsExpr:!0}),tilde:new r("~",{beforeExpr:a,prefix:!0,startsExpr:!0}),pipeline:s("|>",0),nullishCoalescing:s("??",1),logicalOR:s("||",1),logicalAND:s("&&",2),bitwiseOR:s("|",3),bitwiseXOR:s("^",4),bitwiseAND:s("&",5),equality:s("==/!=/===/!==",6),relational:s("/<=/>=",7),bitShift:s("<>/>>>",8),plusMin:new r("+/-",{beforeExpr:a,binop:9,prefix:!0,startsExpr:!0}),modulo:s("%",10),star:s("*",10),slash:s("/",10),exponent:new r("**",{beforeExpr:a,binop:11,rightAssociative:!0}),_break:o("break"),_case:o("case",{beforeExpr:a}),_catch:o("catch"),_continue:o("continue"),_debugger:o("debugger"),_default:o("default",{beforeExpr:a}),_do:o("do",{isLoop:!0,beforeExpr:a}),_else:o("else",{beforeExpr:a}),_finally:o("finally"),_for:o("for",{isLoop:!0}),_function:o("function",{startsExpr:!0}),_if:o("if"),_return:o("return",{beforeExpr:a}),_switch:o("switch"),_throw:o("throw",{beforeExpr:a,prefix:!0,startsExpr:!0}),_try:o("try"),_var:o("var"),_const:o("const"),_while:o("while",{isLoop:!0}),_with:o("with"),_new:o("new",{beforeExpr:a,startsExpr:!0}),_this:o("this",{startsExpr:!0}),_super:o("super",{startsExpr:!0}),_class:o("class",{startsExpr:!0}),_extends:o("extends",{beforeExpr:a}),_export:o("export"),_import:o("import",{startsExpr:!0}),_null:o("null",{startsExpr:!0}),_true:o("true",{startsExpr:!0}),_false:o("false",{startsExpr:!0}),_in:o("in",{beforeExpr:a,binop:7}),_instanceof:o("instanceof",{beforeExpr:a,binop:7}),_typeof:o("typeof",{beforeExpr:a,prefix:!0,startsExpr:!0}),_void:o("void",{beforeExpr:a,prefix:!0,startsExpr:!0}),_delete:o("delete",{beforeExpr:a,prefix:!0,startsExpr:!0})},d=0,l=1,c=2,p=4,h=8,f=16,g=32,m=64,y=128,v=256,b=l|c;function R(e,t){return c|(e?p:0)|(t?h:0)}const E=1,x=2,S=4,C=8,D=16,w=128,A=256,_=512,T=1024,P=E|x|C|w,k=0|E|C|0,O=0|E|S|0,F=0|E|D|0,j=0|x|w,M=0|x,I=E|x|C|A,B=0|T,N=64,L=64|E,V=I|_,z=B;function U(e){return null!=e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}const H=/\r\n?|[\n\u2028\u2029]/,$=new RegExp(H.source,"g");function W(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const G=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function q(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}}class K{constructor(e,t,n,a){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=a}}const X={braceStatement:new K("{",!1),braceExpression:new K("{",!0),templateQuasi:new K("${",!1),parenStatement:new K("(",!1),parenExpression:new K("(",!0),template:new K("`",!0,!0,e=>e.readTmplToken()),functionExpression:new K("function",!0),functionStatement:new K("function",!1)};u.parenR.updateContext=u.braceR.updateContext=function(){if(1===this.state.context.length)return void(this.state.exprAllowed=!0);let e=this.state.context.pop();e===X.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr},u.name.updateContext=function(e){let t=!1;e!==u.dot&&("of"===this.state.value&&!this.state.exprAllowed||"yield"===this.state.value&&this.scope.inGenerator)&&(t=!0),this.state.exprAllowed=t,this.state.isIterator&&(this.state.isIterator=!1)},u.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?X.braceStatement:X.braceExpression),this.state.exprAllowed=!0},u.dollarBraceL.updateContext=function(){this.state.context.push(X.templateQuasi),this.state.exprAllowed=!0},u.parenL.updateContext=function(e){const t=e===u._if||e===u._for||e===u._with||e===u._while;this.state.context.push(t?X.parenStatement:X.parenExpression),this.state.exprAllowed=!0},u.incDec.updateContext=function(){},u._function.updateContext=u._class.updateContext=function(e){!e.beforeExpr||e===u.semi||e===u._else||e===u._return&&H.test(this.input.slice(this.state.lastTokEnd,this.state.start))||(e===u.colon||e===u.braceL)&&this.curContext()===X.b_stat?this.state.context.push(X.functionStatement):this.state.context.push(X.functionExpression),this.state.exprAllowed=!1},u.backQuote.updateContext=function(){this.curContext()===X.template?this.state.context.pop():this.state.context.push(X.template),this.state.exprAllowed=!1};const J={strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Y=new Set(J.strict),Q=new Set(J.strict.concat(J.strictBind)),Z=(e,t)=>t&&"await"===e||"enum"===e;function ee(e,t){return Z(e,t)||Y.has(e)}function te(e,t){return Z(e,t)||Q.has(e)}const ne=/^in(stanceof)?$/;let ae="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",re="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const ie=new RegExp("["+ae+"]"),oe=new RegExp("["+ae+re+"]");ae=re=null;const se=[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,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,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,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,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,270,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,754,9486,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,42710,42,4148,12,221,3,5761,15,7472,3104,541],ue=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,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,4,9,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,232,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,19723,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,792487,239];function de(e,t){let n=65536;for(let a=0,r=t.length;ae)return!1;if((n+=t[a+1])>=e)return!0}return!1}function le(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ie.test(String.fromCharCode(e)):de(e,se)))}function ce(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&oe.test(String.fromCharCode(e)):de(e,se)||de(e,ue))))}const pe=["any","bool","boolean","empty","false","mixed","null","number","static","string","true","typeof","void","interface","extends","_"];function he(e){return"type"===e.importKind||"typeof"===e.importKind}function fe(e){return(e.type===u.name||!!e.type.keyword)&&"from"!==e.value}const ge={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const me=/\*?\s*@((?:no)?flow)\b/;const ye={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},ve=/^[\da-fA-F]+$/,be=/^\d+$/;function Re(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Ee(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Ee(e.object)+"."+Ee(e.property);throw new Error("Node had unexpected type: "+e.type)}X.j_oTag=new K("...",!0,!0),u.jsxName=new r("jsxName"),u.jsxText=new r("jsxText",{beforeExpr:!0}),u.jsxTagStart=new r("jsxTagStart",{startsExpr:!0}),u.jsxTagEnd=new r("jsxTagEnd"),u.jsxTagStart.updateContext=function(){this.state.context.push(X.j_expr),this.state.context.push(X.j_oTag),this.state.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){const t=this.state.context.pop();t===X.j_oTag&&e===u.slash||t===X.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===X.j_expr):this.state.exprAllowed=!0};class xe{constructor(e){this.var=[],this.lexical=[],this.functions=[],this.flags=e}}class Se{constructor(e,t){this.scopeStack=[],this.undefinedExports=new Map,this.raise=e,this.inModule=t}get inFunction(){return(this.currentVarScope().flags&c)>0}get inGenerator(){return(this.currentVarScope().flags&h)>0}get inAsync(){return(this.currentVarScope().flags&p)>0}get allowSuper(){return(this.currentThisScope().flags&m)>0}get allowDirectSuper(){return(this.currentThisScope().flags&y)>0}get inNonArrowFunction(){return(this.currentThisScope().flags&c)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new xe(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(e){return!!(e.flags&c||!this.inModule&&e.flags&l)}declareName(e,t,n){let a=this.currentScope();if(t&C||t&D)this.checkRedeclarationInScope(a,e,t,n),t&D?a.functions.push(e):a.lexical.push(e),t&C&&this.maybeExportDefined(a,e);else if(t&S)for(let r=this.scopeStack.length-1;r>=0&&(a=this.scopeStack[r],this.checkRedeclarationInScope(a,e,t,n),a.var.push(e),this.maybeExportDefined(a,e),!(a.flags&b));--r);this.inModule&&a.flags&l&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.inModule&&e.flags&l&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,a){this.isRedeclaredInScope(e,t,n)&&this.raise(a,`Identifier '${t}' has already been declared`)}isRedeclaredInScope(e,t,n){return!!(n&E)&&(n&C?e.lexical.indexOf(t)>-1||e.functions.indexOf(t)>-1||e.var.indexOf(t)>-1:n&D?e.lexical.indexOf(t)>-1||!this.treatFunctionsAsVarInScope(e)&&e.var.indexOf(t)>-1:e.lexical.indexOf(t)>-1&&!(e.flags&g&&e.lexical[0]===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.indexOf(t)>-1)}checkLocalExport(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&-1===this.scopeStack[0].functions.indexOf(e.name)&&this.undefinedExports.set(e.name,e.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if(t.flags&b)return t}}currentThisScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if((t.flags&b||t.flags&v)&&!(t.flags&f))return t}}}class Ce extends xe{constructor(...e){super(...e),this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class De extends Se{createScope(e){return new Ce(e)}declareName(e,t,n){const a=this.currentScope();if(t&T)return this.maybeExportDefined(a,e),void a.exportOnlyBindings.push(e);super.declareName(...arguments),t&x&&(t&E||(this.checkRedeclarationInScope(a,e,t,n),this.maybeExportDefined(a,e)),a.types.push(e)),t&A&&a.enums.push(e),t&_&&a.constEnums.push(e),t&w&&a.classes.push(e)}isRedeclaredInScope(e,t,n){if(e.enums.indexOf(t)>-1){if(n&A){return!!(n&_)!==e.constEnums.indexOf(t)>-1}return!0}return n&w&&e.classes.indexOf(t)>-1?e.lexical.indexOf(t)>-1&&!!(n&E):!!(n&x&&e.types.indexOf(t)>-1)||super.isRedeclaredInScope(...arguments)}checkLocalExport(e){-1===this.scopeStack[0].types.indexOf(e.name)&&-1===this.scopeStack[0].exportOnlyBindings.indexOf(e.name)&&super.checkLocalExport(e)}}function we(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}function Ae(e){if(!e)throw new Error("Assert fail")}u.placeholder=new r("%%",{startsExpr:!0});function _e(e,t){return e.some(e=>Array.isArray(e)?e[0]===t:e===t)}function Te(e,t,n){const a=e.find(e=>Array.isArray(e)?e[0]===t:e===t);return a&&Array.isArray(a)?a[1][n]:null}const Pe=["minimal","smart"];const ke={estree:e=>(class extends e{estreeParseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch(e){}const a=this.estreeParseLiteral(n);return a.regex={pattern:e,flags:t},a}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}directiveToStmt(e){const t=e.value,n=this.startNodeAt(e.start,e.loc.start),a=this.startNodeAt(t.start,t.loc.start);return a.value=t.value,a.raw=t.extra.raw,n.expression=this.finishNodeAt(a,"Literal",t.end,t.loc.end),n.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(n,"ExpressionStatement",e.end,e.loc.end)}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){U(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}checkGetterSetterParams(e){const t=e,n="get"===t.kind?0:1,a=t.start;t.value.params.length!==n&&("get"===t.kind?this.raise(a,"getter must not have any formal parameters"):this.raise(a,"setter must have exactly one formal parameter")),"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raise(a,"setter function argument must not be a rest parameter")}checkLVal(e,t=N,n,a){switch(e.type){case"ObjectPattern":e.properties.forEach(e=>{this.checkLVal("Property"===e.type?e.value:e,t,n,"object destructuring pattern")});break;default:super.checkLVal(e,t,n,a)}}checkPropClash(e,t){if("SpreadElement"===e.type||e.computed||e.method||e.shorthand)return;const n=e.key;"__proto__"===("Identifier"===n.type?n.name:String(n.value))&&"init"===e.kind&&(t.proto&&this.raise(n.start,"Redefinition of __proto__ property"),t.proto=!0)}isStrictBody(e){if("BlockStatement"===e.body.type&&e.body.body.length>0)for(let t=0,n=e.body.body;tthis.directiveToStmt(e));e.body=r.concat(e.body),delete e.directives}pushClassMethod(e,t,n,a,r,i){this.parseMethod(t,n,a,r,i,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parseExprAtom(e){switch(this.state.type){case u.regexp:return this.estreeParseRegExpLiteral(this.state.value);case u.num:case u.string:return this.estreeParseLiteral(this.state.value);case u._null:return this.estreeParseLiteral(null);case u._true:return this.estreeParseLiteral(!0);case u._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(e)}}parseLiteral(e,t,n,a){const r=super.parseLiteral(e,t,n,a);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,n,a,r,i,o=!1){let s=this.startNode();return s.kind=e.kind,(s=super.parseMethod(s,t,n,a,r,i,o)).type="FunctionExpression",delete s.kind,e.value=s,i="ClassMethod"===i?"MethodDefinition":i,this.finishNode(e,i)}parseObjectMethod(e,t,n,a,r){const i=super.parseObjectMethod(e,t,n,a,r);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i}parseObjectProperty(e,t,n,a,r){const i=super.parseObjectProperty(e,t,n,a,r);return i&&(i.kind="init",i.type="Property"),i}toAssignable(e,t,n){return U(e)?(this.toAssignable(e.value,t,n),e):super.toAssignable(e,t,n)}toAssignableObjectExpressionProp(e,t,n){"get"===e.kind||"set"===e.kind?this.raise(e.key.start,"Object pattern can't contain getter or setter"):e.method?this.raise(e.key.start,"Object pattern can't contain methods"):super.toAssignableObjectExpressionProp(e,t,n)}}),jsx:e=>(class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){this.state.pos>=this.length&&this.raise(this.state.start,"Unterminated JSX contents");const 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(u.jsxTagStart)):super.getTokenFromCode(n):(e+=this.input.slice(t,this.state.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:W(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=e?"\n":"\r\n"):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t="",n=++this.state.pos;for(;;){this.state.pos>=this.length&&this.raise(this.state.start,"Unterminated string constant");const a=this.input.charCodeAt(this.state.pos);if(a===e)break;38===a?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):W(a)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}return t+=this.input.slice(n,this.state.pos++),this.finishToken(u.string,t)}jsxReadEntity(){let e,t="",n=0,a=this.input[this.state.pos];const r=++this.state.pos;for(;this.state.pos"):!Re(r)&&Re(i)?this.raise(i.start,"Expected corresponding JSX closing tag for <"+Ee(r.name)+">"):Re(r)||Re(i)||Ee(i.name)!==Ee(r.name)&&this.raise(i.start,"Expected corresponding JSX closing tag for <"+Ee(r.name)+">")}return Re(r)?(n.openingFragment=r,n.closingFragment=i):(n.openingElement=r,n.closingElement=i),n.children=a,this.match(u.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"),Re(r)?this.finishNode(n,"JSXFragment"):this.finishNode(n,"JSXElement")}jsxParseElement(){const e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)}parseExprAtom(e){return this.match(u.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(u.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.input.charCodeAt(this.state.pos)?(this.finishToken(u.jsxTagStart),this.jsxParseElement()):super.parseExprAtom(e)}getTokenFromCode(e){if(this.state.inPropertyName)return super.getTokenFromCode(e);const t=this.curContext();if(t===X.j_expr)return this.jsxReadToken();if(t===X.j_oTag||t===X.j_cTag){if(le(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(u.jsxTagEnd);if((34===e||39===e)&&t===X.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(u.jsxTagStart)):super.getTokenFromCode(e)}updateContext(e){if(this.match(u.braceL)){const t=this.curContext();t===X.j_oTag?this.state.context.push(X.braceExpression):t===X.j_expr?this.state.context.push(X.templateQuasi):super.updateContext(e),this.state.exprAllowed=!0}else{if(!this.match(u.slash)||e!==u.jsxTagStart)return super.updateContext(e);this.state.context.length-=2,this.state.context.push(X.j_cTag),this.state.exprAllowed=!1}}}),flow:e=>(class extends e{constructor(e,t){super(e,t),this.flowPragma=void 0}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,t){return e!==u.string&&e!==u.semi&&e!==u.interpreterDirective&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=me.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}return super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||u.colon);const n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc,n=this.state.start;this.expect(u.modulo);const a=this.state.startLoc;return this.expectContextual("checks"),t.line===a.line&&t.column===a.column-1||this.raise(n,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(u.parenL)?(e.value=this.parseExpression(),this.expect(u.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(u.colon);let t=null,n=null;return this.match(u.modulo)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(u.modulo)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),n=this.startNode(),a=this.startNode();this.isRelational("<")?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(u.parenL);const r=this.flowParseFunctionTypeParams();return n.params=r.params,n.rest=r.rest,this.expect(u.parenR),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),a.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(a,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(u._class))return this.flowParseDeclareClass(e);if(this.match(u._function))return this.flowParseDeclareFunction(e);if(this.match(u._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(u.dot)?this.flowParseDeclareModuleExports(e):(t&&this.unexpected(this.state.lastTokStart,"`declare module` cannot be used inside another `declare module`"),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(u._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(d),this.match(u.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),n=t.body=[];for(this.expect(u.braceL);!this.match(u.braceR);){let e=this.startNode();this.match(u._import)?(this.next(),this.isContextual("type")||this.isContextual("typeof")||this.unexpected(this.state.lastTokStart,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.parseImport(e)):(this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),e=this.flowParseDeclare(e,!0)),n.push(e)}this.scope.exit(),this.expect(u.braceR),this.finishNode(t,"BlockStatement");let a=null,r=!1;const i="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";return n.forEach(e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(r&&this.unexpected(e.start,"Duplicate `declare module.exports` statement"),"ES"===a&&this.unexpected(e.start,i),a="CommonJS",r=!0):("CommonJS"===a&&this.unexpected(e.start,i),a="ES")}),e.kind=a||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(u._export),this.eat(u._default))return this.match(u._function)||this.match(u._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(u._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){const e=this.state.value,t=ge[e];this.unexpected(this.state.start,`\`declare export ${e}\` is not supported. Use \`${t}\` instead`)}if(this.match(u._var)||this.match(u._function)||this.match(u._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(u.star)||this.match(u.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()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t=!1){if(e.id=this.flowParseRestrictedIdentifier(!t),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(u._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(u.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){if("_"===e)throw this.unexpected(null,"`_` is only allowed as a type argument to call or new")}checkReservedType(e,t){pe.indexOf(e)>-1&&this.raise(t,`Cannot overwrite reserved type ${e}`)}flowParseRestrictedIdentifier(e){return this.checkReservedType(this.state.value,this.state.start),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(),this.scope.declareName(e.id.name,k,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(u.eq),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0),this.scope.declareName(e.id.name,k,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(u.colon)&&(e.supertype=this.flowParseTypeInitialiser(u.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(u.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!0,t=!1){if(!e&&t)throw new Error("Cannot disallow a default value (`allowDefault`) while also requiring it (`requireDefault`).");const n=this.state.start,a=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return a.name=i.name,a.variance=r,a.bound=i.typeAnnotation,this.match(u.eq)?e?(this.eat(u.eq),a.default=this.flowParseType()):this.unexpected():t&&this.unexpected(n,"Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),this.finishNode(a,"TypeParameter")}flowParseTypeParameterDeclaration(e=!0){const t=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected();let a=!1;do{const t=this.flowParseTypeParameter(e,a);n.params.push(t),t.default&&(a=!0),this.isRelational(">")||this.expect(u.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=t,this.finishNode(n,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");const n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(u.comma);return this.state.noAnonFunctionType=n,this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const 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(u.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(u._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(u.num)||this.match(u.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,this.lookahead().type===u.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(u.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(u.bracketR),this.expect(u.bracketR),this.isRelational("<")||this.match(u.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(u.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration(!1)),this.expect(u.parenL);!this.match(u.parenR)&&!this.match(u.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(u.parenR)||this.expect(u.comma);return this.eat(u.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(u.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:a,allowInexact:r}){const i=this.state.inType;this.state.inType=!0;const o=this.startNode();let s,d;o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let l=!1;for(t&&this.match(u.braceBarL)?(this.expect(u.braceBarL),s=u.braceBarR,d=!0):(this.expect(u.braceL),s=u.braceR,d=!1),o.exact=d;!this.match(s);){let t=!1,i=null;const s=this.startNode();if(a&&this.isContextual("proto")){const t=this.lookahead();t.type!==u.colon&&t.type!==u.question&&(this.next(),i=this.state.start,e=!1)}if(e&&this.isContextual("static")){const e=this.lookahead();e.type!==u.colon&&e.type!==u.question&&(this.next(),t=!0)}const d=this.flowParseVariance();if(this.eat(u.bracketL))null!=i&&this.unexpected(i),this.eat(u.bracketL)?(d&&this.unexpected(d.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(s,t))):o.indexers.push(this.flowParseObjectTypeIndexer(s,t,d));else if(this.match(u.parenL)||this.isRelational("<"))null!=i&&this.unexpected(i),d&&this.unexpected(d.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(s,t));else{let e="init";if(this.isContextual("get")||this.isContextual("set")){const t=this.lookahead();t.type!==u.name&&t.type!==u.string&&t.type!==u.num||(e=this.state.value,this.next())}const a=this.flowParseObjectTypeProperty(s,t,i,d,e,n,r);null===a?l=!0:o.properties.push(a)}this.flowObjectTypeSemicolon()}this.expect(s),n&&(o.inexact=l);const c=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=i,c}flowParseObjectTypeProperty(e,t,n,a,r,i,o){if(this.match(u.ellipsis)){i||this.unexpected(null,"Spread operator cannot appear in class or interface definitions"),null!=n&&this.unexpected(n),a&&this.unexpected(a.start,"Spread properties cannot have variance"),this.expect(u.ellipsis);const t=this.eat(u.comma)||this.eat(u.semi);if(this.match(u.braceR)){if(o)return null;this.unexpected(null,"Explicit inexact syntax is only allowed inside inexact objects")}return this.match(u.braceBarR)&&this.unexpected(null,"Explicit inexact syntax cannot appear inside an explicit exact object type"),t&&this.unexpected(null,"Explicit inexact syntax must appear at the end of an inexact object"),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty")}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=r;let i=!1;return this.isRelational("<")||this.match(u.parenL)?(e.method=!0,null!=n&&this.unexpected(n),a&&this.unexpected(a.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==r&&"set"!==r||this.flowCheckGetterSetterParams(e)):("init"!==r&&this.unexpected(),e.method=!1,this.eat(u.question)&&(i=!0),e.value=this.flowParseTypeInitialiser(),e.variance=a),e.optional=i,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,n=e.start;e.value.params.length+(e.value.rest?1:0)!==t&&("get"===e.kind?this.raise(n,"getter must not have any formal parameters"):this.raise(n,"setter must have exactly one formal parameter")),"set"===e.kind&&e.value.rest&&this.raise(n,"setter function argument must not be a rest parameter")}flowObjectTypeSemicolon(){this.eat(u.semi)||this.eat(u.comma)||this.match(u.braceR)||this.match(u.braceBarR)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t,n){e=e||this.state.start,t=t||this.state.startLoc;let a=n||this.parseIdentifier();for(;this.eat(u.dot);){const n=this.startNodeAt(e,t);n.qualification=a,n.id=this.parseIdentifier(),a=this.finishNode(n,"QualifiedTypeIdentifier")}return a}flowParseGenericType(e,t,n){const a=this.startNodeAt(e,t);return a.typeParameters=null,a.id=this.flowParseQualifiedTypeIdentifier(e,t,n),this.isRelational("<")&&(a.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(a,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(u._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(u.bracketL);this.state.possuper.parseFunctionBody(e,!0,n)):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(u.colon)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(e,t,n)}parseStatement(e,t){if(this.state.strict&&this.match(u.name)&&"interface"===this.state.value){const e=this.startNode();return this.next(),this.flowParseInterface(e)}{const n=super.parseStatement(e,t);return void 0!==this.flowPragma||this.isValidDirective(n)||(this.flowPragma=null),n}}parseExpressionStatement(e,t){if("Identifier"===t.type)if("declare"===t.name){if(this.match(u._class)||this.match(u.name)||this.match(u._function)||this.match(u._var)||this.match(u._export))return this.flowParseDeclare(e)}else if(this.match(u.name)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){return(!this.match(u.name)||"type"!==this.state.value&&"interface"!==this.state.value&&"opaque"!==this.state.value)&&super.isExportDefaultSpecifier()}parseConditional(e,t,n,a,r){if(!this.match(u.question))return e;if(r){const i=this.state.clone();try{return super.parseConditional(e,t,n,a)}catch(t){if(t instanceof SyntaxError)return this.state=i,r.start=t.pos||this.state.start,e;throw t}}this.expect(u.question);const i=this.state.clone(),o=this.state.noArrowAt,s=this.startNodeAt(n,a);let{consequent:d,failed:l}=this.tryParseConditionalConsequent(),[c,p]=this.getArrowLikeExpressions(d);if(l||p.length>0){const e=[...o];if(p.length>0){this.state=i,this.state.noArrowAt=e;for(let t=0;t1&&this.raise(i.start,"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."),l&&1===c.length&&(this.state=i,this.state.noArrowAt=e.concat(c[0].start),({consequent:d,failed:l}=this.tryParseConditionalConsequent())),this.getArrowLikeExpressions(d,!0)}return this.state.noArrowAt=o,this.expect(u.colon),s.test=e,s.consequent=d,s.alternate=this.forwardNoArrowParamsConversionAt(s,()=>this.parseMaybeAssign(t,void 0,void 0,void 0)),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssign(),t=!this.match(u.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const n=[e],a=[];for(;0!==n.length;){const e=n.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?(this.toAssignableList(e.params,!0,"arrow function parameters"),this.scope.enter(R(!1,!1)|f),super.checkParams(e,!1,!0),this.scope.exit()):a.push(e),n.push(e.body)):"ConditionalExpression"===e.type&&(n.push(e.consequent),n.push(e.alternate))}if(t){for(let t=0;t{try{return this.toAssignableList(e.params,!0,"arrow function parameters"),!0}catch(e){return!1}})}forwardNoArrowParamsConversionAt(e,t){let n;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t,n){if(e=super.parseParenItem(e,t,n),this.eat(u.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(u.colon)){const a=this.startNodeAt(t,n);return a.expression=e,a.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(a,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExport(e){const t=super.parseExport(e);return"ExportNamedDeclaration"!==t.type&&"ExportAllDeclaration"!==t.type||(t.exportKind=t.exportKind||"value"),t}parseExportDeclaration(e){if(this.isContextual("type")){e.exportKind="type";const t=this.startNode();return this.next(),this.match(u.braceL)?(e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual("opaque")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual("interface")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(...arguments)||!(!this.isContextual("type")||this.lookahead().type!==u.star)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const t=this.state.start,n=super.maybeParseExportNamespaceSpecifier(e);return n&&"type"===e.exportKind&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);return 123===e&&124===t?this.finishOp(u.braceBarL,2):!this.state.inType||62!==e&&60!==e?function(e,t){return 64===e&&64===t}(e,t)?(this.state.isIterator=!0,super.readWord()):super.getTokenFromCode(e):this.finishOp(u.relational,1)}toAssignable(e,t,n){return"TypeCastExpression"===e.type?super.toAssignable(this.typeCastToParameter(e),t,n):super.toAssignable(e,t,n)}toAssignableList(e,t,n){for(let t=0;t1)&&t||this.raise(a.typeAnnotation.start,"The type cast expression is expected to be wrapped with parenthesis")}return e}checkLVal(e,t=N,n,a){if("TypeCastExpression"!==e.type)return super.checkLVal(e,t,n,a)}parseClassProperty(e){return this.match(u.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(u.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(u.colon)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(u.colon)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,a,r,i){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration(!1)),super.pushClassMethod(e,t,n,a,r,i)}pushClassPrivateMethod(e,t,n,a){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,a)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(u.comma))}}parsePropertyName(e){const t=this.flowParseVariance(),n=super.parsePropertyName(e);return e.variance=t,n}parseObjPropValue(e,t,n,a,r,i,o,s){let d;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&(d=this.flowParseTypeParameterDeclaration(!1),this.match(u.parenL)||this.unexpected()),super.parseObjPropValue(e,t,n,a,r,i,o,s),d&&((e.value||e).typeParameters=d)}parseAssignableListItemTypes(e){if(this.eat(u.question)){if("Identifier"!==e.type)throw this.raise(e.start,"A binding pattern parameter cannot be optional in an implementation signature.");e.optional=!0}return this.match(u.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(e),e}parseMaybeDefault(e,t,n){const a=super.parseMaybeDefault(e,t,n);return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.startsuper.parseMaybeAssign(e,t,n,a))).typeParameters=o,this.resetStartLocationFromNode(i,o)}catch(e){throw r||e}if("ArrowFunctionExpression"===i.type)return i;if(null!=r)throw r;this.raise(o.start,"Expected an arrow function after this type parameter declaration")}return super.parseMaybeAssign(e,t,n,a)}parseArrow(e){if(this.match(u.colon)){const t=this.state.clone();try{const n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const a=this.startNode();[a.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(u.arrow)||this.unexpected(),e.returnType=a.typeAnnotation?this.finishNode(a,"TypeAnnotation"):null}catch(e){if(!(e instanceof SyntaxError))throw e;this.state=t}}return super.parseArrow(e)}shouldParseArrow(){return this.match(u.colon)||super.shouldParseArrow()}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n){if(!n||-1===this.state.noArrowParamsConversionAt.indexOf(e.start))return super.checkParams(e,t,n)}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,n,a){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t)){this.next();const a=this.startNodeAt(t,n);a.callee=e,a.arguments=this.parseCallExpressionArguments(u.parenR,!1),e=this.finishNode(a,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.isRelational("<")){const r=this.state.clone();let i;try{const e=this.parseAsyncArrowWithTypeParameters(t,n);if(e)return e}catch(e){i=e}this.state=r;try{return super.parseSubscripts(e,t,n,a)}catch(e){throw i||e}}return super.parseSubscripts(e,t,n,a)}parseSubscript(e,t,n,a,r,i){if(this.match(u.questionDot)&&this.isLookaheadRelational("<")){if(this.expectPlugin("optionalChaining"),r.optionalChainMember=!0,a)return r.stop=!0,e;this.next();const i=this.startNodeAt(t,n);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(u.parenL),i.arguments=this.parseCallExpressionArguments(u.parenR,!1),i.optional=!0,this.finishNode(i,"OptionalCallExpression")}if(!a&&this.shouldParseTypes()&&this.isRelational("<")){const a=this.startNodeAt(t,n);a.callee=e;const i=this.state.clone();try{return a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(u.parenL),a.arguments=this.parseCallExpressionArguments(u.parenR,!1),r.optionalChainMember?(a.optional=!1,this.finishNode(a,"OptionalCallExpression")):this.finishNode(a,"CallExpression")}catch(e){if(!(e instanceof SyntaxError))throw e;this.state=i}}return super.parseSubscript(e,t,n,a,r,i)}parseNewArguments(e){let t=null;if(this.shouldParseTypes()&&this.isRelational("<")){const e=this.state.clone();try{t=this.flowParseTypeParameterInstantiationCallOrNew()}catch(t){if(!(t instanceof SyntaxError))throw t;this.state=e}}e.typeArguments=t,super.parseNewArguments(e)}parseAsyncArrowWithTypeParameters(e,t){const n=this.startNodeAt(e,t);if(this.parseFunctionParams(n),this.parseArrow(n))return this.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(u.braceBarR,2)}parseTopLevel(e,t){const n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.unexpected(null,"Unterminated flow-comment"),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,"Cannot have a flow comment inside another flow comment"),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(this.state.hasFlowComment){const e=this.input.indexOf("*-/",this.state.pos+=2);return-1===e&&this.raise(this.state.pos-2,"Unterminated comment"),void(this.state.pos=e+3)}super.skipBlockComment()}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const n=this.input.charCodeAt(t+e),a=this.input.charCodeAt(t+e+1);return 58===n&&58===a?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===n&&58!==a&&t}hasFlowCommentCompletion(){-1===this.input.indexOf("*/",this.state.pos)&&this.raise(this.state.pos,"Unterminated comment")}}),typescript:e=>(class extends e{getScopeHandler(){return De}tsIsIdentifier(){return this.match(u.name)}tsNextTokenCanFollowModifier(){return this.next(),!(this.hasPrecedingLineBreak()||this.match(u.parenL)||this.match(u.parenR)||this.match(u.colon)||this.match(u.eq)||this.match(u.question)||this.match(u.bang))}tsParseModifier(e){if(!this.match(u.name))return;const t=this.state.value;return-1!==e.indexOf(t)&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?t:void 0}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(u.braceR);case"HeritageClauseElement":return this.match(u.braceL);case"TupleElementTypes":return this.match(u.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t){return we(this.tsParseDelimitedListWorker(e,t,!0))}tsTryParseDelimitedList(e,t){return this.tsParseDelimitedListWorker(e,t,!1)}tsParseDelimitedListWorker(e,t,n){const a=[];for(;!this.tsIsListTerminator(e);){const r=t();if(null==r)return;if(a.push(r),!this.eat(u.comma)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(u.comma))}}return a}tsParseBracketedList(e,t,n,a){a||(n?this.expect(u.bracketL):this.expectRelational("<"));const r=this.tsParseDelimitedList(e,t);return n?this.expect(u.bracketR):this.expectRelational(">"),r}tsParseImportType(){const e=this.startNode();if(this.expect(u._import),this.expect(u.parenL),!this.match(u.string))throw this.unexpected(null,"Argument in a type import must be a string literal");return e.argument=this.parseExprAtom(),this.expect(u.parenR),this.eat(u.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e){let t=this.parseIdentifier();for(;this.eat(u.dot);){const n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(u._typeof),this.match(u._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(u._extends),e.default=this.tsEatThenParseType(u.eq),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){const e=this.startNode();return this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),this.finishNode(e,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===u._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(e,t){const n=e===u.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(u.parenL),t.parameters=this.tsParseBindingListForSignature(),n?t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return this.parseBindingList(u.parenR).map(e=>{if("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type)throw this.unexpected(e.start,`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e.type}`);return e})}tsParseTypeMemberSemicolon(){this.eat(u.comma)||this.semicolon()}tsParseSignatureMember(e,t){return this.tsFillSignature(u.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(u.name)&&this.match(u.colon)}tsTryParseIndexSignature(e){if(!this.match(u.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(u.bracketL);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(u.bracketR),e.parameters=[t];const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(u.question)&&(e.optional=!0);const n=e;if(t||!this.match(u.parenL)&&!this.isRelational("<")){const e=n;t&&(e.readonly=!0);const a=this.tsTryParseTypeAnnotation();return a&&(e.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}{const e=n;return this.tsFillSignature(u.colon,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSMethodSignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(u.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(u._new)){const t=this.startNode();return this.next(),this.match(u.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}const t=!!this.tsParseModifier(["readonly"]),n=this.tsTryParseIndexSignature(e);return n?(t&&(e.readonly=!0),n):(this.parsePropertyName(e),this.tsParsePropertyOrMethodSignature(e,t))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(u.braceL);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(u.braceR),e}tsIsStartOfMappedType(){return this.next(),this.eat(u.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(u.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(u._in))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(u._in),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(u.braceL),this.match(u.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(u.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),this.expect(u.bracketR),this.match(u.plusMin)?(e.optional=this.state.value,this.next(),this.expect(u.question)):this.eat(u.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(u.braceR),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{"TSOptionalType"===e.type?t=!0:t&&"TSRestType"!==e.type&&this.raise(e.start,"A required element cannot follow an optional element.")}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){if(this.match(u.ellipsis)){const e=this.startNode();return this.next(),e.typeAnnotation=this.tsParseType(),this.checkCommaAfterRest(),this.finishNode(e,"TSRestType")}const e=this.tsParseType();if(this.eat(u.question)){const t=this.startNodeAtNode(e);return t.typeAnnotation=e,this.finishNode(t,"TSOptionalType")}return e}tsParseParenthesizedType(){const e=this.startNode();return this.expect(u.parenL),e.typeAnnotation=this.tsParseType(),this.expect(u.parenR),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e){const t=this.startNode();return"TSConstructorType"===e&&this.expect(u._new),this.tsFillSignature(u.arrow,t),this.finishNode(t,e)}tsParseLiteralTypeNode(){const e=this.startNode();return e.literal=(()=>{switch(this.state.type){case u.num:case u.string:case u._true:case u._false:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode(),t=this.parseTemplate(!1);if(t.expressions.length>0)throw this.raise(t.expressions[0].start,"Template literal types cannot have any substitution");return e.literal=t,this.finishNode(e,"TSLiteralType")}tsParseNonArrayType(){switch(this.state.type){case u.name:case u._void:case u._null:{const e=this.match(u._void)?"TSVoidKeyword":this.match(u._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&&this.lookahead().type!==u.dot){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}case u.string:case u.num:case u._true:case u._false:return this.tsParseLiteralTypeNode();case u.plusMin:if("-"===this.state.value){const e=this.startNode();if(this.lookahead().type!==u.num)throw this.unexpected();return e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case u._this:{const e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}case u._typeof:return this.tsParseTypeQuery();case u._import:return this.tsParseImportType();case u.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case u.bracketL:return this.tsParseTupleType();case u.parenL:return this.tsParseParenthesizedType();case u.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(u.bracketL);)if(this.match(u.bracketR)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(u.bracketR),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(u.bracketR),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(e){const t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,"'readonly' type modifier is only permitted on array and tuple literal types.")}}tsParseInferType(){const e=this.startNode();this.expectContextual("infer");const t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseTypeOperatorOrHigher(){const e=["keyof","unique","readonly"].find(e=>this.isContextual(e));return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(e,t,n){this.eat(n);let a=t();if(this.match(n)){const r=[a];for(;this.eat(n);)r.push(t());const i=this.startNodeAtNode(a);i.types=r,a=this.finishNode(i,e)}return a}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),u.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),u.bitwiseOR)}tsIsStartOfFunctionType(){return!!this.isRelational("<")||this.match(u.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(u.name)||this.match(u._this))return this.next(),!0;if(this.match(u.braceL)){let e=1;for(this.next();e>0;)this.match(u.braceL)?++e:this.match(u.braceR)&&--e,this.next();return!0}if(this.match(u.bracketL)){let e=1;for(this.next();e>0;)this.match(u.bracketL)?++e:this.match(u.bracketR)&&--e,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(u.parenR)||this.match(u.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(u.colon)||this.match(u.comma)||this.match(u.question)||this.match(u.eq))return!0;if(this.match(u.parenR)&&(this.next(),this.match(u.arrow)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const t=this.startNode();this.expect(e);const n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return this.tsParseTypeAnnotation(!1,t);const a=this.tsParseTypeAnnotation(!1),r=this.startNodeAtNode(n);return r.parameterName=n,r.typeAnnotation=a,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(u.colon)?this.tsParseTypeOrTypePredicateAnnotation(u.colon):void 0}tsTryParseTypeAnnotation(){return this.match(u.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(u.colon)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(u.colon),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){Ae(this.state.inType);const e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(u._extends))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(u.question),t.trueType=this.tsParseType(),this.expect(u.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(u._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){const e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.start,n=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return n.length||this.raise(t,`'${e}' list cannot be empty.`),n}tsParseExpressionWithTypeArguments(){const e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(e){e.id=this.parseIdentifier(),this.checkLVal(e.id,j,void 0,"typescript interface declaration"),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(u._extends)&&(e.extends=this.tsParseHeritageClause("extends"));const t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkLVal(e.id,M,void 0,"typescript type alias"),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsExpectThenParseType(u.eq),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType(()=>this.expect(e))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(e){return this.tsInType(()=>(e(),this.tsParseType()))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(u.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(u.eq)&&(e.initializer=this.parseMaybeAssign()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,t?V:I,void 0,"typescript enum declaration"),this.expect(u.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(u.braceR),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(d),this.expect(u.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,u.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkLVal(e.id,z,null,"module or namespace declaration"),this.eat(u.dot)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else e.body=this.tsParseModuleBlock();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(u.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(u.braceL)?e.body=this.tsParseModuleBlock():this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){return e.isExport=t||!1,e.id=this.parseIdentifier(),this.expect(u.eq),e.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookahead().type===u.parenL}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();if(this.expectContextual("require"),this.expect(u.parenL),!this.match(u.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(u.parenR),this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){const t=this.state.clone();try{return e()}catch(e){if(e instanceof SyntaxError)return void(this.state=t);throw e}}tsTryParse(e){const t=this.state.clone(),n=e();return void 0!==n&&!1!==n?n:void(this.state=t)}nodeWithSamePosition(e,t){const n=this.startNodeAtNode(e);return n.type=t,n.end=e.end,n.loc.end=e.loc.end,e.leadingComments&&(n.leadingComments=e.leadingComments),e.trailingComments&&(n.trailingComments=e.trailingComments),e.innerComments&&(n.innerComments=e.innerComments),n}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,n=this.state.type;switch(this.isContextual("let")&&(n=u._var,t="let"),n){case u._function:return this.parseFunctionStatement(e,!1,!0);case u._class:return this.parseClass(e,!0,!1);case u._const:if(this.match(u._const)&&this.isLookaheadContextual("enum"))return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case u._var:return t=t||this.state.value,this.parseVarStatement(e,t);case u.name:{const t=this.state.value;return"global"===t?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,t,!0)}}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(e,t){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(u.braceL)){const n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}}tsParseDeclaration(e,t,n){switch(t){case"abstract":if(this.tsCheckLineTerminatorAndMatch(u._class,n)){const t=e;return t.abstract=!0,n&&(this.next(),this.match(u._class)||this.unexpected(null,u._class)),this.parseClass(t,!0,!1)}break;case"enum":if(n||this.match(u.name))return n&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(u.name,n))return n&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(n&&this.next(),this.match(u.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.tsCheckLineTerminatorAndMatch(u.name,n))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(u.name,n))return n&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminatorAndMatch(u.name,n))return n&&this.next(),this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminatorAndMatch(e,t){return(t||this.match(e))&&!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e,t){if(!this.isRelational("<"))return;const n=this.tsTryParseAndCatch(()=>{const n=this.startNodeAt(e,t);return n.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(u.arrow),n});return n?this.parseArrowExpression(n,null,!0):void 0}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expectRelational("<"),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(u.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const n=this.state.start,a=this.state.startLoc;let r,i=!1;e&&(r=this.parseAccessModifier(),i=!!this.tsParseModifier(["readonly"]));const o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o);const s=this.parseMaybeDefault(o.start,o.loc.start,o);if(r||i){const e=this.startNodeAt(n,a);if(t.length&&(e.decorators=t),r&&(e.accessibility=r),i&&(e.readonly=i),"Identifier"!==s.type&&"AssignmentPattern"!==s.type)throw this.raise(e.start,"A parameter property may not be declared using a binding pattern.");return e.parameter=s,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),s}parseFunctionBodyAndFinish(e,t,n=!1){this.match(u.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(u.colon));const a="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t?"TSDeclareMethod":void 0;a&&!this.match(u.braceL)&&this.isLineTerminator()?this.finishNode(e,a):super.parseFunctionBodyAndFinish(e,t,n)}checkFunctionStatementId(e){!e.body&&e.id?this.checkLVal(e.id,B,null,"function name"):super.checkFunctionStatementId(...arguments)}parseSubscript(e,t,n,a,r,i){if(!this.hasPrecedingLineBreak()&&this.match(u.bang)){this.state.exprAllowed=!1,this.next();const a=this.startNodeAt(t,n);return a.expression=e,this.finishNode(a,"TSNonNullExpression")}if(this.isRelational("<")){const i=this.tsTryParseAndCatch(()=>{if(!a&&this.atPossibleAsync(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t,n);if(e)return e}const i=this.startNodeAt(t,n);i.callee=e;const o=this.tsParseTypeArguments();if(o){if(!a&&this.eat(u.parenL))return i.arguments=this.parseCallExpressionArguments(u.parenR,!1),i.typeParameters=o,this.finishCallExpression(i);if(this.match(u.backQuote))return this.parseTaggedTemplateExpression(t,n,e,r,o)}this.unexpected()});if(i)return i}return super.parseSubscript(e,t,n,a,r,i)}parseNewArguments(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch(()=>{const e=this.tsParseTypeArguments();return this.match(u.parenL)||this.unexpected(),e});t&&(e.typeParameters=t)}super.parseNewArguments(e)}parseExprOp(e,t,n,a,r){if(we(u._in.binop)>a&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const i=this.startNodeAt(t,n);i.expression=e;const o=this.tsTryNextParseConstantContext();return i.typeAnnotation=o||this.tsNextThenParseType(),this.finishNode(i,"TSAsExpression"),this.parseExprOp(i,t,n,a,r)}return super.parseExprOp(e,t,n,a,r)}checkReservedWord(e,t,n,a){}checkDuplicateExports(){}parseImport(e){return this.match(u.name)&&this.lookahead().type===u.eq?this.tsParseImportEqualsDeclaration(e):super.parseImport(e)}parseExport(e){if(this.match(u._import))return this.expect(u._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(u.eq)){const t=e;return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}if(this.eatContextual("as")){const t=e;return this.expectContextual("namespace"),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===u._class}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),this.parseClass(e,!0,!0),e.abstract=!0,e}if("interface"===this.state.value){const e=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(e)return e}return super.parseExportDefaultExpression()}parseStatementContent(e,t){if(this.state.type===u._const){const e=this.lookahead();if(e.type===u.name&&"enum"===e.value){const e=this.startNode();return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parseClassMember(e,t,n,a){const r=this.parseAccessModifier();r&&(t.accessibility=r),super.parseClassMember(e,t,n,a)}parseClassMemberWithIsStatic(e,t,n,a,r){const i=t,o=t,s=t;let u=!1,d=!1;switch(this.tsParseModifier(["abstract","readonly"])){case"readonly":d=!0,u=!!this.tsParseModifier(["abstract"]);break;case"abstract":u=!0,d=!!this.tsParseModifier(["readonly"])}if(u&&(i.abstract=!0),d&&(s.readonly=!0),!u&&!a&&!i.accessibility){const n=this.tsTryParseIndexSignature(t);if(n)return void e.body.push(n)}if(d)return i.static=a,this.parseClassPropertyName(o),this.parsePostMemberNameModifiers(i),void this.pushClassProperty(e,o);super.parseClassMemberWithIsStatic(e,t,n,a,r)}parsePostMemberNameModifiers(e){this.eat(u.question)&&(e.optional=!0)}parseExpressionStatement(e,t){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t):void 0)||super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,n,a,r){if(!r||!this.match(u.question))return super.parseConditional(e,t,n,a,r);const i=this.state.clone();try{return super.parseConditional(e,t,n,a)}catch(t){if(!(t instanceof SyntaxError))throw t;return this.state=i,r.start=t.pos||this.state.start,e}}parseParenItem(e,t,n){if(e=super.parseParenItem(e,t,n),this.eat(u.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(u.colon)){const a=this.startNodeAt(t,n);return a.expression=e,a.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(a,"TSTypeCastExpression")}return e}parseExportDeclaration(e){const t=this.state.start,n=this.state.startLoc,a=this.eatContextual("declare");let r;return this.match(u.name)&&(r=this.tsTryParseExportDeclaration()),r||(r=super.parseExportDeclaration(e)),r&&a&&(this.resetStartLocation(r,t,n),r.declare=!0),r}parseClassId(e,t,n){if((!t||n)&&this.isContextual("implements"))return;super.parseClassId(...arguments);const a=this.tsTryParseTypeParameters();a&&(e.typeParameters=a)}parseClassProperty(e){!e.optional&&this.eat(u.bang)&&(e.definite=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),super.parseClassProperty(e)}pushClassMethod(e,t,n,a,r,i){const o=this.tsTryParseTypeParameters();o&&(t.typeParameters=o),super.pushClassMethod(e,t,n,a,r,i)}pushClassPrivateMethod(e,t,n,a){const r=this.tsTryParseTypeParameters();r&&(t.typeParameters=r),super.pushClassPrivateMethod(e,t,n,a)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,...t){const n=this.tsTryParseTypeParameters();n&&(e.typeParameters=n),super.parseObjPropValue(e,...t)}parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters();n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&this.eat(u.bang)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(u.colon)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(...e){let t,n,a;if(this.match(u.jsxTagStart)){Ae(this.curContext()===X.j_oTag),Ae(this.state.context[this.state.context.length-2]===X.j_expr);const n=this.state.clone();try{return super.parseMaybeAssign(...e)}catch(e){if(!(e instanceof SyntaxError))throw e;this.state=n,Ae(this.curContext()===X.j_oTag),this.state.context.pop(),Ae(this.curContext()===X.j_expr),this.state.context.pop(),t=e}}if(void 0===t&&!this.isRelational("<"))return super.parseMaybeAssign(...e);const r=this.state.clone();try{a=this.tsParseTypeParameters(),("ArrowFunctionExpression"!==(n=super.parseMaybeAssign(...e)).type||n.extra&&n.extra.parenthesized)&&this.unexpected()}catch(n){if(!(n instanceof SyntaxError))throw n;if(t)throw t;return Ae(!this.hasPlugin("jsx")),this.state=r,super.parseMaybeAssign(...e)}return a&&0!==a.params.length&&this.resetStartLocationFromNode(n,a),n.typeParameters=a,n}parseMaybeUnary(e){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(e)}parseArrow(e){if(this.match(u.colon)){const t=this.state.clone();try{const n=this.tsParseTypeOrTypePredicateAnnotation(u.colon);if(this.canInsertSemicolon()||!this.match(u.arrow))return void(this.state=t);e.returnType=n}catch(e){if(!(e instanceof SyntaxError))throw e;this.state=t}}return super.parseArrow(e)}parseAssignableListItemTypes(e){if(this.eat(u.question)){if("Identifier"!==e.type)throw this.raise(e.start,"A binding pattern parameter cannot be optional in an implementation signature.");e.optional=!0}const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}toAssignable(e,t,n){switch(e.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(e),t,n);case"TSParameterProperty":return super.toAssignable(e,t,n);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return e.expression=this.toAssignable(e.expression,t,n),e;default:return super.toAssignable(e,t,n)}}checkLVal(e,t=N,n,a){switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(e.parameter,t,n,"parameter property");case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(e.expression,t,n,a);default:return void super.checkLVal(e,t,n,a)}}parseBindingAtom(){switch(this.state.type){case u._this:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(e){if(this.isRelational("<")){const t=this.tsParseTypeArguments();if(this.match(u.parenL)){const n=super.parseMaybeDecoratorArguments(e);return n.typeParameters=t,n}this.unexpected(this.state.start,u.parenL)}return super.parseMaybeDecoratorArguments(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(u.bang)||this.match(u.colon)||super.isClassProperty()}parseMaybeDefault(...e){const t=super.parseMaybeDefault(...e);return"AssignmentPattern"===t.type&&t.typeAnnotation&&t.right.startthis.tsParseTypeArguments());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),n=e.params[0];return n&&"Identifier"===n.type&&"this"===n.name?t+1:t}}),placeholders:e=>(class extends e{parsePlaceholder(e){if(this.match(u.placeholder)){const t=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),t.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(u.placeholder),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const n=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,n?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){return 37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.placeholder,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(e){void 0!==e&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(e){"Placeholder"!==e.type&&super.checkLVal(...arguments)}toAssignable(e){return e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?(e.expectedNode="Pattern",e):super.toAssignable(...arguments)}verifyBreakContinue(e){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(...arguments)}parseExpressionStatement(e,t){if("Placeholder"!==t.type||t.extra&&t.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(u.colon)){const n=e;return n.label=this.finishPlaceholder(t,"Identifier"),this.next(),n.body=this.parseStatement("label"),this.finishNode(n,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(e,t,n){const a=t?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(e);const r=this.parsePlaceholder("Identifier");if(r)if(this.match(u._extends)||this.match(u.placeholder)||this.match(u.braceL))e.id=r;else{if(n||!t)return e.id=null,e.body=this.finishPlaceholder(r,"ClassBody"),this.finishNode(e,a);this.unexpected(null,"A class name is required")}else this.parseClassId(e,t,n);return this.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass),this.finishNode(e,a)}parseExport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(u.comma))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(t,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const n=this.startNode();return n.exported=t,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(e)}maybeParseExportDefaultSpecifier(e){return!!(e.specifiers&&e.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(e){const{specifiers:t}=e;t&&t.length&&(e.specifiers=t.filter(e=>"Placeholder"===e.exported.type)),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(...arguments);if(e.specifiers=[],!this.isContextual("from")&&!this.match(u.comma))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const n=this.startNodeAtNode(t);return n.local=t,this.finishNode(n,"ImportDefaultSpecifier"),e.specifiers.push(n),this.eat(u.comma)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual("from"),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}})},Oe=Object.keys(ke),Fe={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1};class je{constructor(e,t){this.line=e,this.column=t}}class Me{constructor(e,t){this.start=e,this.end=t}}class Ie{constructor(){this.sawUnambiguousESM=!1}hasPlugin(e){return this.plugins.has(e)}getPluginOption(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]}}function Be(e){return e[e.length-1]}class Ne extends Ie{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)}processComment(e){if("Program"===e.type&&e.body.length>0)return;const t=this.state.commentStack;let n,a,r,i,o;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(r=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(t.length>0){const n=Be(t);n.trailingComments&&n.trailingComments[0].start>=e.end&&(r=n.trailingComments,delete n.trailingComments)}for(t.length>0&&Be(t).start>=e.start&&(n=t.pop());t.length>0&&Be(t).start>=e.start;)a=t.pop();if(!a&&n&&(a=n),n&&this.state.leadingComments.length>0){const t=Be(this.state.leadingComments);if("ObjectProperty"===n.type){if(t.start>=e.start&&this.state.commentPreviousNode){for(o=0;o0&&(n.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===e.type&&e.arguments&&e.arguments.length){const n=Be(e.arguments);if(n&&t.start>=n.start&&t.end<=e.end&&this.state.commentPreviousNode){for(o=0;o0&&(n.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}}if(a){if(a.leadingComments)if(a!==e&&a.leadingComments.length>0&&Be(a.leadingComments).end<=e.start)e.leadingComments=a.leadingComments,delete a.leadingComments;else for(i=a.leadingComments.length-2;i>=0;--i)if(a.leadingComments[i].end<=e.start){e.leadingComments=a.leadingComments.splice(0,i+1);break}}else if(this.state.leadingComments.length>0)if(Be(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(o=0;o0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(i=0;ie.start);i++);const t=this.state.leadingComments.slice(0,i);t.length&&(e.leadingComments=t),0===(r=this.state.leadingComments.slice(i)).length&&(r=null)}this.state.commentPreviousNode=e,r&&(r.length&&r[0].start>=e.start&&Be(r).end<=e.end?e.innerComments=r:e.trailingComments=r),t.push(e)}}class Le extends Ne{getLocationForPosition(e){let t;return t=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){let n,a=1,r=0;for($.lastIndex=0;(n=$.exec(e))&&n.index=48&&e<=57};const Ue=new Set(["g","m","s","i","y","u"]),He={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},$e={bin:[48,49]};$e.oct=[...$e.bin,50,51,52,53,54,55],$e.dec=[...$e.oct,56,57],$e.hex=[...$e.dec,65,66,67,68,69,70,97,98,99,100,101,102];class We{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new Me(e.startLoc,e.endLoc)}}class Ge extends Le{constructor(e,t){super(),this.state=new Ve,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}next(){this.options.tokens&&!this.isLookahead&&this.state.tokens.push(new We(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()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}lookahead(){const e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;const t=this.state;return this.state=e,t}setStrict(e){if(this.state.strict=e,this.match(u.num)||this.match(u.string)){for(this.state.pos=this.state.start;this.state.pos=this.length?this.finishToken(u.eof):e.override?e.override(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}pushComment(e,t,n,a,r,i){const o={type:e?"CommentBlock":"CommentLine",value:t,start:n,end:a,loc:new Me(r,i)};this.options.tokens&&this.state.tokens.push(o),this.state.comments.push(o),this.addComment(o)}skipBlockComment(){const e=this.state.curPosition(),t=this.state.pos,n=this.input.indexOf("*/",this.state.pos+=2);let a;for(-1===n&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=n+2,$.lastIndex=t;(a=$.exec(this.input))&&a.index=48&&t<=57&&this.raise(this.state.pos,"Unexpected digit after hash token"),(this.hasPlugin("classPrivateProperties")||this.hasPlugin("classPrivateMethods"))&&this.state.classLevel>0)return++this.state.pos,void this.finishToken(u.hash);"smart"===this.getPluginOption("pipelineOperator","proposal")?this.finishOp(u.hash,1):this.raise(this.state.pos,"Unexpected character '#'")}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57)return void this.readNumber(!0);const t=this.input.charCodeAt(this.state.pos+2);46===e&&46===t?(this.state.pos+=3,this.finishToken(u.ellipsis)):(++this.state.pos,this.finishToken(u.dot))}readToken_slash(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.assign,2):this.finishOp(u.slash,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;const e=this.state.pos;this.state.pos+=1;let t=this.input.charCodeAt(this.state.pos);if(33!==t)return!1;for(;10!==t&&13!==t&&8232!==t&&8233!==t&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(u.question)):(this.state.pos+=2,this.finishToken(u.questionDot)):61===t?this.finishOp(u.assign,3):this.finishOp(u.nullishCoalescing,2)}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(u.parenL);case 41:return++this.state.pos,void this.finishToken(u.parenR);case 59:return++this.state.pos,void this.finishToken(u.semi);case 44:return++this.state.pos,void this.finishToken(u.comma);case 91:return++this.state.pos,void this.finishToken(u.bracketL);case 93:return++this.state.pos,void this.finishToken(u.bracketR);case 123:return++this.state.pos,void this.finishToken(u.braceL);case 125:return++this.state.pos,void this.finishToken(u.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.doubleColon,2):(++this.state.pos,this.finishToken(u.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(u.backQuote);case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)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(u.tilde,1);case 64:return++this.state.pos,void this.finishToken(u.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(le(e))return void this.readWord()}this.raise(this.state.pos,`Unexpected character '${String.fromCodePoint(e)}'`)}finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){const e=this.state.pos;let t,n;for(;;){this.state.pos>=this.length&&this.raise(e,"Unterminated regular expression");const a=this.input.charAt(this.state.pos);if(H.test(a)&&this.raise(e,"Unterminated regular expression"),t)t=!1;else{if("["===a)n=!0;else if("]"===a&&n)n=!1;else if("/"===a&&!n)break;t="\\"===a}++this.state.pos}const a=this.input.slice(e,this.state.pos);++this.state.pos;let r="";for(;this.state.pos-1&&this.raise(this.state.pos+1,"Duplicate regular expression flag"),++this.state.pos,r+=e;else{if(!ce(t)&&92!==t)break;this.raise(this.state.pos+1,"Invalid regular expression flag")}}this.finishToken(u.regexp,{pattern:a,flags:r})}readInt(e,t){const n=this.state.pos,a=16===e?He.hex:He.decBinOct,r=16===e?$e.hex:10===e?$e.dec:8===e?$e.oct:$e.bin;let i=0;for(let n=0,o=null==t?1/0:t;n-1||a.indexOf(n)>-1||Number.isNaN(n))&&this.raise(this.state.pos,"Invalid or unexpected token"),++this.state.pos;continue}}if((n=t>=97?t-97+10:t>=65?t-65+10:ze(t)?t-48:1/0)>=e)break;++this.state.pos,i=i*e+n}return this.state.pos===n||null!=t&&this.state.pos-n!==t?null:i}readRadixNumber(e){const t=this.state.pos;let n=!1;this.state.pos+=2;const a=this.readInt(e);if(null==a&&this.raise(this.state.start+2,"Expected number in radix "+e),this.hasPlugin("bigInt")&&110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,n=!0),le(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number"),n){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(u.bigint,e)}else this.finishToken(u.num,a)}readNumber(e){const t=this.state.pos;let n=!1,a=!1;e||null!==this.readInt(10)||this.raise(t,"Invalid number");let r=this.state.pos-t>=2&&48===this.input.charCodeAt(t);r&&(this.state.strict&&this.raise(t,"Legacy octal literals are not allowed in strict mode"),/[89]/.test(this.input.slice(t,this.state.pos))&&(r=!1));let i=this.input.charCodeAt(this.state.pos);46!==i||r||(++this.state.pos,this.readInt(10),n=!0,i=this.input.charCodeAt(this.state.pos)),69!==i&&101!==i||r||(43!==(i=this.input.charCodeAt(++this.state.pos))&&45!==i||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),n=!0,i=this.input.charCodeAt(this.state.pos)),this.hasPlugin("bigInt")&&110===i&&((n||r)&&this.raise(t,"Invalid BigIntLiteral"),++this.state.pos,a=!0),le(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number");const o=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");if(a)return void this.finishToken(u.bigint,o);const s=r?parseInt(o,8):parseFloat(o);this.finishToken(u.num,s)}readCodePoint(e){let t;if(123===this.input.charCodeAt(this.state.pos)){const n=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,e),++this.state.pos,null===t)--this.state.invalidTemplateEscapePosition;else if(t>1114111){if(!e)return this.state.invalidTemplateEscapePosition=n-2,null;this.raise(n,"Code point out of bounds")}}else t=this.readHexChar(4,e);return t}readString(e){let t="",n=++this.state.pos;for(;;){this.state.pos>=this.length&&this.raise(this.state.start,"Unterminated string constant");const a=this.input.charCodeAt(this.state.pos);if(a===e)break;92===a?(t+=this.input.slice(n,this.state.pos),t+=this.readEscapedChar(!1),n=this.state.pos):8232===a||8233===a?(++this.state.pos,++this.state.curLine):W(a)?this.raise(this.state.start,"Unterminated string constant"):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(u.string,t)}readTmplToken(){let e="",t=this.state.pos,n=!1;for(;;){this.state.pos>=this.length&&this.raise(this.state.start,"Unterminated template");const a=this.input.charCodeAt(this.state.pos);if(96===a||36===a&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(u.template)?36===a?(this.state.pos+=2,void this.finishToken(u.dollarBraceL)):(++this.state.pos,void this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(u.template,n?null:e));if(92===a){e+=this.input.slice(t,this.state.pos);const a=this.readEscapedChar(!0);null===a?n=!0:e+=a,t=this.state.pos}else if(W(a)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,a){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(a)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}}readEscapedChar(e){const t=!e,n=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,n){case 110:return"\n";case 114:return"\r";case 120:{const e=this.readHexChar(2,t);return null===e?null:String.fromCharCode(e)}case 117:{const e=this.readCodePoint(t);return null===e?null:String.fromCodePoint(e)}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"";default:if(n>=48&&n<=55){const t=this.state.pos-1;let n=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],a=parseInt(n,8);a>255&&(n=n.slice(0,-1),a=parseInt(n,8)),this.state.pos+=n.length-1;const r=this.input.charCodeAt(this.state.pos);if("0"!==n||56===r||57===r){if(e)return this.state.invalidTemplateEscapePosition=t,null;this.state.strict?this.raise(t,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=t)}return String.fromCharCode(a)}return String.fromCharCode(n)}}readHexChar(e,t){const n=this.state.pos,a=this.readInt(16,e);return null===a&&(t?this.raise(n,"Bad character escape sequence"):(this.state.pos=n-1,this.state.invalidTemplateEscapePosition=n-1)),a}readWord1(){let e="";this.state.containsEsc=!1;const t=this.state.pos;let n=this.state.pos;for(;this.state.posthis.state.lastTokEnd&&this.raise(this.state.lastTokEnd,e)}unexpected(e,t="Unexpected token"){throw"string"!=typeof t&&(t=`Unexpected token, expected "${t.label}"`),this.raise(null!=e?e:this.state.start,t)}expectPlugin(e,t){if(!this.hasPlugin(e))throw this.raise(null!=t?t:this.state.start,`This experimental syntax requires enabling the parser plugin: '${e}'`,{missingPluginNames:[e]});return!0}expectOnePlugin(e,t){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(null!=t?t:this.state.start,`This experimental syntax requires enabling one of the following parser plugin(s): '${e.join(", ")}'`,{missingPluginNames:e})}checkYieldAwaitInDefaultParams(){this.state.yieldPos&&(!this.state.awaitPos||this.state.yieldPos-1&&this.raiseRestNotLast(this.state.commaAfterSpreadAt)}raiseRestNotLast(e){this.raise(e,"Rest element must be last element")}}const Qe=e=>"ParenthesizedExpression"===e.type?Qe(e.expression):e;class Ze extends Ye{checkPropClash(e,t){if("SpreadElement"===e.type||e.computed||e.kind||e.shorthand)return;const n=e.key;"__proto__"===("Identifier"===n.type?n.name:String(n.value))&&(t.proto&&this.raise(n.start,"Redefinition of __proto__ property"),t.proto=!0)}getExpression(){this.scope.enter(l),this.nextToken();const e=this.parseExpression();return this.match(u.eof)||this.unexpected(),e.comments=this.state.comments,e}parseExpression(e,t){const n=this.state.start,a=this.state.startLoc,r=this.parseMaybeAssign(e,t);if(this.match(u.comma)){const i=this.startNodeAt(n,a);for(i.expressions=[r];this.eat(u.comma);)i.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return r}parseMaybeAssign(e,t,n,a){const r=this.state.start,i=this.state.startLoc;if(this.isContextual("yield")){if(this.scope.inGenerator){let t=this.parseYield(e);return n&&(t=n.call(this,t,r,i)),t}this.state.exprAllowed=!1}const o=this.state.commaAfterSpreadAt;let s;this.state.commaAfterSpreadAt=-1,t?s=!1:(t={start:0},s=!0),(this.match(u.parenL)||this.match(u.name))&&(this.state.potentialArrowAt=this.state.start);let d=this.parseMaybeConditional(e,t,a);if(n&&(d=n.call(this,d,r,i)),this.state.type.isAssign){const n=this.startNodeAt(r,i),a=this.state.value;n.operator=a,"??="===a&&(this.expectPlugin("nullishCoalescingOperator"),this.expectPlugin("logicalAssignment")),"||="!==a&&"&&="!==a||this.expectPlugin("logicalAssignment"),n.left=this.match(u.eq)?this.toAssignable(d,void 0,"assignment expression"):d,t.start=0,this.checkLVal(d,void 0,void 0,"assignment expression");const s=Qe(d);let l;return"ObjectPattern"===s.type?l="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===s.type&&(l="`([a]) = 0` use `([a] = 0)`"),l&&(d.extra&&d.extra.parenthesized||"ParenthesizedExpression"===d.type)&&this.raise(s.start,`You're trying to assign to a parenthesized expression, eg. instead of ${l}`),l&&this.checkCommaAfterRestFromSpread(),this.state.commaAfterSpreadAt=o,this.next(),n.right=this.parseMaybeAssign(e),this.finishNode(n,"AssignmentExpression")}return s&&t.start&&this.unexpected(t.start),this.state.commaAfterSpreadAt=o,d}parseMaybeConditional(e,t,n){const a=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,o=this.parseExprOps(e,t);return"ArrowFunctionExpression"===o.type&&o.start===i?o:t&&t.start?o:this.parseConditional(o,e,a,r,n)}parseConditional(e,t,n,a,r){if(this.eat(u.question)){const r=this.startNodeAt(n,a);return r.test=e,r.consequent=this.parseMaybeAssign(),this.expect(u.colon),r.alternate=this.parseMaybeAssign(t),this.finishNode(r,"ConditionalExpression")}return e}parseExprOps(e,t){const n=this.state.start,a=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseMaybeUnary(t);return"ArrowFunctionExpression"===i.type&&i.start===r?i:t&&t.start?i:this.parseExprOp(i,n,a,-1,e)}parseExprOp(e,t,n,a,r){const i=this.state.type.binop;if(!(null==i||r&&this.match(u._in))&&i>a){const o=this.startNodeAt(t,n),s=this.state.value;o.left=e,o.operator=s,"**"!==s||"UnaryExpression"!==e.type||!this.options.createParenthesizedExpressions&&e.extra&&e.extra.parenthesized||this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");const d=this.state.type;if(d===u.pipeline?(this.expectPlugin("pipelineOperator"),this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)):d===u.nullishCoalescing&&this.expectPlugin("nullishCoalescingOperator"),this.next(),d===u.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(u.name)&&"await"===this.state.value&&this.scope.inAsync)throw this.raise(this.state.start,'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal');return o.right=this.parseExprOpRightExpr(d,i,r),this.finishNode(o,d===u.logicalOR||d===u.logicalAND||d===u.nullishCoalescing?"LogicalExpression":"BinaryExpression"),this.parseExprOp(o,t,n,a,r)}return e}parseExprOpRightExpr(e,t,n){switch(e){case u.pipeline:if("smart"===this.getPluginOption("pipelineOperator","proposal")){const a=this.state.start,r=this.state.startLoc;return this.withTopicPermittingContext(()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(e,t,n),a,r))}default:return this.parseExprOpBaseRightExpr(e,t,n)}}parseExprOpBaseRightExpr(e,t,n){const a=this.state.start,r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),a,r,e.rightAssociative?t-1:t,n)}parseMaybeUnary(e){if(this.isContextual("await")&&(this.scope.inAsync||!this.scope.inFunction&&this.options.allowAwaitOutsideFunction))return this.parseAwait();if(this.state.type.prefix){const t=this.startNode(),n=this.match(u.incDec);if(t.operator=this.state.value,t.prefix=!0,"throw"===t.operator&&this.expectPlugin("throwExpressions"),this.next(),t.argument=this.parseMaybeUnary(),e&&e.start&&this.unexpected(e.start),n)this.checkLVal(t.argument,void 0,void 0,"prefix operation");else if(this.state.strict&&"delete"===t.operator){const e=t.argument;"Identifier"===e.type?this.raise(t.start,"Deleting local variable in strict mode"):"MemberExpression"===e.type&&"PrivateName"===e.property.type&&this.raise(t.start,"Deleting a private field is not allowed")}return this.finishNode(t,n?"UpdateExpression":"UnaryExpression")}const t=this.state.start,n=this.state.startLoc;let a=this.parseExprSubscripts(e);if(e&&e.start)return a;for(;this.state.type.postfix&&!this.canInsertSemicolon();){const e=this.startNodeAt(t,n);e.operator=this.state.value,e.prefix=!1,e.argument=a,this.checkLVal(a,void 0,void 0,"postfix operation"),this.next(),a=this.finishNode(e,"UpdateExpression")}return a}parseExprSubscripts(e){const t=this.state.start,n=this.state.startLoc,a=this.state.potentialArrowAt,r=this.parseExprAtom(e);return"ArrowFunctionExpression"===r.type&&r.start===a?r:e&&e.start?r:this.parseSubscripts(r,t,n)}parseSubscripts(e,t,n,a){const r=this.atPossibleAsync(e),i={optionalChainMember:!1,stop:!1};do{e=this.parseSubscript(e,t,n,a,i,r)}while(!i.stop);return e}parseSubscript(e,t,n,a,r,i){if(!a&&this.eat(u.doubleColon)){const i=this.startNodeAt(t,n);return i.object=e,i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n,a)}if(this.match(u.questionDot)){if(this.expectPlugin("optionalChaining"),r.optionalChainMember=!0,a&&this.lookahead().type===u.parenL)return r.stop=!0,e;this.next();const i=this.startNodeAt(t,n);return this.eat(u.bracketL)?(i.object=e,i.property=this.parseExpression(),i.computed=!0,i.optional=!0,this.expect(u.bracketR),this.finishNode(i,"OptionalMemberExpression")):this.eat(u.parenL)?(i.callee=e,i.arguments=this.parseCallExpressionArguments(u.parenR,!1),i.optional=!0,this.finishNode(i,"OptionalCallExpression")):(i.object=e,i.property=this.parseIdentifier(!0),i.computed=!1,i.optional=!0,this.finishNode(i,"OptionalMemberExpression"))}if(this.eat(u.dot)){const a=this.startNodeAt(t,n);return a.object=e,a.property=this.parseMaybePrivateName(),a.computed=!1,r.optionalChainMember?(a.optional=!1,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}if(this.eat(u.bracketL)){const a=this.startNodeAt(t,n);return a.object=e,a.property=this.parseExpression(),a.computed=!0,this.expect(u.bracketR),r.optionalChainMember?(a.optional=!1,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}if(!a&&this.match(u.parenL)){const a=this.state.maybeInArrowParameters,o=this.state.yieldPos,s=this.state.awaitPos;this.state.maybeInArrowParameters=!0,this.state.yieldPos=0,this.state.awaitPos=0,this.next();let d=this.startNodeAt(t,n);d.callee=e;const l=this.state.commaAfterSpreadAt;return this.state.commaAfterSpreadAt=-1,d.arguments=this.parseCallExpressionArguments(u.parenR,i,"Import"===e.type,"Super"!==e.type),r.optionalChainMember?this.finishOptionalCallExpression(d):this.finishCallExpression(d),i&&this.shouldParseAsyncArrow()?(r.stop=!0,this.checkCommaAfterRestFromSpread(),d=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,n),d),this.checkYieldAwaitInDefaultParams(),this.state.yieldPos=o,this.state.awaitPos=s):(this.toReferencedListDeep(d.arguments),this.state.yieldPos=o||this.state.yieldPos,this.state.awaitPos=s||this.state.awaitPos),this.state.maybeInArrowParameters=a,this.state.commaAfterSpreadAt=l,d}return this.match(u.backQuote)?this.parseTaggedTemplateExpression(t,n,e,r):(r.stop=!0,e)}parseTaggedTemplateExpression(e,t,n,a,r){const i=this.startNodeAt(e,t);return i.tag=n,i.quasi=this.parseTemplate(!0),r&&(i.typeParameters=r),a.optionalChainMember&&this.raise(e,"Tagged Template Literals are not allowed in optionalChain"),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsync(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end)}finishCallExpression(e){if("Import"===e.callee.type){1!==e.arguments.length&&this.raise(e.start,"import() requires exactly one argument");const t=e.arguments[0];t&&"SpreadElement"===t.type&&this.raise(t.start,"... is not allowed in import()")}return this.finishNode(e,"CallExpression")}finishOptionalCallExpression(e){if("Import"===e.callee.type){1!==e.arguments.length&&this.raise(e.start,"import() requires exactly one argument");const t=e.arguments[0];t&&"SpreadElement"===t.type&&this.raise(t.start,"... is not allowed in import()")}return this.finishNode(e,"OptionalCallExpression")}parseCallExpressionArguments(e,t,n,a){const r=[];let i,o=!0;for(;!this.eat(e);){if(o)o=!1;else if(this.expect(u.comma),this.eat(e)){n&&this.raise(this.state.lastTokStart,"Trailing comma is disallowed inside import(...) arguments");break}this.match(u.parenL)&&!i&&(i=this.state.start),r.push(this.parseExprListItem(!1,t?{start:0}:void 0,t?{start:0}:void 0,a))}return t&&i&&this.shouldParseAsyncArrow()&&this.unexpected(),r}shouldParseAsyncArrow(){return this.match(u.arrow)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){return this.expect(u.arrow),this.parseArrowExpression(e,t.arguments,!0),e}parseNoCallExpr(){const e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)}parseExprAtom(e){this.state.type===u.slash&&this.readRegexp();const t=this.state.potentialArrowAt===this.state.start;let n;switch(this.state.type){case u._super:return this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"super is only allowed in object methods and classes"),n=this.startNode(),this.next(),!this.match(u.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod||this.raise(n.start,"super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?"),this.match(u.parenL)||this.match(u.bracketL)||this.match(u.dot)||this.unexpected(),this.finishNode(n,"Super");case u._import:return n=this.startNode(),this.next(),this.match(u.dot)?this.parseImportMetaProperty(n):(this.expectPlugin("dynamicImport",n.start),this.match(u.parenL)||this.unexpected(null,u.parenL),this.finishNode(n,"Import"));case u._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case u.name:{n=this.startNode();const e=this.state.containsEsc,a=this.parseIdentifier();if(!e&&"async"===a.name&&this.match(u._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(n,void 0,!0);if(t&&!e&&"async"===a.name&&this.match(u.name)&&!this.canInsertSemicolon()){const e=[this.parseIdentifier()];return this.expect(u.arrow),this.parseArrowExpression(n,e,!0),n}return t&&this.match(u.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(n,[a],!1),n):a}case u._do:{this.expectPlugin("doExpressions");const e=this.startNode();this.next();const t=this.state.labels;return this.state.labels=[],e.body=this.parseBlock(),this.state.labels=t,this.finishNode(e,"DoExpression")}case u.regexp:{const e=this.state.value;return(n=this.parseLiteral(e.value,"RegExpLiteral")).pattern=e.pattern,n.flags=e.flags,n}case u.num:return this.parseLiteral(this.state.value,"NumericLiteral");case u.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case u.string:return this.parseLiteral(this.state.value,"StringLiteral");case u._null:return n=this.startNode(),this.next(),this.finishNode(n,"NullLiteral");case u._true:case u._false:return this.parseBooleanLiteral();case u.parenL:return this.parseParenAndDistinguishExpression(t);case u.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(u.bracketR,!0,e),this.state.maybeInArrowParameters||this.toReferencedList(n.elements),this.finishNode(n,"ArrayExpression");case u.braceL:return this.parseObj(!1,e);case u._function:return this.parseFunctionExpression();case u.at:this.parseDecorators();case u._class:return n=this.startNode(),this.takeDecorators(n),this.parseClass(n,!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate(!1);case u.doubleColon:{n=this.startNode(),this.next(),n.object=null;const e=n.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(n,"BindExpression");throw this.raise(e.start,"Binding should be performed on object property.")}case u.hash:if(this.state.inPipeline){if(n=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(n.start,"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option."),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext())return this.registerTopicReference(),this.finishNode(n,"PipelinePrimaryTopicReference");throw this.raise(n.start,"Topic reference was used in a lexical context without topic binding")}default:throw this.unexpected()}}parseBooleanLiteral(){const e=this.startNode();return e.value=this.match(u._true),this.next(),this.finishNode(e,"BooleanLiteral")}parseMaybePrivateName(){if(this.match(u.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]);const e=this.startNode();return this.next(),this.assertNoSpace("Unexpected space between # and identifier"),e.id=this.parseIdentifier(!0),this.finishNode(e,"PrivateName")}return this.parseIdentifier(!0)}parseFunctionExpression(){const e=this.startNode();let t=this.startNode();return this.next(),t=this.createIdentifier(t,"function"),this.scope.inGenerator&&this.eat(u.dot)?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t,"function"===t.name&&"sent"===n&&(this.isContextual(n)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());const a=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||a)&&this.raise(e.property.start,`The only valid meta property for ${t.name} is ${t.name}.${n}`),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.expect(u.dot),this.isContextual("meta")?this.expectPlugin("importMeta"):this.hasPlugin("importMeta")||this.raise(t.start,"Dynamic imports require a parameter: import('a.js')"),this.inModule||this.raise(t.start,"import.meta may appear only with 'sourceType: \"module\"'",{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),this.sawUnambiguousESM=!0,this.parseMetaProperty(e,t,"meta")}parseLiteral(e,t,n,a){n=n||this.state.start,a=a||this.state.startLoc;const r=this.startNodeAt(n,a);return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(n,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseParenAndDistinguishExpression(e){const t=this.state.start,n=this.state.startLoc;let a;this.expect(u.parenL);const r=this.state.maybeInArrowParameters,i=this.state.yieldPos,o=this.state.awaitPos;this.state.maybeInArrowParameters=!0,this.state.yieldPos=0,this.state.awaitPos=0;const s=this.state.start,d=this.state.startLoc,l=[],c={start:0},p={start:0};let h,f,g=!0;for(;!this.match(u.parenR);){if(g)g=!1;else if(this.expect(u.comma,p.start||null),this.match(u.parenR)){f=this.state.start;break}if(this.match(u.ellipsis)){const e=this.state.start,t=this.state.startLoc;h=this.state.start,l.push(this.parseParenItem(this.parseRestBinding(),e,t)),this.checkCommaAfterRest();break}l.push(this.parseMaybeAssign(!1,c,this.parseParenItem,p))}const m=this.state.start,y=this.state.startLoc;this.expect(u.parenR),this.state.maybeInArrowParameters=r;let v=this.startNodeAt(t,n);if(e&&this.shouldParseArrow()&&(v=this.parseArrow(v))){this.checkYieldAwaitInDefaultParams(),this.state.yieldPos=i,this.state.awaitPos=o;for(let e=0;e1?((a=this.startNodeAt(s,d)).expressions=l,this.finishNodeAt(a,"SequenceExpression",m,y)):a=l[0],!this.options.createParenthesizedExpressions)return this.addExtra(a,"parenthesized",!0),this.addExtra(a,"parenStart",t),a;const b=this.startNodeAt(t,n);return b.expression=a,this.finishNode(b,"ParenthesizedExpression"),b}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(u.arrow))return e}parseParenItem(e,t,n){return e}parseNew(){const e=this.startNode(),t=this.parseIdentifier(!0);if(this.eat(u.dot)){const n=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.state.inClassProperty){let e="new.target can only be used in functions";this.hasPlugin("classProperties")&&(e+=" or class properties"),this.raise(n.start,e)}return n}return e.callee=this.parseNoCallExpr(),"Import"===e.callee.type?this.raise(e.callee.start,"Cannot use new with import(...)"):"OptionalMemberExpression"===e.callee.type||"OptionalCallExpression"===e.callee.type?this.raise(this.state.lastTokEnd,"constructors in/after an Optional Chain are not allowed"):this.eat(u.questionDot)&&this.raise(this.state.start,"constructors in/after an Optional Chain are not allowed"),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}parseNewArguments(e){if(this.eat(u.parenL)){const t=this.parseExprList(u.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]}parseTemplateElement(e){const t=this.startNode();return null===this.state.value&&(e?this.state.invalidTemplateEscapePosition=null:this.raise(this.state.invalidTemplateEscapePosition||0,"Invalid escape sequence in template")),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(u.backQuote),this.finishNode(t,"TemplateElement")}parseTemplate(e){const t=this.startNode();this.next(),t.expressions=[];let n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)this.expect(u.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(u.braceR),t.quasis.push(n=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}parseObj(e,t){const n=Object.create(null);let a=!0;const r=this.startNode();for(r.properties=[],this.next();!this.eat(u.braceR);){if(a)a=!1;else if(this.expect(u.comma),this.eat(u.braceR))break;const i=this.parseObjectMember(e,t);e||this.checkPropClash(i,n),i.shorthand&&this.addExtra(i,"shorthand",!0),r.properties.push(i)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")}isAsyncProp(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.match(u.name)||this.match(u.num)||this.match(u.string)||this.match(u.bracketL)||this.state.type.keyword||this.match(u.star))&&!this.hasPrecedingLineBreak()}parseObjectMember(e,t){let n=[];if(this.match(u.at))if(this.hasPlugin("decorators"))this.raise(this.state.start,"Stage 2 decorators disallow object literal property decorators");else for(;this.match(u.at);)n.push(this.parseDecorator());const a=this.startNode();let r,i,o=!1,s=!1;if(this.match(u.ellipsis))return n.length&&this.unexpected(),e?(this.next(),a.argument=this.parseIdentifier(),this.checkCommaAfterRest(),this.finishNode(a,"RestElement")):this.parseSpread();n.length&&(a.decorators=n,n=[]),a.method=!1,(e||t)&&(r=this.state.start,i=this.state.startLoc),e||(o=this.eat(u.star));const d=this.state.containsEsc;return this.parsePropertyName(a),e||d||o||!this.isAsyncProp(a)?s=!1:(s=!0,o=this.eat(u.star),this.parsePropertyName(a)),this.parseObjPropValue(a,r,i,o,s,e,t,d),a}isGetterOrSetterMethod(e,t){return!t&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(u.string)||this.match(u.num)||this.match(u.bracketL)||this.match(u.name)||!!this.state.type.keyword)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}checkGetterSetterParams(e){const t=this.getGetterSetterExpectedParamCount(e),n=e.start;e.params.length!==t&&("get"===e.kind?this.raise(n,"getter must not have any formal parameters"):this.raise(n,"setter must have exactly one formal parameter")),"set"===e.kind&&"RestElement"===e.params[e.params.length-1].type&&this.raise(n,"setter function argument must not be a rest parameter")}parseObjectMethod(e,t,n,a,r){return n||t||this.match(u.parenL)?(a&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")):!r&&this.isGetterOrSetterMethod(e,a)?((t||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e,!1,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):void 0}parseObjectProperty(e,t,n,a,r){return e.shorthand=!1,this.eat(u.colon)?(e.value=a?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,r),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!0),a?e.value=this.parseMaybeDefault(t,n,e.key.__clone()):this.match(u.eq)&&r?(r.start||(r.start=this.state.start),e.value=this.parseMaybeDefault(t,n,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))}parseObjPropValue(e,t,n,a,r,i,o,s){const u=this.parseObjectMethod(e,a,r,i,s)||this.parseObjectProperty(e,t,n,i,o);return u||this.unexpected(),u}parsePropertyName(e){if(this.eat(u.bracketL))e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR);else{const t=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(u.num)||this.match(u.string)?this.parseExprAtom():this.parseMaybePrivateName(),"PrivateName"!==e.key.type&&(e.computed=!1),this.state.inPropertyName=t}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=!!t}parseMethod(e,t,n,a,r,i,o=!1){const s=this.state.yieldPos,u=this.state.awaitPos;this.state.yieldPos=0,this.state.awaitPos=0,this.initFunction(e,n),e.generator=!!t;const d=a;return this.scope.enter(R(n,e.generator)|m|(o?v:0)|(r?y:0)),this.parseFunctionParams(e,d),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBodyAndFinish(e,i,!0),this.scope.exit(),this.state.yieldPos=s,this.state.awaitPos=u,e}parseArrowExpression(e,t,n){this.scope.enter(R(n,!1)|f),this.initFunction(e,n);const a=this.state.maybeInArrowParameters,r=this.state.yieldPos,i=this.state.awaitPos;return this.state.maybeInArrowParameters=!1,this.state.yieldPos=0,this.state.awaitPos=0,t&&this.setArrowFunctionParameters(e,t),this.parseFunctionBody(e,!0),this.scope.exit(),this.state.maybeInArrowParameters=a,this.state.yieldPos=r,this.state.awaitPos=i,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t){e.params=this.toAssignableList(t,!0,"arrow function parameters")}isStrictBody(e){if("BlockStatement"===e.body.type&&e.body.directives.length)for(let t=0,n=e.body.directives;t" after pipeline body; arrow function in pipeline body must be parenthesized');if("PipelineTopicExpression"===t&&"SequenceExpression"===e.type)throw this.raise(n,"Pipeline body may not be a comma-separated sequence expression")}parseSmartPipelineBodyInStyle(e,t,n,a){const r=this.startNodeAt(n,a);switch(t){case"PipelineBareFunction":r.callee=e;break;case"PipelineBareConstructor":r.callee=e.callee;break;case"PipelineBareAwaitedFunction":r.callee=e.argument;break;case"PipelineTopicExpression":if(!this.topicReferenceWasUsedInCurrentTopicContext())throw this.raise(n,"Pipeline is in topic style but does not use topic reference");r.expression=e;break;default:throw this.raise(n,`Unknown pipeline style ${t}`)}return this.finishNode(r,t)}checkSmartPipelineBodyStyle(e){return e.type,this.isSimpleReference(e)?"PipelineBareFunction":"PipelineTopicExpression"}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}withTopicPermittingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withTopicForbiddingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}primaryTopicReferenceIsAllowedInCurrentTopicContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentTopicContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}}const et={kind:"loop"},tt={kind:"switch"},nt=0,at=1,rt=2,it=4;class ot extends Ze{parseTopLevel(e,t){if(t.sourceType=this.options.sourceType,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,u.eof),this.inModule&&this.scope.undefinedExports.size>0)for(let e=0,t=Array.from(this.scope.undefinedExports);ethis.parseStatement("do")),this.state.labels.pop(),this.expect(u._while),e.test=this.parseHeaderExpression(),this.eat(u.semi),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(et);let t=-1;if((this.scope.inAsync||!this.scope.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")&&(t=this.state.lastTokStart),this.scope.enter(d),this.expect(u.parenL),this.match(u.semi))return t>-1&&this.unexpected(t),this.parseFor(e,null);const n=this.isLet();if(this.match(u._var)||this.match(u._const)||n){const a=this.startNode(),r=n?"let":this.state.value;return this.next(),this.parseVar(a,!0,r),this.finishNode(a,"VariableDeclaration"),(this.match(u._in)||this.isContextual("of"))&&1===a.declarations.length?this.parseForIn(e,a,t):(t>-1&&this.unexpected(t),this.parseFor(e,a))}const a={start:0},r=this.parseExpression(!0,a);if(this.match(u._in)||this.isContextual("of")){const n=this.isContextual("of")?"for-of statement":"for-in statement";return this.toAssignable(r,void 0,n),this.checkLVal(r,void 0,void 0,n),this.parseForIn(e,r,t)}return a.start&&this.unexpected(a.start),t>-1&&this.unexpected(t),this.parseFor(e,r)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,at|(n?0:rt),t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.scope.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.state.start,"'return' outside of function"),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let n,a;for(this.expect(u.braceL),this.state.labels.push(tt),this.scope.enter(d);!this.match(u.braceR);)if(this.match(u._case)||this.match(u._default)){const e=this.match(u._case);n&&this.finishNode(n,"SwitchCase"),t.push(n=this.startNode()),n.consequent=[],this.next(),e?n.test=this.parseExpression():(a&&this.raise(this.state.lastTokStart,"Multiple default clauses"),a=!0,n.test=null),this.expect(u.colon)}else n?n.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),H.test(this.input.slice(this.state.lastTokEnd,this.state.start))&&this.raise(this.state.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(u._catch)){const t=this.startNode();if(this.next(),this.match(u.parenL)){this.expect(u.parenL),t.param=this.parseBindingAtom();const e="Identifier"===t.param.type;this.scope.enter(e?g:0),this.checkLVal(t.param,k,null,"catch clause"),this.expect(u.parenR)}else t.param=null,this.scope.enter(d);t.body=this.withTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(u._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(et),e.body=this.withTopicForbiddingContext(()=>this.parseStatement("while")),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(this.state.start,"'with' in strict mode"),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withTopicForbiddingContext(()=>this.parseStatement("with")),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,n,a){for(let e=0,a=this.state.labels;e=0;t--){const n=this.state.labels[t];if(n.statementStart!==e.start)break;n.statementStart=this.state.start,n.kind=r}return this.state.labels.push({name:t,kind:r,statementStart:this.state.start}),e.body=this.parseStatement(a?-1===a.indexOf("label")?a+"label":a:"label"),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0){const n=this.startNode();return this.expect(u.braceL),t&&this.scope.enter(d),this.parseBlockBody(n,e,!1,u.braceR),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,a){const r=e.body=[],i=e.directives=[];this.parseBlockOrModuleBlockBody(r,t?i:void 0,n,a)}parseBlockOrModuleBlockBody(e,t,n,a){let r,i,o=!1;for(;!this.eat(a);){o||!this.state.containsOctal||i||(i=this.state.octalPosition);const a=this.parseStatement(null,n);if(t&&!o&&this.isValidDirective(a)){const e=this.stmtToDirective(a);t.push(e),void 0===r&&"use strict"===e.value.value&&(r=this.state.strict,this.setStrict(!0),i&&this.raise(i,"Octal literal in strict mode"))}else o=!0,e.push(a)}!1===r&&this.setStrict(!1)}parseFor(e,t){return e.init=t,this.expect(u.semi),e.test=this.match(u.semi)?null:this.parseExpression(),this.expect(u.semi),e.update=this.match(u.parenR)?null:this.parseExpression(),this.expect(u.parenR),e.body=this.withTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,n){const a=this.match(u._in);return this.next(),a?n>-1&&this.unexpected(n):e.await=n>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||a&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type?"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"):this.raise(t.start,`${a?"for-in":"for-of"} loop variable declaration may not have an initializer`),e.left=t,e.right=a?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),e.body=this.withTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,a?"ForInStatement":"ForOfStatement")}parseVar(e,t,n){const a=e.declarations=[],r=this.hasPlugin("typescript");for(e.kind=n;;){const e=this.startNode();if(this.parseVarId(e,n),this.eat(u.eq)?e.init=this.parseMaybeAssign(t):("const"!==n||this.match(u._in)||this.isContextual("of")?"Identifier"===e.id.type||t&&(this.match(u._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):r||this.unexpected(),e.init=null),a.push(this.finishNode(e,"VariableDeclarator")),!this.eat(u.comma))break}return e}parseVarId(e,t){"const"!==t&&"let"!==t||!this.isContextual("let")||this.unexpected(null,"let is disallowed as a lexically bound name"),e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?O:k,void 0,"variable declaration")}parseFunction(e,t=nt,n=!1){const a=t&at,r=t&rt,i=!(!a||t&it);this.initFunction(e,n),this.match(u.star)&&r&&this.unexpected(this.state.start,"Generators can only be declared at the top level or inside a block"),e.generator=this.eat(u.star),a&&(e.id=this.parseFunctionId(i));const o=this.state.inClassProperty,s=this.state.yieldPos,d=this.state.awaitPos;return this.state.inClassProperty=!1,this.state.yieldPos=0,this.state.awaitPos=0,this.scope.enter(R(e.async,e.generator)),a||(e.id=this.parseFunctionId()),this.parseFunctionParams(e),this.withTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,a?"FunctionDeclaration":"FunctionExpression")}),this.scope.exit(),a&&!r&&this.checkFunctionStatementId(e),this.state.inClassProperty=o,this.state.yieldPos=s,this.state.awaitPos=d,e}parseFunctionId(e){return e||this.match(u.name)?this.parseIdentifier():null}parseFunctionParams(e,t){const n=this.state.inParameters;this.state.inParameters=!0,this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,t),this.state.inParameters=n,this.checkYieldAwaitInDefaultParams()}checkFunctionStatementId(e){e.id&&this.checkLVal(e.id,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?O:k:F,null,"function name")}parseClass(e,t,n){this.next(),this.takeDecorators(e);const a=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass),this.state.strict=a,this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(u.eq)||this.match(u.semi)||this.match(u.braceR)}isClassMethod(){return this.match(u.parenL)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e){this.state.classLevel++;const t={hadConstructor:!1};let n=[];const a=this.startNode();return a.body=[],this.expect(u.braceL),this.withTopicForbiddingContext(()=>{for(;!this.eat(u.braceR);){if(this.eat(u.semi)){n.length>0&&this.raise(this.state.lastTokEnd,"Decorators must not be followed by a semicolon");continue}if(this.match(u.at)){n.push(this.parseDecorator());continue}const r=this.startNode();n.length&&(r.decorators=n,this.resetStartLocationFromNode(r,n[0]),n=[]),this.parseClassMember(a,r,t,e),"constructor"===r.kind&&r.decorators&&r.decorators.length>0&&this.raise(r.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")}}),n.length&&this.raise(this.state.start,"You have trailing decorators with no method"),this.state.classLevel--,this.finishNode(a,"ClassBody")}parseClassMember(e,t,n,a){let r=!1;const i=this.state.containsEsc;if(this.match(u.name)&&"static"===this.state.value){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const a=t;return a.kind="method",a.computed=!1,a.key=n,a.static=!1,void this.pushClassMethod(e,a,!1,!1,!1,!1)}if(this.isClassProperty()){const a=t;return a.computed=!1,a.key=n,a.static=!1,void e.body.push(this.parseClassProperty(a))}if(i)throw this.unexpected();r=!0}this.parseClassMemberWithIsStatic(e,t,n,r,a)}parseClassMemberWithIsStatic(e,t,n,a,r){const i=t,o=t,s=t,d=t,l=i,c=i;if(t.static=a,this.eat(u.star))return l.kind="method",this.parseClassPropertyName(l),"PrivateName"===l.key.type?void this.pushClassPrivateMethod(e,o,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,"Constructor can't be a generator"),void this.pushClassMethod(e,i,!0,!1,!1,!1));const p=this.state.containsEsc,h=this.parseClassPropertyName(t),f="PrivateName"===h.type,g="Identifier"===h.type;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(l.kind="method",f)return void this.pushClassPrivateMethod(e,o,!1,!1);const t=this.isNonstaticConstructor(i);let a=!1;t&&(i.kind="constructor",i.decorators&&this.raise(i.start,"You can't attach decorators to a class constructor"),n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(h.start,"Duplicate constructor in the same class"),n.hadConstructor=!0,a=r),this.pushClassMethod(e,i,!1,!1,t,a)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,d):this.pushClassProperty(e,s);else if(!g||"async"!==h.name||p||this.isLineTerminator())!g||"get"!==h.name&&"set"!==h.name||p||this.match(u.star)&&this.isLineTerminator()?this.isLineTerminator()?f?this.pushClassPrivateProperty(e,d):this.pushClassProperty(e,s):this.unexpected():(l.kind=h.name,this.parseClassPropertyName(i),"PrivateName"===l.key.type?this.pushClassPrivateMethod(e,o,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,"Constructor can't have get/set modifier"),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i));else{const t=this.eat(u.star);l.kind="method",this.parseClassPropertyName(l),"PrivateName"===l.key.type?this.pushClassPrivateMethod(e,o,t,!0):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,"Constructor can't be an async function"),this.pushClassMethod(e,i,t,!0,!1,!1))}}parseClassPropertyName(e){const t=this.parsePropertyName(e);return e.computed||!e.static||"prototype"!==t.name&&"prototype"!==t.value||this.raise(t.start,"Classes may not have static property named prototype"),"PrivateName"===t.type&&"constructor"===t.id.name&&this.raise(t.start,"Classes may not have a private field named '#constructor'"),t}pushClassProperty(e,t){this.isNonstaticConstructor(t)&&this.raise(t.key.start,"Classes may not have a non-static field named 'constructor'"),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){this.expectPlugin("classPrivateProperties",t.key.start),e.body.push(this.parseClassPrivateProperty(t))}pushClassMethod(e,t,n,a,r,i){e.body.push(this.parseMethod(t,n,a,r,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,a){this.expectPlugin("classPrivateMethods",t.key.start),e.body.push(this.parseMethod(t,n,a,!1,!1,"ClassPrivateMethod",!0))}parsePostMemberNameModifiers(e){}parseAccessModifier(){}parseClassPrivateProperty(e){return this.state.inClassProperty=!0,this.scope.enter(v|m),e.value=this.eat(u.eq)?this.parseMaybeAssign():null,this.semicolon(),this.state.inClassProperty=!1,this.scope.exit(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return e.typeAnnotation||this.expectPlugin("classProperties"),this.state.inClassProperty=!0,this.scope.enter(v|m),this.match(u.eq)?(this.expectPlugin("classProperties"),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.state.inClassProperty=!1,this.scope.exit(),this.finishNode(e,"ClassProperty")}parseClassId(e,t,n){this.match(u.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,P,void 0,"class name")):n||!t?e.id=null:this.unexpected(null,"A class name is required")}parseClassSuper(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts():null}parseExport(e){const t=this.maybeParseExportDefaultSpecifier(e),n=!t||this.eat(u.comma),a=n&&this.eatExportStar(e),r=a&&this.maybeParseExportNamespaceSpecifier(e),i=n&&(!r||this.eat(u.comma)),o=t||a;if(a&&!r)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");const s=this.maybeParseExportNamedSpecifiers(e);if(t&&n&&!a&&!s||r&&i&&!s)throw this.unexpected(null,u.braceL);let d;if(o||s?(d=!1,this.parseExportFrom(e,o)):d=this.maybeParseExportDeclaration(e),o||s||d)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(u._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,u.braceL)}eatExportStar(e){return this.eat(u.star)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]),this.expectPlugin("exportNamespaceFrom");const t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseIdentifier(!0),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){return!!this.match(u.braceL)&&(e.specifiers||(e.specifiers=[]),e.specifiers.push(...this.parseExportSpecifiers()),e.source=null,e.declaration=null,!0)}maybeParseExportDeclaration(e){if(this.shouldParseExportDeclaration()){if(this.isContextual("async")){const e=this.lookahead();e.type!==u._function&&this.unexpected(e.start,'Unexpected token, expected "function"')}return e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0}return!1}isAsyncFunction(){if(!this.isContextual("async"))return!1;const{pos:e}=this.state;G.lastIndex=e;const t=G.exec(this.input);if(!t||!t.length)return!1;const n=e+t[0].length;return!(H.test(this.input.slice(e,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.length&&ce(this.input.charCodeAt(n+8)))}parseExportDefaultExpression(){const e=this.startNode(),t=this.isAsyncFunction();if(this.match(u._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,at|it,t);if(this.match(u._class))return this.parseClass(e,!0,!0);if(this.match(u.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax"),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(u._const)||this.match(u._var)||this.isLet())return this.raise(this.state.start,"Only expressions, functions or classes are allowed as the `default` export.");{const e=this.parseMaybeAssign();return this.semicolon(),e}}parseExportDeclaration(e){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(u.name))return"async"!==this.state.value&&"let"!==this.state.value;if(!this.match(u._default))return!1;const e=this.lookahead();return e.type===u.comma||e.type===u.name&&"from"===e.value}parseExportFrom(e,t){this.eatContextual("from")?(e.source=this.parseImportSource(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()}shouldParseExportDeclaration(){if(this.match(u.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax")}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()}checkExport(e,t,n,a){if(t)if(n)this.checkDuplicateExports(e,"default");else if(e.specifiers&&e.specifiers.length)for(let t=0,n=e.specifiers;t-1)throw this.raise(e.start,"default"===t?"Only one default export allowed per module.":`\`${t}\` has already been exported. Exported identifiers must be unique.`);this.state.exportedIdentifiers.push(t)}parseExportSpecifiers(){const e=[];let t=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.expect(u.comma),this.eat(u.braceR))break;const n=this.startNode();n.local=this.parseIdentifier(!0),n.exported=this.eatContextual("as")?this.parseIdentifier(!0):n.local.__clone(),e.push(this.finishNode(n,"ExportSpecifier"))}return e}parseImport(e){if(e.specifiers=[],!this.match(u.string)){const t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(u.comma),n=t&&this.maybeParseStarImportSpecifier(e);t&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}return e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(u.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return this.match(u.name)}parseImportSpecifierLocal(e,t,n,a){t.local=this.parseIdentifier(),this.checkLVal(t.local,k,void 0,a),e.specifiers.push(this.finishNode(t,n))}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(u.star)){const t=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.eat(u.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(u.comma),this.eat(u.braceR))break;this.parseImportSpecifier(e)}}parseImportSpecifier(e){const t=this.startNode();t.imported=this.parseIdentifier(!0),this.eatContextual("as")?t.local=this.parseIdentifier():(this.checkReservedWord(t.imported.name,t.start,!0,!0),t.local=t.imported.__clone()),this.checkLVal(t.local,k,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}}class st extends ot{constructor(e,t){super(e=function(e){const t={};for(let n=0,a=Object.keys(Fe);n`'${e}'`).join(", "))}(e.plugins),n=function(e){const t=Oe.filter(t=>_e(e,t)),n=t.join("/");let a=dt[n];if(!a){a=st;for(let e=0;e!1},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(175)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=require("stream")},function(e,t,n){"use strict";t.__esModule=!0;var a=i(n(1)),r=i(n(438));function i(e){return e&&e.__esModule?e:{default:e}}t.default=a.default.createContext||r.default,e.exports=t.default},function(e,t,n){"use strict";n.r(t);var a=function(e,t){return e===t};t.default=function(e,t){var n;void 0===t&&(t=a);var r,i=[],o=!1,s=function(e,n){return t(e,i[n],n)};return function(){for(var t=arguments.length,a=new Array(t),u=0;u=f)return{placement:"bottom",maxHeight:t};if(C>=f&&!o)return i&&(0,l.animatedScrollTo)(u,D,160),{placement:"bottom",maxHeight:t};if(!o&&C>=a||o&&x>=a)return i&&(0,l.animatedScrollTo)(u,D,160),{placement:"bottom",maxHeight:o?x-b:C-b};if("auto"===r||o){var A=t,_=o?E:S;return _>=a&&(A=Math.min(_-b-s.controlHeight,t)),{placement:"top",maxHeight:A}}if("bottom"===r)return(0,l.scrollTo)(u,D),{placement:"bottom",maxHeight:t};break;case"top":if(E>=f)return{placement:"top",maxHeight:t};if(S>=f&&!o)return i&&(0,l.animatedScrollTo)(u,w,160),{placement:"top",maxHeight:t};if(!o&&S>=a||o&&E>=a){var T=t;return(!o&&S>=a||o&&E>=a)&&(T=o?E-R:S-R),i&&(0,l.animatedScrollTo)(u,w,160),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+r+'".')}return d}var y=function(e){return"auto"===e?"bottom":e};t.menuCSS=function(e){var t,n=e.placement,a=e.theme,r=a.borderRadius,i=a.spacing,o=a.colors;return g(t={},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),g(t,"backgroundColor",o.neutral0),g(t,"borderRadius",r),g(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),g(t,"marginBottom",i.menuGutter),g(t,"marginTop",i.menuGutter),g(t,"position","absolute"),g(t,"width","100%"),g(t,"zIndex",1),t};(t.MenuPlacer=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,o=Array(i),s=0;s2&&void 0!==arguments[2]?arguments[2]:200,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s,r=l(e),i=t-r,u=10,d=0;!function t(){d+=u;var s=(l=d,p=r,h=i,f=n,h*((l=l/f-1)*l*l+1)+p);var l,p,h,f;c(e,s);dn.bottom?c(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):a.top-r-1}function l(e){return d(e)?window.pageYOffset:e.scrollTop}function c(e,t){d(e)?window.scrollTo(0,t):e.scrollTop=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["size"]);return o.default.createElement("svg",r({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:(0,s.css)({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},n))},d=t.CrossIcon=function(e){return o.default.createElement(u,r({size:20},e),o.default.createElement("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},l=t.DownChevron=function(e){return o.default.createElement(u,r({size:20},e),o.default.createElement("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},c=function(e){var t=e.isFocused,n=e.theme,a=n.spacing.baseUnit,r=n.colors;return{color:t?r.neutral60:r.neutral20,display:"flex",padding:2*a,transition:"color 150ms",":hover":{color:t?r.neutral80:r.neutral40}}},p=(t.dropdownIndicatorCSS=c,t.DropdownIndicator=function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,u=e.innerProps;return o.default.createElement("div",r({},u,{className:a((0,s.css)(i("dropdownIndicator",e)),{indicator:!0,"dropdown-indicator":!0},n)}),t||o.default.createElement(l,null))},t.clearIndicatorCSS=c,t.ClearIndicator=function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,u=e.innerProps;return o.default.createElement("div",r({},u,{className:a((0,s.css)(i("clearIndicator",e)),{indicator:!0,"clear-indicator":!0},n)}),t||o.default.createElement(d,null))},t.indicatorSeparatorCSS=function(e){var t=e.isDisabled,n=e.theme,a=n.spacing.baseUnit,r=n.colors;return{alignSelf:"stretch",backgroundColor:t?r.neutral10:r.neutral20,marginBottom:2*a,marginTop:2*a,width:1}},t.IndicatorSeparator=function(e){var t=e.className,n=e.cx,a=e.getStyles,i=e.innerProps;return o.default.createElement("span",r({},i,{className:n((0,s.css)(a("indicatorSeparator",e)),{"indicator-separator":!0},t)}))},!1),h=(t.loadingIndicatorCSS=function(e){var t=e.isFocused,n=e.size,a=e.theme,r=a.colors,i=a.spacing.baseUnit;return{color:t?r.neutral60:r.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},function(e){var t=e.color,n=e.delay,a=e.offset;return o.default.createElement("span",{className:(0,s.css)({animationDuration:"1s",animationDelay:n+"ms",animationIterationCount:"infinite",animationName:"react-select-loading-indicator",animationTimingFunction:"ease-in-out",backgroundColor:t,borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})});(t.LoadingIndicator=function(e){var t=e.className,n=e.cx,a=e.getStyles,i=e.innerProps,u=e.isFocused,d=e.isRtl,l=e.theme.colors,c=u?l.neutral80:l.neutral20;return p||((0,s.injectGlobal)("@keyframes ","react-select-loading-indicator","{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),p=!0),o.default.createElement("div",r({},i,{className:n((0,s.css)(a("loadingIndicator",e)),{indicator:!0,"loading-indicator":!0},t)}),o.default.createElement(h,{color:c,delay:0,offset:d}),o.default.createElement(h,{color:c,delay:160,offset:!0}),o.default.createElement(h,{color:c,delay:320,offset:!d}))}).defaultProps={size:4}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(226));!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(226)),t.default=r.default},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(227));!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(227)),t.default=r.default},function(e,t,n){"use strict";var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(1)).createContext({});t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayMove=t.sortableHandle=t.sortableElement=t.sortableContainer=t.SortableHandle=t.SortableElement=t.SortableContainer=void 0;var a=n(83);Object.defineProperty(t,"arrayMove",{enumerable:!0,get:function(){return a.arrayMove}});var r=s(n(501)),i=s(n(503)),o=s(n(504));function s(e){return e&&e.__esModule?e:{default:e}}t.SortableContainer=r.default,t.SortableElement=i.default,t.SortableHandle=o.default,t.sortableContainer=r.default,t.sortableElement=i.default,t.sortableHandle=o.default},function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},r=this&&this.__spread||function(){for(var e=[],t=0;t0&&u<=d)&&"function"==typeof r&&r(u)},t.totals=function(e,t,n){void 0===n&&(n=0);var a=e*t,r=a-t+1;n>0&&a>n&&(a=n);var i="Showing "+r+" - "+a;return n>0&&(i+=" of "+n),i},t.getPaginationSlice=function(e,t,n,a){void 0===a&&(a=5);var o=e-1,s=o-o%a,u=i(t,n);return r(Array(a).keys()).map(function(t){var n=t+s+1;return{label:n,selected:e===n}}).filter(function(e){return e.label<=u})}},function(e,t,n){e.exports=f,f.Minimatch=g;var a={sep:"/"};try{a=n(15)}catch(e){}var r=f.GLOBSTAR=g.GLOBSTAR={},i=n(533),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="[^/]",u=s+"*?",d="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l="(?:(?!(?:\\/|^)\\.).)*?",c="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{});var p=/\/+/;function h(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach(function(e){n[e]=t[e]}),Object.keys(e).forEach(function(t){n[t]=e[t]}),n}function f(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new g(t,n).match(e))}function g(e,t){if(!(this instanceof g))return new g(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==a.sep&&(e=e.split(a.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function m(e,t){if(t||(t=this instanceof g?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}f.filter=function(e,t){return t=t||{},function(n,a,r){return f(n,e,t)}},f.defaults=function(e){if(!e||!Object.keys(e).length)return f;var t=f,n=function(n,a,r){return t.minimatch(n,a,h(e,r))};return n.Minimatch=function(n,a){return new t.Minimatch(n,h(e,a))},n},g.defaults=function(e){return e&&Object.keys(e).length?f.defaults(e).Minimatch:g},g.prototype.debug=function(){},g.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(p)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return-1===e.indexOf(!1)}),this.debug(this.pattern,n),this.set=n},g.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,a=0;if(n.nonegate)return;for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return r;if(""===e)return"";var a,i="",d=!!n.nocase,l=!1,p=[],h=[],f=!1,g=-1,m=-1,v="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function R(){if(a){switch(a){case"*":i+=u,d=!0;break;case"?":i+=s,d=!0;break;default:i+="\\"+a}b.debug("clearStateChar %j %j",a,i),a=!1}}for(var E,x=0,S=e.length;x-1;P--){var k=h[P],O=i.slice(0,k.reStart),F=i.slice(k.reStart,k.reEnd-8),j=i.slice(k.reEnd-8,k.reEnd),M=i.slice(k.reEnd);j+=M;var I=O.split("(").length-1,B=M;for(x=0;x=0&&!(r=e[i]);i--);for(i=0;i>> no match, partial?",e,p,t,h),p!==s))}if("string"==typeof l?(d=a.nocase?c.toLowerCase()===l.toLowerCase():c===l,this.debug("string match",l,c,d)):(d=c.match(l),this.debug("pattern match",l,c,d)),!d)return!1}if(i===s&&o===u)return!0;if(i===s)return n;if(o===u)return i===s-1&&""===e[i];throw new Error("wtf?")}},function(e,t,n){"use strict";function a(e){return"/"===e.charAt(0)}function r(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),n=t[1]||"",a=Boolean(n&&":"!==n.charAt(1));return Boolean(t[2]||a)}e.exports="win32"===process.platform?r:a,e.exports.posix=a,e.exports.win32=r},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(17)),i=a(n(28));t.default=function(e){var t=e.use(r.default).Type,n=t.def,a=t.or,o=e.use(i.default),s=o.defaults,u=o.geq;n("Printable").field("loc",a(n("SourceLocation"),null),s.null,!0),n("Node").bases("Printable").field("type",String).field("comments",a([n("Comment")],null),s.null,!0),n("SourceLocation").field("start",n("Position")).field("end",n("Position")).field("source",a(String,null),s.null),n("Position").field("line",u(1)).field("column",u(0)),n("File").bases("Node").build("program","name").field("program",n("Program")).field("name",a(String,null),s.null),n("Program").bases("Node").build("body").field("body",[n("Statement")]),n("Function").bases("Node").field("id",a(n("Identifier"),null),s.null).field("params",[n("Pattern")]).field("body",n("BlockStatement")).field("generator",Boolean,s.false).field("async",Boolean,s.false),n("Statement").bases("Node"),n("EmptyStatement").bases("Statement").build(),n("BlockStatement").bases("Statement").build("body").field("body",[n("Statement")]),n("ExpressionStatement").bases("Statement").build("expression").field("expression",n("Expression")),n("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",n("Expression")).field("consequent",n("Statement")).field("alternate",a(n("Statement"),null),s.null),n("LabeledStatement").bases("Statement").build("label","body").field("label",n("Identifier")).field("body",n("Statement")),n("BreakStatement").bases("Statement").build("label").field("label",a(n("Identifier"),null),s.null),n("ContinueStatement").bases("Statement").build("label").field("label",a(n("Identifier"),null),s.null),n("WithStatement").bases("Statement").build("object","body").field("object",n("Expression")).field("body",n("Statement")),n("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",n("Expression")).field("cases",[n("SwitchCase")]).field("lexical",Boolean,s.false),n("ReturnStatement").bases("Statement").build("argument").field("argument",a(n("Expression"),null)),n("ThrowStatement").bases("Statement").build("argument").field("argument",n("Expression")),n("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",n("BlockStatement")).field("handler",a(n("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[n("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[n("CatchClause")],s.emptyArray).field("finalizer",a(n("BlockStatement"),null),s.null),n("CatchClause").bases("Node").build("param","guard","body").field("param",a(n("Pattern"),null),s.null).field("guard",a(n("Expression"),null),s.null).field("body",n("BlockStatement")),n("WhileStatement").bases("Statement").build("test","body").field("test",n("Expression")).field("body",n("Statement")),n("DoWhileStatement").bases("Statement").build("body","test").field("body",n("Statement")).field("test",n("Expression")),n("ForStatement").bases("Statement").build("init","test","update","body").field("init",a(n("VariableDeclaration"),n("Expression"),null)).field("test",a(n("Expression"),null)).field("update",a(n("Expression"),null)).field("body",n("Statement")),n("ForInStatement").bases("Statement").build("left","right","body").field("left",a(n("VariableDeclaration"),n("Expression"))).field("right",n("Expression")).field("body",n("Statement")),n("DebuggerStatement").bases("Statement").build(),n("Declaration").bases("Statement"),n("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",n("Identifier")),n("FunctionExpression").bases("Function","Expression").build("id","params","body"),n("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",a("var","let","const")).field("declarations",[n("VariableDeclarator")]),n("VariableDeclarator").bases("Node").build("id","init").field("id",n("Pattern")).field("init",a(n("Expression"),null),s.null),n("Expression").bases("Node","Pattern"),n("ThisExpression").bases("Expression").build(),n("ArrayExpression").bases("Expression").build("elements").field("elements",[a(n("Expression"),null)]),n("ObjectExpression").bases("Expression").build("properties").field("properties",[n("Property")]),n("Property").bases("Node").build("kind","key","value").field("kind",a("init","get","set")).field("key",a(n("Literal"),n("Identifier"))).field("value",n("Expression")),n("SequenceExpression").bases("Expression").build("expressions").field("expressions",[n("Expression")]);var d=a("-","+","!","~","typeof","void","delete");n("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",d).field("argument",n("Expression")).field("prefix",Boolean,s.true);var l=a("==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","**","&","|","^","in","instanceof");n("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",l).field("left",n("Expression")).field("right",n("Expression"));var c=a("=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=");n("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",c).field("left",n("Pattern")).field("right",n("Expression"));var p=a("++","--");n("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",p).field("argument",n("Expression")).field("prefix",Boolean);var h=a("||","&&");n("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",h).field("left",n("Expression")).field("right",n("Expression")),n("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",n("Expression")).field("consequent",n("Expression")).field("alternate",n("Expression")),n("NewExpression").bases("Expression").build("callee","arguments").field("callee",n("Expression")).field("arguments",[n("Expression")]),n("CallExpression").bases("Expression").build("callee","arguments").field("callee",n("Expression")).field("arguments",[n("Expression")]),n("MemberExpression").bases("Expression").build("object","property","computed").field("object",n("Expression")).field("property",a(n("Identifier"),n("Expression"))).field("computed",Boolean,function(){var e=this.property.type;return"Literal"===e||"MemberExpression"===e||"BinaryExpression"===e}),n("Pattern").bases("Node"),n("SwitchCase").bases("Node").build("test","consequent").field("test",a(n("Expression"),null)).field("consequent",[n("Statement")]),n("Identifier").bases("Node","Expression","Pattern").build("name").field("name",String).field("optional",Boolean,s.false),n("Literal").bases("Node","Expression").build("value").field("value",a(String,Boolean,null,Number,RegExp)).field("regex",a({pattern:String,flags:String},null),function(){if(this.value instanceof RegExp){var e="";return this.value.ignoreCase&&(e+="i"),this.value.multiline&&(e+="m"),this.value.global&&(e+="g"),{pattern:this.value.source,flags:e}}return null}),n("Comment").bases("Printable").field("value",String).field("leading",Boolean,s.true).field("trailing",Boolean,s.false)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={parser:n(553),tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:n(134).EOL||"\n",wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},r=a.hasOwnProperty;t.normalize=function(e){var t=e||a;function n(e){return r.call(t,e)?t[e]:a[e]}return{tabWidth:+n("tabWidth"),useTabs:!!n("useTabs"),reuseWhitespace:!!n("reuseWhitespace"),lineTerminator:n("lineTerminator"),wrapColumn:Math.max(n("wrapColumn"),0),sourceFileName:n("sourceFileName"),sourceMapName:n("sourceMapName"),sourceRoot:n("sourceRoot"),inputSourceMap:n("inputSourceMap"),parser:n("esprima")||n("parser"),range:n("range"),tolerant:n("tolerant"),quote:n("quote"),trailingComma:n("trailingComma"),arrayBracketSpacing:n("arrayBracketSpacing"),objectCurlySpacing:n("objectCurlySpacing"),arrowParensAlways:n("arrowParensAlways"),flowObjectCommas:n("flowObjectCommas"),tokens:!!n("tokens")}}},function(e,t){e.exports=require("os")},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.String=s,t.Array=o;var r=a(n(11));const i=a(n(7)).default.types.namedTypes;function o(e){const t=[e];let n=[];for(;t.length>0;){const a=(e=t.shift()).node;if(i.CallExpression.check(a))t.push(e.get("callee"));else if(i.MemberExpression.check(a))if(t.push(e.get("object")),a.computed){const t=(0,r.default)(e.get("property"));void 0!==t?n=n.concat(o(t)):n.push("")}else n.push(a.property.name);else if(i.Identifier.check(a))n.push(a.name);else if(i.Literal.check(a))n.push(a.raw);else if(i.ThisExpression.check(a))n.push("this");else if(i.ObjectExpression.check(a)){const t=e.get("properties").map(function(e){return s(e.get("key"))+": "+s(e.get("value"))});n.push("{"+t.join(", ")+"}")}else i.ArrayExpression.check(a)&&n.push("["+e.get("elements").map(s).join(", ")+"]")}return n.reverse()}function s(e){return o(e).join(".")}},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){do{e=e.get("object")}while(r.MemberExpression.check(e.node));return e};const r=a(n(7)).default.types.namedTypes},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=null;return(0,i.traverseShallow)(e.get("body"),{visitFunction:()=>!1,visitReturnStatement:e=>(t=(0,r.default)(e.get("argument")),!1)}),t};var r=a(n(11)),i=n(287)},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){m={};const t=y(e);return m={},t};var r=a(n(68)),i=a(n(29)),o=a(n(52)),s=a(n(7)),u=a(n(89)),d=a(n(11)),l=n(289);const c=s.default.types.namedTypes,p={AnyTypeAnnotation:"any",BooleanTypeAnnotation:"boolean",MixedTypeAnnotation:"mixed",NullLiteralTypeAnnotation:"null",NumberTypeAnnotation:"number",StringTypeAnnotation:"string",VoidTypeAnnotation:"void"},h={BooleanLiteralTypeAnnotation:1,NumberLiteralTypeAnnotation:1,StringLiteralTypeAnnotation:1},f={ArrayTypeAnnotation:function(e){return{name:"Array",elements:[y(e.get("elementType"))],raw:(0,o.default)(e)}},GenericTypeAnnotation:function(e){if("$Keys"===e.node.id.name&&e.node.typeParameters)return function(e){let t=e.get("typeParameters","params",0);c.TypeofTypeAnnotation.check(t.node)?t=t.get("argument","id"):c.ObjectTypeAnnotation.check(t.node)||(t=t.get("id"));const n=(0,d.default)(t);if(n&&(c.ObjectExpression.check(n.node)||c.ObjectTypeAnnotation.check(n.node))){const t=(0,l.resolveObjectToNameArray)(n,!0);if(t)return{name:"union",raw:(0,o.default)(e),elements:t.map(e=>({name:"literal",value:e}))}}return null}(e);let t;if(c.QualifiedTypeIdentifier.check(e.node.id)){const n=e.get("id");t="React"===n.node.qualification.name?{name:`${n.node.qualification.name}${n.node.id.name}`,raw:(0,o.default)(n)}:{name:(0,o.default)(n).replace(/<.*>$/,"")}}else t={name:e.node.id.name};if(e.node.typeParameters){const n=e.get("typeParameters").get("params");t=(0,r.default)({},t,{elements:n.map(e=>y(e)),raw:(0,o.default)(e)})}else{const n=(0,d.default)(e.get("id"));n&&n.node.right&&(t=y(n.get("right")))}return t},ObjectTypeAnnotation:function(e){const t={name:"signature",type:"object",raw:(0,o.default)(e),signature:{properties:[]}};return e.get("callProperties").each(e=>{t.signature.constructor=y(e.get("value"))}),e.get("indexers").each(e=>{t.signature.properties.push({key:y(e.get("key")),value:g(e.get("value"))})}),e.get("properties").each(e=>{c.ObjectTypeProperty.check(e.node)&&t.signature.properties.push({key:(0,i.default)(e),value:g(e.get("value"))})}),t},UnionTypeAnnotation:function(e){return{name:"union",raw:(0,o.default)(e),elements:e.get("types").map(e=>y(e))}},NullableTypeAnnotation:function(e){const t=(0,u.default)(e);if(!t)return null;const n=y(t);return n.nullable=!0,n},FunctionTypeAnnotation:function(e){const t={name:"signature",type:"function",raw:(0,o.default)(e),signature:{arguments:[],return:y(e.get("returnType"))}};return e.get("params").each(e=>{const n=(0,u.default)(e);n&&t.signature.arguments.push({name:e.node.name?e.node.name.name:"",type:y(n)})}),t},IntersectionTypeAnnotation:function(e){return{name:"intersection",raw:(0,o.default)(e),elements:e.get("types").map(e=>y(e))}},TupleTypeAnnotation:function(e){const t={name:"tuple",raw:(0,o.default)(e),elements:[]};return e.get("types").each(e=>{t.elements.push(y(e))}),t},TypeofTypeAnnotation:function(e){return y(e.get("argument"))}};function g(e){const t=y(e);return t.required=!e.parentPath.node.optional,t}let m={};function y(e){const t=e.node;let n;const a=c.TypeAlias.check(e.parentPath.node);if(a){if(!0===m[e.parentPath.node.id.name])return{name:e.parentPath.node.id.name};if("object"==typeof m[e.parentPath.node.id.name])return m[e.parentPath.node.id.name];m[e.parentPath.node.id.name]=!0}return c.FlowType.check(t)&&(t.type in p?n={name:p[t.type]}:t.type in h?n={name:"literal",value:t.raw||`${t.value}`}:t.type in f&&(n=f[t.type](e))),n||(n={name:"unknown"}),a&&(m[e.parentPath.node.id.name]=n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plugin=function(e){throw new Error(`The (${e}) Babel 5 plugin is being run with an unsupported Babel version.`)},Object.defineProperty(t,"File",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"buildExternalHelpers",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"resolvePlugin",{enumerable:!0,get:function(){return i.resolvePlugin}}),Object.defineProperty(t,"resolvePreset",{enumerable:!0,get:function(){return i.resolvePreset}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return o.version}}),Object.defineProperty(t,"getEnv",{enumerable:!0,get:function(){return s.getEnv}}),Object.defineProperty(t,"tokTypes",{enumerable:!0,get:function(){return function(){const e=n(103);(function(){return e});return e}().tokTypes}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return function(){const e=g(n(33));(function(){return e});return e}().default}}),Object.defineProperty(t,"template",{enumerable:!0,get:function(){return function(){const e=g(n(104));(function(){return e});return e}().default}}),Object.defineProperty(t,"createConfigItem",{enumerable:!0,get:function(){return d.createConfigItem}}),Object.defineProperty(t,"loadPartialConfig",{enumerable:!0,get:function(){return l.loadPartialConfig}}),Object.defineProperty(t,"loadOptions",{enumerable:!0,get:function(){return l.loadOptions}}),Object.defineProperty(t,"transform",{enumerable:!0,get:function(){return c.transform}}),Object.defineProperty(t,"transformSync",{enumerable:!0,get:function(){return c.transformSync}}),Object.defineProperty(t,"transformAsync",{enumerable:!0,get:function(){return c.transformAsync}}),Object.defineProperty(t,"transformFile",{enumerable:!0,get:function(){return p.transformFile}}),Object.defineProperty(t,"transformFileSync",{enumerable:!0,get:function(){return p.transformFileSync}}),Object.defineProperty(t,"transformFileAsync",{enumerable:!0,get:function(){return p.transformFileAsync}}),Object.defineProperty(t,"transformFromAst",{enumerable:!0,get:function(){return h.transformFromAst}}),Object.defineProperty(t,"transformFromAstSync",{enumerable:!0,get:function(){return h.transformFromAstSync}}),Object.defineProperty(t,"transformFromAstAsync",{enumerable:!0,get:function(){return h.transformFromAstAsync}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.parse}}),Object.defineProperty(t,"parseSync",{enumerable:!0,get:function(){return f.parseSync}}),Object.defineProperty(t,"parseAsync",{enumerable:!0,get:function(){return f.parseAsync}}),t.types=t.OptionManager=t.DEFAULT_EXTENSIONS=void 0;var a=g(n(300)),r=g(n(791)),i=n(105),o=n(806),s=n(371);function u(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(9));return u=function(){return e},e}Object.defineProperty(t,"types",{enumerable:!0,get:function(){return u()}});var d=n(107),l=n(61),c=n(810),p=n(859),h=n(860),f=n(861);function g(e){return e&&e.__esModule?e:{default:e}}const m=Object.freeze([".js",".jsx",".es6",".es",".mjs"]);t.DEFAULT_EXTENSIONS=m;t.OptionManager=class{init(e){return(0,l.loadOptions)(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=Object.keys(t);for(const a of n)if(e[a]!==t[a])return!1;return!0}},function(e,t,n){var a=n(92),r=n(604),i=n(605),o=n(606),s=n(607),u=n(608);function d(e){var t=this.__data__=new a(e);this.size=t.size}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=o,d.prototype.has=s,d.prototype.set=u,e.exports=d},function(e,t,n){var a=n(46)(n(30),"Map");e.exports=a},function(e,t,n){var a=n(615),r=n(622),i=n(624),o=n(625),s=n(626);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=n}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var a=n(313),r=n(636),i=n(59);e.exports=function(e){return i(e)?a(e,!0):r(e)}},function(e,t,n){var a=n(641),r=n(316),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),a(o(e),function(t){return i.call(e,t)}))}:r;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,a=t.length,r=e.length;++n-1:!!l&&a(e,t,n)>-1}},function(e,t,n){var a=n(715);e.exports=function(e){var t=a(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t){e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,r=Array(a);++nn.comments)):n.shouldPrintComment=n.shouldPrintComment||(e=>n.comments||e.indexOf("@license")>=0||e.indexOf("@preserve")>=0);"auto"===n.compact&&(n.compact=e.length>5e5,n.compact&&console.error("[BABEL] Note: The code generator has deoptimised the styling of "+`${t.filename} as it exceeds the max of 500KB.`));n.compact&&(n.indent.adjustMultilineComment=!1);return n}(n,t),t.sourceMaps?new a.default(t,n):null),this.ast=e}generate(){return super.generate(this.ast)}}t.CodeGenerator=class{constructor(e,t,n){this._generator=new o(e,t,n)}generate(){return this._generator.generate()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function(e,t){const{placeholderWhitelist:n=e.placeholderWhitelist,placeholderPattern:a=e.placeholderPattern,preserveComments:r=e.preserveComments,syntacticPlaceholders:i=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:n,placeholderPattern:a,preserveComments:r,syntacticPlaceholders:i}},t.validate=function(e){if(null!=e&&"object"!=typeof e)throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:n,placeholderPattern:a,preserveComments:r,syntacticPlaceholders:i}=t,o=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a=0||(r[n]=e[n]);return r}(t,["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]);if(null!=n&&!(n instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=a&&!(a instanceof RegExp)&&!1!==a)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=r&&"boolean"!=typeof r)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=i&&"boolean"!=typeof i)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===i&&(null!=n||null!=a))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:o,placeholderWhitelist:n||void 0,placeholderPattern:null==a?void 0:a,preserveComments:null!=r&&r,syntacticPlaceholders:null==i?void 0:i}},t.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce((e,t,n)=>(e["$"+n]=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")}},function(e,t,n){var a=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function r(e){for(var t=e.split(" "),n=t.length>1?t[0]:"=",r=(t.length>1?t[1]:t[0]).split("."),i=0;i<3;++i){var o=Number(a[i]||0),s=Number(r[i]||0);if(o!==s)return"<"===n?o="===n&&o>=s}return">="===n}function i(e){var t=e.split(/ ?&& ?/);if(0===t.length)return!1;for(var n=0;n{const i={type:"option",name:a,parent:e};if("preset"===n&&u[a])throw new Error(`${(0,r.msg)(i)} is not allowed in preset options`);if("arguments"!==n&&o[a])throw new Error(`${(0,r.msg)(i)} is only allowed in root programmatic options`);if("arguments"!==n&&"configfile"!==n&&s[a]){if("babelrcfile"===n||"extendsfile"===n)throw new Error(`${(0,r.msg)(i)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, `+"or babel.config.js/config file options");throw new Error(`${(0,r.msg)(i)} is only allowed in root programmatic options, or babel.config.js/config file options`)}(d[a]||u[a]||s[a]||o[a]||c)(i,t[a])}),t}function c(e){const t=e.name;if(a.default[t]){const{message:n,version:i=5}=a.default[t];throw new ReferenceError(`Using removed Babel ${i} option: ${(0,r.msg)(e)} - ${n}`)}{const t=`Unknown option: ${(0,r.msg)(e)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`;throw new ReferenceError(t)}}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";function a(){const e=d(n(33));return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.runAsync=function(e,t,n,a){let r;try{r=l(e,t,n)}catch(e){return a(e)}return a(null,r)},t.runSync=l;var r=d(n(811)),i=d(n(812)),o=d(n(383)),s=d(n(384)),u=d(n(850));function d(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){const d=(0,s.default)(e.passes,(0,o.default)(e),t,n);!function(e,t){for(const n of t){const t=[],o=[],s=[];for(const a of n.concat([(0,i.default)()])){const n=new r.default(e,a.key,a.options);t.push([a,n]),o.push(n),s.push(a.visitor)}for(const[n,a]of t){const t=n.pre;if(t){const n=t.call(a,e);if(c(n))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.")}}const u=a().default.visitors.merge(s,o,e.opts.wrapPluginVisitorMethod);(0,a().default)(e.ast,u,e.scope);for(const[n,a]of t){const t=n.post;if(t){const n=t.call(a,e);if(c(n))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.")}}}}(d,e.passes);const l=d.opts,{outputCode:p,outputMap:h}=!1!==l.code?(0,u.default)(e.passes,d):{};return{metadata:d.metadata,options:l,ast:!0===l.ast?d.ast:null,code:void 0===p?null:p,map:void 0===h?null:h,sourceType:d.ast.program.sourceType}}function c(e){return!(!e||"object"!=typeof e&&"function"!=typeof e||!e.then||"function"!=typeof e.then)}},function(e,t,n){var a=n(27),r=n(74),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(a(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||o.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t,n){"use strict";var a=n(4),r=n(86);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){o.ExpressionStatement.check(e.node)&&(e=e.get("expression"));if(!o.AssignmentExpression.check(e.node)||!o.MemberExpression.check(e.node.left))return!1;const t=i.Array(e.get("left"));return"module"===t[0]&&"exports"===t[1]||"exports"===t[0]};var i=r(n(135));const o=a(n(7)).default.types.namedTypes},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=o){const n=[];e.node.default?n.push(e.get("declaration")):e.node.declaration?t.VariableDeclaration.check(e.node.declaration)?e.get("declaration","declarations").each(e=>n.push(e)):n.push(e.get("declaration")):e.node.specifiers&&e.get("specifiers").each(e=>n.push(e.node.id?e.get("id"):e.get("local")));return n.map(e=>(0,i.default)(e))};var r=a(n(7)),i=a(n(11));const o=r.default.types.namedTypes},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a=0||(r[n]=e[n]);return r}},function(e,t,n){for(var a=n(445),r="undefined"==typeof window?global:window,i=["moz","webkit"],o="AnimationFrame",s=r["request"+o],u=r["cancel"+o]||r["cancelRequest"+o],d=0;!s&&d=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(this.props,[]);return function(e){l.forEach(function(t){return delete e[t]})}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,o.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),o.default.createElement("input",a({},r,{ref:this.inputRef})),o.default.createElement("div",{ref:this.sizerRef,style:d},e),this.props.placeholder?o.default.createElement("div",{ref:this.placeHolderSizerRef,style:d},this.props.placeholder):null)}}]),t}();f.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.default=f},function(e,t,n){e.exports=b;var a=n(21),r=n(268),i=n(130),o=(i.Minimatch,n(536)),s=n(538).EventEmitter,u=n(15),d=n(25),l=n(131),c=n(539),p=n(269),h=(p.alphasort,p.alphasorti,p.setopts),f=p.ownProp,g=n(540),m=(n(63),p.childrenIgnored),y=p.isIgnored,v=n(271);function b(e,t,n){if("function"==typeof t&&(n=t,t={}),t||(t={}),t.sync){if(n)throw new TypeError("callback provided to sync glob");return c(e,t)}return new E(e,t,n)}b.sync=c;var R=b.GlobSync=c.GlobSync;function E(e,t,n){if("function"==typeof t&&(n=t,t=null),t&&t.sync){if(n)throw new TypeError("callback provided to sync glob");return new R(e,t)}if(!(this instanceof E))return new E(e,t,n);h(this,e,t),this._didRealPath=!1;var a=this.minimatch.set.length;this.matches=new Array(a),"function"==typeof n&&(n=v(n),this.on("error",n),this.on("end",function(e){n(null,e)}));var r=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===a)return s();for(var i=!0,o=0;o1)return!0;for(var r=0;rthis.maxLength)return t();if(!this.stat&&f(this.cache,n)){var i=this.cache[n];if(Array.isArray(i)&&(i="DIR"),!r||"DIR"===i)return t(null,i);if(r&&"FILE"===i)return t()}var o=this.statCache[n];if(void 0!==o){if(!1===o)return t(null,o);var s=o.isDirectory()?"DIR":"FILE";return r&&"FILE"===s?t():t(null,s,o)}var u=this,d=g("stat\0"+n,function(r,i){if(i&&i.isSymbolicLink())return a.stat(n,function(a,r){a?u._stat2(e,n,null,i,t):u._stat2(e,n,a,r,t)});u._stat2(e,n,r,i,t)});d&&a.lstat(n,d)},E.prototype._stat2=function(e,t,n,a,r){if(n&&("ENOENT"===n.code||"ENOTDIR"===n.code))return this.statCache[t]=!1,r();var i="/"===e.slice(-1);if(this.statCache[t]=a,"/"===t.slice(-1)&&a&&!a.isDirectory())return r(null,!1,a);var o=!0;return a&&(o=a.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,i&&"FILE"===o?r():r(null,o,a)}},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,a=/[\0\r\f]/g,r=/: */g,i=/zoo|gra/,o=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,u=/ +\s*(?![^(]*[)])/g,d=/ *[\0] */g,l=/,\r+?/g,c=/([\t\r\n ])*\f?&/g,p=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,h=/\W+/g,f=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,m=/:(read-only)/g,y=/\s+(?=[{\];=:>])/g,v=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,R=/\s{2,}/g,E=/([^\(])(:+) */g,x=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,D=/-self|flex-/g,w=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,T="-webkit-",P="-moz-",k="-ms-",O=59,F=125,j=123,M=40,I=41,B=91,N=93,L=10,V=13,z=9,U=64,H=32,$=38,W=45,G=95,q=42,K=44,X=58,J=39,Y=34,Q=47,Z=62,ee=43,te=126,ne=0,ae=12,re=11,ie=107,oe=109,se=115,ue=112,de=111,le=105,ce=99,pe=100,he=112,fe=1,ge=1,me=0,ye=1,ve=1,be=1,Re=0,Ee=0,xe=0,Se=[],Ce=[],De=0,we=null,Ae=-2,_e=-1,Te=0,Pe=1,ke=2,Oe=3,Fe=0,je=1,Me="",Ie="",Be="";function Ne(e,t,r,i,o){for(var s,u,l=0,c=0,p=0,h=0,y=0,v=0,b=0,R=0,x=0,C=0,D=0,w=0,A=0,_=0,G=0,Re=0,Ce=0,we=0,Ae=0,_e=r.length,Ve=_e-1,Ge="",qe="",Ke="",Xe="",Je="",Ye="";G<_e;){if(b=r.charCodeAt(G),G===Ve&&c+h+p+l!==0&&(0!==c&&(b=c===Q?L:Q),h=p=l=0,_e++,Ve++),c+h+p+l===0){if(G===Ve&&(Re>0&&(qe=qe.replace(a,"")),qe.trim().length>0)){switch(b){case H:case z:case O:case V:case L:break;default:qe+=r.charAt(G)}b=O}if(1===Ce)switch(b){case j:case F:case O:case Y:case J:case M:case I:case K:Ce=0;case z:case V:case L:case H:break;default:for(Ce=0,Ae=G,y=b,G--,b=O;Ae<_e;)switch(r.charCodeAt(Ae++)){case L:case V:case O:++G,b=y,Ae=_e;break;case X:Re>0&&(++G,b=y);case j:Ae=_e}}switch(b){case j:for(y=(qe=qe.trim()).charCodeAt(0),D=1,Ae=++G;G<_e;){switch(b=r.charCodeAt(G)){case j:D++;break;case F:D--;break;case Q:switch(v=r.charCodeAt(G+1)){case q:case Q:G=We(v,G,Ve,r)}break;case B:b++;case M:b++;case Y:case J:for(;G++0&&(qe=qe.replace(a,"")),v=qe.charCodeAt(1)){case pe:case oe:case se:case W:s=t;break;default:s=Se}if(Ae=(Ke=Ne(t,s,Ke,v,o+1)).length,xe>0&&0===Ae&&(Ae=qe.length),De>0&&(s=Le(Se,qe,we),u=$e(Oe,Ke,s,t,ge,fe,Ae,v,o,i),qe=s.join(""),void 0!==u&&0===(Ae=(Ke=u.trim()).length)&&(v=0,Ke="")),Ae>0)switch(v){case se:qe=qe.replace(S,He);case pe:case oe:case W:Ke=qe+"{"+Ke+"}";break;case ie:Ke=(qe=qe.replace(f,"$1 $2"+(je>0?Me:"")))+"{"+Ke+"}",Ke=1===ve||2===ve&&Ue("@"+Ke,3)?"@"+T+Ke+"@"+Ke:"@"+Ke;break;default:Ke=qe+Ke,i===he&&(Xe+=Ke,Ke="")}else Ke="";break;default:Ke=Ne(t,Le(t,qe,we),Ke,i,o+1)}Je+=Ke,w=0,Ce=0,_=0,Re=0,we=0,A=0,qe="",Ke="",b=r.charCodeAt(++G);break;case F:case O:if((Ae=(qe=(Re>0?qe.replace(a,""):qe).trim()).length)>1)switch(0===_&&((y=qe.charCodeAt(0))===W||y>96&&y<123)&&(Ae=(qe=qe.replace(" ",":")).length),De>0&&void 0!==(u=$e(Pe,qe,t,e,ge,fe,Xe.length,i,o,i))&&0===(Ae=(qe=u.trim()).length)&&(qe="\0\0"),y=qe.charCodeAt(0),v=qe.charCodeAt(1),y){case ne:break;case U:if(v===le||v===ce){Ye+=qe+r.charAt(G);break}default:if(qe.charCodeAt(Ae-1)===X)break;Xe+=ze(qe,y,v,qe.charCodeAt(2))}w=0,Ce=0,_=0,Re=0,we=0,qe="",b=r.charCodeAt(++G)}}switch(b){case V:case L:if(c+h+p+l+Ee===0)switch(C){case I:case J:case Y:case U:case te:case Z:case q:case ee:case Q:case W:case X:case K:case O:case j:case F:break;default:_>0&&(Ce=1)}c===Q?c=0:ye+w===0&&i!==ie&&qe.length>0&&(Re=1,qe+="\0"),De*Fe>0&&$e(Te,qe,t,e,ge,fe,Xe.length,i,o,i),fe=1,ge++;break;case O:case F:if(c+h+p+l===0){fe++;break}default:switch(fe++,Ge=r.charAt(G),b){case z:case H:if(h+l+c===0)switch(R){case K:case X:case z:case H:Ge="";break;default:b!==H&&(Ge=" ")}break;case ne:Ge="\\0";break;case ae:Ge="\\f";break;case re:Ge="\\v";break;case $:h+c+l===0&&ye>0&&(we=1,Re=1,Ge="\f"+Ge);break;case 108:if(h+c+l+me===0&&_>0)switch(G-_){case 2:R===ue&&r.charCodeAt(G-3)===X&&(me=R);case 8:x===de&&(me=x)}break;case X:h+c+l===0&&(_=G);break;case K:c+p+h+l===0&&(Re=1,Ge+="\r");break;case Y:case J:0===c&&(h=h===b?0:0===h?b:h);break;case B:h+c+p===0&&l++;break;case N:h+c+p===0&&l--;break;case I:h+c+l===0&&p--;break;case M:if(h+c+l===0){if(0===w)switch(2*R+3*x){case 533:break;default:D=0,w=1}p++}break;case U:c+p+h+l+_+A===0&&(A=1);break;case q:case Q:if(h+l+p>0)break;switch(c){case 0:switch(2*b+3*r.charCodeAt(G+1)){case 235:c=Q;break;case 220:Ae=G,c=q}break;case q:b===Q&&R===q&&Ae+2!==G&&(33===r.charCodeAt(Ae+2)&&(Xe+=r.substring(Ae,G+1)),Ge="",c=0)}}if(0===c){if(ye+h+l+A===0&&i!==ie&&b!==O)switch(b){case K:case te:case Z:case ee:case I:case M:if(0===w){switch(R){case z:case H:case L:case V:Ge+="\0";break;default:Ge="\0"+Ge+(b===K?"":"\0")}Re=1}else switch(b){case M:_+7===G&&108===R&&(_=0),w=++D;break;case I:0==(w=--D)&&(Re=1,Ge+="\0")}break;case z:case H:switch(R){case ne:case j:case F:case O:case K:case ae:case z:case H:case L:case V:break;default:0===w&&(Re=1,Ge+="\0")}}qe+=Ge,b!==H&&b!==z&&(C=b)}}x=R,R=b,G++}if(Ae=Xe.length,xe>0&&0===Ae&&0===Je.length&&0===t[0].length==0&&(i!==oe||1===t.length&&(ye>0?Ie:Be)===t[0])&&(Ae=t.join(",").length+2),Ae>0){if(s=0===ye&&i!==ie?function(e){for(var t,n,r=0,i=e.length,o=Array(i);r1)){if(p=u.charCodeAt(u.length-1),h=n.charCodeAt(0),t="",0!==l)switch(p){case q:case te:case Z:case ee:case H:case M:break;default:t=" "}switch(h){case $:n=t+Ie;case te:case Z:case ee:case H:case I:case M:break;case B:n=t+n+Ie;break;case X:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(be>0){n=t+n.substring(8,c-1);break}default:(l<1||s[l-1].length<1)&&(n=t+Ie+n)}break;case K:t="";default:n=c>1&&n.indexOf(":")>0?t+n.replace(E,"$1"+Ie+"$2"):t+n+Ie}u+=n}o[r]=u.replace(a,"").trim()}return o}(t):t,De>0&&void 0!==(u=$e(ke,Xe,s,e,ge,fe,Ae,i,o,i))&&0===(Xe=u).length)return Ye+Xe+Je;if(Xe=s.join(",")+"{"+Xe+"}",ve*me!=0){switch(2!==ve||Ue(Xe,2)||(me=0),me){case de:Xe=Xe.replace(m,":"+P+"$1")+Xe;break;case ue:Xe=Xe.replace(g,"::"+T+"input-$1")+Xe.replace(g,"::"+P+"$1")+Xe.replace(g,":"+k+"input-$1")+Xe}me=0}}return Ye+Xe+Je}function Le(e,t,n){var a=t.trim().split(l),r=a,i=a.length,o=e.length;switch(o){case 0:case 1:for(var s=0,u=0===o?"":e[0]+" ";s0&&ye>0)return r.replace(p,"$1").replace(c,"$1"+Be);break;default:return e.trim()+r.replace(c,"$1"+e.trim())}default:if(n*ye>0&&r.indexOf("\f")>0)return r.replace(c,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+r}function ze(e,t,n,a){var d,l=0,c=e+";",p=2*t+3*n+4*a;if(944===p)return function(e){var t=e.length,n=e.indexOf(":",9)+1,a=e.substring(0,n).trim(),r=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*je){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:for(var i=r.split((r="",s)),o=0,n=0,t=i.length;oU&&c<90||c>96&&c<123||c===G||c===W&&d.charCodeAt(1)!==W))switch(isNaN(parseFloat(d))+(-1!==d.indexOf("("))){case 1:switch(d){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:d+=Me}}l[n++]=d}r+=(0===o?"":",")+l.join(" ")}}return r=a+r+";",1===ve||2===ve&&Ue(r,1)?T+r+r:r}(c);if(0===ve||2===ve&&!Ue(c,1))return c;switch(p){case 1015:return 97===c.charCodeAt(10)?T+c+c:c;case 951:return 116===c.charCodeAt(3)?T+c+c:c;case 963:return 110===c.charCodeAt(5)?T+c+c:c;case 1009:if(100!==c.charCodeAt(4))break;case 969:case 942:return T+c+c;case 978:return T+c+P+c+c;case 1019:case 983:return T+c+P+c+k+c+c;case 883:return c.charCodeAt(8)===W?T+c+c:c.indexOf("image-set(",11)>0?c.replace(_,"$1"+T+"$2")+c:c;case 932:if(c.charCodeAt(4)===W)switch(c.charCodeAt(5)){case 103:return T+"box-"+c.replace("-grow","")+T+c+k+c.replace("grow","positive")+c;case 115:return T+c+k+c.replace("shrink","negative")+c;case 98:return T+c+k+c.replace("basis","preferred-size")+c}return T+c+k+c+c;case 964:return T+c+k+"flex-"+c+c;case 1023:if(99!==c.charCodeAt(8))break;return d=c.substring(c.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),T+"box-pack"+d+T+c+k+"flex-pack"+d+c;case 1005:return i.test(c)?c.replace(r,":"+T)+c.replace(r,":"+P)+c:c;case 1e3:switch(l=(d=c.substring(13).trim()).indexOf("-")+1,d.charCodeAt(0)+d.charCodeAt(l)){case 226:d=c.replace(x,"tb");break;case 232:d=c.replace(x,"tb-rl");break;case 220:d=c.replace(x,"lr");break;default:return c}return T+c+k+d+c;case 1017:if(-1===c.indexOf("sticky",9))return c;case 975:switch(l=(c=e).length-10,p=(d=(33===c.charCodeAt(l)?c.substring(0,l):c).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|d.charCodeAt(7))){case 203:if(d.charCodeAt(8)<111)break;case 115:c=c.replace(d,T+d)+";"+c;break;case 207:case 102:c=c.replace(d,T+(p>102?"inline-":"")+"box")+";"+c.replace(d,T+d)+";"+c.replace(d,k+d+"box")+";"+c}return c+";";case 938:if(c.charCodeAt(5)===W)switch(c.charCodeAt(6)){case 105:return d=c.replace("-items",""),T+c+T+"box-"+d+k+"flex-"+d+c;case 115:return T+c+k+"flex-item-"+c.replace(D,"")+c;default:return T+c+k+"flex-line-pack"+c.replace("align-content","").replace(D,"")+c}break;case 973:case 989:if(c.charCodeAt(3)!==W||122===c.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(d=e.substring(e.indexOf(":")+1)).charCodeAt(0)?ze(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):c.replace(d,T+d)+c.replace(d,P+d.replace("fill-",""))+c;break;case 962:if(c=T+c+(102===c.charCodeAt(5)?k+c:"")+c,n+a===211&&105===c.charCodeAt(13)&&c.indexOf("transform",10)>0)return c.substring(0,c.indexOf(";",27)+1).replace(o,"$1"+T+"$2")+c}return c}function Ue(e,t){var n=e.indexOf(1===t?":":"{"),a=e.substring(0,3!==t?n:10),r=e.substring(n+1,e.length-1);return we(2!==t?a:a.replace(w,"$1"),r,t)}function He(e,t){var n=ze(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function $e(e,t,n,a,r,i,o,s,u,d){for(var l,c=0,p=t;c0&&(Me=r.replace(h,i===B?"":"-")),i=1,1===ye?Be=r:Ie=r;var o,s=[Be];De>0&&void 0!==(o=$e(_e,n,s,s,ge,fe,0,0,0,0))&&"string"==typeof o&&(n=o);var u=Ne(Se,s,n,0,0);return De>0&&void 0!==(o=$e(Ae,u,s,s,ge,fe,u.length,0,0,0))&&"string"!=typeof(u=o)&&(i=0),Me="",Be="",Ie="",me=0,ge=1,fe=1,Re*i==0?u:u.replace(a,"").replace(y,"").replace(v,"$1").replace(b,"$1").replace(R," ")}return qe.use=function e(t){switch(t){case void 0:case null:De=Ce.length=0;break;default:if("function"==typeof t)Ce[De++]=t;else if("object"==typeof t)for(var n=0,a=t.length;n])/g,v=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,R=/\s{2,}/g,E=/([^\(])(:+) */g,x=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,D=/-self|flex-/g,w=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,T="-webkit-",P="-moz-",k="-ms-",O=59,F=125,j=123,M=40,I=41,B=91,N=93,L=10,V=13,z=9,U=64,H=32,$=38,W=45,G=95,q=42,K=44,X=58,J=39,Y=34,Q=47,Z=62,ee=43,te=126,ne=0,ae=12,re=11,ie=107,oe=109,se=115,ue=112,de=111,le=105,ce=99,pe=100,he=112,fe=1,ge=1,me=0,ye=1,ve=1,be=1,Re=0,Ee=0,xe=0,Se=[],Ce=[],De=0,we=null,Ae=-2,_e=-1,Te=0,Pe=1,ke=2,Oe=3,Fe=0,je=1,Me="",Ie="",Be="";function Ne(e,t,r,i,o){for(var s,u,l=0,c=0,p=0,h=0,y=0,v=0,b=0,R=0,x=0,C=0,D=0,w=0,A=0,_=0,G=0,Re=0,Ce=0,we=0,Ae=0,_e=r.length,Ve=_e-1,Ge="",qe="",Ke="",Xe="",Je="",Ye="";G<_e;){if(b=r.charCodeAt(G),G===Ve&&c+h+p+l!==0&&(0!==c&&(b=c===Q?L:Q),h=p=l=0,_e++,Ve++),c+h+p+l===0){if(G===Ve&&(Re>0&&(qe=qe.replace(a,"")),qe.trim().length>0)){switch(b){case H:case z:case O:case V:case L:break;default:qe+=r.charAt(G)}b=O}if(1===Ce)switch(b){case j:case F:case O:case Y:case J:case M:case I:case K:Ce=0;case z:case V:case L:case H:break;default:for(Ce=0,Ae=G,y=b,G--,b=O;Ae<_e;)switch(r.charCodeAt(Ae++)){case L:case V:case O:++G,b=y,Ae=_e;break;case X:Re>0&&(++G,b=y);case j:Ae=_e}}switch(b){case j:for(qe=qe.trim(),y=qe.charCodeAt(0),D=1,Ae=++G;G<_e;){switch(b=r.charCodeAt(G)){case j:D++;break;case F:D--;break;case Q:switch(v=r.charCodeAt(G+1)){case q:case Q:G=We(v,G,Ve,r)}break;case B:b++;case M:b++;case Y:case J:for(;G++0&&(qe=qe.replace(a,"")),v=qe.charCodeAt(1)){case pe:case oe:case se:case W:s=t;break;default:s=Se}if(Ke=Ne(t,s,Ke,v,o+1),Ae=Ke.length,xe>0&&0===Ae&&(Ae=qe.length),De>0&&(s=Le(Se,qe,we),u=$e(Oe,Ke,s,t,ge,fe,Ae,v,o,i),qe=s.join(""),void 0!==u&&0===(Ae=(Ke=u.trim()).length)&&(v=0,Ke="")),Ae>0)switch(v){case se:qe=qe.replace(S,He);case pe:case oe:case W:Ke=qe+"{"+Ke+"}";break;case ie:qe=qe.replace(f,"$1 $2"+(je>0?Me:"")),Ke=qe+"{"+Ke+"}",Ke=1===ve||2===ve&&Ue("@"+Ke,3)?"@"+T+Ke+"@"+Ke:"@"+Ke;break;default:Ke=qe+Ke,i===he&&(Xe+=Ke,Ke="")}else Ke="";break;default:Ke=Ne(t,Le(t,qe,we),Ke,i,o+1)}Je+=Ke,w=0,Ce=0,_=0,Re=0,we=0,A=0,qe="",Ke="",b=r.charCodeAt(++G);break;case F:case O:if(qe=(Re>0?qe.replace(a,""):qe).trim(),(Ae=qe.length)>1)switch(0===_&&((y=qe.charCodeAt(0))===W||y>96&&y<123)&&(Ae=(qe=qe.replace(" ",":")).length),De>0&&void 0!==(u=$e(Pe,qe,t,e,ge,fe,Xe.length,i,o,i))&&0===(Ae=(qe=u.trim()).length)&&(qe="\0\0"),y=qe.charCodeAt(0),v=qe.charCodeAt(1),y){case ne:break;case U:if(v===le||v===ce){Ye+=qe+r.charAt(G);break}default:if(qe.charCodeAt(Ae-1)===X)break;Xe+=ze(qe,y,v,qe.charCodeAt(2))}w=0,Ce=0,_=0,Re=0,we=0,qe="",b=r.charCodeAt(++G)}}switch(b){case V:case L:if(c+h+p+l+Ee===0)switch(C){case I:case J:case Y:case U:case te:case Z:case q:case ee:case Q:case W:case X:case K:case O:case j:case F:break;default:_>0&&(Ce=1)}c===Q?c=0:ye+w===0&&i!==ie&&qe.length>0&&(Re=1,qe+="\0"),De*Fe>0&&$e(Te,qe,t,e,ge,fe,Xe.length,i,o,i),fe=1,ge++;break;case O:case F:if(c+h+p+l===0){fe++;break}default:switch(fe++,Ge=r.charAt(G),b){case z:case H:if(h+l+c===0)switch(R){case K:case X:case z:case H:Ge="";break;default:b!==H&&(Ge=" ")}break;case ne:Ge="\\0";break;case ae:Ge="\\f";break;case re:Ge="\\v";break;case $:h+c+l===0&&ye>0&&(we=1,Re=1,Ge="\f"+Ge);break;case 108:if(h+c+l+me===0&&_>0)switch(G-_){case 2:R===ue&&r.charCodeAt(G-3)===X&&(me=R);case 8:x===de&&(me=x)}break;case X:h+c+l===0&&(_=G);break;case K:c+p+h+l===0&&(Re=1,Ge+="\r");break;case Y:case J:0===c&&(h=h===b?0:0===h?b:h);break;case B:h+c+p===0&&l++;break;case N:h+c+p===0&&l--;break;case I:h+c+l===0&&p--;break;case M:if(h+c+l===0){if(0===w)switch(2*R+3*x){case 533:break;default:D=0,w=1}p++}break;case U:c+p+h+l+_+A===0&&(A=1);break;case q:case Q:if(h+l+p>0)break;switch(c){case 0:switch(2*b+3*r.charCodeAt(G+1)){case 235:c=Q;break;case 220:Ae=G,c=q}break;case q:b===Q&&R===q&&Ae+2!==G&&(33===r.charCodeAt(Ae+2)&&(Xe+=r.substring(Ae,G+1)),Ge="",c=0)}}if(0===c){if(ye+h+l+A===0&&i!==ie&&b!==O)switch(b){case K:case te:case Z:case ee:case I:case M:if(0===w){switch(R){case z:case H:case L:case V:Ge+="\0";break;default:Ge="\0"+Ge+(b===K?"":"\0")}Re=1}else switch(b){case M:_+7===G&&108===R&&(_=0),w=++D;break;case I:0==(w=--D)&&(Re=1,Ge+="\0")}break;case z:case H:switch(R){case ne:case j:case F:case O:case K:case ae:case z:case H:case L:case V:break;default:0===w&&(Re=1,Ge+="\0")}}qe+=Ge,b!==H&&b!==z&&(C=b)}}x=R,R=b,G++}if(Ae=Xe.length,xe>0&&0===Ae&&0===Je.length&&0===t[0].length==0&&(i!==oe||1===t.length&&(ye>0?Ie:Be)===t[0])&&(Ae=t.join(",").length+2),Ae>0){if(s=0===ye&&i!==ie?function(e){for(var t,n,r=0,i=e.length,o=Array(i);r1)){if(p=u.charCodeAt(u.length-1),h=n.charCodeAt(0),t="",0!==l)switch(p){case q:case te:case Z:case ee:case H:case M:break;default:t=" "}switch(h){case $:n=t+Ie;case te:case Z:case ee:case H:case I:case M:break;case B:n=t+n+Ie;break;case X:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(be>0){n=t+n.substring(8,c-1);break}default:(l<1||s[l-1].length<1)&&(n=t+Ie+n)}break;case K:t="";default:n=c>1&&n.indexOf(":")>0?t+n.replace(E,"$1"+Ie+"$2"):t+n+Ie}u+=n}o[r]=u.replace(a,"").trim()}return o}(t):t,De>0&&void 0!==(u=$e(ke,Xe,s,e,ge,fe,Ae,i,o,i))&&0===(Xe=u).length)return Ye+Xe+Je;if(Xe=s.join(",")+"{"+Xe+"}",ve*me!=0){switch(2!==ve||Ue(Xe,2)||(me=0),me){case de:Xe=Xe.replace(m,":"+P+"$1")+Xe;break;case ue:Xe=Xe.replace(g,"::"+T+"input-$1")+Xe.replace(g,"::"+P+"$1")+Xe.replace(g,":"+k+"input-$1")+Xe}me=0}}return Ye+Xe+Je}function Le(e,t,n){var a=t.trim().split(l),r=a,i=a.length,o=e.length;switch(o){case 0:case 1:for(var s=0,u=0===o?"":e[0]+" ";s0&&ye>0)return r.replace(p,"$1").replace(c,"$1"+Be);break;default:return e.trim()+r.replace(c,"$1"+e.trim())}default:if(n*ye>0&&r.indexOf("\f")>0)return r.replace(c,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+r}function ze(e,t,n,a){var d,l=0,c=e+";",p=2*t+3*n+4*a;if(944===p)return function(e){var t=e.length,n=e.indexOf(":",9)+1,a=e.substring(0,n).trim(),r=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*je){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:for(var i=r.split((r="",s)),o=0,n=0,t=i.length;oU&&c<90||c>96&&c<123||c===G||c===W&&d.charCodeAt(1)!==W))switch(isNaN(parseFloat(d))+(-1!==d.indexOf("("))){case 1:switch(d){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:d+=Me}}l[n++]=d}r+=(0===o?"":",")+l.join(" ")}}return r=a+r+";",1===ve||2===ve&&Ue(r,1)?T+r+r:r}(c);if(0===ve||2===ve&&!Ue(c,1))return c;switch(p){case 1015:return 97===c.charCodeAt(10)?T+c+c:c;case 951:return 116===c.charCodeAt(3)?T+c+c:c;case 963:return 110===c.charCodeAt(5)?T+c+c:c;case 1009:if(100!==c.charCodeAt(4))break;case 969:case 942:return T+c+c;case 978:return T+c+P+c+c;case 1019:case 983:return T+c+P+c+k+c+c;case 883:return c.charCodeAt(8)===W?T+c+c:c.indexOf("image-set(",11)>0?c.replace(_,"$1"+T+"$2")+c:c;case 932:if(c.charCodeAt(4)===W)switch(c.charCodeAt(5)){case 103:return T+"box-"+c.replace("-grow","")+T+c+k+c.replace("grow","positive")+c;case 115:return T+c+k+c.replace("shrink","negative")+c;case 98:return T+c+k+c.replace("basis","preferred-size")+c}return T+c+k+c+c;case 964:return T+c+k+"flex-"+c+c;case 1023:if(99!==c.charCodeAt(8))break;return d=c.substring(c.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),T+"box-pack"+d+T+c+k+"flex-pack"+d+c;case 1005:return i.test(c)?c.replace(r,":"+T)+c.replace(r,":"+P)+c:c;case 1e3:switch(d=c.substring(13).trim(),l=d.indexOf("-")+1,d.charCodeAt(0)+d.charCodeAt(l)){case 226:d=c.replace(x,"tb");break;case 232:d=c.replace(x,"tb-rl");break;case 220:d=c.replace(x,"lr");break;default:return c}return T+c+k+d+c;case 1017:if(-1===c.indexOf("sticky",9))return c;case 975:switch(l=(c=e).length-10,d=(33===c.charCodeAt(l)?c.substring(0,l):c).substring(e.indexOf(":",7)+1).trim(),p=d.charCodeAt(0)+(0|d.charCodeAt(7))){case 203:if(d.charCodeAt(8)<111)break;case 115:c=c.replace(d,T+d)+";"+c;break;case 207:case 102:c=c.replace(d,T+(p>102?"inline-":"")+"box")+";"+c.replace(d,T+d)+";"+c.replace(d,k+d+"box")+";"+c}return c+";";case 938:if(c.charCodeAt(5)===W)switch(c.charCodeAt(6)){case 105:return d=c.replace("-items",""),T+c+T+"box-"+d+k+"flex-"+d+c;case 115:return T+c+k+"flex-item-"+c.replace(D,"")+c;default:return T+c+k+"flex-line-pack"+c.replace("align-content","").replace(D,"")+c}break;case 973:case 989:if(c.charCodeAt(3)!==W||122===c.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(d=e.substring(e.indexOf(":")+1)).charCodeAt(0)?ze(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):c.replace(d,T+d)+c.replace(d,P+d.replace("fill-",""))+c;break;case 962:if(c=T+c+(102===c.charCodeAt(5)?k+c:"")+c,n+a===211&&105===c.charCodeAt(13)&&c.indexOf("transform",10)>0)return c.substring(0,c.indexOf(";",27)+1).replace(o,"$1"+T+"$2")+c}return c}function Ue(e,t){var n=e.indexOf(1===t?":":"{"),a=e.substring(0,3!==t?n:10),r=e.substring(n+1,e.length-1);return we(2!==t?a:a.replace(w,"$1"),r,t)}function He(e,t){var n=ze(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function $e(e,t,n,a,r,i,o,s,u,d){for(var l,c=0,p=t;c0&&(Me=r.replace(h,i===B?"":"-")),i=1,1===ye?Be=r:Ie=r;var o,s=[Be];De>0&&void 0!==(o=$e(_e,n,s,s,ge,fe,0,0,0,0))&&"string"==typeof o&&(n=o);var u=Ne(Se,s,n,0,0);return De>0&&void 0!==(o=$e(Ae,u,s,s,ge,fe,u.length,0,0,0))&&"string"!=typeof(u=o)&&(i=0),Me="",Be="",Ie="",me=0,ge=1,fe=1,Re*i==0?u:function(e){return e.replace(a,"").replace(y,"").replace(v,"$1").replace(b,"$1").replace(R," ")}(u)}return qe.use=function e(t){switch(t){case void 0:case null:De=Ce.length=0;break;default:if("function"==typeof t)Ce[De++]=t;else if("object"==typeof t)for(var n=0,a=t.length;n=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n},C=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},D=function(e){return"object"===(void 0===e?"undefined":v(e))&&e.constructor===Object};var w=function(e){function t(n){b(this,t);for(var a=arguments.length,r=Array(a>1?a-1:0),i=1;i25?39:97))},L=function(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=N(n%52)+t;return N(n%52)+t},V=function(e,t){for(var n=[e[0]],a=0,r=t.length;a1?t-1:0),a=1;a"+e()+""}},ie=function(e,t){return function(){var n,a=((n={})[$]=Z(t),n),r=X();return r&&(a.nonce=r),o.a.createElement("style",E({},a,{dangerouslySetInnerHTML:{__html:e()}}))}},oe=function(e){return function(){return Object.keys(e)}},se=function e(t,n){var a=void 0===t?Object.create(null):t,r=void 0===n?Object.create(null):n,i=function(e){var t=r[e];return void 0!==t?t:r[e]=[""]},o=function(){var e="";for(var t in r){var n=r[t][0];n&&(e+=ne(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=E({},e[n]);return t}(a),n=Object.create(null);for(var i in r)n[i]=[r[i][0]];return e(t,n)},css:o,getIds:oe(r),hasNameForId:Q(a),insertMarker:i,insertRules:function(e,t,n){i(e)[0]+=t.join(" "),J(a,e,n)},removeRules:function(e){var t=r[e];void 0!==t&&(t[0]="",Y(a,e))},sealed:!1,styleTag:null,toElement:ie(o,a),toHTML:re(o,a)}},ue=function(e,t,n,a,r){if(G&&!n){var i=function(e,t,n){var a=document.createElement("style");a.setAttribute($,"");var r=X();if(r&&a.setAttribute("nonce",r),a.appendChild(document.createTextNode("")),e&&!t)e.appendChild(a);else{if(!t||!e||!t.parentNode)throw new w(6);t.parentNode.insertBefore(a,n?t:t.nextSibling)}return a}(e,t,a);return function(e,t){var n=Object.create(null),a=Object.create(null),r=[],i=void 0!==t,o=!1,s=function(e){var t=a[e];return void 0!==t?t:(a[e]=r.length,r.push(0),Y(n,e),a[e])},u=function(){var t=ee(e).cssRules,n="";for(var i in a){n+=ne(i);for(var o=a[i],s=ae(r,o),u=s-r[o];u0&&(o=!0,t().insertRules(a+"-import",f)),r[l]+=h,J(n,a,d)},removeRules:function(s){var u=a[s];if(void 0!==u){var d=r[u];!function(e,t,n){for(var a=t-n,r=t;r>a;r-=1)e.deleteRule(r)}(ee(e),ae(r,u),d),r[u]=0,Y(n,s),i&&o&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ie(u,n),toHTML:re(u,n)}}(i,r)}return se()},de=/\s+/,le=void 0;le=G?1e3:-1;var ce,pe=0,he=void 0,fe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G?document.head:null,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=ue(t.target,n?n.styleTag:null,t.forceServer,!0)},pe+=1,this.id=pe,this.forceServer=a,this.target=a?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!G||this.forceServer)return this;var e=[],t=[],n=!1,a=document.querySelectorAll("style["+$+"]"),r=a.length;if(0===r)return this;for(var i=0;i0&&void 0!==arguments[0]&&arguments[0];he=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),a=e.clone(),r=0;r<+~=|^:(),"'`-]+/g,be=/(^-|-$)/g;function Re(e){return e.replace(ve,"-").replace(be,"")}function Ee(e){return e.displayName||e.name||"Component"}function xe(e){return"string"==typeof e}var Se=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:Animation|Touch|Load|Drag)Start|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|Lo(?:stPointer|ad)|TimeUpdate|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|GotPointer|MouseDown|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|KeyPress|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|P(?:rogress|laying)|DragEnd|Key(?:Down|Up)|(?:MouseU|Dro)p|(?:Wait|Seek)ing|Scroll|Focus|Paste|Abort|Drag|Play|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|onPointerLeav|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|onPointerMov|(?:attribute|glyph)Nam|playsInlin|(?:writing|input|edge)Mod|(?:formE|e)ncTyp|(?:amplitu|mo)d|(?:xlinkTy|itemSco|keyTy|slo)p|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ord)s|o(?:lor(?:Interpolation)?|nt(?:rols|ent))|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|(?:ontrolsLis|apHeigh)t|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|o(?:ntextMenu|ls)|(?:rossOrigi|olSpa)n|l(?:ip(?:Path)?|ass)|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|auto[Ff]ocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|on(?:PointerDow|FocusI)|formActio|zoomAndPa|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveAspectRatio|ointsAt[X-Z]|anose1)|(?:(?:allowPaymentReque|(?:fontSize|length)Adju|manife)s|strokeMiterlimi|(?:(?:specularE|e)xpon|renderingInt|asc)en|(?:specularConsta|repeatCou|fontVaria)n|d(?:iffuseConsta|esce)n|baselineShif|vectorEffec|onPointerOu|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|markerStar|a(?:utoCorrec|bou)|onFocusOu|intercep|restar|forma|inlis|heigh|lis)t|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:gradientT|patternT|t)ransform|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|(?:markerM|onInval)i|preloa|metho|kin)d|k(?:ernel(?:UnitLength|Matrix)|[1-4])|strokeDasharray|(?:onPointerCanc|lab)el|(?:allowFullScre|hidd)en|a(?:l(?:lowUserMedia|phabetic|t)|rabicForm|sync)|systemLanguage|(?:(?:o(?:nPointer(?:Ent|Ov)|rd)|allowReord|placehold|frameBord|paintOrd|post)e|repeatDu|d(?:efe|u))r|(?:pointerEve|keyPoi)nts|preserveAlpha|(?:strokeLineca|onPointerU|itemPro|useMa|wra|loo)p|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|unicodeRange|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|(?:vI|i)deographic|mathematical|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|vAlphabetic|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|(?:xmlnsXl|valueL)ink|mediaGroup|spellCheck|(?:text|m(?:in|ax))Length|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|pathLength|(?:xlinkHr|glyphR)ef|innerHTML|xlinkShow|f(?:o(?:ntSize|rm?)|il(?:ter|l))|(?:tabInde|(?:sand|b)bo|viewBo)x|autoPlay|r(?:e(?:quired|sult|f))?|(?:(?:href|xml|src)La|kerni)ng|o(?:verflow|pen)|i(?:temRef|n2|s)|p(?:attern|oints)|unicode|d(?:efault|ata|ir)?|divisor|t(?:arget[XY]|o)|(?:stri|la)ng|(?:width|size)s|prefix|typeof|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|s(?:t(?:roke|art)|hape|cope|rc)|a(?:ccept|llow|s)|itemID|t(?:arget|ype)|m(?:edia|a(?:sk|x)|in)|value|width|x(?:mlns)?|size|href|k(?:ey)?|end|low|by|x[12]|y[12]|g[12]|i[dn]|f[xy]|[yz])$/,Ce=RegExp.prototype.test.bind(new RegExp("^(x|data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"));var De,we,Ae="__styled-components__",_e=Ae+"next__",Te=p.a.shape({getTheme:p.a.func,subscribe:p.a.func,unsubscribe:p.a.func}),Pe=((De={})[Ae]=p.a.func,De[_e]=Te,De);var ke,Oe=function(e){function t(){b(this,t);var n=C(this,e.call(this));return n.unsubscribeToOuterId=-1,n.getTheme=n.getTheme.bind(n),n}return x(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[_e];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=function(e){var t={},n=0,a=e;return{publish:function(e){for(var n in a=e,t){var r=t[n];void 0!==r&&r(a)}},subscribe:function(e){var r=n;return t[r]=e,n+=1,e(a),r},unsubscribe:function(e){t[e]=void 0}}}(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return E({},this.context,((e={})[_e]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[Ae]=function(e){var n=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(n)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[_e].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if("function"==typeof t)return t(this.outerTheme);if(null===t||Array.isArray(t)||"object"!==(void 0===t?"undefined":v(t)))throw new w(8);return E({},this.outerTheme,t)},t.prototype.publish=function(e){this.broadcast.publish(this.getTheme(e))},t.prototype.render=function(){return this.props.children?o.a.Children.only(this.props.children):null},t}(i.Component);Oe.childContextTypes=Pe,Oe.contextTypes=((we={})[_e]=Te,we);var Fe={},je=E({},Pe,((ke={})[W]=p.a.oneOfType([p.a.instanceOf(fe),p.a.instanceOf(me)]),ke)),Me={};var Ie=function(e){function t(){var n,a;b(this,t);for(var r=arguments.length,i=Array(r),o=0;o=4;)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+((1540483477*(t>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++r;switch(n){case 3:a^=(255&e.charCodeAt(r+2))<<16;case 2:a^=(255&e.charCodeAt(r+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(r)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),(a^=a>>>15)>>>0}var Ne=G,Le=function e(t,n){for(var a=0,r=t.length;a2&&void 0!==arguments[2]?arguments[2]:U;if(!Object(y.isValidElementType)(a))throw new w(1,String(a));var i=function(){return n(a,r,e.apply(void 0,arguments))};return i.withConfig=function(e){return t(n,a,E({},r,e))},i.attrs=function(e){return t(n,a,E({},r,{attrs:E({},r.attrs||U,e)}))},i}}(H),qe=function(e,t){return function n(a,r,i){var o=r.isClass,s=void 0===o?!xe(a):o,u=r.displayName,d=void 0===u?function(e){return xe(e)?"styled."+e:"Styled("+Ee(e)+")"}(a):u,l=r.componentId,c=void 0===l?function(e,t,n){var a="string"!=typeof t?"sc":Re(t),r=(Me[a]||0)+1;Me[a]=r;var i=a+"-"+e.generateName(a+r);return void 0!==n?n+"-"+i:i}(e,r.displayName,r.parentComponentId):l,p=r.ParentComponent,h=void 0===p?Ie:p,f=r.rules,g=r.attrs,y=r.displayName&&r.componentId?Re(r.displayName)+"-"+r.componentId:r.componentId||c,v=new e(void 0===f?i:f.concat(i),g,y),D=function(e){function o(){return b(this,o),C(this,e.apply(this,arguments))}return x(o,e),o.withComponent=function(e){var t=r.componentId,a=S(r,["componentId"]),s=t&&t+"-"+(xe(e)?e:Re(Ee(e))),u=E({},a,{componentId:s,ParentComponent:o});return n(e,u,i)},R(o,null,[{key:"extend",get:function(){var e=r.rules,s=r.componentId,u=S(r,["rules","componentId"]),d=void 0===e?i:e.concat(i),l=E({},u,{rules:d,parentComponentId:s,ParentComponent:o});return t(n,a,l)}}]),o}(h);return D.attrs=g,D.componentStyle=v,D.contextTypes=je,D.displayName=d,D.styledComponentId=y,D.target=a,s&&m()(D,a,{attrs:!0,componentStyle:!0,displayName:!0,extend:!0,styledComponentId:!0,target:!0,warnTooManyClasses:!0,withComponent:!0}),D}}(We,Ge),Ke=function(e,t,n){return function(){var a=fe.master,r=n.apply(void 0,arguments),i=e(Be(Ue(JSON.stringify(r)))),o="sc-keyframes-"+i;return a.hasNameForId(o,i)||a.inject(o,t(r,i,"@keyframes"),i),i}}(L,j,H),Xe=function(e,t){return function(){var n=fe.master,a=t.apply(void 0,arguments),r=Be(JSON.stringify(a)),i="sc-global-"+r;n.hasId(i)||n.inject(i,e(a))}}(j,H),Je=function(e,t){var n=function(n){return t(e,n)};return ze.forEach(function(e){n[e]=n(e)}),n}(qe,Ge);t.default=Je}.call(this,n(424)(e))},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(187));!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(187)),t.default=r.default},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n *:not(:last-child):not(:only-child) {\n margin-right: ",";\n }\n\n "," {\n color: ",";\n }\n\n &:hover {\n color: ",";\n background: ",";\n border-color: ",";\n }\n\n &:focus {\n background: ",";\n border-color: ",";\n outline: none;\n }\n\n &:active {\n background: ",";\n border-color: ",";\n outline: none;\n }\n"],["\n display: inline-flex;\n vertical-align: middle;\n align-items: center;\n justify-content: center;\n\n min-width: ",";\n min-height: ",";\n line-height: ",";\n\n /* Safari button margins reset */\n /* See https://github.com/google/material-design-lite/issues/4008 */\n margin-top: 0;\n margin-left: 0;\n\n text-transform: uppercase;\n white-space: nowrap;\n letter-spacing: 1px;\n font-size: 13px;\n font-weight: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n color: ",";\n\n padding: 0 ",";\n\n opacity: ",";\n cursor: ",";\n pointer-events: ",";\n transition: border-color ",", background ",";\n\n > *:not(:last-child):not(:only-child) {\n margin-right: ",";\n }\n\n "," {\n color: ",";\n }\n\n &:hover {\n color: ",";\n background: ",";\n border-color: ",";\n }\n\n &:focus {\n background: ",";\n border-color: ",";\n outline: none;\n }\n\n &:active {\n background: ",";\n border-color: ",";\n outline: none;\n }\n"])),function(e){return E(e).minWidth},function(e){return E(e).lineHeight},function(e){return E(e).lineHeight},h.fonts.weight.medium,function(e){return E(e).background},function(e){return E(e).border},h.misc.radius,function(e){return E(e).text},function(e){return E(e).padding},function(e){return e.disabled?.5:1},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled||e.loading||e.success?"none":null},h.misc.animationDuration,h.misc.animationDuration,function(e){return e.text?h.spacing.xsmall:0},f.default.Element,function(e){return E(e).text},function(e){return E(e).hoverText||E(e).text},function(e){return E(e).hoverBackground},function(e){return E(e).hoverBorder},function(e){return E(e).focusBackground},function(e){return E(e).focusBorder},function(e){return E(e).activeBackground},function(e){return E(e).activeBorder}),S.Text=p.default.span(d||(d=a(["\n display: inline-block;\n vertical-align: middle;\n line-height: normal;\n /* Sub-pixel position adjustment */\n /* See: https://github.com/auth0/cosmos/pull/947 */\n /* See: https://github.com/auth0/cosmos/pull/1045 */\n margin-top: 1px;\n"],["\n display: inline-block;\n vertical-align: middle;\n line-height: normal;\n /* Sub-pixel position adjustment */\n /* See: https://github.com/auth0/cosmos/pull/947 */\n /* See: https://github.com/auth0/cosmos/pull/1045 */\n margin-top: 1px;\n"]))),S.LinkElement=p.default(S.Element.withComponent("a"))(l||(l=a(["\n text-decoration: none;\n"],["\n text-decoration: none;\n"]))),S.defaultProps={size:"default",appearance:"default",icon:null,iconAlign:"left",disabled:!1,loading:!1,success:!1},t.default=S},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n-1,checked:e.checked,readOnly:e.readOnly||t.props.readOnly,onChange:e.onChange}):null}))};m.Group=y;var v=m.Element;t.StyledCheckbox=v;var b,R,E,x,S=m.Option;t.StyledCheckboxOption=S,y.defaultProps={align:"vertical"},t.default=m},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n * {\n ",";\n }\n"],["\n display: flex;\n justify-content: ",";\n\n & > * {\n ",";\n }\n"])),function(e){return m[e.align]},function(e){if(!e.children)return"";if("Array"!==e.children.constructor.name||e.compressed)return null;var t="left"===e.align?"margin-right":"margin-left",n="left"===e.align?"&:last-child":"&:first-child";return"\n "+t+": "+c.spacing.xsmall+";\n\n "+n+" {\n "+t+": 0;\n }\n "});var y,v,b,R,E,x=p.Element;t.StyledButtonGroup=x,p.defaultProps={compressed:!1,align:"left"},t.default=p},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=0||(r[n]=e[n]);return r}(t,["children"]);if(delete a.in,delete a.mountOnEnter,delete a.unmountOnExit,delete a.appear,delete a.enter,delete a.exit,delete a.timeout,delete a.addEndListener,delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,"function"==typeof n)return n(e,a);var i=r.default.Children.only(n);return r.default.cloneElement(i,a)},a}(r.default.Component);function h(){}p.contextTypes={transitionGroup:a.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var f=(0,o.polyfill)(p);t.default=f},function(e,t,n){"use strict";function a(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function o(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==s){var u=e.displayName||e.name,d="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+d+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=a,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,a)}}return e}n.r(t),n.d(t,"polyfill",function(){return o}),a.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var a;(a=n(12))&&a.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var a=s(n(12)),r=s(n(1)),i=n(212),o=n(451);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,["component","childFactory"]),i=l(this.state.children).map(n);return delete a.appear,delete a.enter,delete a.exit,null===t?i:r.default.createElement(t,a,i)},a}(r.default.Component);c.childContextTypes={transitionGroup:a.default.object.isRequired},c.propTypes={},c.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,i.polyfill)(c);t.default=p,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndicatorsContainer=t.indicatorsContainerCSS=t.ValueContainer=t.valueContainerCSS=t.SelectContainer=t.containerCSS=void 0;var a,r=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["className","cx","getStyles","theme","selectProps"]));return o.default.createElement("div",r({className:n((0,s.css)(a("groupHeading",r({theme:i},u))),{"group-heading":!0},t)},u))},t.default=function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,u=e.Heading,d=e.headingProps,l=e.label,c=e.theme,p=e.selectProps;return o.default.createElement("div",{className:a((0,s.css)(i("group",e)),{group:!0},n)},o.default.createElement(u,r({},d,{selectProps:p,theme:c,getStyles:i,cx:a}),l),o.default.createElement("div",null,t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inputCSS=void 0;var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return r.default.createElement("div",{className:(0,i.css)(s("input",a({theme:p},h)))},r.default.createElement(o.default,a({className:n(null,{input:!0},t),inputRef:d,inputStyle:u(l),disabled:c},h)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiValueRemove=t.MultiValueLabel=t.MultiValueContainer=t.MultiValueGeneric=t.multiValueRemoveCSS=t.multiValueLabelCSS=t.multiValueCSS=void 0;var a,r=Object.assign||function(e){for(var t=1;t0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l,c,p,h,f,g,m=u(n(1)),y=u(n(2)),v=d(n(6)),b=n(3),R=d(n(35)),E=y.default.input(l||(l=r(["\n width: 0;\n opacity: 0;\n position: absolute;\n"],["\n width: 0;\n opacity: 0;\n position: absolute;\n"]))),x=y.default.span(h||(h=r(["\n display: inline-block;\n width: 55px;\n height: var(--switch-height);\n border-radius: 21px;\n background: ",";\n cursor: pointer;\n position: relative;\n\n &:before {\n content: '';\n display: block;\n position: absolute;\n top: 4px;\n left: 6px;\n height: 24px;\n width: 24px;\n border-radius: 24px;\n background: ",";\n box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.25), 0 4px 11px 0 rgba(0, 0, 0, 0.08),\n -1px 3px 3px 0 rgba(0, 0, 0, 0.14);\n transition: transform "," ease, width ",",\n left ",";\n transform: translateX(",");\n }\n\n ",";\n"],["\n display: inline-block;\n width: 55px;\n height: var(--switch-height);\n border-radius: 21px;\n background: ",";\n cursor: pointer;\n position: relative;\n\n &:before {\n content: '';\n display: block;\n position: absolute;\n top: 4px;\n left: 6px;\n height: 24px;\n width: 24px;\n border-radius: 24px;\n background: ",";\n box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.25), 0 4px 11px 0 rgba(0, 0, 0, 0.08),\n -1px 3px 3px 0 rgba(0, 0, 0, 0.14);\n transition: transform "," ease, width ",",\n left ",";\n transform: translateX(",");\n }\n\n ",";\n"])),function(e){return e.on?b.colors.base.green:b.colors.base.grayLight},b.colors.base.white,b.misc.animationDuration,b.misc.animationDuration,b.misc.animationDuration,function(e){return e.on?"20px":0},function(e){return e.readOnly?y.css(c||(c=r(["\n opacity: 0.4;\n "],["\n opacity: 0.4;\n "]))):y.css(p||(p=r(["\n &:active {\n &:before {\n width: 30px;\n left: ",";\n }\n }\n"],["\n &:active {\n &:before {\n width: 30px;\n left: ",";\n }\n }\n"])),function(e){return e.on?"0":"6px"})}),S=y.default.label(f||(f=r(["\n height: var(--switch-height);\n\n span {\n display: block;\n font-size: ",";\n font-weight: ",";\n letter-spacing: 1px;\n text-transform: uppercase;\n color: ",";\n\n margin-left: ",";\n margin-right: ",";\n text-align: ",";\n\n /*\n In order to make the switch always the same width\n we are setting a fixed height and overlapping the switch labels\n */\n height: var(--switch-height);\n line-height: var(--switch-height);\n\n &:last-child {\n /* Moves the second label up to overlap the first */\n margin-top: calc(var(--switch-height) * -1);\n }\n\n &[aria-hidden='true'] {\n visibility: hidden;\n }\n /* if the label is empty, then remove the node so it doesn't create a margin */\n &:empty {\n display: none;\n }\n }\n"],["\n height: var(--switch-height);\n\n span {\n display: block;\n font-size: ",";\n font-weight: ",";\n letter-spacing: 1px;\n text-transform: uppercase;\n color: ",";\n\n margin-left: ",";\n margin-right: ",";\n text-align: ",";\n\n /*\n In order to make the switch always the same width\n we are setting a fixed height and overlapping the switch labels\n */\n height: var(--switch-height);\n line-height: var(--switch-height);\n\n &:last-child {\n /* Moves the second label up to overlap the first */\n margin-top: calc(var(--switch-height) * -1);\n }\n\n &[aria-hidden='true'] {\n visibility: hidden;\n }\n /* if the label is empty, then remove the node so it doesn't create a margin */\n &:empty {\n display: none;\n }\n }\n"])),b.fonts.size.small,b.fonts.weight.normal,b.colors.text.secondary,function(e){return"left"==e.labelPosition?"0":b.spacing.small},function(e){return"left"==e.labelPosition?b.spacing.small:"0"},function(e){return"left"==e.labelPosition?"right":"left"}),C=function(e){function t(t){var n=e.call(this,t)||this;return n.state={on:t.on},n}return i(t,e),t.prototype.onToggle=function(e){var t=this;e.preventDefault(),e.stopPropagation(),this.props.readOnly||this.setState(function(e){return t.props.onChange?t.props.onChange(!e.on):t.props.onToggle&&t.props.onToggle(!e.on),{on:!e.on}})},t.prototype.componentWillReceiveProps=function(e){e.on!==this.state.on&&this.setState({on:e.on})},t.prototype.render=function(){var e=this,n=s(this.props.accessibleLabels,2),a=n[0],r=n[1],i=m.createElement(R.default.Field.ContextConsumer,null,function(t){return m.createElement(E,{type:"checkbox",checked:e.state.on,readOnly:!0,id:e.props.id||t.formFieldId})}),u=m.createElement(m.Fragment,null,i),d=m.createElement(S,{labelPosition:this.props.labelPosition,key:"switch-label"},m.createElement("span",{"aria-hidden":this.state.on},r),m.createElement("span",{"aria-hidden":!this.state.on},a)),l=m.createElement(x,{on:this.state.on,readOnly:this.props.readOnly,key:"switch-toggle"});return"left"==this.props.labelPosition?u=m.createElement(m.Fragment,null,i,this.props.hideAccessibleLabels?null:d,l):"right"==this.props.labelPosition&&(u=m.createElement(m.Fragment,null,i,l,this.props.hideAccessibleLabels?null:d)),m.createElement(t.Element,o({onClick:this.onToggle.bind(this)},v.default("switch"),this.props),u)},t.displayName="Switch",t.defaultProps={onToggle:null,onChange:null,on:!1,accessibleLabels:["Enabled","Disabled"],hideAccessibleLabels:!1,readOnly:!1,labelPosition:"right"},t.Element=y.default.span(g||(g=r(["\n --switch-height: 32px;\n\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n height: var(--switch-height);\n position: relative;\n\n input:focus ~ "," {\n box-shadow: 0 0 0 2px ",";\n }\n "],["\n --switch-height: 32px;\n\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n height: var(--switch-height);\n position: relative;\n\n input:focus ~ "," {\n box-shadow: 0 0 0 2px ",";\n }\n "])),x,b.colors.base.blue),t}(m.Component);t.StyledSwitch=C.Element,t.default=C},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n * {\n flex: 0 auto;\n }\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n > * {\n flex: 0 auto;\n }\n"]))),A=E.default.li(c||(c=a(["\n padding: ",";\n border-bottom: 1px solid ",";\n"],["\n padding: ",";\n border-bottom: 1px solid ",";\n"])),R.spacing.medium,R.colors.text.error),_=E.default.ul(p||(p=a(["\n border: 1px solid ",";\n border-radius: ",";\n list-style: none;\n ",";\n padding-left: 0;\n margin-bottom: 0;\n > ",":last-child {\n border-bottom: none;\n }\n }\n"],["\n border: 1px solid ",";\n border-radius: ",";\n list-style: none;\n ",";\n padding-left: 0;\n margin-bottom: 0;\n > ",":last-child {\n border-bottom: none;\n }\n }\n"])),R.colors.text.error,R.misc.radius,"",A),T=E.default(y.default)(h||(h=a(["\n font-size: 1.0714285714em;\n color: ",";\n margin: 0;\n"],["\n font-size: 1.0714285714em;\n color: ",";\n margin: 0;\n"])),R.colors.text.error),P=E.default.div(f||(f=a(["\n margin-right: ",";\n p {\n color: ",";\n margin: 0;\n margin-top: 0.5em;\n }\n"],["\n margin-right: ",";\n p {\n color: ",";\n margin: 0;\n margin-top: 0.5em;\n }\n"])),R.spacing.small,R.colors.text.secondary),k=E.default.div(g||(g=a(["\n text-align: right;\n"],["\n text-align: right;\n"])));t.default=function(e){var t=e.items,n=i(e,["items"]);return m.createElement(C,r({},S.default("danger-zone"),n),m.createElement(D,{size:3},"Danger Zone"),m.createElement(_,null,t.map(function(e){return m.createElement(A,{key:e.title},m.createElement(w,null,m.createElement(P,null,m.createElement(T,{size:4},e.title),e.description?m.createElement(b.default,null,e.description):null),m.createElement(k,null,m.createElement(v.default,r({type:e.action.type||"button",onClick:function(t){e.action.onClick(t)},appearance:"destructive",loading:e.action.loading},S.default("danger-zone.action")),e.action.label))))})))}},function(e,t,n){"use strict";var a,r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__extends||(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,a=arguments.length;n *:last-child {\n margin-bottom: 0;\n }\n\n "," {\n margin-top: -",";\n margin-left: -",";\n margin-right: -",";\n padding-left: ",";\n padding-right: ",";\n justify-content: center;\n }\n"],["\n padding: "," "," "," ",";\n flex: 1 1 auto;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n overscroll-behavior: contain;\n word-break: break-word;\n word-wrap: break-word;\n /* Clears the margin of the last item of the body */\n > *:last-child {\n margin-bottom: 0;\n }\n\n "," {\n margin-top: -",";\n margin-left: -",";\n margin-right: -",";\n padding-left: ",";\n padding-right: ",";\n justify-content: center;\n }\n"])),C.spacing.small,C.spacing.medium,C.spacing.large,C.spacing.medium,E.default.TabList,C.spacing.small,C.spacing.medium,C.spacing.medium,C.spacing.medium,C.spacing.medium),M=y.default.footer(f||(f=r(["\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n padding: ",";\n border-top: 1px solid ",";\n"],["\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n padding: ",";\n border-top: 1px solid ",";\n"])),C.spacing.small,C.colors.base.grayLight),I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.childrenRef=g.createRef(),t}return i(t,e),t.prototype.componentDidMount=function(){var e=this;"form"===this.props.role&&setImmediate(function(){return function(e){var t=e.current,n=m.findDOMNode(t);if(n){var a=n.querySelector("form");if(a){var r=a.querySelector("input");r&&r.focus()}}}(e.childrenRef)})},t.prototype.render=function(){var e=this.props;return g.createElement(x.default,o({contentSize:e.width},e),g.createElement(w.default,{persistentFocus:!1},g.createElement(P,o({width:e.width},D.default("dialog"),function(e,t,n){return e.role===t?n:{}}(e,"destructive",{"aria-describedby":"dialog-description"}),{role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},_.rootProps(e)),g.createElement(k,null,g.createElement(v.default,o({"aria-label":"Close",size:"default",appearance:"link",icon:"close",onClick:e.onClose},D.default("dialog.close")))),e.title&&g.createElement(O,o({},D.default("dialog.title")),g.createElement(F,{element:e.titleElement,id:"dialog-title"},e.title)),g.createElement(j,o({ref:this.childrenRef,id:"dialog-description"},D.default("dialog.body")),e.children),e.actions&&e.actions.length>0&&g.createElement(M,o({},D.default("dialog.footer")),g.createElement(R.default,null,e.actions.map(T))))))},t.Action=S.default,t.Element=P,t.defaultProps={width:"medium",role:"default",actions:[],titleElement:"h2"},t}(g.Component);t.default=I},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(244));!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(244)),t.default=r.default},function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,a=arguments.length;nr&&(i=0),i<0&&(i=r),this.changeFocusedTab(n,i)}}else this.changeTab(t)},t.prototype.changeFocusedTab=function(e,t){document.querySelector("#"+e+"-"+t).focus()},t.prototype.render=function(){var e=this,n="tabs"+this.props.id,a=this.props,r=a.selected,i=(a.onSelect,s(a,["selected","onSelect"]));return m.createElement(t.Element,o({},b.default("tabs"),i),m.createElement(t.TabList,o({role:"tablist"},b.default("tabs.list")),this.tabs.map(function(a,i){var s=n+"-"+i,u=r===i;return m.createElement(t.TabListItem,o({role:"presentation",key:s},b.default("tabs.list-item")),m.createElement(t.TabLink,o({type:"button",role:"tab",id:s,tabIndex:u?"0":"-1","aria-selected":u,"aria-controls":s+"-tab",onClick:function(){return e.changeTab(i)},onKeyDown:function(t){return e.handleTabLinkKeypress(t,i,n,e.tabs.length)}},b.default("tabs.link")),a.props.label))})),this.tabs[r]&&m.cloneElement(this.tabs[r],o({role:"tabpanel",id:n+"-"+r+"-tab","aria-labelledby":n+"-"+r},b.default("tabs.item"))))},t.Element=y.default.div(l||(l=i(["\n ",";\n "],["\n ",";\n "])),R.default),t.TabList=y.default.ul(c||(c=i(["\n display: flex;\n border-bottom: 1px solid ",";\n "],["\n display: flex;\n border-bottom: 1px solid ",";\n "])),v.colors.base.grayLight),t.TabListItem=y.default.li(p||(p=i(["\n &:not(:last-child) {\n margin-right: ",";\n }\n "],["\n &:not(:last-child) {\n margin-right: ",";\n }\n "])),v.spacing.large),t.TabLink=y.default.button(f||(f=i(["\n /* Resets button browser styles */\n background-color: transparent;\n border: none;\n padding: "," 0;\n color: ",";\n cursor: pointer;\n border-bottom: 1px solid transparent;\n margin-bottom: -1px;\n line-height: 1.3;\n\n &:hover {\n color: ",";\n }\n &:focus {\n outline: none;\n border-bottom-color: ",";\n }\n &:active {\n border-bottom-color: ",";\n }\n ",";\n "],["\n /* Resets button browser styles */\n background-color: transparent;\n border: none;\n padding: "," 0;\n color: ",";\n cursor: pointer;\n border-bottom: 1px solid transparent;\n margin-bottom: -1px;\n line-height: 1.3;\n\n &:hover {\n color: ",";\n }\n &:focus {\n outline: none;\n border-bottom-color: ",";\n }\n &:active {\n border-bottom-color: ",";\n }\n ",";\n "])),v.spacing.small,v.colors.link.default,function(e){return e["aria-selected"]?v.colors.text.default:v.colors.link.defaultHover},v.colors.link.default,v.colors.base.text,function(e){return e["aria-selected"]&&y.css(h||(h=i(["\n border-bottom: 1px solid ",";\n cursor: default;\n color: ",";\n &:focus {\n border-bottom: 1px solid ",";\n }\n "],["\n border-bottom: 1px solid ",";\n cursor: default;\n color: ",";\n &:focus {\n border-bottom: 1px solid ",";\n }\n "])),v.colors.base.text,v.colors.text.default,v.colors.base.text)}),t.TabContent=y.default.div(g||(g=i(["\n padding-top: ",";\n "],["\n padding-top: ",";\n "])),v.spacing.large),t.Tab=t.TabContent,t.defaultProps={children:[],id:E.default()},t}(m.Component);t.default=x},function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(1)),d=o(n(19)),l=s(n(2)),c=n(3),p=20,h={escape:27};t.overlayContentSizes={small:"480px",medium:"640px",large:"800px"};var f,g,m=function(e){function n(t){var n=e.call(this,t)||this;return n.handleMouseDown=function(e){var t=n.props,a=t.closeOnBackdropClick,r=t.open,i=t.onClose,o=n.contentElement&&!n.contentElement.contains(e.target);r&&a&&o&&i&&i()},n.handleDocumentKeyDown=function(e){var t=n.props,a=t.closeOnEscape,r=t.open,i=t.onClose,o=e.which===h.escape;r&&a&&o&&(e.preventDefault(),i&&i())},n.state={hasBeenMounted:!1},n.mountElement=document.createElement("div"),n}return r(n,e),n.getSizeForOverlay=function(e){return"number"==typeof e?e+"px":t.overlayContentSizes[e]},n.prototype.componentDidMount=function(){document.body.appendChild(this.mountElement),document.addEventListener("keydown",this.handleDocumentKeyDown),this.setState(function(e,t){return{hasBeenMounted:!0}})},n.prototype.componentWillUnmount=function(){document.body.removeChild(this.mountElement),document.removeEventListener("keydown",this.handleDocumentKeyDown)},n.prototype.render=function(){var e=this,t=this.props,a=t.open,r=t.children,i=t.contentSize;if(!this.state.hasBeenMounted)return null;var o=a?u.createElement(n.Backdrop,{onMouseDown:this.handleMouseDown},u.createElement(n.Element,{contentSize:i,innerRef:function(t){return e.contentElement=t}},r)):null;return d.createPortal(o,this.mountElement)},n.defaultProps={closeOnBackdropClick:!0,closeOnEscape:!0,open:!1},n.Backdrop=l.default.div(f||(f=i(["\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: ",";\n background: hsla(0, 12%, 95%, 0.95);\n display: flex;\n justify-content: center;\n "],["\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: ",";\n background: hsla(0, 12%, 95%, 0.95);\n display: flex;\n justify-content: center;\n "])),p),n.Element=l.default.div(g||(g=i(["\n width: 100%;\n margin: "," ",";\n pointer-events: none;\n display: inline-block;\n\n /* Since the focus trap is adding divs around the dialog box, the max width prop should be here */\n max-width: ",";\n "],["\n width: 100%;\n margin: "," ",";\n pointer-events: none;\n display: inline-block;\n\n /* Since the focus trap is adding divs around the dialog box, the max width prop should be here */\n max-width: ",";\n "])),c.spacing.xlarge,c.spacing.small,function(e){return n.getSizeForOverlay(e.contentSize)}),n}(u.Component);t.default=m},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n "," {\n margin-bottom: ",";\n line-height: 1em;\n opacity: 0.2;\n }\n"],["\n max-width: 400px;\n margin: 0 auto "," auto;\n\n > "," {\n margin-bottom: ",";\n line-height: 1em;\n opacity: 0.2;\n }\n"])),l.spacing.small,c.default.Element,l.spacing.xsmall);var b,R,E,x,S=d.default(f.default)(E||(E=a(["\n margin: 0 0 "," 0;\n"],["\n margin: 0 0 "," 0;\n"])),l.spacing.xlarge),C=d.default.div(x||(x=a(["\n display: inline-block;\n i {\n position: relative;\n left: 2px;\n display: inline-block;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 4px 0 4px 6px;\n border-color: transparent transparent transparent ",";\n }\n &:hover i  {\n border-color: transparent transparent transparent ",";\n }\n"],["\n display: inline-block;\n i {\n position: relative;\n left: 2px;\n display: inline-block;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 4px 0 4px 6px;\n border-color: transparent transparent transparent ",";\n }\n &:hover i  {\n border-color: transparent transparent transparent ",";\n }\n"])),l.colors.link.default,l.colors.link.defaultHover);v.displayName="EmptyState",t.default=v},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=u(n(1)),c=d(n(2)),p=n(128),h=d(n(505)),f=d(n(6)),g=d(n(13)),m=n(3),y=u(n(50)),v=d(n(14)),b=n(506);t.Div=function(e){return l.createElement("div",o({},e))};var R=p.SortableContainer(function(e){return l.createElement("div",null,l.Children.map(e.children,x(e,E)))}),E=p.SortableElement(function(e){return l.cloneElement(e.children,{sortIndex:e.index,value:e.value})}),x=function(e,n){return void 0===n&&(n=t.Div),function(a,r){var i=n,u=i===t.Div?{}:{index:r,value:r};return l.createElement(i,o({key:"item-"+r},u),l.createElement(S.ItemContainer,o({},f.default("list.item"),{draggable:e.draggable,onClick:b.onItemClickHandler(e,a)}),function(t,n){var r=b.getDrawer(a,t,S.Drawer),i=s(b.isListExpandable(a,S.Drawer),2),o=i[0],u=i[1],d=b.excludeDrawer(a,S.Drawer),c=d?l.cloneElement(d,{arrowIsVisible:u}):null;return l.createElement(l.Fragment,null,e.draggable&&l.createElement(S.Handle,{"aria-expanded":t?"true":"false"},l.createElement(v.default,{name:"resize-vertical",size:"16",color:"blue"})),c,o&&u&&l.createElement(S.Arrow,{onClick:function(){return n(!t)}},l.createElement(v.default,{name:t?"chevron-up":"chevron-down",size:"16",color:"default"})),r)}))}},S=function(e){return l.createElement(S.Element,o({},e,f.default("list"),{role:"list"}),e.label&&l.createElement(S.Label,null,l.createElement(y.default,{size:4},e.label)),e.draggable?l.createElement(R,o({axis:"y",useDragHandle:!0,onSortEnd:e.onDragEnd},e)):l.Children.map(e.children,x(e)))};S.Element=c.default.ul(C||(C=r(["\n ",";\n"],["\n ",";\n"])),g.default);var C,D,w,A,_,T,P,k,O,F,j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={open:!1},t.setDrawerState=function(e){t.setState({open:e})},t}return i(t,e),t.prototype.render=function(){return l.createElement(S.ItemContainer.Element,o({},this.props,{hasOpenDrawer:this.state.open}),this.props.children(this.state.open,this.setDrawerState))},t.Element=c.default.li(D||(D=r(["\n border-top: 1px solid ",";\n padding-left: ",";\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n justify-content: space-between;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n "],["\n border-top: 1px solid ",";\n padding-left: ",";\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n justify-content: space-between;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n "])),m.colors.list.borderColor,m.spacing.xsmall,m.spacing.xsmall,m.spacing.small,m.spacing.small,function(e){return e.hasOpenDrawer?m.colors.list.backgroundHover:"transparent"},m.colors.list.backgroundHover),t}(l.Component);S.ItemContainer=j,S.Item=c.default.div(w||(w=r(["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n word-break: break-word;\n margin-right: ",";\n\n > *:not(:last-child) {\n margin-right: ",";\n }\n\n /* if it has only one item inside we want it to fill all the avaliable space */\n > * {\n flex: 1;\n }\n"],["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n word-break: break-word;\n margin-right: ",";\n\n > *:not(:last-child) {\n margin-right: ",";\n }\n\n /* if it has only one item inside we want it to fill all the avaliable space */\n > * {\n flex: 1;\n }\n"])),function(e){return e.arrowIsVisible?"0":"32px"},m.spacing.medium),S.Header=c.default.div(A||(A=r(["\n flex: 1;\n /* white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; */\n"],["\n flex: 1;\n /* white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; */\n"]))),S.Body=c.default.div(_||(_=r(["\n flex: 1.4;\n /* This is not mobile first, but it avoids negation of margin */\n @media screen and (max-width: 768px) {\n flex: 1 0 100%;\n order: 1;\n margin-top: ",";\n }\n"],["\n flex: 1.4;\n /* This is not mobile first, but it avoids negation of margin */\n @media screen and (max-width: 768px) {\n flex: 1 0 100%;\n order: 1;\n margin-top: ",";\n }\n"])),m.spacing.small),S.Footer=c.default.div(T||(T=r(["\n flex: none;\n"],["\n flex: none;\n"]))),S.Handle=p.SortableHandle(c.default.button(P||(P=r(["\n cursor: move;\n border: none;\n padding: 0;\n background-color: transparent;\n margin-top: -",";\n margin-bottom: -",";\n margin-left: -",";\n padding-left: ",";\n padding-right: ",";\n"],["\n cursor: move;\n border: none;\n padding: 0;\n background-color: transparent;\n margin-top: -",";\n margin-bottom: -",";\n margin-left: -",";\n padding-left: ",";\n padding-right: ",";\n"])),m.spacing.small,m.spacing.small,m.spacing.xsmall,m.spacing.xsmall,m.spacing.small)),S.Arrow=c.default.button(k||(k=r(["\n cursor: pointer;\n border: none;\n padding: 0;\n background-color: transparent;\n margin-top: -",";\n margin-bottom: -",";\n margin-right: -",";\n padding-left: ",";\n padding-right: ",";\n"],["\n cursor: pointer;\n border: none;\n padding: 0;\n background-color: transparent;\n margin-top: -",";\n margin-bottom: -",";\n margin-right: -",";\n padding-left: ",";\n padding-right: ",";\n"])),m.spacing.small,m.spacing.small,m.spacing.xsmall,m.spacing.small,m.spacing.xsmall),S.Drawer=c.default.section(O||(O=r(["\n flex: 1 0 100%;\n border-top: 1px solid ",";\n display: ",";\n\n margin-top: ",";\n margin-bottom: -",";\n margin-left: -",";\n margin-right: -",";\n padding-left: ",";\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\n flex: 1 0 100%;\n border-top: 1px solid ",";\n display: ",";\n\n margin-top: ",";\n margin-bottom: -",";\n margin-left: -",";\n margin-right: -",";\n padding-left: ",";\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),m.colors.list.borderColor,function(e){return e.hidden?"none":"block"},m.spacing.small,m.spacing.small,m.spacing.small,m.spacing.small,m.spacing.small,m.spacing.small,m.spacing.small,m.spacing.small),S.Label=c.default.div(F||(F=r(["\n padding: ",";\n\n "," {\n margin: 0;\n }\n"],["\n padding: ",";\n\n "," {\n margin: 0;\n }\n"])),m.spacing.xsmall,y.StyledHeading[4]),S.arrayMove=h.default,S.defaultProps={},t.default=S},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l,c,p,h,f=u(n(1)),g=d(n(2)),m=d(n(6)),y=n(3),v=d(n(14)),b=d(n(234)),R=d(n(251)),E=n(508),x=E.childrenMover(R.default),S=x.include,C=x.exclude,D=function(e){return e?"Array"===e.constructor.name?e[0]||null:e:null},w=function(e){function t(t){var n=e.call(this,t)||this;return n.state={subMenuOpen:t.defaultOpen||n.isSelected},n.toggleSubmenu=n.toggleSubmenu.bind(n),n}return r(t,e),Object.defineProperty(t.prototype,"isSelected",{get:function(){var e=this.props,t=e.selected,n=e.children,a=D(S(n));return t||!!a&&function(e){var t=!1;return f.Children.forEach(e.props.children,function(e){e&&e.props.selected&&(t=!0)}),t}(a)},enumerable:!0,configurable:!0}),t.prototype.toggleSubmenu=function(){this.setState({subMenuOpen:!this.state.subMenuOpen})},t.prototype.setSubMenuState=function(e,t){return e?f.cloneElement(e,t):null},t.prototype.render=function(){var e=this.props,n=e.inSubMenu,a=e.children,r=s([C(a),D(S(a))],2),i=r[0],u=r[1],d=this.props.defaultOpen||this.isSelected,l=this.setSubMenuState(u,{open:this.state.subMenuOpen});return f.createElement(t.Item,null,f.createElement(t.Element,o({href:e.url,target:e.target,onClick:u?this.toggleSubmenu:e.onClick,selected:d,"aria-expanded":e.open,id:e.id},function(e){return e.selected?{"aria-current":"page"}:{}}(e),m.default("navigation.link")),function(e,t,n){return f.Children.map(e,function(e){return e&&e.type===v.default?f.cloneElement(e,{size:18,color:t?y.colors.icon.sidebarFocus:n?y.colors.text.subtle:y.colors.icon.sidebar}):e})}(i,d,n)),l)},t.Item=g.default.li(l||(l=i([""],[""]))),t.Text=g.default.div(c||(c=i([""],[""]))),t.Element=g.default.a(p||(p=i(["\n display: flex;\n align-items: flex-start;\n cursor: pointer;\n color: ",";\n font-size: 13px;\n text-decoration: none;\n word-break: break-word;\n padding-top: ",";\n padding-bottom: ",";\n &:hover  {\n color: ",";\n "," path {\n fill: ",";\n }\n }\n "," {\n margin-right: ",";\n margin-top: 1px;\n }\n "," {\n /* should we add a new appearance to the label? */\n color: ",";\n border-color: ",";\n }\n "],["\n display: flex;\n align-items: flex-start;\n cursor: pointer;\n color: ",";\n font-size: 13px;\n text-decoration: none;\n word-break: break-word;\n padding-top: ",";\n padding-bottom: ",";\n &:hover  {\n color: ",";\n "," path {\n fill: ",";\n }\n }\n "," {\n margin-right: ",";\n margin-top: 1px;\n }\n "," {\n /* should we add a new appearance to the label? */\n color: ",";\n border-color: ",";\n }\n "])),function(e){return e.selected?y.colors.link.sidebarFocus:y.colors.link.sidebar},y.spacing.xsmall,y.spacing.xsmall,y.colors.link.sidebarHover,v.default.Element,y.colors.link.sidebarHover,v.default.Element,y.spacing.xsmall,b.default.Element,y.colors.link.sidebarHover,y.colors.link.sidebarHover),t.Postfix=g.default.div(h||(h=i(["\n margin-left: ",";\n "],["\n margin-left: ",";\n "])),y.spacing.xsmall),t}(f.Component);t.default=w},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n * {\n margin-right: ",";\n &:last-child {\n margin-right: 0;\n }\n }\n\n "," {\n width: ","px;\n }\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n & > * {\n margin-right: ",";\n &:last-child {\n margin-right: 0;\n }\n }\n\n "," {\n width: ","px;\n }\n"])),m.spacing.xsmall,h.default.Element,function(e){var t=e.page;return l.pageInputWidth(t)}),t.default=E},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0)&&!p,y=!o;return l.createElement(m.Element,r({},c.default("pager"),u),l.createElement(f.default,{size:"compressed",appearance:"secondary",disabled:d,onClick:function(){return h.changePageIfAppropiate({rawNextPage:n-1,total:o,perPage:a,onPageChanged:t,ignoreNextPageCheck:y})},icon:"chevron-left"},"Newer"),l.createElement(m.PageSelector,null,s&&o?h.totals(n,a,o):null,s&&!o?"Page "+n:null),l.createElement(f.default,{size:"compressed",appearance:"secondary",disabled:!g,icon:"chevron-right",iconAlign:"right",onClick:function(){return h.changePageIfAppropiate({rawNextPage:n+1,total:o,perPage:a,onPageChanged:t,ignoreNextPageCheck:y})}},"Older"))};m.defaultProps={showInfo:!0},m.Element=g.default.div(u||(u=a(["\n ",";\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n ",";\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])),p.default),m.PageSelector=g.default.div(d||(d=a(["\n display: flex;\n flex-direction: row;\n align-items: center;\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n"]))),t.default=m},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n *:not(:last-child) {\n margin-right: ",";\n }\n\n /* Disable pointer events on non-dragging elements */\n /* to avoid unexpected hover behaviors. */\n ",";\n "],["\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n border-top: 1px solid ",";\n padding: "," ",";\n cursor: ",";\n\n &:hover {\n background: ",";\n }\n\n &.cosmos-dragging {\n background-color: ",";\n opacity: 0.9;\n box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);\n }\n\n > *:not(:last-child) {\n margin-right: ",";\n }\n\n /* Disable pointer events on non-dragging elements */\n /* to avoid unexpected hover behaviors. */\n ",";\n "])),E.colors.list.borderColor,E.spacing.small,E.spacing.xsmall,function(e){return e.onClick?"pointer":"inherit"},E.colors.list.backgroundHover,E.colors.base.white,E.spacing.small,function(e){return e.draggingMode?y.css(l||(l=i(["\n &:not(.cosmos-dragging) {\n pointer-events: none;\n }\n "],["\n &:not(.cosmos-dragging) {\n pointer-events: none;\n }\n "]))):""}),t.Header=y.default.div(p||(p=i(["\n flex: 1;\n display: flex;\n align-items: center;\n word-break: break-word;\n\n "," {\n /* This is a magic number */\n margin-right: 12px;\n }\n "],["\n flex: 1;\n display: flex;\n align-items: center;\n word-break: break-word;\n\n "," {\n /* This is a magic number */\n margin-right: 12px;\n }\n "])),b.StyledAvatar),t.Body=y.default.div(h||(h=i(["\n flex: 1;\n flex-basis: ",";\n\n /* This is not mobile first, but it avoids negation of margin */\n @media screen and (max-width: 768px) {\n flex: 1 0 100%;\n order: 1;\n margin-top: ",";\n }\n "],["\n flex: 1;\n flex-basis: ",";\n\n /* This is not mobile first, but it avoids negation of margin */\n @media screen and (max-width: 768px) {\n flex: 1 0 100%;\n order: 1;\n margin-top: ",";\n }\n "])),function(e){return e.bodyWidth},E.spacing.small),t.Footer=y.default.div(f||(f=i([""],[""]))),t.Subtitle=y.default(R.StyledTextAllCaps)(g||(g=i(["\n margin-top: ",";\n display: block;\n "],["\n margin-top: ",";\n display: block;\n "])),E.spacing.xxsmall),t}(m.Component);t.default=D},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n * {\n flex: ",";\n margin-right: ",";\n }\n > *:last-child {\n margin-right: 0;\n }\n"],["\n ",";\n\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: ",";\n justify-content: ",";\n > * {\n flex: ",";\n margin-right: ",";\n }\n > *:last-child {\n margin-right: 0;\n }\n"])),p.default,function(e){return f[e.alignVertical]},function(e){return g[e.align]},function(e){return"fill"===e.align?1:"none"},function(e){return"fill"===e.align?h.spacing.xsmall:0}),m.Item=l.default.div(u||(u=a(["\n flex-basis: ","%;\n"],["\n flex-basis: ","%;\n"])),function(e){return e.width}),m.defaultProps={align:"fill",alignVertical:"center"},t.default=m},function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},u=this&&this.__spread||function(){for(var e=[],t=0;tr?-1:r>a?1:0}};var b,R,E,x,S,C,D,w,A,_=function(e){function n(t){var n=e.call(this,t)||this;return n.defaultCellRenderer=function(e,t){return e[t.field]},n.defaultOnSort=function(e,t){var a=n.getSortingColumn(e);n.setState({sortingColumn:a,sortDirection:t})},n.sortItems=function(e){var t=e.unsortedItems,a=e.sortingColumn,r=e.sortDirection,i=u(t);if(!a||0===i.length)return i;var o=n.getComparator(i,a);return i.sort(function(e,t){return o(e,t,a)}),"desc"===r&&i.reverse(),i},n.handleRowClicked=function(e){return n.props.onRowClick?function(t){n.props.onRowClick(t,e)}:null},t.onSort||(n.state={sortingColumn:n.getSortingColumn(t.sortOn),sortDirection:"asc"}),n}return r(n,e),n.prototype.inferColumnsFromChildren=function(e){return c.Children.toArray(e).map(function(e){return e.props})},n.prototype.getSortingColumn=function(e){var t=this.inferColumnsFromChildren(this.props.children);return e?t.find(function(t){return t.field===e}):t.find(function(e){return e.sortable})||{}},n.prototype.getComparator=function(e,t){return t.comparator?t.comparator:"number"==typeof e[0][t.field]?n.compare.numbers:n.compare.strings},n.prototype.render=function(){var e,t,a,r,i=this,s=this.inferColumnsFromChildren(this.props.children),u=this.props.loading;if(this.props.onSort?(r=this.props.onSort,t=this.getSortingColumn(this.props.sortOn),a=this.props.sortDirection,e=this.props.items):(r=this.defaultOnSort,t=this.state.sortingColumn,a=this.state.sortDirection,e=this.sortItems({unsortedItems:this.props.items,sortDirection:a,sortingColumn:t})),null!=s[0].children&&s[0].children.length>1){var d=[];s[0].children.map(function(e){d.push(e.props)}),s=d}var l=e.map(function(e,t){return c.createElement(n.Row,o({key:"row-"+t,onClick:i.handleRowClicked(e)},y.default("table.row")),s.map(function(t){var a=t.children||i.defaultCellRenderer;return c.createElement(n.Cell,{key:t.field,column:t},a(e,t))}))});return c.createElement(n.Container,null,c.createElement(n.Element,o({},y.default("table"),this.props,{rows:l}),c.createElement(n.Header,{columns:s,sortingColumn:t,sortDirection:a,onSort:r}),c.createElement(n.Body,o({},y.default("table.body")),l)),c.createElement(n.EmptyState,{rows:l,loading:u},this.props.emptyMessage),c.createElement(n.LoadingIndicator,{rows:l,loading:u}))},n.Header=m.default,n.Column=g.default,n.compare=t.tableDefaultComparators,n.Container=p.default.div(b||(b=i(["\n ",";\n position: relative;\n "],["\n ",";\n position: relative;\n "])),v.default),n.Element=p.default.table(R||(R=i(["\n width: 100%;\n border-spacing: 0;\n border-collapse: collapse;\n table-layout: fixed;\n opacity: ",";\n "],["\n width: 100%;\n border-spacing: 0;\n border-collapse: collapse;\n table-layout: fixed;\n opacity: ",";\n "])),function(e){return e.loading&&0!==e.rows.length?.3:1}),n.Body=p.default.tbody(E||(E=i([""],[""]))),n.Row=p.default.tr(x||(x=i(["\n cursor: ",";\n &:hover {\n background-color: ",";\n }\n "],["\n cursor: ",";\n &:hover {\n background-color: ",";\n }\n "])),function(e){return e.onClick?"pointer":"inherit"},h.colors.list.backgroundHover),n.Cell=p.default.td(C||(C=i(["\n padding: ",";\n border-top: 1px solid ",";\n text-align: left;\n vertical-align: middle;\n overflow-wrap: break-word;\n width: ",";\n ",";\n "],["\n padding: ",";\n border-top: 1px solid ",";\n text-align: left;\n vertical-align: middle;\n overflow-wrap: break-word;\n width: ",";\n ",";\n "])),h.spacing.xsmall,h.colors.base.grayLight,function(e){return e.column.width||"auto"},function(e){return e.column.truncate?p.css(S||(S=i(["\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow-x: hidden;\n "],["\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow-x: hidden;\n "]))):""}),n.EmptyState=function(e){var t=e.rows,n=e.children,a=e.loading;if(t.length>0||!n||a)return null;var r=p.default.div(D||(D=i(["\n padding: ",";\n background-color: rgb(250, 250, 250);\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n color: ",";\n "],["\n padding: ",";\n background-color: rgb(250, 250, 250);\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n color: ",";\n "])),h.spacing.small,h.misc.radius,h.spacing.xsmall,h.colors.text.default);return c.createElement(r,null,n)},n.LoadingIndicator=function(e){var t=e.loading,n=e.rows;if(!t)return null;var a=0===n.length,r=p.default.div(w||(w=i(["\n position: ",";\n top: 0;\n left: 0;\n width: 100%;\n height: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: ",";\n "],["\n position: ",";\n top: 0;\n left: 0;\n width: 100%;\n height: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: ",";\n "])),a?"initial":"absolute",a?"auto":"100%",a?"20px":"0"),o=p.default.div(A||(A=i(["\n background-color: white;\n display: inline-block;\n padding: ",";\n border-radius: 50%;\n "],["\n background-color: white;\n display: inline-block;\n padding: ",";\n border-radius: 50%;\n "])),h.spacing.xsmall);return c.createElement(r,null,c.createElement(o,null,c.createElement(f.default,{size:"medium"})))},n.defaultProps={onRowClick:null,onSort:null,sortDirection:"asc",emptyMessage:"There are no items to display"},n}(c.Component);t.default=_},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n * {\n width: 1064px;\n margin-left: auto;\n margin-right: auto;\n }\n"],["\n grid-area: header;\n position: sticky;\n top: 0;\n background: rgba(255, 255, 255, 0.9);\n border-bottom: 1px solid #f1f1f1;\n\n /*\n\n Comsmos won't set heights and padding for now,\n until we create the inner structures and\n header components\n\n height: 69px;\n padding: 10px 0; */\n > * {\n width: 1064px;\n margin-left: auto;\n margin-right: auto;\n }\n"]))),m.SideBar=h.default.div(d||(d=a(["\n grid-area: sidebar;\n > * {\n position: sticky;\n\n /* The value of top should be the height of the header */\n top: 20px;\n }\n"],["\n grid-area: sidebar;\n > * {\n position: sticky;\n\n /* The value of top should be the height of the header */\n top: 20px;\n }\n"]))),m.Content=h.default.main(l||(l=a(["\n grid-area: content;\n"],["\n grid-area: content;\n"]))),m.SkipLink=h.default.a(c||(c=a(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: -1;\n background-color: rgba(0, 0, 0, 0.8);\n color: #fff;\n &:focus {\n z-index: 1;\n }\n"],["\n position: absolute;\n top: 0;\n right: 0;\n z-index: -1;\n background-color: rgba(0, 0, 0, 0.8);\n color: #fff;\n &:focus {\n z-index: 1;\n }\n"]))),t.default=m},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n *:empty {\n display: none;\n }\n\n ",";\n"],["\n display: grid;\n grid-gap: ",";\n grid-template-columns: 1fr;\n\n /* Placeholder width media feature until we have global variables for breakpoints */\n @media (min-width: 768px) {\n grid-template-columns: ",";\n }\n\n & > *:empty {\n display: none;\n }\n\n ",";\n"])),function(e){return m[e.gutter]},function(e){return g[e.distribution]},h.default()),y.Item=l.default.div(u||(u=a([""],[""]))),y.defaultProps={gutter:"medium",distribution:"1/2 1/2"},t.default=y},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n *:empty {\n display: none;\n }\n\n ",";\n"],["\n display: grid;\n grid-template-columns: 1fr;\n grid-gap: ",";\n\n & > *:empty {\n display: none;\n }\n\n ",";\n"])),function(e){return g[e.gutter]},h.default()),m.Item=l.default.div(u||(u=a([""],[""]))),m.defaultProps={gutter:"medium"},t.default=m},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n *:empty {\n display: none;\n }\n\n ",";\n"],["\n display: grid;\n grid-template-columns: ",";\n grid-gap: ",";\n\n & > *:empty {\n display: none;\n }\n\n ",";\n"])),function(e){return m[e.size]},function(e){return g[e.gutter]},h.default()),y.Item=l.default.li(u||(u=a([""],[""]))),y.defaultProps={size:"medium",gutter:"medium"},t.default=y},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n *:empty {\n display: none;\n }\n\n ",";\n"],["\n display: grid;\n grid-template-columns: 1fr;\n grid-gap: ",";\n\n & > *:empty {\n display: none;\n }\n\n ",";\n"])),f.spacing.xlarge,h.default()),g.Header=c.default.div(u||(u=a([""],[""]))),g.Content=c.default.div(d||(d=a([""],[""]))),t.default=g},function(e,t,n){"use strict";var a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n *:not(:last-child) {\n margin-right: ",";\n }\n\n & > *:empty {\n display: none;\n }\n\n ",";\n"],["\n display: flex;\n align-items: ",";\n justify-content: ",";\n\n flex-wrap: ",";\n > *:not(:last-child) {\n margin-right: ",";\n }\n\n & > *:empty {\n display: none;\n }\n\n ",";\n"])),function(e){return y[e.alignment]},function(e){return v[e.distribution]},function(e){return e.wrap?"nowrap":"wrap"},function(e){return m[e.gutter]},h.default()),b.Item=c.default.div(d||(d=a(["\n flex: ",";\n\n /* Avoids any component to be larger than it's parent */\n max-width: 100%;\n"],["\n flex: ",";\n\n /* Avoids any component to be larger than it's parent */\n max-width: 100%;\n"])),function(e){return e.space}),b.defaultProps={gutter:"medium",alignment:"center",distribution:"start"},t.default=b},function(e,t,n){e.exports=l,l.realpath=l,l.sync=c,l.realpathSync=c,l.monkeypatch=function(){a.realpath=l,a.realpathSync=c},l.unmonkeypatch=function(){a.realpath=r,a.realpathSync=i};var a=n(21),r=a.realpath,i=a.realpathSync,o=process.version,s=/^v[0-5]\./.test(o),u=n(532);function d(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function l(e,t,n){if(s)return r(e,t,n);"function"==typeof t&&(n=t,t=null),r(e,t,function(a,r){d(a)?u.realpath(e,t,n):n(a,r)})}function c(e,t){if(s)return i(e,t);try{return i(e,t)}catch(n){if(d(n))return u.realpathSync(e,t);throw n}}},function(e,t,n){function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.alphasort=d,t.alphasorti=u,t.setopts=function(e,t,n){n||(n={});if(n.matchBase&&-1===t.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!n.silent,e.pattern=t,e.strict=!1!==n.strict,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0);e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(l))}(e,n),e.changedCwd=!1;var i=process.cwd();a(n,"cwd")?(e.cwd=r.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=i;e.root=n.root||r.resolve(e.cwd,"/"),e.root=r.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=o(e.cwd)?e.cwd:c(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,e.minimatch=new s(t,n),e.options=e.minimatch.options},t.ownProp=a,t.makeAbs=c,t.finish=function(e){for(var t=e.nounique,n=t?[]:Object.create(null),a=0,r=e.matches.length;au)return!0;if(i===u&&"right"===this.name){if(a.right!==t)throw new Error("Nodes must be equal");return!0}default:return!1}case"SequenceExpression":switch(a.type){case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==this.name;default:return!0}case"YieldExpression":switch(a.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return"MemberExpression"===a.type&&s.check(t.value)&&"object"===this.name&&a.object===t;case"AssignmentExpression":case"ConditionalExpression":switch(a.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return"callee"===this.name&&a.callee===t;case"ConditionalExpression":return"test"===this.name&&a.test===t;case"MemberExpression":return"object"===this.name&&a.object===t;default:return!1}default:if("NewExpression"===a.type&&"callee"===this.name&&a.callee===t)return g(t)}return!(!0===e||this.canBeFirstInStatement()||!this.firstInStatement())};var f={};function g(e){return!!n.CallExpression.check(e)||(u.check(e)?e.some(g):!!n.Node.check(e)&&t.someField(e,function(e,t){return g(t)}))}return[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(e,t){e.forEach(function(e){f[e]=t})}),p.canBeFirstInStatement=function(){var e=this.node;return!n.FunctionExpression.check(e)&&!n.ObjectExpression.check(e)},p.firstInStatement=function(){return function(e){for(var t,a;e.parent;e=e.parent){if(t=e.node,a=e.parent.node,n.BlockStatement.check(a)&&"body"===e.parent.name&&0===e.name){if(a.body[0]!==t)throw new Error("Nodes must be equal");return!0}if(n.ExpressionStatement.check(a)&&"expression"===e.name){if(a.expression!==t)throw new Error("Nodes must be equal");return!0}if(n.SequenceExpression.check(a)&&"expressions"===e.parent.name&&0===e.name){if(a.expressions[0]!==t)throw new Error("Nodes must be equal")}else if(n.CallExpression.check(a)&&"callee"===e.name){if(a.callee!==t)throw new Error("Nodes must be equal")}else if(n.MemberExpression.check(a)&&"object"===e.name){if(a.object!==t)throw new Error("Nodes must be equal")}else if(n.ConditionalExpression.check(a)&&"test"===e.name){if(a.test!==t)throw new Error("Nodes must be equal")}else if(h(a)&&"left"===e.name){if(a.left!==t)throw new Error("Nodes must be equal")}else{if(!n.UnaryExpression.check(a)||a.prefix||"argument"!==e.name)return!1;if(a.argument!==t)throw new Error("Nodes must be equal")}}return!0}(this)},c},e.exports=t.default},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(17)),i=Object.prototype.hasOwnProperty;t.default=function(e){var t=e.use(r.default),n=t.builtInTypes.array,a=t.builtInTypes.number,o=function e(t,n,a){if(!(this instanceof e))throw new Error("Path constructor cannot be invoked without 'new'");if(n){if(!(n instanceof e))throw new Error("")}else n=null,a=null;this.value=t,this.parentPath=n,this.name=a,this.__childCache=null},s=o.prototype;function u(e){return e.__childCache||(e.__childCache=Object.create(null))}function d(e,t){var n=u(e),a=e.getValueProperty(t),r=n[t];return i.call(n,t)&&r.value===a||(r=n[t]=new e.constructor(a,e,t)),r}function l(){}function c(e,t,r,o){if(n.assert(e.value),0===t)return l;var s=e.value.length;if(s<1)return l;var d=arguments.length;2===d?(r=0,o=s):3===d?(r=Math.max(r,0),o=s):(r=Math.max(r,0),o=Math.min(o,s)),a.assert(r),a.assert(o);for(var c=Object.create(null),p=u(e),h=r;h=0&&(r[e.name=i]=e)}else a[e.name]=e.value,r[e.name]=e;if(a[e.name]!==e.value)throw new Error("");if(e.parentPath.get(e.name)!==e)throw new Error("");return e}return s.getValueProperty=function(e){return this.value[e]},s.get=function(){for(var e=[],t=0;t0&&e.column>=0)||t||n||a)&&!(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&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:a}))},s.prototype._serializeMappings=function(){for(var e,t,n,i,o=0,s=1,u=0,d=0,l=0,c=0,p="",h=this._mappings.toArray(),f=0,g=h.length;f0){if(!r.compareByGeneratedPositionsInflated(t,h[f-1]))continue;e+=","}e+=a.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=a.encode(i-c),c=i,e+=a.encode(t.originalLine-1-d),d=t.originalLine-1,e+=a.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=a.encode(n-l),l=n)),p+=e}return p},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},s.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},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,n){var a=n(554);t.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=a.encode(t)}while(r>0);return n},t.decode=function(e,t,n){var r,i,o,s,u=e.length,d=0,l=0;do{if(t>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=a.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),d+=(i&=31)<>1,1==(1&o)?-s:s),n.rest=t}},function(e,t,n){var a=n(65),r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function o(){this._array=[],this._set=i?new Map:Object.create(null)}o.fromArray=function(e,t){for(var n=new o,a=0,r=e.length;a=0)return t}else{var n=a.toSetString(e);if(r.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e=0;--r){var i=this.leading[r];t.end.offset>=i.start&&(n.unshift(i.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var a=this.trailing[n];a.start>=e.end.offset&&t.unshift(a.comment)}return this.trailing.length=0,t}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var i=r.node.trailingComments[0];i&&i.range[0]>=e.end.offset&&(t=r.node.trailingComments,delete r.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0;){if(!((i=this.stack[this.stack.length-1])&&i.start>=e.start.offset))break;t=i.node,this.stack.pop()}if(t){for(var a=(t.leadingComments?t.leadingComments.length:0)-1;a>=0;--a){var r=t.leadingComments[a];r.range[1]<=e.start.offset&&(n.unshift(r),t.leadingComments.splice(a,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(a=this.leading.length-1;a>=0;--a){var i;(i=this.leading[a]).start<=e.start.offset&&(n.unshift(i.comment),this.leading.splice(a,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===a.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),r=this.findLeadingComments(t);r.length>0&&(e.leadingComments=r),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",a={type:n,value:e.value};if(e.range&&(a.range=e.range),e.loc&&(a.loc=e.loc),this.comments.push(a),this.attach){var r={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(r.comment.loc=e.loc),e.type=n,this.leading.push(r),this.trailing.push(r)}},e.prototype.visit=function(e,t){"LineComment"===e.type?this.visitComment(e,t):"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(5),s=n(6),u=n(7),d=n(8),l=n(13),c=n(14);function p(e){var t;switch(e.type){case s.JSXSyntax.JSXIdentifier:t=e.name;break;case s.JSXSyntax.JSXNamespacedName:var n=e;t=p(n.namespace)+":"+p(n.name);break;case s.JSXSyntax.JSXMemberExpression:var a=e;t=p(a.object)+"."+p(a.property)}return t}l.TokenName[100]="JSXIdentifier",l.TokenName[101]="JSXText";var h=function(e){function t(t,n,a){return e.call(this,t,n,a)||this}return r(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,a=!1,r=!1,o=!1;!this.scanner.eof()&&n&&!a;){var s=this.scanner.source[this.scanner.index];if(s===e)break;if(a=";"===s,t+=s,++this.scanner.index,!a)switch(t.length){case 2:r="#"===s;break;case 3:r&&(n=(o="x"===s)||i.Character.isDecimalDigit(s.charCodeAt(0)),r=r&&!o);break;default:n=(n=n&&!(r&&!i.Character.isDecimalDigit(s.charCodeAt(0))))&&!(o&&!i.Character.isHexDigit(s.charCodeAt(0)))}}if(n&&a&&t.length>2){var u=t.substr(1,t.length-2);r&&u.length>1?t=String.fromCharCode(parseInt(u.substr(1),10)):o&&u.length>2?t=String.fromCharCode(parseInt("0"+u.substr(1),16)):r||o||!c.XHTMLEntities[u]||(t=c.XHTMLEntities[u])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:s=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],a="";!this.scanner.eof();){if((u=this.scanner.source[this.scanner.index++])===n)break;a+="&"===u?this.scanXHTMLEntity(n):u}return{type:8,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var r=this.scanner.source.charCodeAt(this.scanner.index+1),o=this.scanner.source.charCodeAt(this.scanner.index+2),s=46===r&&46===o?"...":".";t=this.scanner.index;return this.scanner.index+=s.length,{type:7,value:s,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(e)&&92!==e){t=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var u=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(u)&&92!==u)++this.scanner.index;else{if(45!==u)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,i.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var a={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(a)),a},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new o.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var a=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXNamespacedName(n,a))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=t;this.expectJSX(".");var i=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXMemberExpression(r,i))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var a=n;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new o.JSXNamespacedName(a,r))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new u.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new o.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new o.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new o.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),a=this.matchJSX("/");return a&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new o.JSXOpeningElement(t,a,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new o.JSXClosingElement(t))}var n=this.parseJSXElementName(),a=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new o.JSXOpeningElement(n,r,a))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new o.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new o.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start0))break;i=this.finalize(e.node,new o.JSXElement(e.opening,e.children,e.closing));(e=t[t.length-1]).children.push(i),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],a=null;if(!t.selfClosing){var r=this.parseComplexJSXElement({node:e,opening:t,closing:a,children:n});n=r.children,a=r.closing}return this.finalize(e,new o.JSXElement(t,n,a))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(d.Parser);t.JSXParser=h},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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-\u1877\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\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\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]|\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]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\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\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\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\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\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\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-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\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-\u1877\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\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\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-\uAB65\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\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\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-\uDE33\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]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\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\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\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[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),r=function(){return function(e){this.type=a.JSXSyntax.JSXClosingElement,this.name=e}}();t.JSXClosingElement=r;var i=function(){return function(e,t,n){this.type=a.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n}}();t.JSXElement=i;var o=function(){return function(){this.type=a.JSXSyntax.JSXEmptyExpression}}();t.JSXEmptyExpression=o;var s=function(){return function(e){this.type=a.JSXSyntax.JSXExpressionContainer,this.expression=e}}();t.JSXExpressionContainer=s;var u=function(){return function(e){this.type=a.JSXSyntax.JSXIdentifier,this.name=e}}();t.JSXIdentifier=u;var d=function(){return function(e,t){this.type=a.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t}}();t.JSXMemberExpression=d;var l=function(){return function(e,t){this.type=a.JSXSyntax.JSXAttribute,this.name=e,this.value=t}}();t.JSXAttribute=l;var c=function(){return function(e,t){this.type=a.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t}}();t.JSXNamespacedName=c;var p=function(){return function(e,t,n){this.type=a.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n}}();t.JSXOpeningElement=p;var h=function(){return function(e){this.type=a.JSXSyntax.JSXSpreadAttribute,this.argument=e}}();t.JSXSpreadAttribute=h;var f=function(){return function(e,t){this.type=a.JSXSyntax.JSXText,this.value=e,this.raw=t}}();t.JSXText=f},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),r=function(){return function(e){this.type=a.Syntax.ArrayExpression,this.elements=e}}();t.ArrayExpression=r;var i=function(){return function(e){this.type=a.Syntax.ArrayPattern,this.elements=e}}();t.ArrayPattern=i;var o=function(){return function(e,t,n){this.type=a.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1}}();t.ArrowFunctionExpression=o;var s=function(){return function(e,t,n){this.type=a.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n}}();t.AssignmentExpression=s;var u=function(){return function(e,t){this.type=a.Syntax.AssignmentPattern,this.left=e,this.right=t}}();t.AssignmentPattern=u;var d=function(){return function(e,t,n){this.type=a.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0}}();t.AsyncArrowFunctionExpression=d;var l=function(){return function(e,t,n){this.type=a.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0}}();t.AsyncFunctionDeclaration=l;var c=function(){return function(e,t,n){this.type=a.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0}}();t.AsyncFunctionExpression=c;var p=function(){return function(e){this.type=a.Syntax.AwaitExpression,this.argument=e}}();t.AwaitExpression=p;var h=function(){return function(e,t,n){var r="||"===e||"&&"===e;this.type=r?a.Syntax.LogicalExpression:a.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n}}();t.BinaryExpression=h;var f=function(){return function(e){this.type=a.Syntax.BlockStatement,this.body=e}}();t.BlockStatement=f;var g=function(){return function(e){this.type=a.Syntax.BreakStatement,this.label=e}}();t.BreakStatement=g;var m=function(){return function(e,t){this.type=a.Syntax.CallExpression,this.callee=e,this.arguments=t}}();t.CallExpression=m;var y=function(){return function(e,t){this.type=a.Syntax.CatchClause,this.param=e,this.body=t}}();t.CatchClause=y;var v=function(){return function(e){this.type=a.Syntax.ClassBody,this.body=e}}();t.ClassBody=v;var b=function(){return function(e,t,n){this.type=a.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n}}();t.ClassDeclaration=b;var R=function(){return function(e,t,n){this.type=a.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n}}();t.ClassExpression=R;var E=function(){return function(e,t){this.type=a.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t}}();t.ComputedMemberExpression=E;var x=function(){return function(e,t,n){this.type=a.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n}}();t.ConditionalExpression=x;var S=function(){return function(e){this.type=a.Syntax.ContinueStatement,this.label=e}}();t.ContinueStatement=S;var C=function(){return function(){this.type=a.Syntax.DebuggerStatement}}();t.DebuggerStatement=C;var D=function(){return function(e,t){this.type=a.Syntax.ExpressionStatement,this.expression=e,this.directive=t}}();t.Directive=D;var w=function(){return function(e,t){this.type=a.Syntax.DoWhileStatement,this.body=e,this.test=t}}();t.DoWhileStatement=w;var A=function(){return function(){this.type=a.Syntax.EmptyStatement}}();t.EmptyStatement=A;var _=function(){return function(e){this.type=a.Syntax.ExportAllDeclaration,this.source=e}}();t.ExportAllDeclaration=_;var T=function(){return function(e){this.type=a.Syntax.ExportDefaultDeclaration,this.declaration=e}}();t.ExportDefaultDeclaration=T;var P=function(){return function(e,t,n){this.type=a.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n}}();t.ExportNamedDeclaration=P;var k=function(){return function(e,t){this.type=a.Syntax.ExportSpecifier,this.exported=t,this.local=e}}();t.ExportSpecifier=k;var O=function(){return function(e){this.type=a.Syntax.ExpressionStatement,this.expression=e}}();t.ExpressionStatement=O;var F=function(){return function(e,t,n){this.type=a.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1}}();t.ForInStatement=F;var j=function(){return function(e,t,n){this.type=a.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n}}();t.ForOfStatement=j;var M=function(){return function(e,t,n,r){this.type=a.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r}}();t.ForStatement=M;var I=function(){return function(e,t,n,r){this.type=a.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1}}();t.FunctionDeclaration=I;var B=function(){return function(e,t,n,r){this.type=a.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1}}();t.FunctionExpression=B;var N=function(){return function(e){this.type=a.Syntax.Identifier,this.name=e}}();t.Identifier=N;var L=function(){return function(e,t,n){this.type=a.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n}}();t.IfStatement=L;var V=function(){return function(e,t){this.type=a.Syntax.ImportDeclaration,this.specifiers=e,this.source=t}}();t.ImportDeclaration=V;var z=function(){return function(e){this.type=a.Syntax.ImportDefaultSpecifier,this.local=e}}();t.ImportDefaultSpecifier=z;var U=function(){return function(e){this.type=a.Syntax.ImportNamespaceSpecifier,this.local=e}}();t.ImportNamespaceSpecifier=U;var H=function(){return function(e,t){this.type=a.Syntax.ImportSpecifier,this.local=e,this.imported=t}}();t.ImportSpecifier=H;var $=function(){return function(e,t){this.type=a.Syntax.LabeledStatement,this.label=e,this.body=t}}();t.LabeledStatement=$;var W=function(){return function(e,t){this.type=a.Syntax.Literal,this.value=e,this.raw=t}}();t.Literal=W;var G=function(){return function(e,t){this.type=a.Syntax.MetaProperty,this.meta=e,this.property=t}}();t.MetaProperty=G;var q=function(){return function(e,t,n,r,i){this.type=a.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=r,this.static=i}}();t.MethodDefinition=q;var K=function(){return function(e){this.type=a.Syntax.Program,this.body=e,this.sourceType="module"}}();t.Module=K;var X=function(){return function(e,t){this.type=a.Syntax.NewExpression,this.callee=e,this.arguments=t}}();t.NewExpression=X;var J=function(){return function(e){this.type=a.Syntax.ObjectExpression,this.properties=e}}();t.ObjectExpression=J;var Y=function(){return function(e){this.type=a.Syntax.ObjectPattern,this.properties=e}}();t.ObjectPattern=Y;var Q=function(){return function(e,t,n,r,i,o){this.type=a.Syntax.Property,this.key=t,this.computed=n,this.value=r,this.kind=e,this.method=i,this.shorthand=o}}();t.Property=Q;var Z=function(){return function(e,t,n,r){this.type=a.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:r}}}();t.RegexLiteral=Z;var ee=function(){return function(e){this.type=a.Syntax.RestElement,this.argument=e}}();t.RestElement=ee;var te=function(){return function(e){this.type=a.Syntax.ReturnStatement,this.argument=e}}();t.ReturnStatement=te;var ne=function(){return function(e){this.type=a.Syntax.Program,this.body=e,this.sourceType="script"}}();t.Script=ne;var ae=function(){return function(e){this.type=a.Syntax.SequenceExpression,this.expressions=e}}();t.SequenceExpression=ae;var re=function(){return function(e){this.type=a.Syntax.SpreadElement,this.argument=e}}();t.SpreadElement=re;var ie=function(){return function(e,t){this.type=a.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t}}();t.StaticMemberExpression=ie;var oe=function(){return function(){this.type=a.Syntax.Super}}();t.Super=oe;var se=function(){return function(e,t){this.type=a.Syntax.SwitchCase,this.test=e,this.consequent=t}}();t.SwitchCase=se;var ue=function(){return function(e,t){this.type=a.Syntax.SwitchStatement,this.discriminant=e,this.cases=t}}();t.SwitchStatement=ue;var de=function(){return function(e,t){this.type=a.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t}}();t.TaggedTemplateExpression=de;var le=function(){return function(e,t){this.type=a.Syntax.TemplateElement,this.value=e,this.tail=t}}();t.TemplateElement=le;var ce=function(){return function(e,t){this.type=a.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t}}();t.TemplateLiteral=ce;var pe=function(){return function(){this.type=a.Syntax.ThisExpression}}();t.ThisExpression=pe;var he=function(){return function(e){this.type=a.Syntax.ThrowStatement,this.argument=e}}();t.ThrowStatement=he;var fe=function(){return function(e,t,n){this.type=a.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n}}();t.TryStatement=fe;var ge=function(){return function(e,t){this.type=a.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0}}();t.UnaryExpression=ge;var me=function(){return function(e,t,n){this.type=a.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n}}();t.UpdateExpression=me;var ye=function(){return function(e,t){this.type=a.Syntax.VariableDeclaration,this.declarations=e,this.kind=t}}();t.VariableDeclaration=ye;var ve=function(){return function(e,t){this.type=a.Syntax.VariableDeclarator,this.id=e,this.init=t}}();t.VariableDeclarator=ve;var be=function(){return function(e,t){this.type=a.Syntax.WhileStatement,this.test=e,this.body=t}}();t.WhileStatement=be;var Re=function(){return function(e,t){this.type=a.Syntax.WithStatement,this.object=e,this.body=t}}();t.WithStatement=Re;var Ee=function(){return function(e,t){this.type=a.Syntax.YieldExpression,this.argument=e,this.delegate=t}}();t.YieldExpression=Ee},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(9),r=n(10),i=n(11),o=n(7),s=n(12),u=n(2),d=n(13),l=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new s.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,a=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=a,r},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,a=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=a||this.context.firstCoverInitializedNameError,r},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,a=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(a,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,i.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(a,new o.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(a,new o.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(a,new o.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(a,new o.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(a,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(a,new o.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new o.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new o.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var a=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,a},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),a=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,a,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var a=this.parseFormalParameters(),r=this.parsePropertyMethod(a);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new o.AsyncFunctionExpression(null,a.params,r))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,i.Messages.StrictOctalLiteral);var a=this.getTokenRaw(n);e=this.finalize(t,new o.Literal(n.value,a));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new o.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===u.Syntax.Identifier&&e.name===t||e.type===u.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),a=this.lookahead,r=null,s=null,u=!1,d=!1,l=!1,c=!1;if(3===a.type){var p=a.value;this.nextToken(),u=this.match("["),r=(c=!(this.hasLineTerminator||"async"!==p||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new o.Identifier(p))}else this.match("*")?this.nextToken():(u=this.match("["),r=this.parseObjectPropertyKey());var h=this.qualifiedPropertyName(this.lookahead);if(3===a.type&&!c&&"get"===a.value&&h)t="get",u=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod();else if(3===a.type&&!c&&"set"===a.value&&h)t="set",u=this.match("["),r=this.parseObjectPropertyKey(),s=this.parseSetterMethod();else if(7===a.type&&"*"===a.value&&h)t="init",u=this.match("["),r=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),d=!0;else if(r||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!c)!u&&this.isPropertyKey(r,"__proto__")&&(e.value&&this.tolerateError(i.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),s=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))s=c?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),d=!0;else if(3===a.type){p=this.finalize(n,new o.Identifier(a.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),l=!0;var f=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(n,new o.AssignmentPattern(p,f))}else l=!0,s=p}else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new o.Property(t,r,u,s,d,l))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new o.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){a.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,a=t.cooked;return this.finalize(e,new o.TemplateElement({raw:n,cooked:a},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],a=this.parseTemplateHead();for(n.push(a);!a.tail;)t.push(this.parseExpression()),a=this.parseTemplateElement(),n.push(a);return this.finalize(e,new o.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:e.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case u.Syntax.ArrayExpression:e.type=u.Syntax.ArrayPattern;for(var t=0;t")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[e],async:!1};else{var a=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var i=0;i")||this.expect("=>"),this.context.isBindingElement=!1;for(i=0;i")&&(e.type===u.Syntax.Identifier&&"yield"===e.name&&(a=!0,e={type:"ArrowParameterPlaceHolder",params:[e],async:!1}),!a)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===u.Syntax.SequenceExpression)for(i=0;i")){for(var u=0;u0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[e,this.lookahead],i=t,s=this.isolateCoverGrammar(this.parseExponentiationExpression),u=[i,n.value,s],d=[a];!((a=this.binaryPrecedence(this.lookahead))<=0);){for(;u.length>2&&a<=d[d.length-1];){s=u.pop();var l=u.pop();d.pop(),i=u.pop(),r.pop();var c=this.startNode(r[r.length-1]);u.push(this.finalize(c,new o.BinaryExpression(l,i,s)))}u.push(this.nextToken().value),d.push(a),r.push(this.lookahead),u.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=u.length-1;t=u[p];for(var h=r.pop();p>1;){var f=r.pop(),g=h&&h.lineStart;c=this.startNode(f,g),l=u[p-1];t=this.finalize(c,new o.BinaryExpression(l,u[p-2],t)),p-=2,h=f}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var a=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.ConditionalExpression(t,a,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case u.Syntax.Identifier:this.validateParam(e,t,t.name);break;case u.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case u.Syntax.ArrayPattern:for(var n=0;n")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e.async,s=this.reinterpretAsCoverFormalsList(e);if(s){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var d=this.context.strict,l=this.context.allowStrictDirective;this.context.allowStrictDirective=s.simple;var c=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=r;var h=this.startNode(t);this.expect("=>");var f=void 0;if(this.match("{")){var g=this.context.allowIn;this.context.allowIn=!0,f=this.parseFunctionSourceElements(),this.context.allowIn=g}else f=this.isolateCoverGrammar(this.parseAssignmentExpression);var m=f.type!==u.Syntax.BlockStatement;this.context.strict&&s.firstRestricted&&this.throwUnexpectedToken(s.firstRestricted,s.message),this.context.strict&&s.stricted&&this.tolerateUnexpectedToken(s.stricted,s.message),e=r?this.finalize(h,new o.AsyncArrowFunctionExpression(s.params,f,m)):this.finalize(h,new o.ArrowFunctionExpression(s.params,f,m)),this.context.strict=d,this.context.allowStrictDirective=l,this.context.allowYield=c,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===u.Syntax.Identifier){var y=e;this.scanner.isRestrictedWord(y.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(y.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var v=(n=this.nextToken()).value,b=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.AssignmentExpression(v,e,b)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new o.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new o.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),a=this.parsePattern([],e);this.context.strict&&a.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(a.name)&&this.tolerateError(i.Messages.StrictVarName);var r=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(i.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&a.type!==u.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new o.VariableDeclarator(a,r))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;a.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var r=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(r,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var a=this.parsePattern(e,t);return this.finalize(n,new o.RestElement(a))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var a=[];!this.match("]");)if(this.match(","))this.nextToken(),a.push(null);else{if(this.match("...")){a.push(this.parseBindingRestElement(e,t));break}a.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new o.ArrayPattern(a))},e.prototype.parsePropertyPattern=function(e,t){var n,a,r=this.createNode(),i=!1,s=!1;if(3===this.lookahead.type){var u=this.lookahead;n=this.parseVariableIdentifier();var d=this.finalize(r,new o.Identifier(u.value));if(this.match("=")){e.push(u),s=!0,this.nextToken();var l=this.parseAssignmentExpression();a=this.finalize(this.startNode(u),new o.AssignmentPattern(d,l))}else this.match(":")?(this.expect(":"),a=this.parsePatternWithDefault(e,t)):(e.push(u),s=!0,a=d)}else i=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),a=this.parsePatternWithDefault(e,t);return this.finalize(r,new o.Property("init",n,i,a,!1,s))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),a=[];for(this.expect("{");!this.match("}");)a.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new o.ObjectPattern(a))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,i.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,a=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,a=this.finalize(this.startNode(n),new o.AssignmentPattern(a,i))}return a},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new o.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(i.Messages.StrictVarName);var a=null;return this.match("=")?(this.nextToken(),a=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===u.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new o.VariableDeclarator(n,a))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new o.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(i.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var a=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new o.IfStatement(a,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var a=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new o.DoWhileStatement(n,a))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var a=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=a}return this.finalize(t,new o.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,a=null,r=null,s=null,d=!0,l=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){a=this.createNode(),this.nextToken();var c=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=c,1===p.length&&this.matchKeyword("in")){var h=p[0];h.init&&(h.id.type===u.Syntax.ArrayPattern||h.id.type===u.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(i.Messages.ForInOfLoopInitializer,"for-in"),a=this.finalize(a,new o.VariableDeclaration(p,"var")),this.nextToken(),e=a,t=this.parseExpression(),a=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(a=this.finalize(a,new o.VariableDeclaration(p,"var")),this.nextToken(),e=a,t=this.parseAssignmentExpression(),a=null,d=!1):(a=this.finalize(a,new o.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){a=this.createNode();var f=this.nextToken().value;if(this.context.strict||"in"!==this.lookahead.value){c=this.context.allowIn;this.context.allowIn=!1;p=this.parseBindingList(f,{inFor:!0});this.context.allowIn=c,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(a=this.finalize(a,new o.VariableDeclaration(p,f)),this.nextToken(),e=a,t=this.parseExpression(),a=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(a=this.finalize(a,new o.VariableDeclaration(p,f)),this.nextToken(),e=a,t=this.parseAssignmentExpression(),a=null,d=!1):(this.consumeSemicolon(),a=this.finalize(a,new o.VariableDeclaration(p,f)))}else a=this.finalize(a,new o.Identifier(f)),this.nextToken(),e=a,t=this.parseExpression(),a=null}else{var g=this.lookahead;c=this.context.allowIn;if(this.context.allowIn=!1,a=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=c,this.matchKeyword("in"))this.context.isAssignmentTarget&&a.type!==u.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(a),e=a,t=this.parseExpression(),a=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&a.type!==u.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(a),e=a,t=this.parseAssignmentExpression(),a=null,d=!1;else{if(this.match(",")){for(var m=[a];this.match(",");)this.nextToken(),m.push(this.isolateCoverGrammar(this.parseAssignmentExpression));a=this.finalize(this.startNode(g),new o.SequenceExpression(m))}this.expect(";")}}if(void 0===e&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(s=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var y=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=y}return void 0===e?this.finalize(l,new o.ForStatement(a,r,s,n)):d?this.finalize(l,new o.ForInStatement(e,t,n)):this.finalize(l,new o.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var a="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,a)||this.throwError(i.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(i.Messages.IllegalContinue),this.finalize(e,new o.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),a="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,a)||this.throwError(i.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(i.Messages.IllegalBreak),this.finalize(e,new o.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(i.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&2!==this.lookahead.type||8===this.lookahead.type||10===this.lookahead.type?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(e,new o.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(i.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new o.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new o.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var a=[],r=!1;for(this.expect("{");!this.match("}");){var s=this.parseSwitchCase();null===s.test&&(r&&this.throwError(i.Messages.MultipleDefaultsInSwitch),r=!0),a.push(s)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new o.SwitchStatement(t,a))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===u.Syntax.Identifier&&this.match(":")){this.nextToken();var a=n,r="$"+a.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(i.Messages.Redeclaration,"Label",a.name),this.context.labelSet[r]=!0;var s=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),s=this.parseClassDeclaration();else if(this.matchKeyword("function")){var d=this.lookahead,l=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(d,i.Messages.StrictFunction):l.generator&&this.tolerateUnexpectedToken(d,i.Messages.GeneratorInLegacyContext),s=l}else s=this.parseStatement();delete this.context.labelSet[r],e=new o.LabeledStatement(a,s)}else this.consumeSemicolon(),e=new o.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(i.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),a={},r=0;r0&&this.tolerateError(i.Messages.BadGetterArity);var a=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,a,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(i.Messages.BadSetterArity):n.params[0]instanceof o.RestElement&&this.tolerateError(i.Messages.BadSetterRestParameter);var a=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,a,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var a=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,a,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var a=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=a}return this.finalize(e,new o.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),a="",r=null,s=null,u=!1,d=!1,l=!1,c=!1;if(this.match("*"))this.nextToken();else if(u=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,l=!0,u=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(c=!0,t=this.lookahead,r=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,i.Messages.ConstructorIsAsync))}var h=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&h?(a="get",u=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod()):"set"===t.value&&h&&(a="set",u=this.match("["),r=this.parseObjectPropertyKey(),s=this.parseSetterMethod()):7===t.type&&"*"===t.value&&h&&(a="init",u=this.match("["),r=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),d=!0),!a&&r&&this.match("(")&&(a="init",s=c?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),d=!0),a||this.throwUnexpectedToken(this.lookahead),"init"===a&&(a="method"),u||(l&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(t,i.Messages.StaticPrototype),!l&&this.isPropertyKey(r,"constructor")&&(("method"!==a||!d||s&&s.generator)&&this.throwUnexpectedToken(t,i.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,i.Messages.DuplicateConstructor):e.value=!0,a="constructor")),this.finalize(n,new o.MethodDefinition(r,u,s,a,l))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new o.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var a=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=n,this.finalize(t,new o.ClassDeclaration(a,r,i))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,a=null;this.matchKeyword("extends")&&(this.nextToken(),a=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=t,this.finalize(e,new o.ClassExpression(n,a,r))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(i.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new o.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new o.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(i.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new o.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var a=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(a,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new o.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new o.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new o.ExportDefaultDeclaration(n))}else if(this.matchKeyword("class")){n=this.parseClassDeclaration(!0);e=this.finalize(t,new o.ExportDefaultDeclaration(n))}else if(this.matchContextualKeyword("async")){n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();e=this.finalize(t,new o.ExportDefaultDeclaration(n))}else{this.matchContextualKeyword("from")&&this.throwError(i.Messages.UnexpectedToken,this.lookahead.value);n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),e=this.finalize(t,new o.ExportDefaultDeclaration(n))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var a=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(a,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new o.ExportAllDeclaration(r))}else if(4===this.lookahead.type){n=void 0;switch(this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new o.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction()){n=this.parseFunctionDeclaration();e=this.finalize(t,new o.ExportNamedDeclaration(n,[],null))}else{var s=[],u=null,d=!1;for(this.expect("{");!this.match("}");)d=d||this.matchKeyword("default"),s.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),u=this.parseModuleSpecifier(),this.consumeSemicolon();else if(d){a=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(a,this.lookahead.value)}else this.consumeSemicolon();e=this.finalize(t,new o.ExportNamedDeclaration(null,s,u))}return e},e}();t.Parser=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(e){Object.create&&Object.defineProperty&&(n=Object.create(e),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,a){var r="Line "+t+": "+a,i=this.constructError(r,n);return i.index=e,i.lineNumber=t,i.description=a,i},e.prototype.throwError=function(e,t,n,a){throw this.createError(e,t,n,a)},e.prototype.tolerateError=function(e,t,n,a){var r=this.createError(e,t,n,a);if(!this.tolerant)throw r;this.recordError(r)},e}();t.ErrorHandler=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(9),r=n(4),i=n(11);function o(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function s(e){return"01234567".indexOf(e)}var u=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,a=[];for(this.trackComment&&(a=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(i)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var o={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};a.push(o)}return 13===i&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,a}}if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};o={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n};a.push(o)}return a},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var a=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(a))13===a&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===a){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(i)}return n}++this.index}else++this.index}if(this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};i={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t};n.push(i)}return this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(n))++this.index;else if(r.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var a=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(a)),t=!0}else{if(42!==n)break;this.index+=2;a=this.skipMultiLineComment();this.trackComment&&(e=e.concat(a))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3;a=this.skipSingleLineComment(3);this.trackComment&&(e=e.concat(a))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4;a=this.skipSingleLineComment(4);this.trackComment&&(e=e.concat(a))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);if(n>=56320&&n<=57343)t=1024*(t-55296)+n-56320+65536}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,a=0;a1114111||"}"!==e)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=r.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),r.Character.isIdentifierPart(t));)n+=e=r.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=s(e);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+s(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+s(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!==(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var a=this.index;this.index=t,this.tolerateUnexpectedToken(i.Messages.InvalidEscapedReservedWord),this.index=a}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(t)||r.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",a=!1;for(r.Character.isOctalDigit(e.charCodeAt(0))?(a=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return a||0!==n.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(e,t,n){var r=parseInt(t||n,16);return r>1114111&&a.throwUnexpectedToken(i.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"￿"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(n)}catch(e){this.throwUnexpectedToken(i.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(e){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];a.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,o=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],r.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t+=e;else if(r.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(i.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){o=!0;break}"["===e&&(n=!0)}return o||this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!r.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t,t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,a=this.scanHexEscape("u");if(null!==a)for(e+=a,"\\u";n=55296&&e<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(10),r=n(12),i=n(13),o=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(a=this.values[this.curly-4])&&!this.beforeFunctionExpression(a);else if("function"===this.values[this.curly-4]){var a;t=!(a=this.values[this.curly-5])||!this.beforeFunctionExpression(a)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),s=function(){function e(e,t){this.errorHandler=new a.ErrorHandler,this.errorHandler.tolerant=!!t&&("boolean"==typeof t.tolerant&&t.tolerant),this.scanner=new r.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&("boolean"==typeof t.comment&&t.comment),this.trackRange=!!t&&("boolean"==typeof t.range&&t.range),this.trackLoc=!!t&&("boolean"==typeof t.loc&&t.loc),this.buffer=[],this.reader=new o}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t=0&&!(l.comparePos(a[r].loc.end,t.loc.start)<=0);--r);return void a.splice(r+1,0,t)}}else if(t[c])return t[c];var d;if(s.check(t))d=Object.keys(t);else{if(!u.check(t))return;d=i.default.getFieldNames(t)}a||Object.defineProperty(t,c,{value:a=[],enumerable:!1}),r=0;for(var p=d.length;r>1,f=a[h];if(l.comparePos(f.loc.start,t.loc.start)<=0&&l.comparePos(t.loc.end,f.loc.end)<=0)return void p(t.enclosingNode=f,t,n);if(l.comparePos(f.loc.end,t.loc.start)<=0){var g=f;r=h+1}else{if(!(l.comparePos(t.loc.end,f.loc.start)<=0))throw new Error("Comment location overlaps with node location");var m=f;d=h}}g&&(t.precedingNode=g),m&&(t.followingNode=m)}function h(e,t){var n=e.length;if(0!==n){for(var a=e[0].precedingNode,i=e[0].followingNode,o=i.loc.start,s=n;s>0;--s){var u=e[s-1];r.default.strictEqual(u.precedingNode,a),r.default.strictEqual(u.followingNode,i);var d=t.sliceString(u.loc.end,o);if(/\S/.test(d))break;o=u.loc.start}for(;s<=n&&(u=e[s])&&("Line"===u.type||"CommentLine"===u.type)&&u.loc.start.column>i.loc.start.column;)++s;e.forEach(function(e,t){t0){var d=a[u-1];r.default.strictEqual(d.precedingNode===e.precedingNode,d.followingNode===e.followingNode),d.followingNode!==e.followingNode&&h(a,n)}a.push(e)}else if(i)h(a,n),m(i,e);else if(s)h(a,n),g(s,e);else{if(!o)throw new Error("AST contains no nodes at all?");h(a,n),function(e,t){t.leading=!1,t.trailing=!1,f(e,t)}(o,e)}}),h(a,n),e.forEach(function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})}},t.printComments=function(e,t){var n=e.getValue(),a=t(e),r=o.Node.check(n)&&i.default.getFieldValue(n,"comments");if(!r||0===r.length)return a;var s=[],u=[a];return e.each(function(e){var a=e.getValue(),r=i.default.getFieldValue(a,"leading"),l=i.default.getFieldValue(a,"trailing");r||l&&!o.Statement.check(n)&&"Block"!==a.type&&"CommentBlock"!==a.type?s.push(function(e,t){var n=e.getValue();o.Comment.assert(n);var a=n.loc,r=a&&a.lines,i=[t(e)];if(n.trailing)i.push("\n");else if(r instanceof d.Lines){var s=r.slice(a.end,r.skipSpaces(a.end)||r.lastPos());1===s.length?i.push(s):i.push(new Array(s.length).join("\n"))}else i.push("\n");return d.concat(i)}(e,t)):l&&u.push(function(e,t){var n=e.getValue(e);o.Comment.assert(n);var a=n.loc,r=a&&a.lines,i=[];if(r instanceof d.Lines){var s=r.skipSpaces(a.start,!0)||r.firstPos(),u=r.slice(s,a.start);1===u.length?i.push(u):i.push(new Array(u.length).join("\n"))}return i.push(t(e)),d.concat(i)}(e,t))},"comments"),s.push.apply(s,u),d.concat(s)}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(25)),o=a(n(44)),s=o.default.namedTypes,u=o.default.builtInTypes.array,d=o.default.builtInTypes.number,l=r(n(36)),c=function e(t){i.default.ok(this instanceof e),this.stack=[t]},p=c.prototype;function h(e,t){for(var n=e.stack,a=n.length-1;a>=0;a-=2){var r=n[a];if(s.Node.check(r)&&--t<0)return r}return null}function f(e){return s.BinaryExpression.check(e)||s.LogicalExpression.check(e)}c.from=function(e){if(e instanceof c)return e.copy();if(e instanceof o.default.NodePath){for(var t,n=Object.create(c.prototype),a=[e.value];t=e.parentPath;e=t)a.push(e.name,t.value);return n.stack=a.reverse(),n}return new c(e)},p.copy=function(){var e=Object.create(c.prototype);return e.stack=this.stack.slice(0),e},p.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},p.getValue=function(){var e=this.stack;return e[e.length-1]},p.valueIsDuplicate=function(){var e=this.stack,t=e.length-1;return e.lastIndexOf(e[t],t-1)>=0},p.getNode=function(e){return void 0===e&&(e=0),h(this,~~e)},p.getParentNode=function(e){return void 0===e&&(e=0),h(this,1+~~e)},p.getRootValue=function(){var e=this.stack;return e.length%2==0?e[1]:e[0]},p.call=function(e){for(var t=this.stack,n=t.length,a=t[n-1],r=arguments.length,i=1;i0){var a=n[t.start.token-1];if(a){var r=this.getRootValue().loc;if(l.comparePos(r.start,a.loc.start)<=0)return a}}return null},p.getNextToken=function(e){var t=(e=e||this.getNode())&&e.loc,n=t&&t.tokens;if(n&&t.end.tokenl)return!0;if(o===l&&"right"===a)return i.default.strictEqual(n.right,t),!0;default:return!1}case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==a;default:return!0}case"YieldExpression":switch(n.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"Literal":return"MemberExpression"===n.type&&d.check(t.value)&&"object"===a&&n.object===t;case"NumericLiteral":return"MemberExpression"===n.type&&"object"===a&&n.object===t;case"AssignmentExpression":case"ConditionalExpression":switch(n.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":case"NewExpression":return"callee"===a&&n.callee===t;case"ConditionalExpression":return"test"===a&&n.test===t;case"MemberExpression":return"object"===a&&n.object===t;default:return!1}case"ArrowFunctionExpression":return!(!s.CallExpression.check(n)||"callee"!==a)||(!(!s.MemberExpression.check(n)||"object"!==a)||f(n));case"ObjectExpression":if("ArrowFunctionExpression"===n.type&&"body"===a)return!0;break;case"CallExpression":if("declaration"===a&&s.ExportDefaultDeclaration.check(n)&&s.FunctionExpression.check(t.callee))return!0}return"NewExpression"===n.type&&"callee"===a&&n.callee===t?m(t):!(!0===e||this.canBeFirstInStatement()||!this.firstInStatement())};var g={};function m(e){return!!s.CallExpression.check(e)||(u.check(e)?e.some(m):!!s.Node.check(e)&&o.default.someField(e,function(e,t){return m(t)}))}[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%","**"]].forEach(function(e,t){e.forEach(function(e){g[e]=t})}),p.canBeFirstInStatement=function(){var e=this.getNode();return!s.FunctionExpression.check(e)&&(!s.ObjectExpression.check(e)&&!s.ClassExpression.check(e))},p.firstInStatement=function(){for(var e,t,n,a,r=this.stack,o=r.length-1;o>=0;o-=2)if(s.Node.check(r[o])&&(n=e,a=t,e=r[o-1],t=r[o]),t&&a){if(s.BlockStatement.check(t)&&"body"===e&&0===n)return i.default.strictEqual(t.body[0],a),!0;if(s.ExpressionStatement.check(t)&&"expression"===n)return i.default.strictEqual(t.expression,a),!0;if(s.AssignmentExpression.check(t)&&"left"===n)return i.default.strictEqual(t.left,a),!0;if(s.ArrowFunctionExpression.check(t)&&"body"===n)return i.default.strictEqual(t.body,a),!0;if(s.SequenceExpression.check(t)&&"expressions"===e&&0===n)i.default.strictEqual(t.expressions[0],a);else if(s.CallExpression.check(t)&&"callee"===n)i.default.strictEqual(t.callee,a);else if(s.MemberExpression.check(t)&&"object"===n)i.default.strictEqual(t.object,a);else if(s.ConditionalExpression.check(t)&&"test"===n)i.default.strictEqual(t.test,a);else if(f(t)&&"left"===n)i.default.strictEqual(t.left,a);else{if(!s.UnaryExpression.check(t)||t.prefix||"argument"!==n)return!1;i.default.strictEqual(t.argument,a)}}return!0},t.default=c,e.exports=t.default},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.get("body","body").filter(e=>(!e.node.computed||i.Literal.check(e.node.key))&&!i.PrivateName.check(e.node.key)&&(0,r.default)(e.get("key"))===t&&"set"!==e.node.kind).map(e=>e.get("value"))[0]};var r=a(n(67));const i=a(n(7)).default.types.namedTypes},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.traverseShallow=function(e,t){i.default.visit(e,(0,r.default)({},s,t))};var r=a(n(68)),i=a(n(7));const o=()=>!1,s={visitFunctionDeclaration:o,visitFunctionExpression:o,visitClassDeclaration:o,visitClassExpression:o,visitIfStatement:o,visitWithStatement:o,visitSwitchStatement:o,visitWhileStatement:o,visitDoWhileStatement:o,visitForStatement:o,visitForInStatement:o,visitForOfStatement:o,visitExportDeclaration:o,visitExportNamedDeclaration:o,visitExportDefaultDeclaration:o,visitConditionalExpression:o}},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,s.default)(e),n=(0,r.getDocblock)(e);return{name:t,docblock:n,modifiers:p(e),params:l(e),returns:c(e)}};var r=n(66),i=a(n(138)),o=a(n(290)),s=a(n(29)),u=a(n(89));const d=a(n(7)).default.types.namedTypes;function l(e){const t=[];return e.get("value").get("params").each(e=>{let n=null;const a=(0,u.default)(e);a&&(n=(0,i.default)(a),d.GenericTypeAnnotation.check(a.node)&&(n.alias=a.node.id.name));const r={name:(0,o.default)(e),optional:e.node.optional,type:n};t.push(r)}),t}function c(e){const t=e.get("value");if(t.node.returnType){const e=(0,u.default)(t.get("returnType"));if(e)return{type:(0,i.default)(e)}}return null}function p(e){const t=[];e.node.static&&t.push("static"),"get"!==e.node.kind&&"set"!==e.node.kind||t.push(e.node.kind);const n=e.get("value").node;return n.generator&&t.push("generator"),n.async&&t.push("async"),t}},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.resolveObjectToNameArray=p,t.default=function(e){if(function(e){return d.CallExpression.check(e)&&1===e.arguments.length&&d.MemberExpression.check(e.callee)&&d.Identifier.check(e.callee.object)&&"Object"===e.callee.object.name&&d.Identifier.check(e.callee.property)&&"keys"===e.callee.property.name}(e.node)){const t=(0,i.default)(e.get("arguments").get(0)),n=p(t);if(n){const e=n.filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.literal(e));return new s(u.arrayExpression(e))}}return null};var r=a(n(7)),i=a(n(11));const o=r.default.types,s=(o.ASTNode,o.NodePath),u=o.builders,d=o.namedTypes;function l(e){return d.Property.check(e)&&(d.Identifier.check(e.key)&&!e.computed||d.Literal.check(e.key))||d.SpreadElement.check(e)}function c(e){return d.ObjectTypeProperty.check(e)||d.ObjectTypeSpreadProperty.check(e)}function p(e,t=!1){if(d.ObjectExpression.check(e.value)&&e.value.properties.every(l)||d.ObjectTypeAnnotation.check(e.value)&&e.value.properties.every(c)){let n=[],a=!1;if(e.get("properties").each(e=>{if(a)return;const r=e.value;if(d.Property.check(r)||d.ObjectTypeProperty.check(r)){const e=r.key.name||(t?r.key.raw:r.key.value);n.push(e)}else if(d.SpreadElement.check(r)||d.ObjectTypeSpreadProperty.check(r)){let t=(0,i.default)(e.get("argument"));if(d.GenericTypeAnnotation.check(t.value)){const e=(0,i.default)(t.get("id"));d.ObjectTypeAnnotation.check(e.get("right").value)&&(t=(0,i.default)(e.get("right")))}const r=p(t);if(!r)return void(a=!0);n=[...n,...r]}}),!a)return n}return null}},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){switch(t.node.type){case o.Identifier.name:return t.node.name;case o.AssignmentPattern.name:return e(t.get("left"));case o.ObjectPattern.name:case o.ArrayPattern.name:return(0,i.default)(t);case o.RestElement.name:return"..."+e(t.get("argument"));default:throw new TypeError("Parameter name must be an Identifier, an AssignmentPattern an "+`ObjectPattern or a RestElement, got ${t.node.type}`)}};var r=a(n(7)),i=a(n(52));const o=r.default.types.namedTypes},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!o.MethodDefinition.check(e.node)&&!o.Property.check(e.node))return!1;const t=(0,i.default)(e);return-1!==s.indexOf(t)};var r=a(n(7)),i=a(n(29));const o=r.default.types.namedTypes,s=["componentDidMount","componentDidReceiveProps","componentDidUpdate","componentWillMount","UNSAFE_componentWillMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","componentWillUnmount","componentWillUpdate","UNSAFE_componentWillUpdate","getChildContext","getDefaultProps","getInitialState","render","shouldComponentUpdate","getDerivedStateFromProps","getDerivedStateFromError","getSnapshotBeforeUpdate","componentDidCatch"]},function(e,t){!function(){"use strict";var t,n,a,r,i,o;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B2\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\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\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\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\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-\u13F4\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-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\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-\uAB5F\uAB64\uAB65\uABC0-\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]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\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\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\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\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-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\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\u1380-\u138F\u13A0-\u13F4\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-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\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-\uAB5F\uAB64\uAB65\uABC0-\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-\uFE2D\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]/},t={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B2\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\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\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\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\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-\u13F4\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-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\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-\uAB5F\uAB64\uAB65\uABC0-\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\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\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\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\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]|\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]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\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\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\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\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\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\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-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\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-\u13F4\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-\u1877\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\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\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-\uAB5F\uAB64\uAB65\uABC0-\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-\uFE2D\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\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\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\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},a=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],r=new Array(128),o=0;o<128;++o)r[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(i=new Array(128),o=0;o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&a.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?r[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?r[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()},function(e,t,n){!function(){"use strict";var e,a;function r(e){this.name="DoctrineError",this.message=e}e=n(572).version,t.VERSION=e,r.prototype=((a=function(){}).prototype=Error.prototype,new a),r.prototype.constructor=r,t.DoctrineError=r,t.throwError=function(e){throw new r(e)},t.assert=n(25)}()},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var r=n(66),i=a(n(91)),o=a(n(29)),s=a(n(295)),u=a(n(52)),d=a(n(7)),l=a(n(11)),c=a(n(289)),p=a(n(578));const h=d.default.types.namedTypes;function f(e){const t=[];return e.get("elements").each(function(e){if(h.SpreadElement.check(e.node)){const n=(0,l.default)(e.get("argument"));return h.ArrayExpression.check(n.node)?t.push(...f(n)):t.push({value:(0,u.default)(e),computed:!h.Literal.check(e.node)})}const n=(0,l.default)(e);return t.push({value:(0,u.default)(n),computed:!h.Literal.check(n.node)})}),t}function g(e,t){const n={name:e};if(h.ObjectExpression.check(t.node)||(t=(0,l.default)(t)),h.ObjectExpression.check(t.node)){const e={};t.get("properties").each(function(t){if(t.get("type").value===h.SpreadElement.name)return;const n=v(t.get("value")),a=(0,r.getDocblock)(t);a&&(n.description=a),n.required=(0,s.default)(t.get("value")),e[(0,o.default)(t)]=n}),n.value=e}return n.value||(n.value=(0,u.default)(t),n.computed=!0),n}const m=["array","bool","func","number","object","string","any","element","node","symbol","elementType"],y={oneOf:function(e){const t={name:"enum"};let n=(0,l.default)(e);return h.ArrayExpression.check(n.node)?t.value=f(n):(n=(0,c.default)(n)||(0,p.default)(n))?t.value=f(n):(t.computed=!0,t.value=(0,u.default)(e)),t},oneOfType:function(e){const t={name:"union"};return h.ArrayExpression.check(e.node)?t.value=e.get("elements").map(function(e){const t=v(e),n=(0,r.getDocblock)(e);return n&&(t.description=n),t}):(t.computed=!0,t.value=(0,u.default)(e)),t},instanceOf:function(e){return{name:"instanceOf",value:(0,u.default)(e)}},arrayOf:function(e){const t={name:"arrayOf"},n=(0,r.getDocblock)(e);n&&(t.description=n);const a=v(e);return"unknown"===a.name?(t.value=(0,u.default)(e),t.computed=!0):t.value=a,t},objectOf:function(e){const t={name:"objectOf"},n=(0,r.getDocblock)(e);n&&(t.description=n);const a=v(e);return"unknown"===a.name?(t.value=(0,u.default)(e),t.computed=!0):t.value=a,t},shape:g.bind(null,"shape"),exact:g.bind(null,"exact")};function v(e){let t;if((0,i.default)(e,!0).some(e=>{const n=e.path.node;let a;if(h.Literal.check(n)?a=n.value:h.Identifier.check(n)&&!e.computed&&(a=n.name),a){if(m.includes(a))return t={name:a},!0;if(y.hasOwnProperty(a)&&e.argumentsPath)return t=y[a](e.argumentsPath.get(0)),!0}}),!t){const n=e.node;t=h.Identifier.check(n)&&m.includes(n.name)?{name:n.name}:h.CallExpression.check(n)&&h.Identifier.check(n.callee)&&y.hasOwnProperty(n.callee.name)?y[n.callee.name](e.get("arguments",0)):{name:"custom",raw:(0,u.default)(e)}}return t}},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e).some(e=>!e.computed&&"isRequired"===e.path.node.name||e.computed&&"isRequired"===e.path.node.value)};var r=a(n(91))},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(29)),i=n(66);t.default=(e,t)=>{const n=(0,r.default)(t),a=e.getPropDescriptor(n);a.description||(a.description=(0,i.getDocblock)(t)||"")}},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.applyToFlowTypeProperties=function e(t,n){if(t.node.properties)t.get("properties").each(e=>n(e));else if("IntersectionTypeAnnotation"===t.node.type)t.get("types").each(t=>e(t,n));else if("UnionTypeAnnotation"!==t.node.type){const a=(0,u.default)(t);a&&e(a,n)}},t.default=void 0;var r=a(n(89)),i=a(n(37)),o=a(n(45)),s=a(n(53)),u=a(n(583));t.default=e=>{let t;if((0,o.default)(e)){const n=e.get("superTypeParameters");if(n.value){const e=n.get("params");t=3===e.value.length?e.get(1):e.get(0)}else{const n=(0,i.default)(e,"props");if(!n)return null;t=(0,r.default)(n.parentPath)}}else if((0,s.default)(e)){const n=e.get("params").get(0);t=(0,r.default)(n)}return t}},function(e,t,n){"use strict";var a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.isSupportedUtilityType=o,t.unwrapUtilityType=function(e){for(;o(e);)e=e.get("typeParameters","params",0);return e};const r=a(n(7)).default.types.namedTypes,i=new Set(["$Exact","$ReadOnly"]);function o(e){if(r.GenericTypeAnnotation.check(e.node)){const t=e.get("id");return!!t&&i.has(t.node.name)}return!1}},function(e,t,n){var a=n(587),r=n(588),i=n(589);e.exports=function(e,t){return a(e)||r(e,t)||i()}},function(e,t,n){"use strict";function a(){const e=u(n(301));return a=function(){return e},e}function r(){const e=u(n(33));return r=function(){return e},e}function i(){const e=n(102);return i=function(){return e},e}function o(){const e=u(n(9));return o=function(){return e},e}function s(){const e=(t=n(360))&&t.__esModule?t:{default:t};var t;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const d={enter(e,t){const n=e.node.loc;n&&(t.loc=n,e.stop())}};t.default=class{constructor(e,{code:t,ast:n,inputMap:a}){this._map=new Map,this.declarations={},this.path=null,this.ast={},this.metadata={},this.code="",this.inputMap=null,this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)},this.opts=e,this.code=t,this.ast=n,this.inputMap=a,this.path=r().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext(),this.scope=this.path.scope}get shebang(){const{interpreter:e}=this.path.node;return e?e.value:""}set shebang(e){e?this.path.get("interpreter").replaceWith(o().interpreterDirective(e)):this.path.get("interpreter").remove()}set(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)}get(e){return this._map.get(e)}has(e){return this._map.has(e)}getModuleName(){const{filename:e,filenameRelative:t=e,moduleId:n,moduleIds:a=!!n,getModuleId:r,sourceRoot:i,moduleRoot:o=i,sourceRoot:s=o}=this.opts;if(!a)return null;if(null!=n&&!r)return n;let u=null!=o?o+"/":"";if(t){const e=null!=s?new RegExp("^"+s+"/?"):"";u+=t.replace(e,"").replace(/\.(\w*?)$/,"")}return u=u.replace(/\\/g,"/"),r&&r(u)||u}addImport(){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'.")}availableHelper(e,t){let n;try{n=a().minVersion(e)}catch(e){if("BABEL_HELPER_UNKNOWN"!==e.code)throw e;return!1}return"string"!=typeof t||(s().default.valid(t)&&(t=`^${t}`),!s().default.intersects(`<${n}`,t)&&!s().default.intersects(">=8.0.0",t))}addHelper(e){const t=this.declarations[e];if(t)return o().cloneNode(t);const n=this.get("helperGenerator");if(n){const t=n(e);if(t)return t}const r=this.declarations[e]=this.scope.generateUidIdentifier(e),i={};for(const t of a().getDependencies(e))i[t]=this.addHelper(t);const{nodes:s,globals:u}=a().get(e,e=>i[e],r,Object.keys(this.scope.getAllBindings()));return u.forEach(e=>{this.path.scope.hasBinding(e,!0)&&this.path.scope.rename(e)}),s.forEach(e=>{e._compact=!0}),this.path.unshiftContainer("body",s),this.path.get("body").forEach(e=>{-1!==s.indexOf(e.node)&&e.isVariableDeclaration()&&this.scope.registerDeclaration(e)}),r}addTemplateObject(){throw new Error("This function has been moved into the template literal transform itself.")}buildCodeFrameError(e,t,n=SyntaxError){let a=e&&(e.loc||e._loc);if(t=`${this.opts.filename}: ${t}`,!a&&e){const n={loc:null};(0,r().default)(e,d,this.scope,n);let i="This is an error on an internal node. Probably an internal error.";(a=n.loc)&&(i+=" Location has been estimated."),t+=` (${i})`}if(a){const{highlightCode:e=!0}=this.opts;t+="\n"+(0,i().codeFrameColumns)(this.code,{start:{line:a.start.line,column:a.start.column+1}},{highlightCode:e})}return new n(t)}}},function(e,t,n){"use strict";function a(){const e=o(n(33));return a=function(){return e},e}function r(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(9));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.get=l,t.minVersion=function(e){return d(e).minVersion()},t.getDependencies=function(e){return Array.from(d(e).dependencies.values())},t.default=t.list=void 0;var i=o(n(790));function o(e){return e&&e.__esModule?e:{default:e}}function s(e){const t=[];for(;e.parentPath;e=e.parentPath)t.push(e.key),e.inList&&t.push(e.listKey);return t.reverse().join(".")}const u=Object.create(null);function d(e){if(!u[e]){const t=i.default[e];if(!t)throw Object.assign(new ReferenceError(`Unknown helper ${e}`),{code:"BABEL_HELPER_UNKNOWN",helper:e});const n=()=>r().file(t.ast()),o=function(e){const t=new Set,n=new Set,r=new Map;let o,u;const d=[],l=[],c=[];if((0,a().default)(e,{ImportDeclaration(e){const t=e.node.source.value;if(!i.default[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");const n=e.node.specifiers[0].local;r.set(n,t),l.push(s(e))},ExportDefaultDeclaration(e){const t=e.get("declaration");if(t.isFunctionDeclaration()){if(!t.node.id)throw t.buildCodeFrameError("Helpers should give names to their exported func declaration");o=t.node.id.name}u=s(e)},ExportAllDeclaration(e){throw e.buildCodeFrameError("Helpers can only export default")},ExportNamedDeclaration(e){throw e.buildCodeFrameError("Helpers can only export default")},Statement(e){e.isModuleDeclaration()||e.skip()}}),(0,a().default)(e,{Program(e){const t=e.scope.getAllBindings();Object.keys(t).forEach(e=>{e!==o&&(r.has(t[e].identifier)||n.add(e))})},ReferencedIdentifier(e){const n=e.node.name,a=e.scope.getBinding(n,!0);a?r.has(a.identifier)&&c.push(s(e)):t.add(n)},AssignmentExpression(e){const t=e.get("left");if(!(o in t.getBindingIdentifiers()))return;if(!t.isIdentifier())throw t.buildCodeFrameError("Only simple assignments to exports are allowed in helpers");const n=e.scope.getBinding(o);n&&n.scope.path.isProgram()&&d.push(s(e))}}),!u)throw new Error("Helpers must default-export something.");return d.reverse(),{globals:Array.from(t),localBindingNames:Array.from(n),dependencies:r,exportBindingAssignments:d,exportPath:u,exportName:o,importBindingsReferences:c,importPaths:l}}(n());u[e]={build(e,t,i){const s=n();return function(e,t,n,i,o){if(i&&!n)throw new Error("Unexpected local bindings for module-based helpers.");if(!n)return;const{localBindingNames:s,dependencies:u,exportBindingAssignments:d,exportPath:l,exportName:c,importBindingsReferences:p,importPaths:h}=t,f={};u.forEach((e,t)=>{f[t.name]="function"==typeof o&&o(e)||t});const g={},m=new Set(i||[]);s.forEach(e=>{let t=e;for(;m.has(t);)t="_"+t;t!==e&&(g[e]=t)}),"Identifier"===n.type&&c!==n.name&&(g[c]=n.name),(0,a().default)(e,{Program(e){const t=e.get(l),a=h.map(t=>e.get(t)),i=p.map(t=>e.get(t)),o=t.get("declaration");if("Identifier"===n.type)o.isFunctionDeclaration()?t.replaceWith(o):t.replaceWith(r().variableDeclaration("var",[r().variableDeclarator(n,o.node)]));else{if("MemberExpression"!==n.type)throw new Error("Unexpected helper format.");o.isFunctionDeclaration()?(d.forEach(t=>{const a=e.get(t);a.replaceWith(r().assignmentExpression("=",n,a.node))}),t.replaceWith(o),e.pushContainer("body",r().expressionStatement(r().assignmentExpression("=",n,r().identifier(c))))):t.replaceWith(r().expressionStatement(r().assignmentExpression("=",n,o.node)))}Object.keys(g).forEach(t=>{e.scope.rename(t,g[t])});for(const e of a)e.remove();for(const e of i){const t=r().cloneNode(f[e.node.name]);e.replaceWith(t)}e.stop()}})}(s,o,t,i,e),{nodes:s.program.body,globals:o.globals}},minVersion:()=>t.minVersion,dependencies:o.dependencies}}return u[e]}function l(e,t,n,a){return d(e).build(t,n,a)}const c=Object.keys(i.default).map(e=>e.replace(/^_/,"")).filter(e=>"__esModule"!==e);t.list=c;var p=l;t.default=p},function(e,t,n){"use strict";function a(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(9));return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.ForAwaitStatement=t.NumericLiteralTypeAnnotation=t.ExistentialTypeParam=t.SpreadProperty=t.RestProperty=t.Flow=t.Pure=t.Generated=t.User=t.Var=t.BlockScoped=t.Referenced=t.Scope=t.Expression=t.Statement=t.BindingIdentifier=t.ReferencedMemberExpression=t.ReferencedIdentifier=void 0;const r={types:["Identifier","JSXIdentifier"],checkPath(e,t){const{node:n,parent:r}=e;if(!a().isIdentifier(n,t)&&!a().isJSXMemberExpression(r,t)){if(!a().isJSXIdentifier(n,t))return!1;if(a().react.isCompatTag(n.name))return!1}return a().isReferenced(n,r,e.parentPath.parent)}};t.ReferencedIdentifier=r;const i={types:["MemberExpression"],checkPath:({node:e,parent:t})=>a().isMemberExpression(e)&&a().isReferenced(e,t)};t.ReferencedMemberExpression=i;const o={types:["Identifier"],checkPath(e){const{node:t,parent:n}=e,r=e.parentPath.parent;return a().isIdentifier(t)&&a().isBinding(t,n,r)}};t.BindingIdentifier=o;const s={types:["Statement"],checkPath({node:e,parent:t}){if(a().isStatement(e)){if(a().isVariableDeclaration(e)){if(a().isForXStatement(t,{left:e}))return!1;if(a().isForStatement(t,{init:e}))return!1}return!0}return!1}};t.Statement=s;const u={types:["Expression"],checkPath:e=>e.isIdentifier()?e.isReferencedIdentifier():a().isExpression(e.node)};t.Expression=u;const d={types:["Scopable"],checkPath:e=>a().isScope(e.node,e.parent)};t.Scope=d;const l={checkPath:e=>a().isReferenced(e.node,e.parent)};t.Referenced=l;const c={checkPath:e=>a().isBlockScoped(e.node)};t.BlockScoped=c;const p={types:["VariableDeclaration"],checkPath:e=>a().isVar(e.node)};t.Var=p;const h={checkPath:e=>e.node&&!!e.node.loc};t.User=h;const f={checkPath:e=>!e.isUser()};t.Generated=f;const g={checkPath:(e,t)=>e.scope.isPure(e.node,t)};t.Pure=g;const m={types:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],checkPath:({node:e})=>!!a().isFlow(e)||(a().isImportDeclaration(e)?"type"===e.importKind||"typeof"===e.importKind:a().isExportDeclaration(e)?"type"===e.exportKind:!!a().isImportSpecifier(e)&&("type"===e.importKind||"typeof"===e.importKind))};t.Flow=m;const y={types:["RestElement"],checkPath:e=>e.parentPath&&e.parentPath.isObjectPattern()};t.RestProperty=y;const v={types:["RestElement"],checkPath:e=>e.parentPath&&e.parentPath.isObjectExpression()};t.SpreadProperty=v;t.ExistentialTypeParam={types:["ExistsTypeAnnotation"]};t.NumericLiteralTypeAnnotation={types:["NumberLiteralTypeAnnotation"]};const b={types:["ForOfStatement"],checkPath:({node:e})=>!0===e.await};t.ForAwaitStatement=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.split(".");return e=>(0,r.default)(e,n,t)};var a,r=(a=n(304))&&a.__esModule?a:{default:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!(0,a.isMemberExpression)(e))return!1;const r=Array.isArray(t)?t:t.split("."),i=[];let o;for(o=e;(0,a.isMemberExpression)(o);o=o.object)i.push(o.property);if(i.push(o),i.lengthr.length)return!1;for(let e=0,t=i.length-1;e{i[e].forEach(t=>{Object.hasOwnProperty.call(o,t)||(o[t]=[]),o[t].push(e)})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!e)return;const r=a.NODE_FIELDS[e.type];if(!r)return;const i=r[t];if(!i||!i.validate)return;if(i.optional&&null==n)return;i.validate(e,t,n)};var a=n(22)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!a.VISITOR_KEYS[e.type])};var a=n(22)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n={};const r={};const i=[];const o=[];for(let s=0;s=0)){if((0,a.isAnyTypeAnnotation)(u))return[u];if((0,a.isFlowBaseAnnotation)(u))r[u.type]=u;else if((0,a.isUnionTypeAnnotation)(u))i.indexOf(u.types)<0&&(t=t.concat(u.types),i.push(u.types));else if((0,a.isGenericTypeAnnotation)(u)){const t=u.id.name;if(n[t]){let a=n[t];a.typeParameters?u.typeParameters&&(a.typeParameters.params=e(a.typeParameters.params.concat(u.typeParameters.params))):a=u.typeParameters}else n[t]=u}else o.push(u)}}for(const e of Object.keys(r))o.push(r[e]);for(const e of Object.keys(n))o.push(n[e]);return o};var a=n(18)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1)};var a,r=(a=n(73))&&a.__esModule?a:{default:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!n||!e)return e;const a=`${t}Comments`;e[a]?e[a]="leading"===t?n.concat(e[a]):e[a].concat(n):e[a]=n;return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("innerComments",e,t)};var a,r=(a=n(158))&&a.__esModule?a:{default:a}},function(e,t,n){var a=n(143),r=n(674),i=n(675);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a;++t{if("%%"===n)return n;s++;const i=a.formatters[r];if("function"==typeof i){const a=e[s];n=i.call(t,a),e.splice(s,1),s--}return n}),a.formatArgs.call(t,e),(t.log||a.log).apply(t,e)}return o.namespace=e,o.enabled=a.enabled(e),o.useColors=a.useColors(),o.color=t(e),o.destroy=r,o.extend=i,"function"==typeof a.init&&a.init(o),a.instances.push(o),o}function r(){const e=a.instances.indexOf(this);return-1!==e&&(a.instances.splice(e,1),!0)}function i(e,t){const n=a(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return a.debug=a,a.default=a,a.coerce=function(e){return e instanceof Error?e.stack||e.message:e},a.disable=function(){const e=[...a.names.map(o),...a.skips.map(o).map(e=>"-"+e)].join(",");return a.enable(""),e},a.enable=function(e){let t;a.save(e),a.names=[],a.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t{a[t]=e[t]}),a.instances=[],a.names=[],a.skips=[],a.formatters={},a.selectColor=t,a.enable(a.load()),a}},function(e,t){var n=1e3,a=60*n,r=60*a,i=24*r,o=7*i,s=365.25*i;function u(e,t,n,a){var r=t>=1.5*n;return Math.round(e/n)+" "+a+(r?"s":"")}e.exports=function(e,t){t=t||{};var d=typeof e;if("string"===d&&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 u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*a;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===d&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=r)return u(e,t,r,"hour");if(t>=a)return u(e,t,a,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=r)return Math.round(e/r)+"h";if(t>=a)return Math.round(e/a)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){e.exports=require("tty")},function(e,t,n){"use strict";const a=n(134),r=n(346),{env:i}=process;let o;function s(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(0===o)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(e&&!e.isTTY&&void 0===o)return 0;const t=o||0;if("dumb"===i.TERM)return t;if("win32"===process.platform){const e=a.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in i)||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)?1:"COLORTERM"in i?1:t}(e))}r("no-color")||r("no-colors")||r("color=false")||r("color=never")?o=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(o=1),"FORCE_COLOR"in i&&(o=!0===i.FORCE_COLOR||"true"===i.FORCE_COLOR?1:!1===i.FORCE_COLOR||"false"===i.FORCE_COLOR?0:0===i.FORCE_COLOR.length?1:Math.min(parseInt(i.FORCE_COLOR,10),3)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},function(e,t,n){"use strict";e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",a=t.indexOf(n+e),r=t.indexOf("--");return-1!==a&&(-1===r||ae.isScope());return e&&e.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(e,t,n){(0,o.default)(e,t,this,n,this.path)}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);return this.push({id:t}),l().cloneNode(t)}generateUidIdentifier(e){return l().identifier(this.generateUid(e))}generateUid(e="temp"){let t;e=l().toIdentifier(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");let n=0;do{t=this._generateUid(e,n),n++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const a=this.getProgramParent();return a.references[t]=!0,a.uids[t]=!0,t}_generateUid(e,t){let n=e;return t>1&&(n+=t),`_${n}`}generateUidBasedOnNode(e,t){let n=e;l().isAssignmentExpression(e)?n=e.left:l().isVariableDeclarator(e)?n=e.id:(l().isObjectProperty(n)||l().isObjectMethod(n))&&(n=n.key);const a=[];!function e(t,n){if(l().isModuleDeclaration(t))if(t.source)e(t.source,n);else if(t.specifiers&&t.specifiers.length)for(const a of t.specifiers)e(a,n);else t.declaration&&e(t.declaration,n);else if(l().isModuleSpecifier(t))e(t.local,n);else if(l().isMemberExpression(t))e(t.object,n),e(t.property,n);else if(l().isIdentifier(t))n.push(t.name);else if(l().isLiteral(t))n.push(t.value);else if(l().isCallExpression(t))e(t.callee,n);else if(l().isObjectExpression(t)||l().isObjectPattern(t))for(const a of t.properties)e(a.key||a.argument,n);else l().isPrivateName(t)?e(t.id,n):l().isThisExpression(t)?n.push("this"):l().isSuper(t)&&n.push("super")}(n,a);let r=a.join("$");return r=r.replace(/^_/,"")||t||"ref",this.generateUid(r.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return l().identifier(this.generateUidBasedOnNode(e,t))}isStatic(e){if(l().isThisExpression(e)||l().isSuper(e))return!0;if(l().isIdentifier(e)){const t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const n=this.generateUidIdentifierBasedOnNode(e);return t?n:(this.push({id:n}),l().cloneNode(n))}}checkBlockScopedCollisions(e,t,n,a){if("param"===t)return;if("local"===e.kind)return;if("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&("let"===t||"const"===t))throw this.hub.buildError(a,`Duplicate declaration "${n}"`,TypeError)}rename(e,t,n){const a=this.getBinding(e);if(a)return t=t||this.generateUidIdentifier(e).name,new i.default(a,e,t).rename(n)}_renameFromMap(e,t,n,a){e[t]&&(e[n]=a,e[t]=null)}dump(){const e=(0,r().default)("-",60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const n=t.bindings[e];console.log(" -",e,{constant:n.constant,references:n.references,violations:n.constantViolations.length,kind:n.kind})}}while(t=t.parent);console.log(e)}toArray(e,t){if(l().isIdentifier(e)){const t=this.getBinding(e.name);if(t&&t.constant&&t.path.isGenericType("Array"))return e}if(l().isArrayExpression(e))return e;if(l().isIdentifier(e,{name:"arguments"}))return l().callExpression(l().memberExpression(l().memberExpression(l().memberExpression(l().identifier("Array"),l().identifier("prototype")),l().identifier("slice")),l().identifier("call")),[e]);let n;const a=[e];return!0===t?n="toConsumableArray":t?(a.push(l().numericLiteral(t)),n="slicedToArray"):n="toArray",l().callExpression(this.hub.addHelper(n),a)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){const t=e.get("declarations");for(const n of t)this.registerBinding(e.node.kind,n)}else if(e.isClassDeclaration())this.registerBinding("let",e);else if(e.isImportDeclaration()){const t=e.get("specifiers");for(const e of t)this.registerBinding("module",e)}else if(e.isExportDeclaration()){const t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return this.hasBinding("undefined")?l().unaryExpression("void",l().numericLiteral(0),!0):l().identifier("undefined")}registerConstantViolation(e){const t=e.getBindingIdentifiers();for(const n of Object.keys(t)){const t=this.getBinding(n);t&&t.reassign(e)}}registerBinding(e,t,n=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const n=t.get("declarations");for(const t of n)this.registerBinding(e,t);return}const a=this.getProgramParent(),r=t.getOuterBindingIdentifiers(!0);for(const t of Object.keys(r))for(const i of r[t]){const r=this.getOwnBinding(t);if(r){if(r.identifier===i)continue;this.checkBlockScopedCollisions(r,e,t,i)}a.references[t]=!0,r?this.registerConstantViolation(n):this.bindings[t]=new u.default({identifier:i,scope:this,path:n,kind:e})}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){let t=this;do{if(t.references[e])return!0}while(t=t.parent);return!1}isPure(e,t){if(l().isIdentifier(e)){const n=this.getBinding(e.name);return!!n&&(!t||n.constant)}if(l().isClass(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&this.isPure(e.body,t);if(l().isClassBody(e)){for(const n of e.body)if(!this.isPure(n,t))return!1;return!0}if(l().isBinary(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(l().isArrayExpression(e)){for(const n of e.elements)if(!this.isPure(n,t))return!1;return!0}if(l().isObjectExpression(e)){for(const n of e.properties)if(!this.isPure(n,t))return!1;return!0}if(l().isClassMethod(e))return!(e.computed&&!this.isPure(e.key,t))&&("get"!==e.kind&&"set"!==e.kind);if(l().isProperty(e))return!(e.computed&&!this.isPure(e.key,t))&&this.isPure(e.value,t);if(l().isUnaryExpression(e))return this.isPure(e.argument,t);if(l().isTaggedTemplateExpression(e))return l().matchesPattern(e.tag,"String.raw")&&!this.hasBinding("String",!0)&&this.isPure(e.quasi,t);if(l().isTemplateLiteral(e)){for(const n of e.expressions)if(!this.isPure(n,t))return!1;return!0}return l().isPureish(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const n=t.data[e];if(null!=n)return n}while(t=t.parent)}removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.references||this.crawl()}crawl(){const e=this.path;if(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),e.isLoop())for(const t of l().FOR_INIT_KEYS){const n=e.get(t);n.isBlockScoped()&&this.registerBinding(n.node.kind,n)}if(e.isFunctionExpression()&&e.has("id")&&(e.get("id").node[l().NOT_LOCAL_BINDING]||this.registerBinding("local",e.get("id"),e)),e.isClassExpression()&&e.has("id")&&(e.get("id").node[l().NOT_LOCAL_BINDING]||this.registerBinding("local",e)),e.isFunction()){const t=e.get("params");for(const e of t)this.registerBinding("param",e)}if(e.isCatchClause()&&this.registerBinding("let",e),this.getProgramParent().crawling)return;const t={references:[],constantViolations:[],assignments:[]};this.crawling=!0,e.traverse(h,t),this.crawling=!1;for(const e of t.assignments){const t=e.getBindingIdentifiers();let n;for(const a of Object.keys(t))e.scope.getBinding(a)||(n=n||e.scope.getProgramParent()).addGlobal(t[a]);e.scope.registerConstantViolation(e)}for(const e of t.references){const t=e.scope.getBinding(e.node.name);t?t.reference(e):e.scope.getProgramParent().addGlobal(e.node)}for(const e of t.constantViolations)e.scope.registerConstantViolation(e)}push(e){let 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"));const n=e.unique,a=e.kind||"var",r=null==e._blockHoist?2:e._blockHoist,i=`declaration:${a}:${r}`;let o=!n&&t.getData(i);if(!o){const e=l().variableDeclaration(a,[]);e._blockHoist=r,[o]=t.unshiftContainer("body",[e]),n||t.setData(i,o)}const s=l().variableDeclarator(e.id,e.init);o.node.declarations.push(s),this.registerBinding(a,o.get("declarations").pop())}getProgramParent(){let e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);return null}getBlockParent(){let 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...")}getAllBindings(){const e=Object.create(null);let t=this;do{(0,s().default)(e,t.bindings),t=t.parent}while(t);return e}getAllBindingsOfKind(){const e=Object.create(null);for(const t of arguments){let n=this;do{for(const a of Object.keys(n.bindings)){const r=n.bindings[a];r.kind===t&&(e[a]=r)}n=n.parent}while(n)}return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t=this;do{const n=t.getOwnBinding(e);if(n)return n}while(t=t.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){const t=this.getBinding(e);return t&&t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return t&&t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){return!!e&&(!!this.hasOwnBinding(e)||(!!this.parentHasBinding(e,t)||(!!this.hasUid(e)||(!(t||!(0,a().default)(g.globals,e))||!(t||!(0,a().default)(g.contextVariables,e))))))}parentHasBinding(e,t){return this.parent&&this.parent.hasBinding(e,t)}moveBindingTo(e,t){const n=this.getBinding(e);n&&(n.scope.removeOwnBinding(e),n.scope=t,t.bindings[e]=n)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){const t=this.getBinding(e);t&&t.scope.removeOwnBinding(e);let n=this;do{n.uids[e]&&(n.uids[e]=!1)}while(n=n.parent)}}t.default=g,g.globals=Object.keys(d().default.builtin),g.contextVariables=["arguments","undefined","Infinity","NaN"]},function(e,t,n){var a=n(719),r=n(163),i=n(161),o=n(164);e.exports=function(e,t,n){return t=(n?r(e,t,n):void 0===t)?1:i(t),a(o(e),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{constructor({identifier:e,scope:t,path:n,kind:a}){this.identifier=e,this.scope=t,this.path=n,this.kind=a,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,-1===this.constantViolations.indexOf(e)&&this.constantViolations.push(e)}reference(e){-1===this.referencePaths.indexOf(e)&&(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},function(e,t,n){var a=n(100),r=n(724),i=n(726);e.exports=function(e,t){return i(r(e,t,a),e+"")}},function(e,t,n){var a=n(352),r=n(75),i=n(353).ArraySet,o=n(735).MappingList;function s(e){e||(e={}),this._file=r.getArg(e,"file",null),this._sourceRoot=r.getArg(e,"sourceRoot",null),this._skipValidation=r.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var a={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(a.source=e.source,null!=t&&(a.source=r.relative(t,a.source)),a.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(a.name=e.name)),n.addMapping(a)}),e.sources.forEach(function(t){var a=e.sourceContentFor(t);null!=a&&n.setSourceContent(t,a)}),n},s.prototype.addMapping=function(e){var t=r.getArg(e,"generated"),n=r.getArg(e,"original",null),a=r.getArg(e,"source",null),i=r.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,a,i),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:a,name:i})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=r.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var a=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.');a=e.file}var o=this._sourceRoot;null!=o&&(a=r.relative(o,a));var s=new i,u=new i;this._mappings.unsortedForEach(function(t){if(t.source===a&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=r.join(n,t.source)),null!=o&&(t.source=r.relative(o,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var d=t.source;null==d||s.has(d)||s.add(d);var l=t.name;null==l||u.has(l)||u.add(l)},this),this._sources=s,this._names=u,e.sources.forEach(function(t){var a=e.sourceContentFor(t);null!=a&&(null!=n&&(t=r.join(n,t)),null!=o&&(t=r.relative(o,t)),this.setSourceContent(t,a))},this)},s.prototype._validateMapping=function(e,t,n,a){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||n||a)&&!(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&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:a}))},s.prototype._serializeMappings=function(){for(var e,t,n,i,o=0,s=1,u=0,d=0,l=0,c=0,p="",h=this._mappings.toArray(),f=0,g=h.length;f0){if(!r.compareByGeneratedPositionsInflated(t,h[f-1]))continue;e+=","}e+=a.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=a.encode(i-c),c=i,e+=a.encode(t.originalLine-1-d),d=t.originalLine-1,e+=a.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=a.encode(n-l),l=n)),p+=e}return p},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},s.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},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,n){var a=n(734);t.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=a.encode(t)}while(r>0);return n},t.decode=function(e,t,n){var r,i,o,s,u=e.length,d=0,l=0;do{if(t>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=a.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),d+=(i&=31)<>1,1==(1&o)?-s:s),n.rest=t}},function(e,t,n){var a=n(75),r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function o(){this._array=[],this._set=i?new Map:Object.create(null)}o.fromArray=function(e,t){for(var n=new o,a=0,r=e.length;a=0)return t}else{var n=a.toSetString(e);if(r.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e{this.word(e.name)})},t.ArgumentPlaceholder=function(){this.token("?")},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument,e)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;this.token("{"),this.printInnerComments(e),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space());this.token("}")},t.ObjectMethod=function(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators,e),e.computed)this.token("["),this.print(e.key,e),this.token("]");else{if(a().isAssignmentPattern(e.value)&&a().isIdentifier(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value,e);if(this.print(e.key,e),e.shorthand&&a().isIdentifier(e.key)&&a().isIdentifier(e.value)&&e.key.name===e.value.name)return}this.token(":"),this.space(),this.print(e.value,e)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,n=t.length;this.token("["),this.printInnerComments(e);for(let a=0;a0&&this.space(),this.print(r,e),a1&&(r-=1)),[360*r,100*i,100*d]},o.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2];return[o.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,a))),100*(a=1-1/255*Math.max(t,Math.max(n,a)))]},o.rgb.cmyk=function(e){var t,n=e[0]/255,a=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-a,1-r)))/(1-t)||0),100*((1-a-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},o.rgb.keyword=function(e){var t=r[e];if(t)return t;var n,i,o,s=1/0;for(var u in a)if(a.hasOwnProperty(u)){var d=a[u],l=(i=e,o=d,Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*t+.7152*n+.0722*a),100*(.0193*t+.1192*n+.9505*a)]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),n=t[0],a=t[1],r=t[2];return a/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(n-a),200*(a-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},o.hsl.rgb=function(e){var t,n,a,r,i,o=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[i=255*u,i,i];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),r=[0,0,0];for(var d=0;d<3;d++)(a=o+1/3*-(d-1))<0&&a++,a>1&&a--,i=6*a<1?t+6*(n-t)*a:2*a<1?n:3*a<2?t+(n-t)*(2/3-a)*6:t,r[d]=255*i;return r},o.hsl.hsv=function(e){var t=e[0],n=e[1]/100,a=e[2]/100,r=n,i=Math.max(a,.01);return n*=(a*=2)<=1?a:2-a,r*=i<=1?i:2-i,[t,100*(0===a?2*r/(i+r):2*n/(a+n)),100*((a+n)/2)]},o.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,a=e[2]/100,r=Math.floor(t)%6,i=t-Math.floor(t),o=255*a*(1-n),s=255*a*(1-n*i),u=255*a*(1-n*(1-i));switch(a*=255,r){case 0:return[a,u,o];case 1:return[s,a,o];case 2:return[o,a,u];case 3:return[o,s,a];case 4:return[u,o,a];case 5:return[a,o,s]}},o.hsv.hsl=function(e){var t,n,a,r=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return a=(2-i)*o,n=i*s,[r,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(a/=2)]},o.hwb.rgb=function(e){var t,n,a,r,i,o,s,u=e[0]/360,d=e[1]/100,l=e[2]/100,c=d+l;switch(c>1&&(d/=c,l/=c),a=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(a=1-a),r=d+a*((n=1-l)-d),t){default:case 6:case 0:i=n,o=r,s=d;break;case 1:i=r,o=n,s=d;break;case 2:i=d,o=n,s=r;break;case 3:i=d,o=r,s=n;break;case 4:i=r,o=d,s=n;break;case 5:i=n,o=d,s=r}return[255*i,255*o,255*s]},o.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},o.xyz.rgb=function(e){var t,n,a,r=e[0]/100,i=e[1]/100,o=e[2]/100;return n=-.9689*r+1.8758*i+.0415*o,a=.0557*r+-.204*i+1.057*o,t=(t=3.2406*r+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(a=Math.min(Math.max(0,a),1))]},o.xyz.lab=function(e){var t=e[0],n=e[1],a=e[2];return n/=100,a/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},o.lab.xyz=function(e){var t,n,a,r=e[0];t=e[1]/500+(n=(r+16)/116),a=n-e[2]/200;var i=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(a,3);return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,[t*=95.047,n*=100,a*=108.883]},o.lab.lch=function(e){var t,n=e[0],a=e[1],r=e[2];return(t=360*Math.atan2(r,a)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(a*a+r*r),t]},o.lch.lab=function(e){var t,n=e[0],a=e[1];return t=e[2]/360*2*Math.PI,[n,a*Math.cos(t),a*Math.sin(t)]},o.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],r=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(0===(r=Math.round(r/50)))return 30;var i=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===r&&(i+=60),i},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],n=e[1],a=e[2];return t===n&&n===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)},o.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 n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},o.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},o.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 n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var a=parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},o.rgb.hcg=function(e){var t,n=e[0]/255,a=e[1]/255,r=e[2]/255,i=Math.max(Math.max(n,a),r),o=Math.min(Math.min(n,a),r),s=i-o;return t=s<=0?0:i===n?(a-r)/s%6:i===a?2+(r-n)/s:4+(n-a)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},o.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=1,r=0;return(a=n<.5?2*t*n:2*t*(1-n))<1&&(r=(n-.5*a)/(1-a)),[e[0],100*a,100*r]},o.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=t*n,r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},o.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];var r,i=[0,0,0],o=t%1*6,s=o%1,u=1-s;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return r=(1-n)*a,[255*(n*i[0]+r),255*(n*i[1]+r),255*(n*i[2]+r)]},o.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},o.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},o.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,a=n-t,r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){"use strict";function a(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(9));return a=function(){return e},e}function r(){const e=n(103);return r=function(){return e},e}function i(){const e=n(102);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const o=function(e,t){t=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},t,{plugins:(t.plugins||[]).concat("placeholders")});try{return(0,r().parse)(e,t)}catch(t){const n=t.loc;throw n&&(t.message+="\n"+(0,i().codeFrameColumns)(e,{start:n}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(t,n.parser),{placeholderWhitelist:u,placeholderPattern:d,preserveComments:l,syntacticPlaceholders:c}=n;a().removePropertiesDeep(o,{preserveComments:l}),e.validate(o);const p={placeholders:[],placeholderNames:new Set},h={placeholders:[],placeholderNames:new Set},f={value:void 0};return a().traverse(o,s,{syntactic:p,legacy:h,isLegacyRef:f,placeholderWhitelist:u,placeholderPattern:d,syntacticPlaceholders:c}),Object.assign({ast:o},f.value?h:p)};const o=/^[_$A-Z0-9]+$/;function s(e,t,n){let r;if(a().isPlaceholder(e)){if(!1===n.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");r=e.name.name,n.isLegacyRef.value=!1}else{if(!1===n.isLegacyRef.value||n.syntacticPlaceholders)return;if(a().isIdentifier(e)||a().isJSXIdentifier(e))r=e.name,n.isLegacyRef.value=!0;else{if(!a().isStringLiteral(e))return;r=e.value,n.isLegacyRef.value=!0}}if(!n.isLegacyRef.value&&(null!=n.placeholderPattern||null!=n.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(n.isLegacyRef.value&&(!1===n.placeholderPattern||!(n.placeholderPattern||o).test(r))&&(!n.placeholderWhitelist||!n.placeholderWhitelist.has(r)))return;t=t.slice();const{node:i,key:s}=t[t.length-1];let u;a().isStringLiteral(e)||a().isPlaceholder(e,{expectedNode:"StringLiteral"})?u="string":a().isNewExpression(i)&&"arguments"===s||a().isCallExpression(i)&&"arguments"===s||a().isFunction(i)&&"params"===s?u="param":a().isExpressionStatement(i)&&!a().isPlaceholder(e)?(u="statement",t=t.slice(0,-1)):u=a().isStatement(e)&&a().isPlaceholder(e)?"statement":"other";const{placeholders:d,placeholderNames:l}=n.isLegacyRef.value?n.legacy:n.syntactic;d.push({name:r,type:u,resolve:e=>(function(e,t){let n=e;for(let e=0;e{if(!Object.prototype.hasOwnProperty.call(t,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". 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(['${t}'])}\n - { placeholderPattern: /^${t}$/ }`)}}),Object.keys(t).forEach(t=>{if(!e.placeholderNames.has(t))throw new Error(`Unknown substitution "${t}" given`)}));return e.placeholders.slice().reverse().forEach(e=>{try{!function(e,t,n){e.isDuplicate&&(Array.isArray(n)?n=n.map(e=>a().cloneNode(e)):"object"==typeof n&&(n=a().cloneNode(n)));const{parent:r,key:i,index:o}=e.resolve(t);if("string"===e.type){if("string"==typeof n&&(n=a().stringLiteral(n)),!n||!a().isStringLiteral(n))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===o?n?Array.isArray(n)?n=a().blockStatement(n):"string"==typeof n?n=a().expressionStatement(a().identifier(n)):a().isStatement(n)||(n=a().expressionStatement(n)):n=a().emptyStatement():n&&!Array.isArray(n)&&("string"==typeof n&&(n=a().identifier(n)),a().isStatement(n)||(n=a().expressionStatement(n)));else if("param"===e.type){if("string"==typeof n&&(n=a().identifier(n)),void 0===o)throw new Error("Assertion failure.")}else if("string"==typeof n&&(n=a().identifier(n)),Array.isArray(n))throw new Error("Cannot replace single expression with an array.");if(void 0===o)a().validate(r,i,n),r[i]=n;else{const t=r[i].slice();"statement"===e.type||"param"===e.type?null==n?t.splice(o,1):Array.isArray(n)?t.splice(o,1,...n):t[o]=n:t[o]=n,a().validate(r,i,t),r[i]=t}}(e,n,t&&t[e.name]||null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}}),n}},function(e,t){var n;t=e.exports=q,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.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 a=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,u=s++;o[u]="0|[1-9]\\d*";var d=s++;o[d]="[0-9]+";var l=s++;o[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var c=s++;o[c]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="("+o[d]+")\\.("+o[d]+")\\.("+o[d]+")";var h=s++;o[h]="(?:"+o[u]+"|"+o[l]+")";var f=s++;o[f]="(?:"+o[d]+"|"+o[l]+")";var g=s++;o[g]="(?:-("+o[h]+"(?:\\."+o[h]+")*))";var m=s++;o[m]="(?:-?("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="[0-9A-Za-z-]+";var v=s++;o[v]="(?:\\+("+o[y]+"(?:\\."+o[y]+")*))";var b=s++,R="v?"+o[c]+o[g]+"?"+o[v]+"?";o[b]="^"+R+"$";var E="[v=\\s]*"+o[p]+o[m]+"?"+o[v]+"?",x=s++;o[x]="^"+E+"$";var S=s++;o[S]="((?:<|>)?=?)";var C=s++;o[C]=o[d]+"|x|X|\\*";var D=s++;o[D]=o[u]+"|x|X|\\*";var w=s++;o[w]="[v=\\s]*("+o[D]+")(?:\\.("+o[D]+")(?:\\.("+o[D]+")(?:"+o[g]+")?"+o[v]+"?)?)?";var A=s++;o[A]="[v=\\s]*("+o[C]+")(?:\\.("+o[C]+")(?:\\.("+o[C]+")(?:"+o[m]+")?"+o[v]+"?)?)?";var _=s++;o[_]="^"+o[S]+"\\s*"+o[w]+"$";var T=s++;o[T]="^"+o[S]+"\\s*"+o[A]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var k=s++;o[k]="(?:~>?)";var O=s++;o[O]="(\\s*)"+o[k]+"\\s+",i[O]=new RegExp(o[O],"g");var F=s++;o[F]="^"+o[k]+o[w]+"$";var j=s++;o[j]="^"+o[k]+o[A]+"$";var M=s++;o[M]="(?:\\^)";var I=s++;o[I]="(\\s*)"+o[M]+"\\s+",i[I]=new RegExp(o[I],"g");var B=s++;o[B]="^"+o[M]+o[w]+"$";var N=s++;o[N]="^"+o[M]+o[A]+"$";var L=s++;o[L]="^"+o[S]+"\\s*("+E+")$|^$";var V=s++;o[V]="^"+o[S]+"\\s*("+R+")$|^$";var z=s++;o[z]="(\\s*)"+o[S]+"\\s*("+E+"|"+o[w]+")",i[z]=new RegExp(o[z],"g");var U=s++;o[U]="^\\s*("+o[w]+")\\s+-\\s+("+o[w]+")\\s*$";var H=s++;o[H]="^\\s*("+o[A]+")\\s+-\\s+("+o[A]+")\\s*$";var $=s++;o[$]="(<|>)?=?\\s*\\*";for(var W=0;W<35;W++)n(W,o[W]),i[W]||(i[W]=new RegExp(o[W]));function G(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof q)return e;if("string"!=typeof e)return null;if(e.length>a)return null;if(!(t.loose?i[x]:i[b]).test(e))return null;try{return new q(e,t)}catch(e){return null}}function q(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof q){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>a)throw new TypeError("version is longer than "+a+" characters");if(!(this instanceof q))return new q(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[x]:i[b]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&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,n,a){"string"==typeof n&&(a=n,n=void 0);try{return new q(e,n).inc(t,a).version}catch(e){return null}},t.diff=function(e,t){if(Z(e,t))return null;var n=G(e),a=G(t),r="";if(n.prerelease.length||a.prerelease.length){r="pre";var i="prerelease"}for(var o in n)if(("major"===o||"minor"===o||"patch"===o)&&n[o]!==a[o])return r+o;return i},t.compareIdentifiers=X;var K=/^[0-9]+$/;function X(e,t){var n=K.test(e),a=K.test(t);return n&&a&&(e=+e,t=+t),e===t?0:n&&!a?-1:a&&!n?1:e0}function Q(e,t,n){return J(e,t,n)<0}function Z(e,t,n){return 0===J(e,t,n)}function ee(e,t,n){return 0!==J(e,t,n)}function te(e,t,n){return J(e,t,n)>=0}function ne(e,t,n){return J(e,t,n)<=0}function ae(e,t,n,a){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,a);case"!=":return ee(e,n,a);case">":return Y(e,n,a);case">=":return te(e,n,a);case"<":return Q(e,n,a);case"<=":return ne(e,n,a);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new q(e,t).major},t.minor=function(e,t){return new q(e,t).minor},t.patch=function(e,t){return new q(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort(function(e,a){return t.compare(e,a,n)})},t.rsort=function(e,n){return e.sort(function(e,a){return t.rcompare(e,a,n)})},t.gt=Y,t.lt=Q,t.eq=Z,t.neq=ee,t.gte=te,t.lte=ne,t.cmp=ae,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ue(e,t,n,a,r,i,o,s,u,d,l,c,p){return((t=se(n)?"":se(a)?">="+n+".0.0":se(r)?">="+n+"."+a+".0":">="+t)+" "+(s=se(u)?"":se(d)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+d+1)+".0":c?"<="+u+"."+d+"."+l+"-"+c:"<="+s)).trim()}function de(e,t,a){for(var r=0;r0){var i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function le(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function ce(e,t,n,a){var r,i,o,s,u;switch(e=new q(e,a),t=new oe(t,a),n){case">":r=Y,i=ne,o=Q,s=">",u=">=";break;case"<":r=Q,i=te,o=Y,s="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,a))return!1;for(var d=0;d=0.0.0")),c=c||e,p=p||e,r(e.semver,c.semver,a)?c=e:o(e.semver,p.semver,a)&&(p=e)}),c.operator===s||c.operator===u)return!1;if((!p.operator||p.operator===s)&&i(e,p.semver))return!1;if(p.operator===u&&o(e,p.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[L]:i[V],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new q(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new q(e,this.options)),ae(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),le(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),le(e.semver,n,t);var a=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ae(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ae(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return a||r||i&&o||s||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var a=t?i[H]:i[U];e=e.replace(a,ue),n("hyphen replace",e),e=e.replace(i[z],"$1$2$3"),n("comparator trim",e,i[z]),e=(e=(e=e.replace(i[O],"$1~")).replace(i[I],"$1^")).split(/\s+/).join(" ");var r=t?i[L]:i[V],o=e.split(" ").map(function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){n("caret",e,t);var a=t.loose?i[N]:i[B];return e.replace(a,function(t,a,r,i,o){var s;return n("caret",e,t,a,r,i,o),se(a)?s="":se(r)?s=">="+a+".0.0 <"+(+a+1)+".0.0":se(i)?s="0"===a?">="+a+"."+r+".0 <"+a+"."+(+r+1)+".0":">="+a+"."+r+".0 <"+(+a+1)+".0.0":o?(n("replaceCaret pr",o),s="0"===a?"0"===r?">="+a+"."+r+"."+i+"-"+o+" <"+a+"."+r+"."+(+i+1):">="+a+"."+r+"."+i+"-"+o+" <"+a+"."+(+r+1)+".0":">="+a+"."+r+"."+i+"-"+o+" <"+(+a+1)+".0.0"):(n("no pr"),s="0"===a?"0"===r?">="+a+"."+r+"."+i+" <"+a+"."+r+"."+(+i+1):">="+a+"."+r+"."+i+" <"+a+"."+(+r+1)+".0":">="+a+"."+r+"."+i+" <"+(+a+1)+".0.0"),n("caret return",s),s})}(e,t)}).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var a=t.loose?i[j]:i[F];return e.replace(a,function(t,a,r,i,o){var s;return n("tilde",e,t,a,r,i,o),se(a)?s="":se(r)?s=">="+a+".0.0 <"+(+a+1)+".0.0":se(i)?s=">="+a+"."+r+".0 <"+a+"."+(+r+1)+".0":o?(n("replaceTilde pr",o),s=">="+a+"."+r+"."+i+"-"+o+" <"+a+"."+(+r+1)+".0"):s=">="+a+"."+r+"."+i+" <"+a+"."+(+r+1)+".0",n("tilde return",s),s})}(e,t)}).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var a=t.loose?i[T]:i[_];return e.replace(a,function(t,a,r,i,o,s){n("xRange",e,t,a,r,i,o,s);var u=se(r),d=u||se(i),l=d||se(o),c=l;return"="===a&&c&&(a=""),u?t=">"===a||"<"===a?"<0.0.0":"*":a&&c?(d&&(i=0),o=0,">"===a?(a=">=",d?(r=+r+1,i=0,o=0):(i=+i+1,o=0)):"<="===a&&(a="<",d?r=+r+1:i=+i+1),t=a+r+"."+i+"."+o):d?t=">="+r+".0.0 <"+(+r+1)+".0.0":l&&(t=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0"),n("xRange return",t),t})}(e,t)}).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter(function(e){return!!e.match(r)})),o=o.map(function(e){return new re(e,this.options)},this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=function(e,t){return new oe(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new q(e,this.options));for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!Y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return ce(e,t,"<",n)},t.gtr=function(e,t,n){return ce(e,t,">",n)},t.outside=ce,t.prerelease=function(e,t){var n=G(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof q)return e;if("string"!=typeof e)return null;var t=e.match(i[P]);if(null==t)return null;return G(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},function(e,t,n){"use strict";function a(){const e=(t=n(21))&&t.__esModule?t:{default:t};var t;return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.makeStaticFileCache=function(e){return(0,r.makeStrongCache)((t,n)=>null===n.invalidate(()=>(function(e){try{return+a().default.statSync(e).mtime}catch(e){if("ENOENT"!==e.code&&"ENOTDIR"!==e.code)throw e}return null})(t))?(n.forever(),null):e(t,a().default.readFileSync(t,"utf8")))};var r=n(60)},function(e,t,n){e.exports=function(e){function t(e){let t=0;for(let n=0;n{if("%%"===n)return n;s++;const i=a.formatters[r];if("function"==typeof i){const a=e[s];n=i.call(t,a),e.splice(s,1),s--}return n}),a.formatArgs.call(t,e),(t.log||a.log).apply(t,e)}return o.namespace=e,o.enabled=a.enabled(e),o.useColors=a.useColors(),o.color=t(e),o.destroy=r,o.extend=i,"function"==typeof a.init&&a.init(o),a.instances.push(o),o}function r(){const e=a.instances.indexOf(this);return-1!==e&&(a.instances.splice(e,1),!0)}function i(e,t){const n=a(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return a.debug=a,a.default=a,a.coerce=function(e){return e instanceof Error?e.stack||e.message:e},a.disable=function(){const e=[...a.names.map(o),...a.skips.map(o).map(e=>"-"+e)].join(",");return a.enable(""),e},a.enable=function(e){let t;a.save(e),a.names=[],a.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t{a[t]=e[t]}),a.instances=[],a.names=[],a.skips=[],a.formatters={},a.selectColor=t,a.enable(a.load()),a}},function(e,t,n){const a=n(798);e.exports={isSpaceSeparator:e=>a.Space_Separator.test(e),isIdStartChar:e=>e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||a.ID_Start.test(e),isIdContinueChar:e=>e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||"‌"===e||"‍"===e||a.ID_Continue.test(e),isDigit:e=>/[0-9]/.test(e),isHexDigit:e=>/[0-9A-Fa-f]/.test(e)}},function(e,t,n){var a=n(167),r=n(801);r.core=a,r.isCore=function(e){return a[e]},r.sync=n(803),e.exports=r},function(e,t){e.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var t=(new Error).stack;return Error.prepareStackTrace=e,t[2].getFileName()}},function(e,t,n){var a=n(15),r=a.parse||n(802),i=function(e,t){var n="/";/^([A-Za-z]:)/.test(e)?n="":/^\\\\/.test(e)&&(n="\\\\");for(var i=[e],o=r(e);o.dir!==i[i.length-1];)i.push(o.dir),o=r(o.dir);return i.reduce(function(e,r){return e.concat(t.map(function(e){return a.resolve(n,r,e)}))},[])};e.exports=function(e,t,n){var a=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&"function"==typeof t.paths)return t.paths(n,e,function(){return i(e,a)},t);var r=i(e,a);return t&&t.paths?r.concat(t.paths):r}},function(e,t){e.exports=function(e,t){return t||{}}},function(e,t,n){"use strict";function a(){const e=(t=n(360))&&t.__esModule?t:{default:t};var t;return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{version:r.version,cache:e.simple(),env:t=>e.using(e=>void 0===t?e.envName:"function"==typeof t?(0,i.assertSimpleType)(t(e.envName)):(Array.isArray(t)||(t=[t]),t.some(t=>{if("string"!=typeof t)throw new Error("Unexpected non-string value");return t===e.envName}))),async:()=>!1,caller:t=>e.using(e=>(0,i.assertSimpleType)(t(e.caller))),assertVersion:o,tokTypes:void 0}};var r=n(139),i=n(60);function o(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(a().default.satisfies(r.version,e))return;const t=Error.stackTraceLimit;"number"==typeof t&&t<25&&(Error.stackTraceLimit=25);const n=new Error(`Requires Babel "${e}", but was loaded with "${r.version}". `+'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(n,{code:"BABEL_VERSION_UNSUPPORTED",version:r.version,range:e})}},function(e,t,n){"use strict";function a(){const e=i(n(15));return a=function(){return e},e}function r(){const e=i(n(804));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=a().default.resolve(t,e).split(a().default.sep);return new RegExp(["^",...n.map((e,t)=>{const a=t===n.length-1;return"**"===e?a?p:c:"*"===e?a?l:d:0===e.indexOf("*.")?u+(0,r().default)(e.slice(1))+(a?s:o):(0,r().default)(e)+(a?s:o)})].join(""))};const o=`\\${a().default.sep}`,s=`(?:${o}|$)`,u=`[^${o}]+`,d=`(?:${u}${o})`,l=`(?:${u}${s})`,c=`${d}*?`,p=`${d}*?${l}?`},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=370},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnv=function(e="development"){return process.env.BABEL_ENV||"production"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCachedDescriptors=function(e,t,n){const{plugins:a,presets:r,passPerPreset:i}=t;return{options:t,plugins:a?()=>d(a,e)(n):()=>[],presets:r?()=>s(r,e)(n)(!!i):()=>[]}},t.createUncachedDescriptors=function(e,t,n){let a,r;return{options:t,plugins:()=>(a||(a=h(t.plugins||[],e,n)),a),presets:()=>(r||(r=p(t.presets||[],e,n,!!t.passPerPreset)),r)}},t.createDescriptor=g;var a=n(105),r=n(107),i=n(60);const o=new WeakMap,s=(0,i.makeWeakCache)((e,t)=>{const n=t.using(e=>e);return(0,i.makeStrongCache)(t=>(0,i.makeStrongCache)(a=>p(e,n,t,a).map(e=>c(o,e))))}),u=new WeakMap,d=(0,i.makeWeakCache)((e,t)=>{const n=t.using(e=>e);return(0,i.makeStrongCache)(t=>h(e,n,t).map(e=>c(u,e)))}),l={};function c(e,t){const{value:n,options:a=l}=t;if(!1===a)return t;let r=e.get(n);r||(r=new WeakMap,e.set(n,r));let i=r.get(a);if(i||(i=[],r.set(a,i)),-1===i.indexOf(t)){const e=i.filter(e=>(function(e,t){return e.name===t.name&&e.value===t.value&&e.options===t.options&&e.dirname===t.dirname&&e.alias===t.alias&&e.ownPass===t.ownPass&&(e.file&&e.file.request)===(t.file&&t.file.request)&&(e.file&&e.file.resolved)===(t.file&&t.file.resolved)})(e,t));if(e.length>0)return e[0];i.push(t)}return t}function p(e,t,n,a){return f("preset",e,t,n,a)}function h(e,t,n){return f("plugin",e,t,n)}function f(e,t,n,a,r){const i=t.map((t,i)=>g(t,n,{type:e,alias:`${a}$${i}`,ownPass:!!r}));return function(e){const t=new Map;for(const n of e){if("function"!=typeof n.value)continue;let e=t.get(n.value);if(e||(e=new Set,t.set(n.value,e)),e.has(n.name))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'],"," ]"].join("\n"));e.add(n.name)}}(i),i}function g(e,t,{type:n,alias:i,ownPass:o}){const s=(0,r.getItemDescriptor)(e);if(s)return s;let u,d,l=e;Array.isArray(l)&&(3===l.length?[l,d,u]=l:[l,d]=l);let c=void 0,p=null;if("string"==typeof l){if("string"!=typeof n)throw new Error("To resolve a string-based item, the type of item must be given");const e="plugin"===n?a.loadPlugin:a.loadPreset,r=l;({filepath:p,value:l}=e(l,t)),c={request:r,resolved:p}}if(!l)throw new Error(`Unexpected falsy value: ${String(l)}`);if("object"==typeof l&&l.__esModule){if(!l.default)throw new Error("Must export a default export when using ES6 modules.");l=l.default}if("object"!=typeof l&&"function"!=typeof l)throw new Error(`Unsupported format: ${typeof l}. Expected an object or a function.`);if(null!==p&&"object"==typeof l&&l)throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${p}`);return{name:u,alias:p||i,value:l,options:d,dirname:t,ownPass:o,file:c}}},function(e,t,n){"use strict";function a(e,t){for(const n of Object.keys(t)){const a=t[n];void 0!==a&&(e[n]=a)}}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeOptions=function(e,t){for(const n of Object.keys(t))if("parserOpts"===n&&t.parserOpts){const n=t.parserOpts,r=e.parserOpts=e.parserOpts||{};a(r,n)}else if("generatorOpts"===n&&t.generatorOpts){const n=t.generatorOpts,r=e.generatorOpts=e.generatorOpts||{};a(r,n)}else{const a=t[n];void 0!==a&&(e[n]=a)}}},function(e,t,n){"use strict";function a(){const e=l(n(15));return a=function(){return e},e}function r(){const e=l(n(106));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.buildPresetChain=function(e,t){const n=p(e,t);return n?{plugins:M(n.plugins),presets:M(n.presets),options:n.options.map(e=>j(e))}:null},t.buildRootChain=function(e,t){const n=R({options:e,dirname:t.cwd},t);if(!n)return null;let r;"string"==typeof e.configFile?r=(0,s.loadConfig)(e.configFile,t.cwd,t.envName,t.caller):!1!==e.configFile&&(r=(0,s.findRootConfig)(t.root,t.envName,t.caller));let{babelrc:i,babelrcRoots:u}=e,d=t.cwd;const l={options:[],presets:[],plugins:[]};if(r){const e=y(r),n=E(e,t);if(!n)return null;void 0===i&&(i=e.options.babelrc),void 0===u&&(d=e.dirname,u=e.options.babelrcRoots),O(l,n)}const c="string"==typeof t.filename?(0,s.findPackageData)(t.filename):null;let p,h;const f={options:[],presets:[],plugins:[]};if((!0===i||void 0===i)&&c&&function(e,t,n,r){if("boolean"==typeof n)return n;const i=e.root;if(void 0===n)return-1!==t.directories.indexOf(i);let s=n;Array.isArray(s)||(s=[s]);if(1===(s=s.map(e=>"string"==typeof e?a().default.resolve(r,e):e)).length&&s[0]===i)return-1!==t.directories.indexOf(i);return s.some(n=>("string"==typeof n&&(n=(0,o.default)(n,r)),t.directories.some(t=>V(n,r,t,e))))}(t,c,u,d)){if(({ignore:p,config:h}=(0,s.findRelativeConfig)(c,t.envName,t.caller)),p&&N(t,p.ignore,null,p.dirname))return null;if(h){const e=E(v(h),t);if(!e)return null;O(f,e)}}const g=O(O(O({options:[],presets:[],plugins:[]},l),f),n);return{plugins:M(g.plugins),presets:M(g.presets),options:g.options.map(e=>j(e)),ignore:p||void 0,babelrc:h||void 0,config:r||void 0}},t.buildPresetChainWalker=void 0;var i=n(169),o=l(n(369)),s=n(105),u=n(60),d=n(372);function l(e){return e&&e.__esModule?e:{default:e}}const c=(0,r().default)("babel:config:config-chain");const p=P({init:e=>e,root:e=>h(e),env:(e,t)=>f(e)(t),overrides:(e,t)=>g(e)(t),overridesEnv:(e,t,n)=>m(e)(t)(n)});t.buildPresetChainWalker=p;const h=(0,u.makeWeakCache)(e=>w(e,e.alias,d.createUncachedDescriptors)),f=(0,u.makeWeakCache)(e=>(0,u.makeStrongCache)(t=>A(e,e.alias,d.createUncachedDescriptors,t))),g=(0,u.makeWeakCache)(e=>(0,u.makeStrongCache)(t=>_(e,e.alias,d.createUncachedDescriptors,t))),m=(0,u.makeWeakCache)(e=>(0,u.makeStrongCache)(t=>(0,u.makeStrongCache)(n=>T(e,e.alias,d.createUncachedDescriptors,t,n))));const y=(0,u.makeWeakCache)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,i.validate)("configfile",e.options)})),v=(0,u.makeWeakCache)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,i.validate)("babelrcfile",e.options)})),b=(0,u.makeWeakCache)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,i.validate)("extendsfile",e.options)})),R=P({root:e=>w(e,"base",d.createCachedDescriptors),env:(e,t)=>A(e,"base",d.createCachedDescriptors,t),overrides:(e,t)=>_(e,"base",d.createCachedDescriptors,t),overridesEnv:(e,t,n)=>T(e,"base",d.createCachedDescriptors,t,n)}),E=P({root:e=>x(e),env:(e,t)=>S(e)(t),overrides:(e,t)=>C(e)(t),overridesEnv:(e,t,n)=>D(e)(t)(n)}),x=(0,u.makeWeakCache)(e=>w(e,e.filepath,d.createUncachedDescriptors)),S=(0,u.makeWeakCache)(e=>(0,u.makeStrongCache)(t=>A(e,e.filepath,d.createUncachedDescriptors,t))),C=(0,u.makeWeakCache)(e=>(0,u.makeStrongCache)(t=>_(e,e.filepath,d.createUncachedDescriptors,t))),D=(0,u.makeWeakCache)(e=>(0,u.makeStrongCache)(t=>(0,u.makeStrongCache)(n=>T(e,e.filepath,d.createUncachedDescriptors,t,n))));function w({dirname:e,options:t},n,a){return a(e,t,n)}function A({dirname:e,options:t},n,a,r){const i=t.env&&t.env[r];return i?a(e,i,`${n}.env["${r}"]`):null}function _({dirname:e,options:t},n,a,r){const i=t.overrides&&t.overrides[r];if(!i)throw new Error("Assertion failure - missing override");return a(e,i,`${n}.overrides[${r}]`)}function T({dirname:e,options:t},n,a,r,i){const o=t.overrides&&t.overrides[r];if(!o)throw new Error("Assertion failure - missing override");const s=o.env&&o.env[i];return s?a(e,s,`${n}.overrides[${r}].env["${i}"]`):null}function P({root:e,env:t,overrides:n,overridesEnv:a}){return(r,i,o=new Set)=>{const{dirname:s}=r,u=[],d=e(r);if(I(d,s,i)){u.push(d);const e=t(r,i.envName);e&&I(e,s,i)&&u.push(e),(d.options.overrides||[]).forEach((e,t)=>{const o=n(r,t);if(I(o,s,i)){u.push(o);const e=a(r,t,i.envName);e&&I(e,s,i)&&u.push(e)}})}if(u.some(({options:{ignore:e,only:t}})=>N(i,e,t,s)))return null;const l={options:[],presets:[],plugins:[]};for(const e of u){if(!k(l,e.options,s,i,o))return null;F(l,e)}return l}}function k(e,t,n,a,r){if(void 0===t.extends)return!0;const i=(0,s.loadConfig)(t.extends,n,a.envName,a.caller);if(r.has(i))throw new Error(`Configuration cycle detected loading ${i.filepath}.\n`+"File already loaded following the config chain:\n"+Array.from(r,e=>` - ${e.filepath}`).join("\n"));r.add(i);const o=E(b(i),a,r);return r.delete(i),!!o&&(O(e,o),!0)}function O(e,t){return e.options.push(...t.options),e.plugins.push(...t.plugins),e.presets.push(...t.presets),e}function F(e,{options:t,plugins:n,presets:a}){return e.options.push(t),e.plugins.push(...n()),e.presets.push(...a()),e}function j(e){const 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,t.hasOwnProperty("sourceMap")&&(t.sourceMaps=t.sourceMap,delete t.sourceMap),t}function M(e){const t=new Map,n=[];for(const a of e)if("function"==typeof a.value){const e=a.value;let r=t.get(e);r||(r=new Map,t.set(e,r));let i=r.get(a.name);i?i.value=a:(i={value:a},n.push(i),a.ownPass||r.set(a.name,i))}else n.push({value:a});return n.reduce((e,t)=>(e.push(t.value),e),[])}function I({options:e},t,n){return(void 0===e.test||B(n,e.test,t))&&(void 0===e.include||B(n,e.include,t))&&(void 0===e.exclude||!B(n,e.exclude,t))}function B(e,t,n){return L(e,Array.isArray(t)?t:[t],n)}function N(e,t,n,a){return t&&L(e,t,a)?(c("Ignored %o because it matched one of %O from %o",e.filename,t,a),!0):!(!n||L(e,n,a))&&(c("Ignored %o because it failed to match one of %O from %o",e.filename,n,a),!0)}function L(e,t,n){return t.some(t=>V(t,n,e.filename,e))}function V(e,t,n,a){if("function"==typeof e)return!!e(n,{dirname:t,envName:a.envName,caller:a.caller});if("string"!=typeof n)throw new Error("Configuration contains string/RegExp pattern, but no filename was passed to Babel");return"string"==typeof e&&(e=(0,o.default)(e,t)),e.test(n)}},function(e,t,n){"use strict";function a(e){switch(e.type){case"root":return"";case"env":return`${a(e.parent)}.env["${e.name}"]`;case"overrides":return`${a(e.parent)}.overrides[${e.index}]`;case"option":return`${a(e.parent)}.${e.name}`;case"access":return`${a(e.parent)}[${JSON.stringify(e.name)}]`;default:throw new Error(`Assertion failure: Unknown type ${e.type}`)}}function r(e,t){return{type:"access",name:t,parent:e}}function i(e,t){if(void 0!==t&&("object"!=typeof t||Array.isArray(t)||!t))throw new Error(`${a(e)} must be an object, or undefined`);return t}function o(e,t){if(null!=t&&!Array.isArray(t))throw new Error(`${a(e)} must be an array, or undefined`);return t}function s(e){return"string"==typeof e||"function"==typeof e||e instanceof RegExp}function u(e,t){if(("object"!=typeof t||!t)&&"string"!=typeof t&&"function"!=typeof t)throw new Error(`${a(e)} must be a string, object, function`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.msg=a,t.access=r,t.assertRootMode=function(e,t){if(void 0!==t&&"root"!==t&&"upward"!==t&&"upward-optional"!==t)throw new Error(`${a(e)} must be a "root", "upward", "upward-optional" or undefined`);return t},t.assertSourceMaps=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&"inline"!==t&&"both"!==t)throw new Error(`${a(e)} must be a boolean, "inline", "both", or undefined`);return t},t.assertCompact=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&"auto"!==t)throw new Error(`${a(e)} must be a boolean, "auto", or undefined`);return t},t.assertSourceType=function(e,t){if(void 0!==t&&"module"!==t&&"script"!==t&&"unambiguous"!==t)throw new Error(`${a(e)} must be "module", "script", "unambiguous", or undefined`);return t},t.assertCallerMetadata=function(e,t){const n=i(e,t);if(n){if("string"!=typeof n.name)throw new Error(`${a(e)} set but does not contain "name" property string`);for(const t of Object.keys(n)){const i=r(e,t),o=n[t];if(null!=o&&"boolean"!=typeof o&&"string"!=typeof o&&"number"!=typeof o)throw new Error(`${a(i)} must be null, undefined, a boolean, a string, or a number.`)}}return t},t.assertInputSourceMap=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&("object"!=typeof t||!t))throw new Error(`${a(e)} must be a boolean, object, or undefined`);return t},t.assertString=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new Error(`${a(e)} must be a string, or undefined`);return t},t.assertFunction=function(e,t){if(void 0!==t&&"function"!=typeof t)throw new Error(`${a(e)} must be a function, or undefined`);return t},t.assertBoolean=function(e,t){if(void 0!==t&&"boolean"!=typeof t)throw new Error(`${a(e)} must be a boolean, or undefined`);return t},t.assertObject=i,t.assertArray=o,t.assertIgnoreList=function(e,t){const n=o(e,t);n&&n.forEach((t,n)=>(function(e,t){if("string"!=typeof t&&"function"!=typeof t&&!(t instanceof RegExp))throw new Error(`${a(e)} must be an array of string/Funtion/RegExp values, or undefined`);return t})(r(e,n),t));return n},t.assertConfigApplicableTest=function(e,t){if(void 0===t)return t;if(Array.isArray(t))t.forEach((t,n)=>{if(!s(t))throw new Error(`${a(r(e,n))} must be a string/Function/RegExp.`)});else if(!s(t))throw new Error(`${a(e)} must be a string/Function/RegExp, or an array of those`);return t},t.assertConfigFileSearch=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&"string"!=typeof t)throw new Error(`${a(e)} must be a undefined, a boolean, a string, `+`got ${JSON.stringify(t)}`);return t},t.assertBabelrcSearch=function(e,t){if(void 0===t||"boolean"==typeof t)return t;if(Array.isArray(t))t.forEach((t,n)=>{if(!s(t))throw new Error(`${a(r(e,n))} must be a string/Function/RegExp.`)});else if(!s(t))throw new Error(`${a(e)} must be a undefined, a boolean, a string/Function/RegExp `+`or an array of those, got ${JSON.stringify(t)}`);return t},t.assertPluginList=function(e,t){const n=o(e,t);n&&n.forEach((t,n)=>(function(e,t){if(Array.isArray(t)){if(0===t.length)throw new Error(`${a(e)} must include an object`);if(t.length>3)throw new Error(`${a(e)} may only be a two-tuple or three-tuple`);if(u(r(e,0),t[0]),t.length>1){const n=t[1];if(void 0!==n&&!1!==n&&("object"!=typeof n||Array.isArray(n)||null===n))throw new Error(`${a(r(e,1))} must be an object, false, or undefined`)}if(3===t.length){const n=t[2];if(void 0!==n&&"string"!=typeof n)throw new Error(`${a(r(e,2))} must be a string, or undefined`)}}else u(e,t);return t})(r(e,n),t));return n}},function(e,t,n){"use strict";function a(){const e=c(n(15));return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=p,t.loadPartialConfig=function(e){const t=p(e);if(!t)return null;const{options:n,babelrc:a,ignore:i,config:o}=t;return(n.plugins||[]).forEach(e=>{if(e.value instanceof r.default)throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()")}),new h(n,a?a.filepath:void 0,i?i.filepath:void 0,o?o.filepath:void 0)};var r=c(n(168)),i=n(373),o=n(107),s=n(374),u=n(371),d=n(169),l=n(105);function c(e){return e&&e.__esModule?e:{default:e}}function p(e){if(null!=e&&("object"!=typeof e||Array.isArray(e)))throw new Error("Babel options must be an object, null, or undefined");const t=e?(0,d.validate)("arguments",e):{},{envName:n=(0,u.getEnv)(),cwd:r=".",root:c=".",rootMode:p="root",caller:h}=t,f=a().default.resolve(r),g=function(e,t){switch(t){case"root":return e;case"upward-optional":{const t=(0,l.findConfigUpwards)(e);return null===t?e:t}case"upward":{const t=(0,l.findConfigUpwards)(e);if(null!==t)return t;throw Object.assign(new Error('Babel was run with rootMode:"upward" but a root could not '+`be found when searching upward from "${e}"`),{code:"BABEL_ROOT_NOT_FOUND",dirname:e})}default:throw new Error("Assertion failure - unknown rootMode value")}}(a().default.resolve(f,c),p),m={filename:"string"==typeof t.filename?a().default.resolve(r,t.filename):void 0,cwd:f,root:g,envName:n,caller:h},y=(0,s.buildRootChain)(t,m);if(!y)return null;const v={};return y.options.forEach(e=>{(0,i.mergeOptions)(v,e)}),v.babelrc=!1,v.configFile=!1,v.passPerPreset=!1,v.envName=m.envName,v.cwd=m.cwd,v.root=m.root,v.filename="string"==typeof m.filename?m.filename:void 0,v.plugins=y.plugins.map(e=>(0,o.createItemFromDescriptor)(e)),v.presets=y.presets.map(e=>(0,o.createItemFromDescriptor)(e)),{options:v,context:m,ignore:y.ignore,babelrc:y.babelrc,config:y.config}}class h{constructor(e,t,n,a){this.options=e,this.babelignore=n,this.babelrc=t,this.config=a,Object.freeze(this)}hasFilesystemConfig(){return void 0!==this.babelrc||void 0!==this.config}}Object.freeze(h.prototype)},function(e,t,n){var a=n(820),r=n(31);e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:a(t,n,i,o,e,s))}},function(e,t,n){var a=n(330),r=n(821),i=n(332),o=1,s=2;e.exports=function(e,t,n,u,d,l){var c=n&o,p=e.length,h=t.length;if(p!=h&&!(c&&h>p))return!1;var f=l.get(e);if(f&&l.get(t))return f==t;var g=-1,m=!0,y=n&s?new a:void 0;for(l.set(e,t),l.set(t,e);++g0&&e.column>=0)||t||n||a)&&!(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&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:a}))},s.prototype._serializeMappings=function(){for(var e,t,n,i,o=0,s=1,u=0,d=0,l=0,c=0,p="",h=this._mappings.toArray(),f=0,g=h.length;f0){if(!r.compareByGeneratedPositionsInflated(t,h[f-1]))continue;e+=","}e+=a.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=a.encode(i-c),c=i,e+=a.encode(t.originalLine-1-d),d=t.originalLine-1,e+=a.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=a.encode(n-l),l=n)),p+=e}return p},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},s.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},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,n){var a=n(853);t.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=a.encode(t)}while(r>0);return n},t.decode=function(e,t,n){var r,i,o,s,u=e.length,d=0,l=0;do{if(t>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=a.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),d+=(i&=31)<>1,1==(1&o)?-s:s),n.rest=t}},function(e,t,n){var a=n(76),r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function o(){this._array=[],this._set=i?new Map:Object.create(null)}o.fromArray=function(e,t){for(var n=new o,a=0,r=e.length;a=0)return t}else{var n=a.toSetString(e);if(r.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e0?a:n)(e)}},function(e,t,n){"use strict";var a=n(425),r=/^ms-/;e.exports=function(e){return a(e).replace(r,"-ms-")}},function(e,t,n){"use strict";var a=function(){};e.exports=a},function(e,t,n){"use strict";var a=n(4),r=n(86);Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t,n,a={}){t||(t=d);n||(n=l);return(0,o.default)(e,t,n,a)},t.utils=t.resolver=t.handlers=t.defaultHandlers=void 0;var i=r(n(541));t.handlers=i;var o=a(n(585)),s=r(n(862));t.resolver=s;var u=r(n(866));t.utils=u;const d=s.findExportedComponentDefinition,l=[i.propTypeHandler,i.contextTypeHandler,i.childContextTypeHandler,i.propTypeCompositionHandler,i.propDocBlockHandler,i.flowTypeHandler,i.defaultPropsHandler,i.componentDocblockHandler,i.displayNameHandler,i.componentMethodsHandler,i.componentMethodsJsDocHandler];t.defaultHandlers=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1],n=r._history,i=n.stack,o=n.offset;if(i.length&&o>-1){r._history.stack=i.slice(0,o+1);var s=r._history.stack.length;if(s>y){var u=s-y;r._history.stack=i.slice(u,s),r._history.offset=Math.max(r._history.offset-u,0)}}var d=Date.now();if(t){var l=r._history.stack[r._history.offset];if(l&&d-l.timestamp=D&&t<=w&&e.startsWith(S)?e.substring(S.length):e}).join("\n");if(v!==A){var _=C[D];r._applyEdits({value:A,selectionStart:_.startsWith(S)?E-S.length:E,selectionEnd:x-(v.length-A.length)})}}else if(E!==x){var T=r._getLines(v,E),P=T.length-1,k=r._getLines(v,x).length-1,O=T[P];r._applyEdits({value:v.split("\n").map(function(e,t){return t>=P&&t<=k?S+e:e}).join("\n"),selectionStart:/\S/.test(O)?E+S.length:E,selectionEnd:x+S.length*(k-P+1)})}else{var F=E+S.length;r._applyEdits({value:v.substring(0,E)+S+v.substring(x),selectionStart:F,selectionEnd:F})}else if(e.keyCode===d){var j=E!==x;if(v.substring(0,E).endsWith(S)&&!j){e.preventDefault();var M=E-S.length;r._applyEdits({value:v.substring(0,E-S.length)+v.substring(x),selectionStart:M,selectionEnd:M})}}else if(e.keyCode===s){if(E===x){var I=r._getLines(v,E).pop().match(/^\s+/);if(I&&I[0]){e.preventDefault();var B="\n"+I[0],N=E+B.length;r._applyEdits({value:v.substring(0,E)+B+v.substring(x),selectionStart:N,selectionEnd:N})}}}else if(e.keyCode===h||e.keyCode===f||e.keyCode===g||e.keyCode===m){var L=void 0;e.keyCode===h&&e.shiftKey?L=["(",")"]:e.keyCode===f?L=e.shiftKey?["{","}"]:["[","]"]:e.keyCode===g?L=e.shiftKey?['"','"']:["'","'"]:e.keyCode!==m||e.shiftKey||(L=["`","`"]),E!==x&&L&&(e.preventDefault(),r._applyEdits({value:v.substring(0,E)+L[0]+v.substring(E,x)+L[1]+v.substring(x),selectionStart:E,selectionEnd:x+2}))}else(R?e.metaKey&&e.keyCode===c:e.ctrlKey&&e.keyCode===c)&&!e.shiftKey&&!e.altKey?(e.preventDefault(),r._undoEdit()):(R?e.metaKey&&e.keyCode===c&&e.shiftKey:b?e.ctrlKey&&e.keyCode===l:e.ctrlKey&&e.keyCode===c&&e.shiftKey)&&!e.altKey?(e.preventDefault(),r._redoEdit()):e.keyCode!==p||!e.ctrlKey||R&&!e.shiftKey||(e.preventDefault(),r.setState(function(e){return{capture:!e.capture}}))}},r._handleChange=function(e){var t=e.target,n=t.value,a=t.selectionStart,i=t.selectionEnd;r._recordChange({value:n,selectionStart:a,selectionEnd:i},!0),r.props.onValueChange(n)},r._history={stack:[],offset:-1},o(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidMount",value:function(){this._recordCurrentState()}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,s=t.highlight,u=t.textareaId,d=t.autoFocus,l=t.disabled,c=t.form,p=t.maxLength,h=t.minLength,f=t.name,g=t.placeholder,m=t.readOnly,y=t.required,v=t.onClick,b=t.onFocus,R=t.onBlur,x=t.onKeyUp,C=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(t,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),D={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},w=s(n);return i.createElement("div",a({},C,{style:a({},S.container,r)}),i.createElement("textarea",{ref:function(t){return e._input=t},style:a({},S.editor,S.textarea,D),className:E,id:u,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:v,onKeyUp:x,onFocus:b,onBlur:R,disabled:l,form:c,maxLength:p,minLength:h,name:f,placeholder:g,readOnly:m,required:y,autoFocus:d,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),i.createElement("pre",a({"aria-hidden":"true",style:a({},S.editor,S.highlight,D)},"string"==typeof w?{dangerouslySetInnerHTML:{__html:w+"
"}}:{children:w})),i.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.npm__react-simple-code-editor__textarea:empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n .npm__react-simple-code-editor__textarea {\n color: transparent !important;\n }\n\n .npm__react-simple-code-editor__textarea::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n"}}))}},{key:"session",get:function(){return{history:this._history}},set:function(e){this._history=e.history}}]),t}();x.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t.default=x;var S={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},function(e,t,n){"use strict";const a=n(867).generate,r=n(868).parse,i=n(0),o=n(869),s=n(872),u=n(874),d=n(875),l=i().addRange(0,1114111),c=i().addRange(0,65535),p=l.clone().remove(10,13,8232,8233),h=p.clone().intersection(c),f=(e,t,n)=>t?n?d.UNICODE_IGNORE_CASE.get(e):d.UNICODE.get(e):d.REGULAR.get(e),g=(e,t)=>{const a=t?`${e}/${t}`:`Binary_Property/${e}`;try{return n(876)(`./${a}.js`)}catch(n){throw new Error(`Failed to recognize value \`${t}\` for property `+`\`${e}\`.`)}},m=(e,t)=>{const n=e.split("="),a=n[0];let r;if(1==n.length)r=(e=>{try{const t="General_Category",n=s(t,e);return g(t,n)}catch(e){}const t=o(e);return g(t)})(a);else{const e=o(a),t=s(e,n[1]);r=g(e,t)}return t?l.clone().remove(r):r.clone()};i.prototype.iuAddRange=function(e,t){const n=this;do{const t=b(e);t&&n.add(t)}while(++e<=t);return n};const y=(e,t)=>{let n=r(t,x.useUnicodeFlag?"u":"");switch(n.type){case"characterClass":case"group":case"value":break;default:n=v(n,t)}Object.assign(e,n)},v=(e,t)=>({type:"group",behavior:"ignore",body:[e],raw:`(?:${t})`}),b=e=>u.get(e)||!1,R=(e,t)=>{delete e.name,e.matchIndex=t},E=(e,t,n)=>{switch(e.type){case"dot":y(e,((e,t)=>t?e?l:c:e?p:h)(x.unicode,x.dotAll).toString(t));break;case"characterClass":e=((e,t)=>{let n=i();for(const t of e.body)switch(t.type){case"value":if(n.add(t.codePoint),x.ignoreCase&&x.unicode&&!x.useUnicodeFlag){const e=b(t.codePoint);e&&n.add(e)}break;case"characterClassRange":const e=t.min.codePoint,a=t.max.codePoint;n.addRange(e,a),x.ignoreCase&&x.unicode&&!x.useUnicodeFlag&&n.iuAddRange(e,a);break;case"characterClassEscape":n.add(f(t.value,x.unicode,x.ignoreCase));break;case"unicodePropertyEscape":n.add(m(t.value,t.negative));break;default:throw new Error(`Unknown term type: ${t.type}`)}return e.negative&&(n=(x.unicode?l:c).clone().remove(n)),y(e,n.toString(t)),e})(e,t);break;case"unicodePropertyEscape":y(e,m(e.value,e.negative).toString(t));break;case"characterClassEscape":y(e,f(e.value,x.unicode,x.ignoreCase).toString(t));break;case"group":if(n.lastIndex++,e.name){const t=e.name.value;if(n.names[t])throw new Error(`Multiple groups with the same name (${t}) are not allowed.`);const a=n.lastIndex;delete e.name,n.names[t]=a,n.onNamedGroup&&n.onNamedGroup.call(null,t,a),n.unmatchedReferences[t]&&(n.unmatchedReferences[t].forEach(e=>{R(e,a)}),delete n.unmatchedReferences[t])}case"alternative":case"disjunction":case"quantifier":e.body=e.body.map(e=>E(e,t,n));break;case"value":const a=e.codePoint,r=i(a);if(x.ignoreCase&&x.unicode&&!x.useUnicodeFlag){const e=b(a);e&&r.add(e)}y(e,r.toString(t));break;case"reference":if(e.name){const t=e.name.value,a=n.names[t];if(a){R(e,a);break}n.unmatchedReferences[t]||(n.unmatchedReferences[t]=[]),n.unmatchedReferences[t].push(e)}break;case"anchor":case"empty":case"group":break;default:throw new Error(`Unknown term type: ${e.type}`)}return e},x={ignoreCase:!1,unicode:!1,dotAll:!1,useUnicodeFlag:!1};e.exports=(e,t,n)=>{const i={unicodePropertyEscape:n&&n.unicodePropertyEscape,namedGroups:n&&n.namedGroup,lookbehind:n&&n.lookbehind};x.ignoreCase=t&&t.includes("i"),x.unicode=t&&t.includes("u");const o=n&&n.dotAllFlag;x.dotAll=o&&t&&t.includes("s"),x.useUnicodeFlag=n&&n.useUnicodeFlag;const s={hasUnicodeFlag:x.useUnicodeFlag,bmpOnly:!x.unicode},u={onNamedGroup:n&&n.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},d=r(e,t,i);return E(d,s,u),(e=>{const t=Object.keys(e.unmatchedReferences);if(t.length>0)throw new Error(`Unknown group names: ${t}`)})(u),a(d)}},function(e,t,n){n(1274),e.exports=n(111).Object.assign},,function(e,t,n){"use strict"; +/** @license React v16.8.6 + * react.production.min.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. + */var a=n(183),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,d=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=0;aO.length&&O.push(e)}function M(e,t,n){return null==e?0:function e(t,n,a,r){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case o:u=!0}}if(u)return a(r,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var d=0;dthis.eventPool.length&&this.eventPool.push(e)}function ce(e){e.eventPool=[],e.getPooled=de,e.release=le}r(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=oe)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=oe)},persist:function(){this.isPersistent=oe},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return a.apply(this,arguments)}var a=this;t.prototype=a.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},a.Interface,e),n.extend=a.extend,ce(n),n},ce(ue);var pe=ue.extend({data:null}),he=ue.extend({data:null}),fe=[9,13,27,32],ge=W&&"CompositionEvent"in window,me=null;W&&"documentMode"in document&&(me=document.documentMode);var ye=W&&"TextEvent"in window&&!me,ve=W&&(!ge||me&&8=me),be=String.fromCharCode(32),Re={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ee=!1;function xe(e,t){switch(e){case"keyup":return-1!==fe.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Se(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ce=!1;var De={eventTypes:Re,extractEvents:function(e,t,n,a){var r=void 0,i=void 0;if(ge)e:{switch(e){case"compositionstart":r=Re.compositionStart;break e;case"compositionend":r=Re.compositionEnd;break e;case"compositionupdate":r=Re.compositionUpdate;break e}r=void 0}else Ce?xe(e,n)&&(r=Re.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=Re.compositionStart);return r?(ve&&"ko"!==n.locale&&(Ce||r!==Re.compositionStart?r===Re.compositionEnd&&Ce&&(i=ie()):(ae="value"in(ne=a)?ne.value:ne.textContent,Ce=!0)),r=pe.getPooled(r,t,n,a),i?r.data=i:null!==(i=Se(n))&&(r.data=i),$(r),i=r):i=null,(e=ye?function(e,t){switch(e){case"compositionend":return Se(t);case"keypress":return 32!==t.which?null:(Ee=!0,be);case"textInput":return(e=t.data)===be&&Ee?null:e;default:return null}}(e,n):function(e,t){if(Ce)return"compositionend"===e||!ge&&xe(e,t)?(e=ie(),re=ae=ne=null,Ce=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1