diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 22c4c87..0000000 --- a/.babelrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "presets": [ - ["buildo", { env: "react" }] - ] -} diff --git a/.drone.sec b/.drone.sec deleted file mode 100644 index 2b2a2a7..0000000 --- a/.drone.sec +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.AHx7mZNIaBVzcbgwFqpXyttuYrR0Vzh-FwomNBJXN6OsGJPJlYnYdUNwzxt9KhetGQR36NvPwFChXsJJ_Qopo0-M0QfwoZEj7BtQ_wscD3wYSl4L-rAF0PhiNDbA5ONbfskUvzqBUosTyrqBqNDFjd-9DUEcoOlQG358SK7MJ-LrREIvhmPJJX3jK0SWaZHrKezB8Iqn8zUXo3cgrpe7okkBokdj1epihbz7VOxM-b34lMgaFhe8uCuFNLhe9qnOs_XB9C38cHgNWJ2-qw5UNNGsYPkj5AnHIMx2U_8naLZ4P5MnweO3d8ZzxZHP1iFpaMLaqp2-KJMZC5wVde6gmw.J-cJSYEy1bt_tTvW.9O05ZNksr4-6nRJNK-GRuo7y9fzm-7nk_HFv1qSN3KkZuTDNCpO9UhnrmzfzLyqb0jOYMtcNJb9it9l9polwfEgGjj3ZFZoB0QHv8B2rg9ZYdtZYG9xrpHC4g-VH5HOGEZJrv8zKDECg3auEzhPnqTYC9k6HCD72lpxaYfSXNxI_VPOAISknYd4p_fZzhTQiWC-IF8w2gjZgOGEtKkWBhnT-8vlChqJG.d3ascreaogbJf533TqS0VA \ No newline at end of file diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 290c008..0000000 --- a/.drone.yml +++ /dev/null @@ -1,37 +0,0 @@ -build: - lint-and-test: - image: node:5 - environment: - - NPM_CONFIG_CACHE=/drone/.npm - - NPM_CONFIG_LOGLEVEL=warn - commands: - - npm i - - npm run lint - - npm test - - generate-readme: - image: node:5 - commands: - - npm run generate-readme - - git add src/README.md - - if ! git diff-index --quiet HEAD -- src/README.md; then - git config --global user.name "nemobot"; - git config --global user.email "our-bots@buildo.io"; - git commit -m "Update README [skip CI]"; - git push origin master; - fi - when: - branch: master - -notify: - downstream: - repositories: - - buildo/react-components - token: $$NOTIFY_BRC_TOKEN - fork: true - when: - branch: master - -cache: - mount: - - /drone/.npm diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 93efb7d..0000000 --- a/.eslintrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./node_modules/scriptoni/lib/scripts/eslint/eslintrc.json", - "rules": { - "max-len": 0 - } -} diff --git a/.flowconfig b/.flowconfig deleted file mode 100644 index 41ab17e..0000000 --- a/.flowconfig +++ /dev/null @@ -1,11 +0,0 @@ -[include] - -[ignore] -/node_modules/fbjs -/node_modules/react-addons-test-utils/node_modules/fbjs -/node_modules/stylelint - -[libs] - -[options] -esproposal.decorators=ignore diff --git a/CHANGELOG.md b/CHANGELOG.md index f4a17ac..ca69abf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,100 @@ +## [v6.0.1](https://github.com/buildo/react-flexview/tree/v6.0.1) (2020-08-20) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v6.0.0...v6.0.1) + +## [v6.0.0](https://github.com/buildo/react-flexview/tree/v6.0.0) (2020-08-20) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v5.0.0...v6.0.0) + +#### New features: + +- more justify/align props? [#70](https://github.com/buildo/react-flexview/issues/70) + +## [v5.0.0](https://github.com/buildo/react-flexview/tree/v5.0.0) (2020-04-20) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v4.0.4...v5.0.0) + +#### Breaking: + +- Allow to pass a ref for the underlying div [#80](https://github.com/buildo/react-flexview/issues/80) + +#### New features: + +- stricter children prop typings [#78](https://github.com/buildo/react-flexview/issues/78) + +## [v4.0.4](https://github.com/buildo/react-flexview/tree/v4.0.4) (2019-09-16) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v4.0.3...v4.0.4) + +## [v4.0.3](https://github.com/buildo/react-flexview/tree/v4.0.3) (2019-01-25) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v4.0.2...v4.0.3) + +#### New features: + +- Remove lodash deps [#72](https://github.com/buildo/react-flexview/issues/72) + +## [v4.0.2](https://github.com/buildo/react-flexview/tree/v4.0.2) (2019-01-23) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v4.0.1...v4.0.2) + +#### New features: + +- Typescript 2.9.2 failed when compiling typelevel-ts dependency [#69](https://github.com/buildo/react-flexview/issues/69) + +#### Fixes (bugs & defects): + +- unsafe check in development [#67](https://github.com/buildo/react-flexview/issues/67) + +## [v4.0.1](https://github.com/buildo/react-flexview/tree/v4.0.1) (2018-07-06) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v4.0.0...v4.0.1) + +## [v4.0.0](https://github.com/buildo/react-flexview/tree/v4.0.0) (2018-07-02) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v3.0.2...v4.0.0) + +#### Breaking: + +- Should work without CSS in modern browsers [#66](https://github.com/buildo/react-flexview/issues/66) + +## [v3.0.2](https://github.com/buildo/react-flexview/tree/v3.0.2) (2018-05-21) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v3.0.1...v3.0.2) + +#### Fixes (bugs & defects): + +- ref prop type is broken [#63](https://github.com/buildo/react-flexview/issues/63) + +## [v3.0.1](https://github.com/buildo/react-flexview/tree/v3.0.1) (2018-01-18) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v3.0.0...v3.0.1) + +#### Fixes (bugs & defects): + +- using the type FlexView.Props does not work [#57](https://github.com/buildo/react-flexview/issues/57) + +## [v3.0.0](https://github.com/buildo/react-flexview/tree/v3.0.0) (2018-01-18) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v2.0.2...v3.0.0) + +#### Breaking: + +- move @types deps to dev deps [#55](https://github.com/buildo/react-flexview/issues/55) + +## [v2.0.2](https://github.com/buildo/react-flexview/tree/v2.0.2) (2017-12-07) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v2.0.1...v2.0.2) + +#### Fixes (bugs & defects): + +- FlexView.Props type annotations are not working in VSCode [#52](https://github.com/buildo/react-flexview/issues/52) + +## [v2.0.1](https://github.com/buildo/react-flexview/tree/v2.0.1) (2017-12-05) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v2.0.0...v2.0.1) + +#### Fixes (bugs & defects): + +- Module not found: can't resolve `react-flexview/lib/flexView.css` [#50](https://github.com/buildo/react-flexview/issues/50) + +## [v2.0.0](https://github.com/buildo/react-flexview/tree/v2.0.0) (2017-12-05) +[Full Changelog](https://github.com/buildo/react-flexview/compare/v1.0.13...v2.0.0) + +#### Breaking: + +- replace flow with Typescript [#40](https://github.com/buildo/react-flexview/issues/40) + ## [v1.0.13](https://github.com/buildo/react-flexview/tree/v1.0.13) (2017-07-04) [Full Changelog](https://github.com/buildo/react-flexview/compare/v1.0.12...v1.0.13) diff --git a/README.md b/README.md index 1351aaa..0f9cbac 100644 --- a/README.md +++ b/README.md @@ -3,52 +3,35 @@ A powerful React component to abstract over *flexbox* and create any layout on a ## Install ``` -npm i --save react-flexview +yarn add react-flexview ``` ## Why The *flexbox* API is powerful but far from being perfect. The API is complex and there are still many inconsistencies between browsers that force developers to overuse vendor prefixes and literally do magic tricks to achieve the desired layout. -For these reasons, we asked ourselves: is there a way to simplify the API and handle any browser inconsistency in a single place? - -Here's a typical CSS snippet using *flexbox*: - -```css -.flex-view { - /* flex */ - display: flexbox; - display: -webkit-box; - display: -moz-box; - display: -ms-flexbox; - display: -webkit-flex; - display: flex; - - /* direction */ - webkit-box-flex-direction: row; - moz-box-flex-direction: row; - ms-flex-direction: row; - webkit-flex-direction: row; - flex-direction: row; - - /* grow, shrink, basis */ - webkit-box-flex: 1 1 200px; - moz-box-flex: 1 1 200px; - ms-flex: 1 1 200px; - webkit-flex: 1 1 200px; - flex: 1 1 200px; -} -``` - -And this is how you do it with `FlexView`: +For these reasons, we asked ourselves: is there a way to simplify the API and handle any browser inconsistency in a single place? Our attempt to answer "yes!" to that question gave birth to `FlexView`. ```jsx - +// flex row + + +// flex column + + +// grow, shrink and basis + + + // shrink is set to `false` by default so you're certain to a have it `100px` wide/tall + +// wrap + ``` Remember how difficult it was to center a `div` inside another `div`? +*flexbox* definitely improved it, but still having to switch from `align-items` to `justify-content` based on `flex-direction` of the parent is confusing and error prone. -`FlexView` let's you align and center `children` with two intuitive props: `vAlignContent` and `hAlignContent` +`FlexView` lets you align and center `children` with two intuitive props: `vAlignContent` and `hAlignContent`. ```jsx @@ -57,12 +40,6 @@ Remember how difficult it was to center a `div` inside another `div`? ``` ## How to use -In your `app.js`: - -```js -import 'react-flexview/lib/flexView.css' // FlexView is useless without its style -``` - In your component: ```jsx @@ -102,11 +79,21 @@ export default class Component extends React.Component { ## Demo -Here's a [live playground](http://rawgit.com/buildo/react-flexview/master/dev/build/#/) +Here's a [live playground](http://react-components.buildo.io/#flexview) ## Documentation Refer to the [Book of FlexView](http://buildo.github.io/react-flexview/) +## Supported browsers +We removed vendor prefixes in [#66](https://github.com/buildo/react-flexview/issues/66), since than we only supports browsers that don't require prefixes for *flexbox* CSS properties which are most browsers: +- IE 11 +- Edge (any version) +- Google Chrome 29+ +- Firefox 28+ +- Safari 9+ + +If you need to support older browsers, try with `FlexView` `3.x`. + ## Used By At [buildo](https://buildo.io/) we've been using `FlexView` in production in every web application we built since [July 2015](https://github.com/buildo/react-components/pull/7) (it was in a different repo back then). @@ -115,4 +102,3 @@ As of today, `FlexView` has replaced the `div` as the brick of our projects and, You can see it in action here: - [buildo.io](https://buildo.io/) - [LexDo.it](https://www.lexdo.it/) -- [OXWAY](http://app.oxway.co/#/) diff --git a/ci/pipeline.yml b/ci/pipeline.yml new file mode 100644 index 0000000..8503e39 --- /dev/null +++ b/ci/pipeline.yml @@ -0,0 +1,59 @@ +resource_types: + - name: pull-request + type: docker-image + source: + repository: teliaoss/github-pr-resource + +resources: + - name: master + type: git + icon: github-circle + source: + uri: git@github.com:buildo/react-flexview + branch: master + private_key: ((private-key)) + + - name: pr + type: pull-request + source: + repository: buildo/react-flexview + access_token: ((github-token)) + +jobs: + - name: pr-test + plan: + - get: react-flexview + resource: pr + trigger: true + version: every + - put: pr + params: + path: react-flexview + status: pending + context: concourse + - do: + - task: test + file: react-flexview/ci/test.yml + attempts: 2 + on_success: + put: pr + params: + path: react-flexview + status: success + context: concourse + on_failure: + put: pr + params: + path: react-flexview + status: failure + context: concourse + + - name: test + plan: + - get: react-flexview + resource: master + trigger: true + - do: + - task: test + file: react-flexview/ci/test.yml + attempts: 2 diff --git a/ci/test.sh b/ci/test.sh new file mode 100755 index 0000000..7c8cc3d --- /dev/null +++ b/ci/test.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +yarn install --no-progress +yarn typecheck +yarn test diff --git a/ci/test.yml b/ci/test.yml new file mode 100644 index 0000000..118e9b7 --- /dev/null +++ b/ci/test.yml @@ -0,0 +1,17 @@ +platform: linux + +image_resource: + type: docker-image + source: + repository: node + tag: 8-slim + +inputs: + - name: react-flexview + +caches: + - path: react-flexview/node_modules + +run: + path: ci/test.sh + dir: react-flexview diff --git a/dev/build/bundle.js b/dev/build/bundle.js deleted file mode 100644 index de01266..0000000 --- a/dev/build/bundle.js +++ /dev/null @@ -1,104 +0,0 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}var s=function(){function e(e,t){for(var n=0;n"+s+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var i=a.getNode(this._rootNodeID);r.updateTextContent(i,n)}}},unmountComponent:function(){o.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=c},function(e,t,n){"use strict";function r(e,t,n){var r=n>=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,r)}var i=n(7),o=n(15),a=n(17),s=n(18),u=n(19),l=n(12),c={dangerouslyReplaceNodeWithMarkup:i.dangerouslyReplaceNodeWithMarkup,updateTextContent:u,processUpdates:function(e,t){for(var n,a=null,c=null,f=0;f]+)/,c="data-danger-index",f={dangerouslyRenderMarkup:function(e){i.canUseDOM?void 0:u(!1);for(var t,n={},f=0;f":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?p[e]:null}var i=n(8),o=n(12),a=i.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],l=[1,"","
"],c=[3,"","
"],f=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},d=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];d.forEach(function(e){p[e]=f,s[e]=!0}),e.exports=r},function(e,t){"use strict";function n(e){return function(){return e}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(16),i=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.exports=i},function(e,t,n){"use strict";var r=n(12),i=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){return n}var i={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){i.storedMeasure=e}}};e.exports=i},function(e,t,n){"use strict";var r=n(8),i=/^[ \r\n\t\f]/,o=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),i.test(t)||"<"===t[0]&&o.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=a},function(e,t,n){"use strict";var r=n(8),i=n(20),o=n(18),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){o(e,i(t))})),e.exports=a},function(e,t){"use strict";function n(e){return i[e]}function r(e){return(""+e).replace(o,n)}var i={"&":"&",">":">","<":"<",'"':""","'":"'"},o=/[&><"']/g;e.exports=r},function(e,t,n){"use strict";function r(e){return!!c.hasOwnProperty(e)||!l.hasOwnProperty(e)&&(u.test(e)?(c[e]=!0,!0):(l[e]=!0,!1))}function i(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&t===!1}var o=n(22),a=n(17),s=n(23),u=(n(24),/^[a-zA-Z_][\w\.\-]*$/),l={},c={},f={createMarkupForID:function(e){return o.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeForID:function(e,t){e.setAttribute(o.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,t){var n=o.properties.hasOwnProperty(e)?o.properties[e]:null;if(n){if(i(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+s(t)}return o.isCustomAttribute(e)?null==t?"":e+"="+s(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+s(t):""},setValueForProperty:function(e,t,n){var r=o.properties.hasOwnProperty(t)?o.properties[t]:null;if(r){var a=r.mutationMethod;if(a)a(e,n);else if(i(r,n))this.deleteValueForProperty(e,t);else if(r.mustUseAttribute){var s=r.attributeName,u=r.attributeNamespace;u?e.setAttributeNS(u,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}else{var l=r.propertyName;r.hasSideEffects&&""+e[l]==""+n||(e[l]=n)}}else o.isCustomAttribute(t)&&f.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){var n=o.properties.hasOwnProperty(t)?o.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseAttribute)e.removeAttribute(n.attributeName);else{var i=n.propertyName,a=o.getDefaultValueForProperty(e.nodeName,i);n.hasSideEffects&&""+e[i]===a||(e[i]=a)}}else o.isCustomAttribute(t)&&e.removeAttribute(t)}};a.measureMethods(f,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),e.exports=f},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var i=n(12),o={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=o,n=e.Properties||{},a=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},l=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var f in n){s.properties.hasOwnProperty(f)?i(!1):void 0;var p=f.toLowerCase(),d=n[f],h={attributeName:p,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseAttribute:r(d,t.MUST_USE_ATTRIBUTE),mustUseProperty:r(d,t.MUST_USE_PROPERTY),hasSideEffects:r(d,t.HAS_SIDE_EFFECTS),hasBooleanValue:r(d,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(d,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(d,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(d,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.mustUseAttribute&&h.mustUseProperty?i(!1):void 0,!h.mustUseProperty&&h.hasSideEffects?i(!1):void 0,h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:i(!1),u.hasOwnProperty(f)){var v=u[f];h.attributeName=v}a.hasOwnProperty(f)&&(h.attributeNamespace=a[f]),l.hasOwnProperty(f)&&(h.propertyName=l[f]),c.hasOwnProperty(f)&&(h.mutationMethod=c[f]),s.properties[f]=h}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t-1?void 0:a(!1),!l.plugins[n]){t.extractEvents?void 0:a(!1),l.plugins[n]=t;var r=t.eventTypes;for(var o in r)i(r[o],t,o)?void 0:a(!1)}}}function i(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a(!1):void 0,l.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];o(s,t,n)}return!0}return!!e.registrationName&&(o(e.registrationName,t,n),!0)}function o(e,t,n){l.registrationNameModules[e]?a(!1):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(12),s=null,u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){s?a(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];u.hasOwnProperty(n)&&u[n]===i||(u[n]?a(!1):void 0,u[n]=i,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=l.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=l.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i]}};e.exports=l},function(e,t,n){"use strict";function r(e){return e===m.topMouseUp||e===m.topTouchEnd||e===m.topTouchCancel}function i(e){return e===m.topMouseMove||e===m.topTouchMove}function o(e){return e===m.topMouseDown||e===m.topTouchStart}function a(e,t,n,r){var i=e.type||"unknown-event";e.currentTarget=v.Mount.getNode(r),t?d.invokeGuardedCallbackWithCatch(i,n,e,r):d.invokeGuardedCallback(i,n,e,r),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var i=0;i1){for(var d=Array(p),h=0;h1){for(var v=Array(h),m=0;m1){var t=e.indexOf(d,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,i){var o=l(e,t);o!==e&&c(e,o,n,r,!1,!0),o!==t&&c(o,t,n,i,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1),c(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(c("",e,t,n,!0,!0),c(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},getFirstCommonAncestorID:l,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:d};e.exports=m},function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:n};e.exports=r},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){"use strict";var r=n(48),i=/\/?>/,o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(i," "+o.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(o.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=r(e);return i===n}};e.exports=o},function(e,t){"use strict";function n(e){for(var t=1,n=0,i=0,o=e.length,a=o&-4;i8&&A<=11),S=32,k=String.fromCharCode(S),D=d.topLevelTypes,P={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})},dependencies:[D.topCompositionEnd,D.topKeyPress,D.topTextInput,D.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[D.topBlur,D.topCompositionEnd,D.topKeyDown,D.topKeyPress,D.topKeyUp,D.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[D.topBlur,D.topCompositionStart,D.topKeyDown,D.topKeyPress,D.topKeyUp,D.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[D.topBlur,D.topCompositionUpdate,D.topKeyDown,D.topKeyPress,D.topKeyUp,D.topMouseDown]}},O=!1,T=null,M={eventTypes:P,extractEvents:function(e,t,n,r,i){return[l(e,t,n,r,i),p(e,t,n,r,i)]}};e.exports=M},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return y(e,r)}function i(e,t,n){var i=t?g.bubbled:g.captured,o=r(e,n,i);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchIDs=v(n._dispatchIDs,e))}function o(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,i,e)}function a(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(e.dispatchMarker,i,e)}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,i=y(e,r);i&&(n._dispatchListeners=v(n._dispatchListeners,i),n._dispatchIDs=v(n._dispatchIDs,e))}}function u(e){e&&e.dispatchConfig.registrationName&&s(e.dispatchMarker,null,e)}function l(e){m(e,o)}function c(e){m(e,a)}function f(e,t,n,r){h.injection.getInstanceHandle().traverseEnterLeave(n,r,s,e,t)}function p(e){m(e,u)}var d=n(29),h=n(30),v=(n(24),n(34)),m=n(35),g=d.PropagationPhases,y=h.getListener,b={accumulateTwoPhaseDispatches:l,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:f};e.exports=b},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var i=n(55),o=n(38),a=n(74);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,i=this.getText(),o=i.length;for(e=0;e1?1-t:void 0;return this._fallbackText=i.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(){return!o&&i.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var i=n(8),o=null;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){i.call(this,e,t,n,r)}var i=n(76),o={data:null};i.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var i=this.constructor.Interface;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];s?this[o]=s(n):"target"===o?this.target=r:this[o]=n[o]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;u?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var i=n(55),o=n(38),a=n(14),s=(n(24),{type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=s,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);o(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=o({},n.Interface,t),e.augmentClass=n.augmentClass,i.addPoolingTo(e,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){i.call(this,e,t,n,r)}var i=n(76),o={data:null};i.augmentClass(r,o),e.exports=r},function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function i(e){var t=A.getPooled(P.change,T,e,_(e));x.accumulateTwoPhaseDispatches(t),w.batchedUpdates(o,t)}function o(e){b.enqueueEvents(e),b.processEventQueue(!1)}function a(e,t){O=e,T=t,O.attachEvent("onchange",i)}function s(){O&&(O.detachEvent("onchange",i),O=null,T=null)}function u(e,t,n){if(e===D.topChange)return n}function l(e,t,n){e===D.topFocus?(s(),a(t,n)):e===D.topBlur&&s()}function c(e,t){O=e,T=t,M=e.value,R=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(O,"value",I),O.attachEvent("onpropertychange",p)}function f(){O&&(delete O.value,O.detachEvent("onpropertychange",p),O=null,T=null,M=null,R=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,i(e))}}function d(e,t,n){if(e===D.topInput)return n}function h(e,t,n){e===D.topFocus?(f(),c(t,n)):e===D.topBlur&&f()}function v(e,t,n){if((e===D.topSelectionChange||e===D.topKeyUp||e===D.topKeyDown)&&O&&O.value!==M)return M=O.value,T}function m(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){if(e===D.topClick)return n}var y=n(29),b=n(30),x=n(72),E=n(8),w=n(53),A=n(76),_=n(80),C=n(39),S=n(81),k=n(78),D=y.topLevelTypes,P={ -change:{phasedRegistrationNames:{bubbled:k({onChange:null}),captured:k({onChangeCapture:null})},dependencies:[D.topBlur,D.topChange,D.topClick,D.topFocus,D.topInput,D.topKeyDown,D.topKeyUp,D.topSelectionChange]}},O=null,T=null,M=null,R=null,N=!1;E.canUseDOM&&(N=C("change")&&(!("documentMode"in document)||document.documentMode>8));var F=!1;E.canUseDOM&&(F=C("input")&&(!("documentMode"in document)||document.documentMode>9));var I={get:function(){return R.get.call(this)},set:function(e){M=""+e,R.set.call(this,e)}},L={eventTypes:P,extractEvents:function(e,t,n,i,o){var a,s;if(r(t)?N?a=u:s=l:S(t)?F?a=d:(a=v,s=h):m(t)&&(a=g),a){var c=a(e,t,n);if(c){var f=A.getPooled(P.change,c,i,o);return f.type="change",x.accumulateTwoPhaseDispatches(f),f}}s&&s(e,t,n)}};e.exports=L},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&r[e.type]||"textarea"===t)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){"use strict";var r=n(78),i=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];e.exports=i},function(e,t,n){"use strict";var r=n(29),i=n(72),o=n(85),a=n(27),s=n(78),u=r.topLevelTypes,l=a.getFirstReactDOM,c={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},f=[null,null],p={eventTypes:c,extractEvents:function(e,t,n,r,s){if(e===u.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==u.topMouseOut&&e!==u.topMouseOver)return null;var p;if(t.window===t)p=t;else{var d=t.ownerDocument;p=d?d.defaultView||d.parentWindow:window}var h,v,m="",g="";if(e===u.topMouseOut?(h=t,m=n,v=l(r.relatedTarget||r.toElement),v?g=a.getID(v):v=p,v=v||p):(h=p,v=t,g=n),h===v)return null;var y=o.getPooled(c.mouseLeave,m,r,s);y.type="mouseleave",y.target=h,y.relatedTarget=v;var b=o.getPooled(c.mouseEnter,g,r,s);return b.type="mouseenter",b.target=v,b.relatedTarget=h,i.accumulateEnterLeaveDispatches(y,b,m,g),f[0]=y,f[1]=b,f}};e.exports=p},function(e,t,n){"use strict";function r(e,t,n,r){i.call(this,e,t,n,r)}var i=n(86),o=n(37),a=n(87),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+o.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+o.currentScrollTop}};i.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){i.call(this,e,t,n,r)}var i=n(76),o=n(80),a={view:function(e){if(e.view)return e.view;var t=o(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};i.augmentClass(r,a),e.exports=r},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function r(e){return n}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";var r,i=n(22),o=n(8),a=i.injection.MUST_USE_ATTRIBUTE,s=i.injection.MUST_USE_PROPERTY,u=i.injection.HAS_BOOLEAN_VALUE,l=i.injection.HAS_SIDE_EFFECTS,c=i.injection.HAS_NUMERIC_VALUE,f=i.injection.HAS_POSITIVE_NUMERIC_VALUE,p=i.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(o.canUseDOM){var d=document.implementation;r=d&&d.hasFeature&&d.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|u,allowTransparency:a,alt:null,async:u,autoComplete:null,autoPlay:u,capture:a|u,cellPadding:null,cellSpacing:null,charSet:a,challenge:a,checked:s|u,classID:a,className:r?a:s,cols:a|f,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:a,default:u,defer:u,dir:null,disabled:a|u,download:p,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:u,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:a,integrity:null,is:a,keyParams:a,keyType:a,kind:null,label:null,lang:null,list:a,loop:s|u,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,minLength:a,multiple:s|u,muted:s|u,name:null,nonce:a,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,reversed:u,role:a,rows:a|f,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:a|u,selected:s|u,shape:null,size:a|f,sizes:a,span:f,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:a,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|l,width:a,wmode:a,wrap:null,about:a,datatype:a,inlist:a,prefix:a,property:a,resource:a,typeof:a,vocab:a,autoCapitalize:a,autoCorrect:a,autoSave:null,color:null,itemProp:a,itemScope:a|u,itemType:a,itemID:a,itemRef:a,results:null,security:a,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=h},function(e,t,n){"use strict";var r=(n(46),n(90)),i=(n(24),"_getDOMNodeDidWarn"),o={getDOMNode:function(){return this.constructor[i]=!0,r(this)}};e.exports=o},function(e,t,n){"use strict";function r(e){return null==e?null:1===e.nodeType?e:i.has(e)?o.getNodeFromInstance(e):(null!=e.render&&"function"==typeof e.render?a(!1):void 0,void a(!1))}var i=(n(4),n(46)),o=n(27),a=n(12);n(24);e.exports=r},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var i=n(53),o=n(56),a=n(38),s=n(14),u={initialize:s,close:function(){p.isBatchingUpdates=!1}},l={initialize:s,close:i.flushBatchedUpdates.bind(i)},c=[l,u];a(r.prototype,o.Mixin,{getTransactionWrappers:function(){return c}});var f=new r,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,i,o){var a=p.isBatchingUpdates;p.isBatchingUpdates=!0,a?e(t,n,r,i,o):f.perform(e,null,t,n,r,i,o)}};e.exports=p},function(e,t,n){"use strict";function r(){return this}function i(){var e=this._reactInternalComponent;return!!e}function o(){}function a(e,t){var n=this._reactInternalComponent;n&&(M.enqueueSetPropsInternal(n,e),t&&M.enqueueCallbackInternal(n,t))}function s(e,t){var n=this._reactInternalComponent;n&&(M.enqueueReplacePropsInternal(n,e),t&&M.enqueueCallbackInternal(n,t))}function u(e,t){t&&(null!=t.dangerouslySetInnerHTML&&(null!=t.children?I(!1):void 0,"object"==typeof t.dangerouslySetInnerHTML&&z in t.dangerouslySetInnerHTML?void 0:I(!1)),null!=t.style&&"object"!=typeof t.style?I(!1):void 0)}function l(e,t,n,r){var i=P.findReactContainerForID(e);if(i){var o=i.nodeType===Y?i.ownerDocument:i;V(t,o)}r.getReactMountReady().enqueue(c,{id:e,registrationName:t,listener:n})}function c(){var e=this;w.putListener(e.id,e.registrationName,e.listener)}function f(){var e=this;e._rootNodeID?void 0:I(!1);var t=P.getNode(e._rootNodeID);switch(t?void 0:I(!1),e._tag){case"iframe":e._wrapperState.listeners=[w.trapBubbledEvent(E.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in K)K.hasOwnProperty(n)&&e._wrapperState.listeners.push(w.trapBubbledEvent(E.topLevelTypes[n],K[n],t));break;case"img":e._wrapperState.listeners=[w.trapBubbledEvent(E.topLevelTypes.topError,"error",t),w.trapBubbledEvent(E.topLevelTypes.topLoad,"load",t)];break;case"form":e._wrapperState.listeners=[w.trapBubbledEvent(E.topLevelTypes.topReset,"reset",t),w.trapBubbledEvent(E.topLevelTypes.topSubmit,"submit",t)]}}function p(){C.mountReadyWrapper(this)}function d(){k.postUpdateWrapper(this)}function h(e){Z.call(Q,e)||(J.test(e)?void 0:I(!1),Q[e]=!0)}function v(e,t){return e.indexOf("-")>=0||null!=t.is}function m(e){h(e),this._tag=e.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var g=n(93),y=n(95),b=n(22),x=n(21),E=n(29),w=n(28),A=n(25),_=n(103),C=n(104),S=n(108),k=n(111),D=n(112),P=n(27),O=n(113),T=n(17),M=n(52),R=n(38),N=n(42),F=n(20),I=n(12),L=(n(39),n(78)),j=n(18),B=n(19),U=(n(116),n(69),n(24),w.deleteListener),V=w.listenTo,W=w.registrationNameModules,q={string:!0,number:!0},H=L({children:null}),G=L({style:null}),z=L({__html:null}),Y=1,K={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},X={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},$={listing:!0,pre:!0,textarea:!0},J=(R({menuitem:!0},X),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),Q={},Z={}.hasOwnProperty;m.displayName="ReactDOMComponent",m.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e;var r=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(f,this);break;case"button":r=_.getNativeProps(this,r,n);break;case"input":C.mountWrapper(this,r,n),r=C.getNativeProps(this,r,n);break;case"option":S.mountWrapper(this,r,n),r=S.getNativeProps(this,r,n);break;case"select":k.mountWrapper(this,r,n),r=k.getNativeProps(this,r,n),n=k.processChildContext(this,r,n);break;case"textarea":D.mountWrapper(this,r,n),r=D.getNativeProps(this,r,n)}u(this,r);var i;if(t.useCreateElement){var o=n[P.ownerDocumentContextKey],a=o.createElement(this._currentElement.type);x.setAttributeForID(a,this._rootNodeID),P.getID(a),this._updateDOMProperties({},r,t,a),this._createInitialChildren(t,r,n,a),i=a}else{var s=this._createOpenTagMarkupAndPutListeners(t,r),l=this._createContentMarkup(t,r,n);i=!l&&X[this._tag]?s+"/>":s+">"+l+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(p,this);case"button":case"select":case"textarea":r.autoFocus&&t.getReactMountReady().enqueue(g.focusDOMComponent,this)}return i},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(null!=i)if(W.hasOwnProperty(r))i&&l(this._rootNodeID,r,i,e);else{r===G&&(i&&(i=this._previousStyleCopy=R({},t.style)),i=y.createMarkupForStyles(i));var o=null;null!=this._tag&&v(this._tag,t)?r!==H&&(o=x.createMarkupForCustomAttribute(r,i)):o=x.createMarkupForProperty(r,i),o&&(n+=" "+o)}}if(e.renderToStaticMarkup)return n;var a=x.createMarkupForID(this._rootNodeID);return n+" "+a},_createContentMarkup:function(e,t,n){var r="",i=t.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&(r=i.__html);else{var o=q[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)r=F(o);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return $[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var i=t.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&j(r,i.__html);else{var o=q[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)B(r,o);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;u>"}var y=n(41),b=n(65),x=n(14),E=n(107),w="<>",A={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:o(),arrayOf:a,element:s(),instanceOf:u,node:p(),objectOf:c,oneOf:l,oneOfType:f,shape:d};e.exports=A},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[i]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";e.exports=n},function(e,t,n){"use strict";var r=n(109),i=n(111),o=n(38),a=(n(24),i.valueContextKey),s={mountWrapper:function(e,t,n){var r=n[a],i=null;if(null!=r)if(i=!1,Array.isArray(r)){for(var o=0;ot.end?(n=t.end,r=t.start):(n=t.start,r=t.end),i.moveToElementText(e),i.moveStart("character",n),i.setEndPoint("EndToStart",i),i.moveEnd("character",r-n),i.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,i=Math.min(t.start,r),o="undefined"==typeof t.end?i:Math.min(t.end,r);if(!n.extend&&i>o){var a=o;o=i,i=a}var s=l(e,i),u=l(e,o);if(s&&u){var f=document.createRange();f.setStart(s.node,s.offset),n.removeAllRanges(),i>o?(n.addRange(f),n.extend(u.node,u.offset)):(f.setEnd(u.node,u.offset),n.addRange(f))}}}var u=n(8),l=n(127),c=n(74),f=u.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?i:o,setOffsets:f?a:s};e.exports=p},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var i=n(e),o=0,a=0;i;){if(3===i.nodeType){if(a=o+i.textContent.length,o<=t&&a>=t)return{node:i,offset:t-o};o=a}i=n(r(i))}}e.exports=i},function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&u.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function i(e,t){if(x||null==g||g!==c())return null;var n=r(g);if(!b||!d(b,n)){b=n;var i=l.getPooled(m.select,y,e,t);return i.type="select",i.target=g,a.accumulateTwoPhaseDispatches(i),i}return null}var o=n(29),a=n(72),s=n(8),u=n(125),l=n(76),c=n(128),f=n(81),p=n(78),d=n(116),h=o.topLevelTypes,v=s.canUseDOM&&"documentMode"in document&&document.documentMode<=11,m={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},g=null,y=null,b=null,x=!1,E=!1,w=p({onSelect:null}),A={eventTypes:m,extractEvents:function(e,t,n,r,o){if(!E)return null;switch(e){case h.topFocus:(f(t)||"true"===t.contentEditable)&&(g=t,y=n,b=null);break;case h.topBlur:g=null,y=null,b=null;break;case h.topMouseDown:x=!0;break;case h.topContextMenu:case h.topMouseUp:return x=!1,i(r,o);case h.topSelectionChange:if(v)break;case h.topKeyDown:case h.topKeyUp:return i(r,o)}return null},didPutListener:function(e,t,n){t===w&&(E=!0)}};e.exports=A},function(e,t){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};e.exports=r},function(e,t,n){"use strict";var r=n(29),i=n(118),o=n(72),a=n(27),s=n(132),u=n(76),l=n(133),c=n(134),f=n(85),p=n(137),d=n(138),h=n(86),v=n(139),m=n(14),g=n(135),y=n(12),b=n(78),x=r.topLevelTypes,E={abort:{phasedRegistrationNames:{bubbled:b({onAbort:!0}),captured:b({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:b({onBlur:!0}),captured:b({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:b({onCanPlay:!0}),captured:b({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:b({onCanPlayThrough:!0}),captured:b({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:b({onClick:!0}),captured:b({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:b({onContextMenu:!0}),captured:b({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:b({onCopy:!0}),captured:b({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:b({onCut:!0}),captured:b({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:b({onDoubleClick:!0}),captured:b({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:b({onDrag:!0}),captured:b({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:b({onDragEnd:!0}),captured:b({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:b({onDragEnter:!0}),captured:b({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:b({onDragExit:!0}),captured:b({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:b({onDragLeave:!0}),captured:b({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:b({onDragOver:!0}),captured:b({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:b({onDragStart:!0}),captured:b({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:b({onDrop:!0}),captured:b({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:b({onDurationChange:!0}),captured:b({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:b({onEmptied:!0}),captured:b({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:b({onEncrypted:!0}),captured:b({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:b({onEnded:!0}),captured:b({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:b({onError:!0}),captured:b({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:b({onFocus:!0}),captured:b({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:b({onInput:!0}),captured:b({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:b({onKeyDown:!0}),captured:b({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:b({onKeyPress:!0}),captured:b({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:b({onKeyUp:!0}),captured:b({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:b({onLoad:!0}),captured:b({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:b({onLoadedData:!0}),captured:b({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:b({onLoadedMetadata:!0}),captured:b({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:b({onLoadStart:!0}),captured:b({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:b({onMouseDown:!0}),captured:b({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:b({onMouseMove:!0}),captured:b({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:b({onMouseOut:!0}),captured:b({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:b({onMouseOver:!0}),captured:b({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:b({onMouseUp:!0}),captured:b({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:b({onPaste:!0}),captured:b({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:b({onPause:!0}),captured:b({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:b({onPlay:!0}),captured:b({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:b({onPlaying:!0}),captured:b({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:b({onProgress:!0}),captured:b({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:b({onRateChange:!0}),captured:b({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:b({onReset:!0}),captured:b({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:b({onScroll:!0}),captured:b({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:b({onSeeked:!0}),captured:b({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:b({onSeeking:!0}),captured:b({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:b({onStalled:!0}),captured:b({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:b({onSubmit:!0}),captured:b({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:b({onSuspend:!0}),captured:b({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:b({onTimeUpdate:!0}),captured:b({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:b({onTouchCancel:!0}),captured:b({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:b({onTouchEnd:!0}),captured:b({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:b({onTouchMove:!0}),captured:b({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:b({onTouchStart:!0}),captured:b({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:b({onVolumeChange:!0}),captured:b({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:b({onWaiting:!0}),captured:b({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:b({onWheel:!0}),captured:b({onWheelCapture:!0})}}},w={topAbort:E.abort,topBlur:E.blur,topCanPlay:E.canPlay,topCanPlayThrough:E.canPlayThrough,topClick:E.click,topContextMenu:E.contextMenu,topCopy:E.copy,topCut:E.cut,topDoubleClick:E.doubleClick,topDrag:E.drag,topDragEnd:E.dragEnd,topDragEnter:E.dragEnter,topDragExit:E.dragExit,topDragLeave:E.dragLeave,topDragOver:E.dragOver,topDragStart:E.dragStart,topDrop:E.drop,topDurationChange:E.durationChange,topEmptied:E.emptied,topEncrypted:E.encrypted,topEnded:E.ended,topError:E.error,topFocus:E.focus,topInput:E.input,topKeyDown:E.keyDown,topKeyPress:E.keyPress,topKeyUp:E.keyUp,topLoad:E.load,topLoadedData:E.loadedData,topLoadedMetadata:E.loadedMetadata,topLoadStart:E.loadStart,topMouseDown:E.mouseDown,topMouseMove:E.mouseMove,topMouseOut:E.mouseOut,topMouseOver:E.mouseOver,topMouseUp:E.mouseUp,topPaste:E.paste,topPause:E.pause,topPlay:E.play,topPlaying:E.playing,topProgress:E.progress,topRateChange:E.rateChange,topReset:E.reset,topScroll:E.scroll,topSeeked:E.seeked,topSeeking:E.seeking,topStalled:E.stalled,topSubmit:E.submit,topSuspend:E.suspend,topTimeUpdate:E.timeUpdate,topTouchCancel:E.touchCancel,topTouchEnd:E.touchEnd,topTouchMove:E.touchMove,topTouchStart:E.touchStart,topVolumeChange:E.volumeChange,topWaiting:E.waiting,topWheel:E.wheel};for(var A in w)w[A].dependencies=[A];var _=b({onClick:null}),C={},S={eventTypes:E,extractEvents:function(e,t,n,r,i){var a=w[e];if(!a)return null;var m;switch(e){case x.topAbort:case x.topCanPlay:case x.topCanPlayThrough:case x.topDurationChange:case x.topEmptied:case x.topEncrypted:case x.topEnded:case x.topError:case x.topInput:case x.topLoad:case x.topLoadedData:case x.topLoadedMetadata:case x.topLoadStart:case x.topPause:case x.topPlay:case x.topPlaying:case x.topProgress:case x.topRateChange:case x.topReset:case x.topSeeked:case x.topSeeking:case x.topStalled:case x.topSubmit:case x.topSuspend:case x.topTimeUpdate:case x.topVolumeChange:case x.topWaiting:m=u;break;case x.topKeyPress:if(0===g(r))return null;case x.topKeyDown:case x.topKeyUp:m=c;break;case x.topBlur:case x.topFocus:m=l;break;case x.topClick:if(2===r.button)return null;case x.topContextMenu:case x.topDoubleClick:case x.topMouseDown:case x.topMouseMove:case x.topMouseOut:case x.topMouseOver:case x.topMouseUp:m=f;break;case x.topDrag:case x.topDragEnd:case x.topDragEnter:case x.topDragExit:case x.topDragLeave:case x.topDragOver:case x.topDragStart:case x.topDrop:m=p;break;case x.topTouchCancel:case x.topTouchEnd:case x.topTouchMove:case x.topTouchStart:m=d;break;case x.topScroll:m=h;break;case x.topWheel:m=v;break;case x.topCopy:case x.topCut:case x.topPaste:m=s}m?void 0:y(!1);var b=m.getPooled(a,n,r,i);return o.accumulateTwoPhaseDispatches(b),b},didPutListener:function(e,t,n){if(t===_){var r=a.getNode(e);C[e]||(C[e]=i.listen(r,"click",m))}},willDeleteListener:function(e,t){t===_&&(C[e].remove(),delete C[e])}};e.exports=S},function(e,t,n){"use strict";function r(e,t,n,r){i.call(this,e,t,n,r)}var i=n(76),o={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};i.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){i.call(this,e,t,n,r)}var i=n(86),o={relatedTarget:null};i.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){i.call(this,e,t,n,r)}var i=n(86),o=n(135),a=n(136),s=n(87),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?o(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?o(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};i.augmentClass(r,u),e.exports=r},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t,n){"use strict";function r(e){if(e.key){var t=o[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=i(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var i=n(135),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){i.call(this,e,t,n,r)}var i=n(85),o={dataTransfer:null};i.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){i.call(this,e,t,n,r)}var i=n(86),o=n(87),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:o};i.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){i.call(this,e,t,n,r)}var i=n(85),o={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};i.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";var r=n(22),i=r.injection.MUST_USE_ATTRIBUTE,o={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},a={Properties:{clipPath:i,cx:i,cy:i,d:i,dx:i,dy:i,fill:i,fillOpacity:i,fontFamily:i,fontSize:i,fx:i,fy:i,gradientTransform:i,gradientUnits:i,markerEnd:i,markerMid:i,markerStart:i,offset:i,opacity:i,patternContentUnits:i,patternUnits:i,points:i,preserveAspectRatio:i,r:i,rx:i,ry:i,spreadMethod:i,stopColor:i,stopOpacity:i,stroke:i,strokeDasharray:i,strokeLinecap:i,strokeOpacity:i,strokeWidth:i,textAnchor:i,transform:i,version:i,viewBox:i,x1:i,x2:i,x:i,xlinkActuate:i,xlinkArcrole:i,xlinkHref:i,xlinkRole:i,xlinkShow:i,xlinkTitle:i,xlinkType:i,xmlBase:i,xmlLang:i,xmlSpace:i,y1:i,y2:i,y:i},DOMAttributeNamespaces:{xlinkActuate:o.xlink,xlinkArcrole:o.xlink,xlinkHref:o.xlink,xlinkRole:o.xlink,xlinkShow:o.xlink,xlinkTitle:o.xlink,xlinkType:o.xlink,xmlBase:o.xml,xmlLang:o.xml,xmlSpace:o.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};e.exports=a},function(e,t){"use strict";e.exports="0.14.9"},function(e,t,n){"use strict";var r=n(27);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";var r=n(70),i=n(144),o=n(141);r.inject();var a={renderToString:i.renderToString,renderToStaticMarkup:i.renderToStaticMarkup,version:o};e.exports=a},function(e,t,n){"use strict";function r(e){a.isValidElement(e)?void 0:h(!1);var t;try{f.injection.injectBatchingStrategy(l);var n=s.createReactRootID();return t=c.getPooled(!1),t.perform(function(){var r=d(e,null),i=r.mountComponent(n,t,p);return u.addChecksumToMarkup(i)},null)}finally{c.release(t),f.injection.injectBatchingStrategy(o)}}function i(e){a.isValidElement(e)?void 0:h(!1);var t;try{f.injection.injectBatchingStrategy(l);var n=s.createReactRootID();return t=c.getPooled(!0),t.perform(function(){var r=d(e,null);return r.mountComponent(n,t,p)},null)}finally{c.release(t),f.injection.injectBatchingStrategy(o)}}var o=n(91),a=n(41),s=n(44),u=n(47),l=n(145),c=n(146),f=n(53),p=n(57),d=n(61),h=n(12);e.exports={renderToString:r,renderToStaticMarkup:i}},function(e,t){"use strict";var n={isBatchingUpdates:!1,batchedUpdates:function(e){}};e.exports=n},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=o.getPooled(null),this.useCreateElement=!1}var i=n(55),o=n(54),a=n(56),s=n(38),u=n(14),l={initialize:function(){this.reactMountReady.reset()},close:u},c=[l],f={getTransactionWrappers:function(){return c},getReactMountReady:function(){return this.reactMountReady},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};s(r.prototype,a.Mixin,f),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(109),i=n(122),o=n(121),a=n(148),s=n(41),u=(n(149),n(106)),l=n(141),c=n(38),f=n(151),p=s.createElement,d=s.createFactory,h=s.cloneElement,v={ -Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:f},Component:i,createElement:p,cloneElement:h,isValidElement:s.isValidElement,PropTypes:u,createClass:o.createClass,createFactory:d,createMixin:function(e){return e},DOM:a,version:l,__spread:c};e.exports=v},function(e,t,n){"use strict";function r(e){return i.createFactory(e)}var i=n(41),o=(n(149),n(150)),a=o({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);e.exports=a},function(e,t,n){"use strict";function r(){if(f.current){var e=f.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function i(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;o("uniqueKey",e,t)}}function o(e,t,n){var i=r();if(!i){var o="string"==typeof n?n:n.displayName||n.name;o&&(i=" Check the top-level render call using <"+o+">.")}var a=h[e]||(h[e]={});if(a[i])return null;a[i]=!0;var s={parentOrOwner:i,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==f.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n"}},function(e,t,n){var r=n(162);e.exports=r("Any",function(){return!0})},function(e,t,n){n(155),n(163),n(156),n(164);e.exports=function(e,t){function n(e,t){return e}return n.meta={kind:"irreducible",name:e,predicate:t,identity:!0},n.displayName=e,n.is=t,n}},function(e,t){e.exports=function(e){return"string"==typeof e}},function(e,t,n){var r=n(155),i=n(165);e.exports=function(e,t){r(!(e instanceof t),function(){return"Cannot use the new operator to instantiate the type "+i(t)})}},function(e,t,n){var r=n(166),i=n(160);e.exports=function(e){return r(e)?e.displayName:i(e)}},function(e,t,n){var r=n(156),i=n(167);e.exports=function(e){return r(e)&&i(e.meta)}},function(e,t,n){var r=n(157),i=n(168);e.exports=function(e){return!r(e)&&"object"==typeof e&&!i(e)}},function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):e instanceof Array}},function(e,t,n){var r=n(162),i=n(168);e.exports=r("Array",i)},function(e,t,n){var r=n(162),i=n(171);e.exports=r("Boolean",i)},function(e,t){e.exports=function(e){return e===!0||e===!1}},function(e,t,n){var r=n(162);e.exports=r("Date",function(e){return e instanceof Date})},function(e,t,n){var r=n(162);e.exports=r("Error",function(e){return e instanceof Error})},function(e,t,n){var r=n(162),i=n(156);e.exports=r("Function",i)},function(e,t,n){var r=n(162),i=n(157);e.exports=r("Nil",i)},function(e,t,n){var r=n(162),i=n(177);e.exports=r("Number",i)},function(e,t){e.exports=function(e){return"number"==typeof e&&isFinite(e)&&!isNaN(e)}},function(e,t,n){var r=n(179),i=n(176);e.exports=r(i,function(e){return e%1===0},"Integer")},function(e,t,n){function r(e,t){return"{"+l(e)+" | "+c(t)+"}"}function i(e,t,n){function i(t,n){var r=s(e,t,n);return r}var l=n||r(e,t),c=a(e);return i.meta={kind:"subtype",type:e,predicate:t,name:n,identity:c},i.displayName=l,i.is=function(n){return u(n,e)&&t(n)},i.update=function(e,t){return i(o.update(e,t))},i}var o=n(155),a=(n(180),n(156),n(164),n(181)),s=n(182),u=n(183),l=n(165),c=n(160);i.getDefaultName=r,e.exports=i},function(e,t,n){var r=n(157),i=n(163);e.exports=function(e){return r(e)||i(e)}},function(e,t,n){var r=(n(155),n(170),n(166));n(165);e.exports=function(e){return!r(e)||e.meta.identity}},function(e,t,n){var r=n(166);n(160),n(155),n(159);e.exports=function(e,t,n){return r(e)?e.meta.identity||"object"!=typeof t||null===t?e(t,n):new e(t,n):t}},function(e,t,n){var r=n(166);e.exports=function(e,t){return r(t)?t.is(e):e instanceof t}},function(e,t,n){var r=n(162),i=n(167);e.exports=r("Object",i)},function(e,t,n){var r=n(162);e.exports=r("RegExp",function(e){return e instanceof RegExp})},function(e,t,n){var r=n(162),i=n(163);e.exports=r("String",i)},function(e,t,n){var r=n(162),i=n(166);e.exports=r("Type",i)},function(e,t,n){function r(e,t){return"{[key: "+a(e)+"]: "+a(t)+"}"}function i(e,t,n){function i(n,r){if(p)return n;var i=!0,o={};for(var a in n)if(n.hasOwnProperty(a)){a=l(e,a,null);var s=n[a],u=l(t,s,null);i=i&&s===u,o[a]=u}return i&&(o=n),o}var f=n||r(e,t),p=(a(e),a(t),s(e)&&s(t));return i.meta={kind:"dict",domain:e,codomain:t,name:n,identity:p},i.displayName=f,i.is=function(n){if(!u(n))return!1;for(var r in n)if(n.hasOwnProperty(r)&&(!c(r,e)||!c(n[r],t)))return!1;return!0},i.update=function(e,t){return i(o.update(e,t))},i}var o=n(155),a=(n(180),n(156),n(165)),s=n(181),u=n(167),l=n(182),c=n(183);i.getDefaultName=r,e.exports=i},function(e,t,n){var r=(n(155),n(180),n(166),n(157),n(190)),i=n(165),o=n(191),a=1;e.exports=function(e){function t(e,t){return n(e,t)}var n;return t.define=function(i){return o(i)&&t.hasOwnProperty("dispatch")&&(i.dispatch=t.dispatch),n=i,r(t,n,!0),e&&(n.displayName=t.displayName=e,t.meta.name=e),t.meta.identity=n.meta.identity,t.prototype=n.prototype,t},t.displayName=e||i(t)+"$"+a++,t.meta={identity:!1},t.prototype=null,t}},function(e,t,n){var r=n(157);n(155);e.exports=function(e,t,n){if(r(t))return e;for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}},function(e,t,n){var r=n(166);e.exports=function(e){return r(e)&&"union"===e.meta.kind}},function(e,t,n){function r(e){return Object.keys(e).map(function(e){return o.stringify(e)}).join(" | ")}function i(e,t){function n(e,t){return e}var i=t||r(e);return n.meta={kind:"enums",map:e,name:t,identity:!0},n.displayName=i,n.is=function(t){return e.hasOwnProperty(t)},n}var o=n(155),a=(n(180),n(164),n(163));n(167);i.of=function(e,t){e=a(e)?e.split(" "):e;var n={};return e.forEach(function(e){n[e]=e}),i(n,t)},i.getDefaultName=r,e.exports=i},function(e,t,n){function r(e){return"Array<"+a(e)+">"}function i(e,t){function n(t,n){if(f)return t;for(var r=!0,i=[],o=0,a=t.length;o "+p(t)}function i(e){return s.is(e)&&l(e.instrumentation)}function o(e){for(var t=e.length,n=!1,r=t-1;r>=0;r--){var i=e[r];if(!d(i)||"maybe"!==i.meta.kind)return r+1;n=!0}return n?0:t}function a(e,t,n){function s(e,t){return i(e)?e:s.of(e)}e=u(e)?e:[e];var l=n||r(e,t),p=e.length;o(e);return s.meta={kind:"func",domain:e,codomain:t,name:n,identity:!0},s.displayName=l,s.is=function(n){return i(n)&&n.instrumentation.domain.length===p&&n.instrumentation.domain.every(function(t,n){return t===e[n]})&&n.instrumentation.codomain===t},s.of=function(n,r){function i(){var i=Array.prototype.slice.call(arguments),o=i.length;if(r&&o0?t.concat(e):t}function l(e,t){if(e.length>0){t=r(t);for(var n=0,i=e.length;n0?(t=r(t),e.reduce(function(e,t){return e.splice.apply(e,t),e},t)):t}function p(e,t){if(e.from!==e.to){t=r(t);var n=t[e.to];t[e.to]=t[e.from],t[e.from]=n}return t}function d(e,t){return e.length>0?e.concat(t):t}function h(e,t){var n=!1,i=r(t);for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],n=n||i[o]!==t[o]);return n?i:t}var v=(n(155),n(167)),m=(n(156),n(168)),g=(n(177),n(207));a.commands={$apply:s,$push:u,$remove:l,$set:c,$splice:f,$swap:p,$unshift:d,$merge:h},e.exports=a},function(e,t,n){var r=n(155),i=n(156),o=n(166),a=n(161);e.exports=function(e){for(var t,n,s,u=1,l=arguments.length;u should not have a "'+t+'" prop')},route:i.instanceOf(o),router:i.func});e.exports=a},function(e,t){"use strict";function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=Object.assign||function(e,t){for(var r,i,o=n(e),a=1;a'}}]),e}();e.exports=c},function(e,t,n){"use strict";var r=function(e,t,n,r,i,o,a,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 l=[n,r,i,o,a,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};e.exports=r},function(e,t,n){"use strict";var r=!1,i=function(){};r&&(i=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i=0&&s<=n.arrayLimit?(o=[],o[s]=i.parseObject(e,t,n)):o[a]=i.parseObject(e,t,n)}return o},i.parseKeys=function(e,t,n){if(e){var r=/^([^\[\]]*)/,o=/(\[[^\[\]]*\])/g,a=r.exec(e);if(!Object.prototype.hasOwnProperty(a[1])){var s=[];a[1]&&s.push(a[1]);for(var u=0;null!==(a=o.exec(e))&&u"}};e.exports=f},function(e,t){"use strict";var n={PUSH:"push",REPLACE:"replace",POP:"pop"};e.exports=n},function(e,t,n){"use strict";var r=n(215),i=n(232),o={length:1,back:function(){r(i,"Cannot use History.back without a DOM"),o.length-=1,window.history.back()}};e.exports=o},function(e,t){var n=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=n},function(e,t,n){"use strict";function r(e){var t={path:l.getCurrentPath(),type:e};s.forEach(function(e){e.call(l,t)})}function i(e){void 0!==e.state&&r(o.POP)}var o=n(230),a=n(231),s=[],u=!1,l={addChangeListener:function(e){s.push(e),u||(window.addEventListener?window.addEventListener("popstate",i,!1):window.attachEvent("onpopstate",i),u=!0)},removeChangeListener:function(e){s=s.filter(function(t){return t!==e}),0===s.length&&(window.addEventListener?window.removeEventListener("popstate",i,!1):window.removeEvent("onpopstate",i),u=!1)},push:function(e){window.history.pushState({path:e},"",e),a.length+=1,r(o.PUSH)},replace:function(e){window.history.replaceState({path:e},"",e),r(o.REPLACE)},pop:a.back,getCurrentPath:function(){return decodeURI(window.location.pathname+window.location.search)},toString:function(){return""}};e.exports=l},function(e,t,n){"use strict";var r=n(233),i=n(231),o={push:function(e){window.location=e},replace:function(e){window.location.replace(e)},pop:i.back,getCurrentPath:r.getCurrentPath,toString:function(){return""}};e.exports=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){a(!1,"You cannot modify a static location")}var o=function(){function e(e,t){for(var n=0;n'}}]),e}();s.prototype.push=i,s.prototype.replace=i,s.prototype.pop=i,e.exports=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n"}}]),e}();e.exports=u},function(e,t,n){"use strict";var r=n(230),i={updateScrollPosition:function(e,t){switch(t){case r.PUSH:case r.REPLACE:window.scrollTo(0,0);break;case r.POP:e?window.scrollTo(e.x,e.y):window.scrollTo(0,0)}}};e.exports=i},function(e,t){"use strict";var n={updateScrollPosition:function(){window.scrollTo(0,0)}};e.exports=n},function(e,t,n){"use strict";var r=n(212),i={contextTypes:{router:r.router.isRequired},makePath:function(e,t,n){return this.context.router.makePath(e,t,n)},makeHref:function(e,t,n){return this.context.router.makeHref(e,t,n)},transitionTo:function(e,t,n){this.context.router.transitionTo(e,t,n)},replaceWith:function(e,t,n){this.context.router.replaceWith(e,t,n)},goBack:function(){return this.context.router.goBack()}};e.exports=i},function(e,t,n){"use strict";var r=n(212),i={contextTypes:{router:r.router.isRequired},getPath:function(){return this.context.router.getCurrentPath()},getPathname:function(){return this.context.router.getCurrentPathname()},getParams:function(){return this.context.router.getCurrentParams()},getQuery:function(){return this.context.router.getCurrentQuery()},getRoutes:function(){return this.context.router.getCurrentRoutes()},isActive:function(e,t,n){return this.context.router.isActive(e,t,n)}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){e=e||"UnknownComponent";for(var r in t)if(t.hasOwnProperty(r)){var i=t[r](n,r,e);i instanceof Error&&l(!1,i.message)}}function i(e){var t=u({},e),n=t.handler;return n&&(t.onEnter=n.willTransitionTo,t.onLeave=n.willTransitionFrom),t}function o(e){if(s.isValidElement(e)){var t=e.type,n=u({},t.defaultProps,e.props);return t.propTypes&&r(t.displayName,t.propTypes,n),t===c?d.createDefaultRoute(i(n)):t===f?d.createNotFoundRoute(i(n)):t===p?d.createRedirect(i(n)):d.createRoute(i(n),function(){n.children&&a(n.children)})}}function a(e){var t=[];return s.Children.forEach(e,function(e){(e=o(e))&&t.push(e)}),t}var s=n(1),u=n(213),l=n(216),c=n(211),f=n(227),p=n(228),d=n(214);e.exports=a},function(e,t,n){"use strict";function r(e,t){for(var n in t)if(t.hasOwnProperty(n)&&e[n]!==t[n])return!1;return!0}function i(e,t,n,i,o,a){return e.some(function(e){if(e!==t)return!1;for(var s,u=t.paramNames,l=0,c=u.length;l1||n===y?(n.pop(),!0):(f(!1,"goBack() was ignored because there is no router history"),!1)},handleAbort:e.onAbort||function(e){if(n instanceof b)throw new Error("Unhandled aborted transition! Reason: "+e);e instanceof k||(e instanceof C?n.replace(I.makePath(e.to,e.params,e.query)):n.pop())},handleError:e.onError||function(e){throw e},handleLocationChange:function(e){I.dispatch(e.path,e.type)},dispatch:function(e,n){I.cancelPendingTransition();var r=l.path,o=null==n;if(r!==e||o){r&&n===h.PUSH&&I.recordScrollPosition(r);var a=I.match(e);f(null!=a,'No route matches path "%s". Make sure you have somewhere in your routes',e,e),null==a&&(a={});var s,u,c=l.routes||[],p=l.params||{},d=l.query||{},v=a.routes||[],m=a.params||{},g=a.query||{};c.length?(s=c.filter(function(e){return!i(v,e,p,m,d,g)}),u=v.filter(function(e){return!i(c,e,p,m,d,g)})):(s=[],u=v);var y=new A(e,I.replaceWith.bind(I,e));N=y;var b=t.slice(c.length-s.length);A.from(y,s,b,function(t){return t||y.abortReason?F.call(I,t,y):void A.to(y,u,m,g,function(t){F.call(I,t,y,{path:e,action:n,pathname:a.pathname,routes:v,params:m,query:g})})})}},run:function(e){p(!I.isRunning,"Router is already running"),F=function(t,n,r){t&&I.handleError(t),N===n&&(N=null,n.abortReason?I.handleAbort(n.abortReason):e.call(I,I,v=r))},n instanceof b||(n.addChangeListener&&n.addChangeListener(I.handleLocationChange),I.isRunning=!0),I.refresh()},refresh:function(){I.dispatch(n.getCurrentPath(),null)},stop:function(){I.cancelPendingTransition(),n.removeChangeListener&&n.removeChangeListener(I.handleLocationChange),I.isRunning=!1},getLocation:function(){return n},getScrollBehavior:function(){return r},getRouteAtDepth:function(e){var t=l.routes;return t&&t[e]},setRouteComponentAtDepth:function(e,n){t[e]=n},getCurrentPath:function(){return l.path},getCurrentPathname:function(){return l.pathname},getCurrentParams:function(){return l.params},getCurrentQuery:function(){return l.query},getCurrentRoutes:function(){return l.routes},isActive:function(e,t,n){return T.isAbsolute(e)?e===l.path:a(l.routes,e)&&s(l.params,t)&&(null==n||u(l.query,n))}},mixins:[x],propTypes:{children:_.falsy},childContextTypes:{routeDepth:_.number.isRequired,router:_.router.isRequired},getChildContext:function(){return{routeDepth:1,router:I}},getInitialState:function(){return l=v},componentWillReceiveProps:function(){this.setState(l=v)},componentWillUnmount:function(){I.stop()},render:function(){var e=I.getRouteAtDepth(0);return e?c.createElement(e.handler,this.props):null}});return I.clearAllRoutes(),e.routes&&I.addRoutes(e.routes),I}var c=n(1),f=n(216),p=n(215),d=n(232),h=n(230),v=n(237),m=n(229),g=n(233),y=n(234),b=n(235),x=n(243),E=n(241),w=n(245),A=n(246),_=n(212),C=n(248),S=n(231),k=n(247),D=n(249),P=n(214),O=n(250),T=n(217),M=d?m:"/",R=d?v:null;e.exports=l},function(e,t,n){"use strict";function r(e,t){if(!t)return!0;if(e.pathname===t.pathname)return!1;var n=e.routes,r=t.routes,i=n.filter(function(e){return r.indexOf(e)!==-1});return!i.some(function(e){return e.ignoreScrollBehavior})}var i=n(215),o=n(232),a=n(244),s={statics:{recordScrollPosition:function(e){this.scrollHistory||(this.scrollHistory={}),this.scrollHistory[e]=a()},getScrollPosition:function(e){return this.scrollHistory||(this.scrollHistory={}),this.scrollHistory[e]||null}},componentWillMount:function(){i(null==this.constructor.getScrollBehavior()||o,"Cannot use scroll behavior without a DOM")},componentDidMount:function(){this._updateScroll()},componentDidUpdate:function(e,t){this._updateScroll(t)},_updateScroll:function(e){if(r(this.state,e)){var t=this.constructor.getScrollBehavior();t&&t.updateScrollPosition(this.constructor.getScrollPosition(this.state.path),this.state.action)}}};e.exports=s},function(e,t,n){"use strict";function r(){return i(o,"Cannot get current scroll position without a DOM"),{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}}var i=n(215),o=n(232);e.exports=r},function(e,t,n){"use strict";function r(e){return null==e||o.isValidElement(e)}function i(e){return r(e)||Array.isArray(e)&&e.every(r)}var o=n(1);e.exports=i},function(e,t,n){"use strict";function r(e,t){this.path=e,this.abortReason=null,this.retry=t.bind(this)}var i=n(247),o=n(248);r.prototype.abort=function(e){null==this.abortReason&&(this.abortReason=e||"ABORT")},r.prototype.redirect=function(e,t,n){this.abort(new o(e,t,n))},r.prototype.cancel=function(){this.abort(new i)},r.from=function(e,t,n,r){t.reduce(function(t,r,i){return function(o){if(o||e.abortReason)t(o);else if(r.onLeave)try{r.onLeave(e,n[i],t),r.onLeave.length<3&&t()}catch(e){t(e)}else t()}},r)()},r.to=function(e,t,n,r,i){t.reduceRight(function(t,i){return function(o){if(o||e.abortReason)t(o);else if(i.onEnter)try{i.onEnter(e,n,r,t),i.onEnter.length<4&&t()}catch(e){t(e)}else t()}},i)()},e.exports=r},function(e,t){"use strict";function n(){}e.exports=n},function(e,t){"use strict";function n(e,t,n){this.to=e,this.params=t,this.query=n}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){var r=e.childRoutes;if(r)for(var o,u,l=0,c=r.length;l-1?s[u?t[l]:l]:void 0}}var i=n(254),o=n(340),a=n(321);e.exports=r},function(e,t,n){function r(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(e)?o(e[0],e[1]):i(e):u(e)}var i=n(255),o=n(349),a=n(365),s=n(317),u=n(366);e.exports=r},function(e,t,n){function r(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}var i=n(256),o=n(346),a=n(348);e.exports=r},function(e,t,n){function r(e,t,n,r){var u=n.length,l=u,c=!r;if(null==e)return!l;for(e=Object(e);u--;){var f=n[u];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++u-1}var i=n(261);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i=n(261);e.exports=r},function(e,t,n){function r(){this.__data__=new i,this.size=0}var i=n(258);e.exports=r},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.lengthp))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var v=-1,m=!0,g=n&u?new i:void 0;for(c.set(e,t),c.set(t,e);++v-1&&e%1==0&&e-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){(function(e){var r=n(278),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(t,n(328)(e))},function(e,t,n){function r(e){if(!i(e))return o(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var i=n(337),o=n(338),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t){function n(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||r;return e===n}var r=Object.prototype;e.exports=n},function(e,t,n){var r=n(339),i=r(Object.keys,Object);e.exports=i},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){function r(e){return null!=e&&o(e.length)&&!i(e)}var i=n(274),o=n(333);e.exports=r},function(e,t,n){var r=n(342),i=n(271),o=n(343),a=n(344),s=n(345),u=n(275),l=n(284),c="[object Map]",f="[object Object]",p="[object Promise]",d="[object Set]",h="[object WeakMap]",v="[object DataView]",m=l(r),g=l(i),y=l(o),b=l(a),x=l(s),E=u;(r&&E(new r(new ArrayBuffer(1)))!=v||i&&E(new i)!=c||o&&E(o.resolve())!=p||a&&E(new a)!=d||s&&E(new s)!=h)&&(E=function(e){var t=u(e),n=t==f?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case m:return v;case g:return c;case y:return p;case b:return d;case x:return h}return t}),e.exports=E},function(e,t,n){var r=n(272),i=n(277),o=r(i,"DataView");e.exports=o},function(e,t,n){var r=n(272),i=n(277),o=r(i,"Promise");e.exports=o},function(e,t,n){var r=n(272),i=n(277),o=r(i,"Set");e.exports=o},function(e,t,n){var r=n(272),i=n(277),o=r(i,"WeakMap");e.exports=o},function(e,t,n){function r(e){for(var t=o(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,i(a)]}return t}var i=n(347),o=n(321);e.exports=r},function(e,t,n){function r(e){return e===e&&!i(e)}var i=n(281);e.exports=r},function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},function(e,t,n){function r(e,t){return s(e)&&u(t)?l(c(e),t):function(n){var r=o(n,e);return void 0===r&&r===t?a(n,e):i(t,r,f|p)}}var i=n(301),o=n(350),a=n(362),s=n(353),u=n(347),l=n(348),c=n(361),f=1,p=2;e.exports=r},function(e,t,n){function r(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}var i=n(351);e.exports=r},function(e,t,n){function r(e,t){t=i(t,e);for(var n=0,r=t.length;null!=e&&n-1:!!c&&i(e,t,n)>-1}var i=n(375),o=n(340),a=n(378),s=n(371),u=n(379),l=Math.max;e.exports=r},function(e,t,n){function r(e,t,n){return t===t?a(e,t,n):i(e,o,n)}var i=n(370),o=n(376),a=n(377);e.exports=r},function(e,t){function n(e){return e!==e}e.exports=n},function(e,t){function n(e,t,n){for(var r=n-1,i=e.length;++r0&&n(c)?t>1?r(c,t-1,n,a,s):i(s,c):a||(s[s.length]=c)}return s}var i=n(316),o=n(391);e.exports=r},function(e,t,n){function r(e){return a(e)||o(e)||!!(s&&e&&e[s])}var i=n(276),o=n(324),a=n(317),s=i?i.isConcatSpreadable:void 0;e.exports=r},function(e,t,n){function r(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),u=Array(s);++a0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(399),o=r(i);t.default=o.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Props=void 0;var s,u,l,c,f=function(){function e(e,t){for(var n=0;no)return{value:e,errors:[c.of(e,t,n,r.context)]};for(var u={value:[],errors:[]},l=0;l1&&s.errors.push(c.of(e,t,n,r.context)),s},p.interface=function(e,t,n,r){if(!s.Object.is(e))return{value:e,errors:[c.of(e,t,n,r.context)]};var i={value:{},errors:[]},o=t.meta.props;for(var u in o){var l=a(e[u],o[u],n.concat(u),r);i.value[u]=l.value,i.errors=i.errors.concat(l.errors)}var f=r.hasOwnProperty("strict")?r.strict:t.meta.strict;if(f)for(var p in e)o.hasOwnProperty(p)||s.Nil.is(e[p])||i.errors.push(c.of(e[p],s.Nil,n.concat(p),r.context));return i},s.mixin(s,{ValidationError:c,ValidationResult:f,validate:o}),e.exports=s},function(e,t,n){var r,i;/*! - Copyright (c) 2016 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames - */ -!function(){"use strict";function n(){for(var e=[],t=0;t=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof r&&"env"in r&&(e=r.env.DEBUG),e}function l(){try{return window.localStorage}catch(e){}}t=e.exports=n(408),t.log=a,t.formatArgs=o,t.save=s,t.load=u,t.useColors=i,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:l(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(407))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&s())}function s(){if(!v){var e=i(a);v=!0;for(var t=h.length;t;){for(d=h,h=[];++m1)for(var n=1;n100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(e){return e>=l?Math.round(e/l)+"d":e>=u?Math.round(e/u)+"h":e>=s?Math.round(e/s)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function i(e){return o(e,l,"day")||o(e,u,"hour")||o(e,s,"minute")||o(e,a,"second")||e+" ms"}function o(e,t,n){if(!(e0)return n(e);if("number"===o&&isNaN(e)===!1)return t.long?i(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return function(t){e&&(t.prototype.template=e),t.prototype.getLocals||(t.prototype.getLocals=s),t.prototype.render=function(){return this.template(this.getLocals(this.props))}}}t.__esModule=!0,t.default=i;var o=n(154),a=(r(o),n(405)),s=(r(a),function(e){return e});e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,l,c=function(){function e(e,t){for(var n=0;nthis.props.dragToggleDistance)&&this.props.onSetOpen(!this.props.open),this.setState({touchIdentifier:null,touchStartX:null,touchStartY:null,touchCurrentX:null,touchCurrentY:null})}}},{key:"onScroll",value:function(){this.isTouching()&&this.inCancelDistanceOnScroll()&&this.setState({touchIdentifier:null,touchStartX:null,touchStartY:null,touchCurrentX:null,touchCurrentY:null})}},{key:"inCancelDistanceOnScroll",value:function(){var e=void 0;return e=this.props.pullRight?Math.abs(this.state.touchCurrentX-this.state.touchStartX)this.state.touchStartX?this.state.sidebarWidth+this.state.touchStartX-this.state.touchCurrentX:this.state.sidebarWidth:Math.min(window.innerWidth-this.state.touchCurrentX,this.state.sidebarWidth):this.props.open&&this.state.touchStartXthis.state.touchStartX?this.state.sidebarWidth:this.state.sidebarWidth-this.state.touchStartX+this.state.touchCurrentX:Math.min(this.state.touchCurrentX,this.state.sidebarWidth)}},{key:"render",value:function(){var e=s({},v.sidebar,this.props.styles.sidebar),t=s({},v.content,this.props.styles.content),n=s({},v.overlay,this.props.styles.overlay),r=this.state.dragSupported&&this.props.touch,i=this.isTouching(),o={className:this.props.rootClassName,style:s({},v.root,this.props.styles.root),role:"navigation"},a=void 0;if(this.props.pullRight?(e.right=0,e.transform="translateX(100%)",e.WebkitTransform="translateX(100%)",this.props.shadow&&(e.boxShadow="-2px 2px 4px rgba(0, 0, 0, 0.15)")):(e.left=0,e.transform="translateX(-100%)",e.WebkitTransform="translateX(-100%)",this.props.shadow&&(e.boxShadow="2px 2px 4px rgba(0, 0, 0, 0.15)")),i){var u=this.touchSidebarWidth()/this.state.sidebarWidth;this.props.pullRight?(e.transform="translateX("+100*(1-u)+"%)",e.WebkitTransform="translateX("+100*(1-u)+"%)"):(e.transform="translateX(-"+100*(1-u)+"%)",e.WebkitTransform="translateX(-"+100*(1-u)+"%)"),n.opacity=u,n.visibility="visible"}else this.props.docked?(0!==this.state.sidebarWidth&&(e.transform="translateX(0%)",e.WebkitTransform="translateX(0%)"),this.props.pullRight?t.right=this.state.sidebarWidth+"px":t.left=this.state.sidebarWidth+"px"):this.props.open&&(e.transform="translateX(0%)",e.WebkitTransform="translateX(0%)",n.opacity=1,n.visibility="visible");if(!i&&this.props.transitions||(e.transition="none",e.WebkitTransition="none",t.transition="none",n.transition="none"),r)if(this.props.open)o.onTouchStart=this.onTouchStart,o.onTouchMove=this.onTouchMove,o.onTouchEnd=this.onTouchEnd,o.onTouchCancel=this.onTouchEnd,o.onScroll=this.onScroll;else{var l=s({},v.dragHandle,this.props.styles.dragHandle);l.width=this.props.touchHandleWidth,this.props.pullRight?l.right=0:l.left=0,a=f.default.createElement("div",{style:l,onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchEnd})}return f.default.createElement("div",o,f.default.createElement("div",{className:this.props.sidebarClassName,style:e,ref:this.saveSidebarRef},this.props.sidebar),f.default.createElement("div",{className:this.props.overlayClassName,style:n,role:"presentation",tabIndex:"0",onClick:this.overlayClicked}),f.default.createElement("div",{className:this.props.contentClassName,style:t},a,this.props.children))}}]),t}(c.Component);m.propTypes={children:d.default.node.isRequired,styles:d.default.shape({root:d.default.object,sidebar:d.default.object,content:d.default.object,overlay:d.default.object,dragHandle:d.default.object}),rootClassName:d.default.string,sidebarClassName:d.default.string,contentClassName:d.default.string,overlayClassName:d.default.string,sidebar:d.default.node.isRequired,docked:d.default.bool,open:d.default.bool,transitions:d.default.bool,touch:d.default.bool,touchHandleWidth:d.default.number,pullRight:d.default.bool,shadow:d.default.bool,dragToggleDistance:d.default.number,onSetOpen:d.default.func,defaultSidebarWidth:d.default.number},m.defaultProps={docked:!1,open:!1,transitions:!0,touch:!0,touchHandleWidth:20,pullRight:!1,shadow:!0,dragToggleDistance:30,onSetOpen:function(){},styles:{},defaultSidebarWidth:0},t.default=m},function(e,t,n){e.exports=n(415)()},function(e,t,n){"use strict";var r=n(416),i=n(417),o=n(418);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,o,a,s,u){if(i(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,s,u],f=0;l=new Error(t.replace(/%s/g,function(){return c[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var i=function(e){};e.exports=r},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(420),o=r(i);t.default=o.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Props=void 0;var s,u,l,c,f=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,l,c=function(){function e(e,t){for(var n=0;n1),t}),s(e,c(e),n),l&&(n=i(n,f|p|d,u));for(var h=t.length;h--;)o(n,t[h]);return n});e.exports=h},function(e,t,n){function r(e,t,n,k,D,P){var O,R=t&A,N=t&_,I=t&C;if(n&&(O=D?n(e,k,D,P):n(e)),void 0!==O)return O;if(!E(e))return e;var L=b(e);if(L){if(O=m(e),!R)return c(e,O)}else{var j=v(e),B=j==T||j==M;if(x(e))return l(e,R);if(j==F||j==S||B&&!D){if(O=N||B?{}:y(e),!R)return N?p(e,u(O,e)):f(e,s(O,e))}else{if(!Q[j])return D?e:{};O=g(e,j,r,R)}}P||(P=new i);var U=P.get(e);if(U)return U;P.set(e,O);var V=I?N?h:d:N?keysIn:w,W=L?void 0:V(e);return o(W||e,function(i,o){W&&(o=i,i=e[o]),a(O,o,r(i,t,n,o,e,P))}),O}var i=n(257),o=n(428),a=n(385),s=n(429),u=n(431),l=n(435),c=n(436),f=n(437),p=n(438),d=n(314),h=n(441),v=n(341),m=n(442),g=n(443),y=n(454),b=n(317),x=n(327),E=n(281),w=n(321),A=1,_=2,C=4,S="[object Arguments]",k="[object Array]",D="[object Boolean]",P="[object Date]",O="[object Error]",T="[object Function]",M="[object GeneratorFunction]",R="[object Map]",N="[object Number]",F="[object Object]",I="[object RegExp]",L="[object Set]",j="[object String]",B="[object Symbol]",U="[object WeakMap]",V="[object ArrayBuffer]",W="[object DataView]",q="[object Float32Array]",H="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",Y="[object Int32Array]",K="[object Uint8Array]",X="[object Uint8ClampedArray]",$="[object Uint16Array]",J="[object Uint32Array]",Q={};Q[S]=Q[k]=Q[V]=Q[W]=Q[D]=Q[P]=Q[q]=Q[H]=Q[G]=Q[z]=Q[Y]=Q[R]=Q[N]=Q[F]=Q[I]=Q[L]=Q[j]=Q[B]=Q[K]=Q[X]=Q[$]=Q[J]=!0,Q[O]=Q[T]=Q[U]=!1,e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r0},"PositiveInteger"),w=t.Props={icon:y.t.maybe(y.t.Str),color:y.t.maybe(y.t.String),className:y.t.maybe(y.t.Str),style:y.t.maybe(y.t.Obj),paths:y.t.maybe(E),onClick:y.t.maybe(y.t.Func)},A=(s=(0,y.skinnable)(),u=(0,y.props)(w),(0,y.pure)(l=s(l=u((f=c=function(e){function t(){return i(this,t),o(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),d(t,[{key:"getLocals",value:function(){return p({},this.props)}},{key:"template",value:function(e){var t=e.icon,n=e.color,r=e.className,i=e.style,o=void 0===i?{}:i,a=e.onClick,s=e.paths;return t?v.default.createElement("i",{className:(0,x.default)("icon","icon-"+t,r),style:p({},o,{color:n||o.color}),onClick:a},s>1&&(0,g.default)(s).map(function(e){return v.default.createElement("span",{className:"path"+(e+1),key:e})})):null}}]),t}(v.default.Component),c.defaultProps={paths:1,onClick:function(){}},l=f))||l)||l)||l);t.default=A},function(e,t,n){var r=n(464),i=r();e.exports=i},function(e,t,n){function r(e){return function(t,n,r){return r&&"number"!=typeof r&&o(t,n,r)&&(n=r=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),r=void 0===r?t=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function l(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function c(e,t){var n=0;return o(y,t)?y[t]:35===t.charCodeAt(0)&&g.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),u(n))?l(n):e}function f(e){return e.indexOf("&")<0?e:e.replace(m,c)}function p(e){return E[e]}function d(e){return b.test(e)?e.replace(x,p):e}var h=Object.prototype.hasOwnProperty,v=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,m=/&([a-z#][a-z0-9]{1,31});/gi,g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,y=n(472),b=/[&<>"]/,x=/[&<>"]/g,E={"&":"&","<":"<",">":">",'"':"""};t.assign=a,t.isString=i,t.has=o,t.unescapeMd=s,t.isValidEntityCode=u,t.fromCodePoint=l,t.replaceEntities=f,t.escapeHtml=d},function(e,t){"use strict";e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄", -nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e,t,n){"use strict";function r(){this.rules=i.assign({},o),this.getBreak=o.getBreak}var i=n(471),o=n(474);e.exports=r,r.prototype.renderInline=function(e,t,n){for(var r=this.rules,i=e.length,o=0,a="";i--;)a+=r[e[o].type](e,o++,t,n,this);return a},r.prototype.render=function(e,t,n){for(var r=this.rules,i=e.length,o=-1,a="";++o=e.length-2?t:"paragraph_open"===e[t].type&&e[t].tight&&"inline"===e[t+1].type&&0===e[t+1].content.length&&"paragraph_close"===e[t+2].type&&e[t+2].tight?r(e,t+2):t}var i=n(471).has,o=n(471).unescapeMd,a=n(471).replaceEntities,s=n(471).escapeHtml,u={};u.blockquote_open=function(){return"
\n"},u.blockquote_close=function(e,t){return"
"+l(e,t)},u.code=function(e,t){return e[t].block?"
"+s(e[t].content)+"
"+l(e,t):""+s(e[t].content)+""},u.fence=function(e,t,n,r,u){var c,f,p,d=e[t],h="",v=n.langPrefix,m="";if(d.params){if(c=d.params.split(/\s+/g),f=c.join(" "),i(u.rules.fence_custom,c[0]))return u.rules.fence_custom[c[0]](e,t,n,r,u);m=s(a(o(f))),h=' class="'+v+m+'"'}return p=n.highlight?n.highlight.apply(n.highlight,[d.content].concat(c))||s(d.content):s(d.content),"
"+p+"
"+l(e,t)},u.fence_custom={},u.heading_open=function(e,t){return""},u.heading_close=function(e,t){return"\n"},u.hr=function(e,t,n){return(n.xhtmlOut?"
":"
")+l(e,t)},u.bullet_list_open=function(){return"
    \n"},u.bullet_list_close=function(e,t){return"
"+l(e,t)},u.list_item_open=function(){return"
  • "},u.list_item_close=function(){return"
  • \n"},u.ordered_list_open=function(e,t){var n=e[t],r=n.order>1?' start="'+n.order+'"':"";return"\n"},u.ordered_list_close=function(e,t){return""+l(e,t)},u.paragraph_open=function(e,t){return e[t].tight?"":"

    "},u.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&"inline"===e[t-1].type&&!e[t-1].content);return(e[t].tight?"":"

    ")+(n?l(e,t):"")},u.link_open=function(e,t,n){var r=e[t].title?' title="'+s(a(e[t].title))+'"':"",i=n.linkTarget?' target="'+n.linkTarget+'"':"";return'"},u.link_close=function(){return""},u.image=function(e,t,n){var r=' src="'+s(e[t].src)+'"',i=e[t].title?' title="'+s(a(e[t].title))+'"':"",u=' alt="'+(e[t].alt?s(a(o(e[t].alt))):"")+'"',l=n.xhtmlOut?" /":"";return""},u.table_open=function(){return"\n"},u.table_close=function(){return"
    \n"},u.thead_open=function(){return"\n"},u.thead_close=function(){return"\n"},u.tbody_open=function(){return"\n"},u.tbody_close=function(){return"\n"},u.tr_open=function(){return""},u.tr_close=function(){return"\n"},u.th_open=function(e,t){var n=e[t];return""},u.th_close=function(){return""},u.td_open=function(e,t){var n=e[t];return""},u.td_close=function(){return""},u.strong_open=function(){return""},u.strong_close=function(){return""},u.em_open=function(){return""},u.em_close=function(){return""},u.del_open=function(){return""},u.del_close=function(){return""},u.ins_open=function(){return""},u.ins_close=function(){return""},u.mark_open=function(){return""},u.mark_close=function(){return""},u.sub=function(e,t){return""+s(e[t].content)+""},u.sup=function(e,t){return""+s(e[t].content)+""},u.hardbreak=function(e,t,n){return n.xhtmlOut?"
    \n":"
    \n"},u.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
    \n":"
    \n":"\n"},u.text=function(e,t){return s(e[t].content)},u.htmlblock=function(e,t){return e[t].content},u.htmltag=function(e,t){return e[t].content},u.abbr_open=function(e,t){return''},u.abbr_close=function(){return""},u.footnote_ref=function(e,t){var n=Number(e[t].id+1).toString(),r="fnref"+n;return e[t].subId>0&&(r+=":"+e[t].subId),'['+n+"]"},u.footnote_block_open=function(e,t,n){var r=n.xhtmlOut?'
    \n':'
    \n';return r+'
    \n
      \n'},u.footnote_block_close=function(){return"
    \n
    \n"},u.footnote_open=function(e,t){var n=Number(e[t].id+1).toString();return'
  • '},u.footnote_close=function(){return"
  • \n"},u.footnote_anchor=function(e,t){var n=Number(e[t].id+1).toString(),r="fnref"+n;return e[t].subId>0&&(r+=":"+e[t].subId),' '},u.dl_open=function(){return"
    \n"},u.dt_open=function(){return"
    "},u.dd_open=function(){return"
    "},u.dl_close=function(){return"
    \n"},u.dt_close=function(){return"\n"},u.dd_close=function(){return"\n"};var l=u.getBreak=function(e,t){return t=r(e,t),t8&&n<14);)if(92===n&&t+11))break;if(41===n&&(o--,o<0))break;t++}return s!==t&&(a=i(e.src.slice(s,t)),!!e.parser.validateLink(a)&&(e.linkContent=a,e.pos=t,!0))}},function(e,t,n){"use strict";var r=n(471).replaceEntities;e.exports=function(e){var t=r(e);try{t=decodeURI(t)}catch(e){}return encodeURI(t)}},function(e,t,n){"use strict";var r=n(471).unescapeMd;e.exports=function(e,t){var n,i=t,o=e.posMax,a=e.src.charCodeAt(t);if(34!==a&&39!==a&&40!==a)return!1;for(t++,40===a&&(a=41);t0?a[t].count:1,r=0;r=0;t--)if(s=a[t],"text"===s.type){for(c=0,u=s.content,p.lastIndex=0,f=s.level,l=[];d=p.exec(u);)p.lastIndex>c&&l.push({type:"text",content:u.slice(c,d.index+d[1].length),level:f}),l.push({type:"abbr_open",title:e.env.abbreviations[":"+d[2]],level:f++}),l.push({type:"text",content:d[2],level:f}),l.push({type:"abbr_close",level:--f}),c=p.lastIndex-d[3].length;l.length&&(c=0;s--)if("inline"===e.tokens[s].type)for(a=e.tokens[s].children,t=a.length-1;t>=0;t--)i=a[t],"text"===i.type&&(o=i.content,o=n(o),r.test(o)&&(o=o.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),i.content=o)}},function(e,t){"use strict";function n(e,t){return!(t<0||t>=e.length)&&!a.test(e[t])}function r(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var i=/['"]/,o=/['"]/g,a=/[-\s()\[\]]/,s="’";e.exports=function(e){var t,a,u,l,c,f,p,d,h,v,m,g,y,b,x,E,w;if(e.options.typographer)for(w=[],x=e.tokens.length-1;x>=0;x--)if("inline"===e.tokens[x].type)for(E=e.tokens[x].children,w.length=0,t=0;t=0&&!(w[y].level<=p);y--);w.length=y+1,u=a.content,c=0,f=u.length;e:for(;c=0&&(v=w[y],!(w[y].level\s]/i.test(e)}function i(e){return/^<\/a\s*>/i.test(e)}function o(){var e=[],t=new a({stripPrefix:!1,url:!0,email:!0,twitter:!1,replaceFn:function(t,n){switch(n.getType()){case"url":e.push({text:n.matchedText,url:n.getUrl()});break;case"email":e.push({text:n.matchedText,url:"mailto:"+n.getEmail().replace(/^mailto:/i,"")})}return!1}});return{links:e,autolinker:t}}var a=n(492),s=/www|@|\:\/\//;e.exports=function(e){var t,n,a,u,l,c,f,p,d,h,v,m,g,y=e.tokens,b=null;if(e.options.linkify)for(n=0,a=y.length;n=0;t--)if(l=u[t],"link_close"!==l.type){if("htmltag"===l.type&&(r(l.content)&&v>0&&v--,i(l.content)&&v++),!(v>0)&&"text"===l.type&&s.test(l.content)){if(b||(b=o(),m=b.links,g=b.autolinker),c=l.content,m.length=0,g.link(c),!m.length)continue;for(f=[],h=l.level,p=0;p - * MIT Licensed. http://www.opensource.org/licenses/mit-license.php - * - * https://github.com/gregjacobs/Autolinker.js - */ -var e=function(t){e.Util.assign(this,t)};return e.prototype={constructor:e,urls:!0,email:!0,twitter:!0,newWindow:!0,stripPrefix:!0,truncate:void 0,className:"",htmlParser:void 0,matchParser:void 0,tagBuilder:void 0,link:function(e){for(var t=this.getHtmlParser(),n=t.parse(e),r=0,i=[],o=0,a=n.length;ot&&(n=null==n?"..":n,e=e.substring(0,t-n.length)+n),e},indexOf:function(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n",this.getInnerHtml(),""].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")}}),e.AnchorTagBuilder=e.Util.extend(Object,{constructor:function(t){e.Util.assign(this,t)},build:function(t){var n=new e.HtmlTag({tagName:"a",attrs:this.createAttrs(t.getType(),t.getAnchorHref()),innerHtml:this.processAnchorText(t.getAnchorText())});return n},createAttrs:function(e,t){var n={href:t},r=this.createCssClass(e);return r&&(n.class=r),this.newWindow&&(n.target="_blank"),n},createCssClass:function(e){var t=this.className;return t?t+" "+t+"-"+e:""},processAnchorText:function(e){return e=this.doTruncate(e)},doTruncate:function(t){return e.Util.ellipsis(t,this.truncate||Number.POSITIVE_INFINITY)}}),e.htmlParser.HtmlParser=e.Util.extend(Object,{htmlRegex:function(){var e=/[0-9a-zA-Z][0-9a-zA-Z:]*/,t=/[^\s\0"'>\/=\x01-\x1F\x7F]+/,n=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,r=t.source+"(?:\\s*=\\s*"+n.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",r,"|",n.source+")",")*",">",")","|","(?:","<(/)?","("+e.source+")","(?:","\\s+",r,")*","\\s*/?",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(e){for(var t,n,r=this.htmlRegex,i=0,o=[];null!==(t=r.exec(e));){var a=t[0],s=t[1]||t[3],u=!!t[2],l=e.substring(i,t.index);l&&(n=this.parseTextAndEntityNodes(l),o.push.apply(o,n)),o.push(this.createElementNode(a,s,u)),i=t.index+a.length}if(i=n))&&!(e.tShift[s]=0&&(e=e.replace(s,function(t,n){var r;return 10===e.charCodeAt(n)?(a=n+1,c=0,t):(r=" ".slice((n-a-c)%4),c=n-a+1,r)})),i=new o(e,this,t,n,r),void this.tokenize(i,i.line,i.lineMax)):[]},e.exports=r},function(e,t){"use strict";function n(e,t,n,r,i){var o,a,s,u,l,c,f;for(this.src=e,this.parser=t,this.options=n,this.env=r,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",a=this.src,c=0,f=!1,s=u=c=0,l=a.length;u=this.eMarks[e]},n.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},n.prototype.getLines=function(e,t,n,r){var i,o,a,s,u,l=e;if(e>=t)return"";if(l+1===t)return o=this.bMarks[l]+Math.min(this.tShift[l],n),a=r?this.eMarks[l]+1:this.eMarks[l],this.src.slice(o,a);for(s=new Array(t-e),i=0;ln&&(u=n),u<0&&(u=0),o=this.bMarks[l]+u,a=l+1=4))break;r++,i=r}return e.line=r,e.tokens.push({type:"code",content:e.getLines(t,i,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}},function(e,t){"use strict";e.exports=function(e,t,n,r){var i,o,a,s,u,l=!1,c=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(c+3>f)return!1;if(i=e.src.charCodeAt(c),126!==i&&96!==i)return!1;if(u=c,c=e.skipChars(c,i),o=c-u,o<3)return!1;if(a=e.src.slice(c,f).trim(),a.indexOf("`")>=0)return!1;if(r)return!0;for(s=t;(s++,!(s>=n))&&(c=u=e.bMarks[s]+e.tShift[s],f=e.eMarks[s],!(c=4||(c=e.skipChars(c,i),c-um)return!1;if(62!==e.src.charCodeAt(v++))return!1;if(e.level>=e.options.maxNesting)return!1;if(r)return!0;for(32===e.src.charCodeAt(v)&&v++,u=e.blkIndent,e.blkIndent=0,s=[e.bMarks[t]],e.bMarks[t]=v,v=v=m,a=[e.tShift[t]],e.tShift[t]=v-e.bMarks[t],f=e.parser.ruler.getRules("blockquote"),i=t+1;i=m));i++)if(62!==e.src.charCodeAt(v++)){if(o)break;for(h=!1,p=0,d=f.length;p=m,a.push(e.tShift[i]),e.tShift[i]=v-e.bMarks[i];for(l=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:c=[t,0],level:e.level++}),e.parser.tokenize(e,t,i),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=l,c[1]=e.line,p=0;pu)return!1;if(i=e.src.charCodeAt(s++),42!==i&&45!==i&&95!==i)return!1;for(o=1;s=i?-1:(n=e.src.charCodeAt(r++),42!==n&&45!==n&&43!==n?-1:r=i)return-1;if(n=e.src.charCodeAt(r++),n<48||n>57)return-1;for(;;){if(r>=i)return-1;if(n=e.src.charCodeAt(r++),!(n>=48&&n<=57)){if(41===n||46===n)break;return-1}}return r=0)b=!0;else{if(!((h=n(e,t))>=0))return!1;b=!1}if(e.level>=e.options.maxNesting)return!1;if(y=e.src.charCodeAt(h-1),a)return!0;for(E=e.tokens.length,b?(d=e.bMarks[t]+e.tShift[t],g=Number(e.src.substr(d,h-d-1)),e.tokens.push({type:"ordered_list_open",order:g,lines:A=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:A=[t,0],level:e.level++}),s=t,w=!1,C=e.parser.ruler.getRules("list");!(!(s=v?1:x-h,m>4&&(m=1),m<1&&(m=1),u=h-e.bMarks[s]+m,e.tokens.push({type:"list_item_open",lines:_=[t,0],level:e.level++}),c=e.blkIndent,f=e.tight,l=e.tShift[t],p=e.parentType,e.tShift[t]=x-e.bMarks[t],e.blkIndent=u,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,o,!0),e.tight&&!w||(P=!1),w=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=c,e.tShift[t]=l,e.tight=f,e.parentType=p,e.tokens.push({type:"list_item_close",level:--e.level}),s=t=e.line,_[1]=s,x=e.bMarks[t],s>=o)||e.isEmpty(s)||e.tShift[s]c)return!1;if(91!==e.src.charCodeAt(l))return!1;if(94!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(s=l+2;s=c||58!==e.src.charCodeAt(++s))&&(!!r||(s++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),u=e.src.slice(l+2,s-2),e.env.footnotes.refs[":"+u]=-1,e.tokens.push({type:"footnote_reference_open",label:u,level:e.level++}),i=e.bMarks[t],o=e.tShift[t],a=e.parentType,e.tShift[t]=e.skipSpaces(s)-s,e.bMarks[t]=s,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]=u)return!1;if(i=e.src.charCodeAt(s),35!==i||s>=u)return!1;for(o=1,i=e.src.charCodeAt(++s);35===i&&s6||ss&&32===e.src.charCodeAt(a-1)&&(u=a),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:o,lines:[t,e.line],level:e.level}),s=n)&&(!(e.tShift[a]3)&&(i=e.bMarks[a]+e.tShift[a],o=e.eMarks[a],!(i>=o)&&(r=e.src.charCodeAt(i),(45===r||61===r)&&(i=e.skipChars(i,r),i=e.skipSpaces(i),!(i=97&&t<=122}var i=n(504),o=/^<([a-zA-Z]{1,15})[\s\/>]/,a=/^<\/([a-zA-Z]{1,15})[\s>]/;e.exports=function(e,t,n,s){var u,l,c,f=e.bMarks[t],p=e.eMarks[t],d=e.tShift[t];if(f+=d,!e.options.html)return!1;if(d>3||f+2>=p)return!1;if(60!==e.src.charCodeAt(f))return!1;if(u=e.src.charCodeAt(f+1),33===u||63===u){if(s)return!0}else{if(47!==u&&!r(u))return!1;if(47===u){if(l=e.src.slice(f,p).match(a),!l)return!1}else if(l=e.src.slice(f,p).match(o),!l)return!1;if(i[l[1].toLowerCase()]!==!0)return!1;if(s)return!0}for(c=t+1;cr)return!1;if(l=t+1,e.tShift[l]=e.eMarks[l])return!1;if(o=e.src.charCodeAt(s),124!==o&&45!==o&&58!==o)return!1;if(a=n(e,t+1),!/^[-:| ]+$/.test(a))return!1;if(c=a.split("|"),c<=2)return!1;for(p=[],u=0;u=o?-1:(r=e.src.charCodeAt(i++),126!==r&&58!==r?-1:(n=e.skipSpaces(i),i===n?-1:n>=o?-1:n))}function r(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n=0;if(p=t+1,e.isEmpty(p)&&++p>i)return!1;if(e.tShift[p]=e.options.maxNesting)return!1;f=e.tokens.length,e.tokens.push({type:"dl_open",lines:c=[t,0],level:e.level++}),u=t,s=p;e:for(;;){for(b=!0,y=!1,e.tokens.push({type:"dt_open",lines:[u,u],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(u,u+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[u,u],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:l=[p,0],level:e.level++}),g=e.tight,h=e.ddIndent,d=e.blkIndent,m=e.tShift[s],v=e.parentType,e.blkIndent=e.ddIndent=e.tShift[s]+2,e.tShift[s]=a-e.bMarks[s],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,s,i,!0),e.tight&&!y||(b=!1),y=e.line-s>1&&e.isEmpty(e.line-1),e.tShift[s]=m,e.tight=g,e.parentType=v,e.blkIndent=d,e.ddIndent=h,e.tokens.push({type:"dd_close",level:--e.level}),l[1]=p=e.line,p>=i)break e;if(e.tShift[p]=i)break;if(u=p,e.isEmpty(u))break;if(e.tShift[u]=i)break;if(e.isEmpty(s)&&s++,s>=i)break;if(e.tShift[s]3)){for(i=!1,o=0,a=s.length;o0)return void(e.pos=n);for(t=0;t=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},r.prototype.parse=function(e,t,n,r){var i=new a(e,this,t,n,r);this.tokenize(i)},e.exports=r},function(e,t){"use strict";function n(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}e.exports=function(e,t){for(var r=e.pos;r=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(var o=n-2;o>=0;o--)if(32!==e.pending.charCodeAt(o)){e.pending=e.pending.substring(0,o+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(i++;i?@[]^_`{|}~-".split("").forEach(function(e){n[e.charCodeAt(0)]=1}),e.exports=function(e,t){var r,i=e.pos,o=e.posMax;if(92!==e.src.charCodeAt(i))return!1;if(i++,i=s)return!1;if(126!==e.src.charCodeAt(u+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(o=u>0?e.src.charCodeAt(u-1):-1,a=e.src.charCodeAt(u+2),126===o)return!1;if(126===a)return!1;if(32===a||10===a)return!1;for(r=u+2;ru+3)return e.pos+=r-u,t||(e.pending+=e.src.slice(u,r)),!0;for(e.pos=u+2,i=1;e.pos+1=s)return!1;if(43!==e.src.charCodeAt(u+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(o=u>0?e.src.charCodeAt(u-1):-1, -a=e.src.charCodeAt(u+2),43===o)return!1;if(43===a)return!1;if(32===a||10===a)return!1;for(r=u+2;r=s)return!1;if(61!==e.src.charCodeAt(u+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(o=u>0?e.src.charCodeAt(u-1):-1,a=e.src.charCodeAt(u+2),61===o)return!1;if(61===a)return!1;if(32===a||10===a)return!1;for(r=u+2;r=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function r(e,t){var r,i,o,a=t,s=!0,u=!0,l=e.posMax,c=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;a=l&&(s=!1),o=a-t,o>=4?s=u=!1:(i=a=e.options.maxNesting)return!1;for(e.pos=f+n,u=[n];e.pos?@[\]^_`{|}~-])/g;e.exports=function(e,t){var r,i,o=e.posMax,a=e.pos;if(126!==e.src.charCodeAt(a))return!1;if(t)return!1;if(a+2>=o)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=a+1;e.pos?@[\]^_`{|}~-])/g;e.exports=function(e,t){var r,i,o=e.posMax,a=e.pos;if(94!==e.src.charCodeAt(a))return!1;if(t)return!1;if(a+2>=o)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=a+1;e.pos=e.options.maxNesting)return!1;if(n=g+1,s=r(e,g),s<0)return!1;if(f=s+1,f=m)return!1;for(g=f,i(e,f)?(l=e.linkContent,f=e.pos):l="",g=f;f=m||41!==e.src.charCodeAt(f))return e.pos=v,!1;f++}else{if(e.linkLevel>0)return!1;for(;f=0?u=e.src.slice(g,f++):f=g-1),u||("undefined"==typeof u&&(f=s+1),u=e.src.slice(n,s)),p=e.env.references[a(u)],!p)return e.pos=v,!1;l=p.href,c=p.title}return t||(e.pos=n,e.posMax=s,h?e.push({type:"image",src:l,title:c,alt:e.src.substr(n,s-n),level:e.level}):(e.push({type:"link_open",href:l,title:c,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=f,e.posMax=m,!0}},function(e,t,n){"use strict";var r=n(480);e.exports=function(e,t){var n,i,o,a,s=e.posMax,u=e.pos;return!(u+2>=s)&&(94===e.src.charCodeAt(u)&&(91===e.src.charCodeAt(u+1)&&(!(e.level>=e.options.maxNesting)&&(n=u+2,i=r(e,u+1),!(i<0)&&(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=n,e.posMax=i,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,a=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(a)},e.linkLevel--),e.pos=i+1,e.posMax=s,!0)))))}},function(e,t){"use strict";e.exports=function(e,t){var n,r,i,o,a=e.posMax,s=e.pos;if(s+3>a)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(s))return!1;if(94!==e.src.charCodeAt(s+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(r=s+2;r=a)&&(r++,n=e.src.slice(s+2,r-1),"undefined"!=typeof e.env.footnotes.refs[":"+n]&&(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(i=e.env.footnotes.list.length,e.env.footnotes.list[i]={label:n,count:0},e.env.footnotes.refs[":"+n]=i):i=e.env.footnotes.refs[":"+n],o=e.env.footnotes.list[i].count,e.env.footnotes.list[i].count++,e.push({type:"footnote_ref",id:i,subId:o,level:e.level})),e.pos=r,e.posMax=a,!0)))}},function(e,t,n){"use strict";var r=n(523),i=n(483),o=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,a=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,s,u,l,c,f=e.pos;return 60===e.src.charCodeAt(f)&&(n=e.src.slice(f),!(n.indexOf(">")<0)&&((s=n.match(a))?!(r.indexOf(s[1].toLowerCase())<0)&&(l=s[0].slice(1,-1),c=i(l),!!e.parser.validateLink(l)&&(t||(e.push({type:"link_open",href:c,level:e.level}),e.push({type:"text",content:l,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=s[0].length,!0)):(u=n.match(o),!!u&&(l=u[0].slice(1,-1),c=i("mailto:"+l),!!e.parser.validateLink(c)&&(t||(e.push({type:"link_open",href:c,level:e.level}),e.push({type:"text",content:l,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=u[0].length,!0)))))}},function(e,t){"use strict";e.exports=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"]},function(e,t,n){"use strict";function r(e){var t=32|e;return t>=97&&t<=122}var i=n(525).HTML_TAG_RE;e.exports=function(e,t){var n,o,a,s=e.pos;return!!e.options.html&&(a=e.posMax,!(60!==e.src.charCodeAt(s)||s+2>=a)&&(n=e.src.charCodeAt(s+1),!(33!==n&&63!==n&&47!==n&&!r(n))&&(!!(o=e.src.slice(s).match(i))&&(t||e.push({type:"htmltag",content:e.src.slice(s,s+o[0].length),level:e.level}),e.pos+=o[0].length,!0))))}},function(e,t){"use strict";function n(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=i.source||i,e=e.replace(r,i),n):new RegExp(e,t)}}var r=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,i=/[^"'=<>`\x00-\x20]+/,o=/'[^']*'/,a=/"[^"]*"/,s=n(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",i)("single_quoted",o)("double_quoted",a)(),u=n(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",r)("attr_value",s)(),l=n(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",u)(),c=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,f=//,p=/<[?].*?[?]>/,d=/]*>/,h=/])*\]\]>/,v=n(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",l)("close_tag",c)("comment",f)("processing",p)("declaration",d)("cdata",h)();e.exports.HTML_TAG_RE=v},function(e,t,n){"use strict";var r=n(472),i=n(471).has,o=n(471).isValidEntityCode,a=n(471).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,u=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,l,c,f=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(f))return!1;if(f+1i;)K(e,n=r[i++],t[n]);return e},$=function(e,t){return void 0===t?A(e):X(A(e),t)},J=function(e){var t=L.call(this,e=E(e,!0));return!(this===V&&i(B,e)&&!i(U,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,F)&&this[F][e])||t)},Q=function(e,t){if(e=x(e),t=E(t,!0),e!==V||!i(B,t)||i(U,t)){var n=D(e,t);return!n||!i(B,t)||i(e,F)&&e[F][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=O(x(e)),r=[],o=0;n.length>o;)i(B,t=n[o++])||t==F||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===V,r=O(n?U:x(e)),o=[],a=0;r.length>a;)!i(B,t=r[a++])||n&&!i(V,t)||o.push(B[t]);return o};W||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===V&&t.call(U,n),i(this,F)&&i(this[F],e)&&(this[F][e]=!1),G(this,e,w(1,n))};return o&&H&&G(V,e,{configurable:!0,set:t}),z(e)},s(T[N],"toString",function(){return this._k}),C.f=Q,S.f=K,n(585).f=_.f=Z,n(579).f=J,n(578).f=ee,o&&!n(563)&&s(V,"propertyIsEnumerable",J,!0),h.f=function(e){return z(d(e))}),a(a.G+a.W+a.F*!W,{Symbol:T});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var te=k(d.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=T(e)},keyFor:function(e){if(Y(e))return m(j,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!W,"Object",{create:$,defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),M&&a(a.S+a.F*(!W||l(function(){var e=T();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!Y(e)){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);return t=r[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,R.apply(M,r)}}}),T[N][I]||n(545)(T[N],I,T[N].valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},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={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=!n(542)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(539),i=n(544),o=n(545),a=n(553),s=n(555),u="prototype",l=function(e,t,n){var c,f,p,d,h=e&l.F,v=e&l.G,m=e&l.S,g=e&l.P,y=e&l.B,b=v?r:m?r[t]||(r[t]={}):(r[t]||{})[u],x=v?i:i[t]||(i[t]={}),E=x[u]||(x[u]={});v&&(n=t);for(c in n)f=!h&&b&&void 0!==b[c],p=(f?b:n)[c],d=y&&f?s(p,r):g&&"function"==typeof p?s(Function.call,p):p,b&&a(b,c,p,e&l.U),x[c]!=p&&o(x,c,d),g&&E[c]!=p&&(E[c]=p)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(546),i=n(552);e.exports=n(541)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(547),i=n(549),o=n(551),a=Object.defineProperty;t.f=n(541)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(548);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(541)&&!n(542)(function(){return 7!=Object.defineProperty(n(550)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(548),i=n(539).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(548);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(539),i=n(545),o=n(540),a=n(554)("src"),s="toString",u=Function[s],l=(""+u).split(s);n(544).inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(556);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(554)("meta"),i=n(548),o=n(540),a=n(546).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(542)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},p=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},d=function(e){return l&&h.NEED&&u(e)&&!o(e,r)&&c(e), -e},h=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(e,t,n){var r=n(539),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(546).f,i=n(540),o=n(560)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(558)("wks"),i=n(554),o=n(539).Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},function(e,t,n){t.f=n(560)},function(e,t,n){var r=n(539),i=n(544),o=n(563),a=n(561),s=n(546).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){e.exports=!1},function(e,t,n){var r=n(565),i=n(567);e.exports=function(e,t){for(var n,o=i(e),a=r(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===t)return n}},function(e,t,n){var r=n(566),i=n(576);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(540),i=n(567),o=n(571)(!1),a=n(575)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var r=n(568),i=n(570);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(569);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(567),i=n(572),o=n(574);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(573),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(573),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(558)("keys"),i=n(554);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(565),i=n(578),o=n(579);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(569);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(547),i=n(582),o=n(576),a=n(575)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(550)("iframe"),r=o.length,i="<",a=">";for(t.style.display="none",n(583).appendChild(t),t.src="/service/javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;r--;)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(546),i=n(547),o=n(565);e.exports=n(541)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){e.exports=n(539).document&&document.documentElement},function(e,t,n){var r=n(567),i=n(585).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t,n){var r=n(566),i=n(576).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(579),i=n(552),o=n(567),a=n(551),s=n(540),u=n(549),l=Object.getOwnPropertyDescriptor;t.f=n(541)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(543);r(r.S,"Object",{create:n(581)})},function(e,t,n){var r=n(543);r(r.S+r.F*!n(541),"Object",{defineProperty:n(546).f})},function(e,t,n){var r=n(543);r(r.S+r.F*!n(541),"Object",{defineProperties:n(582)})},function(e,t,n){var r=n(567),i=n(586).f;n(591)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){var r=n(543),i=n(544),o=n(542);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(593),i=n(594);n(591)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(570);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(540),i=n(593),o=n(575)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(593),i=n(565);n(591)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(591)("getOwnPropertyNames",function(){return n(584).f})},function(e,t,n){var r=n(548),i=n(557).onFreeze;n(591)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(548),i=n(557).onFreeze;n(591)("seal",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(548),i=n(557).onFreeze;n(591)("preventExtensions",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(548);n(591)("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(548);n(591)("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(548);n(591)("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},function(e,t,n){var r=n(543);r(r.S+r.F,"Object",{assign:n(604)})},function(e,t,n){"use strict";var r=n(565),i=n(578),o=n(579),a=n(593),s=n(568),u=Object.assign;e.exports=!u||n(542)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,l=1,c=i.f,f=o.f;u>l;)for(var p,d=s(arguments[l++]),h=c?r(d).concat(c(d)):r(d),v=h.length,m=0;v>m;)f.call(d,p=h[m++])&&(n[p]=d[p]);return n}:u},function(e,t,n){var r=n(543);r(r.S,"Object",{is:n(606)})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},function(e,t,n){var r=n(543);r(r.S,"Object",{setPrototypeOf:n(608).set})},function(e,t,n){var r=n(548),i=n(547),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(555)(Function.call,n(586).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){"use strict";var r=n(610),i={};i[n(560)("toStringTag")]="z",i+""!="[object z]"&&n(553)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(569),i=n(560)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var r=n(543);r(r.P,"Function",{bind:n(612)})},function(e,t,n){"use strict";var r=n(556),i=n(548),o=n(613),a=[].slice,s={},u=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(543),i=n(570),o=n(542),a=n(619),s="["+a+"]",u="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o(function(){return!!a[e]()||u[e]()!=u}),l=i[e]=s?t(p):a[e];n&&(i[n]=l),r(r.P+r.F*s,"String",i)},p=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){var r=n(543),i=n(621);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){var r=n(539).parseFloat,i=n(618).trim;e.exports=1/r(n(619)+"-0")!==-(1/0)?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){"use strict";var r=n(539),i=n(540),o=n(569),a=n(623),s=n(551),u=n(542),l=n(585).f,c=n(586).f,f=n(546).f,p=n(618).trim,d="Number",h=r[d],v=h,m=h.prototype,g=o(n(581)(m))==d,y="trim"in String.prototype,b=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():p(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,u=t.slice(2),l=0,c=u.length;li)return NaN;return parseInt(u,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(g?u(function(){m.valueOf.call(n)}):o(n)!=d)?a(new v(b(t)),n,h):b(t)};for(var x,E=n(541)?l(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;E.length>w;w++)i(v,x=E[w])&&!i(h,x)&&f(h,x,c(v,x));h.prototype=m,m.constructor=h,n(553)(r,d,h)}},function(e,t,n){var r=n(548),i=n(608).set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t,n){"use strict";var r=n(543),i=n(573),o=n(625),a=n(626),s=1..toFixed,u=Math.floor,l=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",f="0",p=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*l[n],l[n]=r%1e7,r=u(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=l[t],l[t]=u(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==l[e]){var n=String(l[e]);t=""===t?n:t+a.call(f,7-n.length)+n}return t},v=function(e,t,n){return 0===t?n:t%2===1?v(e,t-1,n*e):v(e*e,t/2,n)},m=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(542)(function(){s.call({})})),"Number",{toFixed:function(e){var t,n,r,s,u=o(this,c),l=i(e),g="",y=f;if(l<0||l>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(g="-",u=-u),u>1e-21)if(t=m(u*v(2,69,1))-69,n=t<0?u*v(2,-t,1):u/v(2,t,1),n*=4503599627370496,t=52-t,t>0){for(p(0,n),r=l;r>=7;)p(1e7,0),r-=7;for(p(v(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<0?(s=y.length,y=g+(s<=l?"0."+a.call(f,l-s)+y:y.slice(0,s-l)+"."+y.slice(s-l))):y=g+y,y}})},function(e,t,n){var r=n(569);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){"use strict";var r=n(573),i=n(570);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(543),i=n(542),o=n(625),a=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(543);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(543),i=n(539).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(543);r(r.S,"Number",{isInteger:n(631)})},function(e,t,n){var r=n(548),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(543);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(543),i=n(631),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){var r=n(543);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(543);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(543),i=n(621);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,n){var r=n(543),i=n(617);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,n){var r=n(543),i=n(639),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?e<0?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var i=n(543),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(543),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(543),i=n(643);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){var r=n(543);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(543),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(543),i=n(647);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var r=n(543),i=n(643),o=Math.pow,a=o(2,-52),s=o(2,-23),u=o(2,127)*(2-s),l=o(2,-126),c=function(e){return e+1/a-1/a};r(r.S,"Math",{fround:function(e){var t,n,r=Math.abs(e),o=i(e);return ru||n!=n?o*(1/0):o*n)}})},function(e,t,n){var r=n(543),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,a=0,s=arguments.length,u=0;a0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,n){var r=n(543),i=Math.imul;r(r.S+r.F*n(542)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},function(e,t,n){var r=n(543);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){var r=n(543);r(r.S,"Math",{log1p:n(639)})},function(e,t,n){var r=n(543);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(543);r(r.S,"Math",{sign:n(643)})},function(e,t,n){var r=n(543),i=n(647),o=Math.exp;r(r.S+r.F*n(542)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(543),i=n(647),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(543);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(543),i=n(574),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(((t-=65536)>>10)+55296,t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(543),i=n(567),o=n(572);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(573),i=n(570);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(e,t,n){"use strict";var r=n(563),i=n(543),o=n(553),a=n(545),s=n(540),u=n(664),l=n(665),c=n(559),f=n(594),p=n(560)("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",v="keys",m="values",g=function(){return this};e.exports=function(e,t,n,y,b,x,E){l(n,t,y);var w,A,_,C=function(e){if(!d&&e in P)return P[e];switch(e){case v:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",k=b==m,D=!1,P=e.prototype,O=P[p]||P[h]||b&&P[b],T=O||C(b),M=b?k?C("entries"):T:void 0,R="Array"==t?P.entries||O:O;if(R&&(_=f(R.call(new e)),_!==Object.prototype&&(c(_,S,!0),r||s(_,p)||a(_,p,g))),k&&O&&O.name!==m&&(D=!0,T=function(){return O.call(this)}),r&&!E||!d&&!D&&P[p]||a(P,p,T),u[t]=T,u[S]=g,b)if(w={values:k?T:C(m),keys:x?T:C(v),entries:M},E)for(A in w)A in P||o(P,A,w[A]);else i(i.P+i.F*(d||D),t,w);return w}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(581),i=n(552),o=n(559),a={};n(545)(a,n(560)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(543),i=n(662)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(543),i=n(572),o=n(668),a="endsWith",s=""[a];r(r.P+r.F*n(670)(a),"String",{endsWith:function(e){var t=o(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),u=void 0===n?r:Math.min(i(n),r),l=String(e);return s?s.call(t,l,u):t.slice(u-l.length,u)===l}})},function(e,t,n){var r=n(669),i=n(570);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(548),i=n(569),o=n(560)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(560)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){"use strict";var r=n(543),i=n(668),o="includes";r(r.P+r.F*n(670)(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(543);r(r.P,"String",{repeat:n(626)})},function(e,t,n){"use strict";var r=n(543),i=n(572),o=n(668),a="startsWith",s=""[a];r(r.P+r.F*n(670)(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(675)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,n){var r=n(543),i=n(542),o=n(570),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){"use strict";n(675)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(675)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(675)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";n(675)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(675)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(675)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){"use strict";n(675)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";n(675)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){"use strict";n(675)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";n(675)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(675)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(675)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){var r=n(543);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(543),i=n(593),o=n(551);r(r.P+r.F*n(542)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){"use strict";var r=n(543),i=n(542),o=Date.prototype.getTime,a=function(e){return e>9?e:"0"+e};r(r.P+r.F*(i(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!i(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}})},function(e,t,n){var r=Date.prototype,i="Invalid Date",o="toString",a=r[o],s=r.getTime;new Date(NaN)+""!=i&&n(553)(r,o,function(){var e=s.call(this);return e===e?a.call(this):i})},function(e,t,n){var r=n(560)("toPrimitive"),i=Date.prototype;r in i||n(545)(i,r,n(693))},function(e,t,n){"use strict";var r=n(547),i=n(551),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},function(e,t,n){var r=n(543);r(r.S,"Array",{isArray:n(580)})},function(e,t,n){"use strict";var r=n(555),i=n(543),o=n(593),a=n(696),s=n(697),u=n(572),l=n(698),c=n(699);i(i.S+i.F*!n(700)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,f,p=o(e),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=0,y=c(p);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==y||d==Array&&s(y))for(t=u(p.length),n=new d(t);t>g;g++)l(n,g,m?v(p[g],g):p[g]);else for(f=y.call(p),n=new d;!(i=f.next()).done;g++)l(n,g,m?a(f,v,[i.value,g],!0):i.value);return n.length=g,n}})},function(e,t,n){var r=n(547);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(664),i=n(560)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(546),i=n(552);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(610),i=n(560)("iterator"),o=n(664);e.exports=n(544).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(560)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(543),i=n(698);r(r.S+r.F*n(542)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(543),i=n(567),o=[].join;r(r.P+r.F*(n(568)!=Object||!n(703)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,n){var r=n(542);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";var r=n(543),i=n(583),o=n(569),a=n(574),s=n(572),u=[].slice;r(r.P+r.F*n(542)(function(){i&&u.call(i)}),"Array",{slice:function(e,t){var n=s(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return u.call(this,e,t);for(var i=a(e,n),l=a(t,n),c=s(l-i),f=Array(c),p=0;pE;E++)if((p||E in y)&&(v=y[E],m=b(v,E,g),e))if(n)w[E]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return E;case 2:w.push(v)}else if(c)return!1;return f?-1:l||c?c:w}}},function(e,t,n){var r=n(709);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(548),i=n(580),o=n(560)("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(543),i=n(707)(1);r(r.P+r.F*!n(703)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(543),i=n(707)(2);r(r.P+r.F*!n(703)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(543),i=n(707)(3);r(r.P+r.F*!n(703)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(543),i=n(707)(4);r(r.P+r.F*!n(703)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(543),i=n(715);r(r.P+r.F*!n(703)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){var r=n(556),i=n(593),o=n(568),a=n(572);e.exports=function(e,t,n,s,u){r(t);var l=i(e),c=o(l),f=a(l.length),p=u?f-1:0,d=u?-1:1;if(n<2)for(;;){if(p in c){s=c[p],p+=d;break}if(p+=d,u?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:f>p;p+=d)p in c&&(s=t(s,c[p],p,l));return s}},function(e,t,n){"use strict";var r=n(543),i=n(715);r(r.P+r.F*!n(703)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(543),i=n(571)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(703)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(543),i=n(567),o=n(573),a=n(572),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(703)(s)),"Array",{lastIndexOf:function(e){if(u)return s.apply(this,arguments)||0;var t=i(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(543);r(r.P,"Array",{copyWithin:n(720)}),n(721)("copyWithin")},function(e,t,n){"use strict";var r=n(593),i=n(574),o=n(572);e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),u=i(t,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:i(l,a))-u,a-s),f=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(e,t,n){var r=n(560)("unscopables"),i=Array.prototype;void 0==i[r]&&n(545)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var r=n(543);r(r.P,"Array",{fill:n(723)}),n(721)("fill")},function(e,t,n){"use strict";var r=n(593),i=n(574),o=n(572);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(543),i=n(707)(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(721)(o)},function(e,t,n){"use strict";var r=n(543),i=n(707)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(721)(o)},function(e,t,n){n(727)("Array")},function(e,t,n){"use strict";var r=n(539),i=n(546),o=n(541),a=n(560)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(721),i=n(729),o=n(664),a=n(567);e.exports=n(663)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(539),i=n(623),o=n(546).f,a=n(585).f,s=n(669),u=n(731),l=r.RegExp,c=l,f=l.prototype,p=/a/g,d=/a/g,h=new l(p)!==p;if(n(541)&&(!h||n(542)(function(){return d[n(560)("match")]=!1,l(p)!=p||l(d)==d||"/a/i"!=l(p,"i")}))){l=function(e,t){var n=this instanceof l,r=s(e),o=void 0===t;return!n&&r&&e.constructor===l&&o?e:i(h?new c(r&&!o?e.source:e,t):c((r=e instanceof l)?e.source:e,r&&o?u.call(e):t),n?this:f,l)};for(var v=(function(e){e in l||o(l,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})}),m=a(c),g=0;m.length>g;)v(m[g++]);f.constructor=l,l.prototype=f,n(553)(r,"RegExp",l)}n(727)("RegExp")},function(e,t,n){"use strict";var r=n(547);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"), -e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";n(733);var r=n(547),i=n(731),o=n(541),a="toString",s=/./[a],u=function(e){n(553)(RegExp.prototype,a,e,!0)};n(542)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):s.name!=a&&u(function(){return s.call(this)})},function(e,t,n){n(541)&&"g"!=/./g.flags&&n(546).f(RegExp.prototype,"flags",{configurable:!0,get:n(731)})},function(e,t,n){n(735)("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){"use strict";var r=n(545),i=n(553),o=n(542),a=n(570),s=n(560);e.exports=function(e,t,n){var u=s(e),l=n(a,u,""[e]),c=l[0],f=l[1];o(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,c),r(RegExp.prototype,u,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},function(e,t,n){n(735)("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},function(e,t,n){n(735)("search",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(735)("split",2,function(e,t,r){"use strict";var i=n(669),o=r,a=[].push,s="split",u="length",l="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[u]||2!="ab"[s](/(?:ab)*/)[u]||4!="."[s](/(.?)(.?)/)[u]||"."[s](/()()/)[u]>1||""[s](/.?/)[u]){var c=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return o.call(n,e,t);var r,s,f,p,d,h=[],v=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=void 0===t?4294967295:t>>>0,y=new RegExp(e.source,v+"g");for(c||(r=new RegExp("^"+y.source+"$(?!\\s)",v));(s=y.exec(n))&&(f=s.index+s[0][u],!(f>m&&(h.push(n.slice(m,s.index)),!c&&s[u]>1&&s[0].replace(r,function(){for(d=1;d1&&s.index=g)));)y[l]===s.index&&y[l]++;return m===n[u]?!p&&y.test("")||h.push(""):h.push(n.slice(m)),h[u]>g?h.slice(0,g):h}}else"0"[s](void 0,0)[u]&&(r=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(n,i){var o=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},r]})},function(e,t,n){"use strict";var r,i,o,a=n(563),s=n(539),u=n(555),l=n(610),c=n(543),f=n(548),p=n(556),d=n(740),h=n(741),v=n(742),m=n(743).set,g=n(744)(),y="Promise",b=s.TypeError,x=s.process,E=s[y],x=s.process,w="process"==l(x),A=function(){},_=!!function(){try{var e=E.resolve(1),t=(e.constructor={})[n(560)("species")]=function(e){e(A,A)};return(w||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t}catch(e){}}(),C=function(e,t){return e===t||e===E&&t===o},S=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},k=function(e){return C(E,e)?new D(e):new i(e)},D=i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw b("Bad Promise constructor");t=e,n=r}),this.resolve=p(t),this.reject=p(n)},P=function(e){try{e()}catch(e){return{error:e}}},O=function(e,t){if(!e._n){e._n=!0;var n=e._c;g(function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a=i?t.ok:t.fail,s=t.resolve,u=t.reject,l=t.domain;try{a?(i||(2==e._h&&R(e),e._h=1),a===!0?n=r:(l&&l.enter(),n=a(r),l&&l.exit()),n===t.promise?u(b("Promise-chain cycle")):(o=S(n))?o.call(n,s,u):s(n)):u(r)}catch(e){u(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&T(e)})}},T=function(e){m.call(s,function(){var t,n,r,i=e._v;if(M(e)&&(t=P(function(){w?x.emit("unhandledRejection",i,e):(n=s.onunhandledrejection)?n({promise:e,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=w||M(e)?2:1),e._a=void 0,t)throw t.error})},M=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if(t=n[r++],t.fail||!M(t.promise))return!1;return!0},R=function(e){m.call(s,function(){var t;w?x.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},N=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw b("Promise can't be resolved itself");(t=S(e))?g(function(){var r={_w:n,_d:!1};try{t.call(e,u(F,r,1),u(N,r,1))}catch(e){N.call(r,e)}}):(n._v=e,n._s=1,O(n,!1))}catch(e){N.call({_w:n,_d:!1},e)}}};_||(E=function(e){d(this,E,y,"_h"),p(e),r.call(this);try{e(u(F,this,1),u(N,this,1))}catch(e){N.call(this,e)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(745)(E.prototype,{then:function(e,t){var n=k(v(this,E));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=w?x.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),D=function(){var e=new r;this.promise=e,this.resolve=u(F,e,1),this.reject=u(N,e,1)}),c(c.G+c.W+c.F*!_,{Promise:E}),n(559)(E,y),n(727)(y),o=n(544)[y],c(c.S+c.F*!_,y,{reject:function(e){var t=k(this),n=t.reject;return n(e),t.promise}}),c(c.S+c.F*(a||!_),y,{resolve:function(e){if(e instanceof E&&C(e.constructor,this))return e;var t=k(this),n=t.resolve;return n(e),t.promise}}),c(c.S+c.F*!(_&&n(700)(function(e){E.all(e).catch(A)})),y,{all:function(e){var t=this,n=k(t),r=n.resolve,i=n.reject,o=P(function(){var n=[],o=0,a=1;h(e,!1,function(e){var s=o++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o&&i(o.error),n.promise},race:function(e){var t=this,n=k(t),r=n.reject,i=P(function(){h(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(555),i=n(696),o=n(697),a=n(547),s=n(572),u=n(699),l={},c={},t=e.exports=function(e,t,n,f,p){var d,h,v,m,g=p?function(){return e}:u(e),y=r(n,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(d=s(e.length);d>b;b++)if(m=t?y(a(h=e[b])[0],h[1]):y(e[b]),m===l||m===c)return m}else for(v=g.call(e);!(h=v.next()).done;)if(m=i(v,y,h.value,t),m===l||m===c)return m};t.BREAK=l,t.RETURN=c},function(e,t,n){var r=n(547),i=n(556),o=n(560)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r,i,o,a=n(555),s=n(613),u=n(583),l=n(550),c=n(539),f=c.process,p=c.setImmediate,d=c.clearImmediate,h=c.MessageChannel,v=0,m={},g="onreadystatechange",y=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},b=function(e){y.call(e.data)};p&&d||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++v]=function(){s("function"==typeof e?e:Function(e),t)},r(v),v},d=function(e){delete m[e]},"process"==n(569)(f)?r=function(e){f.nextTick(a(y,e,1))}:h?(i=new h,o=i.port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):r=g in l("script")?function(e){u.appendChild(l("script"))[g]=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:p,clear:d}},function(e,t,n){var r=n(539),i=n(743).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(569)(a);e.exports=function(){var e,t,n,l=function(){var r,i;for(u&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(l)};else if(o){var c=!0,f=document.createTextNode("");new o(l).observe(f,{characterData:!0}),n=function(){f.data=c=!c}}else if(s&&s.resolve){var p=s.resolve();n=function(){p.then(l)}}else n=function(){i.call(r,l)};return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){var r=n(553);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(747);e.exports=n(748)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(546).f,i=n(581),o=n(745),a=n(555),s=n(740),u=n(570),l=n(741),c=n(663),f=n(729),p=n(727),d=n(541),h=n(557).fastKey,v=d?"_s":"size",m=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var f=e(function(e,r){s(e,f,t,"_i"),e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,void 0!=r&&l(r,n,e[c],e)});return o(f.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var t=this,n=m(t,e);if(n){var r=n.n,i=n.p;delete t._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),t._f==n&&(t._f=r),t._l==n&&(t._l=i),t[v]--}return!!n},forEach:function(e){s(this,f,"forEach");for(var t,n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!m(this,e)}}),d&&r(f.prototype,"size",{get:function(){return u(this[v])}}),f},def:function(e,t,n){var r,i,o=m(e,t);return o?o.v=n:(e._l=o={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:m,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?f(0,n.k):"values"==t?f(0,n.v):f(0,[n.k,n.v]):(e._t=void 0,f(1))},n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){"use strict";var r=n(539),i=n(543),o=n(553),a=n(745),s=n(557),u=n(741),l=n(740),c=n(548),f=n(542),p=n(700),d=n(559),h=n(623);e.exports=function(e,t,n,v,m,g){var y=r[e],b=y,x=m?"set":"add",E=b&&b.prototype,w={},A=function(e){var t=E[e];o(E,e,"delete"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(g||E.forEach&&!f(function(){(new b).entries().next()}))){var _=new b,C=_[x](g?{}:-0,1)!=_,S=f(function(){_.has(1)}),k=p(function(e){new b(e)}),D=!g&&f(function(){for(var e=new b,t=5;t--;)e[x](t,t);return!e.has(-0)});k||(b=t(function(t,n){l(t,b,e);var r=h(new y,t,b);return void 0!=n&&u(n,m,r[x],r),r}),b.prototype=E,E.constructor=b),(S||D)&&(A("delete"),A("has"),m&&A("get")),(D||C)&&A(x),g&&E.clear&&delete E.clear}else b=v.getConstructor(t,e,m,x),a(b.prototype,n),s.NEED=!0;return d(b,e),w[e]=b,i(i.G+i.W+i.F*(b!=y),w),g||v.setStrong(b,e,m),b}},function(e,t,n){"use strict";var r=n(747);e.exports=n(748)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,i=n(707)(0),o=n(553),a=n(557),s=n(604),u=n(751),l=n(548),c=a.getWeak,f=Object.isExtensible,p=u.ufstore,d={},h=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(l(e)){var t=c(e);return t===!0?p(this).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(this,e,t)}},m=e.exports=n(748)("WeakMap",h,v,u,!0,!0);7!=(new m).set((Object.freeze||Object)(d),7).get(d)&&(r=u.getConstructor(h),s(r.prototype,v),a.NEED=!0,i(["delete","has","get","set"],function(e){var t=m.prototype,n=t[e];o(t,e,function(t,i){if(l(t)&&!f(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)})}))},function(e,t,n){"use strict";var r=n(745),i=n(557).getWeak,o=n(547),a=n(548),s=n(740),u=n(741),l=n(707),c=n(540),f=l(5),p=l(6),d=0,h=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},m=function(e,t){return f(e.a,function(e){return e[0]===t})};v.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var l=e(function(e,r){s(e,l,t,"_i"),e._i=d++,e._l=void 0,void 0!=r&&u(r,n,e[o],e)});return r(l.prototype,{delete:function(e){if(!a(e))return!1;var t=i(e);return t===!0?h(this).delete(e):t&&c(t,this._i)&&delete t[this._i]},has:function(e){if(!a(e))return!1;var t=i(e);return t===!0?h(this).has(e):t&&c(t,this._i)}}),l},def:function(e,t,n){var r=i(o(t),!0);return r===!0?h(e).set(t,n):r[e._i]=n,e},ufstore:h}},function(e,t,n){"use strict";var r=n(751);n(748)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(543),i=n(754),o=n(755),a=n(547),s=n(574),u=n(572),l=n(548),c=n(539).ArrayBuffer,f=n(742),p=o.ArrayBuffer,d=o.DataView,h=i.ABV&&c.isView,v=p.prototype.slice,m=i.VIEW,g="ArrayBuffer";r(r.G+r.W+r.F*(c!==p),{ArrayBuffer:p}),r(r.S+r.F*!i.CONSTR,g,{isView:function(e){return h&&h(e)||l(e)&&m in e}}),r(r.P+r.U+r.F*n(542)(function(){return!new p(2).slice(1,void 0).byteLength}),g,{slice:function(e,t){if(void 0!==v&&void 0===t)return v.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(f(this,p))(u(i-r)),l=new d(this),c=new d(o),h=0;r>1,c=23===t?P(2,-24)-P(2,-77):0,f=0,p=e<0||0===e&&1/e<0?1:0;for(e=D(e),e!=e||e===S?(i=e!=e?1:0,r=u):(r=O(T(e)/M),e*(o=P(2,-r))<1&&(r--,o*=2),e+=r+l>=1?c/o:c*P(2,1-l),e*o>=2&&(r++,o/=2),r+l>=u?(i=0,r=u):r+l>=1?(i=(e*o-1)*P(2,t),r+=l):(i=e*P(2,l-1)*P(2,t),r=0));t>=8;a[f++]=255&i,i/=256,t-=8);for(r=r<0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*p,a},U=function(e,t,n){var r,i=8*n-t-1,o=(1<>1,s=i-7,u=n-1,l=e[u--],c=127&l;for(l>>=7;s>0;c=256*c+e[u],u--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;s>0;r=256*r+e[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return r?NaN:l?-S:S;r+=P(2,t),c-=a}return(l?-1:1)*r*P(2,c-t)},V=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},W=function(e){return[255&e]},q=function(e){return[255&e,e>>8&255]},H=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return B(e,52,8)},z=function(e){return B(e,23,4)},Y=function(e,t,n){h(e[b],t,{get:function(){return this[n]}})},K=function(e,t,n,r){var i=+n,o=f(i);if(i!=o||o<0||o+t>e[L])throw C(E);var a=e[I]._b,s=o+e[j],u=a.slice(s,s+t);return r?u:u.reverse()},X=function(e,t,n,r,i,o){var a=+n,s=f(a);if(a!=s||s<0||s+t>e[L])throw C(E);for(var u=e[I]._b,l=s+e[j],c=r(+i),p=0;pee;)(J=Z[ee++])in w||s(w,J,k[J]);o||(Q.constructor=w)}var te=new A(new w(2)),ne=A[b].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||u(A[b],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else w=function(e){var t=$(this,e);this._b=v.call(Array(t),0),this[L]=t},A=function(e,t,n){c(this,A,y),c(e,w,y);var r=e[L],i=f(t);if(i<0||i>r)throw C("Wrong offset!");if(n=void 0===n?r-i:p(n),i+n>r)throw C(x);this[I]=e,this[j]=i,this[L]=n},i&&(Y(w,N,"_l"),Y(A,R,"_b"),Y(A,N,"_l"),Y(A,F,"_o")),u(A[b],{getInt8:function(e){return K(this,1,e)[0]<<24>>24},getUint8:function(e){return K(this,1,e)[0]},getInt16:function(e){var t=K(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=K(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return V(K(this,4,e,arguments[1]))},getUint32:function(e){return V(K(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return U(K(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return U(K(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){X(this,1,e,W,t)},setUint8:function(e,t){X(this,1,e,W,t)},setInt16:function(e,t){X(this,2,e,q,t,arguments[2])},setUint16:function(e,t){X(this,2,e,q,t,arguments[2])},setInt32:function(e,t){X(this,4,e,H,t,arguments[2])},setUint32:function(e,t){X(this,4,e,H,t,arguments[2])},setFloat32:function(e,t){X(this,4,e,z,t,arguments[2])},setFloat64:function(e,t){X(this,8,e,G,t,arguments[2])}});m(w,g),m(A,y),s(A[b],a.VIEW,!0),t[g]=w,t[y]=A},function(e,t,n){var r=n(543);r(r.G+r.W+r.F*!n(754).ABV,{DataView:n(755).DataView})},function(e,t,n){n(758)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){"use strict";if(n(541)){var r=n(563),i=n(539),o=n(542),a=n(543),s=n(754),u=n(755),l=n(555),c=n(740),f=n(552),p=n(545),d=n(745),h=n(573),v=n(572),m=n(574),g=n(551),y=n(540),b=n(606),x=n(610),E=n(548),w=n(593),A=n(697),_=n(581),C=n(594),S=n(585).f,k=n(699),D=n(554),P=n(560),O=n(707),T=n(571),M=n(742),R=n(728),N=n(664),F=n(700),I=n(727),L=n(723),j=n(720),B=n(546),U=n(586),V=B.f,W=U.f,q=i.RangeError,H=i.TypeError,G=i.Uint8Array,z="ArrayBuffer",Y="Shared"+z,K="BYTES_PER_ELEMENT",X="prototype",$=Array[X],J=u.ArrayBuffer,Q=u.DataView,Z=O(0),ee=O(2),te=O(3),ne=O(4),re=O(5),ie=O(6),oe=T(!0),ae=T(!1),se=R.values,ue=R.keys,le=R.entries,ce=$.lastIndexOf,fe=$.reduce,pe=$.reduceRight,de=$.join,he=$.sort,ve=$.slice,me=$.toString,ge=$.toLocaleString,ye=P("iterator"),be=P("toStringTag"),xe=D("typed_constructor"),Ee=D("def_constructor"),we=s.CONSTR,Ae=s.TYPED,_e=s.VIEW,Ce="Wrong length!",Se=O(1,function(e,t){return Me(M(e,e[Ee]),t)}),ke=o(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),De=!!G&&!!G[X].set&&o(function(){new G(1).set({})}),Pe=function(e,t){if(void 0===e)throw H(Ce);var n=+e,r=v(e);if(t&&!b(n,r))throw q(Ce);return r},Oe=function(e,t){var n=h(e);if(n<0||n%t)throw q("Wrong offset!");return n},Te=function(e){if(E(e)&&Ae in e)return e;throw H(e+" is not a typed array!")},Me=function(e,t){if(!(E(e)&&xe in e))throw H("It is not a typed array constructor!");return new e(t)},Re=function(e,t){return Ne(M(e,e[Ee]),t)},Ne=function(e,t){for(var n=0,r=t.length,i=Me(e,r);r>n;)i[n]=t[n++];return i},Fe=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},Ie=function(e){var t,n,r,i,o,a,s=w(e),u=arguments.length,c=u>1?arguments[1]:void 0,f=void 0!==c,p=k(s);if(void 0!=p&&!A(p)){for(a=p.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&u>2&&(c=l(c,arguments[2],2)),t=0,n=v(s.length),i=Me(this,n);n>t;t++)i[t]=f?c(s[t],t):s[t];return i},Le=function(){for(var e=0,t=arguments.length,n=Me(this,t);t>e;)n[e]=arguments[e++];return n},je=!!G&&o(function(){ge.call(new G(1))}),Be=function(){return ge.apply(je?ve.call(Te(this)):Te(this),arguments)},Ue={copyWithin:function(e,t){return j.call(Te(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(Te(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return L.apply(Te(this),arguments)},filter:function(e){return Re(this,ee(Te(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(Te(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Te(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Z(Te(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Te(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Te(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Te(this),arguments)},lastIndexOf:function(e){return ce.apply(Te(this),arguments)},map:function(e){return Se(Te(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return fe.apply(Te(this),arguments)},reduceRight:function(e){return pe.apply(Te(this),arguments)},reverse:function(){for(var e,t=this,n=Te(t).length,r=Math.floor(n/2),i=0;i1?arguments[1]:void 0)},sort:function(e){return he.call(Te(this),e)},subarray:function(e,t){var n=Te(this),r=n.length,i=m(e,r);return new(M(n,n[Ee]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===t?r:m(t,r))-i))}},Ve=function(e,t){return Re(this,ve.call(Te(this),e,t))},We=function(e){Te(this);var t=Oe(arguments[1],1),n=this.length,r=w(e),i=v(r.length),o=0;if(i+t>n)throw q(Ce);for(;o255?255:255&r),i.v[h](n*t+i.o,r,ke)},P=function(e,t){V(e,t,{get:function(){return k(this,t)},set:function(e){return D(this,t,e)},enumerable:!0})};b?(m=n(function(e,n,r,i){c(e,m,l,"_d");var o,a,s,u,f=0,d=0;if(E(n)){if(!(n instanceof J||(u=x(n))==z||u==Y))return Ae in n?Ne(m,n):Ie.call(m,n);o=n,d=Oe(r,t);var h=n.byteLength;if(void 0===i){if(h%t)throw q(Ce);if(a=h-d,a<0)throw q(Ce)}else if(a=v(i)*t,a+d>h)throw q(Ce);s=a/t}else s=Pe(n,!0),a=s*t,o=new J(a);for(p(e,"_d",{b:o,o:d,l:a,e:s,v:new Q(o)});f=n.length)return{value:void 0,done:!0};while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,n){function r(e,t){var n,s,c=arguments.length<3?e:arguments[2];return l(e)===c?e[t]:(n=i.f(e,t))?a(n,"value")?n.value:void 0!==n.get?n.get.call(c):void 0:u(s=o(e))?r(s,t,c):void 0}var i=n(586),o=n(594),a=n(540),s=n(543),u=n(548),l=n(547);s(s.S,"Reflect",{get:r})},function(e,t,n){var r=n(586),i=n(543),o=n(547);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(543),i=n(594),o=n(547);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){var r=n(543);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(543),i=n(547),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){var r=n(543);r(r.S,"Reflect",{ownKeys:n(778)})},function(e,t,n){var r=n(585),i=n(578),o=n(547),a=n(539).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(543),i=n(547),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,n){function r(e,t,n){var u,p,d=arguments.length<4?e:arguments[3],h=o.f(c(e),t);if(!h){if(f(p=a(e)))return r(p,t,n,d);h=l(0)}return s(h,"value")?!(h.writable===!1||!f(d))&&(u=o.f(d,t)||l(0),u.value=n,i.f(d,t,u),!0):void 0!==h.set&&(h.set.call(d,n),!0)}var i=n(546),o=n(586),a=n(594),s=n(540),u=n(543),l=n(552),c=n(547),f=n(548);u(u.S,"Reflect",{set:r})},function(e,t,n){var r=n(543),i=n(608);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(543),i=n(571)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(721)("includes")},function(e,t,n){"use strict";var r=n(543),i=n(662)(!0);r(r.P,"String",{at:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(543),i=n(785);r(r.P,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){var r=n(572),i=n(626),o=n(570);e.exports=function(e,t,n,a){var s=String(o(e)),u=s.length,l=void 0===n?" ":String(n),c=r(t);if(c<=u||""==l)return s;var f=c-u,p=i.call(l,Math.ceil(f/l.length));return p.length>f&&(p=p.slice(0,f)),a?p+s:s+p}},function(e,t,n){"use strict";var r=n(543),i=n(785);r(r.P,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";n(618)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){"use strict";n(618)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){"use strict";var r=n(543),i=n(570),o=n(572),a=n(669),s=n(731),u=RegExp.prototype,l=function(e,t){this._r=e,this._s=t};n(665)(l,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),r(r.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in u?String(e.flags):s.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new l(r,t)}})},function(e,t,n){n(562)("asyncIterator")},function(e,t,n){n(562)("observable")},function(e,t,n){var r=n(543),i=n(778),o=n(567),a=n(586),s=n(698);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n=o(e),r=a.f,u=i(n),l={},c=0;u.length>c;)s(l,t=u[c++],r(n,t));return l}})},function(e,t,n){var r=n(543),i=n(794)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){var r=n(565),i=n(567),o=n(579).f;e.exports=function(e){return function(t){for(var n,a=i(t),s=r(a),u=s.length,l=0,c=[];u>l;)o.call(a,n=s[l++])&&c.push(e?[n,a[n]]:a[n]);return c}}},function(e,t,n){var r=n(543),i=n(794)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(543),i=n(593),o=n(556),a=n(546);n(541)&&r(r.P+n(797),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){e.exports=n(563)||!n(542)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(539)[e]})},function(e,t,n){"use strict";var r=n(543),i=n(593),o=n(556),a=n(546);n(541)&&r(r.P+n(797),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(543),i=n(593),o=n(551),a=n(594),s=n(586).f;n(541)&&r(r.P+n(797),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do if(t=s(n,r))return t.get;while(n=a(n))}})},function(e,t,n){"use strict";var r=n(543),i=n(593),o=n(551),a=n(594),s=n(586).f;n(541)&&r(r.P+n(797),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do if(t=s(n,r))return t.set;while(n=a(n))}})},function(e,t,n){var r=n(543);r(r.P+r.R,"Map",{toJSON:n(802)("Map")})},function(e,t,n){var r=n(610),i=n(803);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){var r=n(741);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){var r=n(543);r(r.P+r.R,"Set",{toJSON:n(802)("Set")})},function(e,t,n){var r=n(543);r(r.S,"System",{global:n(539)})},function(e,t,n){var r=n(543),i=n(569);r(r.S,"Error",{isError:function(e){ -return"Error"===i(e)}})},function(e,t,n){var r=n(543);r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=t>>>0,a=n>>>0;return o+(r>>>0)+((i&a|(i|a)&~(i+a>>>0))>>>31)|0}})},function(e,t,n){var r=n(543);r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=t>>>0,a=n>>>0;return o-(r>>>0)-((~i&a|~(i^a)&i-a>>>0)>>>31)|0}})},function(e,t,n){var r=n(543);r(r.S,"Math",{imulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,a=i&n,s=r>>16,u=i>>16,l=(s*a>>>0)+(o*a>>>16);return s*u+(l>>16)+((o*u>>>0)+(l&n)>>16)}})},function(e,t,n){var r=n(543);r(r.S,"Math",{umulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,a=i&n,s=r>>>16,u=i>>>16,l=(s*a>>>0)+(o*a>>>16);return s*u+(l>>>16)+((o*u>>>0)+(l&n)>>>16)}})},function(e,t,n){var r=n(812),i=n(547),o=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,i(n),o(r))}})},function(e,t,n){var r=n(746),i=n(543),o=n(558)("metadata"),a=o.store||(o.store=new(n(750))),s=function(e,t,n){var i=a.get(e);if(!i){if(!n)return;a.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o},u=function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},l=function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},c=function(e,t,n,r){s(n,r,!0).set(e,t)},f=function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},p=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},d=function(e){i(i.S,"Reflect",e)};e.exports={store:a,map:s,has:u,get:l,set:c,keys:f,key:p,exp:d}},function(e,t,n){var r=n(812),i=n(547),o=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=a(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var u=s.get(t);return u.delete(n),!!u.size||s.delete(t)}})},function(e,t,n){var r=n(812),i=n(547),o=n(594),a=r.has,s=r.get,u=r.key,l=function(e,t,n){var r=a(e,t,n);if(r)return s(e,t,n);var i=o(t);return null!==i?l(e,i,n):void 0};r.exp({getMetadata:function(e,t){return l(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,n){var r=n(749),i=n(803),o=n(812),a=n(547),s=n(594),u=o.keys,l=o.key,c=function(e,t){var n=u(e,t),o=s(e);if(null===o)return n;var a=c(o,t);return a.length?n.length?i(new r(n.concat(a))):a:n};o.exp({getMetadataKeys:function(e){return c(a(e),arguments.length<2?void 0:l(arguments[1]))}})},function(e,t,n){var r=n(812),i=n(547),o=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(812),i=n(547),o=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,n){var r=n(812),i=n(547),o=n(594),a=r.has,s=r.key,u=function(e,t,n){var r=a(e,t,n);if(r)return!0;var i=o(t);return null!==i&&u(e,i,n)};r.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(812),i=n(547),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(812),i=n(547),o=n(556),a=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?i:o)(n),a(r))}}})},function(e,t,n){var r=n(543),i=n(744)(),o=n(539).process,a="process"==n(569)(o);r(r.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var r=n(543),i=n(539),o=n(544),a=n(744)(),s=n(560)("observable"),u=n(556),l=n(547),c=n(740),f=n(745),p=n(545),d=n(741),h=d.RETURN,v=function(e){return null==e?void 0:u(e)},m=function(e){var t=e._c;t&&(e._c=void 0,t())},g=function(e){return void 0===e._o},y=function(e){g(e)||(e._o=void 0,m(e))},b=function(e,t){l(e),this._c=void 0,this._o=e,e=new x(this);try{var n=t(e),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:u(n),this._c=n)}catch(t){return void e.error(t)}g(this)&&m(this)};b.prototype=f({},{unsubscribe:function(){y(this)}});var x=function(e){this._s=e};x.prototype=f({},{next:function(e){var t=this._s;if(!g(t)){var n=t._o;try{var r=v(n.next);if(r)return r.call(n,e)}catch(e){try{y(t)}finally{throw e}}}},error:function(e){var t=this._s;if(g(t))throw e;var n=t._o;t._o=void 0;try{var r=v(n.error);if(!r)throw e;e=r.call(n,e)}catch(e){try{m(t)}finally{throw e}}return m(t),e},complete:function(e){var t=this._s;if(!g(t)){var n=t._o;t._o=void 0;try{var r=v(n.complete);e=r?r.call(n,e):void 0}catch(e){try{m(t)}finally{throw e}}return m(t),e}}});var E=function(e){c(this,E,"Observable","_f")._f=u(e)};f(E.prototype,{subscribe:function(e){return new b(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(n,r){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n})})}}),f(E,{from:function(e){var t="function"==typeof this?this:E,n=v(l(e)[s]);if(n){var r=l(n.call(e));return r.constructor===t?r:new t(function(e){return r.subscribe(e)})}return new t(function(t){var n=!1;return a(function(){if(!n){try{if(d(e,!1,function(e){if(t.next(e),n)return h})===h)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,n=Array(t);ea;)(n[a]=arguments[a++])===s&&(u=!0);return function(){var r,o=this,a=arguments.length,l=0,c=0;if(!u&&!a)return i(e,n,o);if(r=n.slice(),u)for(;t>l;l++)r[l]===s&&(r[l]=arguments[c++]);for(;a>c;)r.push(arguments[c++]);return i(e,r,o)}}},function(e,t,n){e.exports=n(539)},function(e,t,n){var r=n(543),i=n(743);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){for(var r=n(728),i=n(553),o=n(539),a=n(545),s=n(664),u=n(560),l=u("iterator"),c=u("toStringTag"),f=s.Array,p=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],d=0;d<5;d++){var h,v=p[d],m=o[v],g=m&&m.prototype;if(g){g[l]||a(g,l,f),g[c]||a(g,c,v),s[v]=f;for(h in r)g[h]||i(g,h,r[h],!0)}}},function(e,t){(function(t){!function(t){"use strict";function n(e,t,n,r){var o=t&&t.prototype instanceof i?t:i,a=Object.create(o.prototype),s=new d(r||[]);return a._invoke=l(e,n,s),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function a(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){function n(t,i,o,a){var s=r(e[t],e,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&y.call(l,"__await")?Promise.resolve(l.__await).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):Promise.resolve(l).then(function(e){u.value=e,o(u)},a)}a(s.arg)}function i(e,t){function r(){return new Promise(function(r,i){n(e,t,r,i)})}return o=o?o.then(r,r):r()}"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n));var o;this._invoke=i}function l(e,t,n){var i=C;return function(o,a){if(i===k)throw new Error("Generator is already running");if(i===D){if("throw"===o)throw a;return v()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=c(s,n);if(u){if(u===P)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===C)throw i=D,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=k;var l=r(e,t,n);if("normal"===l.type){if(i=n.done?D:S,l.arg===P)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=D,n.method="throw",n.arg=l.arg)}}}function c(e,t){var n=e.iterator[t.method];if(n===m){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=m,c(e,t),"throw"===t.method))return P;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var i=r(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,P;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=m),t.delegate=null,P):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,P)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){if(e){var t=e[x];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),P}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;p(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=m),P}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(t,function(){return this}())},function(e,t,n){n(830),e.exports=n(544).RegExp.escape},function(e,t,n){var r=n(543),i=n(831)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=t||n<0||S&&r>=g}function c(){var e=w();return l(e)?f(e):void(b=setTimeout(c,u(e)))}function f(e){return b=void 0,k&&v?i(e):(v=m=void 0,y)}function p(){void 0!==b&&clearTimeout(b),_=0,v=A=m=b=void 0}function d(){return void 0===b?y:f(w())}function h(){var e=w(),n=l(e);if(v=arguments,m=this,A=e,n){if(void 0===b)return o(A);if(S)return b=setTimeout(c,t),i(A)}return void 0===b&&(b=setTimeout(c,t)),y}var v,m,g,y,b,A,_=0,C=!1,S=!1,k=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,r(n)&&(C=!!n.leading,S="maxWait"in n,g=S?x(a(n.maxWait)||0,t):g,k="trailing"in n?!!n.trailing:k),h.cancel=p,h.flush=d,h}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function i(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||i(e)&&b.call(e)==l}function a(e){if("number"==typeof e)return e;if(o(e))return u;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var n=p.test(e);return n||d.test(e)?h(e.slice(2),n?2:8):f.test(e)?u:+e}var s="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt,v="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),y=Object.prototype,b=y.toString,x=Math.max,E=Math.min,w=function(){return g.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t,n){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}function p(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}function h(e){for(;Na.length<=e;)Na.push(v(Na)+" ");return Na[e]}function v(e){return e[e.length-1]}function m(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||Fa.test(e))}function E(e,t){return t?!!(t.source.indexOf("\\w")>-1&&x(e))||t.test(e):x(e)}function w(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function A(e){return e.charCodeAt(0)>=768&&Ia.test(e)}function _(e,t,n){for(;(n<0?t>0:t=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?F(n,k(e,n).text.length):q(t,k(e,t.line).text.length)}function q(e,t){var n=e.ch;return null==n||n>t?F(e.line,t):n<0?F(e.line,0):e}function H(e,t){for(var n=[],r=0;r=t:o.to>t);(r||(r=[])).push(new Y(a,o.from,u?null:o.to))}}return r}function Q(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var u=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var E=0;E0)){var c=[u,1],f=I(l.from,s.from),d=I(l.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:l.to}),i.splice.apply(i,c),u+=c.length-3}}return i}function ne(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?I(l.to,n)>=0:I(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?I(l.from,r)<=0:I(l.from,r)<0)))return!0}}}function fe(e){for(var t;t=ue(e);)e=t.find(-1,!0).line;return e}function pe(e){for(var t;t=le(e);)e=t.find(1,!0).line;return e}function de(e){for(var t,n;t=le(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function he(e,t){var n=k(e,t),r=fe(n);return n==r?t:T(r)}function ve(e,t){if(t>e.lastLine())return t;var n,r=k(e,t);if(!me(e,r))return t;for(;n=le(r);)r=n.find(1,!0).line;return T(r)+1}function me(e,t){var n=ja&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function Ee(e,t,n,r){if(!e)return r(t,n,"ltr");for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),i=!0)}i||r(t,n,"ltr")}function we(e,t,n){var r;Ba=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Ba=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Ba=i)}return null!=r?r:Ba}function Ae(e,t){var n=e.order;return null==n&&(n=e.order=Ua(e.text,t)),n}function _e(e,t,n){var r=_(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ce(e,t,n){var r=_e(e,t.ch,n);return null==r?null:new F(t.line,r,n<0?"after":"before")}function Se(e,t,n,r,i){if(e){var o=Ae(n,t.doc.direction);if(o){var a,s=i<0?v(o):o[0],u=i<0==(1==s.level),l=u?"after":"before";if(s.level>0){var c=$t(t,n);a=i<0?n.text.length-1:0;var f=Jt(t,c,a).top;a=C(function(e){return Jt(t,c,e).top==f},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=_e(n,a,1))}else a=i<0?s.to:s.from;return new F(r,a,l)}}return new F(r,i<0?n.text.length:0,i<0?"before":"after")}function ke(e,t,n,r){var i=Ae(t,e.doc.direction);if(!i)return Ce(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=we(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&p>=c.begin)){var d=f?"before":"after";return new F(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new F(n.line,u(e,1),"before"):new F(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=s?r.begin:u(r.end,-1);if(a.from<=l&&l0?c.end:u(c.begin,-1);return null==m||r>0&&m==t.text.length||!(v=h(r>0?0:i.length-1,r,l(m)))?null:v}function De(e,t){return e._handlers&&e._handlers[t]||Va}function Pe(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=p(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Oe(e,t){var n=De(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Ne(e){e.prototype.on=function(e,t){Wa(this,e,t)},e.prototype.off=function(e,t){Pe(this,e,t)}}function Fe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ie(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Le(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function je(e){Fe(e),Ie(e)}function Be(e){return e.target||e.srcElement}function Ue(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),ga&&e.ctrlKey&&1==t&&(t=3),t}function Ve(e){if(null==ka){var t=r("span","​");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(ka=t.offsetWidth<=1&&t.offsetHeight>2&&!(oa&&aa<8))}var i=ka?r("span","​"):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function We(e){if(null!=Da)return Da;var r=n(e,document.createTextNode("AخA")),i=Ea(r,0,1).getBoundingClientRect(),o=Ea(r,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(Da=o.right-i.right<3)}function qe(e){if(null!=Ya)return Ya;var t=n(e,r("span","x")),i=t.getBoundingClientRect(),o=Ea(t,0,1).getBoundingClientRect();return Ya=Math.abs(i.left-o.left)>1}function He(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ka[e]=t}function Ge(e,t){Xa[e]=t}function ze(e){if("string"==typeof e&&Xa.hasOwnProperty(e))e=Xa[e];else if(e&&"string"==typeof e.name&&Xa.hasOwnProperty(e.name)){var t=Xa[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ye(e,t){t=ze(t);var n=Ka[t.name];if(!n)return Ye(e,"text/plain");var r=n(e,t);if($a.hasOwnProperty(t.name)){var i=$a[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}function Ke(e,t){var n=$a.hasOwnProperty(e)?$a[e]:$a[e]={};c(t,n)}function Xe(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function $e(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),n&&n.mode!=e);)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Je(e,t,n){return!e.startState||e.startState(t,n)}function Qe(e,t,n,r){var i=[e.state.modeGen],o={};at(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=function(n){var r=e.state.overlays[n],a=1,s=0;at(e,t.text,r.mode,!0,function(e,t){for(var n=a;se&&i.splice(a,1,e,i[a+1],o),a+=2,s=Math.min(e,o)}if(t)if(r.opaque)i.splice(n,a-n,e,"overlay "+t),a=n+2;else for(;ne.options.maxHighlightLength?Xe(e.doc.mode,r):r);t.stateAfter=r,t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function et(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return!0;var o=st(e,t,n),a=o>r.first&&k(r,o-1).stateAfter;return a=a?Xe(r.mode,a):Je(r.mode),r.iter(o,t,function(n){tt(e,n.text,a);var s=o==t-1||o%5==0||o>=i.viewFrom&&ot.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function it(e,t,n,r){var i,o=function(e){return{start:f.start,end:f.pos,string:f.current(),type:i||null,state:e?Xe(a.mode,c):c}},a=e.doc,s=a.mode;t=W(a,t);var u,l=k(a,t.line),c=et(e,t.line,n),f=new Ja(l.text,e.options.tabSize);for(r&&(u=[]);(r||f.pose.options.maxHighlightLength?(s=!1,a&&tt(e,t,r,f.pos),f.pos=t.length,u=null):u=ot(rt(n,f,r,p),o),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||c!=u){for(;la;--s){if(s<=o.first)return o.first;var u=k(o,s-1);if(u.stateAfter&&(!n||s<=o.frontier))return s;var l=f(u.text,null,e.options.tabSize);(null==i||r>l)&&(i=s-1,r=l)}return i}function ut(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),ne(e),re(e,n);var i=r?r(e):1;i!=e.height&&O(e,i)}function lt(e){e.parent=null,ne(e)}function ct(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?ts:es;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function ft(e,t){var n=i("span",null,null,sa?"padding-right: .1px":null),r={pre:i("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(oa||sa)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a=o?t.rest[o-1]:t.line,s=void 0;r.pos=0,r.addToken=dt,We(e.display.measure)&&(s=Ae(a,e.doc.direction))&&(r.addToken=vt(r.addToken,s)),r.map=[];var l=t!=e.display.externalMeasured&&T(a);gt(a,r,Ze(e,a,l)),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=u(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=u(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ve(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(sa){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Oe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=u(r.pre.className,r.textClass||"")),r}function pt(e){var t=r("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function dt(e,t,n,i,o,a,s){if(t){var u,l=e.splitSpaces?ht(t,e.trailingSpace):t,c=e.cm.state.specialChars,f=!1;if(c.test(t)){u=document.createDocumentFragment();for(var p=0;;){c.lastIndex=p;var d=c.exec(t),v=d?d.index-p:t.length-p;if(v){var m=document.createTextNode(l.slice(p,p+v));oa&&aa<9?u.appendChild(r("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+v,m),e.col+=v,e.pos+=v}if(!d)break;p+=v+1;var g=void 0;if("\t"==d[0]){var y=e.cm.options.tabSize,b=y-e.col%y;g=u.appendChild(r("span",h(b),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==d[0]||"\n"==d[0]?(g=u.appendChild(r("span","\r"==d[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",d[0]),e.col+=1):(g=e.cm.options.specialCharPlaceholder(d[0]),g.setAttribute("cm-text",d[0]),oa&&aa<9?u.appendChild(r("span",[g])):u.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,u=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,u),oa&&aa<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||i||o||f||s){var x=n||"";i&&(x+=i),o&&(x+=o);var E=r("span",[u],x,s);return a&&(E.title=a),e.content.appendChild(E)}e.content.appendChild(u)}}function ht(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;il&&f.from<=l));p++);if(f.to>=c)return e(n,r,i,o,a,s,u);e(n,r.slice(0,f.to-l),i,o,null,s,u),o=null,r=r.slice(f.to-l),l=f.to}}}function mt(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function gt(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,u,l,c,f,p,d=i.length,h=0,v=1,m="",g=0;;){if(g==h){u=l=c=f=s="",p=null,g=1/0;for(var y=[],b=void 0,x=0;xh||w.collapsed&&E.to==h&&E.from==h)?(null!=E.to&&E.to!=h&&g>E.to&&(g=E.to,l=""),w.className&&(u+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&E.from==h&&(c+=" "+w.startStyle),w.endStyle&&E.to==g&&(b||(b=[])).push(w.endStyle,E.to),w.title&&!f&&(f=w.title),w.collapsed&&(!p||ae(p.marker,w)<0)&&(p=E)):E.from>h&&g>E.from&&(g=E.from)}if(b)for(var A=0;A=d)break;for(var C=Math.min(d,g);;){if(m){var S=h+m.length;if(!p){var k=S>C?m.slice(0,C-h):m;t.addToken(t,k,a?a+u:u,c,h+k.length==g?l:"",f,s)}if(S>=C){m=m.slice(C-h),h=C;break}h=S,c=""}m=i.slice(o,o=n[v++]),a=ct(n[v++],t.cm.options)}}else for(var D=1;D2&&o.push((u.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}function zt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Yt(e,t){t=fe(t);var r=T(t),i=e.display.externalMeasured=new yt(e.doc,t,r);i.lineN=r;var o=i.built=ft(e,i);return i.text=o.pre,n(e.display.lineMeasure,o.pre),i}function Kt(e,t,n,r){return Jt(e,$t(e,t),n,r)}function Xt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=u-s,i=o-1,t>=u&&(a="right")),null!=i){if(r=e[l+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[(l-=3)+2],a="left";if("right"==n&&i==u-s)for(;l=0&&(n=e[i]).left==n.right;i--);return n}function en(e,t,n,r){var i,o=Qt(t.map,n,r),a=o.node,s=o.start,u=o.end,l=o.collapse;if(3==a.nodeType){for(var c=0;c<4;c++){for(;s&&A(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+u0&&(l=r="right");var f;i=e.options.lineWrapping&&(f=a.getClientRects()).length>1?f["right"==r?f.length-1:0]:a.getBoundingClientRect()}if(oa&&aa<9&&!s&&(!i||!i.left&&!i.right)){var p=a.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+bn(e.display),top:p.top,bottom:p.bottom}:is}for(var d=i.top-t.rect.top,h=i.bottom-t.rect.top,v=(d+h)/2,m=t.view.measure.heights,g=0;g=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!u)return a("before"==c?l-1:l,"before"==c);var f=we(u,l,c),p=Ba,d=s(l,f,"before"==c);return null!=p&&(d.other=s(l,p,"before"!=c)),d}function pn(e,t){var n=0;t=W(e.doc,t),e.options.lineWrapping||(n=bn(e.display)*t.ch);var r=k(e.doc,t.line),i=ye(r)+Bt(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function dn(e,t,n,r,i){var o=F(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function hn(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return dn(r.first,0,null,!0,-1);var i=M(r,n),o=r.first+r.size-1;if(i>o)return dn(r.first+r.size-1,k(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=k(r,i);;){var s=gn(e,a,i,t,n),u=le(a),l=u&&u.find(0,!0);if(!u||!(s.ch>l.from.ch||s.ch==l.from.ch&&s.xRel>0))return s;i=T(a=l.to.line)}}function vn(e,t,n,r){var i=function(r){return un(e,t,Jt(e,n,r),"line")},o=t.text.length,a=C(function(e){return i(e-1).bottom<=r},o,0);return o=C(function(e){return i(e).top>r},a,o),{begin:a,end:o}}function mn(e,t,n,r){var i=un(e,t,Jt(e,n,r),"line").top;return vn(e,t,n,i)}function gn(e,t,n,r,i){i-=ye(t);var o,a=0,s=t.text.length,u=$t(e,t),l=Ae(t,e.doc.direction);if(l){if(e.options.lineWrapping){var c;c=vn(e,t,u,i),a=c.begin,s=c.end,c}o=new F(n,a);var f,p,d=fn(e,o,"line",t,u).left,h=dMath.abs(f)){if(v<0==f<0)throw new Error("Broke out of infinite loop in coordsCharInner");o=p}}else{var m=C(function(n){var o=un(e,t,Jt(e,u,n),"line");return o.top>i?(s=Math.min(n,s),!0):!(o.bottom<=i)&&(o.left>r||!(o.rightg.right?1:0,o}function yn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Za){Za=r("pre");for(var i=0;i<49;++i)Za.appendChild(document.createTextNode("x")),Za.appendChild(r("br"));Za.appendChild(document.createTextNode("x"))}n(e.measure,Za);var o=Za.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function bn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),i=r("pre",[t]);n(e.measure,i);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function xn(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:En(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function En(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function wn(e){var t=yn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/bn(e.display)-3);return function(i){if(me(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;r=e.display.viewTo||s.to().line3&&(i(d,v.top,null,v.bottom),d=c,v.bottomu.bottom||l.bottom==u.bottom&&l.right>u.right)&&(u=l),d0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Tn(e){e.state.focused||(e.display.input.focus(),Rn(e))}function Mn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Nn(e))},100)}function Rn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Oe(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),sa&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),On(e))}function Nn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Oe(e,"blur",e,t),e.state.focused=!1,_a(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Fn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.001||u<-.001)&&(O(i.line,o),In(i.line),i.rest))for(var l=0;l=a&&(o=M(t,ye(k(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function jn(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=En(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!da){var a=r("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Bt(e.display))+"px;\n height: "+(t.bottom-t.top+Wt(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function Vn(e,t,n,r){null==r&&(r=0);for(var i,o=0;o<5;o++){var a=!1,s=fn(e,t),u=n&&n!=t?fn(e,n):s;i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r};var l=qn(e,i),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&($n(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(Qn(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function Wn(e,t){var n=qn(e,t);null!=n.scrollTop&&$n(e,n.scrollTop),null!=n.scrollLeft&&Qn(e,n.scrollLeft)}function qn(e,t){var n=e.display,r=yn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Ht(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Ut(n),u=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(l?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=qt(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+f-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function Hn(e,t){null!=t&&(Kn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Gn(e){Kn(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?F(t.line,t.ch-1):t,r=F(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin}}function zn(e,t,n){null==t&&null==n||Kn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Yn(e,t){Kn(e),e.curOp.scrollToPos=t}function Kn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=pn(e,t.from),r=pn(e,t.to);Xn(e,n,r,t.margin)}}function Xn(e,t,n,r){var i=qn(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});zn(e,i.scrollLeft,i.scrollTop)}function $n(e,t){Math.abs(e.doc.scrollTop-t)<2||(ta||Dr(e,{top:t}),Jn(e,t,!0),ta&&Dr(e),Er(e,100))}function Jn(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Qn(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,jn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Zn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ut(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Wt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function er(e,t){t||(t=Zn(e));var n=e.display.barWidth,r=e.display.barHeight;tr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Fn(e),tr(e,Zn(e)),n=e.display.barWidth,r=e.display.barHeight}function tr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function nr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_a(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ss[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Wa(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Qn(e,t):$n(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function rr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++us},xt(e.curOp)}function ir(e){var t=e.curOp;wt(t,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ls(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function sr(e){e.updatedDisplay=e.mustUpdate&&Sr(e.cm,e.update)}function ur(e){var t=e.cm,n=t.display;e.updatedDisplay&&Fn(t),e.barMeasure=Zn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Kt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Wt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-qt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function lr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)ja&&he(e.doc,t)i.viewFrom?gr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)gr(e);else if(t<=i.viewFrom){var o=yr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):gr(e)}else if(n>=i.viewTo){var a=yr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):gr(e)}else{var s=yr(e,t,t,-1),u=yr(e,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(bt(e,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):gr(e)}var l=i.externalMeasured;l&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Cn(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);p(a,n)==-1&&a.push(n)}}}function gr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function yr(e,t,n,r){var i,o=Cn(e,t),a=e.display.view;if(!ja||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,u=0;u0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;he(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function br(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=bt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=bt(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Cn(e,n)))),r.viewTo=n}function xr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Xe(t.mode,et(e,t.frontier)),i=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(t.frontier>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength,u=Qe(e,o,s?Xe(t.mode,r):r,!0);o.styles=u.styles;var l=o.styleClasses,c=u.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),p=0;!f&&pn)return Er(e,e.options.workDelay),!0}),i.length&&fr(e,function(){for(var t=0;t=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==xr(e))return!1;Bn(e)&&(gr(e),n.dims=xn(e));var o=i.first+i.size,a=Math.max(n.visible.from-e.options.viewportMargin,i.first),s=Math.min(o,n.visible.to+e.options.viewportMargin);r.viewFroms&&r.viewTo-s<20&&(s=Math.min(o,r.viewTo)),ja&&(a=he(e.doc,a),s=ve(e.doc,s));var u=a!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;br(e,a,s),r.viewOffset=ye(k(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var l=xr(e);if(!u&&0==l&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=_r(e);return l>4&&(r.lineDiv.style.display="none"),Pr(e,r.updateLineNumbers,n.dims),l>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Cr(c),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,u&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,Er(e,400)),r.updateLineNumbers=null,!0}function kr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=qt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ut(e.display)-Ht(e),n.top)}),t.visible=Ln(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Sr(e,t);r=!1){Fn(e);var i=Zn(e);Sn(e),er(e,i),Tr(e,i)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Dr(e,t){var n=new ls(e,t);if(Sr(e,n)){Fn(e),kr(e,n);var r=Zn(e);Sn(e),er(e,r),Tr(e,r),n.finish()}}function Pr(e,n,r){function i(t){var n=t.nextSibling;return sa&&ga&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,s=o.lineDiv,u=s.firstChild,l=o.view,c=o.viewFrom,f=0;f-1&&(h=!1),Ct(e,d,c,r)),h&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(N(e.options,c)))),u=d.node.nextSibling}else{var v=Rt(e,d,c,r);s.insertBefore(v,u)}c+=d.size}for(;u;)u=i(u)}function Or(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Tr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Wt(e)+"px"}function Mr(e){var n=e.display.gutters,i=e.options.gutters;t(n);for(var o=0;o-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Nr(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Fr(e){var t=Nr(e);return t.x*=fs,t.y*=fs,t}function Ir(e,t){var n=Nr(t),r=n.x,i=n.y,o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||i&&u){if(i&&ga&&sa)e:for(var l=t.target,c=o.view;l!=a;l=l.parentNode)for(var f=0;f=0){var a=U(o.from(),i.from()),s=B(o.to(),i.to()),u=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new ds(u?s:a,u?a:s))}}return new ps(e,t)}function jr(e,t){return new ps([new ds(e,t||e)],0)}function Br(e){return e.text?F(e.from.line+e.text.length-1,v(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ur(e,t){if(I(e,t.from)<0)return e;if(I(e,t.to)<=0)return Br(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Br(t).ch-t.to.ch),F(n,r)}function Vr(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}At(e,"change",e,t)}function Kr(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),v(e.done)):void 0}function ni(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>s-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=ti(i,i.lastOp==r)))a=v(o.changes),0==I(t.from,t.to)&&0==I(t.from,a.to)?a.to=Br(t):o.changes.push(Zr(e,t));else{var u=v(i.done);for(u&&u.ranges||oi(e.sel,i.done),o={changes:[Zr(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Oe(e,"historyAdded")}function ri(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ii(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ri(e,o,v(i.done),t))?i.done[i.done.length-1]=t:oi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&ei(i.undone)}function oi(e,t){var n=v(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ai(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function si(e){if(!e)return null;for(var t,n=0;n-1&&(v(s)[f]=l[f],delete l[f])}}}return r}function fi(e,t,n,r){if(e.cm&&e.cm.display.shift||e.extend){var i=t.anchor;if(r){var o=I(n,i)<0;o!=I(r,i)<0?(i=n,n=r):o!=I(n,r)<0&&(n=r)}return new ds(i,n)}return new ds(r||n,n)}function pi(e,t,n,r){yi(e,new ps([fi(e,e.sel.primary(),t,n)],0),r)}function di(e,t,n){for(var r=[],i=0;i=t.ch:s.to>t.ch))){if(i&&(Oe(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var l=u.find(r<0?1:-1),c=void 0;if((r<0?u.inclusiveRight:u.inclusiveLeft)&&(l=Ci(e,l,-r,l&&l.line==t.line?o:null)),l&&l.line==t.line&&(c=I(l,n))&&(r<0?c<0:c>0))return Ai(e,l,t,r,i)}var f=u.find(r<0?-1:1);return(r<0?u.inclusiveLeft:u.inclusiveRight)&&(f=Ci(e,f,r,f.line==t.line?o:null)),f?Ai(e,f,t,r,i):null}}return t}function _i(e,t,n,r,i){var o=r||1,a=Ai(e,t,n,o,i)||!i&&Ai(e,t,n,o,!0)||Ai(e,t,n,-o,i)||!i&&Ai(e,t,n,-o,!0);return a?a:(e.cantEdit=!0,F(e.first,0))}function Ci(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?W(e,F(t.line-1)):null:n>0&&t.ch==(r||k(e,t.line)).text.length?t.line=0;--i)Pi(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text});else Pi(e,t)}}function Pi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=I(t.from,t.to)){var n=Vr(e,t);ni(e,t,n,e.cm?e.cm.curOp.id:NaN),Mi(e,t,n,Z(e,t));var r=[];Kr(e,function(e,n){n||p(r,e.history)!=-1||(Li(e.history,t),r.push(e.history)),Mi(e,t,null,Z(e,t))})}}function Oi(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var r,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,u=0;u=0;--d){var h=f(d);if(h)return h.v}}}}function Ti(e,t){if(0!=t&&(e.first+=t,e.sel=new ps(m(e.sel.ranges,function(e){return new ds(F(e.anchor.line+t,e.anchor.ch),F(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){vr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:F(o,k(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=D(e,t.from,t.to),n||(n=Vr(e,t)),e.cm?Ri(e.cm,t,r):Yr(e,t,r),bi(e,n,Ta)}}function Ri(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,u=o.line;e.options.lineWrapping||(u=T(fe(k(r,o.line))),r.iter(u,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Me(e),Yr(r,t,n,wn(e)),e.options.lineWrapping||(r.iter(u,o.line+t.text.length,function(e){var t=be(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,o.line),Er(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?vr(e):o.line!=a.line||1!=t.text.length||zr(e.doc,t)?vr(e,o.line,a.line+1,l):mr(e,o.line,"text");var c=Re(e,"changes"),f=Re(e,"change");if(f||c){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&At(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function Ni(e,t,n,r,i){if(r||(r=n),I(r,n)<0){var o=r;r=n,n=o}"string"==typeof t&&(t=e.splitLines(t)),Di(e,{from:n,to:r,text:t,origin:i})}function Fi(e,t,n,r){n0||0==s&&a.clearWhenEmpty!==!1)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=i("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ce(e,t.line,t,n,a)||t.line!=n.line&&ce(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");z()}a.addToHistory&&ni(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var u,l=t.line,f=e.cm;if(e.iter(l,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&fe(e)==f.display.maxLine&&(u=!0),a.collapsed&&l!=t.line&&O(e,0),$(e,new Y(a,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),a.collapsed&&e.iter(t.line,n.line+1,function(t){me(e,t)&&O(t,0)}),a.clearOnEnter&&Wa(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(G(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()), -a.collapsed&&(a.id=++gs,a.atomic=!0),f){if(u&&(f.curOp.updateMaxLine=!0),a.collapsed)vr(f,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var p=t.line;p<=n.line;p++)mr(f,p,"text");a.atomic&&Ei(f.doc),At(f,"markerAdded",f,a)}return a}function Wi(e,t,n,r,i){r=c(r),r.shared=!1;var o=[Vi(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Kr(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Vi(e,W(e,t),W(e,n),r,i));for(var u=0;u-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var l=e.dataTransfer.getData("Text");if(l){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),bi(t.doc,jr(n,n)),c)for(var f=0;f=0;t--)Ni(e.doc,"",r[t].from,r[t].to,"+delete");Gn(e)})}function so(e,t){var n=k(e.doc,t),r=fe(n);return r!=n&&(t=T(r)),Se(!0,e,r,t,1)}function uo(e,t){var n=k(e.doc,t),r=pe(n);return r!=n&&(t=T(r)),Se(!0,e,n,t,-1)}function lo(e,t){var n=so(e,t.line),r=k(e.doc,n.line),i=Ae(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return F(n.line,a?0:o,n.sticky)}return n}function co(e,t,n){if("string"==typeof t&&(t=Ts[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=Oa}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function fo(e,t,n){for(var r=0;ri-400&&0==I(Os.pos,n)?r="triple":Ps&&Ps.time>i-400&&0==I(Ps.pos,n)?(r="double",Os={time:i,pos:n}):(r="single",Ps={time:i,pos:n});var o,s=e.doc.sel,u=ga?t.metaKey:t.ctrlKey;e.options.dragDrop&&qa&&!e.isReadOnly()&&"single"==r&&(o=s.contains(n))>-1&&(I((o=s.ranges[o]).from(),n)<0||n.xRel>0)&&(I(o.to(),n)>0||n.xRel<0)?wo(e,t,n,u):Ao(e,t,n,r,u)}function wo(e,t,n,r){var i=e.display,o=!1,a=pr(e,function(t){sa&&(i.scroller.draggable=!1),e.state.draggingText=!1,Pe(document,"mouseup",a),Pe(document,"mousemove",s),Pe(i.scroller,"dragstart",u),Pe(i.scroller,"drop",a),o||(Fe(t),r||pi(e.doc,n),sa||oa&&9==aa?setTimeout(function(){document.body.focus(),i.input.focus()},20):i.input.focus())}),s=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return o=!0};sa&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=ga?t.altKey:t.ctrlKey,i.scroller.dragDrop&&i.scroller.dragDrop(),Wa(document,"mouseup",a),Wa(document,"mousemove",s),Wa(i.scroller,"dragstart",u),Wa(i.scroller,"drop",a),Mn(e),setTimeout(function(){return i.input.focus()},20)}function Ao(e,t,n,r,i){function o(t){if(0!=I(b,t))if(b=t,"rect"==r){for(var i=[],o=e.options.tabSize,a=f(k(c,n.line).text,n.ch,o),s=f(k(c,t.line).text,t.ch,o),u=Math.min(a,s),l=Math.max(a,s),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var y=k(c,m).text,x=d(y,u,o);u==l?i.push(new ds(F(m,x),F(m,x))):y.length>x&&i.push(new ds(F(m,x),F(m,d(y,l,o))))}i.length||i.push(new ds(n,n)),yi(c,Lr(v.ranges.slice(0,h).concat(i),h),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var E=p,w=E.anchor,A=t;if("single"!=r){var _;_="double"==r?e.findWordAt(t):new ds(F(t.line,0),W(c,F(t.line+1,0))),I(_.anchor,w)>0?(A=_.head,w=U(E.from(),_.anchor)):(A=_.anchor,w=B(E.to(),_.head))}var C=v.ranges.slice(0);C[h]=new ds(W(c,w),A),yi(c,Lr(C,h),Ma)}}function s(t){var n=++E,i=_n(e,t,!0,"rect"==r);if(i)if(0!=I(i,b)){e.curOp.focus=a(),o(i);var u=Ln(l,c);(i.line>=u.to||i.linex.bottom?20:0;f&&setTimeout(pr(e,function(){E==n&&(l.scroller.scrollTop+=f,s(t))}),50)}}function u(t){e.state.selectingText=!1,E=1/0,Fe(t),l.input.focus(),Pe(document,"mousemove",w),Pe(document,"mouseup",A),c.history.lastSelOrigin=null}var l=e.display,c=e.doc;Fe(t);var p,h,v=c.sel,m=v.ranges;if(i&&!t.shiftKey?(h=c.sel.contains(n),p=h>-1?m[h]:new ds(n,n)):(p=c.sel.primary(),h=c.sel.primIndex),ya?t.shiftKey&&t.metaKey:t.altKey)r="rect",i||(p=new ds(n,n)),n=_n(e,t,!0,!0),h=-1;else if("double"==r){var g=e.findWordAt(n);p=e.display.shift||c.extend?fi(c,p,g.anchor,g.head):g}else if("triple"==r){var y=new ds(F(n.line,0),W(c,F(n.line+1,0)));p=e.display.shift||c.extend?fi(c,p,y.anchor,y.head):y}else p=fi(c,p,n);i?h==-1?(h=m.length,yi(c,Lr(m.concat([p]),h),{scroll:!1,origin:"*mouse"})):m.length>1&&m[h].empty()&&"single"==r&&!t.shiftKey?(yi(c,Lr(m.slice(0,h).concat(m.slice(h+1)),0),{scroll:!1,origin:"*mouse"}),v=c.sel):hi(c,h,p,Ma):(h=0,yi(c,new ps([p],0),Ma),v=c.sel);var b=n,x=l.wrapper.getBoundingClientRect(),E=0,w=pr(e,function(e){Ue(e)?s(e):u(e)}),A=pr(e,u);e.state.selectingText=A,Wa(document,"mousemove",w),Wa(document,"mouseup",A)}function _o(e,t,n,r){var i,o;try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Fe(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Re(e,n))return Le(t);o-=s.top-a.viewOffset;for(var u=0;u=i){var c=M(e.doc,o),f=e.options.gutters[u];return Oe(e,n,e,c,f,t),Le(t)}}}function Co(e,t){return _o(e,t,"gutterClick",!0)}function So(e,t){jt(e.display,t)||ko(e,t)||Te(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function ko(e,t){return!!Re(e,"gutterContextMenu")&&_o(e,t,"gutterContextMenu",!1)}function Do(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),on(e)}function Po(e){function t(t,r,i,o){e.defaults[t]=r,i&&(n[t]=o?function(e,t,n){n!=Ns&&i(e,t,n)}:i)}var n=e.optionHandlers;e.defineOption=t,e.Init=Ns,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Hr(e)},!0),t("indentUnit",2,Hr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Gr(e),on(e),vr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(o==-1)break;i=o+t.length,n.push(F(r,o))}r++});for(var i=n.length-1;i>=0;i--)Ni(e.doc,t,n[i],F(n[i].line,n[i].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ns&&e.refresh()}),t("specialCharPlaceholder",pt,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",ma?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!ba),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){Do(e),Oo(e)},!0),t("keyMap","default",function(e,t,n){var r=oo(t),i=n!=Ns&&oo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),t("extraKeys",null),t("lineWrapping",!1,Mo,!0),t("gutters",[],function(e){Rr(e.options),Oo(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?En(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return er(e)},!0),t("scrollbarStyle","native",function(e){nr(e),er(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Rr(e.options),Oo(e)},!0),t("firstLineNumber",1,Oo,!0),t("lineNumberFormatter",function(e){return e},Oo,!0),t("showCursorWhenSelecting",!1,Sn,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("readOnly",!1,function(e,t){"nocursor"==t?(Nn(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,To),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,Sn,!0),t("singleCursorHeightPerLine",!0,Sn,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Gr,!0),t("addModeClass",!1,Gr,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,Gr,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}function Oo(e){Mr(e),vr(e),jn(e)}function To(e,t,n){var r=n&&n!=Ns;if(!t!=!r){var i=e.display.dragFunctions,o=t?Wa:Pe;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Mo(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_a(e.display.wrapper,"CodeMirror-wrap"),xe(e)),An(e),vr(e),on(e),setTimeout(function(){return er(e)},100)}function Ro(e,t){var n=this;if(!(this instanceof Ro))return new Ro(e,t);this.options=t=t?c(t):{},c(Fs,t,!1),Rr(t);var r=t.value;"string"==typeof r&&(r=new Es(r,t.mode,null,t.lineSeparator,t.direction)),this.doc=r;var i=new Ro.inputStyles[t.inputStyle](this),o=this.display=new S(e,r,i);o.wrapper.CodeMirror=this,Mr(this),Do(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),nr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Sa,keySeq:null,specialChars:null},t.autofocus&&!ma&&o.input.focus(),oa&&aa<11&&setTimeout(function(){return n.display.input.reset(!0)},20),No(this),Ji(),rr(this),this.curOp.forceUpdate=!0,Xr(this,r),t.autofocus&&!ma||this.hasFocus()?setTimeout(l(Rn,this),20):Nn(this);for(var a in Is)Is.hasOwnProperty(a)&&Is[a](n,t[a],Ns);Bn(this),t.finishInit&&t.finishInit(this);for(var s=0;s400}var i=e.display;Wa(i.scroller,"mousedown",pr(e,xo)),oa&&aa<11?Wa(i.scroller,"dblclick",pr(e,function(t){if(!Te(e,t)){var n=_n(e,t);if(n&&!Co(e,t)&&!jt(e.display,t)){Fe(t);var r=e.findWordAt(n);pi(e.doc,r.anchor,r.head)}}})):Wa(i.scroller,"dblclick",function(t){return Te(e,t)||Fe(t)}),Aa||Wa(i.scroller,"contextmenu",function(t){return So(e,t)});var o,a={end:0};Wa(i.scroller,"touchstart",function(t){if(!Te(e,t)&&!n(t)){i.input.ensurePolled(),clearTimeout(o);var r=+new Date;i.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null},1==t.touches.length&&(i.activeTouch.left=t.touches[0].pageX,i.activeTouch.top=t.touches[0].pageY)}}),Wa(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Wa(i.scroller,"touchend",function(n){var o=i.activeTouch;if(o&&!jt(i,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,s=e.coordsChar(i.activeTouch,"page");a=!o.prev||r(o,o.prev)?new ds(s,s):!o.prev.prev||r(o,o.prev.prev)?e.findWordAt(s):new ds(F(s.line,0),W(e.doc,F(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Fe(n)}t()}),Wa(i.scroller,"touchcancel",t),Wa(i.scroller,"scroll",function(){i.scroller.clientHeight&&($n(e,i.scroller.scrollTop),Qn(e,i.scroller.scrollLeft,!0),Oe(e,"scroll",e))}),Wa(i.scroller,"mousewheel",function(t){return Ir(e,t)}),Wa(i.scroller,"DOMMouseScroll",function(t){return Ir(e,t)}),Wa(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(t){Te(e,t)||je(t)},over:function(t){Te(e,t)||(Ki(e,t),je(t))},start:function(t){return Yi(e,t)},drop:pr(e,zi),leave:function(t){Te(e,t)||Xi(e)}};var s=i.input.getField();Wa(s,"keyup",function(t){return yo.call(e,t)}),Wa(s,"keydown",pr(e,mo)),Wa(s,"keypress",pr(e,bo)),Wa(s,"focus",function(t){return Rn(e,t)}),Wa(s,"blur",function(t){return Nn(e,t)})}function Fo(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=et(e,t):n="prev");var a=e.options.tabSize,s=k(o,t),u=f(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(l=o.mode.indent(i,s.text.slice(c.length),s.text),l==Oa||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?f(k(o,t-1).text,null,a):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var p="",d=0;if(e.options.indentWithTabs)for(var v=Math.floor(l/a);v;--v)d+=a,p+="\t";if(d1)if(js&&js.text.join("\n")==t){if(r.ranges.length%js.text.length==0){u=[];for(var l=0;l=0;f--){var p=r.ranges[f],d=p.from(),h=p.to();p.empty()&&(n&&n>0?d=F(d.line,d.ch-n):e.state.overwrite&&!a?h=F(h.line,Math.min(k(o,h.line).text.length,h.ch+v(s).length)):js&&js.lineWise&&js.text.join("\n")==t&&(d=h=F(d.line,0))),c=e.curOp.updateInput;var g={from:d,to:h,text:u?u[f%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};Di(e.doc,g),At(e,"inputRead",e,g)}t&&!a&&Bo(e,t),Gn(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function jo(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||fr(t,function(){return Lo(t,n,0,null,"paste")}),!0}function Bo(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Fo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(k(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Fo(e,i.head.line,"smart"));a&&At(e,"electricInput",e,i.head.line)}}}function Uo(e){for(var t=[],n=[],r=0;r=e.first+e.size)&&(t=new F(r,t.ch,t.sticky),l=k(e,r))}function a(r){var a;if(a=i?ke(e.cm,l,t,n):Ce(l,t,n),null==a){if(r||!o())return!1;t=Se(i,e.cm,l,t.line,n)}else t=a;return!0}var s=t,u=n,l=k(e,t.line);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||a(!d);d=!1){var h=l.text.charAt(t.ch)||"\n",v=E(h,p)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||d||v||(v="s"),c&&c!=v){n<0&&(n=1,a(),t.sticky="after");break}if(v&&(c=v),n>0&&!a(!d))break}var m=_i(e,t,s,u,!0);return L(s,m)&&(m.hitSide=!0),m}function Ho(e,t,n,r){var i,o=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*yn(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(var l;l=hn(e,a,i),l.outside;){if(n<0?i<=0:i>=o.height){l.hitSide=!0;break}i+=5*n}return l}function Go(e,t){var n=Xt(e,t.line);if(!n||n.hidden)return null;var r=k(e.doc,t.line),i=zt(n,r,t.line),o=Ae(r,e.doc.direction),a="left";if(o){var s=we(o,t.ch);a=s%2?"right":"left"}var u=Qt(i.map,t.ch,a);return u.offset="right"==u.collapse?u.end:u.start,u}function zo(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Yo(e,t){return t&&(e.bad=!0),e}function Ko(e,t,n,r,i){function o(e){return function(t){return t.id==e}}function a(){c&&(l+=f,c=!1)}function s(e){e&&(a(),l+=e)}function u(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void s(n||t.textContent.replace(/\u200b/g,""));var l,p=t.getAttribute("cm-marker");if(p){var d=e.findMarks(F(r,0),F(i+1,0),o(+p));return void(d.length&&(l=d[0].find())&&s(D(e.doc,l.from,l.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p)$/i.test(t.nodeName);h&&a();for(var v=0;v=15&&(ca=!1,sa=!0);var Ea,wa=ga&&(ua||ca&&(null==xa||xa<12.11)),Aa=ta||oa&&aa>=9,_a=function(t,n){var r=t.className,i=e(n).exec(r);if(i){var o=r.slice(i.index+i[0].length);t.className=r.slice(0,i.index)+(o?i[1]+o:"")}};Ea=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ca=function(e){e.select()};ha?Ca=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:oa&&(Ca=function(e){try{e.select()}catch(e){}});var Sa=function(){this.id=null};Sa.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var ka,Da,Pa=30,Oa={toString:function(){return"CodeMirror.Pass"}},Ta={scroll:!1},Ma={origin:"*mouse"},Ra={origin:"+move"},Na=[""],Fa=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ia=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,La=!1,ja=!1,Ba=null,Ua=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,u=/[1n]/;return function(n,r){ -var l="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!i.test(n))return!1;for(var c=n.length,f=[],p=0;p=this.string.length},Ja.prototype.sol=function(){return this.pos==this.lineStart},Ja.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ja.prototype.next=function(){if(this.post},Ja.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},Ja.prototype.skipToEnd=function(){this.pos=this.string.length},Ja.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ja.prototype.backUp=function(e){this.pos-=e},Ja.prototype.column=function(){return this.lastColumnPos0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return t!==!1&&(this.pos+=e.length),!0},Ja.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ja.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};var Qa=function(e,t,n){this.text=e,re(this,t),this.height=n?n(this):1};Qa.prototype.lineNo=function(){return T(this)},Ne(Qa);var Za,es={},ts={},ns=null,rs=null,is={left:0,right:0,top:0,bottom:0},os=function(e,t,n){this.cm=n;var i=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(i),e(o),Wa(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),Wa(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,oa&&aa<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};os.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},os.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},os.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},os.prototype.zeroWidthHack=function(){var e=ga&&!pa?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Sa,this.disableVert=new Sa},os.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},os.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var as=function(){};as.prototype.update=function(){return{bottom:0,right:0}},as.prototype.setScrollLeft=function(){},as.prototype.setScrollTop=function(){},as.prototype.clear=function(){};var ss={native:os,null:as},us=0,ls=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Ln(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=qt(e),this.force=n,this.dims=xn(e),this.events=[]};ls.prototype.signal=function(e,t){Re(e,t)&&this.events.push(arguments)},ls.prototype.finish=function(){for(var e=this,t=0;t=0&&I(e,i.to())<=0)return r}return-1};var ds=function(e,t){this.anchor=e,this.head=t};ds.prototype.from=function(){return U(this.anchor,this.head)},ds.prototype.to=function(){return B(this.anchor,this.head)},ds.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};var hs=function(e){var t=this;this.lines=e,this.parent=null;for(var n=0,r=0;r1||!(this.children[0]instanceof hs))){var u=[];this.collapse(u),this.children=[new hs(u)],this.children[0].parent=this}},vs.prototype.collapse=function(e){for(var t=this,n=0;n50){for(var s=o.lines.length%25+25,u=s;u10);e.parent.maybeSpill()}},vs.prototype.iterN=function(e,t,n){for(var r=this,i=0;it.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&vr(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ei(t.doc)),t&&At(t,"markerCleared",t,this,i,o),n&&ir(t),this.parent&&this.parent.clear()}},ys.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,i,o=0;o=0;l--)Di(r,i[l]);u?gi(this,u):this.cm&&Gn(this.cm)}),undo:hr(function(){Oi(this,"undo")}),redo:hr(function(){Oi(this,"redo")}),undoSelection:hr(function(){Oi(this,"undo",!0)}),redoSelection:hr(function(){Oi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=W(this,e),t=W(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&i!=e.line||null!=u.from&&i==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re?(t=e,!0):(e-=o,void++n)}),W(this,F(n,t))},indexFromPos:function(e){e=W(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)i=new F(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),F(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=k(e.doc,i.line-1).text;a&&(i=new F(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),F(i.line-1,a.length-1),i,"+transpose"))}n.push(new ds(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return fr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;rr&&(Fo(t,o.head.line,e,!0), -r=o.head.line,i==t.doc.sel.primIndex&&Gn(t));else{var a=o.from(),s=o.to(),u=Math.max(r,a.line);r=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var l=u;l0&&hi(t.doc,i,new ds(a,c[i].to()),Ta)}}}),getTokenAt:function(e,t){return it(this,e,t)},getLineTokens:function(e,t){return it(this,F(e),t,!0)},getTokenTypeAt:function(e){e=W(this.doc,e);var t,n=Ze(this,k(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=k(this.doc,e)}else r=e;return un(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-ye(r):0)},defaultTextHeight:function(){return yn(this.display)},defaultCharWidth:function(){return bn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=fn(this,W(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var u=Math.max(o.wrapper.clientHeight,this.doc.height),l=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(a=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&Wn(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:dr(mo),triggerOnKeyPress:dr(bo),triggerOnKeyUp:yo,execCommand:function(e){if(Ts.hasOwnProperty(e))return Ts[e].call(null,this)},triggerElectric:dr(function(e){Bo(this,e)}),findPosH:function(e,t,n,r){var i=this,o=1;t<0&&(o=-1,t=-t);for(var a=W(this.doc,e),s=0;s0&&s(n.charAt(r-1));)--r;for(;i.5)&&An(this),Oe(this,"refresh",this)}),swapDoc:dr(function(e){var t=this.doc;return t.cm=null,Xr(this,e),on(this),this.display.input.reset(),zn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,At(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ne(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}},Us=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Sa,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Us.prototype.init=function(e){function t(e){if(!Te(i,e)){if(i.somethingSelected())Io({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Uo(i);Io({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Ta),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=js.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=Wo(),s=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),s.value=js.text.join("\n");var u=document.activeElement;Ca(s),setTimeout(function(){i.display.lineSpace.removeChild(a),u.focus(),u==o&&r.showPrimarySelection()},50)}}var n=this,r=this,i=r.cm,o=r.div=e.lineDiv;Vo(o,i.options.spellcheck),Wa(o,"paste",function(e){Te(i,e)||jo(e,i)||aa<=11&&setTimeout(pr(i,function(){return n.updateFromDOM()}),20)}),Wa(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),Wa(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),Wa(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),Wa(o,"touchstart",function(){return r.forceCompositionEnd()}),Wa(o,"input",function(){n.composing||n.readFromDOMSoon()}),Wa(o,"copy",t),Wa(o,"cut",t)},Us.prototype.prepareSelection=function(){var e=kn(this.cm,!1);return e.focus=this.cm.state.focused,e},Us.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Us.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&Go(t,r)||{node:s[0].measure.map[2],offset:0},l=i.linee.firstLine()&&(r=F(r.line-1,k(e.doc,r.line-1).length)),i.ch==k(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,a,s;r.line==t.viewFrom||0==(o=Cn(e,r.line))?(a=T(t.view[0].line),s=t.view[0].node):(a=T(t.view[o].line),s=t.view[o-1].node.nextSibling);var u,l,c=Cn(e,i.line);if(c==t.view.length-1?(u=t.viewTo-1,l=t.lineDiv.lastChild):(u=T(t.view[c+1].line)-1,l=t.view[c+1].node.previousSibling),!s)return!1;for(var f=e.doc.splitLines(Ko(e,s,l,a,u)),p=D(e.doc,F(a,0),F(u,k(e.doc,u).text.length));f.length>1&&p.length>1;)if(v(f)==v(p))f.pop(),p.pop(),u--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),a++}for(var d=0,h=0,m=f[0],g=p[0],y=Math.min(m.length,g.length);dr.ch&&b.charCodeAt(b.length-h-1)==x.charCodeAt(x.length-h-1);)d--,h++;f[f.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var w=F(a,d),A=F(u,p.length?v(p).length-h:0);return f.length>1||f[0]||I(w,A)?(Ni(e.doc,f,w,A,"+input"),!0):void 0},Us.prototype.ensurePolled=function(){this.forceCompositionEnd()},Us.prototype.reset=function(){this.forceCompositionEnd()},Us.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Us.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Us.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||fr(this.cm,function(){return vr(e.cm)})},Us.prototype.setUneditable=function(e){e.contentEditable="false"},Us.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||pr(this.cm,Lo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Us.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Us.prototype.onContextMenu=function(){},Us.prototype.resetPosition=function(){},Us.prototype.needsContentAttribute=!0;var Vs=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Sa,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null};Vs.prototype.init=function(e){function t(e){if(!Te(i,e)){if(i.somethingSelected())Io({lineWise:!1,text:i.getSelections()}),r.inaccurateSelection&&(r.prevInput="",r.inaccurateSelection=!1,a.value=js.text.join("\n"),Ca(a));else{if(!i.options.lineWiseCopyCut)return;var t=Uo(i);Io({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Ta):(r.prevInput="",a.value=t.text.join("\n"),Ca(a))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var n=this,r=this,i=this.cm,o=this.wrapper=Wo(),a=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),ha&&(a.style.width="0px"),Wa(a,"input",function(){oa&&aa>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),Wa(a,"paste",function(e){Te(i,e)||jo(e,i)||(i.state.pasteIncoming=!0,r.fastPoll())}),Wa(a,"cut",t),Wa(a,"copy",t),Wa(e.scroller,"paste",function(t){jt(e,t)||Te(i,t)||(i.state.pasteIncoming=!0,r.focus())}),Wa(e.lineSpace,"selectstart",function(t){jt(e,t)||Fe(t)}),Wa(a,"compositionstart",function(){var e=i.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Wa(a,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Vs.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=kn(e);if(e.options.moveInputWithCursor){var i=fn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Vs.prototype.showSelection=function(e){var t=this.cm,r=t.display;n(r.cursorDiv,e.cursors),n(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Vs.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t,n,r=this.cm,i=r.doc;if(r.somethingSelected()){this.prevInput="";var o=i.sel.primary();t=za&&(o.to().line-o.from().line>100||(n=r.getSelection()).length>1e3);var a=t?"-":n||r.getSelection();this.textarea.value=a,r.state.focused&&Ca(this.textarea),oa&&aa>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",oa&&aa>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},Vs.prototype.getField=function(){return this.textarea},Vs.prototype.supportsTouch=function(){return!1},Vs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!ma||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},Vs.prototype.blur=function(){this.textarea.blur()},Vs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Vs.prototype.receivedFocus=function(){this.slowPoll()},Vs.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Vs.prototype.fastPoll=function(){function e(){var r=n.poll();r||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},Vs.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ga(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(oa&&aa>=9&&this.hasSelection===i||ga&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(r.length,i.length);a1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Vs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Vs.prototype.onKeyPress=function(){oa&&aa>=9&&(this.hasSelection=null),this.fastPoll()},Vs.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=i.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,r.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=f,a.style.cssText=c,oa&&aa<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=u),null!=a.selectionStart){(!oa||oa&&aa<9)&&t();var e=0,n=function(){o.selForContextMenu==i.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==r.prevInput?pr(i,Si)(i):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var r=this,i=r.cm,o=i.display,a=r.textarea,s=_n(i,e),u=o.scroller.scrollTop;if(s&&!ca){var l=i.options.resetSelectionOnContextMenu;l&&i.doc.sel.contains(s)==-1&&pr(i,yi)(i.doc,jr(s),Ta);var c=a.style.cssText,f=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var p=r.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(oa?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var d;if(sa&&(d=window.scrollY),o.input.focus(),sa&&window.scrollTo(null,d),o.input.reset(),i.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),oa&&aa>=9&&t(),Aa){je(e);var h=function(){Pe(window,"mouseup",h),setTimeout(n,20)};Wa(window,"mouseup",h)}else setTimeout(n,50)}},Vs.prototype.readOnlyChanged=function(e){e||this.reset()},Vs.prototype.setUneditable=function(){},Vs.prototype.needsContentAttribute=!1,Po(Ro),Bs(Ro);var Ws="iter insert remove copy getEditor constructor".split(" ");for(var qs in Es.prototype)Es.prototype.hasOwnProperty(qs)&&p(Ws,qs)<0&&(Ro.prototype[qs]=function(e){return function(){return e.apply(this.doc,arguments)}}(Es.prototype[qs]));return Ne(Es),Ro.inputStyles={textarea:Vs,contenteditable:Us},Ro.defineMode=function(e){Ro.defaults.mode||"null"==e||(Ro.defaults.mode=e),He.apply(this,arguments)},Ro.defineMIME=Ge,Ro.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ro.defineMIME("text/plain","null"),Ro.defineExtension=function(e,t){Ro.prototype[e]=t},Ro.defineDocExtension=function(e,t){Es.prototype[e]=t},Ro.fromTextArea=Jo,Qo(Ro),Ro.version="5.26.0",Ro})},function(e,t,n){!function(e){e(n(835),n(837),n(838))}(function(e){"use strict";function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode("jsx",function(r,i){function o(e){var t=e.tagName;e.tagName=null;var n=l.indent(e,"");return e.tagName=t,n}function a(e,t){return t.context.mode==l?s(e,t,t.context):u(e,t,t.context)}function s(n,i,s){if(2==s.depth)return n.match(/^.*?\*\//)?s.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){l.skipAttribute(s.state);var u=o(s.state),f=s.state.context;if(f&&n.match(/^[^>]*>\s*$/,!1)){for(;f.prev&&!f.startOfLine;)f=f.prev;f.startOfLine?u-=r.indentUnit:s.prev.state.lexical&&(u=s.prev.state.lexical.indented)}else 1==s.depth&&(u+=r.indentUnit);return i.context=new t(e.startState(c,u),c,0,i.context),null}if(1==s.depth){if("<"==n.peek())return l.skipAttribute(s.state),i.context=new t(e.startState(l,o(s.state)),l,0,i.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return s.depth=2,a(n,i)}var p,d=l.token(n,s.state),h=n.current();return/\btag\b/.test(d)?/>$/.test(h)?s.state.context?s.depth=0:i.context=i.context.prev:/^-1&&n.backUp(h.length-p),d}function u(n,r,i){if("<"==n.peek()&&c.expressionAllowed(n,i.state))return c.skipExpression(i.state),r.context=new t(e.startState(l,c.indent(i.state,"")),l,0,r.context),null;var o=c.token(n,i.state);if(!o&&null!=i.depth){var a=n.current();"{"==a?i.depth++:"}"==a&&0==--i.depth&&(r.context=r.context.prev)}return o}var l=e.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1}),c=e.getMode(r,i&&i.base||"javascript");return{startState:function(){return{context:new t(e.startState(c),c)}},copyState:function(e){return{context:n(e.context)}},token:a,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}},"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})},function(e,t,n){!function(e){e(n(835))}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};e.defineMode("xml",function(r,i){function o(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(u("atom","]]>")):null:e.match("--")?n(u("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(l(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=u("meta","?>"),"meta"):(S=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){var i;return i=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),i?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=o,S=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return S="equals",null;if("<"==n){t.tokenize=o,t.state=d,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=s(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function u(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=o;break}n.next()}return e}}function l(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=l(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=o;break}return n.tokenize=l(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(A.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function f(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!A.contextGrabbers.hasOwnProperty(n)||!A.contextGrabbers[n].hasOwnProperty(t))return;f(e)}}function d(e,t,n){return"openTag"==e?(n.tagStart=t.column(),h):"closeTag"==e?v:d}function h(e,t,n){return"word"==e?(n.tagName=t.current(),k="tag",y):(k="error",h)}function v(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&A.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==r||A.matchClosing===!1?(k="tag",m):(k="tag error",g)}return k="error",g}function m(e,t,n){return"endTag"!=e?(k="error",m):(f(n),d)}function g(e,t,n){return k="error",m(e,t,n)}function y(e,t,n){if("word"==e)return k="attribute",b;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||A.autoSelfClosers.hasOwnProperty(r)?p(n,r):(p(n,r),n.context=new c(n,r,i==n.indented)),d}return k="error",y}function b(e,t,n){return"equals"==e?x:(A.allowMissing||(k="error"),y(e,t,n))}function x(e,t,n){return"string"==e?E:"word"==e&&A.allowUnquoted?(k="string",y):(k="error",y(e,t,n))}function E(e,t,n){return"string"==e?E:y(e,t,n)}var w=r.indentUnit,A={},_=i.htmlMode?t:n;for(var C in _)A[C]=_[C];for(var C in i)A[C]=i[C];var S,k;return o.isInText=!0,{startState:function(e){var t={tokenize:o,state:d,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;S=null;var n=t.tokenize(e,t);return(n||S)&&"comment"!=n&&(k=null,t.state=t.state(S||n,e,t),k&&(n="error"==k?n+" error":k)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+w;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=o)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return A.multilineTagIndentPastTag!==!1?t.tagStart+t.tagName.length+2:t.tagStart+w*(A.multilineTagIndentFactor||1);if(A.alignCDATA&&/$/,blockCommentStart:"",configuration:A.htmlMode?"html":"xml",helperType:A.htmlMode?"html":"xml",skipAttribute:function(e){e.state==x&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},function(e,t,n){!function(e){e(n(835))}(function(e){"use strict";function t(e,t,n){return/^(?:operator|sof|keyword c|case|new|export|default|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}e.defineMode("javascript",function(n,r){function i(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function o(e,t,n){return Ce=e,Se=n,t}function a(e,n){var r=e.next();if('"'==r||"'"==r)return n.tokenize=s(r),n.tokenize(e,n);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return o("number","number");if("."==r&&e.match(".."))return o("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return o(r);if("="==r&&e.eat(">"))return o("=>","operator");if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),o("number","number");if("0"==r&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),o("number","number");if("0"==r&&e.eat(/b/i))return e.eatWhile(/[01]/i),o("number","number");if(/\d/.test(r))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),o("number","number");if("/"==r)return e.eat("*")?(n.tokenize=u,u(e,n)):e.eat("/")?(e.skipToEnd(),o("comment","comment")):t(e,n,1)?(i(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),o("regexp","string-2")):(e.eatWhile(Ne),o("operator","operator",e.current()));if("`"==r)return n.tokenize=l,l(e,n);if("#"==r)return e.skipToEnd(),o("error","error");if(Ne.test(r))return">"==r&&n.lexical&&">"==n.lexical.type||e.eatWhile(Ne),o("operator","operator",e.current());if(Me.test(r)){e.eatWhile(Me);var a=e.current(),c=Re.propertyIsEnumerable(a)&&Re[a];return c&&"."!=n.lastType?o(c.type,c.style,a):o("variable","variable",a)}}function s(e){return function(t,n){var r,i=!1;if(Pe&&"@"==t.peek()&&t.match(Fe))return n.tokenize=a,o("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=a),o("string","string")}}function u(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=a;break}r="*"==n}return o("comment","comment")}function l(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=a;break}r=!r&&"\\"==n}return o("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(Te){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),u=Ie.indexOf(s);if(u>=0&&u<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(u>=3&&u<6)++i;else if(Me.test(s))o=!0;else{if(/["'\/]/.test(s))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}function f(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function p(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0; -for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function d(e,t,n,r,i){var o=e.cc;for(je.state=e,je.stream=i,je.marked=null,je.cc=o,je.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var a=o.length?o.pop():Oe?A:w;if(a(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return je.marked?je.marked:"variable"==n&&p(e,r)?"variable-2":t}}}function h(){for(var e=arguments.length-1;e>=0;e--)je.cc.push(arguments[e])}function v(){return h.apply(null,arguments),!0}function m(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var n=je.state;if(je.marked="def",n.context){if(t(n.localVars))return;n.localVars={name:e,next:n.localVars}}else{if(t(n.globalVars))return;r.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}function g(){je.state.context={prev:je.state.context,vars:je.state.localVars},je.state.localVars=Be}function y(){je.state.localVars=je.state.context.vars,je.state.context=je.state.context.prev}function b(e,t){var n=function(){var n=je.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new f(r,je.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function x(){var e=je.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function E(e){function t(n){return n==e?v():";"==e?h():v(t)}return t}function w(e,t){return"var"==e?v(b("vardef",t.length),Q,E(";"),x):"keyword a"==e?v(b("form"),C,w,x):"keyword b"==e?v(b("form"),w,x):"{"==e?v(b("}"),G,x):";"==e?v():"if"==e?("else"==je.state.lexical.info&&je.state.cc[je.state.cc.length-1]==x&&je.state.cc.pop()(),v(b("form"),C,w,x,re)):"function"==e?v(le):"for"==e?v(b("form"),ie,w,x):"variable"==e?Te&&"type"==t?(je.marked="keyword",v(Y,E("operator"),Y,E(";"))):v(b("stat"),j):"switch"==e?v(b("form"),C,E("{"),b("}","switch"),G,x,x):"case"==e?v(A,E(":")):"default"==e?v(E(":")):"catch"==e?v(b("form"),g,E("("),ce,E(")"),w,x,y):"class"==e?v(b("form"),pe,x):"export"==e?v(b("stat"),me,x):"import"==e?v(b("stat"),ye,x):"module"==e?v(b("form"),Z,E("{"),b("}"),G,x,x):"async"==e?v(w):"@"==t?v(A,w):h(b("stat"),A,E(";"),x)}function A(e){return S(e,!1)}function _(e){return S(e,!0)}function C(e){return"("!=e?h():v(b(")"),A,E(")"),x)}function S(e,t){if(je.state.fatArrowAt==je.stream.start){var n=t?N:R;if("("==e)return v(g,b(")"),q(Z,")"),x,E("=>"),n,y);if("variable"==e)return h(g,Z,E("=>"),n,y)}var r=t?O:P;return Le.hasOwnProperty(e)?v(r):"function"==e?v(le,r):"class"==e?v(b("form"),fe,x):"keyword c"==e||"async"==e?v(t?D:k):"("==e?v(b(")"),k,E(")"),x,r):"operator"==e||"spread"==e?v(t?_:A):"["==e?v(b("]"),Ae,x,r):"{"==e?H(U,"}",null,r):"quasi"==e?h(T,r):"new"==e?v(F(t)):v()}function k(e){return e.match(/[;\}\)\],]/)?h():h(A)}function D(e){return e.match(/[;\}\)\],]/)?h():h(_)}function P(e,t){return","==e?v(A):O(e,t,!1)}function O(e,t,n){var r=0==n?P:O,i=0==n?A:_;return"=>"==e?v(g,n?N:R,y):"operator"==e?/\+\+|--/.test(t)?v(r):"?"==t?v(A,E(":"),i):v(i):"quasi"==e?h(T,r):";"!=e?"("==e?H(_,")","call",r):"."==e?v(B,r):"["==e?v(b("]"),k,E("]"),x,r):void 0:void 0}function T(e,t){return"quasi"!=e?h():"${"!=t.slice(t.length-2)?v(T):v(A,M)}function M(e){if("}"==e)return je.marked="string-2",je.state.tokenize=l,v(T)}function R(e){return c(je.stream,je.state),h("{"==e?w:A)}function N(e){return c(je.stream,je.state),h("{"==e?w:_)}function F(e){return function(t){return"."==t?v(e?L:I):h(e?_:A)}}function I(e,t){if("target"==t)return je.marked="keyword",v(P)}function L(e,t){if("target"==t)return je.marked="keyword",v(O)}function j(e){return":"==e?v(x,w):h(P,E(";"),x)}function B(e){if("variable"==e)return je.marked="property",v()}function U(e,t){return"async"==e?(je.marked="property",v(U)):"variable"==e||"keyword"==je.style?(je.marked="property",v("get"==t||"set"==t?V:W)):"number"==e||"string"==e?(je.marked=Pe?"property":je.style+" property",v(W)):"jsonld-keyword"==e?v(W):"modifier"==e?v(U):"["==e?v(A,E("]"),W):"spread"==e?v(A):":"==e?h(W):void 0}function V(e){return"variable"!=e?h(W):(je.marked="property",v(le))}function W(e){return":"==e?v(_):"("==e?h(le):void 0}function q(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=je.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),v(function(n,r){return n==t||r==t?h():h(e)},r)}return i==t||o==t?v():v(E(t))}return function(n,i){return n==t||i==t?v():h(e,r)}}function H(e,t,n){for(var r=3;r"==e)return v(Y)}function X(e,t){return"variable"==e||"keyword"==je.style?(je.marked="property",v(X)):"?"==t?v(X):":"==e?v(Y):"["==e?v(A,z,E("]"),X):void 0}function $(e){return"variable"==e?v($):":"==e?v(Y):void 0}function J(e,t){return"<"==t?v(b(">"),q(Y,">"),x,J):"|"==t||"."==e?v(Y):"["==e?v(E("]"),J):"extends"==t?v(Y):void 0}function Q(){return h(Z,z,te,ne)}function Z(e,t){return"modifier"==e?v(Z):"variable"==e?(m(t),v()):"spread"==e?v(Z):"["==e?H(Z,"]"):"{"==e?H(ee,"}"):void 0}function ee(e,t){return"variable"!=e||je.stream.match(/^\s*:/,!1)?("variable"==e&&(je.marked="property"),"spread"==e?v(Z):"}"==e?h():v(E(":"),Z,te)):(m(t),v(te))}function te(e,t){if("="==t)return v(_)}function ne(e){if(","==e)return v(Q)}function re(e,t){if("keyword b"==e&&"else"==t)return v(b("form","else"),w,x)}function ie(e){if("("==e)return v(b(")"),oe,E(")"),x)}function oe(e){return"var"==e?v(Q,E(";"),se):";"==e?v(se):"variable"==e?v(ae):h(A,E(";"),se)}function ae(e,t){return"in"==t||"of"==t?(je.marked="keyword",v(A)):v(P,se)}function se(e,t){return";"==e?v(ue):"in"==t||"of"==t?(je.marked="keyword",v(A)):h(A,E(";"),ue)}function ue(e){")"!=e&&v(A)}function le(e,t){return"*"==t?(je.marked="keyword",v(le)):"variable"==e?(m(t),v(le)):"("==e?v(g,b(")"),q(ce,")"),x,z,w,y):Te&&"<"==t?v(b(">"),q(Y,">"),x,le):void 0}function ce(e){return"spread"==e?v(ce):h(Z,z,te)}function fe(e,t){return"variable"==e?pe(e,t):de(e,t)}function pe(e,t){if("variable"==e)return m(t),v(de)}function de(e,t){return"<"==t?v(b(">"),q(Y,">"),x,de):"extends"==t||"implements"==t||Te&&","==e?v(Te?Y:A,de):"{"==e?v(b("}"),he,x):void 0}function he(e,t){return"variable"==e||"keyword"==je.style?("async"==t||"static"==t||"get"==t||"set"==t||Te&&("public"==t||"private"==t||"protected"==t||"readonly"==t||"abstract"==t))&&je.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(je.marked="keyword",v(he)):(je.marked="property",v(Te?ve:le,he)):"["==e?v(A,E("]"),Te?ve:le,he):"*"==t?(je.marked="keyword",v(he)):";"==e?v(he):"}"==e?v():"@"==t?v(A,he):void 0}function ve(e,t){return"?"==t?v(ve):":"==e?v(Y,te):"="==t?v(_):h(le)}function me(e,t){return"*"==t?(je.marked="keyword",v(we,E(";"))):"default"==t?(je.marked="keyword",v(A,E(";"))):"{"==e?v(q(ge,"}"),we,E(";")):h(w)}function ge(e,t){return"as"==t?(je.marked="keyword",v(E("variable"))):"variable"==e?h(_,ge):void 0}function ye(e){return"string"==e?v():h(be,xe,we)}function be(e,t){return"{"==e?H(be,"}"):("variable"==e&&m(t),"*"==t&&(je.marked="keyword"),v(Ee))}function xe(e){if(","==e)return v(be,xe)}function Ee(e,t){if("as"==t)return je.marked="keyword",v(be)}function we(e,t){if("from"==t)return je.marked="keyword",v(A)}function Ae(e){return"]"==e?v():h(q(_,"]"))}function _e(e,t){return"operator"==e.lastType||","==e.lastType||Ne.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}var Ce,Se,ke=n.indentUnit,De=r.statementIndent,Pe=r.jsonld,Oe=r.json||Pe,Te=r.typescript,Me=r.wordCharacters||/[\w$\xa1-\uffff]/,Re=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("operator"),o={type:"atom",style:"atom"},a={if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:e("new"),delete:r,throw:r,debugger:r,var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r,async:e("async")};if(Te){var s={type:"variable",style:"variable-3"},u={interface:e("class"),implements:r,namespace:r,module:e("module"),enum:e("module"),public:e("modifier"),private:e("modifier"),protected:e("modifier"),abstract:e("modifier"),as:i,string:s,number:s,boolean:s,any:s};for(var l in u)a[l]=u[l]}return a}(),Ne=/[+\-*&%=<>!?|~^@]/,Fe=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Ie="([{}])",Le={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},je={state:null,column:null,marked:null,cc:null},Be={name:"this",next:{name:"arguments"}};return x.lex=!0,{startState:function(e){var t={tokenize:a,lastType:"sof",cc:[],lexical:new f((e||0)-ke,0,"block",!1),localVars:r.localVars,context:r.localVars&&{vars:r.localVars},indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=u&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==Ce?n:(t.lastType="operator"!=Ce||"++"!=Se&&"--"!=Se?Ce:"incdec",d(t,n,Ce,Se,e))},indent:function(t,n){if(t.tokenize==u)return e.Pass;if(t.tokenize!=a)return 0;var i,o=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var l=t.cc.length-1;l>=0;--l){var c=t.cc[l];if(c==x)s=s.prev;else if(c!=re)break}for(;("stat"==s.type||"form"==s.type)&&("}"==o||(i=t.cc[t.cc.length-1])&&(i==P||i==O)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;De&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,p=o==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info+1:0):"form"==f&&"{"==o?s.indented:"form"==f?s.indented+ke:"stat"==f?s.indented+(_e(t,n)?De||ke:0):"switch"!=s.info||p||0==r.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:ke):s.indented+(/^(?:case|default)\b/.test(n)?ke:2*ke)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Oe?null:"/*",blockCommentEnd:Oe?null:"*/",lineComment:Oe?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Oe?"json":"javascript",jsonldMode:Pe,jsonMode:Oe,expressionAllowed:t,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=A&&t!=_||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(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)}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function e(e,t){for(var n=0;n {\n class Comp extends React.Component {\n\n getChildContext() {\n return "+JSON.stringify(n)+";\n }\n\n render() {\n return (\n "+t+"\n );\n }\n }\n\n Comp.childContextTypes = "+o(n)+";\n\n return Comp;\n });\n ",{presets:["es2015","react","stage-1"]}).code:(0,_babelStandalone.transform)("\n (("+Object.keys(i).join(",")+", mountNode) => {\n "+t+"\n });\n ",{presets:["es2015","react","stage-1"]}).code},this._setTimeout=function(){for(var e=arguments.length,t=Array(e),n=0;n=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;if(e===s)return!0}}return!1}function u(e,t,n){if(e){var r=J.NODE_FIELDS[e.type];if(r){var i=r[t];i&&i.validate&&(i.optional&&null==n||i.validate(e,t,n))}}}function l(e,t){for(var n=(0,N.default)(t),r=n,i=Array.isArray(r),o=0,r=i?r:(0,M.default)(r);;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;if(e[s]!==t[s])return!1}return!0}function c(e,t,n){return e.object=J.memberExpression(e.object,e.property,e.computed),e.property=t,e.computed=!!n,e}function f(e,t){return e.object=J.memberExpression(t,e.object),e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body";return e[t]=J.toBlock(e[t],e)}function d(e){if(!e)return e;var t={};for(var n in e)"_"!==n[0]&&(t[n]=e[n]);return t}function h(e){var t=d(e);return delete t.loc,t}function v(e){if(!e)return e;var t={};for(var n in e)if("_"!==n[0]){var r=e[n];r&&(r.type?r=J.cloneDeep(r):Array.isArray(r)&&(r=r.map(J.cloneDeep))),t[n]=r}return t}function m(e,t){var n=e.split(".");return function(e){if(!J.isMemberExpression(e))return!1;for(var r=[e],i=0;r.length;){var o=r.shift();if(t&&i===n.length)return!0;if(J.isIdentifier(o)){if(n[i]!==o.name)return!1}else{if(!J.isStringLiteral(o)){if(J.isMemberExpression(o)){if(o.computed&&!J.isStringLiteral(o.property))return!1;r.push(o.object),r.push(o.property);continue}return!1}if(n[i]!==o.value)return!1}if(++i>n.length)return!1}return!0}}function g(e){for(var t=J.COMMENT_KEYS,n=Array.isArray(t),r=0,t=n?t:(0,M.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;delete e[o]}return e}function y(e,t){return b(e,t),x(e,t),E(e,t),e}function b(e,t){w("trailingComments",e,t)}function x(e,t){w("leadingComments",e,t)}function E(e,t){w("innerComments",e,t)}function w(e,t,n){t&&n&&(t[e]=(0,Y.default)([].concat(t[e],n[e]).filter(Boolean)))}function A(e,t){if(!e||!t)return e;for(var n=J.INHERIT_KEYS.optional,r=Array.isArray(n),i=0,n=r?n:(0,M.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;null==e[a]&&(e[a]=t[a])}for(var s in t)"_"===s[0]&&(e[s]=t[s]);for(var u=J.INHERIT_KEYS.force,l=Array.isArray(u),c=0,u=l?u:(0,M.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;e[p]=t[p]}return J.inheritsComments(e,t),e}function _(e){if(!C(e))throw new TypeError("Not a valid node "+(e&&e.type))}function C(e){return!(!e||!K.VISITOR_KEYS[e.type])}function S(e,t,n){if(e){var r=J.VISITOR_KEYS[e.type];if(r){n=n||{},t(e,n);for(var i=r,o=Array.isArray(i),a=0,i=o?i:(0,M.default)(i);;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if(a=i.next(),a.done)break;s=a.value}var u=s,l=e[u];if(Array.isArray(l))for(var c=l,f=Array.isArray(c),p=0,c=f?c:(0,M.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}var h=d;S(h,t,n)}else S(l,t,n)}}}}function k(e,t){t=t||{};for(var n=t.preserveComments?te:ne,r=n,i=Array.isArray(r),o=0,r=i?r:(0,M.default)(r);;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;null!=e[s]&&(e[s]=void 0)}for(var u in e)"_"===u[0]&&null!=e[u]&&(e[u]=void 0);for(var l=(0,O.default)(e),c=l,f=Array.isArray(c),p=0,c=f?c:(0,M.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}var h=d;e[h]=null}}function D(e,t){return S(e,k,t),e}t.__esModule=!0,t.createTypeAnnotationBasedOnTypeof=t.removeTypeDuplicates=t.createUnionTypeAnnotation=t.valueToNode=t.toBlock=t.toExpression=t.toStatement=t.toBindingIdentifierName=t.toIdentifier=t.toKeyAlias=t.toSequenceExpression=t.toComputedKey=t.isNodesEquivalent=t.isImmutable=t.isScope=t.isSpecifierDefault=t.isVar=t.isBlockScoped=t.isLet=t.isValidIdentifier=t.isReferenced=t.isBinding=t.getOuterBindingIdentifiers=t.getBindingIdentifiers=t.TYPES=t.react=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.ALIAS_KEYS=t.VISITOR_KEYS=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;var P=n(356),O=i(P),T=n(2),M=i(T),R=n(13),N=i(R),F=n(34),I=i(F),L=n(133);Object.defineProperty(t,"STATEMENT_OR_BLOCK_KEYS",{enumerable:!0,get:function(){return L.STATEMENT_OR_BLOCK_KEYS}}),Object.defineProperty(t,"FLATTENABLE_KEYS",{enumerable:!0,get:function(){return L.FLATTENABLE_KEYS}}),Object.defineProperty(t,"FOR_INIT_KEYS",{enumerable:!0,get:function(){return L.FOR_INIT_KEYS}}),Object.defineProperty(t,"COMMENT_KEYS",{enumerable:!0,get:function(){return L.COMMENT_KEYS}}),Object.defineProperty(t,"LOGICAL_OPERATORS",{enumerable:!0,get:function(){return L.LOGICAL_OPERATORS}}),Object.defineProperty(t,"UPDATE_OPERATORS",{enumerable:!0,get:function(){return L.UPDATE_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_NUMBER_BINARY_OPERATORS",{enumerable:!0,get:function(){return L.BOOLEAN_NUMBER_BINARY_OPERATORS}}),Object.defineProperty(t,"EQUALITY_BINARY_OPERATORS",{enumerable:!0,get:function(){return L.EQUALITY_BINARY_OPERATORS}}),Object.defineProperty(t,"COMPARISON_BINARY_OPERATORS",{enumerable:!0,get:function(){return L.COMPARISON_BINARY_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_BINARY_OPERATORS",{enumerable:!0,get:function(){return L.BOOLEAN_BINARY_OPERATORS}}),Object.defineProperty(t,"NUMBER_BINARY_OPERATORS",{enumerable:!0,get:function(){return L.NUMBER_BINARY_OPERATORS}}),Object.defineProperty(t,"BINARY_OPERATORS",{enumerable:!0,get:function(){return L.BINARY_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_UNARY_OPERATORS",{enumerable:!0,get:function(){return L.BOOLEAN_UNARY_OPERATORS}}),Object.defineProperty(t,"NUMBER_UNARY_OPERATORS",{enumerable:!0,get:function(){return L.NUMBER_UNARY_OPERATORS}}),Object.defineProperty(t,"STRING_UNARY_OPERATORS",{enumerable:!0,get:function(){return L.STRING_UNARY_OPERATORS}}),Object.defineProperty(t,"UNARY_OPERATORS",{enumerable:!0,get:function(){return L.UNARY_OPERATORS}}),Object.defineProperty(t,"INHERIT_KEYS",{enumerable:!0,get:function(){return L.INHERIT_KEYS}}),Object.defineProperty(t,"BLOCK_SCOPED_SYMBOL",{enumerable:!0,get:function(){return L.BLOCK_SCOPED_SYMBOL}}),Object.defineProperty(t,"NOT_LOCAL_BINDING",{enumerable:!0,get:function(){return L.NOT_LOCAL_BINDING}}),t.is=a,t.isType=s,t.validate=u,t.shallowEqual=l,t.appendToMemberExpression=c,t.prependToMemberExpression=f,t.ensureBlock=p,t.clone=d,t.cloneWithoutLoc=h,t.cloneDeep=v,t.buildMatchMemberExpression=m,t.removeComments=g,t.inheritsComments=y,t.inheritTrailingComments=b,t.inheritLeadingComments=x,t.inheritInnerComments=E,t.inherits=A,t.assertNode=_,t.isNode=C,t.traverseFast=S,t.removeProperties=k,t.removePropertiesDeep=D;var j=n(222);Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return j.getBindingIdentifiers}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return j.getOuterBindingIdentifiers}});var B=n(391);Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return B.isBinding}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return B.isReferenced}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return B.isValidIdentifier}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return B.isLet}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return B.isBlockScoped}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return B.isVar}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return B.isSpecifierDefault}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return B.isScope}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return B.isImmutable}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return B.isNodesEquivalent}});var U=n(381);Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return U.toComputedKey}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return U.toSequenceExpression}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return U.toKeyAlias}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return U.toIdentifier}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return U.toBindingIdentifierName}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return U.toStatement}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return U.toExpression}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return U.toBlock}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return U.valueToNode}});var V=n(389);Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return V.createUnionTypeAnnotation}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return V.removeTypeDuplicates}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return V.createTypeAnnotationBasedOnTypeof}});var W=n(615),q=i(W),H=n(108),G=i(H),z=n(591),Y=i(z);n(386);var K=n(26),X=n(390),$=r(X),J=t;t.VISITOR_KEYS=K.VISITOR_KEYS,t.ALIAS_KEYS=K.ALIAS_KEYS,t.NODE_FIELDS=K.NODE_FIELDS, -t.BUILDER_KEYS=K.BUILDER_KEYS,t.DEPRECATED_KEYS=K.DEPRECATED_KEYS,t.react=$;for(var Q in J.VISITOR_KEYS)o(Q);J.FLIPPED_ALIAS_KEYS={},(0,N.default)(J.ALIAS_KEYS).forEach(function(e){J.ALIAS_KEYS[e].forEach(function(t){var n=J.FLIPPED_ALIAS_KEYS[t]=J.FLIPPED_ALIAS_KEYS[t]||[];n.push(e)})}),(0,N.default)(J.FLIPPED_ALIAS_KEYS).forEach(function(e){J[e.toUpperCase()+"_TYPES"]=J.FLIPPED_ALIAS_KEYS[e],o(e)});t.TYPES=(0,N.default)(J.VISITOR_KEYS).concat((0,N.default)(J.FLIPPED_ALIAS_KEYS)).concat((0,N.default)(J.DEPRECATED_KEYS));(0,N.default)(J.BUILDER_KEYS).forEach(function(e){function t(){if(arguments.length>n.length)throw new Error("t."+e+": Too many arguments passed. Received "+arguments.length+" but can receive no more than "+n.length);var t={};t.type=e;for(var r=0,i=n,o=Array.isArray(i),a=0,i=o?i:(0,M.default)(i);;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if(a=i.next(),a.done)break;s=a.value}var l=s,c=J.NODE_FIELDS[e][l],f=arguments[r++];void 0===f&&(f=(0,G.default)(c.default)),t[l]=f}for(var p in t)u(t,p,t[p]);return t}var n=J.BUILDER_KEYS[e];J[e]=t,J[e[0].toLowerCase()+e.slice(1)]=t});var Z=function(e){function t(t){return function(){return console.trace("The node type "+e+" has been renamed to "+n),t.apply(this,arguments)}}var n=J.DEPRECATED_KEYS[e];J[e]=J[e[0].toLowerCase()+e.slice(1)]=t(J[n]),J["is"+e]=t(J["is"+n]),J["assert"+e]=t(J["assert"+n])};for(var ee in J.DEPRECATED_KEYS)Z(ee);(0,q.default)(J),(0,q.default)(J.VISITOR_KEYS);var te=["tokens","start","end","loc","raw","rawValue"],ne=J.COMMENT_KEYS.concat(["comments"]).concat(te)},function(e,t,n){"use strict";e.exports={default:n(400),__esModule:!0}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e=(0,l.default)(e);var n=e,r=n.program;return t.length&&(0,v.default)(e,w,null,t),r.body.length>1?r.body:r.body[0]}t.__esModule=!0;var a=n(10),s=i(a);t.default=function(e,t){var n=void 0;try{throw new Error}catch(e){e.stack&&(n=e.stack.split("\n").slice(1).join("\n"))}t=(0,f.default)({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,preserveComments:!1},t);var r=function(){var i=void 0;try{i=g.parse(e,t),i=v.default.removeProperties(i,{preserveComments:t.preserveComments}),v.default.cheap(i,function(e){e[x]=!0})}catch(e){throw e.stack=e.stack+"from\n"+n,e}return r=function(){return i},i};return function(){for(var e=arguments.length,t=Array(e),n=0;n=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var h=p;if((!o||!o[h])&&s.visit(e,h))return}},o.clearNode=function(e,t){E.removeProperties(e,t),A.path.delete(e)},o.removeProperties=function(e,t){return E.traverseFast(e,o.clearNode,t),e},o.hasType=function(e,t,n,r){if((0,b.default)(r,e.type))return!1;if(e.type===n)return!0;var i={has:!1,type:n};return o(e,{blacklist:r,enter:a},t,i),i.has},o.clearCache=function(){A.clear()},o.clearCache.clearPath=A.clearPath,o.clearCache.clearScope=A.clearScope,o.copyCache=function(e,t){A.path.has(e)&&A.path.set(t,A.path.get(e))}},function(e,t){"use strict";function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&s())}function s(){if(!v){var e=i(a);v=!0;for(var t=h.length;t;){for(d=h,h=[];++m1)for(var n=1;n=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return t=n(r(t.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),o="/"===a(e,-1);return e=n(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u1?t-1:0),r=1;r=o.length)break;u=o[s++]}else{if(s=o.next(),s.done)break;u=s.value}var l=u;if(x.is(l,r)){i=!0;break}}if(!i)throw new TypeError("Property "+t+" of "+e.type+" expected node to be of a type "+(0,m.default)(n)+" but instead got "+(0,m.default)(r&&r.type))}for(var t=arguments.length,n=Array(t),r=0;r=a.length)break;l=a[u++]}else{if(u=a.next(),u.done)break;l=u.value}var c=l;if(o(r)===c||x.is(c,r)){i=!0;break}}if(!i)throw new TypeError("Property "+t+" of "+e.type+" expected node to be of a type "+(0,m.default)(n)+" but instead got "+(0,m.default)(r&&r.type))}for(var t=arguments.length,n=Array(t),r=0;r=e.length)break;i=e[r++]}else{if(r=e.next(),r.done)break;i=r.value}var o=i;o.apply(void 0,arguments)}}for(var t=arguments.length,n=Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.inherits&&S[t.inherits]||{};t.fields=t.fields||n.fields||{},t.visitor=t.visitor||n.visitor||[],t.aliases=t.aliases||n.aliases||[],t.builder=t.builder||n.builder||t.visitor||[],t.deprecatedAlias&&(C[t.deprecatedAlias]=e);for(var r=t.visitor.concat(t.builder),i=Array.isArray(r),a=0,r=i?r:(0,h.default)(r);;){var s;if(i){if(a>=r.length)break;s=r[a++]}else{if(a=r.next(),a.done)break;s=a.value}var u=s;t.fields[u]=t.fields[u]||{}}for(var l in t.fields){var f=t.fields[l];t.builder.indexOf(l)===-1&&(f.optional=!0),void 0===f.default?f.default=null:f.validate||(f.validate=c(o(f.default)))}E[e]=t.visitor,_[e]=t.builder,A[e]=t.fields,w[e]=t.aliases,S[e]=t}t.__esModule=!0,t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.ALIAS_KEYS=t.VISITOR_KEYS=void 0;var d=n(2),h=i(d),v=n(34),m=i(v),g=n(11),y=i(g);t.assertEach=a,t.assertOneOf=s,t.assertNodeType=u,t.assertNodeOrValueType=l,t.assertValueType=c,t.chain=f,t.default=p;var b=n(1),x=r(b),E=t.VISITOR_KEYS={},w=t.ALIAS_KEYS={},A=t.NODE_FIELDS={},_=t.BUILDER_KEYS={},C=t.DEPRECATED_KEYS={},S={}},function(e,t){"use strict";var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";var r=n(23),i=n(91);e.exports=n(20)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";function r(e){return null==e?void 0===e?u:s:l&&l in Object(e)?o(e):a(e)}var i=n(44),o=n(525),a=n(550),s="[object Null]",u="[object Undefined]",l=i?i.toStringTag:void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=!n;n||(n={});for(var s=-1,u=t.length;++s=o.length)break;u=o[s++]}else{if(s=o.next(),s.done)break;u=s.value}var l=u;if(l.container===t)return l.plugin}var c=void 0;if(c="function"==typeof t?t(b):t,"object"===("undefined"==typeof c?"undefined":(0,v.default)(c))){var f=new E.default(c,i);return e.memoisedPlugins.push({container:t,plugin:f}),f}throw new TypeError(A.get("pluginNotObject",n,r,"undefined"==typeof c?"undefined":(0,v.default)(c))+n+r)},e.createBareOptions=function(){var e={};for(var t in I.default){var n=I.default[t];e[t]=(0,M.default)(n.default)}return e},e.normalisePlugin=function(t,n,r,i){if(t=t.__esModule?t.default:t,!(t instanceof E.default)){if("function"!=typeof t&&"object"!==("undefined"==typeof t?"undefined":(0,v.default)(t)))throw new TypeError(A.get("pluginNotFunction",n,r,"undefined"==typeof t?"undefined":(0,v.default)(t)));t=e.memoisePluginContainer(t,n,r,i)}return t.init(n,r),t},e.normalisePlugins=function(t,r,i){return i.map(function(i,o){var a=void 0,s=void 0;if(!i)throw new TypeError("Falsy value found in plugins");Array.isArray(i)?(a=i[0],s=i[1]):a=i;var u="string"==typeof a?a:t+"$"+o;if("string"==typeof a){var l=(0,S.default)(a,r);if(!l)throw new ReferenceError(A.get("pluginUnknown",a,t,o,r));a=n(175)(l)}return a=e.normalisePlugin(a,t,o,u),[a,s]})},e.prototype.mergeOptions=function(t){var n=this,i=t.options,o=t.extending,a=t.alias,s=t.loc,u=t.dirname;if(a=a||"foreign",i){("object"!==("undefined"==typeof i?"undefined":(0,v.default)(i))||Array.isArray(i))&&this.log.error("Invalid options type for "+a,TypeError);var l=(0,O.default)(i,function(e){if(e instanceof E.default)return e});u=u||r.cwd(),s=s||a;for(var c in l){var p=I.default[c];if(!p&&this.log)if(j.default[c])this.log.error("Using removed Babel 5 option: "+a+"."+c+" - "+j.default[c].message,ReferenceError);else{var d="Unknown option: "+a+"."+c+". Check out http://babeljs.io/docs/usage/options/ for more information about options.",h="A common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:\n\nInvalid:\n `{ presets: [{option: value}] }`\nValid:\n `{ presets: [['presetName', {option: value}]] }`\n\nFor more detailed information on preset configuration, please see http://babeljs.io/docs/plugins/#pluginpresets-options.";this.log.error(d+"\n\n"+h,ReferenceError)}}(0,_.normaliseOptions)(l),l.plugins&&(l.plugins=e.normalisePlugins(s,u,l.plugins)),l.presets&&(l.passPerPreset?l.presets=this.resolvePresets(l.presets,u,function(e,t){n.mergeOptions({options:e,extending:e,alias:t,loc:t,dirname:u})}):(this.mergePresets(l.presets,u),delete l.presets)),i===o?(0,f.default)(o,l):(0,N.default)(o||this.options,l)}},e.prototype.mergePresets=function(e,t){var n=this;this.resolvePresets(e,t,function(e,t){n.mergeOptions({options:e,alias:t,loc:t,dirname:W.default.dirname(t||"")})})},e.prototype.resolvePresets=function(e,t,r){return e.map(function(e){var i=void 0;if(Array.isArray(e)){if(e.length>2)throw new Error("Unexpected extra options "+(0,l.default)(e.slice(2))+" passed to preset.");var o=e;e=o[0],i=o[1]}var a=void 0;try{if("string"==typeof e){if(a=(0,D.default)(e,t),!a)throw new Error("Couldn't find preset "+(0,l.default)(e)+" relative to directory "+(0,l.default)(t));e=n(175)(a)}if("object"===("undefined"==typeof e?"undefined":(0,v.default)(e))&&e.__esModule)if(e.default)e=e.default;else{var u=e,c=(u.__esModule,(0,s.default)(u,["__esModule"]));e=c}if("object"===("undefined"==typeof e?"undefined":(0,v.default)(e))&&e.buildPreset&&(e=e.buildPreset),"function"!=typeof e&&void 0!==i)throw new Error("Options "+(0,l.default)(i)+" passed to "+(a||"a preset")+" which does not accept options.");if("function"==typeof e&&(e=e(b,i,{dirname:t})),"object"!==("undefined"==typeof e?"undefined":(0,v.default)(e)))throw new Error("Unsupported preset format: "+e+".");r&&r(e,a)}catch(e){throw a&&(e.message+=" (While processing preset: "+(0,l.default)(a)+")"),e}return e})},e.prototype.normaliseOptions=function(){var e=this.options;for(var t in I.default){var n=I.default[t],r=e[t];!r&&n.optional||(n.alias?e[n.alias]=e[n.alias]||r:e[t]=r)}},e.prototype.init=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,U.default)(e,this.log),n=Array.isArray(t),r=0,t=n?t:(0,d.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;this.mergeOptions(o)}return this.normaliseOptions(e),this.options},e}();t.default=q,q.memoisedPlugins=[],e.exports=t.default}).call(t,n(8))},function(e,t,n){"use strict";e.exports={default:n(401),__esModule:!0}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(2),a=i(o),s=n(3),u=i(s),l=n(220),c=r(l),f=n(234),p=i(f),d=n(457),h=i(d),v=n(7),m=i(v),g=n(170),y=i(g),b=n(132),x=i(b),E=n(1),w=r(E),A=n(86),_=(0,p.default)("babel"),C=function(){function e(t,n){(0,u.default)(this,e),this.parent=n,this.hub=t,this.contexts=[],this.data={},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}return e.get=function(t){var n=t.hub,r=t.parentPath,i=t.parent,o=t.container,a=t.listKey,s=t.key;!n&&r&&(n=r.hub),(0,h.default)(i,"To get a node path the parent needs to exist");var u=o[s],l=A.path.get(i)||[];A.path.has(i)||A.path.set(i,l);for(var c=void 0,f=0;f1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.file.buildCodeFrameError(this.node,e,t)},e.prototype.traverse=function(e,t){(0,m.default)(this.node,e,this.scope,t,this)},e.prototype.mark=function(e,t){this.hub.file.metadata.marked.push({type:e,message:t,loc:this.node.loc})},e.prototype.set=function(e,t){w.validate(this.node,e,t),this.node[e]=t},e.prototype.getPathLocation=function(){var e=[],t=this;do{var n=t.key;t.inList&&(n=t.listKey+"["+n+"]"),e.unshift(n)}while(t=t.parentPath);return e.join(".")},e.prototype.debug=function(e){_.enabled&&_(this.getPathLocation()+" "+this.type+": "+e())},e}();t.default=C,(0,y.default)(C.prototype,n(364)),(0,y.default)(C.prototype,n(370)),(0,y.default)(C.prototype,n(378)),(0,y.default)(C.prototype,n(368)),(0,y.default)(C.prototype,n(367)),(0,y.default)(C.prototype,n(373)),(0,y.default)(C.prototype,n(366)),(0,y.default)(C.prototype,n(377)),(0,y.default)(C.prototype,n(376)),(0,y.default)(C.prototype,n(369)),(0,y.default)(C.prototype,n(365));for(var S=function(){if(D){if(P>=k.length)return"break";O=k[P++]}else{if(P=k.next(),P.done)return"break";O=P.value}var e=O,t="is"+e;C.prototype[t]=function(e){return w[t](this.node,e)},C.prototype["assert"+e]=function(n){if(!this[t](n))throw new TypeError("Expected node path of type "+e)}},k=w.TYPES,D=Array.isArray(k),P=0,k=D?k:(0,a.default)(k);;){var O,T=S();if("break"===T)break; -}var M=function(e){if("_"===e[0])return"continue";w.TYPES.indexOf(e)<0&&w.TYPES.push(e);var t=c[e];C.prototype["is"+e]=function(e){return t.checkPath(this,e)}};for(var R in c){M(R)}e.exports=t.default},function(e,t){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(140),i=n(87);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";function r(e,t){var n=o(e,t);return i(n)?n:void 0}var i=n(488),o=n(526);e.exports=r},function(e,t){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){if(e.selfReference){if(!r.hasBinding(n.name)||r.hasGlobal(n.name)){if(!p.isFunction(t))return;var i=d;t.generator&&(i=h);var o=i({FUNCTION:t,FUNCTION_ID:n,FUNCTION_KEY:r.generateUidIdentifier(n.name)}).expression;o.callee._skipModulesRemap=!0;for(var a=o.callee.body.body[0].params,s=0,l=(0,u.default)(t);s0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1];(0,p.default)(this,r);var i=(0,h.default)(this,t.call(this));return i.pipeline=n,i.log=new j.default(i,e.filename||"unknown"),i.opts=i.initOptions(e),i.parserOpts={sourceType:i.opts.sourceType,sourceFileName:i.opts.filename,plugins:[]},i.pluginVisitors=[],i.pluginPasses=[],i.buildPluginsForOptions(i.opts),i.opts.passPerPreset&&(i.perPresetOpts=[],i.opts.presets.forEach(function(e){var t=(0,c.default)((0,u.default)(i.opts),e);i.perPresetOpts.push(t),i.buildPluginsForOptions(t)})),i.metadata={usedHelpers:[],marked:[],modules:{imports:[],exports:{exported:[],specifiers:[]}}},i.dynamicImportTypes={},i.dynamicImportIds={},i.dynamicImports=[],i.declarations={},i.usedHelpers={},i.path=null,i.ast={},i.code="",i.shebang="",i.hub=new k.Hub(i),i}return(0,m.default)(r,t),r.prototype.getMetadata=function(){for(var e=!1,t=this.ast.program.body,n=Array.isArray(t),r=0,t=n?t:(0,a.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;if(Y.isModuleDeclaration(o)){e=!0;break}}e&&this.path.traverse(x,this)},r.prototype.initOptions=function(e){e=new _.default(this.log,this.pipeline).init(e),e.inputSourceMap&&(e.sourceMaps=!0),e.moduleId&&(e.moduleIds=!0),e.basename=G.default.basename(e.filename,G.default.extname(e.filename)),e.ignore=q.arrayify(e.ignore,q.regexify),e.only&&(e.only=q.arrayify(e.only,q.regexify)),(0,I.default)(e,{moduleRoot:e.sourceRoot}),(0,I.default)(e,{sourceRoot:e.moduleRoot}),(0,I.default)(e,{filenameRelative:e.filename});var t=G.default.basename(e.filenameRelative);return(0,I.default)(e,{sourceFileName:t,sourceMapTarget:t}),e},r.prototype.buildPluginsForOptions=function(e){if(Array.isArray(e.plugins)){for(var t=e.plugins.concat(te),n=[],r=[],i=t,o=Array.isArray(i),s=0,i=o?i:(0,a.default)(i);;){var u;if(o){if(s>=i.length)break;u=i[s++]}else{if(s=i.next(),s.done)break;u=s.value}var l=u,c=l[0],f=l[1];n.push(c.visitor),r.push(new S.default(this,c,f)),c.manipulateOptions&&c.manipulateOptions(e,this.parserOpts,this)}this.pluginVisitors.push(n),this.pluginPasses.push(r)}},r.prototype.getModuleName=function(){var e=this.opts;if(!e.moduleIds)return null;if(null!=e.moduleId&&!e.getModuleId)return e.moduleId;var t=e.filenameRelative,n="";if(null!=e.moduleRoot&&(n=e.moduleRoot+"/"),!e.filenameRelative)return n+e.filename.replace(/^\//,"");if(null!=e.sourceRoot){var r=new RegExp("^"+e.sourceRoot+"/?");t=t.replace(r,"")}return t=t.replace(/\.(\w*?)$/,""),n+=t,n=n.replace(/\\/g,"/"),e.getModuleId?e.getModuleId(n)||n:n},r.prototype.resolveModuleSource=function e(t){var e=this.opts.resolveModuleSource;return e&&(t=e(t,this.opts.filename)),t},r.prototype.addImport=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e+":"+t,i=this.dynamicImportIds[r];if(!i){e=this.resolveModuleSource(e),i=this.dynamicImportIds[r]=this.scope.generateUidIdentifier(n);var o=[];"*"===t?o.push(Y.importNamespaceSpecifier(i)):"default"===t?o.push(Y.importDefaultSpecifier(i)):o.push(Y.importSpecifier(i,Y.identifier(t)));var a=Y.importDeclaration(o,Y.stringLiteral(e));a._blockHoist=3,this.path.unshiftContainer("body",a)}return i},r.prototype.addHelper=function(e){var t=this.declarations[e];if(t)return t;this.usedHelpers[e]||(this.metadata.usedHelpers.push(e),this.usedHelpers[e]=!0);var n=this.get("helperGenerator"),r=this.get("helpersNamespace");if(n){var i=n(e);if(i)return i}else if(r)return Y.memberExpression(r,Y.identifier(e));var o=(0,y.default)(e),a=this.declarations[e]=this.scope.generateUidIdentifier(e);return Y.isFunctionExpression(o)&&!o.id?(o.body._compact=!0,o._generated=!0,o.id=a,o.type="FunctionDeclaration",this.path.unshiftContainer("body",o)):(o._compact=!0,this.scope.push({id:a,init:o,unique:!0})),a},r.prototype.addTemplateObject=function(e,t,n){var r=n.elements.map(function(e){return e.value}),i=e+"_"+n.elements.length+"_"+r.join(","),o=this.declarations[i];if(o)return o;var a=this.declarations[i]=this.scope.generateUidIdentifier("templateObject"),s=this.addHelper(e),u=Y.callExpression(s,[t,n]);return u._compact=!0,this.scope.push({id:a,init:u,_blockHoist:1.9}),a},r.prototype.buildCodeFrameError=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:SyntaxError,r=e&&(e.loc||e._loc),i=new n(t);return r?i.loc=r.start:((0,D.default)(e,ne,this.scope,i),i.message+=" (This is an error on an internal node. Probably an internal error",i.loc&&(i.message+=". Location has been estimated."),i.message+=")"),i},r.prototype.mergeSourceMap=function(e){var t=this.opts.inputSourceMap;if(t){var n=new O.default.SourceMapConsumer(t),r=new O.default.SourceMapConsumer(e),i=new O.default.SourceMapGenerator({file:n.file,sourceRoot:n.sourceRoot}),o=r.sources[0];n.eachMapping(function(e){var t=r.generatedPositionFor({line:e.generatedLine,column:e.generatedColumn,source:o});null!=t.column&&i.addMapping({source:e.source,original:null==e.source?null:{line:e.originalLine,column:e.originalColumn},generated:t})});var a=i.toJSON();return t.mappings=a.mappings,t}return e},r.prototype.parse=function(t){var r=V.parse,i=this.opts.parserOpts;if(i&&(i=(0,c.default)({},this.parserOpts,i),i.parser)){if("string"==typeof i.parser){var o=G.default.dirname(this.opts.filename)||e.cwd(),a=(0,X.default)(i.parser,o);if(!a)throw new Error("Couldn't find parser "+i.parser+' with "parse" method relative to directory '+o);r=n(174)(a).parse}else r=i.parser;i.parser={parse:function(e){return(0,V.parse)(e,i)}}}this.log.debug("Parse start");var s=r(t,i||this.parserOpts);return this.log.debug("Parse stop"),s},r.prototype._addAst=function(e){this.path=k.NodePath.get({hub:this.hub,parentPath:null,parent:e,container:e,key:"program"}).setContext(),this.scope=this.path.scope,this.ast=e,this.getMetadata()},r.prototype.addAst=function(e){this.log.debug("Start set AST"),this._addAst(e),this.log.debug("End set AST")},r.prototype.transform=function(){for(var e=0;e=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var s=o,u=s.plugin,l=u[e];l&&l.call(s,this)}},r.prototype.parseInputSourceMap=function(e){var t=this.opts;if(t.inputSourceMap!==!1){var n=w.default.fromSource(e);n&&(t.inputSourceMap=n.toObject(),e=w.default.removeComments(e))}return e},r.prototype.parseShebang=function(){var e=ee.exec(this.code);e&&(this.shebang=e[0],this.code=this.code.replace(ee,""))},r.prototype.makeResult=function(e){var t=e.code,n=e.map,r=e.ast,i=e.ignored,o={metadata:null,options:this.opts,ignored:!!i,code:null,ast:null,map:n||null};return this.opts.code&&(o.code=t),this.opts.ast&&(o.ast=r),this.opts.metadata&&(o.metadata=this.metadata),o},r.prototype.generate=function(){var t=this.opts,r=this.ast,i={ast:r};if(!t.code)return this.makeResult(i);var o=M.default;if(t.generatorOpts.generator&&(o=t.generatorOpts.generator,"string"==typeof o)){var a=G.default.dirname(this.opts.filename)||e.cwd(),s=(0,X.default)(o,a);if(!s)throw new Error("Couldn't find generator "+o+' with "print" method relative to directory '+a);o=n(174)(s).print}this.log.debug("Generation start");var u=o(r,t.generatorOpts?(0,c.default)(t,t.generatorOpts):t,this.code);return i.code=u.code,i.map=u.map,this.log.debug("Generation end"),this.shebang&&(i.code=this.shebang+"\n"+i.code),i.map&&(i.map=this.mergeSourceMap(i.map)),"inline"!==t.sourceMaps&&"both"!==t.sourceMaps||(i.code+="\n"+w.default.fromObject(i.map).toComment()),"inline"===t.sourceMaps&&(i.map=null),this.makeResult(i)},r}(U.default);t.default=re,t.File=re}).call(t,n(8))},function(e,t,n){(function(r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=E[e];return null==t?E[e]=x.default.existsSync(e):t}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=e.filename,r=new S(t);return e.babelrc!==!1&&r.findConfigs(n),r.mergeConfig({options:e,alias:"base",dirname:n&&y.default.dirname(n)}),r.configs}t.__esModule=!0;var s=n(85),u=i(s),l=n(3),c=i(l);t.default=a;var f=n(116),p=i(f),d=n(461),h=i(d),v=n(595),m=i(v),g=n(17),y=i(g),b=n(114),x=i(b),E={},w={},A=".babelignore",_=".babelrc",C="package.json",S=function(){function e(t){(0,c.default)(this,e),this.resolvedConfigs=[],this.configs=[],this.log=t}return e.prototype.findConfigs=function(e){if(e){(0,m.default)(e)||(e=y.default.join(r.cwd(),e));for(var t=!1,n=!1;e!==(e=y.default.dirname(e));){if(!t){var i=y.default.join(e,_);o(i)&&(this.addConfig(i),t=!0);var a=y.default.join(e,C);!t&&o(a)&&(t=this.addConfig(a,"babel",JSON))}if(!n){var s=y.default.join(e,A);o(s)&&(this.addIgnoreConfig(s),n=!0)}if(n&&t)return}}},e.prototype.addIgnoreConfig=function(e){var t=x.default.readFileSync(e,"utf8"),n=t.split("\n");n=n.map(function(e){return e.replace(/#(.*?)$/,"").trim()}).filter(function(e){return!!e}),n.length&&this.mergeConfig({options:{ignore:n},alias:e,dirname:y.default.dirname(e)})},e.prototype.addConfig=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default;if(this.resolvedConfigs.indexOf(e)>=0)return!1;this.resolvedConfigs.push(e);var r=x.default.readFileSync(e,"utf8"),i=void 0;try{i=w[r]=w[r]||n.parse(r),t&&(i=i[t])}catch(t){throw t.message=e+": Error while parsing JSON - "+t.message,t}return this.mergeConfig({options:i,alias:e,dirname:y.default.dirname(e)}),!!i},e.prototype.mergeConfig=function(e){var t=e.options,n=e.alias,i=e.loc,o=e.dirname;if(!t)return!1;if(t=(0,u.default)({},t),o=o||r.cwd(),i=i||n,t.extends){var a=(0,p.default)(t.extends,o);a?this.addConfig(a):this.log&&this.log.error("Couldn't resolve extends clause of "+t.extends+" in "+n),delete t.extends}this.configs.push({options:t,alias:n,loc:i,dirname:o});var s=void 0,l=r.env.BABEL_ENV||"production"||"development";t.env&&(s=t.env[l],delete t.env),this.mergeConfig({options:s,alias:n+".env."+l,dirname:o})},e}();e.exports=t.default}).call(t,n(8))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e){var n=e[t];if(null!=n){var r=l.default[t];if(r&&r.alias&&(r=l.default[r.alias]),r){var i=s[r.type];i&&(n=i(n)),e[t]=n}}}return e}t.__esModule=!0,t.config=void 0,t.normaliseOptions=o;var a=n(52),s=i(a),u=n(32),l=r(u);t.config=l.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return!!e}function a(e){return f.booleanify(e)}function s(e){return f.list(e)}t.__esModule=!0,t.filename=void 0,t.boolean=o,t.booleanString=a,t.list=s;var u=n(280),l=i(u),c=n(120),f=r(c);t.filename=l.default},function(e,t){"use strict";e.exports={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin . Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"Use the `sourceMapTarget` option"},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"}}},function(e,t,n){"use strict";var r=n(414);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){"use strict";e.exports={}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(94)("meta"),o=n(22),a=n(27),s=n(23).f,u=0,l=Object.isExtensible||function(){return!0},c=!n(36)(function(){return l(Object.preventExtensions({}))}),f=function(e){s(e,i,{value:{i:"O"+ ++u,w:{}}})},p=function(e,t){if(!o(e))return"symbol"==("undefined"==typeof e?"undefined":r(e))?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!l(e))return"F";if(!t)return"E";f(e)}return e[i].i},d=function(e,t){if(!a(e,i)){if(!l(e))return!0;if(!t)return!1;f(e)}return e[i].w},h=function(e){return c&&v.NEED&&l(e)&&!a(e,i)&&f(e),e},v=e.exports={KEY:i,NEED:!1,fastKey:p,getWeak:d,onFreeze:h}},function(e,t,n){"use strict";n(437);for(var r=n(14),i=n(28),o=n(55),a=n(12)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var l=s[u],c=r[l],f=c&&c.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},function(e,t){"use strict";function n(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n=0;c--)a=u[c],"."===a?u.splice(c,1):".."===a?l++:l>0&&(""===a?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return n=u.join("/"),""===n&&(n=s?"/":"."),o?(o.path=n,i(o)):n}function a(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),a=r(e);if(a&&(e=a.path||"/"),n&&!n.scheme)return a&&(n.scheme=a.scheme),i(n);if(n||t.match(g))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var s="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=s,i(a)):s}function s(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}function u(e){return e}function l(e){return f(e)?"$"+e:e}function c(e){return f(e)?e.slice(1):e}function f(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 p(e,t,n){var r=e.source-t.source;return 0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r||n?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name))))}function d(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r||n?r:(r=e.source-t.source,0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name))))}function h(e,t){return e===t?0:e>t?1:-1}function v(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:(n=e.generatedColumn-t.generatedColumn,0!==n?n:(n=h(e.source,t.source),0!==n?n:(n=e.originalLine-t.originalLine,0!==n?n:(n=e.originalColumn-t.originalColumn,0!==n?n:h(e.name,t.name)))))}t.getArg=n;var m=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,g=/^data:.+\,.+$/;t.urlParse=r,t.urlGenerate=i,t.normalize=o,t.join=a,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(m)},t.relative=s;var y=function(){var e=Object.create(null);return!("__proto__"in e)}();t.toSetString=y?u:l,t.fromSetString=y?u:c,t.compareByOriginalPositions=p,t.compareByGeneratedPositionsDeflated=d,t.compareByGeneratedPositionsInflated=v},function(e,t,n){(function(t){"use strict";function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0;s--)if(u[s]!==l[s])return!1;for(s=u.length-1;s>=0;s--)if(a=u[s],!d(e[a],t[a],n,r))return!1;return!0}function m(e,t,n){d(e,t,!0)&&f(e,t,n,"notDeepStrictEqual",m)}function g(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&t.call({},e)===!0}function y(e){var t;try{e()}catch(e){t=e}return t}function b(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=y(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&f(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!e&&E.isError(i),s=!e&&i&&!n;if((a&&o&&g(i,n)||s)&&f(i,n,"Got unwanted exception"+r),e&&i&&n&&!g(i,n)||!e&&i)throw i}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -var x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=n(115),w=Object.prototype.hasOwnProperty,A=Array.prototype.slice,_=function(){return"foo"===function(){}.name}(),C=e.exports=p,S=/\s*function\s+([^\(\s]*)\s*/;C.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=c(this),this.generatedMessage=!0);var t=e.stackStartFunction||f;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=s(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},E.inherits(C.AssertionError,Error),C.fail=f,C.ok=p,C.equal=function(e,t,n){e!=t&&f(e,t,n,"==",C.equal)},C.notEqual=function(e,t,n){e==t&&f(e,t,n,"!=",C.notEqual)},C.deepEqual=function(e,t,n){d(e,t,!1)||f(e,t,n,"deepEqual",C.deepEqual)},C.deepStrictEqual=function(e,t,n){d(e,t,!0)||f(e,t,n,"deepStrictEqual",C.deepStrictEqual)},C.notDeepEqual=function(e,t,n){d(e,t,!1)&&f(e,t,n,"notDeepEqual",C.notDeepEqual)},C.notDeepStrictEqual=m,C.strictEqual=function(e,t,n){e!==t&&f(e,t,n,"===",C.strictEqual)},C.notStrictEqual=function(e,t,n){e===t&&f(e,t,n,"!==",C.notStrictEqual)},C.throws=function(e,t,n){b(!0,e,t,n)},C.doesNotThrow=function(e,t,n){b(!1,e,t,n)},C.ifError=function(e){if(e)throw e};var k=Object.keys||function(e){var t=[];for(var n in e)w.call(e,n)&&t.push(n);return t}}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(2),a=i(o),s=n(3),u=i(s),l=n(42),c=i(l),f=n(41),p=i(f),d=n(33),h=i(d),v=n(18),m=r(v),g=n(117),y=i(g),b=n(7),x=i(b),E=n(170),w=i(E),A=n(108),_=i(A),C=["enter","exit"],S=function(e){function t(n,r){(0,u.default)(this,t);var i=(0,c.default)(this,e.call(this));return i.initialized=!1,i.raw=(0,w.default)({},n),i.key=i.take("name")||r,i.manipulateOptions=i.take("manipulateOptions"),i.post=i.take("post"),i.pre=i.take("pre"),i.visitor=i.normaliseVisitor((0,_.default)(i.take("visitor"))||{}),i}return(0,p.default)(t,e),t.prototype.take=function(e){var t=this.raw[e];return delete this.raw[e],t},t.prototype.chain=function(e,t){if(!e[t])return this[t];if(!this[t])return e[t];var n=[e[t],this[t]];return function(){for(var e=void 0,t=arguments.length,r=Array(t),i=0;i=o.length)break;l=o[u++]}else{if(u=o.next(),u.done)break;l=u.value}var c=l;if(c){var f=c.apply(this,r);null!=f&&(e=f)}}return e}},t.prototype.maybeInherit=function(e){var t=this.take("inherits");t&&(t=h.default.normalisePlugin(t,e,"inherits"),this.manipulateOptions=this.chain(t,"manipulateOptions"),this.post=this.chain(t,"post"),this.pre=this.chain(t,"pre"),this.visitor=x.default.visitors.merge([t.visitor,this.visitor]))},t.prototype.init=function(e,t){if(!this.initialized){this.initialized=!0,this.maybeInherit(e);for(var n in this.raw)throw new Error(m.get("pluginInvalidProperty",e,t,n))}},t.prototype.normaliseVisitor=function(e){for(var t=C,n=Array.isArray(t),r=0,t=n?t:(0,a.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;if(e[o])throw new Error("Plugins aren't allowed to specify catch-all enter/exit handlers. Please target individual nodes.")}return x.default.explode(e),e},t}(y.default);t.default=S,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(2),o=r(i);t.default=function(e){var t=e.messages;return{visitor:{Scope:function(e){var n=e.scope;for(var r in n.bindings){var i=n.bindings[r];if("const"===i.kind||"module"===i.kind)for(var a=i.constantViolations,s=Array.isArray(a),u=0,a=s?a:(0,o.default)(a);;){var l;if(s){if(u>=a.length)break;l=a[u++]}else{if(u=a.next(),u.done)break;l=u.value}var c=l;throw c.buildCodeFrameError(t.get("readOnly",r))}}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("asyncFunctions")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{ArrowFunctionExpression:function(e,n){if(n.opts.spec){var r=e.node;if(r.shadow)return;r.shadow={this:!1},r.type="FunctionExpression";var i=t.thisExpression();i._forceShadow=e,e.ensureBlock(),e.get("body").unshiftContainer("body",t.expressionStatement(t.callExpression(n.addHelper("newArrowCheck"),[t.thisExpression(),i]))),e.replaceWith(t.callExpression(t.memberExpression(r,t.identifier("bind")),[t.thisExpression()]))}else e.arrowFunctionToShadowed()}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(2),o=r(i);t.default=function(e){function t(e,t){for(var r=t.get(e),i=r,a=Array.isArray(i),s=0,i=a?i:(0,o.default)(i);;){var u;if(a){if(s>=i.length)break;u=i[s++]}else{if(s=i.next(),s.done)break;u=s.value}var l=u,c=l.node;if(l.isFunctionDeclaration()){var f=n.variableDeclaration("let",[n.variableDeclarator(c.id,n.toExpression(c))]);f._blockHoist=2,c.id=null,l.replaceWith(f)}}}var n=e.types;return{visitor:{BlockStatement:function(e){var r=e.node,i=e.parent;n.isFunction(i,{body:r})||n.isExportDeclaration(i)||t("body",e)},SwitchCase:function(e){t("consequent",e)}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return x.isLoop(e.parent)||x.isCatchClause(e.parent)}function a(e){return!!x.isVariableDeclaration(e)&&(!!e[x.BLOCK_SCOPED_SYMBOL]||("let"===e.kind||"const"===e.kind))}function s(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t||(t=e.node),!x.isFor(n))for(var o=0;o0&&e.traverse(P,t),e.skip()}},y.visitor]),P=g.default.visitors.merge([{ReferencedIdentifier:function(e,t){var n=t.letReferences[e.node.name];if(n){var r=e.scope.getBindingIdentifier(e.node.name);r&&r!==n||(t.closurify=!0)}}},y.visitor]),O={enter:function(e,t){var n=e.node,r=e.parent;if(e.isForStatement()){if(u(n.init,n)){var i=t.pushDeclar(n.init);1===i.length?n.init=i[0]:n.init=x.sequenceExpression(i)}}else if(e.isFor())u(n.left,n)&&(t.pushDeclar(n.left),n.left=n.left.declarations[0].id);else if(u(n,r))e.replaceWithMultiple(t.pushDeclar(n).map(function(e){return x.expressionStatement(e)}));else if(e.isFunction())return e.skip()}},T={LabeledStatement:function(e,t){var n=e.node;t.innerLabels.push(n.label.name)}},M={enter:function(e,t){if(e.isAssignmentExpression()||e.isUpdateExpression()){var n=e.getBindingIdentifiers();for(var r in n)t.outsideReferences[r]===e.scope.getBindingIdentifier(r)&&(t.reassignments[r]=!0)}}},R={Loop:function(e,t){var n=t.ignoreLabeless;t.ignoreLabeless=!0,e.traverse(R,t),t.ignoreLabeless=n,e.skip()},Function:function(e){e.skip()},SwitchCase:function(e,t){var n=t.inSwitchCase;t.inSwitchCase=!0,e.traverse(R,t),t.inSwitchCase=n,e.skip()},"BreakStatement|ContinueStatement|ReturnStatement":function(e,t){var n=e.node,r=e.parent,i=e.scope;if(!n[this.LOOP_IGNORE]){var o=void 0,a=l(n);if(a){if(n.label){if(t.innerLabels.indexOf(n.label.name)>=0)return;a=a+"|"+n.label.name}else{if(t.ignoreLabeless)return;if(t.inSwitchCase)return;if(x.isBreakStatement(n)&&x.isSwitchCase(r))return}t.hasBreakContinue=!0,t.map[a]=n,o=x.stringLiteral(a)}e.isReturnStatement()&&(t.hasReturn=!0,o=x.objectExpression([x.objectProperty(x.identifier("v"),n.argument||i.buildUndefinedNode())])),o&&(o=x.returnStatement(o),o[this.LOOP_IGNORE]=!0,e.skip(),e.replaceWith(x.inherits(o,n)))}}},N=function(){function e(t,n,r,i,o){(0,v.default)(this,e),this.parent=r,this.scope=i,this.file=o,this.blockPath=n,this.block=n.node,this.outsideLetReferences=(0,d.default)(null),this.hasLetReferences=!1,this.letReferences=(0,d.default)(null),this.body=[],t&&(this.loopParent=t.parent,this.loopLabel=x.isLabeledStatement(this.loopParent)&&this.loopParent.label,this.loopPath=t,this.loop=t.node)}return e.prototype.run=function(){var e=this.block;if(!e._letDone){e._letDone=!0;var t=this.getLetReferences();if(x.isFunction(this.parent)||x.isProgram(this.block))return void this.updateScopeInfo();if(this.hasLetReferences)return t?this.wrapClosure():this.remap(),this.updateScopeInfo(t),this.loopLabel&&!x.isLabeledStatement(this.loopParent)?x.labeledStatement(this.loopLabel,this.loop):void 0}},e.prototype.updateScopeInfo=function(e){var t=this.scope,n=t.getFunctionParent(),r=this.letReferences;for(var i in r){var o=r[i],a=t.getBinding(o.name);a&&("let"!==a.kind&&"const"!==a.kind||(a.kind="var",e?t.removeBinding(o.name):t.moveBindingTo(o.name,n)))}},e.prototype.remap=function(){var e=this.letReferences,t=this.scope;for(var n in e){var r=e[n];(t.parentHasBinding(n)||t.hasGlobal(n))&&(t.hasOwnBinding(n)&&t.rename(r.name),this.blockPath.scope.hasOwnBinding(n)&&this.blockPath.scope.rename(r.name))}},e.prototype.wrapClosure=function(){if(this.file.opts.throwIfClosureRequired)throw this.blockPath.buildCodeFrameError("Compiling let/const in this block would add a closure (throwIfClosureRequired).");var e=this.block,t=this.outsideLetReferences;if(this.loop)for(var n in t){var r=t[n];(this.scope.hasGlobal(r.name)||this.scope.parentHasBinding(r.name))&&(delete t[r.name],delete this.letReferences[r.name],this.scope.rename(r.name),this.letReferences[r.name]=r,t[r.name]=r)}this.has=this.checkLoop(),this.hoistVarDeclarations();var i=(0,w.default)(t),o=(0,w.default)(t),a=this.blockPath.isSwitchStatement(),s=x.functionExpression(null,i,x.blockStatement(a?[e]:e.body));s.shadow=!0,this.addContinuations(s);var u=s;this.loop&&(u=this.scope.generateUidIdentifier("loop"),this.loopPath.insertBefore(x.variableDeclaration("var",[x.variableDeclarator(u,s)])));var l=x.callExpression(u,o),c=this.scope.generateUidIdentifier("ret"),f=g.default.hasType(s.body,this.scope,"YieldExpression",x.FUNCTION_TYPES);f&&(s.generator=!0,l=x.yieldExpression(l,!0));var p=g.default.hasType(s.body,this.scope,"AwaitExpression",x.FUNCTION_TYPES);p&&(s.async=!0,l=x.awaitExpression(l)),this.buildClosure(c,l),a?this.blockPath.replaceWithMultiple(this.body):e.body=this.body},e.prototype.buildClosure=function(e,t){var n=this.has;n.hasReturn||n.hasBreakContinue?this.buildHas(e,t):this.body.push(x.expressionStatement(t))},e.prototype.addContinuations=function(e){var t={reassignments:{},outsideReferences:this.outsideLetReferences};this.scope.traverse(e,M,t);for(var n=0;n=t.length)break;s=t[a++]}else{if(a=t.next(),a.done)break;s=a.value}var u=s;"get"===u.kind||"set"===u.kind?r(e,u):n(e.objId,u,e.body)}}function a(e){for(var i=e.objId,a=e.body,u=e.computedProps,l=e.state,c=u,f=Array.isArray(c),p=0,c=f?c:(0,o.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}var h=d,v=s.toComputedKey(h);if("get"===h.kind||"set"===h.kind)r(e,h);else if(s.isStringLiteral(v,{value:"__proto__"}))n(i,h,a);else{if(1===u.length)return s.callExpression(l.addHelper("defineProperty"),[e.initPropExpression,v,t(h)]);a.push(s.expressionStatement(s.callExpression(l.addHelper("defineProperty"),[i,v,t(h)])))}}}var s=e.types,u=e.template,l=u("\n MUTATOR_MAP_REF[KEY] = MUTATOR_MAP_REF[KEY] || {};\n MUTATOR_MAP_REF[KEY].KIND = VALUE;\n ");return{visitor:{ObjectExpression:{exit:function(e,t){for(var n=e.node,r=e.parent,u=e.scope,l=!1,c=n.properties,f=Array.isArray(c),p=0,c=f?c:(0,o.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}var h=d;if(l=h.computed===!0)break}if(l){for(var v=[],m=[],g=!1,y=n.properties,b=Array.isArray(y),x=0,y=b?y:(0,o.default)(y);;){var E;if(b){if(x>=y.length)break;E=y[x++]}else{if(x=y.next(),x.done)break;E=x.value}var w=E;w.computed&&(g=!0),g?m.push(w):v.push(w)}var A=u.generateUidIdentifierBasedOnNode(r),_=s.objectExpression(v),C=[];C.push(s.variableDeclaration("var",[s.variableDeclarator(A,_)]));var S=a;t.opts.loose&&(S=i);var k=void 0,D=function(){return k||(k=u.generateUidIdentifier("mutatorMap"),C.push(s.variableDeclaration("var",[s.variableDeclarator(k,s.objectExpression([]))]))),k},P=S({scope:u,objId:A,body:C,computedProps:m,initPropExpression:_,getMutatorId:D,state:t});k&&C.push(s.expressionStatement(s.callExpression(t.addHelper("defineEnumerableProperties"),[A,k]))),P?e.replaceWith(P):(C.push(s.expressionStatement(A)),e.replaceWithMultiple(C))}}}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(3),o=r(i),a=n(2),s=r(a);t.default=function(e){function t(e){for(var t=e.declarations,n=Array.isArray(t),i=0,t=n?t:(0,s.default)(t);;){var o;if(n){if(i>=t.length)break;o=t[i++]}else{if(i=t.next(),i.done)break;o=i.value}var a=o;if(r.isPattern(a.id))return!0}return!1}function n(e){for(var t=e.elements,n=Array.isArray(t),i=0,t=n?t:(0,s.default)(t);;){var o;if(n){if(i>=t.length)break;o=t[i++]}else{if(i=t.next(),i.done)break;o=i.value}var a=o;if(r.isRestElement(a))return!0}return!1}var r=e.types,i={ReferencedIdentifier:function(e,t){t.bindings[e.node.name]&&(t.deopt=!0,e.stop())}},a=function(){function e(t){(0,o.default)(this,e),this.blockHoist=t.blockHoist,this.operator=t.operator,this.arrays={},this.nodes=t.nodes||[],this.scope=t.scope,this.file=t.file,this.kind=t.kind}return e.prototype.buildVariableAssignment=function(e,t){var n=this.operator;r.isMemberExpression(e)&&(n="=");var i=void 0;return i=n?r.expressionStatement(r.assignmentExpression(n,e,t)):r.variableDeclaration(this.kind,[r.variableDeclarator(e,t)]),i._blockHoist=this.blockHoist,i},e.prototype.buildVariableDeclaration=function(e,t){var n=r.variableDeclaration("var",[r.variableDeclarator(e,t)]);return n._blockHoist=this.blockHoist,n},e.prototype.push=function(e,t){r.isObjectPattern(e)?this.pushObjectPattern(e,t):r.isArrayPattern(e)?this.pushArrayPattern(e,t):r.isAssignmentPattern(e)?this.pushAssignmentPattern(e,t):this.nodes.push(this.buildVariableAssignment(e,t))},e.prototype.toArray=function(e,t){return this.file.opts.loose||r.isIdentifier(e)&&this.arrays[e.name]?e:this.scope.toArray(e,t)},e.prototype.pushAssignmentPattern=function(e,t){var n=this.scope.generateUidIdentifierBasedOnNode(t),i=r.variableDeclaration("var",[r.variableDeclarator(n,t)]);i._blockHoist=this.blockHoist,this.nodes.push(i);var o=r.conditionalExpression(r.binaryExpression("===",n,r.identifier("undefined")),e.right,n),a=e.left;if(r.isPattern(a)){var s=r.expressionStatement(r.assignmentExpression("=",n,o));s._blockHoist=this.blockHoist,this.nodes.push(s),this.push(a,n)}else this.nodes.push(this.buildVariableAssignment(a,o))},e.prototype.pushObjectRest=function(e,t,n,i){for(var o=[],a=0;a=i)break;if(!r.isRestProperty(s)){var u=s.key;r.isIdentifier(u)&&!s.computed&&(u=r.stringLiteral(s.key.name)),o.push(u)}}o=r.arrayExpression(o);var l=r.callExpression(this.file.addHelper("objectWithoutProperties"),[t,o]);this.nodes.push(this.buildVariableAssignment(n.argument,l))},e.prototype.pushObjectProperty=function(e,t){r.isLiteral(e.key)&&(e.computed=!0);var n=e.value,i=r.memberExpression(t,e.key,e.computed);r.isPattern(n)?this.push(n,i):this.nodes.push(this.buildVariableAssignment(n,i))},e.prototype.pushObjectPattern=function(e,t){if(e.properties.length||this.nodes.push(r.expressionStatement(r.callExpression(this.file.addHelper("objectDestructuringEmpty"),[t]))),e.properties.length>1&&!this.scope.isStatic(t)){var n=this.scope.generateUidIdentifierBasedOnNode(t);this.nodes.push(this.buildVariableDeclaration(n,t)),t=n}for(var i=0;it.elements.length)){if(e.elements.length=o.length)break;l=o[u++]}else{if(u=o.next(),u.done)break;l=u.value}var c=l;if(!c)return!1;if(r.isMemberExpression(c))return!1}for(var f=t.elements,p=Array.isArray(f),d=0,f=p?f:(0,s.default)(f);;){var h;if(p){if(d>=f.length)break;h=f[d++]}else{if(d=f.next(),d.done)break;h=d.value}var v=h;if(r.isSpreadElement(v))return!1;if(r.isCallExpression(v))return!1;if(r.isMemberExpression(v))return!1}var m=r.getBindingIdentifiers(e),g={deopt:!1,bindings:m};return this.scope.traverse(t,i,g),!g.deopt}},e.prototype.pushUnpackedArrayPattern=function(e,t){for(var n=0;n=m.length)break;b=m[y++]}else{if(y=m.next(),y.done)break;b=y.value}var x=b,E=v[v.length-1];if(E&&r.isVariableDeclaration(E)&&r.isVariableDeclaration(x)&&E.kind===x.kind){var w;(w=E.declarations).push.apply(w,x.declarations)}else v.push(x)}for(var A=v,_=Array.isArray(A),C=0,A=_?A:(0,s.default)(A);;){var S;if(_){if(C>=A.length)break;S=A[C++]}else{if(C=A.next(),C.done)break;S=C.value}var k=S;if(k.declarations)for(var D=k.declarations,P=Array.isArray(D),O=0,D=P?D:(0,s.default)(D);;){var T;if(P){if(O>=D.length)break;T=D[O++]}else{if(O=D.next(),O.done)break;T=O.value}var M=T,R=M.id.name;o.bindings[R]&&(o.bindings[R].kind=k.kind)}}1===v.length?e.replaceWith(v[0]):e.replaceWithMultiple(v)}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){function t(e){var t=e.node,n=e.scope,r=[],i=t.right;if(!a.isIdentifier(i)||!n.hasBinding(i.name)){var o=n.generateUidIdentifier("arr");r.push(a.variableDeclaration("var",[a.variableDeclarator(o,i)])),i=o}var u=n.generateUidIdentifier("i"),l=s({BODY:t.body,KEY:u,ARR:i});a.inherits(l,t),a.ensureBlock(l);var c=a.memberExpression(i,u,!0),f=t.left;return a.isVariableDeclaration(f)?(f.declarations[0].init=c,l.body.body.unshift(f)):l.body.body.unshift(a.expressionStatement(a.assignmentExpression("=",f,c))),e.parentPath.isLabeledStatement()&&(l=a.labeledStatement(e.parentPath.node.label,l)),r.push(l),r}function n(e,t){var n=e.node,r=e.scope,o=e.parent,s=n.left,l=void 0,c=void 0;if(a.isIdentifier(s)||a.isPattern(s)||a.isMemberExpression(s))c=s;else{if(!a.isVariableDeclaration(s))throw t.buildCodeFrameError(s,i.get("unknownForHead",s.type));c=r.generateUidIdentifier("ref"),l=a.variableDeclaration(s.kind,[a.variableDeclarator(s.declarations[0].id,c)])}var f=r.generateUidIdentifier("iterator"),p=r.generateUidIdentifier("isArray"),d=u({LOOP_OBJECT:f,IS_ARRAY:p,OBJECT:n.right,INDEX:r.generateUidIdentifier("i"),ID:c});l||d.body.body.shift();var h=a.isLabeledStatement(o),v=void 0;return h&&(v=a.labeledStatement(o.label,d)),{replaceParent:h,declar:l,node:v||d,loop:d}}function r(e,t){var n=e.node,r=e.scope,o=e.parent,s=n.left,u=void 0,c=r.generateUidIdentifier("step"),f=a.memberExpression(c,a.identifier("value"));if(a.isIdentifier(s)||a.isPattern(s)||a.isMemberExpression(s))u=a.expressionStatement(a.assignmentExpression("=",s,f));else{if(!a.isVariableDeclaration(s))throw t.buildCodeFrameError(s,i.get("unknownForHead",s.type));u=a.variableDeclaration(s.kind,[a.variableDeclarator(s.declarations[0].id,f)])}var p=r.generateUidIdentifier("iterator"),d=l({ITERATOR_HAD_ERROR_KEY:r.generateUidIdentifier("didIteratorError"),ITERATOR_COMPLETION:r.generateUidIdentifier("iteratorNormalCompletion"),ITERATOR_ERROR_KEY:r.generateUidIdentifier("iteratorError"),ITERATOR_KEY:p,STEP_KEY:c,OBJECT:n.right,BODY:null}),h=a.isLabeledStatement(o),v=d[3].block.body,m=v[0];return h&&(v[0]=a.labeledStatement(o.label,m)),{replaceParent:h,declar:u,loop:m,node:d}}var i=e.messages,o=e.template,a=e.types,s=o("\n for (var KEY = 0; KEY < ARR.length; KEY++) BODY;\n "),u=o("\n for (var LOOP_OBJECT = OBJECT,\n IS_ARRAY = Array.isArray(LOOP_OBJECT),\n INDEX = 0,\n LOOP_OBJECT = IS_ARRAY ? LOOP_OBJECT : LOOP_OBJECT[Symbol.iterator]();;) {\n var ID;\n if (IS_ARRAY) {\n if (INDEX >= LOOP_OBJECT.length) break;\n ID = LOOP_OBJECT[INDEX++];\n } else {\n INDEX = LOOP_OBJECT.next();\n if (INDEX.done) break;\n ID = INDEX.value;\n }\n }\n "),l=o("\n var ITERATOR_COMPLETION = true;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY = undefined;\n try {\n for (var ITERATOR_KEY = OBJECT[Symbol.iterator](), STEP_KEY; !(ITERATOR_COMPLETION = (STEP_KEY = ITERATOR_KEY.next()).done); ITERATOR_COMPLETION = true) {\n }\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (!ITERATOR_COMPLETION && ITERATOR_KEY.return) {\n ITERATOR_KEY.return();\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n ");return{visitor:{ForOfStatement:function(e,i){if(e.get("right").isArrayExpression())return e.parentPath.isLabeledStatement()?e.parentPath.replaceWithMultiple(t(e)):e.replaceWithMultiple(t(e));var o=r;i.opts.loose&&(o=n);var s=e.node,u=o(e,i),l=u.declar,c=u.loop,f=c.body;e.ensureBlock(),l&&f.body.push(l),f.body=f.body.concat(s.body.body),a.inherits(c,s),a.inherits(c.body,s.body),u.replaceParent?(e.parentPath.replaceWithMultiple(u.node),e.remove()):e.replaceWithMultiple(u.node)}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(){return{visitor:{FunctionExpression:{exit:function(e){if("value"!==e.key&&!e.parentPath.isObjectProperty()){var t=(0,o.default)(e);t&&e.replaceWith(t)}}},ObjectProperty:function(e){var t=e.get("value");if(t.isFunction()){var n=(0,o.default)(t);n&&t.replaceWith(n)}}}}};var i=n(40),o=r(i);e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{NumericLiteral:function(e){var t=e.node;t.extra&&/^0[ob]/i.test(t.extra.raw)&&(t.extra=void 0)},StringLiteral:function(e){var t=e.node;t.extra&&/\\[u]/gi.test(t.extra.raw)&&(t.extra=void 0)}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(13),a=i(o),s=n(9),u=i(s),l=n(2),c=i(l),f=n(10),p=i(f);t.default=function(){var e=(0,p.default)(),t={ReferencedIdentifier:function(e){var t=e.node.name,n=this.remaps[t];if(n&&this.scope.getBinding(t)===e.scope.getBinding(t)){if(e.parentPath.isCallExpression({ -callee:e.node}))e.replaceWith(g.sequenceExpression([g.numericLiteral(0),n]));else if(e.isJSXIdentifier()&&g.isMemberExpression(n)){var r=n.object,i=n.property;e.replaceWith(g.JSXMemberExpression(g.JSXIdentifier(r.name),g.JSXIdentifier(i.name)))}else e.replaceWith(n);this.requeueInParent(e)}},AssignmentExpression:function(t){var n=t.node;if(!n[e]){var r=t.get("left");if(r.isIdentifier()){var i=r.node.name,o=this.exports[i];if(o&&this.scope.getBinding(i)===t.scope.getBinding(i)){n[e]=!0;for(var a=o,s=Array.isArray(a),u=0,a=s?a:(0,c.default)(a);;){var l;if(s){if(u>=a.length)break;l=a[u++]}else{if(u=a.next(),u.done)break;l=u.value}var f=l;n=w(f,n).expression}t.replaceWith(n),this.requeueInParent(t)}}}},UpdateExpression:function(e){var t=e.get("argument");if(t.isIdentifier()){var n=t.node.name,r=this.exports[n];if(r&&this.scope.getBinding(n)===e.scope.getBinding(n)){var i=g.assignmentExpression(e.node.operator[0]+"=",t.node,g.numericLiteral(1));if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()||e.node.prefix)return e.replaceWith(i),void this.requeueInParent(e);var o=[];o.push(i);var a=void 0;a="--"===e.node.operator?"+":"-",o.push(g.binaryExpression(a,t.node,g.numericLiteral(1))),e.replaceWithMultiple(g.sequenceExpression(o))}}}};return{inherits:n(212),visitor:{ThisExpression:function(e,t){this.ranCommonJS||t.opts.allowTopLevelThis===!0||e.findParent(function(e){return!e.is("shadow")&&_.indexOf(e.type)>=0})||e.replaceWith(g.identifier("undefined"))},Program:{exit:function(e){function n(t,n){var r=S[t];if(r)return r;var i=e.scope.generateUidIdentifier((0,d.basename)(t,(0,d.extname)(t))),o=g.variableDeclaration("var",[g.variableDeclarator(i,y(g.stringLiteral(t)).expression)]);return h[t]&&(o.loc=h[t].loc),"number"==typeof n&&n>0&&(o._blockHoist=n),_.push(o),S[t]=i}function r(e,t,n){var r=e[t]||[];e[t]=r.concat(n)}this.ranCommonJS=!0;var i=!!this.opts.strict,o=!!this.opts.noInterop,s=e.scope;s.rename("module"),s.rename("exports"),s.rename("require");for(var l=!1,f=!1,p=e.get("body"),h=(0,u.default)(null),v=(0,u.default)(null),m=(0,u.default)(null),_=[],C=(0,u.default)(null),S=(0,u.default)(null),k=p,D=Array.isArray(k),P=0,k=D?k:(0,c.default)(k);;){var O;if(D){if(P>=k.length)break;O=k[P++]}else{if(P=k.next(),P.done)break;O=P.value}var T=O;if(T.isExportDeclaration()){l=!0;for(var M=[].concat(T.get("declaration"),T.get("specifiers")),R=M,N=Array.isArray(R),F=0,R=N?R:(0,c.default)(R);;){var I;if(N){if(F>=R.length)break;I=R[F++]}else{if(F=R.next(),F.done)break;I=F.value}var L=I,j=L.getBindingIdentifiers();if(j.__esModule)throw L.buildCodeFrameError('Illegal export "__esModule"')}}if(T.isImportDeclaration()){var B;f=!0;var U=T.node.source.value,V=h[U]||{specifiers:[],maxBlockHoist:0,loc:T.node.loc};(B=V.specifiers).push.apply(B,T.node.specifiers),"number"==typeof T.node._blockHoist&&(V.maxBlockHoist=Math.max(T.node._blockHoist,V.maxBlockHoist)),h[U]=V,T.remove()}else if(T.isExportDefaultDeclaration()){var W=T.get("declaration");if(W.isFunctionDeclaration()){var q=W.node.id,H=g.identifier("default");q?(r(v,q.name,H),_.push(w(H,q)),T.replaceWith(W.node)):(_.push(w(H,g.toExpression(W.node))),T.remove())}else if(W.isClassDeclaration()){var G=W.node.id,z=g.identifier("default");G?(r(v,G.name,z),T.replaceWithMultiple([W.node,w(z,G)])):(T.replaceWith(w(z,g.toExpression(W.node))),T.parentPath.requeue(T.get("expression.left")))}else T.replaceWith(w(g.identifier("default"),W.node)),T.parentPath.requeue(T.get("expression.left"))}else if(T.isExportNamedDeclaration()){var Y=T.get("declaration");if(Y.node){if(Y.isFunctionDeclaration()){var K=Y.node.id;r(v,K.name,K),_.push(w(K,K)),T.replaceWith(Y.node)}else if(Y.isClassDeclaration()){var X=Y.node.id;r(v,X.name,X),T.replaceWithMultiple([Y.node,w(X,X)]),m[X.name]=!0}else if(Y.isVariableDeclaration()){for(var $=Y.get("declarations"),J=$,Q=Array.isArray(J),Z=0,J=Q?J:(0,c.default)(J);;){var ee;if(Q){if(Z>=J.length)break;ee=J[Z++]}else{if(Z=J.next(),Z.done)break;ee=Z.value}var te=ee,ne=te.get("id"),re=te.get("init");re.node||re.replaceWith(g.identifier("undefined")),ne.isIdentifier()&&(r(v,ne.node.name,ne.node),re.replaceWith(w(ne.node,re.node).expression),m[ne.node.name]=!0)}T.replaceWith(Y.node)}continue}var ie=T.get("specifiers"),oe=[],ae=T.node.source;if(ae)for(var se=n(ae.value,T.node._blockHoist),ue=ie,le=Array.isArray(ue),ce=0,ue=le?ue:(0,c.default)(ue);;){var fe;if(le){if(ce>=ue.length)break;fe=ue[ce++]}else{if(ce=ue.next(),ce.done)break;fe=ce.value}var pe=fe;pe.isExportNamespaceSpecifier()||pe.isExportDefaultSpecifier()||pe.isExportSpecifier()&&(o||"default"!==pe.node.local.name?_.push(x(g.stringLiteral(pe.node.exported.name),g.memberExpression(se,pe.node.local))):_.push(x(g.stringLiteral(pe.node.exported.name),g.memberExpression(g.callExpression(this.addHelper("interopRequireDefault"),[se]),pe.node.local))),m[pe.node.exported.name]=!0)}else for(var de=ie,he=Array.isArray(de),ve=0,de=he?de:(0,c.default)(de);;){var me;if(he){if(ve>=de.length)break;me=de[ve++]}else{if(ve=de.next(),ve.done)break;me=ve.value}var ge=me;ge.isExportSpecifier()&&(r(v,ge.node.local.name,ge.node.exported),m[ge.node.exported.name]=!0,oe.push(w(ge.node.exported,ge.node.local)))}T.replaceWithMultiple(oe)}else if(T.isExportAllDeclaration()){var ye=A({OBJECT:n(T.node.source.value,T.node._blockHoist)});ye.loc=T.node.loc,_.push(ye),T.remove()}}for(var be in h){var xe=h[be],M=xe.specifiers,Ee=xe.maxBlockHoist;if(M.length){for(var we=n(be,Ee),Ae=void 0,_e=0;_e0&&(Se._blockHoist=Ee),_.push(Se)}Ae=Ce.local}else g.isImportDefaultSpecifier(Ce)&&(M[_e]=g.importSpecifier(Ce.local,g.identifier("default")))}for(var ke=M,De=Array.isArray(ke),Pe=0,ke=De?ke:(0,c.default)(ke);;){var Oe;if(De){if(Pe>=ke.length)break;Oe=ke[Pe++]}else{if(Pe=ke.next(),Pe.done)break;Oe=Pe.value}var Te=Oe;if(g.isImportSpecifier(Te)){var Me=we;if("default"===Te.imported.name)if(Ae)Me=Ae;else if(!o){Me=Ae=e.scope.generateUidIdentifier(we.name);var Re=g.variableDeclaration("var",[g.variableDeclarator(Me,g.callExpression(this.addHelper("interopRequireDefault"),[we]))]);Ee>0&&(Re._blockHoist=Ee),_.push(Re)}C[Te.local.name]=g.memberExpression(Me,g.cloneWithoutLoc(Te.imported))}}}else{var Ne=y(g.stringLiteral(be));Ne.loc=h[be].loc,_.push(Ne)}}if(f&&(0,a.default)(m).length)for(var Fe=100,Ie=(0,a.default)(m),Le=function(e){var t=Ie.slice(e,e+Fe),n=g.identifier("undefined");t.forEach(function(e){n=w(g.identifier(e),n).expression});var r=g.expressionStatement(n);r._blockHoist=3,_.unshift(r)},je=0;je=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var d=p;d.isObjectProperty()&&(d=d.get("value")),t(d,d.node,e.scope,s,i)}a&&(e.scope.push({id:a}),e.replaceWith(n.assignmentExpression("=",a,e.node)))}}}}}};var u=n(189),l=r(u);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(2),a=i(o);t.default=function(){return{visitor:s.visitors.merge([{ArrowFunctionExpression:function(e){for(var t=e.get("params"),n=t,r=Array.isArray(n),i=0,n=r?n:(0,a.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var s=o;if(s.isRestElement()||s.isAssignmentPattern()){e.arrowFunctionToShadowed();break}}}},l.visitor,d.visitor,f.visitor])}};var s=n(7),u=n(330),l=r(u),c=n(329),f=r(c),p=n(331),d=r(p);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0,t.default=function(){return{visitor:{ObjectMethod:function(e){var t=e.node;if("method"===t.kind){var n=o.functionExpression(null,t.params,t.body,t.generator,t.async);n.returnType=t.returnType,e.replaceWith(o.objectProperty(t.key,n,t.computed))}},ObjectProperty:function(e){var t=e.node;t.shorthand&&(t.shorthand=!1)}}}};var i=n(1),o=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(2),o=r(i);t.default=function(e){function t(e,t,n){return n.opts.loose&&!i.isIdentifier(e.argument,{name:"arguments"})?e.argument:t.toArray(e.argument,!0)}function n(e){for(var t=0;t=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var d=p;i.isSpreadElement(d)?(a(),s.push(t(d,n,r))):u.push(d)}return a(),s}var i=e.types;return{visitor:{ArrayExpression:function(e,t){var o=e.node,a=e.scope,s=o.elements;if(n(s)){var u=r(s,a,t),l=u.shift();i.isArrayExpression(l)||(u.unshift(l),l=i.arrayExpression([])),e.replaceWith(i.callExpression(i.memberExpression(l,i.identifier("concat")),u))}},CallExpression:function(e,t){var o=e.node,a=e.scope,s=o.arguments;if(n(s)){var u=e.get("callee");if(!u.isSuper()){var l=i.identifier("undefined");o.arguments=[];var c=void 0;c=1===s.length&&"arguments"===s[0].argument.name?[s[0].argument]:r(s,a,t);var f=c.shift();c.length?o.arguments.push(i.callExpression(i.memberExpression(f,i.identifier("concat")),c)):o.arguments.push(f);var p=o.callee;if(u.isMemberExpression()){var d=a.maybeGenerateMemoised(p.object);d?(p.object=i.assignmentExpression("=",d,p.object),l=d):l=p.object,i.appendToMemberExpression(p,i.identifier("apply"))}else o.callee=i.memberExpression(o.callee,i.identifier("apply"));i.isSuper(l)&&(l=i.thisExpression()),o.arguments.unshift(l)}}},NewExpression:function(e,t){var o=e.node,a=e.scope,s=o.arguments;if(n(s)){var u=r(s,a,t),l=i.arrayExpression([i.nullLiteral()]);s=i.callExpression(i.memberExpression(l,i.identifier("concat")),u),e.replaceWith(i.newExpression(i.callExpression(i.memberExpression(i.memberExpression(i.memberExpression(i.identifier("Function"),i.identifier("prototype")),i.identifier("bind")),i.identifier("apply")),[o.callee,s]),[]))}}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0,t.default=function(){return{visitor:{RegExpLiteral:function(e){var t=e.node;o.is(t,"y")&&e.replaceWith(s.newExpression(s.identifier("RegExp"),[s.stringLiteral(t.pattern),s.stringLiteral(t.flags)]))}}}};var i=n(188),o=r(i),a=n(1),s=r(a);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(2),o=r(i);t.default=function(e){function t(e){return r.isLiteral(e)&&"string"==typeof e.value}function n(e,t){return r.binaryExpression("+",e,t)}var r=e.types;return{visitor:{TaggedTemplateExpression:function(e,t){for(var n=e.node,i=n.quasi,a=[],s=[],u=[],l=i.quasis,c=Array.isArray(l),f=0,l=c?l:(0,o.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var d=p;s.push(r.stringLiteral(d.value.cooked)),u.push(r.stringLiteral(d.value.raw))}s=r.arrayExpression(s),u=r.arrayExpression(u);var h="taggedTemplateLiteral";t.opts.loose&&(h+="Loose");var v=t.file.addTemplateObject(h,s,u);a.push(v),a=a.concat(i.expressions),e.replaceWith(r.callExpression(n.tag,a))},TemplateLiteral:function(e,i){for(var a=[],s=e.get("expressions"),u=e.node.quasis,l=Array.isArray(u),c=0,u=l?u:(0,o.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;a.push(r.stringLiteral(p.value.cooked));var d=s.shift();d&&(!i.opts.spec||d.isBaseType("string")||d.isBaseType("number")?a.push(d.node):a.push(r.callExpression(r.identifier("String"),[d.node])))}if(a=a.filter(function(e){return!r.isLiteral(e,{value:""})}),t(a[0])||t(a[1])||a.unshift(r.stringLiteral("")),a.length>1){for(var h=n(a.shift(),a.shift()),v=a,m=Array.isArray(v),g=0,v=m?v:(0,o.default)(v);;){var y;if(m){if(g>=v.length)break;y=v[g++]}else{if(g=v.next(),g.done)break;y=g.value}var b=y;h=n(h,b)}e.replaceWith(h)}else e.replaceWith(a[0])}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(10),o=r(i);t.default=function(e){var t=e.types,n=(0,o.default)();return{visitor:{Scope:function(e){var t=e.scope;t.getBinding("Symbol")&&t.rename("Symbol")},UnaryExpression:function(e){var r=e.node,i=e.parent;if(!r[n]&&!e.find(function(e){return e.node&&!!e.node._generated})){if(e.parentPath.isBinaryExpression()&&t.EQUALITY_BINARY_OPERATORS.indexOf(i.operator)>=0){var o=e.getOpposite();if(o.isLiteral()&&"symbol"!==o.node.value&&"object"!==o.node.value)return}if("typeof"===r.operator){var a=t.callExpression(this.addHelper("typeof"),[r.argument]);if(e.get("argument").isIdentifier()){var s=t.stringLiteral("undefined"),u=t.unaryExpression("typeof",r.argument);u[n]=!0,e.replaceWith(t.conditionalExpression(t.binaryExpression("===",u,s),s,a))}else e.replaceWith(a)}}}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(){return{visitor:{RegExpLiteral:function(e){var t=e.node;u.is(t,"u")&&(t.pattern=(0,a.default)(t.pattern,t.flags),u.pullFlag(t,"u"))}}}};var o=n(603),a=i(o),s=n(188),u=r(s);e.exports=t.default},function(e,t,n){"use strict";e.exports=n(597)},function(e,t,n){"use strict";e.exports={default:n(404),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){o(),a()}function o(){t.path=l=new u.default}function a(){t.scope=c=new u.default}t.__esModule=!0,t.scope=t.path=void 0;var s=n(360),u=r(s);t.clear=i,t.clearPath=o,t.clearScope=a;var l=t.path=new u.default,c=t.scope=new u.default},function(e,t){"use strict";e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(54),i=n(425),o=n(424),a=n(19),s=n(149),u=n(233),l={},c={},f=e.exports=function(e,t,n,f,p){var d,h,v,m,g=p?function(){return e}:u(e),y=r(n,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(d=s(e.length);d>b;b++)if(m=t?y(a(h=e[b])[0],h[1]):y(e[b]),m===l||m===c)return m}else for(v=g.call(e);!(h=v.next()).done;)if(m=i(v,y,h.value,t),m===l||m===c)return m};f.BREAK=l,f.RETURN=c},function(e,t,n){"use strict";var r=n(19),i=n(428),o=n(139),a=n(146)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(225)("iframe"),r=o.length,i="<",a=">";for(t.style.display="none",n(423).appendChild(t),t.src="/service/javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;r--;)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t){"use strict";t.f={}.propertyIsEnumerable},function(e,t){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(23).f,i=n(27),o=n(12)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(87);e.exports=function(e){return Object(r(e))}},function(e,t){"use strict";var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){"use strict"},function(e,t,n){"use strict";!function(){t.ast=n(452),t.code=n(235),t.keyword=n(453)}()},function(e,t,n){"use strict";function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r-1:!!c&&i(e,t,n)>-1}var i=n(162),o=n(24),a=n(578),s=n(47),u=n(275),l=Math.max;e.exports=r},function(e,t,n){"use strict";var r=n(484),i=n(25),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){(function(e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(15),o=n(587),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a,l=u?i.Buffer:void 0,c=l?l.isBuffer:void 0,f=c||o;e.exports=f}).call(t,n(39)(e))},function(e,t,n){"use strict";function r(e){return null==e?"":i(e)}var i=n(248);e.exports=r},95,function(e,t,n){(function(e,r){"use strict";function i(e,n){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),v(n)?r.showHidden=n:n&&t._extend(r,n),E(r.showHidden)&&(r.showHidden=!1),E(r.depth)&&(r.depth=2),E(r.colors)&&(r.colors=!1),E(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,e,r.depth)}function o(e,t){var n=i.styles[t];return n?"["+i.colors[n][0]+"m"+e+"["+i.colors[n][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return b(i)||(i=u(e,i,r)),i}var o=l(e,n);if(o)return o;var a=Object.keys(n),v=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),C(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(n);if(0===a.length){if(S(n)){var m=n.name?": "+n.name:"";return e.stylize("[Function"+m+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return c(n)}var g="",y=!1,x=["{","}"];if(h(n)&&(y=!0,x=["[","]"]),S(n)){var E=n.name?": "+n.name:"";g=" [Function"+E+"]"}if(w(n)&&(g=" "+RegExp.prototype.toString.call(n)),_(n)&&(g=" "+Date.prototype.toUTCString.call(n)),C(n)&&(g=" "+c(n)),0===a.length&&(!y||0==n.length))return x[0]+g+x[1];if(r<0)return w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var A;return A=y?f(e,n,r,v,a):a.map(function(t){return p(e,n,r,v,t,y)}),e.seen.pop(),d(A,g,x)}function l(e,t){if(E(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i){for(var o=[],a=0,s=t.length;a-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e,t,n){var r=0,i=e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return null==e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function x(e){return"symbol"===("undefined"==typeof e?"undefined":M(e))}function E(e){return void 0===e}function w(e){return A(e)&&"[object RegExp]"===D(e)}function A(e){return"object"===("undefined"==typeof e?"undefined":M(e))&&null!==e}function _(e){return A(e)&&"[object Date]"===D(e)}function C(e){return A(e)&&("[object Error]"===D(e)||e instanceof Error)}function S(e){return"function"==typeof e}function k(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===("undefined"==typeof e?"undefined":M(e))||"undefined"==typeof e}function D(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}function O(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var M="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},R=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n1&&void 0!==arguments[1]?arguments[1]:r.cwd();if("object"===("undefined"==typeof u.default?"undefined":(0,a.default)(u.default)))return null;var n=f[t];if(!n){n=new u.default;var i=c.default.join(t,".babelrc");n.id=i,n.filename=i,n.paths=u.default._nodeModulePaths(t),f[t]=n}try{return u.default._resolveFilename(e,n)}catch(e){return null}};var s=n(114),u=i(s),l=n(17),c=i(l),f={};e.exports=t.default}).call(t,n(8))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(131),o=r(i),a=n(3),s=r(a),u=n(42),l=r(u),c=n(41),f=r(c),p=function(e){function t(){(0,s.default)(this,t);var n=(0,l.default)(this,e.call(this));return n.dynamicData={},n}return(0,f.default)(t,e),t.prototype.setDynamic=function(e,t){this.dynamicData[e]=t},t.prototype.get=function(t){if(this.has(t))return e.prototype.get.call(this,t);if(Object.prototype.hasOwnProperty.call(this.dynamicData,t)){var n=this.dynamicData[t]();return this.set(t,n),n}},t}(o.default);t.default=p,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(3),o=r(i),a=n(234),s=r(a),u=(0,s.default)("babel:verbose"),l=(0,s.default)("babel"),c=[],f=function(){function e(t,n){(0,o.default)(this,e),this.filename=n,this.file=t}return e.prototype._buildMessage=function(e){var t="[BABEL] "+this.filename;return e&&(t+=": "+e),t},e.prototype.warn=function(e){console.warn(this._buildMessage(e))},e.prototype.error=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Error;throw new t(this._buildMessage(e))},e.prototype.deprecate=function(e){this.file.opts&&this.file.opts.suppressDeprecationMessages||(e=this._buildMessage(e),c.indexOf(e)>=0||(c.push(e),console.error(e)))},e.prototype.verbose=function(e){u.enabled&&u(this._buildMessage(e))},e.prototype.debug=function(e){l.enabled&&l(this._buildMessage(e))},e.prototype.deopt=function(e,t){this.debug(t)},e}();t.default=f,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=e.node,r=n.source?n.source.value:null,i=t.metadata.modules.exports,o=e.get("declaration");if(o.isStatement()){var a=o.getBindingIdentifiers();for(var s in a)i.exported.push(s),i.specifiers.push({kind:"local",local:s,exported:e.isExportDefaultDeclaration()?"default":s})}if(e.isExportNamedDeclaration()&&n.specifiers)for(var l=n.specifiers,f=Array.isArray(l),p=0,l=f?l:(0,u.default)(l);;){var d;if(f){if(p>=l.length)break;d=l[p++]}else{if(p=l.next(),p.done)break;d=p.value}var h=d,v=h.exported.name;i.exported.push(v),c.isExportDefaultSpecifier(h)&&i.specifiers.push({kind:"external",local:v,exported:v,source:r}),c.isExportNamespaceSpecifier(h)&&i.specifiers.push({kind:"external-namespace",exported:v,source:r});var m=h.local;m&&(r&&i.specifiers.push({kind:"external",local:m.name,exported:v,source:r}),r||i.specifiers.push({kind:"local",local:m.name,exported:v}))}e.isExportAllDeclaration()&&i.specifiers.push({kind:"external-all",source:r})}function a(e){e.skip()}t.__esModule=!0,t.ImportDeclaration=t.ModuleDeclaration=void 0;var s=n(2),u=i(s);t.ExportDeclaration=o,t.Scope=a;var l=n(1),c=r(l);t.ModuleDeclaration={enter:function(e,t){var n=e.node;n.source&&(n.source.value=t.resolveModuleSource(n.source.value))}},t.ImportDeclaration={exit:function(e,t){var n=e.node,r=[],i=[];t.metadata.modules.imports.push({source:n.source.value,imported:i,specifiers:r});for(var o=e.get("specifiers"),a=Array.isArray(o),s=0,o=a?o:(0,u.default)(o);;){var l;if(a){if(s>=o.length)break;l=o[s++]}else{if(s=o.next(),s.done)break;l=s.value}var c=l,f=c.node.local.name;if(c.isImportDefaultSpecifier()&&(i.push("default"),r.push({kind:"named",imported:"default",local:f})),c.isImportSpecifier()){var p=c.node.imported.name;i.push(p),r.push({kind:"named",imported:p,local:f})}c.isImportNamespaceSpecifier()&&(i.push("*"),r.push({kind:"namespace",local:f}))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=t||i.EXTENSIONS,r=C.default.extname(e);return(0,E.default)(n,r)}function o(e){return e?Array.isArray(e)?e:"string"==typeof e?e.split(","):[e]:[]}function a(e){if(!e)return new RegExp(/.^/);if(Array.isArray(e)&&(e=new RegExp(e.map(v.default).join("|"),"i")),"string"==typeof e){e=(0,k.default)(e),((0,g.default)(e,"./")||(0,g.default)(e,"*/"))&&(e=e.slice(2)),(0,g.default)(e,"**/")&&(e=e.slice(3));var t=b.default.makeRe(e,{nocase:!0});return new RegExp(t.source.slice(1,-1),"i")}if((0,A.default)(e))return e;throw new TypeError("illegal type for regexify")}function s(e,t){return e?"boolean"==typeof e?s([e],t):"string"==typeof e?s(o(e),t):Array.isArray(e)?(t&&(e=e.map(t)), -e):[e]:[]}function u(e){return"true"===e||1==e||!("false"===e||0==e||!e)&&e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2];if(e=e.replace(/\\/g,"/"),n){for(var r=n,i=Array.isArray(r),o=0,r=i?r:(0,p.default)(r);;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;if(c(s,e))return!1}return!0}if(t.length)for(var u=t,l=Array.isArray(u),f=0,u=l?u:(0,p.default)(u);;){var d;if(l){if(f>=u.length)break;d=u[f++]}else{if(f=u.next(),f.done)break;d=f.value}var h=d;if(c(h,e))return!0}return!1}function c(e,t){return"function"==typeof e?e(t):e.test(t)}t.__esModule=!0,t.inspect=t.inherits=void 0;var f=n(2),p=r(f),d=n(115);Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return d.inherits}}),Object.defineProperty(t,"inspect",{enumerable:!0,get:function(){return d.inspect}}),t.canCompile=i,t.list=o,t.regexify=a,t.arrayify=s,t.booleanify=u,t.shouldIgnore=l;var h=n(568),v=r(h),m=n(586),g=r(m),y=n(592),b=r(y),x=n(110),E=r(x),w=n(271),A=r(w),_=n(17),C=r(_),S=n(280),k=r(S);i.EXTENSIONS=[".js",".jsx",".es6",".es"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){e.variance&&("plus"===e.variance?this.token("+"):"minus"===e.variance&&this.token("-")),this.word(e.name)}function a(e){this.token("..."),this.print(e.argument,e)}function s(e){var t=e.properties;this.token("{"),this.printInnerComments(e),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.token("}")}function u(e){this.printJoin(e.decorators,e),this._method(e)}function l(e){if(this.printJoin(e.decorators,e),e.computed)this.token("["),this.print(e.key,e),this.token("]");else{if(g.isAssignmentPattern(e.value)&&g.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&&g.isIdentifier(e.key)&&g.isIdentifier(e.value)&&e.key.name===e.value.name)return}this.token(":"),this.space(),this.print(e.value,e)}function c(e){var t=e.elements,n=t.length;this.token("["),this.printInnerComments(e);for(var r=0;r0&&this.space(),this.print(i,e),r {\n var REF = FUNCTION;\n return function NAME(PARAMS) {\n return REF.apply(this, arguments);\n };\n })\n"),m=(0,c.default)("\n (() => {\n var REF = FUNCTION;\n function NAME(PARAMS) {\n return REF.apply(this, arguments);\n }\n return NAME;\n })\n"),g={Function:function(e){return e.isArrowFunctionExpression()&&!e.node.async?void e.arrowFunctionToShadowed():void e.skip()},AwaitExpression:function(e,t){var n=e.node,r=t.wrapAwait;n.type="YieldExpression",r&&(n.argument=p.callExpression(r,[n.argument]))},ForAwaitStatement:function(e,t){var n=t.file,r=t.wrapAwait,i=e.node,o=(0,h.default)(e,{getAsyncIterator:n.addHelper("asyncIterator"),wrapAwait:r}),a=o.declar,s=o.loop,u=s.body;e.ensureBlock(),a&&u.body.push(a),u.body=u.body.concat(i.body.body),p.inherits(s,i),p.inherits(s.body,i.body),o.replaceParent?(e.parentPath.replaceWithMultiple(o.node),e.remove()):e.replaceWithMultiple(o.node)}};e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("decorators")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("flow")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("jsx")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("trailingFunctionCommas")}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(){return{inherits:n(65),visitor:{Function:function(e,t){e.node.async&&!e.node.generator&&(0,o.default)(e,t.file,{wrapAsync:t.addHelper("asyncToGenerator")})}}}};var i=n(122),o=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return f.isIdentifier(e)?e.name:e.value.toString()}t.__esModule=!0;var a=n(2),s=i(a),u=n(9),l=i(u);t.default=function(){return{visitor:{ObjectExpression:function(e){for(var t=e.node,n=t.properties.filter(function(e){return!f.isSpreadProperty(e)&&!e.computed}),r=(0,l.default)(null),i=(0,l.default)(null),a=(0,l.default)(null),u=n,c=Array.isArray(u),p=0,u=c?u:(0,s.default)(u);;){var d;if(c){if(p>=u.length)break;d=u[p++]}else{if(p=u.next(),p.done)break;d=p.value}var h=d,v=o(h.key),m=!1;switch(h.kind){case"get":(r[v]||i[v])&&(m=!0),i[v]=!0;break;case"set":(r[v]||a[v])&&(m=!0),a[v]=!0;break;default:(r[v]||i[v]||a[v])&&(m=!0),r[v]=!0}m&&(h.computed=!0,h.key=f.stringLiteral(v))}}}}};var c=n(1),f=r(c);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(9),o=r(i);t.default=function(e){function t(e){if(!e.isCallExpression())return!1;if(!e.get("callee").isIdentifier({name:"require"}))return!1;if(e.scope.getBinding("require"))return!1;var t=e.get("arguments");if(1!==t.length)return!1;var n=t[0];return!!n.isStringLiteral()}var r=e.types,i={ReferencedIdentifier:function(e){var t=e.node,n=e.scope;"exports"!==t.name||n.getBinding("exports")||(this.hasExports=!0),"module"!==t.name||n.getBinding("module")||(this.hasModule=!0)},CallExpression:function(e){t(e)&&(this.bareSources.push(e.node.arguments[0]),e.remove())},VariableDeclarator:function(e){var n=e.get("id");if(n.isIdentifier()){var r=e.get("init");if(t(r)){var i=r.node.arguments[0];this.sourceNames[i.value]=!0,this.sources.push([n.node,i]),e.remove()}}}};return{inherits:n(75),pre:function(){this.sources=[],this.sourceNames=(0,o.default)(null),this.bareSources=[],this.hasExports=!1,this.hasModule=!1},visitor:{Program:{exit:function(e){var t=this;if(!this.ran){this.ran=!0,e.traverse(i,this);var n=this.sources.map(function(e){return e[0]}),o=this.sources.map(function(e){return e[1]});o=o.concat(this.bareSources.filter(function(e){return!t.sourceNames[e.value]}));var a=this.getModuleName();a&&(a=r.stringLiteral(a)),this.hasExports&&(o.unshift(r.stringLiteral("exports")),n.unshift(r.identifier("exports"))),this.hasModule&&(o.unshift(r.stringLiteral("module")),n.unshift(r.identifier("module")));var s=e.node,c=l({PARAMS:n,BODY:s.body});c.expression.body.directives=s.directives,s.directives=[],s.body=[u({MODULE_NAME:a,SOURCES:o,FACTORY:c})]}}}}}};var a=n(4),s=r(a),u=(0,s.default)("\n define(MODULE_NAME, [SOURCES], FACTORY);\n"),l=(0,s.default)("\n (function (PARAMS) {\n BODY;\n })\n");e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){var t=e.types;return{inherits:n(195),visitor:(0,o.default)({operator:"**",build:function(e,n){return t.callExpression(t.memberExpression(t.identifier("Math"),t.identifier("pow")),[e,n])}})}};var i=n(312),o=r(i);e.exports=t.default},function(e,t,n){"use strict";e.exports={default:n(402),__esModule:!0}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){for(var r=F.scope.get(e.node)||[],i=r,o=Array.isArray(i),a=0,i=o?i:(0,m.default)(i);;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if(a=i.next(),a.done)break;s=a.value}var u=s;if(u.parent===t&&u.path===e)return u}r.push(n),F.scope.has(e.node)||F.scope.set(e.node,r)}function a(e,t){if(N.isModuleDeclaration(e))if(e.source)a(e.source,t);else if(e.specifiers&&e.specifiers.length)for(var n=e.specifiers,r=Array.isArray(n),i=0,n=r?n:(0,m.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var s=o;a(s,t)}else e.declaration&&a(e.declaration,t);else if(N.isModuleSpecifier(e))a(e.local,t);else if(N.isMemberExpression(e))a(e.object,t),a(e.property,t);else if(N.isIdentifier(e))t.push(e.name);else if(N.isLiteral(e))t.push(e.value);else if(N.isCallExpression(e))a(e.callee,t);else if(N.isObjectExpression(e)||N.isObjectPattern(e))for(var u=e.properties,l=Array.isArray(u),c=0,u=l?u:(0,m.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;a(p.key||p.argument,t)}}t.__esModule=!0;var s=n(13),u=i(s),l=n(9),c=i(l),f=n(131),p=i(f),d=n(3),h=i(d),v=n(2),m=i(v),g=n(110),y=i(g),b=n(273),x=i(b),E=n(379),w=i(E),A=n(7),_=i(A),C=n(268),S=i(C),k=n(18),D=r(k),P=n(221),O=i(P),T=n(454),M=i(T),R=n(1),N=r(R),F=n(86),I=0,L={For:function(e){for(var t=N.FOR_INIT_KEYS,n=Array.isArray(t),r=0,t=n?t:(0,m.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i,a=e.get(o);a.isVar()&&e.scope.getFunctionParent().registerBinding("var",a)}},Declaration:function(e){e.isBlockScoped()||e.isExportDeclaration()&&e.get("declaration").isDeclaration()||e.scope.getFunctionParent().registerDeclaration(e)},ReferencedIdentifier:function(e,t){t.references.push(e)},ForXStatement:function(e,t){var n=e.get("left");(n.isPattern()||n.isIdentifier())&&t.constantViolations.push(n)},ExportDeclaration:{exit:function(e){var t=e.node,n=e.scope,r=t.declaration;if(N.isClassDeclaration(r)||N.isFunctionDeclaration(r)){var i=r.id;if(!i)return;var o=n.getBinding(i.name);o&&o.reference(e)}else if(N.isVariableDeclaration(r))for(var a=r.declarations,s=Array.isArray(a),u=0,a=s?a:(0,m.default)(a);;){var l;if(s){if(u>=a.length)break;l=a[u++]}else{if(u=a.next(),u.done)break;l=u.value}var c=l,f=N.getBindingIdentifiers(c);for(var p in f){var d=n.getBinding(p);d&&d.reference(e)}}}},LabeledStatement:function(e){e.scope.getProgramParent().addGlobal(e.node),e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression:function(e,t){t.assignments.push(e)},UpdateExpression:function(e,t){t.constantViolations.push(e.get("argument"))},UnaryExpression:function(e,t){"delete"===e.node.operator&&t.constantViolations.push(e.get("argument"))},BlockScoped:function(e){var t=e.scope;t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e)},ClassDeclaration:function(e){var t=e.node.id;if(t){var n=t.name;e.scope.bindings[n]=e.scope.getBinding(n)}},Block:function(e){for(var t=e.get("body"),n=t,r=Array.isArray(n),i=0,n=r?n:(0,m.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;a.isFunctionDeclaration()&&e.scope.getBlockParent().registerDeclaration(a)}}},j=0,B=function(){function e(t,n){if((0,h.default)(this,e),n&&n.block===t.node)return n;var r=o(t,n,this);return r?r:(this.uid=j++,this.parent=n,this.hub=t.hub,this.parentBlock=t.parent,this.block=t.node,this.path=t,void(this.labels=new p.default))}return e.prototype.traverse=function(e,t,n){(0,_.default)(e,t,this,n,this.path)},e.prototype.generateDeclaredUidIdentifier=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp",t=this.generateUidIdentifier(e);return this.push({id:t}),t},e.prototype.generateUidIdentifier=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp";return N.identifier(this.generateUid(e))},e.prototype.generateUid=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp";e=N.toIdentifier(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");var t=void 0,n=0;do t=this._generateUid(e,n),n++;while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));var r=this.getProgramParent();return r.references[t]=!0,r.uids[t]=!0,t},e.prototype._generateUid=function(e,t){var n=e;return t>1&&(n+=t),"_"+n},e.prototype.generateUidIdentifierBasedOnNode=function(e,t){var n=e;N.isAssignmentExpression(e)?n=e.left:N.isVariableDeclarator(e)?n=e.id:(N.isObjectProperty(n)||N.isObjectMethod(n))&&(n=n.key);var r=[];a(n,r);var i=r.join("$");return i=i.replace(/^_/,"")||t||"ref",this.generateUidIdentifier(i.slice(0,20))},e.prototype.isStatic=function(e){if(N.isThisExpression(e)||N.isSuper(e))return!0;if(N.isIdentifier(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1},e.prototype.maybeGenerateMemoised=function(e,t){if(this.isStatic(e))return null;var n=this.generateUidIdentifierBasedOnNode(e);return t||this.push({id:n}),n},e.prototype.checkBlockScopedCollisions=function(e,t,n,r){if("param"!==t&&("hoisted"!==t||"let"!==e.kind)){var i="let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&("let"===t||"const"===t);if(i)throw this.hub.file.buildCodeFrameError(r,D.get("scopeDuplicateDeclaration",n),TypeError)}},e.prototype.rename=function(e,t,n){var r=this.getBinding(e);if(r)return t=t||this.generateUidIdentifier(e).name,new w.default(r,e,t).rename(n)},e.prototype._renameFromMap=function(e,t,n,r){e[t]&&(e[n]=r,e[t]=null)},e.prototype.dump=function(){var e=(0,x.default)("-",60);console.log(e);var t=this;do{console.log("#",t.block.type);for(var n in t.bindings){var r=t.bindings[n];console.log(" -",n,{constant:r.constant,references:r.references,violations:r.constantViolations.length,kind:r.kind})}}while(t=t.parent);console.log(e)},e.prototype.toArray=function(e,t){var n=this.hub.file;if(N.isIdentifier(e)){var r=this.getBinding(e.name);if(r&&r.constant&&r.path.isGenericType("Array"))return e}if(N.isArrayExpression(e))return e;if(N.isIdentifier(e,{name:"arguments"}))return N.callExpression(N.memberExpression(N.memberExpression(N.memberExpression(N.identifier("Array"),N.identifier("prototype")),N.identifier("slice")),N.identifier("call")),[e]);var i="toArray",o=[e];return t===!0?i="toConsumableArray":t&&(o.push(N.numericLiteral(t)),i="slicedToArray"),N.callExpression(n.addHelper(i),o)},e.prototype.hasLabel=function(e){return!!this.getLabel(e)},e.prototype.getLabel=function(e){return this.labels.get(e)},e.prototype.registerLabel=function(e){this.labels.set(e.node.label.name,e)},e.prototype.registerDeclaration=function(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration())for(var t=e.get("declarations"),n=t,r=Array.isArray(n),i=0,n=r?n:(0,m.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;this.registerBinding(e.node.kind,a)}else if(e.isClassDeclaration())this.registerBinding("let",e);else if(e.isImportDeclaration())for(var s=e.get("specifiers"),u=s,l=Array.isArray(u),c=0,u=l?u:(0,m.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;this.registerBinding("module",p)}else if(e.isExportDeclaration()){var d=e.get("declaration");(d.isClassDeclaration()||d.isFunctionDeclaration()||d.isVariableDeclaration())&&this.registerDeclaration(d)}else this.registerBinding("unknown",e)},e.prototype.buildUndefinedNode=function(){return this.hasBinding("undefined")?N.unaryExpression("void",N.numericLiteral(0),!0):N.identifier("undefined")},e.prototype.registerConstantViolation=function(e){var t=e.getBindingIdentifiers();for(var n in t){var r=this.getBinding(n);r&&r.reassign(e)}},e.prototype.registerBinding=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration())for(var r=t.get("declarations"),i=r,o=Array.isArray(i),a=0,i=o?i:(0,m.default)(i);;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if(a=i.next(),a.done)break;s=a.value}var u=s;this.registerBinding(e,u)}else{var l=this.getProgramParent(),c=t.getBindingIdentifiers(!0);for(var f in c)for(var p=c[f],d=Array.isArray(p),h=0,p=d?p:(0,m.default)(p);;){var v;if(d){if(h>=p.length)break;v=p[h++]}else{if(h=p.next(),h.done)break;v=h.value}var g=v,y=this.getOwnBinding(f);if(y){if(y.identifier===g)continue;this.checkBlockScopedCollisions(y,e,f,g)}y&&y.path.isFlow()&&(y=null),l.references[f]=!0,this.bindings[f]=new O.default({identifier:g,existing:y,scope:this,path:n,kind:e})}}},e.prototype.addGlobal=function(e){this.globals[e.name]=e},e.prototype.hasUid=function(e){var t=this;do if(t.uids[e])return!0;while(t=t.parent);return!1},e.prototype.hasGlobal=function(e){var t=this;do if(t.globals[e])return!0;while(t=t.parent);return!1},e.prototype.hasReference=function(e){var t=this;do if(t.references[e])return!0;while(t=t.parent);return!1},e.prototype.isPure=function(e,t){if(N.isIdentifier(e)){var n=this.getBinding(e.name);return!!n&&(!t||n.constant)}if(N.isClass(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&this.isPure(e.body,t);if(N.isClassBody(e)){for(var r=e.body,i=Array.isArray(r),o=0,r=i?r:(0,m.default)(r);;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;if(!this.isPure(s,t))return!1}return!0}if(N.isBinary(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(N.isArrayExpression(e)){for(var u=e.elements,l=Array.isArray(u),c=0,u=l?u:(0,m.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;if(!this.isPure(p,t))return!1}return!0}if(N.isObjectExpression(e)){for(var d=e.properties,h=Array.isArray(d),v=0,d=h?d:(0,m.default)(d);;){var g;if(h){if(v>=d.length)break;g=d[v++]}else{if(v=d.next(),v.done)break;g=v.value}var y=g;if(!this.isPure(y,t))return!1}return!0}return N.isClassMethod(e)?!(e.computed&&!this.isPure(e.key,t))&&("get"!==e.kind&&"set"!==e.kind):N.isClassProperty(e)||N.isObjectProperty(e)?!(e.computed&&!this.isPure(e.key,t))&&this.isPure(e.value,t):N.isUnaryExpression(e)?this.isPure(e.argument,t):N.isPureish(e)},e.prototype.setData=function(e,t){return this.data[e]=t},e.prototype.getData=function(e){var t=this;do{var n=t.data[e];if(null!=n)return n}while(t=t.parent)},e.prototype.removeData=function(e){var t=this;do{var n=t.data[e];null!=n&&(t.data[e]=null)}while(t=t.parent)},e.prototype.init=function(){this.references||this.crawl()},e.prototype.crawl=function(){I++,this._crawl(),I--},e.prototype._crawl=function(){var e=this.path;if(this.references=(0,c.default)(null),this.bindings=(0,c.default)(null),this.globals=(0,c.default)(null),this.uids=(0,c.default)(null),this.data=(0,c.default)(null),e.isLoop())for(var t=N.FOR_INIT_KEYS,n=Array.isArray(t),r=0,t=n?t:(0,m.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i,a=e.get(o);a.isBlockScoped()&&this.registerBinding(a.node.kind,a)}if(e.isFunctionExpression()&&e.has("id")&&(e.get("id").node[N.NOT_LOCAL_BINDING]||this.registerBinding("local",e.get("id"),e)),e.isClassExpression()&&e.has("id")&&(e.get("id").node[N.NOT_LOCAL_BINDING]||this.registerBinding("local",e)),e.isFunction())for(var s=e.get("params"),u=s,l=Array.isArray(u),f=0,u=l?u:(0,m.default)(u);;){var p;if(l){if(f>=u.length)break;p=u[f++]}else{if(f=u.next(),f.done)break;p=f.value}var d=p;this.registerBinding("param",d)}e.isCatchClause()&&this.registerBinding("let",e);var h=this.getProgramParent();if(!h.crawling){var v={references:[],constantViolations:[],assignments:[]};this.crawling=!0,e.traverse(L,v),this.crawling=!1;for(var g=v.assignments,y=Array.isArray(g),b=0,g=y?g:(0,m.default)(g);;){var x;if(y){if(b>=g.length)break;x=g[b++]}else{if(b=g.next(),b.done)break;x=b.value}var E=x,w=E.getBindingIdentifiers(),A=void 0;for(var _ in w)E.scope.getBinding(_)||(A=A||E.scope.getProgramParent(),A.addGlobal(w[_]));E.scope.registerConstantViolation(E)}for(var C=v.references,S=Array.isArray(C),k=0,C=S?C:(0,m.default)(C);;){var D;if(S){if(k>=C.length)break;D=C[k++]}else{if(k=C.next(),k.done)break;D=k.value}var P=D,O=P.scope.getBinding(P.node.name);O?O.reference(P):P.scope.getProgramParent().addGlobal(P.node)}for(var T=v.constantViolations,M=Array.isArray(T),R=0,T=M?T:(0,m.default)(T);;){var F;if(M){if(R>=T.length)break;F=T[R++]}else{if(R=T.next(),R.done)break;F=R.value}var I=F;I.scope.registerConstantViolation(I)}}},e.prototype.push=function(e){var t=this.path;t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=this.getFunctionParent().path),(t.isLoop()||t.isCatchClause()||t.isFunction())&&(N.ensureBlock(t.node),t=t.get("body"));var n=e.unique,r=e.kind||"var",i=null==e._blockHoist?2:e._blockHoist,o="declaration:"+r+":"+i,a=!n&&t.getData(o);if(!a){var s=N.variableDeclaration(r,[]);s._generated=!0,s._blockHoist=i;var u=t.unshiftContainer("body",[s]);a=u[0],n||t.setData(o,a)}var l=N.variableDeclarator(e.id,e.init);a.node.declarations.push(l),this.registerBinding(r,a.get("declarations").pop())},e.prototype.getProgramParent=function(){var e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw new Error("We couldn't find a Function or Program...")},e.prototype.getFunctionParent=function(){var e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);throw new Error("We couldn't find a Function or Program...")},e.prototype.getBlockParent=function(){var e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")},e.prototype.getAllBindings=function(){var e=(0,c.default)(null),t=this;do(0,S.default)(e,t.bindings),t=t.parent;while(t);return e},e.prototype.getAllBindingsOfKind=function(){for(var e=(0,c.default)(null),t=arguments,n=Array.isArray(t),r=0,t=n?t:(0,m.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i,a=this;do{for(var s in a.bindings){var u=a.bindings[s];u.kind===o&&(e[s]=u)}a=a.parent}while(a)}return e},e.prototype.bindingIdentifierEquals=function(e,t){return this.getBindingIdentifier(e)===t},e.prototype.warnOnFlowBinding=function(e){return 0===I&&e&&e.path.isFlow()&&console.warn("\n You or one of the Babel plugins you are using are using Flow declarations as bindings.\n Support for this will be removed in version 6.8. To find out the caller, grep for this\n message and change it to a `console.trace()`.\n "),e},e.prototype.getBinding=function(e){var t=this;do{var n=t.getOwnBinding(e);if(n)return this.warnOnFlowBinding(n)}while(t=t.parent)},e.prototype.getOwnBinding=function(e){return this.warnOnFlowBinding(this.bindings[e])},e.prototype.getBindingIdentifier=function(e){var t=this.getBinding(e);return t&&t.identifier},e.prototype.getOwnBindingIdentifier=function(e){var t=this.bindings[e];return t&&t.identifier},e.prototype.hasOwnBinding=function(e){return!!this.getOwnBinding(e)},e.prototype.hasBinding=function(t,n){return!!t&&(!!this.hasOwnBinding(t)||(!!this.parentHasBinding(t,n)||(!!this.hasUid(t)||(!(n||!(0,y.default)(e.globals,t))||!(n||!(0,y.default)(e.contextVariables,t))))))},e.prototype.parentHasBinding=function(e,t){return this.parent&&this.parent.hasBinding(e,t)},e.prototype.moveBindingTo=function(e,t){var n=this.getBinding(e);n&&(n.scope.removeOwnBinding(e),n.scope=t,t.bindings[e]=n)},e.prototype.removeOwnBinding=function(e){delete this.bindings[e]},e.prototype.removeBinding=function(e){var t=this.getBinding(e);t&&t.scope.removeOwnBinding(e);var n=this;do n.uids[e]&&(n.uids[e]=!1);while(n=n.parent)},e}();B.globals=(0,u.default)(M.default.builtin),B.contextVariables=["arguments","undefined","Infinity","NaN"],t.default=B,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!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;var i=n(358),o=r(i),a=(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=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),s=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],u=t.COMPARISON_BINARY_OPERATORS=[].concat(s,["in","instanceof"]),l=t.BOOLEAN_BINARY_OPERATORS=[].concat(u,a),c=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],f=(t.BINARY_OPERATORS=["+"].concat(c,l),t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),p=t.NUMBER_UNARY_OPERATORS=["+","-","++","--","~"],d=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void"].concat(f,p,d),t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=(0,o.default)("var used to be block scoped"),t.NOT_LOCAL_BINDING=(0,o.default)("should not be considered a local binding")},function(e,t){"use strict";function n(e){return e=e.split(" "),function(t){return e.indexOf(t)>=0}}function r(e,t){for(var n=65536,r=0;re)return!1;if(n+=t[r+1],n>=e)return!0}}function i(e){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&E.test(String.fromCharCode(e)):r(e,A)))}function o(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&w.test(String.fromCharCode(e)):r(e,A)||r(e,_))))}function a(e){var t={};for(var n in C)t[n]=e&&n in e?e[n]:C[n];return t}function s(e){return 10===e||13===e||8232===e||8233===e}function u(e,t){for(var n=1,r=0;;){W.lastIndex=r;var i=W.exec(e);if(!(i&&i.index>10)+55296,(e-65536&1023)+56320)}function c(e,t,n,r){return e.type=t,e.end=n,e.loc.end=r,this.processComment(e),e}function f(e){return e[e.length-1]}function p(e){return e&&"Property"===e.type&&"init"===e.kind&&e.method===!1}function d(e){return"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?d(e.object)+"."+d(e.property):void 0}function h(e,t){return new Z(t,e).parse()}function v(e,t){var n=new Z(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()}var m="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};Object.defineProperty(t,"__esModule",{value:!0});var g={6:n("enum await"),strict:n("implements interface let package private protected public static yield"),strictBind:n("eval arguments")},y=n("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super"),b="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",x="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",E=new RegExp("["+b+"]"),w=new RegExp("["+b+x+"]");b=x=null;var A=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,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,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,785,52,76,44,33,24,27,35,42,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,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,449,56,264,8,2,36,18,0,50,29,881,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,0,32,6124,20,754,9486,1,3071,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,4149,196,60,67,1213,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,10591,541],_=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,838,7,2,7,17,9,57,21,2,13,19882,9,135,4,60,6,26,9,1016,45,17,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,2214,6,110,6,6,9,792487,239],C={ -sourceType:"script",sourceFilename:void 0,startLine:1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null},S="function"==typeof Symbol&&"symbol"===m(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":m(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":"undefined"==typeof e?"undefined":m(e)},k=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},D=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":m(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)},P=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":m(t))&&"function"!=typeof t?e:t},O=!0,T=!0,M=!0,R=!0,N=!0,F=!0,I=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this,e),this.label=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.rightAssociative=!!n.rightAssociative,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null},L=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k(this,t),r.keyword=n,P(this,e.call(this,n,r))}return D(t,e),t}(I),j=function(e){function t(n,r){return k(this,t),P(this,e.call(this,n,{beforeExpr:O,binop:r}))}return D(t,e),t}(I),B={num:new I("num",{startsExpr:T}),regexp:new I("regexp",{startsExpr:T}),string:new I("string",{startsExpr:T}),name:new I("name",{startsExpr:T}),eof:new I("eof"),bracketL:new I("[",{beforeExpr:O,startsExpr:T}),bracketR:new I("]"),braceL:new I("{",{beforeExpr:O,startsExpr:T}),braceBarL:new I("{|",{beforeExpr:O,startsExpr:T}),braceR:new I("}"),braceBarR:new I("|}"),parenL:new I("(",{beforeExpr:O,startsExpr:T}),parenR:new I(")"),comma:new I(",",{beforeExpr:O}),semi:new I(";",{beforeExpr:O}),colon:new I(":",{beforeExpr:O}),doubleColon:new I("::",{beforeExpr:O}),dot:new I("."),question:new I("?",{beforeExpr:O}),arrow:new I("=>",{beforeExpr:O}),template:new I("template"),ellipsis:new I("...",{beforeExpr:O}),backQuote:new I("`",{startsExpr:T}),dollarBraceL:new I("${",{beforeExpr:O,startsExpr:T}),at:new I("@"),eq:new I("=",{beforeExpr:O,isAssign:R}),assign:new I("_=",{beforeExpr:O,isAssign:R}),incDec:new I("++/--",{prefix:N,postfix:F,startsExpr:T}),prefix:new I("prefix",{beforeExpr:O,prefix:N,startsExpr:T}),logicalOR:new j("||",1),logicalAND:new j("&&",2),bitwiseOR:new j("|",3),bitwiseXOR:new j("^",4),bitwiseAND:new j("&",5),equality:new j("==/!=",6),relational:new j("",7),bitShift:new j("<>",8),plusMin:new I("+/-",{beforeExpr:O,binop:9,prefix:N,startsExpr:T}),modulo:new j("%",10),star:new j("*",10),slash:new j("/",10),exponent:new I("**",{beforeExpr:O,binop:11,rightAssociative:!0})},U={break:new L("break"),case:new L("case",{beforeExpr:O}),catch:new L("catch"),continue:new L("continue"),debugger:new L("debugger"),default:new L("default",{beforeExpr:O}),do:new L("do",{isLoop:M,beforeExpr:O}),else:new L("else",{beforeExpr:O}),finally:new L("finally"),for:new L("for",{isLoop:M}),function:new L("function",{startsExpr:T}),if:new L("if"),return:new L("return",{beforeExpr:O}),switch:new L("switch"),throw:new L("throw",{beforeExpr:O}),try:new L("try"),var:new L("var"),let:new L("let"),const:new L("const"),while:new L("while",{isLoop:M}),with:new L("with"),new:new L("new",{beforeExpr:O,startsExpr:T}),this:new L("this",{startsExpr:T}),super:new L("super",{startsExpr:T}),class:new L("class"),extends:new L("extends",{beforeExpr:O}),export:new L("export"),import:new L("import",{startsExpr:T}),yield:new L("yield",{beforeExpr:O,startsExpr:T}),null:new L("null",{startsExpr:T}),true:new L("true",{startsExpr:T}),false:new L("false",{startsExpr:T}),in:new L("in",{beforeExpr:O,binop:7}),instanceof:new L("instanceof",{beforeExpr:O,binop:7}),typeof:new L("typeof",{beforeExpr:O,prefix:N,startsExpr:T}),void:new L("void",{beforeExpr:O,prefix:N,startsExpr:T}),delete:new L("delete",{beforeExpr:O,prefix:N,startsExpr:T})};Object.keys(U).forEach(function(e){B["_"+e]=U[e]});var V=/\r\n?|\n|\u2028|\u2029/,W=new RegExp(V.source,"g"),q=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,H=function e(t,n,r,i){k(this,e),this.token=t,this.isExpr=!!n,this.preserveSpace=!!r,this.override=i},G={braceStatement:new H("{",!1),braceExpression:new H("{",!0),templateQuasi:new H("${",!0),parenStatement:new H("(",!1),parenExpression:new H("(",!0),template:new H("`",!0,!0,function(e){return e.readTmplToken()}),functionExpression:new H("function",!0)};B.parenR.updateContext=B.braceR.updateContext=function(){if(1===this.state.context.length)return void(this.state.exprAllowed=!0);var e=this.state.context.pop();e===G.braceStatement&&this.curContext()===G.functionExpression?(this.state.context.pop(),this.state.exprAllowed=!1):e===G.templateQuasi?this.state.exprAllowed=!0:this.state.exprAllowed=!e.isExpr},B.name.updateContext=function(e){this.state.exprAllowed=!1,e!==B._let&&e!==B._const&&e!==B._var||V.test(this.input.slice(this.state.end))&&(this.state.exprAllowed=!0)},B.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?G.braceStatement:G.braceExpression),this.state.exprAllowed=!0},B.dollarBraceL.updateContext=function(){this.state.context.push(G.templateQuasi),this.state.exprAllowed=!0},B.parenL.updateContext=function(e){var t=e===B._if||e===B._for||e===B._with||e===B._while;this.state.context.push(t?G.parenStatement:G.parenExpression),this.state.exprAllowed=!0},B.incDec.updateContext=function(){},B._function.updateContext=function(){this.curContext()!==G.braceStatement&&this.state.context.push(G.functionExpression),this.state.exprAllowed=!1},B.backQuote.updateContext=function(){this.curContext()===G.template?this.state.context.pop():this.state.context.push(G.template),this.state.exprAllowed=!1};var z=function e(t,n){k(this,e),this.line=t,this.column=n},Y=function e(t,n){k(this,e),this.start=t,this.end=n},K=function(){function e(){k(this,e)}return e.prototype.init=function(e,t){return this.strict=e.strictMode!==!1&&"module"===e.sourceType,this.input=t,this.potentialArrowAt=-1,this.inMethod=this.inFunction=this.inGenerator=this.inAsync=this.inPropertyName=this.inType=this.inClassProperty=this.noAnonFunctionType=!1,this.labels=[],this.decorators=[],this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.pos=this.lineStart=0,this.curLine=e.startLine,this.type=B.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=[G.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[],this},e.prototype.curPosition=function(){return new z(this.curLine,this.pos-this.lineStart)},e.prototype.clone=function(t){var n=new e;for(var r in this){var i=this[r];t&&"context"!==r||!Array.isArray(i)||(i=i.slice()),n[r]=i}return n},e}(),X=function e(t){k(this,e),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new Y(t.startLoc,t.endLoc)},$=function(){function e(t,n){k(this,e),this.state=new K,this.state.init(t,n)}return e.prototype.next=function(){this.isLookahead||this.state.tokens.push(new X(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()},e.prototype.eat=function(e){return!!this.match(e)&&(this.next(),!0)},e.prototype.match=function(e){return this.state.type===e},e.prototype.isKeyword=function(e){return y(e)},e.prototype.lookahead=function(){var e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var t=this.state.clone(!0);return this.state=e,t},e.prototype.setStrict=function(e){if(this.state.strict=e,this.match(B.num)||this.match(B.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishToken(B.eof):e.override?e.override(this):this.readToken(this.fullCharCodeAtPos())},e.prototype.readToken=function(e){return i(e)||92===e?this.readWord():this.getTokenFromCode(e)},e.prototype.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.state.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.state.pos+1);return(e<<10)+t-56613888},e.prototype.pushComment=function(e,t,n,r,i,o){var a={type:e?"CommentBlock":"CommentLine",value:t,start:n,end:r,loc:new Y(i,o)};this.isLookahead||(this.state.tokens.push(a),this.state.comments.push(a),this.addComment(a))},e.prototype.skipBlockComment=function(){var e=this.state.curPosition(),t=this.state.pos,n=this.input.indexOf("*/",this.state.pos+=2);n===-1&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=n+2,W.lastIndex=t;for(var r=void 0;(r=W.exec(this.input))&&r.index8&&e<14||e>=5760&&q.test(String.fromCharCode(e))))break e;++this.state.pos}}},e.prototype.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var n=this.state.type;this.state.type=e,this.state.value=t,this.updateContext(n)},e.prototype.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.state.pos+2);return 46===e&&46===t?(this.state.pos+=3,this.finishToken(B.ellipsis)):(++this.state.pos,this.finishToken(B.dot))},e.prototype.readToken_slash=function(){if(this.state.exprAllowed)return++this.state.pos,this.readRegexp();var e=this.input.charCodeAt(this.state.pos+1);return 61===e?this.finishOp(B.assign,2):this.finishOp(B.slash,1)},e.prototype.readToken_mult_modulo=function(e){var t=42===e?B.star:B.modulo,n=1,r=this.input.charCodeAt(this.state.pos+1);return 42===r&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=B.exponent),61===r&&(n++,t=B.assign),this.finishOp(t,n)},e.prototype.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.state.pos+1);return t===e?this.finishOp(124===e?B.logicalOR:B.logicalAND,2):61===t?this.finishOp(B.assign,2):124===e&&125===t&&this.hasPlugin("flow")?this.finishOp(B.braceBarR,2):this.finishOp(124===e?B.bitwiseOR:B.bitwiseAND,1)},e.prototype.readToken_caret=function(){var e=this.input.charCodeAt(this.state.pos+1);return 61===e?this.finishOp(B.assign,2):this.finishOp(B.bitwiseXOR,1)},e.prototype.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.state.pos+1);return t===e?45===t&&62===this.input.charCodeAt(this.state.pos+2)&&V.test(this.input.slice(this.state.lastTokEnd,this.state.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(B.incDec,2):61===t?this.finishOp(B.assign,2):this.finishOp(B.plusMin,1)},e.prototype.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.state.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+n)?this.finishOp(B.assign,n+1):this.finishOp(B.bitShift,n)):33===t&&60===e&&45===this.input.charCodeAt(this.state.pos+2)&&45===this.input.charCodeAt(this.state.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===t&&(n=2),this.finishOp(B.relational,n))},e.prototype.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.state.pos+1);return 61===t?this.finishOp(B.equality,61===this.input.charCodeAt(this.state.pos+2)?3:2):61===e&&62===t?(this.state.pos+=2,this.finishToken(B.arrow)):this.finishOp(61===e?B.eq:B.prefix,1)},e.prototype.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.state.pos,this.finishToken(B.parenL);case 41:return++this.state.pos,this.finishToken(B.parenR);case 59:return++this.state.pos,this.finishToken(B.semi);case 44:return++this.state.pos,this.finishToken(B.comma);case 91:return++this.state.pos,this.finishToken(B.bracketL);case 93:return++this.state.pos,this.finishToken(B.bracketR);case 123:return this.hasPlugin("flow")&&124===this.input.charCodeAt(this.state.pos+1)?this.finishOp(B.braceBarL,2):(++this.state.pos,this.finishToken(B.braceL));case 125:return++this.state.pos,this.finishToken(B.braceR);case 58:return this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(B.doubleColon,2):(++this.state.pos,this.finishToken(B.colon));case 63:return++this.state.pos,this.finishToken(B.question);case 64:return++this.state.pos,this.finishToken(B.at);case 96:return++this.state.pos,this.finishToken(B.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(B.prefix,1)}this.raise(this.state.pos,"Unexpected character '"+l(e)+"'")},e.prototype.finishOp=function(e,t){var n=this.input.slice(this.state.pos,this.state.pos+t);return this.state.pos+=t,this.finishToken(e,n)},e.prototype.readRegexp=function(){for(var e=this.state.pos,t=void 0,n=void 0;;){this.state.pos>=this.input.length&&this.raise(e,"Unterminated regular expression");var r=this.input.charAt(this.state.pos);if(V.test(r)&&this.raise(e,"Unterminated regular expression"),t)t=!1;else{if("["===r)n=!0;else if("]"===r&&n)n=!1;else if("/"===r&&!n)break;t="\\"===r}++this.state.pos}var i=this.input.slice(e,this.state.pos);++this.state.pos;var o=this.readWord1();if(o){var a=/^[gmsiyu]*$/;a.test(o)||this.raise(e,"Invalid regular expression flag")}return this.finishToken(B.regexp,{pattern:i,flags:o})},e.prototype.readInt=function(e,t){for(var n=this.state.pos,r=0,i=0,o=null==t?1/0:t;i=97?a-97+10:a>=65?a-65+10:a>=48&&a<=57?a-48:1/0,s>=e)break;++this.state.pos,r=r*e+s}return this.state.pos===n||null!=t&&this.state.pos-n!==t?null:r},e.prototype.readRadixNumber=function(e){this.state.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.state.start+2,"Expected number in radix "+e),i(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number"),this.finishToken(B.num,t)},e.prototype.readNumber=function(e){var t=this.state.pos,n=48===this.input.charCodeAt(t),r=!1;e||null!==this.readInt(10)||this.raise(t,"Invalid number"),n&&this.state.pos==t+1&&(n=!1);var o=this.input.charCodeAt(this.state.pos);46!==o||n||(++this.state.pos,this.readInt(10),r=!0,o=this.input.charCodeAt(this.state.pos)),69!==o&&101!==o||n||(o=this.input.charCodeAt(++this.state.pos),43!==o&&45!==o||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),r=!0),i(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number");var a=this.input.slice(t,this.state.pos),s=void 0;return r?s=parseFloat(a):n&&1!==a.length?this.state.strict?this.raise(t,"Invalid number"):s=/[89]/.test(a)?parseInt(a,10):parseInt(a,8):s=parseInt(a,10),this.finishToken(B.num,s)},e.prototype.readCodePoint=function(e){var t=this.input.charCodeAt(this.state.pos),n=void 0;if(123===t){var r=++this.state.pos;if(n=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,e),++this.state.pos,null===n)--this.state.invalidTemplateEscapePosition;else if(n>1114111){if(!e)return this.state.invalidTemplateEscapePosition=r-2,null;this.raise(r,"Code point out of bounds")}}else n=this.readHexChar(4,e);return n},e.prototype.readString=function(e){for(var t="",n=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var r=this.input.charCodeAt(this.state.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.state.pos),t+=this.readEscapedChar(!1),n=this.state.pos):(s(r)&&this.raise(this.state.start,"Unterminated string constant"),++this.state.pos)}return t+=this.input.slice(n,this.state.pos++),this.finishToken(B.string,t)},e.prototype.readTmplToken=function(){for(var e="",t=this.state.pos,n=!1;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var r=this.input.charCodeAt(this.state.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(B.template)?36===r?(this.state.pos+=2,this.finishToken(B.dollarBraceL)):(++this.state.pos,this.finishToken(B.backQuote)):(e+=this.input.slice(t,this.state.pos),this.finishToken(B.template,n?null:e));if(92===r){e+=this.input.slice(t,this.state.pos);var i=this.readEscapedChar(!0);null===i?n=!0:e+=i,t=this.state.pos}else if(s(r)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,r){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}},e.prototype.readEscapedChar=function(e){var t=!e,n=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,n){case 110:return"\n";case 114:return"\r";case 120:var r=this.readHexChar(2,t);return null===r?null:String.fromCharCode(r);case 117:var i=this.readCodePoint(t);return null===i?null:l(i);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:return this.state.lineStart=this.state.pos,++this.state.curLine,"";default:if(n>=48&&n<=55){var o=this.state.pos-1,a=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(a,8);if(s>255&&(a=a.slice(0,-1),s=parseInt(a,8)),s>0){if(e)return this.state.invalidTemplateEscapePosition=o,null;this.state.strict?this.raise(o,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=o)}return this.state.pos+=a.length-1,String.fromCharCode(s)}return String.fromCharCode(n)}},e.prototype.readHexChar=function(e,t){var n=this.state.pos,r=this.readInt(16,e);return null===r&&(t?this.raise(n,"Bad character escape sequence"):(this.state.pos=n-1,this.state.invalidTemplateEscapePosition=n-1)),r},e.prototype.readWord1=function(){this.state.containsEsc=!1;for(var e="",t=!0,n=this.state.pos;this.state.pos-1)||!!this.plugins[e]},t.prototype.extend=function(e,t){this[e]=t(this[e])},t.prototype.loadAllPlugins=function(){var e=this,t=Object.keys(J).filter(function(e){return"flow"!==e&&"estree"!==e});t.push("flow"),t.forEach(function(t){var n=J[t];n&&n(e)})},t.prototype.loadPlugins=function(e){if(e.indexOf("*")>=0)return this.loadAllPlugins(),{"*":!0};var t={};e.indexOf("flow")>=0&&(e=e.filter(function(e){return"flow"!==e}),e.push("flow")),e.indexOf("estree")>=0&&(e=e.filter(function(e){return"estree"!==e}),e.unshift("estree"));for(var n=e,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;if(!t[a]){t[a]=!0;var s=J[a];s&&s(this)}}return t},t.prototype.parse=function(){var e=this.startNode(),t=this.startNode();return this.nextToken(),this.parseTopLevel(e,t)},t}($),ee=Z.prototype;ee.addExtra=function(e,t,n){if(e){var r=e.extra=e.extra||{};r[t]=n}},ee.isRelational=function(e){return this.match(B.relational)&&this.state.value===e},ee.expectRelational=function(e){this.isRelational(e)?this.next():this.unexpected(null,B.relational)},ee.isContextual=function(e){return this.match(B.name)&&this.state.value===e},ee.eatContextual=function(e){return this.state.value===e&&this.eat(B.name)},ee.expectContextual=function(e,t){this.eatContextual(e)||this.unexpected(null,t)},ee.canInsertSemicolon=function(){return this.match(B.eof)||this.match(B.braceR)||V.test(this.input.slice(this.state.lastTokEnd,this.state.start))},ee.isLineTerminator=function(){return this.eat(B.semi)||this.canInsertSemicolon()},ee.semicolon=function(){this.isLineTerminator()||this.unexpected(null,B.semi)},ee.expect=function(e,t){return this.eat(e)||this.unexpected(t,e)},ee.unexpected=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unexpected token";t&&"object"===("undefined"==typeof t?"undefined":S(t))&&t.label&&(t="Unexpected token, expected "+t.label),this.raise(null!=e?e:this.state.start,t)};var te=Z.prototype;te.parseTopLevel=function(e,t){return t.sourceType=this.options.sourceType,this.parseBlockBody(t,!0,!0,B.eof),e.program=this.finishNode(t,"Program"),e.comments=this.state.comments,e.tokens=this.state.tokens,this.finishNode(e,"File")};var ne={kind:"loop"},re={kind:"switch"};te.stmtToDirective=function(e){var t=e.expression,n=this.startNodeAt(t.start,t.loc.start),r=this.startNodeAt(e.start,e.loc.start),i=this.input.slice(t.start,t.end),o=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",o),r.value=this.finishNodeAt(n,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(r,"Directive",e.end,e.loc.end)},te.parseStatement=function(e,t){this.match(B.at)&&this.parseDecorators(!0);var n=this.state.type,r=this.startNode();switch(n){case B._break:case B._continue:return this.parseBreakContinueStatement(r,n.keyword);case B._debugger:return this.parseDebuggerStatement(r);case B._do:return this.parseDoStatement(r);case B._for:return this.parseForStatement(r);case B._function:return e||this.unexpected(),this.parseFunctionStatement(r);case B._class:return e||this.unexpected(),this.parseClass(r,!0);case B._if:return this.parseIfStatement(r);case B._return:return this.parseReturnStatement(r);case B._switch:return this.parseSwitchStatement(r);case B._throw:return this.parseThrowStatement(r);case B._try:return this.parseTryStatement(r);case B._let:case B._const:e||this.unexpected();case B._var:return this.parseVarStatement(r,n);case B._while:return this.parseWhileStatement(r);case B._with:return this.parseWithStatement(r);case B.braceL:return this.parseBlock();case B.semi:return this.parseEmptyStatement(r);case B._export:case B._import:if(this.hasPlugin("dynamicImport")&&this.lookahead().type===B.parenL)break;return this.options.allowImportExportEverywhere||(t||this.raise(this.state.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.state.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===B._import?this.parseImport(r):this.parseExport(r);case B.name:if("async"===this.state.value){var i=this.state.clone();if(this.next(),this.match(B._function)&&!this.canInsertSemicolon())return this.expect(B._function),this.parseFunction(r,!0,!1,!0);this.state=i}}var o=this.state.value,a=this.parseExpression();return n===B.name&&"Identifier"===a.type&&this.eat(B.colon)?this.parseLabeledStatement(r,o,a):this.parseExpressionStatement(r,a)},te.takeDecorators=function(e){this.state.decorators.length&&(e.decorators=this.state.decorators,this.state.decorators=[])},te.parseDecorators=function(e){for(;this.match(B.at);){var t=this.parseDecorator();this.state.decorators.push(t)}e&&this.match(B._export)||this.match(B._class)||this.raise(this.state.start,"Leading decorators must be attached to a class declaration")},te.parseDecorator=function(){this.hasPlugin("decorators")||this.unexpected();var e=this.startNode();return this.next(),e.expression=this.parseMaybeAssign(),this.finishNode(e,"Decorator")},te.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.isLineTerminator()?e.label=null:this.match(B.name)?(e.label=this.parseIdentifier(),this.semicolon()):this.unexpected();var r=void 0;for(r=0;r=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;s.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var u=this.state.type.isLoop?"loop":this.match(B._switch)?"switch":null,l=this.state.labels.length-1;l>=0;l--){var c=this.state.labels[l];if(c.statementStart!==e.start)break;c.statementStart=this.state.start,c.kind=u}return this.state.labels.push({name:t,kind:u,statementStart:this.state.start}),e.body=this.parseStatement(!0),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},te.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},te.parseBlock=function(e){var t=this.startNode();return this.expect(B.braceL),this.parseBlockBody(t,e,!1,B.braceR),this.finishNode(t,"BlockStatement")},te.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},te.parseBlockBody=function(e,t,n,r){e.body=[],e.directives=[];for(var i=!1,o=void 0,a=void 0;!this.eat(r);){i||!this.state.containsOctal||a||(a=this.state.octalPosition);var s=this.parseStatement(!0,n);if(t&&!i&&this.isValidDirective(s)){var u=this.stmtToDirective(s);e.directives.push(u),void 0===o&&"use strict"===u.value.value&&(o=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}else i=!0,e.body.push(s)}o===!1&&this.setStrict(!1)},te.parseFor=function(e,t){return e.init=t,this.expect(B.semi),e.test=this.match(B.semi)?null:this.parseExpression(),this.expect(B.semi),e.update=this.match(B.parenR)?null:this.parseExpression(),this.expect(B.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,"ForStatement")},te.parseForIn=function(e,t,n){var r=void 0;return n?(this.eatContextual("of"),r="ForAwaitStatement"):(r=this.match(B._in)?"ForInStatement":"ForOfStatement",this.next()),e.left=t,e.right=this.parseExpression(),this.expect(B.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,r)},te.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n.keyword;;){var r=this.startNode();if(this.parseVarHead(r),this.eat(B.eq)?r.init=this.parseMaybeAssign(t):n!==B._const||this.match(B._in)||this.isContextual("of")?"Identifier"===r.id.type||t&&(this.match(B._in)||this.isContextual("of"))?r.init=null:this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(B.comma))break}return e},te.parseVarHead=function(e){e.id=this.parseBindingAtom(),this.checkLVal(e.id,!0,void 0,"variable declaration")},te.parseFunction=function(e,t,n,r,i){var o=this.state.inMethod;return this.state.inMethod=!1,this.initFunction(e,r),this.match(B.star)&&(e.async&&!this.hasPlugin("asyncGenerators")?this.unexpected():(e.generator=!0,this.next())),!t||i||this.match(B.name)||this.match(B._yield)||this.unexpected(),(this.match(B.name)||this.match(B._yield))&&(e.id=this.parseBindingIdentifier()),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.state.inMethod=o,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},te.parseFunctionParams=function(e){this.expect(B.parenL),e.params=this.parseBindingList(B.parenR)},te.parseClass=function(e,t,n){return this.next(),this.takeDecorators(e),this.parseClassId(e,t,n),this.parseClassSuper(e),this.parseClassBody(e),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},te.isClassProperty=function(){return this.match(B.eq)||this.match(B.semi)||this.match(B.braceR)},te.isClassMethod=function(){return this.match(B.parenL)},te.isNonstaticConstructor=function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)},te.parseClassBody=function(e){var t=this.state.strict;this.state.strict=!0;var n=!1,r=!1,i=[],o=this.startNode();for(o.body=[],this.expect(B.braceL);!this.eat(B.braceR);)if(this.eat(B.semi))i.length>0&&this.raise(this.state.lastTokEnd,"Decorators must not be followed by a semicolon");else if(this.match(B.at))i.push(this.parseDecorator());else{var a=this.startNode();if(i.length&&(a.decorators=i,i=[]),a.static=!1,this.match(B.name)&&"static"===this.state.value){var s=this.parseIdentifier(!0);if(this.isClassMethod()){a.kind="method",a.computed=!1,a.key=s,this.parseClassMethod(o,a,!1,!1);continue}if(this.isClassProperty()){a.computed=!1,a.key=s,o.body.push(this.parseClassProperty(a));continue}a.static=!0}if(this.eat(B.star))a.kind="method",this.parsePropertyName(a),this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be a generator"),a.computed||!a.static||"prototype"!==a.key.name&&"prototype"!==a.key.value||this.raise(a.key.start,"Classes may not have static property named prototype"),this.parseClassMethod(o,a,!0,!1);else{var u=this.match(B.name),l=this.parsePropertyName(a);if(a.computed||!a.static||"prototype"!==a.key.name&&"prototype"!==a.key.value||this.raise(a.key.start,"Classes may not have static property named prototype"),this.isClassMethod())this.isNonstaticConstructor(a)?(r?this.raise(l.start,"Duplicate constructor in the same class"):a.decorators&&this.raise(a.start,"You can't attach decorators to a class constructor"),r=!0,a.kind="constructor"):a.kind="method",this.parseClassMethod(o,a,!1,!1);else if(this.isClassProperty())this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Classes may not have a non-static field named 'constructor'"),o.body.push(this.parseClassProperty(a));else if(u&&"async"===l.name&&!this.isLineTerminator()){var c=this.hasPlugin("asyncGenerators")&&this.eat(B.star);a.kind="method",this.parsePropertyName(a),this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be an async function"),this.parseClassMethod(o,a,c,!0)}else!u||"get"!==l.name&&"set"!==l.name||this.isLineTerminator()&&this.match(B.star)?this.hasPlugin("classConstructorCall")&&u&&"call"===l.name&&this.match(B.name)&&"constructor"===this.state.value?(n?this.raise(a.start,"Duplicate constructor call in the same class"):a.decorators&&this.raise(a.start,"You can't attach decorators to a class constructor"),n=!0,a.kind="constructorCall",this.parsePropertyName(a),this.parseClassMethod(o,a,!1,!1)):this.isLineTerminator()?(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Classes may not have a non-static field named 'constructor'"),o.body.push(this.parseClassProperty(a))):this.unexpected():(a.kind=l.name,this.parsePropertyName(a),this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't have get/set modifier"),this.parseClassMethod(o,a,!1,!1),this.checkGetterSetterParamCount(a))}}i.length&&this.raise(this.state.start,"You have trailing decorators with no method"),e.body=this.finishNode(o,"ClassBody"),this.state.strict=t},te.parseClassProperty=function(e){return this.state.inClassProperty=!0,this.match(B.eq)?(this.hasPlugin("classProperties")||this.unexpected(),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.state.inClassProperty=!1,this.finishNode(e,"ClassProperty")},te.parseClassMethod=function(e,t,n,r){this.parseMethod(t,n,r),e.body.push(this.finishNode(t,"ClassMethod"))},te.parseClassId=function(e,t,n){this.match(B.name)?e.id=this.parseIdentifier():n||!t?e.id=null:this.unexpected()},te.parseClassSuper=function(e){e.superClass=this.eat(B._extends)?this.parseExprSubscripts():null},te.parseExport=function(e){if(this.next(),this.match(B.star)){var t=this.startNode();if(this.next(),!this.hasPlugin("exportExtensions")||!this.eatContextual("as"))return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");t.exported=this.parseIdentifier(),e.specifiers=[this.finishNode(t,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(e),this.parseExportFrom(e,!0)}else if(this.hasPlugin("exportExtensions")&&this.isExportDefaultSpecifier()){var n=this.startNode();if(n.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],this.match(B.comma)&&this.lookahead().type===B.star){this.expect(B.comma);var r=this.startNode();this.expect(B.star),this.expectContextual("as"),r.exported=this.parseIdentifier(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(e);this.parseExportFrom(e,!0)}else{if(this.eat(B._default)){var i=this.startNode(),o=!1;return this.eat(B._function)?i=this.parseFunction(i,!0,!1,!1,!0):this.match(B._class)?i=this.parseClass(i,!0,!0):(o=!0,i=this.parseMaybeAssign()),e.declaration=i,o&&this.semicolon(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration")}this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e)):(e.declaration=null,e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e))}return this.checkExport(e,!0),this.finishNode(e,"ExportNamedDeclaration")},te.parseExportDeclaration=function(){return this.parseStatement(!0)},te.isExportDefaultSpecifier=function(){if(this.match(B.name))return"type"!==this.state.value&&"async"!==this.state.value&&"interface"!==this.state.value;if(!this.match(B._default))return!1;var e=this.lookahead();return e.type===B.comma||e.type===B.name&&"from"===e.value},te.parseExportSpecifiersMaybe=function(e){this.eat(B.comma)&&(e.specifiers=e.specifiers.concat(this.parseExportSpecifiers()))},te.parseExportFrom=function(e,t){this.eatContextual("from")?(e.source=this.match(B.string)?this.parseExprAtom():this.unexpected(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()},te.shouldParseExportDeclaration=function(){return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"let"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isContextual("async")},te.checkExport=function(e,t,n){if(t)if(n)this.checkDuplicateExports(e,"default");else if(e.specifiers&&e.specifiers.length)for(var r=e.specifiers,i=Array.isArray(r),o=0,r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;this.checkDuplicateExports(s,s.exported.name)}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type)this.checkDuplicateExports(e,e.declaration.id.name);else if("VariableDeclaration"===e.declaration.type)for(var u=e.declaration.declarations,l=Array.isArray(u),c=0,u=l?u:u[Symbol.iterator]();;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;this.checkDeclaration(p.id)}if(this.state.decorators.length){var d=e.declaration&&("ClassDeclaration"===e.declaration.type||"ClassExpression"===e.declaration.type);e.declaration&&d||this.raise(e.start,"You can only use decorators on an export when exporting a class"),this.takeDecorators(e.declaration)}},te.checkDeclaration=function(e){if("ObjectPattern"===e.type)for(var t=e.properties,n=Array.isArray(t),r=0,t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;this.checkDeclaration(o)}else if("ArrayPattern"===e.type)for(var a=e.elements,s=Array.isArray(a),u=0,a=s?a:a[Symbol.iterator]();;){var l;if(s){if(u>=a.length)break;l=a[u++]}else{if(u=a.next(),u.done)break;l=u.value}var c=l;c&&this.checkDeclaration(c)}else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type||"RestProperty"===e.type?this.checkDeclaration(e.argument):"Identifier"===e.type&&this.checkDuplicateExports(e,e.name)},te.checkDuplicateExports=function(e,t){this.state.exportedIdentifiers.indexOf(t)>-1&&this.raiseDuplicateExportError(e,t),this.state.exportedIdentifiers.push(t)},te.raiseDuplicateExportError=function(e,t){this.raise(e.start,"default"===t?"Only one default export allowed per module.":"`"+t+"` has already been exported. Exported identifiers must be unique.")},te.parseExportSpecifiers=function(){var e=[],t=!0,n=void 0;for(this.expect(B.braceL);!this.eat(B.braceR);){if(t)t=!1;else if(this.expect(B.comma),this.eat(B.braceR))break;var r=this.match(B._default);r&&!n&&(n=!0);var i=this.startNode();i.local=this.parseIdentifier(r),i.exported=this.eatContextual("as")?this.parseIdentifier(!0):i.local.__clone(),e.push(this.finishNode(i,"ExportSpecifier"))}return n&&!this.isContextual("from")&&this.unexpected(),e},te.parseImport=function(e){return this.eat(B._import),this.match(B.string)?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=[],this.parseImportSpecifiers(e),this.expectContextual("from"),e.source=this.match(B.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},te.parseImportSpecifiers=function(e){var t=!0;if(this.match(B.name)){var n=this.state.start,r=this.state.startLoc;if(e.specifiers.push(this.parseImportSpecifierDefault(this.parseIdentifier(),n,r)),!this.eat(B.comma))return}if(this.match(B.star)){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdentifier(),this.checkLVal(i.local,!0,void 0,"import namespace specifier"),void e.specifiers.push(this.finishNode(i,"ImportNamespaceSpecifier"))}for(this.expect(B.braceL);!this.eat(B.braceR);){if(t)t=!1;else if(this.eat(B.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(B.comma),this.eat(B.braceR))break;this.parseImportSpecifier(e)}},te.parseImportSpecifier=function(e){var 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,!0,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))},te.parseImportSpecifierDefault=function(e,t,n){var r=this.startNodeAt(t,n);return r.local=e,this.checkLVal(r.local,!0,void 0,"default import specifier"),this.finishNode(r,"ImportDefaultSpecifier")};var oe=Z.prototype;oe.toAssignable=function(e,t,n){if(e)switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var r=e.properties,i=Array.isArray(r),o=0,r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;"ObjectMethod"===s.type?"get"===s.kind||"set"===s.kind?this.raise(s.key.start,"Object pattern can't contain getter or setter"):this.raise(s.key.start,"Object pattern can't contain methods"):this.toAssignable(s,t,"object destructuring pattern")}break;case"ObjectProperty":this.toAssignable(e.value,t,n);break;case"SpreadProperty":e.type="RestProperty";break;case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,t,n);break;case"AssignmentExpression":"="===e.operator?(e.type="AssignmentPattern",delete e.operator):this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");break;case"MemberExpression":if(!t)break;default:var u="Invalid left-hand side"+(n?" in "+n:"expression");this.raise(e.start,u)}return e},oe.toAssignableList=function(e,t,n){var r=e.length;if(r){var i=e[r-1];if(i&&"RestElement"===i.type)--r;else if(i&&"SpreadElement"===i.type){i.type="RestElement";var o=i.argument;this.toAssignable(o,t,n),"Identifier"!==o.type&&"MemberExpression"!==o.type&&"ArrayPattern"!==o.type&&this.unexpected(o.start),--r}}for(var a=0;a=o.length)break;u=o[s++]}else{if(s=o.next(),s.done)break;u=s.value}var l=u;"ObjectProperty"===l.type&&(l=l.value),this.checkLVal(l,t,n,"object destructuring pattern")}break;case"ArrayPattern":for(var c=e.elements,f=Array.isArray(c),p=0,c=f?c:c[Symbol.iterator]();;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}var h=d;h&&this.checkLVal(h,t,n,"array destructuring pattern")}break;case"AssignmentPattern":this.checkLVal(e.left,t,n,"assignment pattern");break;case"RestProperty":this.checkLVal(e.argument,t,n,"rest property");break;case"RestElement":this.checkLVal(e.argument,t,n,"rest element");break;default:var v=(t?"Binding invalid":"Invalid")+" left-hand side"+(r?" in "+r:"expression");this.raise(e.start,v)}};var ae=Z.prototype;ae.checkPropClash=function(e,t){if(!e.computed&&!e.kind){var n=e.key,r="Identifier"===n.type?n.name:String(n.value);"__proto__"===r&&(t.proto&&this.raise(n.start,"Redefinition of __proto__ property"),t.proto=!0)}},ae.getExpression=function(){this.nextToken();var e=this.parseExpression();return this.match(B.eof)||this.unexpected(),e},ae.parseExpression=function(e,t){var n=this.state.start,r=this.state.startLoc,i=this.parseMaybeAssign(e,t);if(this.match(B.comma)){var o=this.startNodeAt(n,r);for(o.expressions=[i];this.eat(B.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(o.expressions),this.finishNode(o,"SequenceExpression")}return i},ae.parseMaybeAssign=function(e,t,n,r){var i=this.state.start,o=this.state.startLoc;if(this.match(B._yield)&&this.state.inGenerator){var a=this.parseYield();return n&&(a=n.call(this,a,i,o)),a}var s=void 0;t?s=!1:(t={start:0},s=!0),(this.match(B.parenL)||this.match(B.name))&&(this.state.potentialArrowAt=this.state.start);var u=this.parseMaybeConditional(e,t,r);if(n&&(u=n.call(this,u,i,o)),this.state.type.isAssign){var l=this.startNodeAt(i,o);if(l.operator=this.state.value,l.left=this.match(B.eq)?this.toAssignable(u,void 0,"assignment expression"):u,t.start=0,this.checkLVal(u,void 0,void 0,"assignment expression"),u.extra&&u.extra.parenthesized){var c=void 0;"ObjectPattern"===u.type?c="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===u.type&&(c="`([a]) = 0` use `([a] = 0)`"),c&&this.raise(u.start,"You're trying to assign to a parenthesized expression, eg. instead of "+c)}return this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,"AssignmentExpression")}return s&&t.start&&this.unexpected(t.start),u},ae.parseMaybeConditional=function(e,t,n){var r=this.state.start,i=this.state.startLoc,o=this.parseExprOps(e,t);return t&&t.start?o:this.parseConditional(o,e,r,i,n)},ae.parseConditional=function(e,t,n,r){if(this.eat(B.question)){var i=this.startNodeAt(n,r);return i.test=e,i.consequent=this.parseMaybeAssign(),this.expect(B.colon),i.alternate=this.parseMaybeAssign(t),this.finishNode(i,"ConditionalExpression")}return e},ae.parseExprOps=function(e,t){var n=this.state.start,r=this.state.startLoc,i=this.parseMaybeUnary(t);return t&&t.start?i:this.parseExprOp(i,n,r,-1,e)},ae.parseExprOp=function(e,t,n,r,i){var o=this.state.type.binop;if(!(null==o||i&&this.match(B._in))&&o>r){var a=this.startNodeAt(t,n);a.left=e,a.operator=this.state.value,"**"!==a.operator||"UnaryExpression"!==e.type||!e.extra||e.extra.parenthesizedArgument||e.extra.parenthesized||this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var s=this.state.type;this.next();var u=this.state.start,l=this.state.startLoc;return a.right=this.parseExprOp(this.parseMaybeUnary(),u,l,s.rightAssociative?o-1:o,i),this.finishNode(a,s===B.logicalOR||s===B.logicalAND?"LogicalExpression":"BinaryExpression"),this.parseExprOp(a,t,n,r,i)}return e},ae.parseMaybeUnary=function(e){if(this.state.type.prefix){var t=this.startNode(),n=this.match(B.incDec);t.operator=this.state.value,t.prefix=!0,this.next();var r=this.state.type;return t.argument=this.parseMaybeUnary(),this.addExtra(t,"parenthesizedArgument",!(r!==B.parenL||t.argument.extra&&t.argument.extra.parenthesized)),e&&e.start&&this.unexpected(e.start),n?this.checkLVal(t.argument,void 0,void 0,"prefix operation"):this.state.strict&&"delete"===t.operator&&"Identifier"===t.argument.type&&this.raise(t.start,"Deleting local variable in strict mode"),this.finishNode(t,n?"UpdateExpression":"UnaryExpression")}var i=this.state.start,o=this.state.startLoc,a=this.parseExprSubscripts(e);if(e&&e.start)return a;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(i,o);s.operator=this.state.value,s.prefix=!1,s.argument=a,this.checkLVal(a,void 0,void 0,"postfix operation"),this.next(),a=this.finishNode(s,"UpdateExpression")}return a},ae.parseExprSubscripts=function(e){var t=this.state.start,n=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseExprAtom(e);return"ArrowFunctionExpression"===i.type&&i.start===r?i:e&&e.start?i:this.parseSubscripts(i,t,n)},ae.parseSubscripts=function(e,t,n,r){for(;;){if(!r&&this.eat(B.doubleColon)){var i=this.startNodeAt(t,n);return i.object=e,i.callee=this.parseNoCallExpr(),this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n,r)}if(this.eat(B.dot)){var o=this.startNodeAt(t,n);o.object=e,o.property=this.parseIdentifier(!0),o.computed=!1,e=this.finishNode(o,"MemberExpression")}else if(this.eat(B.bracketL)){var a=this.startNodeAt(t,n);a.object=e,a.property=this.parseExpression(),a.computed=!0,this.expect(B.bracketR),e=this.finishNode(a,"MemberExpression")}else if(!r&&this.match(B.parenL)){var s=this.state.potentialArrowAt===e.start&&"Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon();this.next();var u=this.startNodeAt(t,n);if(u.callee=e,u.arguments=this.parseCallExpressionArguments(B.parenR,s),"Import"===u.callee.type&&1!==u.arguments.length&&this.raise(u.start,"import() requires exactly one argument"),e=this.finishNode(u,"CallExpression"),s&&this.shouldParseAsyncArrow())return this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,n),u);this.toReferencedList(u.arguments)}else{if(!this.match(B.backQuote))return e;var l=this.startNodeAt(t,n);l.tag=e,l.quasi=this.parseTemplate(!0),e=this.finishNode(l,"TaggedTemplateExpression")}}},ae.parseCallExpressionArguments=function(e,t){for(var n=[],r=void 0,i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(B.comma),this.eat(e))break;this.match(B.parenL)&&!r&&(r=this.state.start),n.push(this.parseExprListItem(!1,t?{start:0}:void 0,t?{start:0}:void 0))}return t&&r&&this.shouldParseAsyncArrow()&&this.unexpected(),n},ae.shouldParseAsyncArrow=function(){return this.match(B.arrow)},ae.parseAsyncArrowFromCallExpression=function(e,t){return this.expect(B.arrow),this.parseArrowExpression(e,t.arguments,!0)},ae.parseNoCallExpr=function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)},ae.parseExprAtom=function(e){var t=this.state.potentialArrowAt===this.state.start,n=void 0;switch(this.state.type){case B._super:return this.state.inMethod||this.state.inClassProperty||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"'super' outside of function or class"),n=this.startNode(),this.next(),this.match(B.parenL)||this.match(B.bracketL)||this.match(B.dot)||this.unexpected(),this.match(B.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(n.start,"super() outside of class constructor"),this.finishNode(n,"Super");case B._import:return this.hasPlugin("dynamicImport")||this.unexpected(),n=this.startNode(),this.next(),this.match(B.parenL)||this.unexpected(null,B.parenL),this.finishNode(n,"Import");case B._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case B._yield:this.state.inGenerator&&this.unexpected();case B.name:n=this.startNode();var r="await"===this.state.value&&this.state.inAsync,i=this.shouldAllowYieldIdentifier(),o=this.parseIdentifier(r||i);if("await"===o.name){if(this.state.inAsync||this.inModule)return this.parseAwait(n)}else{if("async"===o.name&&this.match(B._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(n,!1,!1,!0);if(t&&"async"===o.name&&this.match(B.name)){var a=[this.parseIdentifier()];return this.expect(B.arrow),this.parseArrowExpression(n,a,!0)}}return t&&!this.canInsertSemicolon()&&this.eat(B.arrow)?this.parseArrowExpression(n,[o]):o;case B._do:if(this.hasPlugin("doExpressions")){var s=this.startNode();this.next();var u=this.state.inFunction,l=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,s.body=this.parseBlock(!1,!0),this.state.inFunction=u,this.state.labels=l,this.finishNode(s,"DoExpression")}case B.regexp:var c=this.state.value;return n=this.parseLiteral(c.value,"RegExpLiteral"),n.pattern=c.pattern,n.flags=c.flags,n;case B.num:return this.parseLiteral(this.state.value,"NumericLiteral");case B.string:return this.parseLiteral(this.state.value,"StringLiteral");case B._null:return n=this.startNode(),this.next(),this.finishNode(n,"NullLiteral");case B._true:case B._false:return n=this.startNode(),n.value=this.match(B._true),this.next(),this.finishNode(n,"BooleanLiteral");case B.parenL:return this.parseParenAndDistinguishExpression(null,null,t);case B.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(B.bracketR,!0,e),this.toReferencedList(n.elements),this.finishNode(n,"ArrayExpression");case B.braceL:return this.parseObj(!1,e);case B._function:return this.parseFunctionExpression();case B.at:this.parseDecorators();case B._class:return n=this.startNode(),this.takeDecorators(n),this.parseClass(n,!1);case B._new:return this.parseNew();case B.backQuote:return this.parseTemplate(!1);case B.doubleColon:n=this.startNode(),this.next(),n.object=null;var f=n.callee=this.parseNoCallExpr();if("MemberExpression"===f.type)return this.finishNode(n,"BindExpression");this.raise(f.start,"Binding should be performed on object property.");default:this.unexpected()}},ae.parseFunctionExpression=function(){var e=this.startNode(),t=this.parseIdentifier(!0);return this.state.inGenerator&&this.eat(B.dot)&&this.hasPlugin("functionSent")?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e,!1)},ae.parseMetaProperty=function(e,t,n){return e.meta=t,e.property=this.parseIdentifier(!0),e.property.name!==n&&this.raise(e.property.start,"The only valid meta property for new is "+t.name+"."+n),this.finishNode(e,"MetaProperty")},ae.parseLiteral=function(e,t,n,r){n=n||this.state.start,r=r||this.state.startLoc;var i=this.startNodeAt(n,r);return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(n,this.state.end)),i.value=e,this.next(),this.finishNode(i,t)},ae.parseParenExpression=function(){this.expect(B.parenL);var e=this.parseExpression();return this.expect(B.parenR),e},ae.parseParenAndDistinguishExpression=function(e,t,n){e=e||this.state.start,t=t||this.state.startLoc;var r=void 0;this.expect(B.parenL);for(var i=this.state.start,o=this.state.startLoc,a=[],s={start:0},u={start:0},l=!0,c=void 0,f=void 0;!this.match(B.parenR);){if(l)l=!1;else if(this.expect(B.comma,u.start||null),this.match(B.parenR)){f=this.state.start;break}if(this.match(B.ellipsis)){var p=this.state.start,d=this.state.startLoc;c=this.state.start,a.push(this.parseParenItem(this.parseRest(),p,d));break}a.push(this.parseMaybeAssign(!1,s,this.parseParenItem,u))}var h=this.state.start,v=this.state.startLoc;this.expect(B.parenR);var m=this.startNodeAt(e,t);if(n&&this.shouldParseArrow()&&(m=this.parseArrow(m))){for(var g=a,y=Array.isArray(g),b=0,g=y?g:g[Symbol.iterator]();;){var x;if(y){if(b>=g.length)break;x=g[b++]}else{if(b=g.next(),b.done)break;x=b.value}var E=x;E.extra&&E.extra.parenthesized&&this.unexpected(E.extra.parenStart)}return this.parseArrowExpression(m,a)}return a.length||this.unexpected(this.state.lastTokStart),f&&this.unexpected(f),c&&this.unexpected(c),s.start&&this.unexpected(s.start),u.start&&this.unexpected(u.start),a.length>1?(r=this.startNodeAt(i,o),r.expressions=a,this.toReferencedList(r.expressions),this.finishNodeAt(r,"SequenceExpression",h,v)):r=a[0],this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e),r},ae.shouldParseArrow=function(){return!this.canInsertSemicolon()},ae.parseArrow=function(e){if(this.eat(B.arrow))return e},ae.parseParenItem=function(e){return e},ae.parseNew=function(){var e=this.startNode(),t=this.parseIdentifier(!0);if(this.eat(B.dot)){var n=this.parseMetaProperty(e,t,"target");return this.state.inFunction||this.raise(n.property.start,"new.target can only be used in functions"),n}return e.callee=this.parseNoCallExpr(),this.eat(B.parenL)?(e.arguments=this.parseExprList(B.parenR),this.toReferencedList(e.arguments)):e.arguments=[],this.finishNode(e,"NewExpression")},ae.parseTemplateElement=function(e){var t=this.startNode();return null===this.state.value&&(e&&this.hasPlugin("templateInvalidEscapes")?this.state.invalidTemplateEscapePosition=null:this.raise(this.state.invalidTemplateEscapePosition,"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(B.backQuote),this.finishNode(t,"TemplateElement")},ae.parseTemplate=function(e){var t=this.startNode();this.next(),t.expressions=[];var n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)this.expect(B.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(B.braceR),t.quasis.push(n=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")},ae.parseObj=function(e,t){var n=[],r=Object.create(null),i=!0,o=this.startNode();o.properties=[],this.next();for(var a=null;!this.eat(B.braceR);){if(i)i=!1;else if(this.expect(B.comma),this.eat(B.braceR))break;for(;this.match(B.at);)n.push(this.parseDecorator());var s=this.startNode(),u=!1,l=!1,c=void 0,f=void 0;if(n.length&&(s.decorators=n,n=[]),this.hasPlugin("objectRestSpread")&&this.match(B.ellipsis)){if(s=this.parseSpread(e?{start:0}:void 0),s.type=e?"RestProperty":"SpreadProperty",e&&this.toAssignable(s.argument,!0,"object pattern"),o.properties.push(s),!e)continue;var p=this.state.start;if(null===a){if(this.eat(B.braceR))break;if(this.match(B.comma)&&this.lookahead().type===B.braceR)continue;a=p; -continue}this.unexpected(a,"Cannot have multiple rest elements when destructuring")}if(s.method=!1,s.shorthand=!1,(e||t)&&(c=this.state.start,f=this.state.startLoc),e||(u=this.eat(B.star)),!e&&this.isContextual("async")){u&&this.unexpected();var d=this.parseIdentifier();this.match(B.colon)||this.match(B.parenL)||this.match(B.braceR)||this.match(B.eq)||this.match(B.comma)?(s.key=d,s.computed=!1):(l=!0,this.hasPlugin("asyncGenerators")&&(u=this.eat(B.star)),this.parsePropertyName(s))}else this.parsePropertyName(s);this.parseObjPropValue(s,c,f,u,l,e,t),this.checkPropClash(s,r),s.shorthand&&this.addExtra(s,"shorthand",!0),o.properties.push(s)}return null!==a&&this.unexpected(a,"The rest element has to be the last element when destructuring"),n.length&&this.raise(this.state.start,"You have trailing decorators with no property"),this.finishNode(o,e?"ObjectPattern":"ObjectExpression")},ae.isGetterOrSetterMethod=function(e,t){return!t&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(B.string)||this.match(B.num)||this.match(B.bracketL)||this.match(B.name)||this.state.type.keyword)},ae.checkGetterSetterParamCount=function(e){var t="get"===e.kind?0:1;if(e.params.length!==t){var n=e.start;"get"===e.kind?this.raise(n,"getter should have no params"):this.raise(n,"setter should have exactly one param")}},ae.parseObjectMethod=function(e,t,n,r){return n||t||this.match(B.parenL)?(r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n),this.finishNode(e,"ObjectMethod")):this.isGetterOrSetterMethod(e,r)?((t||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e),this.checkGetterSetterParamCount(e),this.finishNode(e,"ObjectMethod")):void 0},ae.parseObjectProperty=function(e,t,n,r,i){return this.eat(B.colon)?(e.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,i),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!0),r?e.value=this.parseMaybeDefault(t,n,e.key.__clone()):this.match(B.eq)&&i?(i.start||(i.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"))},ae.parseObjPropValue=function(e,t,n,r,i,o,a){var s=this.parseObjectMethod(e,r,i,o)||this.parseObjectProperty(e,t,n,o,a);return s||this.unexpected(),s},ae.parsePropertyName=function(e){if(this.eat(B.bracketL))e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(B.bracketR);else{e.computed=!1;var t=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(B.num)||this.match(B.string)?this.parseExprAtom():this.parseIdentifier(!0),this.state.inPropertyName=t}return e.key},ae.initFunction=function(e,t){e.id=null,e.generator=!1,e.expression=!1,e.async=!!t},ae.parseMethod=function(e,t,n){var r=this.state.inMethod;return this.state.inMethod=e.kind||!0,this.initFunction(e,n),this.expect(B.parenL),e.params=this.parseBindingList(B.parenR),e.generator=!!t,this.parseFunctionBody(e),this.state.inMethod=r,e},ae.parseArrowExpression=function(e,t,n){return this.initFunction(e,n),e.params=this.toAssignableList(t,!0,"arrow function parameters"),this.parseFunctionBody(e,!0),this.finishNode(e,"ArrowFunctionExpression")},ae.isStrictBody=function(e,t){if(!t&&e.body.directives.length)for(var n=e.body.directives,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;if("use strict"===a.value.value)return!0}return!1},ae.parseFunctionBody=function(e,t){var n=t&&!this.match(B.braceL),r=this.state.inAsync;if(this.state.inAsync=e.async,n)e.body=this.parseMaybeAssign(),e.expression=!0;else{var i=this.state.inFunction,o=this.state.inGenerator,a=this.state.labels;this.state.inFunction=!0,this.state.inGenerator=e.generator,this.state.labels=[],e.body=this.parseBlock(!0),e.expression=!1,this.state.inFunction=i,this.state.inGenerator=o,this.state.labels=a}this.state.inAsync=r;var s=this.isStrictBody(e,n),u=this.state.strict||t||s;if(s&&e.id&&"Identifier"===e.id.type&&"yield"===e.id.name&&this.raise(e.id.start,"Binding yield in strict mode"),u){var l=Object.create(null),c=this.state.strict;s&&(this.state.strict=!0),e.id&&this.checkLVal(e.id,!0,void 0,"function name");for(var f=e.params,p=Array.isArray(f),d=0,f=p?f:f[Symbol.iterator]();;){var h;if(p){if(d>=f.length)break;h=f[d++]}else{if(d=f.next(),d.done)break;h=d.value}var v=h;s&&"Identifier"!==v.type&&this.raise(v.start,"Non-simple parameter in strict mode"),this.checkLVal(v,!0,l,"function parameter list")}this.state.strict=c}},ae.parseExprList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(B.comma),this.eat(e))break;r.push(this.parseExprListItem(t,n))}return r},ae.parseExprListItem=function(e,t,n){var r=void 0;return r=e&&this.match(B.comma)?null:this.match(B.ellipsis)?this.parseSpread(t):this.parseMaybeAssign(!1,t,this.parseParenItem,n)},ae.parseIdentifier=function(e){var t=this.startNode();return e||this.checkReservedWord(this.state.value,this.state.start,!!this.state.type.keyword,!1),this.match(B.name)?t.name=this.state.value:this.state.type.keyword?t.name=this.state.type.keyword:this.unexpected(),!e&&"await"===t.name&&this.state.inAsync&&this.raise(t.start,"invalid use of await inside of an async function"),t.loc.identifierName=t.name,this.next(),this.finishNode(t,"Identifier")},ae.checkReservedWord=function(e,t,n,r){(this.isReservedWord(e)||n&&this.isKeyword(e))&&this.raise(t,e+" is a reserved word"),this.state.strict&&(g.strict(e)||r&&g.strictBind(e))&&this.raise(t,e+" is a reserved word in strict mode")},ae.parseAwait=function(e){return this.state.inAsync||this.unexpected(),this.match(B.star)&&this.raise(e.start,"await* has been removed from the async functions proposal. Use Promise.all() instead."),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")},ae.parseYield=function(){var e=this.startNode();return this.next(),this.match(B.semi)||this.canInsertSemicolon()||!this.match(B.star)&&!this.state.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(B.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")};var se=Z.prototype,ue=["leadingComments","trailingComments","innerComments"],le=function(){function e(t,n,r){k(this,e),this.type="",this.start=t,this.end=0,this.loc=new Y(n),r&&(this.loc.filename=r)}return e.prototype.__clone=function(){var t=new e;for(var n in this)ue.indexOf(n)<0&&(t[n]=this[n]);return t},e}();se.startNode=function(){return new le(this.state.start,this.state.startLoc,this.filename)},se.startNodeAt=function(e,t){return new le(e,t,this.filename)},se.finishNode=function(e,t){return c.call(this,e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)},se.finishNodeAt=function(e,t,n,r){return c.call(this,e,t,n,r)};var ce=Z.prototype;ce.raise=function(e,t){var n=u(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r};var fe=Z.prototype;fe.addComment=function(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)},fe.processComment=function(e){if(!("Program"===e.type&&e.body.length>0)){var t=this.state.commentStack,n=void 0,r=void 0,i=void 0,o=void 0;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{var a=f(t);t.length>0&&a.trailingComments&&a.trailingComments[0].start>=e.end&&(r=a.trailingComments,a.trailingComments=null)}for(;t.length>0&&f(t).start>=e.start;)n=t.pop();if(n){if(n.leadingComments)if(n!==e&&f(n.leadingComments).end<=e.start)e.leadingComments=n.leadingComments,n.leadingComments=null;else for(i=n.leadingComments.length-2;i>=0;--i)if(n.leadingComments[i].end<=e.start){e.leadingComments=n.leadingComments.splice(0,i+1);break}}else if(this.state.leadingComments.length>0)if(f(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++);e.leadingComments=this.state.leadingComments.slice(0,i),0===e.leadingComments.length&&(e.leadingComments=null),r=this.state.leadingComments.slice(i),0===r.length&&(r=null)}this.state.commentPreviousNode=e,r&&(r.length&&r[0].start>=e.start&&f(r).end<=e.end?e.innerComments=r:e.trailingComments=r),t.push(e)}};var pe=Z.prototype;pe.estreeParseRegExpLiteral=function(e){var t=e.pattern,n=e.flags,r=null;try{r=new RegExp(t,n)}catch(e){}var i=this.estreeParseLiteral(r);return i.regex={pattern:t,flags:n},i},pe.estreeParseLiteral=function(e){return this.parseLiteral(e,"Literal")},pe.directiveToStmt=function(e){var t=e.value,n=this.startNodeAt(e.start,e.loc.start),r=this.startNodeAt(t.start,t.loc.start);return r.value=t.value,r.raw=t.extra.raw,n.expression=this.finishNodeAt(r,"Literal",t.end,t.loc.end),n.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(n,"ExpressionStatement",e.end,e.loc.end)};var de=function(e){e.extend("checkDeclaration",function(e){return function(t){p(t)?this.checkDeclaration(t.value):e.call(this,t)}}),e.extend("checkGetterSetterParamCount",function(){return function(e){var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.start;"get"===e.kind?this.raise(n,"getter should have no params"):this.raise(n,"setter should have exactly one param")}}}),e.extend("checkLVal",function(e){return function(t,n,r){var i=this;switch(t.type){case"ObjectPattern":t.properties.forEach(function(e){i.checkLVal("Property"===e.type?e.value:e,n,r,"object destructuring pattern")});break;default:for(var o=arguments.length,a=Array(o>3?o-3:0),s=3;s0)for(var n=e.body.body,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;if("ExpressionStatement"!==a.type||"Literal"!==a.expression.type)break;if("use strict"===a.expression.value)return!0}return!1}}),e.extend("isValidDirective",function(){return function(e){return!("ExpressionStatement"!==e.type||"Literal"!==e.expression.type||"string"!=typeof e.expression.value||e.expression.extra&&e.expression.extra.parenthesized)}}),e.extend("parseBlockBody",function(e){return function(t){for(var n=this,r=arguments.length,i=Array(r>1?r-1:0),o=1;o1?n-1:0),i=1;i1?r-1:0),o=1;o2?r-2:0),o=2;o=a.length)break;l=a[u++]}else{if(u=a.next(),u.done)break;l=u.value}var c=l;"get"===c.kind||"set"===c.kind?this.raise(c.key.start,"Object pattern can't contain getter or setter"):c.method?this.raise(c.key.start,"Object pattern can't contain methods"):this.toAssignable(c,n,"object destructuring pattern")}return t}return e.call.apply(e,[this,t,n].concat(i))}})},he=["any","mixed","empty","bool","boolean","number","string","void","null"],ve=Z.prototype;ve.flowParseTypeInitialiser=function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||B.colon);var n=this.flowParseType();return this.state.inType=t,n},ve.flowParsePredicate=function(){var e=this.startNode(),t=this.state.startLoc,n=this.state.start;this.expect(B.modulo);var r=this.state.startLoc;return this.expectContextual("checks"),t.line===r.line&&t.column===r.column-1||this.raise(n,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(B.parenL)?(e.expression=this.parseExpression(),this.expect(B.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")},ve.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(B.colon);var t=null,n=null;return this.match(B.modulo)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(B.modulo)&&(n=this.flowParsePredicate())),[t,n]},ve.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},ve.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.isRelational("<")?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(B.parenL);var i=this.flowParseFunctionTypeParams();n.params=i.params,n.rest=i.rest,this.expect(B.parenR);var o=null,a=this.flowParseTypeAndPredicateInitialiser();return n.returnType=a[0],o=a[1],r.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),r.predicate=o,t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.finishNode(t,t.type),this.semicolon(),this.finishNode(e,"DeclareFunction")},ve.flowParseDeclare=function(e){return this.match(B._class)?this.flowParseDeclareClass(e):this.match(B._function)?this.flowParseDeclareFunction(e):this.match(B._var)?this.flowParseDeclareVariable(e):this.isContextual("module")?this.lookahead().type===B.dot?this.flowParseDeclareModuleExports(e):this.flowParseDeclareModule(e):this.isContextual("type")?this.flowParseDeclareTypeAlias(e):this.isContextual("interface")?this.flowParseDeclareInterface(e):void this.unexpected()},ve.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(),this.semicolon(),this.finishNode(e,"DeclareVariable")},ve.flowParseDeclareModule=function(e){this.next(),this.match(B.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var t=e.body=this.startNode(),n=t.body=[];for(this.expect(B.braceL);!this.match(B.braceR);){var r=this.startNode();if(this.match(B._import)){var i=this.lookahead();"type"!==i.value&&"typeof"!==i.value&&this.unexpected(null,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.parseImport(r)}else this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),r=this.flowParseDeclare(r,!0);n.push(r)}return this.expect(B.braceR),this.finishNode(t,"BlockStatement"),this.finishNode(e,"DeclareModule")},ve.flowParseDeclareModuleExports=function(e){return this.expectContextual("module"),this.expect(B.dot),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},ve.flowParseDeclareTypeAlias=function(e){return this.next(),this.flowParseTypeAlias(e),this.finishNode(e,"DeclareTypeAlias")},ve.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")},ve.flowParseInterfaceish=function(e){if(e.id=this.parseIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.mixins=[],this.eat(B._extends))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(B.comma));if(this.isContextual("mixins")){this.next();do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(B.comma))}e.body=this.flowParseObjectType(!0,!1,!1)},ve.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},ve.flowParseInterface=function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")},ve.flowParseRestrictedIdentifier=function(e){return he.indexOf(this.state.value)>-1&&this.raise(this.state.start,"Cannot overwrite primitive type "+this.state.value),this.parseIdentifier(e)},ve.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(B.eq),this.semicolon(),this.finishNode(e,"TypeAlias")},ve.flowParseTypeParameter=function(){var e=this.startNode(),t=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return e.name=n.name,e.variance=t,e.bound=n.typeAnnotation,this.match(B.eq)&&(this.eat(B.eq),e.default=this.flowParseType()),this.finishNode(e,"TypeParameter")},ve.flowParseTypeParameterDeclaration=function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(B.jsxTagStart)?this.next():this.unexpected();do t.params.push(this.flowParseTypeParameter()),this.isRelational(">")||this.expect(B.comma);while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")},ve.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(B.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},ve.flowParseObjectPropertyKey=function(){return this.match(B.num)||this.match(B.string)?this.parseExprAtom():this.parseIdentifier(!0)},ve.flowParseObjectTypeIndexer=function(e,t,n){return e.static=t,this.expect(B.bracketL),this.lookahead().type===B.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(B.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.flowObjectTypeSemicolon(),this.finishNode(e,"ObjectTypeIndexer")},ve.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(B.parenL);this.match(B.name);)e.params.push(this.flowParseFunctionTypeParam()),this.match(B.parenR)||this.expect(B.comma);return this.eat(B.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(B.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},ve.flowParseObjectTypeMethod=function(e,t,n,r){var i=this.startNodeAt(e,t);return i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e,t)),i.static=n,i.key=r,i.optional=!1,this.flowObjectTypeSemicolon(),this.finishNode(i,"ObjectTypeProperty")},ve.flowParseObjectTypeCallProperty=function(e,t){var n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.flowObjectTypeSemicolon(),this.finishNode(e,"ObjectTypeCallProperty")},ve.flowParseObjectType=function(e,t,n){var r=this.state.inType;this.state.inType=!0;var i=this.startNode(),o=void 0,a=void 0,s=!1;i.callProperties=[],i.properties=[],i.indexers=[];var u=void 0,l=void 0;for(t&&this.match(B.braceBarL)?(this.expect(B.braceBarL),u=B.braceBarR,l=!0):(this.expect(B.braceL),u=B.braceR,l=!1),i.exact=l;!this.match(u);){var c=!1,f=this.state.start,p=this.state.startLoc;o=this.startNode(),e&&this.isContextual("static")&&this.lookahead().type!==B.colon&&(this.next(),s=!0);var d=this.state.start,h=this.flowParseVariance();this.match(B.bracketL)?i.indexers.push(this.flowParseObjectTypeIndexer(o,s,h)):this.match(B.parenL)||this.isRelational("<")?(h&&this.unexpected(d),i.callProperties.push(this.flowParseObjectTypeCallProperty(o,s))):this.match(B.ellipsis)?(n||this.unexpected(null,"Spread operator cannot appear in class or interface definitions"),h&&this.unexpected(h.start,"Spread properties cannot have variance"),this.expect(B.ellipsis),o.argument=this.flowParseType(),this.flowObjectTypeSemicolon(),i.properties.push(this.finishNode(o,"ObjectTypeSpreadProperty"))):(a=this.flowParseObjectPropertyKey(),this.isRelational("<")||this.match(B.parenL)?(h&&this.unexpected(h.start),i.properties.push(this.flowParseObjectTypeMethod(f,p,s,a))):(this.eat(B.question)&&(c=!0),o.key=a,o.value=this.flowParseTypeInitialiser(),o.optional=c,o.static=s,o.variance=h,this.flowObjectTypeSemicolon(),i.properties.push(this.finishNode(o,"ObjectTypeProperty")))),s=!1}this.expect(u);var v=this.finishNode(i,"ObjectTypeAnnotation");return this.state.inType=r,v},ve.flowObjectTypeSemicolon=function(){this.eat(B.semi)||this.eat(B.comma)||this.match(B.braceR)||this.match(B.braceBarR)||this.unexpected()},ve.flowParseQualifiedTypeIdentifier=function(e,t,n){e=e||this.state.start,t=t||this.state.startLoc;for(var r=n||this.parseIdentifier();this.eat(B.dot);){var i=this.startNodeAt(e,t);i.qualification=r,i.id=this.parseIdentifier(),r=this.finishNode(i,"QualifiedTypeIdentifier")}return r},ve.flowParseGenericType=function(e,t,n){var r=this.startNodeAt(e,t);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t,n),this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")},ve.flowParseTypeofType=function(){var e=this.startNode();return this.expect(B._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},ve.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(B.bracketL);this.state.pos0&&void 0!==arguments[0]?arguments[0]:[],t={params:e,rest:null};!this.match(B.parenR)&&!this.match(B.ellipsis);)t.params.push(this.flowParseFunctionTypeParam()),this.match(B.parenR)||this.expect(B.comma);return this.eat(B.ellipsis)&&(t.rest=this.flowParseFunctionTypeParam()),t},ve.flowIdentToTypeAnnotation=function(e,t,n,r){switch(r.name){case"any":return this.finishNode(n,"AnyTypeAnnotation");case"void":return this.finishNode(n,"VoidTypeAnnotation");case"bool":case"boolean":return this.finishNode(n,"BooleanTypeAnnotation");case"mixed":return this.finishNode(n,"MixedTypeAnnotation");case"empty":return this.finishNode(n,"EmptyTypeAnnotation");case"number":return this.finishNode(n,"NumberTypeAnnotation");case"string":return this.finishNode(n,"StringTypeAnnotation");default:return this.flowParseGenericType(e,t,r)}},ve.flowParsePrimaryType=function(){var e=this.state.start,t=this.state.startLoc,n=this.startNode(),r=void 0,i=void 0,o=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case B.name:return this.flowIdentToTypeAnnotation(e,t,n,this.parseIdentifier());case B.braceL:return this.flowParseObjectType(!1,!1,!0);case B.braceBarL:return this.flowParseObjectType(!1,!0,!0);case B.bracketL:return this.flowParseTupleType();case B.relational:if("<"===this.state.value)return n.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(B.parenL),r=this.flowParseFunctionTypeParams(),n.params=r.params,n.rest=r.rest,this.expect(B.parenR),this.expect(B.arrow),n.returnType=this.flowParseType(),this.finishNode(n,"FunctionTypeAnnotation");break;case B.parenL:if(this.next(),!this.match(B.parenR)&&!this.match(B.ellipsis))if(this.match(B.name)){var s=this.lookahead().type;o=s!==B.question&&s!==B.colon}else o=!0;if(o){if(this.state.noAnonFunctionType=!1,i=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(B.comma)||this.match(B.parenR)&&this.lookahead().type===B.arrow))return this.expect(B.parenR),i;this.eat(B.comma)}return r=i?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(i)]):this.flowParseFunctionTypeParams(),n.params=r.params,n.rest=r.rest,this.expect(B.parenR),this.expect(B.arrow),n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation");case B.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case B._true:case B._false:return n.value=this.match(B._true),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case B.plusMin:if("-"===this.state.value)return this.next(),this.match(B.num)||this.unexpected(null,"Unexpected token, expected number"),this.parseLiteral(-this.state.value,"NumericLiteralTypeAnnotation",n.start,n.loc.start);this.unexpected();case B.num:return this.parseLiteral(this.state.value,"NumericLiteralTypeAnnotation");case B._null:return n.value=this.match(B._null),this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case B._this:return n.value=this.match(B._this),this.next(),this.finishNode(n,"ThisTypeAnnotation");case B.star:return this.next(),this.finishNode(n,"ExistentialTypeParam");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType()}this.unexpected()},ve.flowParsePostfixType=function(){for(var e=this.state.start,t=this.state.startLoc,n=this.flowParsePrimaryType();!this.canInsertSemicolon()&&this.match(B.bracketL);){var r=this.startNodeAt(e,t);r.elementType=n,this.expect(B.bracketL),this.expect(B.bracketR),n=this.finishNode(r,"ArrayTypeAnnotation")}return n},ve.flowParsePrefixType=function(){var e=this.startNode();return this.eat(B.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()},ve.flowParseAnonFunctionWithoutParens=function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(B.arrow)){var t=this.startNodeAt(e.start,e.loc);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e},ve.flowParseIntersectionType=function(){var e=this.startNode();this.eat(B.bitwiseAND);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(B.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")},ve.flowParseUnionType=function(){var e=this.startNode();this.eat(B.bitwiseOR);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(B.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")},ve.flowParseType=function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,t},ve.flowParseTypeAnnotation=function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")},ve.flowParseTypeAndPredicateAnnotation=function(){var e=this.startNode(),t=this.flowParseTypeAndPredicateInitialiser();return e.typeAnnotation=t[0],e.predicate=t[1],this.finishNode(e,"TypeAnnotation")},ve.flowParseTypeAnnotatableIdentifier=function(){var e=this.flowParseRestrictedIdentifier();return this.match(B.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,e.type)),e},ve.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.finishNodeAt(e.expression,e.expression.type,e.typeAnnotation.end,e.typeAnnotation.loc.end)},ve.flowParseVariance=function(){var e=null;return this.match(B.plusMin)&&("+"===this.state.value?e="plus":"-"===this.state.value&&(e="minus"),this.next()),e};var me=function(e){e.extend("parseFunctionBody",function(e){return function(t,n){return this.match(B.colon)&&!n&&(t.returnType=this.flowParseTypeAndPredicateAnnotation()),e.call(this,t,n)}}),e.extend("parseStatement",function(e){return function(t,n){if(this.state.strict&&this.match(B.name)&&"interface"===this.state.value){var r=this.startNode();return this.next(),this.flowParseInterface(r)}return e.call(this,t,n)}}),e.extend("parseExpressionStatement",function(e){return function(t,n){if("Identifier"===n.type)if("declare"===n.name){if(this.match(B._class)||this.match(B.name)||this.match(B._function)||this.match(B._var))return this.flowParseDeclare(t)}else if(this.match(B.name)){if("interface"===n.name)return this.flowParseInterface(t);if("type"===n.name)return this.flowParseTypeAlias(t)}return e.call(this,t,n)}}),e.extend("shouldParseExportDeclaration",function(e){return function(){return this.isContextual("type")||this.isContextual("interface")||e.call(this)}}),e.extend("parseConditional",function(e){return function(t,n,r,i,o){if(o&&this.match(B.question)){var a=this.state.clone();try{return e.call(this,t,n,r,i)}catch(e){if(e instanceof SyntaxError)return this.state=a,o.start=e.pos||this.state.start,t;throw e}}return e.call(this,t,n,r,i)}}),e.extend("parseParenItem",function(e){return function(t,n,r){if(t=e.call(this,t,n,r),this.eat(B.question)&&(t.optional=!0),this.match(B.colon)){var i=this.startNodeAt(n,r);return i.expression=t,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return t}}),e.extend("parseExport",function(e){return function(t){return t=e.call(this,t),"ExportNamedDeclaration"===t.type&&(t.exportKind=t.exportKind||"value"),t}}),e.extend("parseExportDeclaration",function(e){return function(t){if(this.isContextual("type")){t.exportKind="type";var n=this.startNode(); -return this.next(),this.match(B.braceL)?(t.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(t),null):this.flowParseTypeAlias(n)}if(this.isContextual("interface")){t.exportKind="type";var r=this.startNode();return this.next(),this.flowParseInterface(r)}return e.call(this,t)}}),e.extend("parseClassId",function(e){return function(t){e.apply(this,arguments),this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}}),e.extend("isKeyword",function(e){return function(t){return(!this.state.inType||"void"!==t)&&e.call(this,t)}}),e.extend("readToken",function(e){return function(t){return!this.state.inType||62!==t&&60!==t?e.call(this,t):this.finishOp(B.relational,1)}}),e.extend("jsx_readToken",function(e){return function(){if(!this.state.inType)return e.call(this)}}),e.extend("toAssignable",function(e){return function(t,n,r){return"TypeCastExpression"===t.type?e.call(this,this.typeCastToParameter(t),n,r):e.call(this,t,n,r)}}),e.extend("toAssignableList",function(e){return function(t,n,r){for(var i=0;i2?r-2:0),o=2;o1114111||be(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?t.push(s):(s-=65536,n=(s>>10)+55296,r=s%1024+56320,t.push(n,r)),(i+1==o||t.length>e)&&(a+=ye.apply(null,t),t.length=0)}return a}}var xe=ge,Ee={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:"♦"},we=/^[\da-fA-F]+$/,Ae=/^\d+$/;G.j_oTag=new H("...",!0,!0),B.jsxName=new I("jsxName"),B.jsxText=new I("jsxText",{beforeExpr:!0}),B.jsxTagStart=new I("jsxTagStart",{startsExpr:!0}),B.jsxTagEnd=new I("jsxTagEnd"),B.jsxTagStart.updateContext=function(){this.state.context.push(G.j_expr),this.state.context.push(G.j_oTag),this.state.exprAllowed=!1},B.jsxTagEnd.updateContext=function(e){var t=this.state.context.pop();t===G.j_oTag&&e===B.slash||t===G.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===G.j_expr):this.state.exprAllowed=!0};var _e=Z.prototype;_e.jsxReadToken=function(){for(var e="",t=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated JSX contents");var n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?60===n&&this.state.exprAllowed?(++this.state.pos,this.finishToken(B.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.state.pos),this.finishToken(B.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:s(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}},_e.jsxReadNewLine=function(e){var t=this.input.charCodeAt(this.state.pos),n=void 0;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},_e.jsxReadString=function(e){for(var t="",n=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):s(r)?(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(B.string,t)},_e.jsxReadEntity=function(){for(var e="",t=0,n=void 0,r=this.input[this.state.pos],i=++this.state.pos;this.state.pos")}return n.openingElement=i,n.closingElement=o,n.children=r,this.match(B.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSXElement")},_e.jsxParseElement=function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)};var Ce=function(e){e.extend("parseExprAtom",function(e){return function(t){if(this.match(B.jsxText)){var n=this.parseLiteral(this.state.value,"JSXText");return n.extra=null,n}return this.match(B.jsxTagStart)?this.jsxParseElement():e.call(this,t)}}),e.extend("readToken",function(e){return function(t){if(this.state.inPropertyName)return e.call(this,t);var n=this.curContext();if(n===G.j_expr)return this.jsxReadToken();if(n===G.j_oTag||n===G.j_cTag){if(i(t))return this.jsxReadWord();if(62===t)return++this.state.pos,this.finishToken(B.jsxTagEnd);if((34===t||39===t)&&n===G.j_oTag)return this.jsxReadString(t)}return 60===t&&this.state.exprAllowed?(++this.state.pos,this.finishToken(B.jsxTagStart)):e.call(this,t)}}),e.extend("updateContext",function(e){return function(t){if(this.match(B.braceL)){var n=this.curContext();n===G.j_oTag?this.state.context.push(G.braceExpression):n===G.j_expr?this.state.context.push(G.templateQuasi):e.call(this,t),this.state.exprAllowed=!0}else{if(!this.match(B.slash)||t!==B.jsxTagStart)return e.call(this,t);this.state.context.length-=2,this.state.context.push(G.j_cTag),this.state.exprAllowed=!1}}})};J.estree=de,J.flow=me,J.jsx=Ce,t.parse=h,t.parseExpression=v,t.tokTypes=B},function(e,t){"use strict";e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var r=n(54),i=n(140),o=n(93),a=n(149),s=n(419);e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,c=4==e,f=6==e,p=5==e||f,d=t||s;return function(t,s,h){for(var v,m,g=o(t),y=i(g),b=r(s,h,3),x=a(y.length),E=0,w=n?d(t,x):u?d(t,0):void 0;x>E;E++)if((p||E in y)&&(v=y[E],m=b(v,E,g),e))if(n)w[E]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return E;case 2:w.push(v)}else if(c)return!1;return f?-1:l||c?c:w}}},function(e,t){"use strict";var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var r=n(14),i=n(21),o=n(56),a=n(36),s=n(28),u=n(144),l=n(88),c=n(135),f=n(22),p=n(92),d=n(23).f,h=n(136)(0),v=n(20);e.exports=function(e,t,n,m,g,y){var b=r[e],x=b,E=g?"set":"add",w=x&&x.prototype,A={};return v&&"function"==typeof x&&(y||w.forEach&&!a(function(){(new x).entries().next()}))?(x=t(function(t,n){c(t,x,e,"_c"),t._c=new b,void 0!=n&&l(n,g,t[E],t)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in w&&(!y||"clear"!=e)&&s(x.prototype,e,function(n,r){if(c(this,x,e),!t&&y&&!f(n))return"get"==e&&void 0;var i=this._c[e](0===n?0:n,r);return t?this:i})}),"size"in w&&d(x.prototype,"size",{get:function(){return this._c.size}})):(x=m.getConstructor(t,e,g,E),u(x.prototype,n),o.NEED=!0),p(x,e),A[e]=x,i(i.G+i.W+i.F,A),y||m.setStrong(x,e,g),x}},function(e,t){"use strict";e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){"use strict";var r=n(137);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r=n(142),i=n(21),o=n(145),a=n(28),s=n(27),u=n(55),l=n(426),c=n(92),f=n(430),p=n(12)("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",v="keys",m="values",g=function(){return this};e.exports=function(e,t,n,y,b,x,E){l(n,t,y);var w,A,_,C=function(e){if(!d&&e in P)return P[e];switch(e){case v:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",k=b==m,D=!1,P=e.prototype,O=P[p]||P[h]||b&&P[b],T=O||C(b),M=b?k?C("entries"):T:void 0,R="Array"==t?P.entries||O:O;if(R&&(_=f(R.call(new e)),_!==Object.prototype&&(c(_,S,!0),r||s(_,p)||a(_,p,g))),k&&O&&O.name!==m&&(D=!0,T=function(){return O.call(this)}),r&&!E||!d&&!D&&P[p]||a(P,p,T),u[t]=T,u[S]=g,b)if(w={values:k?T:C(m),keys:x?T:C(v),entries:M},E)for(A in w)A in P||o(P,A,w[A]);else i(i.P+i.F*(d||D),t,w);return w}},function(e,t){"use strict";e.exports=!0},function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(28);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},function(e,t,n){"use strict";e.exports=n(28)},function(e,t,n){"use strict";var r=n(147)("keys"),i=n(94);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){"use strict";var r=n(14),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){"use strict";var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";var r=n(148),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(22);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r=n(14),i=n(5),o=n(142),a=n(152),s=n(23).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){"use strict";t.f=n(12)},function(e,t,n){"use strict";var r=n(434)(!0);n(141)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(14),o=n(27),a=n(20),s=n(21),u=n(145),l=n(56).KEY,c=n(36),f=n(147),p=n(92),d=n(94),h=n(12),v=n(152),m=n(151),g=n(427),y=n(422),b=n(227),x=n(19),E=n(37),w=n(150),A=n(91),_=n(89),C=n(429),S=n(230),k=n(23),D=n(43),P=S.f,O=k.f,T=C.f,M=i.Symbol,R=i.JSON,N=R&&R.stringify,F="prototype",I=h("_hidden"),L=h("toPrimitive"),j={}.propertyIsEnumerable,B=f("symbol-registry"),U=f("symbols"),V=f("op-symbols"),W=Object[F],q="function"==typeof M,H=i.QObject,G=!H||!H[F]||!H[F].findChild,z=a&&c(function(){return 7!=_(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(W,t);r&&delete W[t],O(e,t,n),r&&e!==W&&O(W,t,r)}:O,Y=function(e){var t=U[e]=_(M[F]);return t._k=e,t},K=q&&"symbol"==r(M.iterator)?function(e){return"symbol"==("undefined"==typeof e?"undefined":r(e))}:function(e){return e instanceof M},X=function(e,t,n){return e===W&&X(V,t,n),x(e),t=w(t,!0),x(n),o(U,t)?(n.enumerable?(o(e,I)&&e[I][t]&&(e[I][t]=!1),n=_(n,{enumerable:A(0,!1)})):(o(e,I)||O(e,I,A(1,{})),e[I][t]=!0),z(e,t,n)):O(e,t,n)},$=function(e,t){x(e);for(var n,r=y(t=E(t)),i=0,o=r.length;o>i;)X(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?_(e):$(_(e),t)},Q=function(e){var t=j.call(this,e=w(e,!0));return!(this===W&&o(U,e)&&!o(V,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,I)&&this[I][e])||t)},Z=function(e,t){if(e=E(e),t=w(t,!0),e!==W||!o(U,t)||o(V,t)){var n=P(e,t);return!n||!o(U,t)||o(e,I)&&e[I][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=T(E(e)),r=[],i=0;n.length>i;)o(U,t=n[i++])||t==I||t==l||r.push(t);return r},te=function(e){for(var t,n=e===W,r=T(n?V:E(e)),i=[],a=0;r.length>a;)!o(U,t=r[a++])||n&&!o(W,t)||i.push(U[t]);return i};q||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function t(n){this===W&&t.call(V,n),o(this,I)&&o(this[I],e)&&(this[I][e]=!1),z(this,e,A(1,n))};return a&&G&&z(W,e,{configurable:!0,set:t}),Y(e)},u(M[F],"toString",function(){return this._k}),S.f=Z,k.f=X,n(231).f=C.f=ee,n(90).f=Q,n(143).f=te,a&&!n(142)&&u(W,"propertyIsEnumerable",Q,!0),v.f=function(e){return Y(h(e))}),s(s.G+s.W+s.F*!q,{Symbol:M});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++]);for(var ne=D(h.store),re=0;ne.length>re;)m(ne[re++]);s(s.S+s.F*!q,"Symbol",{for:function(e){return o(B,e+="")?B[e]:B[e]=M(e)},keyFor:function(e){if(K(e))return g(B,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){G=!0},useSimple:function(){G=!1}}),s(s.S+s.F*!q,"Object",{create:J,defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te}),R&&s(s.S+s.F*(!q||c(function(){var e=M();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);return t=r[1],"function"==typeof t&&(n=t),!n&&b(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,N.apply(R,r)}}}),M[F][L]||n(28)(M[F],L,M[F].valueOf),p(M,"Symbol"),p(Math,"Math",!0),p(i.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(38),i=n(15),o=r(i,"Map");e.exports=o},function(e,t,n){"use strict";function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t,n){"use strict";var r=n(490),i=n(101),o=n(265),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){function r(e){return n(i(e))}function i(e){return o[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var o={"./index":49,"./index.js":49,"./logger":118,"./logger.js":118,"./metadata":119,"./metadata.js":119,"./options/build-config-chain":50,"./options/build-config-chain.js":50,"./options/config":32,"./options/config.js":32,"./options/index":51,"./options/index.js":51,"./options/option-manager":33,"./options/option-manager.js":33,"./options/parsers":52,"./options/parsers.js":52,"./options/removed":53,"./options/removed.js":53};r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=174},function(e,t,n){function r(e){return n(i(e))}function i(e){return o[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var o={"./build-config-chain":50,"./build-config-chain.js":50,"./config":32,"./config.js":32,"./index":51,"./index.js":51,"./option-manager":33,"./option-manager.js":33,"./parsers":52,"./parsers.js":52,"./removed":53,"./removed.js":53};r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=175},function(e,t){"use strict";e.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e -}}function i(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold,gutter:e.grey,marker:e.red.bold}}function o(e){var t=e.slice(-2),n=t[0],r=t[1],i=(0,s.matchToToken)(e);if("name"===i.type){if(c.default.keyword.isReservedWordES6(i.value))return"keyword";if(h.test(i.value)&&("<"===r[n-1]||"3&&void 0!==arguments[3]?arguments[3]:{};n=Math.max(n,0);var o=r.highlightCode&&p.default.supportsColor||r.forceColor,s=p.default;r.forceColor&&(s=new p.default.constructor({enabled:!0}));var u=function(e,t){return o?e(t):t},l=i(s);o&&(e=a(l,e));var c=r.linesAbove||2,f=r.linesBelow||3,h=e.split(d),v=Math.max(t-(c+1),0),m=Math.min(h.length,t+f);t||n||(v=0,m=h.length);var g=String(m).length,y=h.slice(v,m).map(function(e,r){var i=v+1+r,o=(" "+i).slice(-g),a=" "+o+" | ";if(i===t){var s="";if(n){var c=e.slice(0,n-1).replace(/[^\t]/g," ");s=["\n ",u(l.gutter,a.replace(/\d/g," ")),c,u(l.marker,"^")].join("")}return[u(l.marker,">"),u(l.gutter,a),e,s].join("")}return" "+u(l.gutter,a)+e}).join("\n");return o?s.reset(y):y};var s=n(459),u=r(s),l=n(96),c=r(l),f=n(397),p=r(f),d=/\r\n|[\n\r\u2028\u2029]/,h=/^[a-z][\w-]*$/i,v=/^[()\[\]{}]$/;e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){throw new Error("The ("+e+") Babel 5 plugin is being run with Babel 6.")}function a(e,t,n){"function"==typeof t&&(n=t,t={}),t.filename=e,m.default.readFile(e,function(e,r){var i=void 0;if(!e)try{i=O(r,t)}catch(t){e=t}e?n(e):n(null,i)})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.filename=e,O(m.default.readFileSync(e,"utf8"),t)}t.__esModule=!0,t.transformFromAst=t.transform=t.analyse=t.Pipeline=t.OptionManager=t.traverse=t.types=t.messages=t.util=t.version=t.resolvePreset=t.resolvePlugin=t.template=t.buildExternalHelpers=t.options=t.File=void 0;var u=n(49);Object.defineProperty(t,"File",{enumerable:!0,get:function(){return i(u).default}});var l=n(32);Object.defineProperty(t,"options",{enumerable:!0,get:function(){return i(l).default}});var c=n(291);Object.defineProperty(t,"buildExternalHelpers",{enumerable:!0,get:function(){return i(c).default}});var f=n(4);Object.defineProperty(t,"template",{enumerable:!0,get:function(){return i(f).default}});var p=n(180);Object.defineProperty(t,"resolvePlugin",{enumerable:!0,get:function(){return i(p).default}});var d=n(181);Object.defineProperty(t,"resolvePreset",{enumerable:!0,get:function(){return i(d).default}});var h=n(619);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return h.version}}),t.Plugin=o,t.transformFile=a,t.transformFileSync=s;var v=n(114),m=i(v),g=n(120),y=r(g),b=n(18),x=r(b),E=n(1),w=r(E),A=n(7),_=i(A),C=n(33),S=i(C),k=n(294),D=i(k);t.util=y,t.messages=x,t.types=w,t.traverse=_.default,t.OptionManager=S.default,t.Pipeline=D.default;var P=new D.default,O=(t.analyse=P.analyse.bind(P),t.transform=P.transform.bind(P));t.transformFromAst=P.transformFromAst.bind(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return e.reduce(function(e,n){return e||(0,a.default)(n,t)},null)}t.__esModule=!0,t.default=i;var o=n(116),a=r(o);e.exports=t.default},function(e,t,n){(function(r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.cwd();return(0,s.default)((0,l.default)(e),t)}t.__esModule=!0,t.default=o;var a=n(179),s=i(a),u=n(287),l=i(u);e.exports=t.default}).call(t,n(8))},function(e,t,n){(function(r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.cwd();return(0,s.default)((0,l.default)(e),t)}t.__esModule=!0,t.default=o;var a=n(179),s=i(a),u=n(288),l=i(u);e.exports=t.default}).call(t,n(8))},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var r=" ";if(e&&"string"==typeof e){var i=(0,h.default)(e).indent;i&&" "!==i&&(r=i)}var o={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,quotes:t.quotes||a(e,n),jsonCompatibleStrings:t.jsonCompatibleStrings,indent:{adjustMultilineComment:!0,style:r,base:0},flowCommaSeparator:t.flowCommaSeparator};return o.minified?(o.compact=!0,o.shouldPrintComment=o.shouldPrintComment||function(){return o.comments}):o.shouldPrintComment=o.shouldPrintComment||function(e){return o.comments||e.indexOf("@license")>=0||e.indexOf("@preserve")>=0},"auto"===o.compact&&(o.compact=e.length>5e5,o.compact&&console.error("[BABEL] "+y.get("codeGeneratorDeopt",t.filename,"500KB"))),o.compact&&(o.indent.adjustMultilineComment=!1),o}function a(e,t){var n="double";if(!e)return n;for(var r={single:0,double:0},i=0,o=0;o=3)break}}return r.single>r.double?"single":"double"}t.__esModule=!0,t.CodeGenerator=void 0;var s=n(3),u=i(s),l=n(42),c=i(l),f=n(41),p=i(f);t.default=function(e,t,n){var r=new E(e,t,n);return r.generate()};var d=n(450),h=i(d),v=n(309),m=i(v),g=n(18),y=r(g),b=n(308),x=i(b),E=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];(0,u.default)(this,t);var a=n.tokens||[],s=o(i,r,a),l=r.sourceMaps?new m.default(r,i):null,f=(0,c.default)(this,e.call(this,s,l,a));return f.ast=n,f}return(0,p.default)(t,e),t.prototype.generate=function(){return e.prototype.generate.call(this,this.ast)},t}(x.default);t.CodeGenerator=function(){function e(t,n,r){(0,u.default)(this,e),this._generator=new E(t,n,r)}return e.prototype.generate=function(){return this._generator.generate()},e}()},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){function t(e,t){var r=n[e];n[e]=r?function(e,n,i){var o=r(e,n,i);return null==o?t(e,n,i):o}:t}for(var n={},r=(0,v.default)(e),i=Array.isArray(r),o=0,r=i?r:(0,d.default)(r);;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a,u=E.FLIPPED_ALIAS_KEYS[s];if(u)for(var l=u,c=Array.isArray(l),f=0,l=c?l:(0,d.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var h=p;t(h,e[s])}else t(s,e[s])}return n}function a(e,t,n,r){var i=e[t.type];return i?i(t,n,r):null}function s(e){return!!E.isCallExpression(e)||!!E.isMemberExpression(e)&&(s(e.object)||!e.computed&&s(e.property))}function u(e,t,n){if(!e)return 0;E.isExpressionStatement(e)&&(e=e.expression);var r=a(A,e,t);if(!r){var i=a(_,e,t);if(i)for(var o=0;o2&&void 0!==arguments[2]?arguments[2]:"var";e.traverse(l,{kind:n,emit:t})};var s=n(1),u=r(s),l={Scope:function(e,t){"let"===t.kind&&e.skip()},Function:function(e){e.skip()},VariableDeclaration:function(e,t){if(!t.kind||e.node.kind===t.kind){for(var n=[],r=e.get("declarations"),i=void 0,o=r,s=Array.isArray(o),l=0,o=s?o:(0,a.default)(o);;){var c;if(s){if(l>=o.length)break;c=o[l++]}else{if(l=o.next(),l.done)break;c=l.value}var f=c;i=f.node.id,f.node.init&&n.push(u.expressionStatement(u.assignmentExpression("=",f.node.id,f.node.init)));for(var p in f.getBindingIdentifiers())t.emit(u.identifier(p),p)}e.parentPath.isFor({left:e.node})?e.replaceWith(i):e.replaceWithMultiple(n)}}};e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0,t.default=function(e,t,n){return 1===n.length&&o.isSpreadElement(n[0])&&o.isIdentifier(n[0].argument,{name:"arguments"})?o.callExpression(o.memberExpression(e,o.identifier("apply")),[t,n[0].argument]):o.callExpression(o.memberExpression(e,o.identifier("call")),[t].concat(n))};var i=n(1),o=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return c.isRegExpLiteral(e)&&e.flags.indexOf(t)>=0}function a(e,t){var n=e.flags.split("");e.flags.indexOf(t)<0||((0,u.default)(n,t),e.flags=n.join(""))}t.__esModule=!0,t.is=o,t.pullFlag=a;var s=n(272),u=i(s),l=n(1),c=r(l)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return!!g.isSuper(e)&&(!g.isMemberExpression(t,{computed:!1})&&!g.isCallExpression(t,{callee:e}))}function a(e){return g.isMemberExpression(e)&&g.isSuper(e.object)}function s(e,t){var n=t?e:g.memberExpression(e,g.identifier("prototype"));return g.logicalExpression("||",g.memberExpression(n,g.identifier("__proto__")),g.callExpression(g.memberExpression(g.identifier("Object"),g.identifier("getPrototypeOf")),[n]))}t.__esModule=!0;var u=n(3),l=i(u),c=n(10),f=i(c),p=n(187),d=i(p),h=n(18),v=r(h),m=n(1),g=r(m),y=(0,f.default)(),b={Function:function(e){e.inShadow("this")||e.skip()},ReturnStatement:function(e,t){e.inShadow("this")||t.returns.push(e)},ThisExpression:function(e,t){e.node[y]||t.thises.push(e)},enter:function(e,t){var n=t.specHandle;t.isLoose&&(n=t.looseHandle);var r=e.isCallExpression()&&e.get("callee").isSuper(),i=n.call(t,e);i&&(t.hasSuper=!0),r&&t.bareSupers.push(e),i===!0&&e.requeue(),i!==!0&&i&&(Array.isArray(i)?e.replaceWithMultiple(i):e.replaceWith(i))}},x=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,l.default)(this,e),this.forceSuperMemoisation=t.forceSuperMemoisation,this.methodPath=t.methodPath,this.methodNode=t.methodNode,this.superRef=t.superRef,this.isStatic=t.isStatic,this.hasSuper=!1,this.inClass=n,this.isLoose=t.isLoose,this.scope=this.methodPath.scope,this.file=t.file,this.opts=t,this.bareSupers=[],this.returns=[],this.thises=[]}return e.prototype.getObjectRef=function(){return this.opts.objectRef||this.opts.getObjectRef()},e.prototype.setSuperProperty=function(e,t,n){return g.callExpression(this.file.addHelper("set"),[s(this.getObjectRef(),this.isStatic),n?e:g.stringLiteral(e.name),t,g.thisExpression()])},e.prototype.getSuperProperty=function(e,t){return g.callExpression(this.file.addHelper("get"),[s(this.getObjectRef(),this.isStatic),t?e:g.stringLiteral(e.name),g.thisExpression()])},e.prototype.replace=function(){this.methodPath.traverse(b,this)},e.prototype.getLooseSuperProperty=function(e,t){var n=this.methodNode,r=this.superRef||g.identifier("Function");return t.property===e?void 0:g.isCallExpression(t,{callee:e})?void 0:g.isMemberExpression(t)&&!n.static?g.memberExpression(r,g.identifier("prototype")):r},e.prototype.looseHandle=function(e){var t=e.node;if(e.isSuper())return this.getLooseSuperProperty(t,e.parent);if(e.isCallExpression()){var n=t.callee;if(!g.isMemberExpression(n))return;if(!g.isSuper(n.object))return;return g.appendToMemberExpression(n,g.identifier("call")),t.arguments.unshift(g.thisExpression()),!0}},e.prototype.specHandleAssignmentExpression=function(e,t,n){return"="===n.operator?this.setSuperProperty(n.left.property,n.right,n.left.computed):(e=e||t.scope.generateUidIdentifier("ref"),[g.variableDeclaration("var",[g.variableDeclarator(e,n.left)]),g.expressionStatement(g.assignmentExpression("=",n.left,g.binaryExpression(n.operator[0],e,n.right)))])},e.prototype.specHandle=function(e){var t=void 0,n=void 0,r=void 0,i=e.parent,s=e.node;if(o(s,i))throw e.buildCodeFrameError(v.get("classesIllegalBareSuper"));if(g.isCallExpression(s)){var u=s.callee;if(g.isSuper(u))return;a(u)&&(t=u.property,n=u.computed,r=s.arguments)}else if(g.isMemberExpression(s)&&g.isSuper(s.object))t=s.property,n=s.computed;else{if(g.isUpdateExpression(s)&&a(s.argument)){var l=g.binaryExpression(s.operator[0],s.argument,g.numericLiteral(1));if(s.prefix)return this.specHandleAssignmentExpression(null,e,l);var c=e.scope.generateUidIdentifier("ref");return this.specHandleAssignmentExpression(c,e,l).concat(g.expressionStatement(c))}if(g.isAssignmentExpression(s)&&a(s.left))return this.specHandleAssignmentExpression(null,e,s)}if(t){var f=this.getSuperProperty(t,n);return r?this.optimiseCall(f,r):f}},e.prototype.optimiseCall=function(e,t){var n=g.thisExpression();return n[y]=!0,(0,d.default)(e,n,t)},e}();t.default=x,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=u.default[e];if(!t)throw new ReferenceError("Unknown helper "+e);return t().expression}t.__esModule=!0,t.list=void 0;var o=n(13),a=r(o);t.get=i;var s=n(317),u=r(s);t.list=(0,a.default)(u.default).map(function(e){return e.replace(/^_/,"")}).filter(function(e){return"__esModule"!==e});t.default=i},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("asyncGenerators")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("classConstructorCall")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("classProperties")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("doExpressions")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("exponentiationOperator")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("exportExtensions")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("functionBind")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("objectRestSpread")}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(2),o=r(i),a=n(10),s=r(a);t.default=function(e){function t(e){for(var t=e.get("body.body"),n=t,r=Array.isArray(n),i=0,n=r?n:(0,o.default)(n);;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if(i=n.next(),i.done)break;a=i.value}var s=a;if("constructorCall"===s.node.kind)return s}return null}function r(e,t){var n=t,r=n.node,o=r.id||t.scope.generateUidIdentifier("class");t.parentPath.isExportDefaultDeclaration()&&(t=t.parentPath,t.insertAfter(i.exportDefaultDeclaration(o))),t.replaceWithMultiple(c({CLASS_REF:t.scope.generateUidIdentifier(o.name),CALL_REF:t.scope.generateUidIdentifier(o.name+"Call"),CALL:i.functionExpression(null,e.node.params,e.node.body),CLASS:i.toExpression(r),WRAPPER_REF:o})),e.remove()}var i=e.types,a=(0,s.default)();return{inherits:n(192),visitor:{Class:function(e){if(!e.node[a]){e.node[a]=!0;var n=t(e);n&&r(n,e)}}}}};var u=n(4),l=r(u),c=(0,l.default)("\n let CLASS_REF = CLASS;\n var CALL_REF = CALL;\n var WRAPPER_REF = function (...args) {\n if (this instanceof WRAPPER_REF) {\n return Reflect.construct(CLASS_REF, args);\n } else {\n return CALL_REF.apply(this, args);\n }\n };\n WRAPPER_REF.__proto__ = CLASS_REF;\n WRAPPER_REF;\n");e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(2),o=r(i);t.default=function(e){var t=e.types,r={Super:function(e){e.parentPath.isCallExpression({callee:e.node})&&this.push(e.parentPath)}},i={ReferencedIdentifier:function(e){this.scope.hasOwnBinding(e.node.name)&&(this.collision=!0,e.skip())}},a=(0,l.default)("\n Object.defineProperty(REF, KEY, {\n // configurable is false by default\n enumerable: true,\n writable: true,\n value: VALUE\n });\n "),u=function(e,n){var r=n.key,i=n.value,o=n.computed;return a({REF:e,KEY:t.isIdentifier(r)&&!o?t.stringLiteral(r.name):r,VALUE:i?i:t.identifier("undefined")})},c=function(e,n){var r=n.key,i=n.value,o=n.computed;return t.expressionStatement(t.assignmentExpression("=",t.memberExpression(e,r,o||t.isLiteral(r)),i))};return{inherits:n(193),visitor:{Class:function(e,n){for(var a=n.opts.spec?u:c,l=!!e.node.superClass,f=void 0,p=[],d=e.get("body"),h=d.get("body"),v=Array.isArray(h),m=0,h=v?h:(0,o.default)(h);;){var g;if(v){if(m>=h.length)break;g=h[m++]}else{if(m=h.next(),m.done)break;g=m.value}var y=g;y.isClassProperty()?p.push(y):y.isClassMethod({kind:"constructor"})&&(f=y)}if(p.length){var b=[],x=void 0;e.isClassExpression()||!e.node.id?((0,s.default)(e),x=e.scope.generateUidIdentifier("class")):x=e.node.id;for(var E=[],w=p,A=Array.isArray(w),_=0,w=A?w:(0,o.default)(w);;){var C;if(A){if(_>=w.length)break;C=w[_++]}else{if(_=w.next(),_.done)break;C=_.value}var S=C,k=S.node;if(!(k.decorators&&k.decorators.length>0)&&(n.opts.spec||k.value)){var D=k.static;if(D)b.push(a(x,k));else{if(!k.value)continue;E.push(a(t.thisExpression(),k))}}}if(E.length){if(!f){var P=t.classMethod("constructor",t.identifier("constructor"),[],t.blockStatement([]));l&&(P.params=[t.restElement(t.identifier("args"))],P.body.body.push(t.returnStatement(t.callExpression(t.super(),[t.spreadElement(t.identifier("args"))]))));var O=d.unshiftContainer("body",P);f=O[0]}for(var T={collision:!1,scope:f.scope},M=p,R=Array.isArray(M),N=0,M=R?M:(0,o.default)(M);;){var F;if(R){if(N>=M.length)break;F=M[N++]}else{if(N=M.next(),N.done)break;F=N.value}var I=F;if(I.traverse(i,T),T.collision)break}if(T.collision){var L=e.scope.generateUidIdentifier("initialiseProps");b.push(t.variableDeclaration("var",[t.variableDeclarator(L,t.functionExpression(null,[],t.blockStatement(E)))])),E=[t.expressionStatement(t.callExpression(t.memberExpression(L,t.identifier("call")),[t.thisExpression()]))]}if(l){var j=[];f.traverse(r,j);for(var B=j,U=Array.isArray(B),V=0,B=U?B:(0,o.default)(B);;){var W;if(U){if(V>=B.length)break;W=B[V++]}else{if(V=B.next(),V.done)break;W=V.value}var q=W;q.insertAfter(E)}}else f.get("body").unshiftContainer("body",E)}for(var H=p,G=Array.isArray(H),z=0,H=G?H:(0,o.default)(H);;){var Y;if(G){if(z>=H.length)break;Y=H[z++]}else{if(z=H.next(),z.done)break;Y=z.value}var K=Y;K.remove()}b.length&&(e.isClassExpression()?(e.scope.push({id:x}),e.replaceWith(t.assignmentExpression("=",x,e.node))):(e.node.id||(e.node.id=x),e.parentPath.isExportDeclaration()&&(e=e.parentPath)),e.insertAfter(b))}},ArrowFunctionExpression:function(e){var t=e.get("body");if(t.isClassExpression()){var n=t.get("body"),r=n.get("body");r.some(function(e){return e.isClassProperty()})&&e.ensureBlock()}}}}};var a=n(40),s=r(a),u=n(4),l=r(u);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(9),o=r(i),a=n(2),s=r(a);t.default=function(e){function t(e){return e.reverse().map(function(e){return e.expression})}function r(e,n,r){var i=[],a=e.node.decorators;if(a){e.node.decorators=null,a=t(a);for(var l=a,c=Array.isArray(l),f=0,l=c?l:(0,s.default)(l);;){var d;if(c){if(f>=l.length)break;d=l[f++]}else{if(f=l.next(),f.done)break;d=f.value}var h=d;i.push(p({CLASS_REF:n,DECORATOR:h}))}}for(var v=(0,o.default)(null),m=e.get("body.body"),g=Array.isArray(m),y=0,m=g?m:(0,s.default)(m);;){var b;if(g){if(y>=m.length)break;b=m[y++]}else{if(y=m.next(),y.done)break;b=y.value}var x=b,E=x.node.decorators;if(E){var w=u.toKeyAlias(x.node);v[w]=v[w]||[],v[w].push(x.node),x.remove()}}for(var A in v)var _=v[A];return i}function i(e){if(e.isClass()){if(e.node.decorators)return!0;for(var t=e.node.body.body,n=Array.isArray(t),r=0,t=n?t:(0,s.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;if(o.decorators)return!0}}else if(e.isObjectExpression())for(var a=e.node.properties,u=Array.isArray(a),l=0,a=u?a:(0,s.default)(a);;){var c;if(u){if(l>=a.length)break;c=a[l++]}else{if(l=a.next(),l.done)break;c=l.value}var f=c;if(f.decorators)return!0}return!1}function a(e){throw e.buildCodeFrameError('Decorators are not officially supported yet in 6.x pending a proposal update.\nHowever, if you need to use them you can install the legacy decorators transform with:\n\nnpm install babel-plugin-transform-decorators-legacy --save-dev\n\nand add the following line to your .babelrc file:\n\n{\n "plugins": ["transform-decorators-legacy"]\n}\n\nThe repo url is: https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.\n ')}var u=e.types;return{inherits:n(123),visitor:{ClassExpression:function(e){if(i(e)){a(e),(0,f.default)(e);var t=e.scope.generateDeclaredUidIdentifier("ref"),n=[];n.push(u.assignmentExpression("=",t,e.node)),n=n.concat(r(e,t,this)),n.push(t),e.replaceWith(u.sequenceExpression(n))}},ClassDeclaration:function(e){if(i(e)){a(e),(0,f.default)(e);var t=e.node.id,n=[];n=n.concat(r(e,t,this).map(function(e){return u.expressionStatement(e)})),n.push(u.expressionStatement(t)),e.insertAfter(n)}},ObjectExpression:function(e){i(e)&&a(e)}}}};var u=n(4),l=r(u),c=n(315),f=r(c),p=(0,l.default)("\n CLASS_REF = DECORATOR(CLASS_REF) || CLASS_REF;\n");e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{inherits:n(194),visitor:{DoExpression:function(e){var t=e.node.body.body;t.length?e.replaceWithMultiple(t):e.replaceWith(e.scope.buildUndefinedNode())}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(2),a=i(o),s=n(3),u=i(s),l=n(7),c=n(189),f=i(c),p=n(187),d=i(p),h=n(184),v=r(h),m=n(4),g=i(m),y=n(1),b=r(y),x=(0,g.default)("\n (function () {\n super(...arguments);\n })\n"),E={"FunctionExpression|FunctionDeclaration":function(e){e.is("shadow")||e.skip()},Method:function(e){e.skip()}},w=l.visitors.merge([E,{Super:function(e){if(this.isDerived&&!this.hasBareSuper&&!e.parentPath.isCallExpression({callee:e.node}))throw e.buildCodeFrameError("'super.*' is not allowed before super()")},CallExpression:{exit:function(e){if(e.get("callee").isSuper()&&(this.hasBareSuper=!0,!this.isDerived))throw e.buildCodeFrameError("super() is only allowed in a derived constructor")}},ThisExpression:function(e){if(this.isDerived&&!this.hasBareSuper&&!e.inShadow("this"))throw e.buildCodeFrameError("'this' is not allowed before super()")}}]),A=l.visitors.merge([E,{ThisExpression:function(e){this.superThises.push(e)}}]),_=function(){function e(t,n){(0,u.default)(this,e),this.parent=t.parent,this.scope=t.scope,this.node=t.node,this.path=t,this.file=n,this.clearDescriptors(),this.instancePropBody=[],this.instancePropRefs={},this.staticPropBody=[],this.body=[],this.bareSuperAfter=[],this.bareSupers=[],this.pushedConstructor=!1,this.pushedInherits=!1,this.isLoose=!1,this.superThises=[],this.classId=this.node.id,this.classRef=this.node.id?b.identifier(this.node.id.name):this.scope.generateUidIdentifier("class"),this.superName=this.node.superClass||b.identifier("Function"),this.isDerived=!!this.node.superClass}return e.prototype.run=function(){var e=this,t=this.superName,n=this.file,r=this.body,i=this.constructorBody=b.blockStatement([]);this.constructor=this.buildConstructor();var o=[],a=[];if(this.isDerived&&(a.push(t),t=this.scope.generateUidIdentifierBasedOnNode(t),o.push(t),this.superName=t),this.buildBody(),i.body.unshift(b.expressionStatement(b.callExpression(n.addHelper("classCallCheck"),[b.thisExpression(),this.classRef]))),r=r.concat(this.staticPropBody.map(function(t){return t(e.classRef)})),this.classId&&1===r.length)return b.toExpression(r[0]);r.push(b.returnStatement(this.classRef));var s=b.functionExpression(null,o,b.blockStatement(r));return s.shadow=!0,b.callExpression(s,a)},e.prototype.buildConstructor=function(){var e=b.functionDeclaration(this.classRef,[],this.constructorBody);return b.inherits(e,this.node),e},e.prototype.pushToMap=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value",r=arguments[3],i=void 0;e.static?(this.hasStaticDescriptors=!0,i=this.staticMutatorMap):(this.hasInstanceDescriptors=!0,i=this.instanceMutatorMap);var o=v.push(i,e,n,this.file,r);return t&&(o.enumerable=b.booleanLiteral(!0)),o},e.prototype.constructorMeMaybe=function(){for(var e=!1,t=this.path.get("body.body"),n=t,r=Array.isArray(n),i=0,n=r?n:(0,a.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var s=o;if(e=s.equals("kind","constructor"))break}if(!e){var u=void 0,l=void 0;if(this.isDerived){var c=x().expression;u=c.params,l=c.body}else u=[],l=b.blockStatement([]);this.path.get("body").unshiftContainer("body",b.classMethod("constructor",b.identifier("constructor"),u,l))}},e.prototype.buildBody=function(){if(this.constructorMeMaybe(),this.pushBody(),this.verifyConstructor(),this.userConstructor){var e=this.constructorBody;e.body=e.body.concat(this.userConstructor.body.body),b.inherits(this.constructor,this.userConstructor),b.inherits(e,this.userConstructor.body)}this.pushDescriptors()},e.prototype.pushBody=function(){for(var e=this.path.get("body.body"),t=e,n=Array.isArray(t),r=0,t=n?t:(0,a.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i,s=o.node;if(o.isClassProperty())throw o.buildCodeFrameError("Missing class properties transform.");if(s.decorators)throw o.buildCodeFrameError("Method has decorators, put the decorator plugin before the classes one.");if(b.isClassMethod(s)){var u="constructor"===s.kind;if(u&&(o.traverse(w,this),!this.hasBareSuper&&this.isDerived))throw o.buildCodeFrameError("missing super() call in constructor");var l=new f.default({forceSuperMemoisation:u,methodPath:o,methodNode:s,objectRef:this.classRef,superRef:this.superName,isStatic:s.static,isLoose:this.isLoose,scope:this.scope,file:this.file},!0);l.replace(),u?this.pushConstructor(l,s,o):this.pushMethod(s,o)}}},e.prototype.clearDescriptors=function(){this.hasInstanceDescriptors=!1,this.hasStaticDescriptors=!1,this.instanceMutatorMap={},this.staticMutatorMap={}},e.prototype.pushDescriptors=function(){this.pushInherits();var e=this.body,t=void 0,n=void 0;if(this.hasInstanceDescriptors&&(t=v.toClassObject(this.instanceMutatorMap)),this.hasStaticDescriptors&&(n=v.toClassObject(this.staticMutatorMap)),t||n){t&&(t=v.toComputedObjectFromClass(t)),n&&(n=v.toComputedObjectFromClass(n));var r=b.nullLiteral(),i=[this.classRef,r,r,r,r];t&&(i[1]=t),n&&(i[2]=n),this.instanceInitializersId&&(i[3]=this.instanceInitializersId,e.unshift(this.buildObjectAssignment(this.instanceInitializersId))),this.staticInitializersId&&(i[4]=this.staticInitializersId,e.unshift(this.buildObjectAssignment(this.staticInitializersId)));for(var o=0,a=0;a=s.length)break;c=s[l++]}else{if(l=s.next(),l.done)break;c=l.value}var f=c;this.wrapSuperCall(f,i,o,n),r&&f.find(function(e){return e===t||(e.isLoop()||e.isConditional()?(r=!1,!0):void 0)})}for(var p=this.superThises,d=Array.isArray(p),h=0,p=d?p:(0,a.default)(p);;){var v;if(d){if(h>=p.length)break;v=p[h++]}else{if(h=p.next(),h.done)break;v=h.value}var m=v;m.replaceWith(o)}var g=function(t){return b.callExpression(e.file.addHelper("possibleConstructorReturn"),[o].concat(t||[]))},y=n.get("body");y.length&&!y.pop().isReturnStatement()&&n.pushContainer("body",b.returnStatement(r?o:g()));for(var x=this.superReturns,E=Array.isArray(x),w=0,x=E?x:(0,a.default)(x);;){var _;if(E){if(w>=x.length)break;_=x[w++]}else{if(w=x.next(),w.done)break;_=w.value}var C=_;if(C.node.argument){var S=C.scope.generateDeclaredUidIdentifier("ret");C.get("argument").replaceWithMultiple([b.assignmentExpression("=",S,C.node.argument),g(S)])}else C.get("argument").replaceWith(g())}}},e.prototype.pushMethod=function(e,t){var n=t?t.scope:this.scope;"method"===e.kind&&this._processMethod(e,n)||this.pushToMap(e,!1,null,n)},e.prototype._processMethod=function(){return!1},e.prototype.pushConstructor=function(e,t,n){this.bareSupers=e.bareSupers,this.superReturns=e.returns,n.scope.hasOwnBinding(this.classRef.name)&&n.scope.rename(this.classRef.name);var r=this.constructor;this.userConstructorPath=n,this.userConstructor=t,this.hasConstructor=!0,b.inheritsComments(r,t),r._ignoreUserWhitespace=!0,r.params=t.params,b.inherits(r.body,t.body),r.body.directives=t.body.directives,this._pushConstructor()},e.prototype._pushConstructor=function(){this.pushedConstructor||(this.pushedConstructor=!0,(this.hasInstanceDescriptors||this.hasStaticDescriptors)&&this.pushDescriptors(),this.body.push(this.constructor),this.pushInherits())},e.prototype.pushInherits=function(){this.isDerived&&!this.pushedInherits&&(this.pushedInherits=!0,this.body.unshift(b.expressionStatement(b.callExpression(this.file.addHelper("inherits"),[this.classRef,this.superName]))))},e}();t.default=_,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(9),o=r(i),a=n(2),s=r(a),u=n(10),l=r(u);t.default=function(e){var t=e.types,n=(0,l.default)(),r={"AssignmentExpression|UpdateExpression":function(e){if(!e.node[n]){e.node[n]=!0;var r=e.get(e.isAssignmentExpression()?"left":"argument");if(r.isIdentifier()){var i=r.node.name;if(this.scope.getBinding(i)===e.scope.getBinding(i)){var o=this.exports[i];if(o){var a=e.node,u=e.isUpdateExpression()&&!a.prefix;u&&("++"===a.operator?a=t.binaryExpression("+",a.argument,t.numericLiteral(1)):"--"===a.operator?a=t.binaryExpression("-",a.argument,t.numericLiteral(1)):u=!1);for(var l=o,c=Array.isArray(l),f=0,l=c?l:(0,s.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var d=p;a=this.buildCall(d,a).expression}u&&(a=t.sequenceExpression([a,e.node])),e.replaceWith(a)}}}}}};return{visitor:{CallExpression:function(e,n){if(e.node.callee.type===m){var r=n.contextIdent;e.replaceWith(t.callExpression(t.memberExpression(r,t.identifier("import")),e.node.arguments))}},ReferencedIdentifier:function(e,n){"__moduleName"!=e.node.name||e.scope.hasBinding("__moduleName")||e.replaceWith(t.memberExpression(n.contextIdent,t.identifier("id")))},Program:{enter:function(e,t){t.contextIdent=e.scope.generateUidIdentifier("context")},exit:function(e,n){function i(e,t){p[e]=p[e]||[],p[e].push(t)}function a(e,t,n){var r=void 0;d.forEach(function(t){t.key===e&&(r=t)}),r||d.push(r={key:e,imports:[],exports:[]}),r[t]=r[t].concat(n)}function u(e,n){return t.expressionStatement(t.callExpression(l,[t.stringLiteral(e),n]))}for(var l=e.scope.generateUidIdentifier("export"),c=n.contextIdent,p=(0,o.default)(null),d=[],m=[],g=[],y=[],b=[],x=[],E=e.get("body"),w=!0,A=E,_=Array.isArray(A),C=0,A=_?A:(0,s.default)(A);;){var S;if(_){if(C>=A.length)break;S=A[C++]}else{if(C=A.next(),C.done)break;S=C.value}var k=S;if(k.isExportDeclaration()&&(k=k.get("declaration")),k.isVariableDeclaration()&&"var"!==k.node.kind){w=!1;break}}for(var D=E,P=Array.isArray(D),O=0,D=P?D:(0,s.default)(D);;){var T;if(P){if(O>=D.length)break;T=D[O++]}else{if(O=D.next(),O.done)break;T=O.value}var M=T;if(w&&M.isFunctionDeclaration())m.push(M.node),x.push(M);else if(M.isImportDeclaration()){var R=M.node.source.value;a(R,"imports",M.node.specifiers);for(var N in M.getBindingIdentifiers())M.scope.removeBinding(N),b.push(t.identifier(N));M.remove()}else if(M.isExportAllDeclaration())a(M.node.source.value,"exports",M.node),M.remove();else if(M.isExportDefaultDeclaration()){var F=M.get("declaration");if(F.isClassDeclaration()||F.isFunctionDeclaration()){var I=F.node.id,L=[];I?(L.push(F.node),L.push(u("default",I)),i(I.name,"default")):L.push(u("default",t.toExpression(F.node))),!w||F.isClassDeclaration()?M.replaceWithMultiple(L):(m=m.concat(L),x.push(M))}else M.replaceWith(u("default",F.node))}else if(M.isExportNamedDeclaration()){var j=M.get("declaration");if(j.node){M.replaceWith(j);var B=[],U=void 0;if(M.isFunction()){var V=j.node,W=V.id.name;if(w)i(W,W),m.push(V),m.push(u(W,V.id)),x.push(M);else{var q;q={},q[W]=V.id,U=q}}else U=j.getBindingIdentifiers();for(var H in U)i(H,H),B.push(u(H,t.identifier(H)));M.insertAfter(B)}else{var G=M.node.specifiers;if(G&&G.length)if(M.node.source)a(M.node.source.value,"exports",G),M.remove();else{for(var z=[],Y=G,K=Array.isArray(Y),X=0,Y=K?Y:(0,s.default)(Y);;){var $;if(K){if(X>=Y.length)break;$=Y[X++]}else{if(X=Y.next(),X.done)break;$=X.value}var J=$;z.push(u(J.exported.name,J.local)),i(J.local.name,J.exported.name)}M.replaceWithMultiple(z)}}}}d.forEach(function(n){for(var r=[],i=e.scope.generateUidIdentifier(n.key),o=n.imports,a=Array.isArray(o),u=0,o=a?o:(0,s.default)(o);;){var c;if(a){if(u>=o.length)break;c=o[u++]}else{if(u=o.next(),u.done)break;c=u.value}var f=c;t.isImportNamespaceSpecifier(f)?r.push(t.expressionStatement(t.assignmentExpression("=",f.local,i))):t.isImportDefaultSpecifier(f)&&(f=t.importSpecifier(f.local,t.identifier("default"))),t.isImportSpecifier(f)&&r.push(t.expressionStatement(t.assignmentExpression("=",f.local,t.memberExpression(i,f.imported))))}if(n.exports.length){var p=e.scope.generateUidIdentifier("exportObj");r.push(t.variableDeclaration("var",[t.variableDeclarator(p,t.objectExpression([]))]));for(var d=n.exports,h=Array.isArray(d),m=0,d=h?d:(0,s.default)(d);;){var b;if(h){if(m>=d.length)break;b=d[m++]}else{if(m=d.next(),m.done)break;b=m.value}var x=b;t.isExportAllDeclaration(x)?r.push(v({KEY:e.scope.generateUidIdentifier("key"),EXPORT_OBJ:p,TARGET:i})):t.isExportSpecifier(x)&&r.push(t.expressionStatement(t.assignmentExpression("=",t.memberExpression(p,x.exported),t.memberExpression(i,x.local))))}r.push(t.expressionStatement(t.callExpression(l,[p])))}y.push(t.stringLiteral(n.key)),g.push(t.functionExpression(null,[i],t.blockStatement(r)))});var Q=this.getModuleName();Q&&(Q=t.stringLiteral(Q)),w&&(0,f.default)(e,function(e){return b.push(e)}),b.length&&m.unshift(t.variableDeclaration("var",b.map(function(e){return t.variableDeclarator(e)}))),e.traverse(r,{exports:p,buildCall:u,scope:e.scope});for(var Z=x,ee=Array.isArray(Z),te=0,Z=ee?Z:(0,s.default)(Z);;){var ne;if(ee){if(te>=Z.length)break;ne=Z[te++]}else{if(te=Z.next(),te.done)break;ne=te.value}var re=ne;re.remove()}e.node.body=[h({SYSTEM_REGISTER:t.memberExpression(t.identifier(n.opts.systemGlobal||"System"),t.identifier("register")),BEFORE_BODY:m,MODULE_NAME:Q,SETTERS:g,SOURCES:y,BODY:e.node.body,EXPORT_IDENTIFIER:l,CONTEXT_IDENTIFIER:c})]}}}}};var c=n(186),f=r(c),p=n(4),d=r(p),h=(0,d.default)('\n SYSTEM_REGISTER(MODULE_NAME, [SOURCES], function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) {\n "use strict";\n BEFORE_BODY;\n return {\n setters: [SETTERS],\n execute: function () {\n BODY;\n }\n };\n });\n'),v=(0,d.default)('\n for (var KEY in TARGET) {\n if (KEY !== "default" && KEY !== "__esModule") EXPORT_OBJ[KEY] = TARGET[KEY];\n }\n'),m="Import";e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){function t(e){if(e.isExpressionStatement()){var t=e.get("expression");if(!t.isCallExpression())return!1;if(!t.get("callee").isIdentifier({name:"define"}))return!1;var n=t.get("arguments");return!(3===n.length&&!n.shift().isStringLiteral())&&(2===n.length&&(!!n.shift().isArrayExpression()&&!!n.shift().isFunctionExpression()))}}var r=e.types;return{inherits:n(129),visitor:{Program:{exit:function(e,n){var o=e.get("body").pop();if(t(o)){var a=o.node.expression,c=a.arguments,f=3===c.length?c.shift():null,p=a.arguments[0],d=a.arguments[1],h=n.opts.globals||{},v=p.elements.map(function(e){return"module"===e.value||"exports"===e.value?r.identifier(e.value):r.callExpression(r.identifier("require"),[e])}),m=p.elements.map(function(e){if("module"===e.value)return r.identifier("mod");if("exports"===e.value)return r.memberExpression(r.identifier("mod"),r.identifier("exports"));var t=void 0;if(n.opts.exactGlobals){var o=h[e.value];t=o?o.split(".").reduce(function(e,t){return r.memberExpression(e,r.identifier(t))},r.identifier("global")):r.memberExpression(r.identifier("global"),r.identifier(r.toIdentifier(e.value)))}else{var a=(0,i.basename)(e.value,(0,i.extname)(e.value)),s=h[a]||a;t=r.memberExpression(r.identifier("global"),r.identifier(r.toIdentifier(s)))}return t}),g=f?f.value:this.file.opts.basename,y=r.memberExpression(r.identifier("global"),r.identifier(r.toIdentifier(g))),b=null;if(n.opts.exactGlobals){var x=h[g];if(x){b=[];var E=x.split(".");y=E.slice(1).reduce(function(e,t){return b.push(s({GLOBAL_REFERENCE:e})),r.memberExpression(e,r.identifier(t))},r.memberExpression(r.identifier("global"),r.identifier(E[0])))}}var w=u({BROWSER_ARGUMENTS:m,PREREQUISITE_ASSIGNMENTS:b,GLOBAL_TO_ASSIGN:y});o.replaceWith(l({MODULE_NAME:f,AMD_ARGUMENTS:p,COMMON_ARGUMENTS:v,GLOBAL_EXPORT:w,FUNC:d}))}}}}}};var i=n(17),o=n(4),a=r(o),s=(0,a.default)("\n GLOBAL_REFERENCE = GLOBAL_REFERENCE || {}\n"),u=(0,a.default)("\n var mod = { exports: {} };\n factory(BROWSER_ARGUMENTS);\n PREREQUISITE_ASSIGNMENTS\n GLOBAL_TO_ASSIGN = mod.exports;\n"),l=(0,a.default)('\n (function (global, factory) {\n if (typeof define === "function" && define.amd) {\n define(MODULE_NAME, AMD_ARGUMENTS, factory);\n } else if (typeof exports !== "undefined") {\n factory(COMMON_ARGUMENTS);\n } else {\n GLOBAL_EXPORT\n }\n })(this, FUNC);\n');e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){function t(e,n,i){var o=e.specifiers[0];if(r.isExportNamespaceSpecifier(o)||r.isExportDefaultSpecifier(o)){var a=e.specifiers.shift(),s=i.generateUidIdentifier(a.exported.name),u=void 0;u=r.isExportNamespaceSpecifier(a)?r.importNamespaceSpecifier(s):r.importDefaultSpecifier(s),n.push(r.importDeclaration([u],e.source)),n.push(r.exportNamedDeclaration(null,[r.exportSpecifier(s,a.exported)])),t(e,n,i)}}var r=e.types;return{inherits:n(196),visitor:{ExportNamedDeclaration:function(e){var n=e.node,r=e.scope,i=[];t(n,i,r),i.length&&(n.specifiers.length>=1&&i.push(n),e.replaceWithMultiple(i))}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(2),o=r(i);t.default=function(e){var t=e.types,r="@flow";return{inherits:n(124),visitor:{Program:function(e,t){for(var n=t.file.ast.comments,i=n,a=Array.isArray(i),s=0,i=a?i:(0,o.default)(i);;){var u;if(a){if(s>=i.length)break;u=i[s++]}else{if(s=i.next(),s.done)break;u=s.value}var l=u;l.value.indexOf(r)>=0&&(l.value=l.value.replace(r,""),l.value.replace(/\*/g,"").trim()||(l.ignore=!0))}},Flow:function(e){e.remove()},ClassProperty:function(e){e.node.variance=null,e.node.typeAnnotation=null,e.node.value||e.remove()},Class:function(e){e.node.implements=null,e.get("body.body").forEach(function(e){e.isClassProperty()&&(e.node.typeAnnotation=null,e.node.value||e.remove())})},AssignmentPattern:function(e){var t=e.node;t.left.optional=!1},Function:function(e){for(var t=e.node,n=0;n=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var a=i;if(s.isSpreadProperty(a))return!0}return!1}function i(e,t,n){for(var r=t.pop(),i=[],a=t,u=Array.isArray(a),l=0,a=u?a:(0,o.default)(a);;){var c;if(u){if(l>=a.length)break;c=a[l++]}else{if(l=a.next(),l.done)break;c=l.value}var f=c,p=f.key;s.isIdentifier(p)&&!f.computed&&(p=s.stringLiteral(f.key.name)),i.push(p)}return[r.argument,s.callExpression(e.addHelper("objectWithoutProperties"),[n,s.arrayExpression(i)])]}function a(e,n,r,i){if(n.isAssignmentPattern())return void a(e,n.get("left"),r,i);if(n.isObjectPattern()&&t(n)){var o=e.scope.generateUidIdentifier("ref"),u=s.variableDeclaration("let",[s.variableDeclarator(n.node,o)]);u._blockHoist=r?i-r:1,e.ensureBlock(),e.get("body").unshiftContainer("body",u),n.replaceWith(o)}}var s=e.types;return{inherits:n(198),visitor:{Function:function(e){for(var t=e.get("params"),n=0;n1&&!s.isIdentifier(this.originalPath.node.init)){var r=e.scope.generateUidIdentifierBasedOnNode(this.originalPath.node.init,"ref");return this.originalPath.insertBefore(s.variableDeclarator(r,this.originalPath.node.init)),void this.originalPath.replaceWith(s.variableDeclarator(this.originalPath.node.id,r))}var o=this.originalPath.node.init;e.findParent(function(e){if(e.isObjectProperty())o=s.memberExpression(o,s.identifier(e.node.key.name));else if(e.isVariableDeclarator())return!0});var a=i(t,e.parentPath.node.properties,o),u=a[0],l=a[1];n.insertAfter(s.variableDeclarator(u,l)),n=n.getSibling(n.key+1),0===e.parentPath.node.properties.length&&e.findParent(function(e){return e.isObjectProperty()||e.isVariableDeclarator()}).remove()}},{originalPath:e})}},ExportNamedDeclaration:function(e){var n=e.get("declaration");if(n.isVariableDeclaration()&&t(n)){var r=[];for(var i in e.getOuterBindingIdentifiers(e)){var o=s.identifier(i);r.push(s.exportSpecifier(o,o))}e.replaceWith(n.node),e.insertAfter(s.exportNamedDeclaration(null,r))}},CatchClause:function(e){var t=e.get("param");a(t.parentPath,t)},AssignmentExpression:function(e,n){var r=e.get("left");if(r.isObjectPattern()&&t(r)){var o=[],a=void 0;(e.isCompletionRecord()||e.parentPath.isExpressionStatement())&&(a=e.scope.generateUidIdentifierBasedOnNode(e.node.right,"ref"),o.push(s.variableDeclaration("var",[s.variableDeclarator(a,e.node.right)])));var u=i(n,e.node.left.properties,a),l=u[0],c=u[1],f=s.clone(e.node);f.right=a,o.push(s.expressionStatement(f)),o.push(s.toStatement(s.assignmentExpression("=",l,c))),a&&o.push(s.expressionStatement(a)),e.replaceWithMultiple(o)}},ForXStatement:function(e){var n=e.node,r=e.scope,i=e.get("left"),o=n.left;if(s.isObjectPattern(o)&&t(i)){var a=r.generateUidIdentifier("ref");return n.left=s.variableDeclaration("var",[s.variableDeclarator(a)]),e.ensureBlock(),void n.body.body.unshift(s.variableDeclaration("var",[s.variableDeclarator(o,a)]))}if(s.isVariableDeclaration(o)){var u=o.declarations[0].id;if(s.isObjectPattern(u)){var l=r.generateUidIdentifier("ref");n.left=s.variableDeclaration(o.kind,[s.variableDeclarator(l,null)]),e.ensureBlock(),n.body.body.unshift(s.variableDeclaration(n.left.kind,[s.variableDeclarator(u,l)]))}}},ObjectExpression:function(e,t){function n(){u.length&&(a.push(s.objectExpression(u)),u=[])}if(r(e.node)){var i=t.opts.useBuiltIns||!1;if("boolean"!=typeof i)throw new Error("transform-object-rest-spread currently only accepts a boolean option for useBuiltIns (defaults to false)");for(var a=[],u=[],l=e.node.properties,c=Array.isArray(l),f=0,l=c?l:(0,o.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var d=p;s.isSpreadProperty(d)?(n(),a.push(d.argument)):u.push(d)}n(),s.isObjectExpression(a[0])||a.unshift(s.objectExpression([]));var h=i?s.memberExpression(s.identifier("Object"),s.identifier("assign")):t.addHelper("extends");e.replaceWith(s.callExpression(h,a))}}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){function t(e,t){for(var n=t.arguments[0].properties,i=!0,o=0;o=s.length)break;c=s[l++]}else{if(l=s.next(),l.done)break;c=l.value}var f=c,p=n.exec(f.value);if(p){if(a=p[1],"React.DOM"===a)throw i.buildCodeFrameError(f,"The @jsx React.DOM pragma has been deprecated as of React 0.12");break}}r.set("jsxIdentifier",function(){return a.split(".").map(function(e){return t.identifier(e)}).reduce(function(e,n){return t.memberExpression(e,n)})})},{inherits:s.default,visitor:r}};var a=n(125),s=r(a),u=n(347),l=r(u);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(2),a=i(o);t.default=function(){return{visitor:{Program:function(e,t){if(t.opts.strict!==!1&&t.opts.strictMode!==!1){for(var n=e.node,r=n.directives,i=Array.isArray(r),o=0,r=i?r:(0,a.default)(r);;){var s;if(i){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}var l=s;if("use strict"===l.value.value)return}e.unshiftContainer("directives",u.directive(u.directiveLiteral("use strict")))}}}}};var s=n(1),u=r(s);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=["commonjs","amd","umd","systemjs"],r=!1,i="commonjs",o=!1;if(void 0!==t&&(void 0!==t.loose&&(r=t.loose),void 0!==t.modules&&(i=t.modules),void 0!==t.spec&&(o=t.spec)),"boolean"!=typeof r)throw new Error("Preset es2015 'loose' option must be a boolean.");if("boolean"!=typeof o)throw new Error("Preset es2015 'spec' option must be a boolean.");if(i!==!1&&n.indexOf(i)===-1)throw new Error("Preset es2015 'modules' option must be 'false' to indicate no modules\nor a module type which be be one of: 'commonjs' (default), 'amd', 'umd', 'systemjs'");var s={loose:r};return{plugins:[[a.default,{loose:r,spec:o}],u.default,c.default,[p.default,{spec:o}],h.default,[m.default,s],y.default,x.default,w.default,[_.default,s],[S.default,s],D.default,O.default,M.default,[N.default,s],I.default,[j.default,s],U.default,W.default,"commonjs"===i&&[H.default,s],"systemjs"===i&&[z.default,s],"amd"===i&&[K.default,s],"umd"===i&&[$.default,s],[Q.default,{async:!1,asyncGenerators:!1}]].filter(Boolean)}}t.__esModule=!0;var o=n(81),a=r(o),s=n(74),u=r(s),l=n(73),c=r(l),f=n(66),p=r(f),d=n(67),h=r(d),v=n(69),m=r(v),g=n(76),y=r(g),b=n(78),x=r(b),E=n(128),w=r(E),A=n(70),_=r(A),C=n(72),S=r(C),k=n(80),D=r(k),P=n(83),O=r(P),T=n(64),M=r(T),R=n(79),N=r(R),F=n(77),I=r(F),L=n(71),j=r(L),B=n(68),U=r(B),V=n(82),W=r(V),q=n(75),H=r(q),G=n(204),z=r(G),Y=n(129),K=r(Y),X=n(205),$=r(X),J=n(84),Q=r(J),Z=i({});t.default=Z,Object.defineProperty(Z,"buildPreset",{configurable:!0,writable:!0,enumerable:!1,value:i}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(130),o=r(i);t.default={plugins:[o.default]},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(126),o=r(i),a=n(127),s=r(a);t.default={plugins:[o.default,s.default]},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(217),o=r(i),a=n(199),s=r(a),u=n(206),l=r(u);t.default={presets:[o.default],plugins:[s.default,l.default]},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(218),o=r(i),a=n(200),s=r(a),u=n(201),l=r(u),c=n(320),f=r(c);t.default={presets:[o.default],plugins:[f.default,s.default,l.default]},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(126),o=r(i),a=n(127),s=r(a),u=n(130),l=r(u),c=n(209),f=r(c),p=n(323),d=r(p);t.default={plugins:[o.default,s.default,l.default,d.default,f.default]},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(3),o=r(i),a=function e(t,n){(0,o.default)(this,e),this.file=t,this.options=n};t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0,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;var i=n(1),o=r(i);t.ReferencedIdentifier={types:["Identifier","JSXIdentifier"],checkPath:function(e,t){var n=e.node,r=e.parent;if(!o.isIdentifier(n,t)&&!o.isJSXMemberExpression(r,t)){if(!o.isJSXIdentifier(n,t))return!1;if(i.react.isCompatTag(n.name))return!1}return o.isReferenced(n,r)}},t.ReferencedMemberExpression={types:["MemberExpression"],checkPath:function(e){var t=e.node,n=e.parent;return o.isMemberExpression(t)&&o.isReferenced(t,n)}},t.BindingIdentifier={types:["Identifier"],checkPath:function(e){var t=e.node,n=e.parent;return o.isIdentifier(t)&&o.isBinding(t,n)}},t.Statement={types:["Statement"],checkPath:function(e){var t=e.node,n=e.parent;if(o.isStatement(t)){if(o.isVariableDeclaration(t)){if(o.isForXStatement(n,{left:t}))return!1;if(o.isForStatement(n,{init:t}))return!1}return!0}return!1}},t.Expression={types:["Expression"],checkPath:function(e){return e.isIdentifier()?e.isReferencedIdentifier():o.isExpression(e.node)}},t.Scope={types:["Scopable"],checkPath:function(e){return o.isScope(e.node,e.parent)}},t.Referenced={checkPath:function(e){return o.isReferenced(e.node,e.parent)}},t.BlockScoped={checkPath:function(e){return o.isBlockScoped(e.node)}},t.Var={types:["VariableDeclaration"],checkPath:function(e){return o.isVar(e.node)}},t.User={checkPath:function(e){return e.node&&!!e.node.loc}},t.Generated={checkPath:function(e){return!e.isUser()}},t.Pure={checkPath:function(e,t){return e.scope.isPure(e.node,t)}},t.Flow={types:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],checkPath:function(e){var t=e.node;return!!o.isFlow(t)||(o.isImportDeclaration(t)?"type"===t.importKind||"typeof"===t.importKind:o.isExportDeclaration(t)?"type"===t.exportKind:!!o.isImportSpecifier(t)&&("type"===t.importKind||"typeof"===t.importKind))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(3),o=r(i),a=function(){function e(t){var n=t.existing,r=t.identifier,i=t.scope,a=t.path,s=t.kind;(0,o.default)(this,e),this.identifier=r,this.scope=i,this.path=a,this.kind=s,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.clearValue(),n&&(this.constantViolations=[].concat(n.path,n.constantViolations,this.constantViolations))}return e.prototype.deoptValue=function(){this.clearValue(),this.hasDeoptedValue=!0},e.prototype.setValue=function(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)},e.prototype.clearValue=function(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null},e.prototype.reassign=function(e){this.constant=!1,this.constantViolations.indexOf(e)===-1&&this.constantViolations.push(e)},e.prototype.reference=function(e){this.referencePaths.indexOf(e)===-1&&(this.referenced=!0,this.references++,this.referencePaths.push(e))},e.prototype.dereference=function(){this.references--,this.referenced=!!this.references},e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){for(var r=[].concat(e),i=(0,u.default)(null);r.length;){var o=r.shift();if(o){var a=c.getBindingIdentifiers.keys[o.type];if(c.isIdentifier(o))if(t){var s=i[o.name]=i[o.name]||[];s.push(o)}else i[o.name]=o;else if(c.isExportDeclaration(o))c.isDeclaration(o.declaration)&&r.push(o.declaration);else{if(n){if(c.isFunctionDeclaration(o)){r.push(o.id);continue}if(c.isFunctionExpression(o))continue}if(a)for(var l=0;ll;)for(var p,d=s(arguments[l++]),h=c?r(d).concat(c(d)):r(d),v=h.length,m=0;v>m;)f.call(d,p=h[m++])&&(n[p]=d[p]);return n}:u},function(e,t,n){"use strict";var r=n(90),i=n(91),o=n(37),a=n(150),s=n(27),u=n(226),l=Object.getOwnPropertyDescriptor;t.f=n(20)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r=n(232),i=n(139).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(27),i=n(37),o=n(417)(!1),a=n(146)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){"use strict";var r=n(223),i=n(12)("iterator"),o=n(55);e.exports=n(5).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){(function(r){"use strict";function i(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}}function a(){return"object"===("undefined"==typeof console?"undefined":c(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof r&&"env"in r&&(e=r.env.DEBUG),e}function l(){try{return window.localStorage}catch(e){}}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t=e.exports=n(449),t.log=a,t.formatArgs=o,t.save=s,t.load=u,t.useColors=i,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:l(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(8))},function(e,t){"use strict";!function(){function t(e){return 48<=e&&e<=57}function n(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function r(e){return e>=48&&e<=55}function i(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&d.indexOf(e)>=0}function o(e){return 10===e||13===e||8232===e||8233===e}function a(e){if(e<=65535)return String.fromCharCode(e);var t=String.fromCharCode(Math.floor((e-65536)/1024)+55296),n=String.fromCharCode((e-65536)%1024+56320);return t+n}function s(e){return e<128?h[e]:p.NonAsciiIdentifierStart.test(a(e))}function u(e){return e<128?v[e]:p.NonAsciiIdentifierPart.test(a(e))}function l(e){return e<128?h[e]:f.NonAsciiIdentifierStart.test(a(e))}function c(e){return e<128?v[e]:f.NonAsciiIdentifierPart.test(a(e))}var f,p,d,h,v,m;for(p={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]/},f={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]/},d=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],h=new Array(128),m=0;m<128;++m)h[m]=m>=97&&m<=122||m>=65&&m<=90||36===m||95===m;for(v=new Array(128),m=0;m<128;++m)v[m]=m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||36===m||95===m;e.exports={isDecimalDigit:t,isHexDigit:n,isOctalDigit:r,isWhiteSpace:i,isLineTerminator:o,isIdentifierStartES5:s,isIdentifierPartES5:u,isIdentifierStartES6:l,isIdentifierPartES6:c}}()},function(e,t,n){"use strict";var r=n(38),i=n(15),o=r(i,"Set");e.exports=o},function(e,t,n){"use strict";function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t-1?s[u?t[l]:l]:void 0}}var i=n(59),o=n(24),a=n(31);e.exports=r},function(e,t,n){"use strict";var r=n(38),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r,l,c){var f=n&s,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var v=-1,m=!0,g=n&u?new i:void 0;for(c.set(e,t),c.set(t,e);++vr&&(t[r]=t[n]),++r);return t.length=r,t},t.makeAccessor=u},function(e,t,n){var r;(function(e,i){"use strict";var o="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};!function(a){var s="object"==o(t)&&t,u="object"==o(e)&&e&&e.exports==s&&e,l="object"==("undefined"==typeof i?"undefined":o(i))&&i;l.global!==l&&l.window!==l||(a=l);var c={rangeOrder:"A range’s `stop` value must be greater than or equal to the `start` value.",codePointRange:"Invalid code point value. Code points range from U+000000 to U+10FFFF."},f=55296,p=56319,d=56320,h=57343,v=/\\x00([^0123456789]|$)/g,m={},g=m.hasOwnProperty,y=function(e,t){var n;for(n in t)g.call(t,n)&&(e[n]=t[n]);return e},b=function(e,t){for(var n=-1,r=e.length;++n=n&&tn)return e;if(t<=r&&n>=i)e.splice(o,2);else{if(t>=r&&n=r&&t<=i)e[o+1]=t;else if(n>=r&&n<=i)return e[o]=n+1,e;o+=2}}return e},O=function(e,t){var n,r,i=0,o=null,a=e.length;if(t<0||t>1114111)throw RangeError(c.codePointRange);for(;i=n&&tt)return e.splice(null!=o?o+2:0,0,t,t+1),e;if(t==r)return t+1==e[i+2]?(e.splice(i,4,n,e[i+3]),e):(e[i+1]=t+1,e);o=i,i+=2}return e.push(t,t+1),e},T=function(e,t){for(var n,r,i=0,o=e.slice(),a=t.length;i1114111||n<0||n>1114111)throw RangeError(c.codePointRange);for(var r,i,o=0,a=!1,s=e.length;on)return e;r>=t&&r<=n&&(i>t&&i-1<=n?(e.splice(o,2),o-=2):(e.splice(o-1,2),o-=2))}else{if(r==n+1)return e[o]=t,e;if(r>n)return e.splice(o,0,t,n+1),e;if(t>=r&&t=r&&t=i&&(e[o]=t,e[o+1]=n+1,a=!0)}o+=2}return a||e.push(t,n+1),e},N=function(e,t){var n=0,r=e.length,i=e[n],o=e[r-1];if(r>=2&&(to))return!1;for(;n=i&&t=40&&e<=43||45==e||46==e||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+W(e):e>=32&&e<=126?W(e):e<=255?"\\x"+_(C(e),2):"\\u"+_(C(e),4)},H=function(e){return e<=65535?q(e):"\\u{"+e.toString(16).toUpperCase()+"}"},G=function(e){var t,n=e.length,r=e.charCodeAt(0);return r>=f&&r<=p&&n>1?(t=e.charCodeAt(1),1024*(r-f)+t-d+65536):r},z=function(e){var t,n,r="",i=0,o=e.length;if(L(e))return q(e[0]);for(;i=f&&n<=p&&(o.push(t,f),r.push(f,n+1)),n>=d&&n<=h&&(o.push(t,f),r.push(f,p+1),i.push(d,n+1)),n>h&&(o.push(t,f),r.push(f,p+1),i.push(d,h+1),n<=65535?o.push(h+1,n+1):(o.push(h+1,65536),a.push(65536,n+1)))):t>=f&&t<=p?(n>=f&&n<=p&&r.push(t,n+1),n>=d&&n<=h&&(r.push(t,p+1),i.push(d,n+1)),n>h&&(r.push(t,p+1),i.push(d,h+1),n<=65535?o.push(h+1,n+1):(o.push(h+1,65536),a.push(65536,n+1)))):t>=d&&t<=h?(n>=d&&n<=h&&i.push(t,n+1),n>h&&(i.push(t,h+1),n<=65535?o.push(h+1,n+1):(o.push(h+1,65536),a.push(65536,n+1)))):t>h&&t<=65535?n<=65535?o.push(t,n+1):(o.push(t,65536),a.push(65536,n+1)):a.push(t,n+1),s+=2;return{loneHighSurrogates:r,loneLowSurrogates:i,bmp:o,astral:a}},X=function(e){for(var t,n,r,i,o,a,s=[],u=[],l=!1,c=-1,f=e.length;++c1&&(t=S.call(arguments)),this instanceof e?(this.data=[],t?this.add(t):this):(new e).add(t)};ee.version="1.3.2";var te=ee.prototype;y(te,{add:function(e){var t=this;return null==e?t:e instanceof ee?(t.data=T(t.data,e.data),t):(arguments.length>1&&(e=S.call(arguments)),E(e)?(b(e,function(e){t.add(e)}),t):(t.data=O(t.data,w(e)?e:G(e)),t))},remove:function(e){var t=this;return null==e?t:e instanceof ee?(t.data=M(t.data,e.data),t):(arguments.length>1&&(e=S.call(arguments)),E(e)?(b(e,function(e){t.remove(e)}),t):(t.data=D(t.data,w(e)?e:G(e)),t))},addRange:function(e,t){var n=this;return n.data=R(n.data,w(e)?e:G(e),w(t)?t:G(t)),n},removeRange:function(e,t){var n=this,r=w(e)?e:G(e),i=w(t)?t:G(t);return n.data=P(n.data,r,i),n},intersection:function(e){var t=this,n=e instanceof ee?j(e.data):e;return t.data=F(t.data,n),t},contains:function(e){return N(this.data,w(e)?e:G(e))},clone:function(){var e=new ee;return e.data=this.data.slice(0),e},toString:function(e){var t=Z(this.data,!!e&&e.bmpOnly,!!e&&e.hasUnicodeFlag);return t?t.replace(v,"\\0$1"):"[]"},toRegExp:function(e){var t=this.toString(e&&e.indexOf("u")!=-1?{hasUnicodeFlag:!0}:null);return RegExp(t,e||"")},valueOf:function(){return j(this.data)}}),te.toArray=te.valueOf,"object"==o(n(48))&&n(48)?(r=function(){return ee}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))):s&&!s.nodeType?u?u.exports=ee:s.regenerate=ee:a.regenerate=ee}(void 0)}).call(t,n(39)(e),function(){return this}())},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){p.default.ok(this instanceof o),h.assertIdentifier(e),this.nextTempId=0,this.contextId=e,this.listing=[],this.marked=[!0],this.finalLoc=a(),this.tryEntries=[],this.leapManager=new m.LeapManager(this)}function a(){return h.numericLiteral(-1)}function s(e){return new Error("all declarations should have been transformed into assignments before the Exploder began its work: "+(0,c.default)(e))}function u(e){var t=e.type;return"normal"===t?!E.call(e,"target"):"break"===t||"continue"===t?!E.call(e,"value")&&h.isLiteral(e.target):("return"===t||"throw"===t)&&(E.call(e,"value")&&!E.call(e,"target"))}var l=n(34),c=i(l),f=n(62),p=i(f),d=n(1),h=r(d),v=n(598),m=r(v),g=n(599),y=r(g),b=n(279),x=r(b),E=Object.prototype.hasOwnProperty,w=o.prototype;t.Emitter=o,w.mark=function(e){h.assertLiteral(e);var t=this.listing.length;return e.value===-1?e.value=t:p.default.strictEqual(e.value,t),this.marked[t]=!0,e},w.emit=function(e){h.isExpression(e)&&(e=h.expressionStatement(e)),h.assertStatement(e),this.listing.push(e)},w.emitAssign=function(e,t){return this.emit(this.assign(e,t)),e},w.assign=function(e,t){return h.expressionStatement(h.assignmentExpression("=",e,t))},w.contextProperty=function(e,t){return h.memberExpression(this.contextId,t?h.stringLiteral(e):h.identifier(e),!!t)},w.stop=function(e){e&&this.setReturnValue(e),this.jump(this.finalLoc)},w.setReturnValue=function(e){h.assertExpression(e.value),this.emitAssign(this.contextProperty("rval"),this.explodeExpression(e))},w.clearPendingException=function(e,t){h.assertLiteral(e);var n=h.callExpression(this.contextProperty("catch",!0),[e]);t?this.emitAssign(t,n):this.emit(n)},w.jump=function(e){this.emitAssign(this.contextProperty("next"),e),this.emit(h.breakStatement())},w.jumpIf=function(e,t){h.assertExpression(e),h.assertLiteral(t),this.emit(h.ifStatement(e,h.blockStatement([this.assign(this.contextProperty("next"),t),h.breakStatement()])))},w.jumpIfNot=function(e,t){h.assertExpression(e),h.assertLiteral(t);var n=void 0;n=h.isUnaryExpression(e)&&"!"===e.operator?e.argument:h.unaryExpression("!",e),this.emit(h.ifStatement(n,h.blockStatement([this.assign(this.contextProperty("next"),t),h.breakStatement()])))},w.makeTempVar=function(){return this.contextProperty("t"+this.nextTempId++)},w.getContextFunction=function(e){return h.functionExpression(e||null,[this.contextId],h.blockStatement([this.getDispatchLoop()]),!1,!1)},w.getDispatchLoop=function(){var e=this,t=[],n=void 0,r=!1;return e.listing.forEach(function(i,o){e.marked.hasOwnProperty(o)&&(t.push(h.switchCase(h.numericLiteral(o),n=[])),r=!1),r||(n.push(i),h.isCompletionStatement(i)&&(r=!0))}),this.finalLoc.value=this.listing.length,t.push(h.switchCase(this.finalLoc,[]),h.switchCase(h.stringLiteral("end"),[h.returnStatement(h.callExpression(this.contextProperty("stop"),[]))])),h.whileStatement(h.numericLiteral(1),h.switchStatement(h.assignmentExpression("=",this.contextProperty("prev"),this.contextProperty("next")),t))},w.getTryLocsList=function(){if(0===this.tryEntries.length)return null;var e=0;return h.arrayExpression(this.tryEntries.map(function(t){var n=t.firstLoc.value;p.default.ok(n>=e,"try entries out of order"),e=n;var r=t.catchEntry,i=t.finallyEntry,o=[t.firstLoc,r?r.firstLoc:null];return i&&(o[2]=i.firstLoc,o[3]=i.afterLoc),h.arrayExpression(o)}))},w.explode=function(e,t){var n=e.node,r=this;if(h.assertNode(n),h.isDeclaration(n))throw s(n);if(h.isStatement(n))return r.explodeStatement(e);if(h.isExpression(n))return r.explodeExpression(e,t);switch(n.type){case"Program":return e.get("body").map(r.explodeStatement,r);case"VariableDeclarator":throw s(n);case"Property":case"SwitchCase":case"CatchClause":throw new Error(n.type+" nodes should be handled by their parents");default:throw new Error("unknown Node of type "+(0,c.default)(n.type))}},w.explodeStatement=function(e,t){var n=e.node,r=this,i=void 0,o=void 0,s=void 0;if(h.assertStatement(n),t?h.assertIdentifier(t):t=null,h.isBlockStatement(n))return void e.get("body").forEach(function(e){r.explodeStatement(e)});if(!y.containsLeap(n))return void r.emit(n);switch(n.type){case"ExpressionStatement":r.explodeExpression(e.get("expression"),!0);break;case"LabeledStatement":o=a(),r.leapManager.withEntry(new m.LabeledEntry(o,n.label),function(){r.explodeStatement(e.get("body"),n.label)}),r.mark(o);break;case"WhileStatement":i=a(),o=a(),r.mark(i),r.jumpIfNot(r.explodeExpression(e.get("test")),o),r.leapManager.withEntry(new m.LoopEntry(o,i,t),function(){r.explodeStatement(e.get("body"))}),r.jump(i),r.mark(o);break;case"DoWhileStatement":var u=a(),l=a();o=a(),r.mark(u),r.leapManager.withEntry(new m.LoopEntry(o,l,t),function(){r.explode(e.get("body"))}),r.mark(l),r.jumpIf(r.explodeExpression(e.get("test")),u),r.mark(o);break;case"ForStatement":s=a();var f=a();o=a(),n.init&&r.explode(e.get("init"),!0),r.mark(s),n.test&&r.jumpIfNot(r.explodeExpression(e.get("test")),o),r.leapManager.withEntry(new m.LoopEntry(o,f,t),function(){r.explodeStatement(e.get("body"))}),r.mark(f),n.update&&r.explode(e.get("update"),!0),r.jump(s),r.mark(o);break;case"TypeCastExpression":return r.explodeExpression(e.get("expression"));case"ForInStatement":s=a(),o=a();var d=r.makeTempVar();r.emitAssign(d,h.callExpression(x.runtimeProperty("keys"),[r.explodeExpression(e.get("right"))])),r.mark(s);var v=r.makeTempVar();r.jumpIf(h.memberExpression(h.assignmentExpression("=",v,h.callExpression(d,[])),h.identifier("done"),!1),o),r.emitAssign(n.left,h.memberExpression(v,h.identifier("value"),!1)),r.leapManager.withEntry(new m.LoopEntry(o,s,t),function(){r.explodeStatement(e.get("body"))}),r.jump(s),r.mark(o);break;case"BreakStatement":r.emitAbruptCompletion({type:"break",target:r.leapManager.getBreakLoc(n.label)});break;case"ContinueStatement":r.emitAbruptCompletion({type:"continue",target:r.leapManager.getContinueLoc(n.label)});break;case"SwitchStatement":var g=r.emitAssign(r.makeTempVar(),r.explodeExpression(e.get("discriminant")));o=a();for(var b=a(),E=b,w=[],_=n.cases||[],C=_.length-1;C>=0;--C){var S=_[C];h.assertSwitchCase(S),S.test?E=h.conditionalExpression(h.binaryExpression("===",g,S.test),w[C]=a(),E):w[C]=b}var k=e.get("discriminant");k.replaceWith(E),r.jump(r.explodeExpression(k)),r.leapManager.withEntry(new m.SwitchEntry(o),function(){e.get("cases").forEach(function(e){var t=e.key;r.mark(w[t]),e.get("consequent").forEach(function(e){r.explodeStatement(e)})})}),r.mark(o),b.value===-1&&(r.mark(b),p.default.strictEqual(o.value,b.value));break;case"IfStatement":var D=n.alternate&&a();o=a(),r.jumpIfNot(r.explodeExpression(e.get("test")),D||o),r.explodeStatement(e.get("consequent")),D&&(r.jump(o),r.mark(D),r.explodeStatement(e.get("alternate"))),r.mark(o);break;case"ReturnStatement":r.emitAbruptCompletion({type:"return",value:r.explodeExpression(e.get("argument"))});break;case"WithStatement":throw new Error("WithStatement not supported in generator functions.");case"TryStatement":o=a();var P=n.handler,O=P&&a(),T=O&&new m.CatchEntry(O,P.param),M=n.finalizer&&a(),R=M&&new m.FinallyEntry(M,o),N=new m.TryEntry(r.getUnmarkedCurrentLoc(),T,R);r.tryEntries.push(N),r.updateContextPrevLoc(N.firstLoc),r.leapManager.withEntry(N,function(){if(r.explodeStatement(e.get("block")),O){M?r.jump(M):r.jump(o),r.updateContextPrevLoc(r.mark(O));var t=e.get("handler.body"),n=r.makeTempVar();r.clearPendingException(N.firstLoc,n),t.traverse(A,{safeParam:n,catchParamName:P.param.name}),r.leapManager.withEntry(T,function(){r.explodeStatement(t)})}M&&(r.updateContextPrevLoc(r.mark(M)),r.leapManager.withEntry(R,function(){r.explodeStatement(e.get("finalizer"))}),r.emit(h.returnStatement(h.callExpression(r.contextProperty("finish"),[R.firstLoc]))))}),r.mark(o);break;case"ThrowStatement":r.emit(h.throwStatement(r.explodeExpression(e.get("argument"))));break;default:throw new Error("unknown Statement of type "+(0,c.default)(n.type))}};var A={Identifier:function(e,t){e.node.name===t.catchParamName&&x.isReference(e)&&e.replaceWith(t.safeParam)},Scope:function(e,t){e.scope.hasOwnBinding(t.catchParamName)&&e.skip()}};w.emitAbruptCompletion=function(e){u(e)||p.default.ok(!1,"invalid completion record: "+(0,c.default)(e)),p.default.notStrictEqual(e.type,"normal","normal completions are not abrupt");var t=[h.stringLiteral(e.type)];"break"===e.type||"continue"===e.type?(h.assertLiteral(e.target),t[1]=e.target):"return"!==e.type&&"throw"!==e.type||e.value&&(h.assertExpression(e.value),t[1]=e.value),this.emit(h.returnStatement(h.callExpression(this.contextProperty("abrupt"),t)))},w.getUnmarkedCurrentLoc=function(){return h.numericLiteral(this.listing.length)},w.updateContextPrevLoc=function(e){e?(h.assertLiteral(e),e.value===-1?e.value=this.listing.length:p.default.strictEqual(e.value,this.listing.length)):e=this.getUnmarkedCurrentLoc(),this.emitAssign(this.contextProperty("prev"),e)},w.explodeExpression=function(e,t){function n(e){return h.assertExpression(e),t?void o.emit(e):e}function r(e,t,n){p.default.ok(!n||!e,"Ignoring the result of a child expression but forcing it to be assigned to a temporary variable?");var r=o.explodeExpression(t,n);return n||(e||l&&!h.isLiteral(r))&&(r=o.emitAssign(e||o.makeTempVar(),r)),r}var i=e.node;if(!i)return i;h.assertExpression(i);var o=this,s=void 0,u=void 0;if(!y.containsLeap(i))return n(i);var l=y.containsLeap.onlyChildren(i);switch(i.type){case"MemberExpression":return n(h.memberExpression(o.explodeExpression(e.get("object")),i.computed?r(null,e.get("property")):i.property,i.computed));case"CallExpression":var f=e.get("callee"),d=e.get("arguments"),v=void 0,m=[],g=!1;if(d.forEach(function(e){g=g||y.containsLeap(e.node)}),h.isMemberExpression(f.node))if(g){var b=r(o.makeTempVar(),f.get("object")),x=f.node.computed?r(null,f.get("property")):f.node.property;m.unshift(b),v=h.memberExpression(h.memberExpression(b,x,f.node.computed),h.identifier("call"),!1)}else v=o.explodeExpression(f);else v=r(null,f),h.isMemberExpression(v)&&(v=h.sequenceExpression([h.numericLiteral(0),v]));return d.forEach(function(e){m.push(r(null,e))}),n(h.callExpression(v,m));case"NewExpression":return n(h.newExpression(r(null,e.get("callee")),e.get("arguments").map(function(e){return r(null,e)})));case"ObjectExpression":return n(h.objectExpression(e.get("properties").map(function(e){return e.isObjectProperty()?h.objectProperty(e.node.key,r(null,e.get("value")),e.node.computed):e.node})));case"ArrayExpression":return n(h.arrayExpression(e.get("elements").map(function(e){return r(null,e)})));case"SequenceExpression":var E=i.expressions.length-1;return e.get("expressions").forEach(function(e){e.key===E?s=o.explodeExpression(e,t):o.explodeExpression(e,!0)}),s;case"LogicalExpression":u=a(),t||(s=o.makeTempVar());var w=r(s,e.get("left"));return"&&"===i.operator?o.jumpIfNot(w,u):(p.default.strictEqual(i.operator,"||"),o.jumpIf(w,u)),r(s,e.get("right"),t),o.mark(u),s;case"ConditionalExpression":var A=a();u=a();var _=o.explodeExpression(e.get("test"));return o.jumpIfNot(_,A),t||(s=o.makeTempVar()),r(s,e.get("consequent"),t),o.jump(u),o.mark(A),r(s,e.get("alternate"),t),o.mark(u),s;case"UnaryExpression":return n(h.unaryExpression(i.operator,o.explodeExpression(e.get("argument")),!!i.prefix));case"BinaryExpression":return n(h.binaryExpression(i.operator,r(null,e.get("left")),r(null,e.get("right"))));case"AssignmentExpression":return n(h.assignmentExpression(i.operator,o.explodeExpression(e.get("left")),o.explodeExpression(e.get("right"))));case"UpdateExpression":return n(h.updateExpression(i.operator,o.explodeExpression(e.get("argument")),i.prefix));case"YieldExpression":u=a();var C=i.argument&&o.explodeExpression(e.get("argument"));if(C&&i.delegate){var S=o.makeTempVar();return o.emit(h.returnStatement(h.callExpression(o.contextProperty("delegateYield"),[C,h.stringLiteral(S.property.name),u]))),o.mark(u),S}return o.emitAssign(o.contextProperty("next"),u),o.emit(h.returnStatement(C||null)),o.mark(u),o.contextProperty("sent");default:throw new Error("unknown Expression of type "+(0,c.default)(i.type))}}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return s.memberExpression(s.identifier("regeneratorRuntime"),s.identifier(e),!1)}function o(e){return e.isReferenced()||e.parentPath.isAssignmentExpression({left:e.node})}t.__esModule=!0,t.runtimeProperty=i,t.isReference=o;var a=n(1),s=r(a)},function(e,t){"use strict";e.exports=function(e){var t=/^\\\\\?\\/.test(e),n=/[^\x00-\x80]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}},function(e,t,n){"use strict";function r(){this._array=[],this._set=Object.create(null)}var i=n(61),o=Object.prototype.hasOwnProperty;r.fromArray=function(e,t){for(var n=new r,i=0,o=e.length;i=0&&e>1;return t?-n:n}var o=n(607),a=5,s=1<>>=a,i>0&&(t|=l),n+=o.encode(t);while(i>0);return n},t.decode=function(e,t,n){var r,s,c=e.length,f=0,p=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(s=o.decode(e.charCodeAt(t++)),s===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(s&l),s&=u,f+=s<0&&e.column>=0)||t||n||r)&&!(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:r}))},r.prototype._serializeMappings=function(){for(var e,t,n,r,a=0,s=1,u=0,l=0,c=0,f=0,p="",d=this._mappings.toArray(),h=0,v=d.length;h0){if(!o.compareByGeneratedPositionsInflated(t,d[h-1]))continue;e+=","}e+=i.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=i.encode(r-f),f=r,e+=i.encode(t.originalLine-1-l),l=t.originalLine-1,e+=i.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=i.encode(n-c),c=n)),p+=e}return p},r.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},r.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},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=r},function(e,t,n){"use strict";t.SourceMapGenerator=n(283).SourceMapGenerator,t.SourceMapConsumer=n(611).SourceMapConsumer,t.SourceNode=n(612).SourceNode},function(e,t,n){(function(e){"use strict";function t(){var e={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return e.colors.grey=e.colors.gray,Object.keys(e).forEach(function(t){var n=e[t];Object.keys(n).forEach(function(t){var r=n[t];e[t]=n[t]={open:"["+r[0]+"m",close:"["+r[1]+"m"}}),Object.defineProperty(e,t,{value:n,enumerable:!1})}),e}Object.defineProperty(e,"exports",{enumerable:!0,get:t})}).call(t,n(39)(e))},function(e,t,n){"use strict";e.exports=n(178)},function(e,t){"use strict";function n(e){return["babel-plugin-"+e,e]}t.__esModule=!0,t.default=n,e.exports=t.default},function(e,t){"use strict";function n(e){var t=["babel-preset-"+e,e],n=e.match(/^(@[^\/]+)\/(.+)$/);if(n){var r=n[1],i=n[2];t.push(r+"/babel-preset-"+i)}return t}t.__esModule=!0, -t.default=n,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(2),o=r(i);t.default=function(e,t){if(e&&t)return(0,s.default)(e,t,function(e,t){if(t&&Array.isArray(e)){for(var n=t.slice(0),r=e,i=Array.isArray(r),a=0,r=i?r:(0,o.default)(r);;){var s;if(i){if(a>=r.length)break;s=r[a++]}else{if(a=r.next(),a.done)break;s=a.value}var u=s;n.indexOf(u)<0&&n.push(u)}return n}})};var a=n(581),s=r(a);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0,t.default=function(e,t,n){if(e){if("Program"===e.type)return o.file(e,t||[],n||[]);if("File"===e.type)return e}throw new Error("Not a valid ast?")};var i=n(1),o=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e,t){var n=[],r=y.functionExpression(null,[y.identifier("global")],y.blockStatement(n)),i=y.program([y.expressionStatement(y.callExpression(r,[c.get("selfGlobal")]))]);return n.push(y.variableDeclaration("var",[y.variableDeclarator(e,y.assignmentExpression("=",y.memberExpression(y.identifier("global"),e),y.objectExpression([])))])),t(n),i}function a(e,t){var n=[];return n.push(y.variableDeclaration("var",[y.variableDeclarator(e,y.identifier("global"))])),t(n),y.program([b({FACTORY_PARAMETERS:y.identifier("global"),BROWSER_ARGUMENTS:y.assignmentExpression("=",y.memberExpression(y.identifier("root"),e),y.objectExpression([])),COMMON_ARGUMENTS:y.identifier("exports"),AMD_ARGUMENTS:y.arrayExpression([y.stringLiteral("exports")]),FACTORY_BODY:n,UMD_ROOT:y.identifier("this")})])}function s(e,t){var n=[];return n.push(y.variableDeclaration("var",[y.variableDeclarator(e,y.objectExpression([]))])),t(n),n.push(y.expressionStatement(e)),y.program(n)}function u(e,t,n){c.list.forEach(function(r){if(!(n&&n.indexOf(r)<0)){var i=y.identifier(r);e.push(y.expressionStatement(y.assignmentExpression("=",y.memberExpression(t,i),c.get(r))))}})}t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global",n=y.identifier("babelHelpers"),r=function(t){return u(t,n,e)},i=void 0,l={global:o,umd:a,var:s}[t];if(!l)throw new Error(h.get("unsupportedOutputType",t));return i=l(n,r),(0,p.default)(i).code};var l=n(190),c=i(l),f=n(182),p=r(f),d=n(18),h=i(d),v=n(4),m=r(v),g=n(1),y=i(g),b=(0,m.default)('\n (function (root, factory) {\n if (typeof define === "function" && define.amd) {\n define(AMD_ARGUMENTS, factory);\n } else if (typeof exports === "object") {\n factory(COMMON_ARGUMENTS);\n } else {\n factory(BROWSER_ARGUMENTS);\n }\n })(UMD_ROOT, function (FACTORY_PARAMETERS) {\n FACTORY_BODY\n });\n');e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(63),o=r(i),a=n(585),s=r(a);t.default=new o.default({name:"internal.blockHoist",visitor:{Block:{exit:function(e){for(var t=e.node,n=!1,r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return t.code=!1,t.mode="lint",this.transform(e,t)},e.prototype.pretransform=function(e,t){var n=new f.default(t,this);return n.wrap(e,function(){return n.addCode(e),n.parseCode(e),n})},e.prototype.transform=function(e,t){var n=new f.default(t,this);return n.wrap(e,function(){return n.addCode(e),n.parseCode(e),n.transform()})},e.prototype.analyse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return t.code=!1,n&&(t.plugins=t.plugins||[],t.plugins.push(new l.default({visitor:n}))),this.transform(e,t).metadata},e.prototype.transformFromAst=function(e,t,n){e=(0,s.default)(e);var r=new f.default(n,this);return r.wrap(t,function(){return r.addCode(t),r.addAst(e),r.transform()})},e}();t.default=p,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(3),o=r(i),a=n(42),s=r(a),u=n(41),l=r(u),c=n(117),f=r(c),p=n(49),d=(r(p),function(e){function t(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(this,t);var a=(0,s.default)(this,e.call(this));return a.plugin=r,a.key=r.key,a.file=n,a.opts=i,a}return(0,l.default)(t,e),t.prototype.addHelper=function(){var e;return(e=this.file).addHelper.apply(e,arguments)},t.prototype.addImport=function(){var e;return(e=this.file).addImport.apply(e,arguments)},t.prototype.getModuleName=function(){var e;return(e=this.file).getModuleName.apply(e,arguments)},t.prototype.buildCodeFrameError=function(){var e;return(e=this.file).buildCodeFrameError.apply(e,arguments)},t}(f.default));t.default=d,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(3),o=r(i),a=n(616),s=r(a),u=/^[ \t]+$/,l=function(){function e(t){(0,o.default)(this,e),this._map=null,this._buf=[],this._last="",this._queue=[],this._position={line:1,column:0},this._sourcePosition={identifierName:null,line:null,column:null,filename:null},this._map=t}return e.prototype.get=function(){this._flush();var e=this._map,t={code:(0,s.default)(this._buf.join("")),map:null,rawMappings:e&&e.getRawMappings()};return e&&Object.defineProperty(t,"map",{configurable:!0,enumerable:!0,get:function(){return this.map=e.get()},set:function(e){Object.defineProperty(this,"map",{value:e,writable:!0})}}),t},e.prototype.append=function(e){this._flush();var t=this._sourcePosition,n=t.line,r=t.column,i=t.filename,o=t.identifierName;this._append(e,n,r,o,i)},e.prototype.queue=function(e){if("\n"===e)for(;this._queue.length>0&&u.test(this._queue[0][0]);)this._queue.shift();var t=this._sourcePosition,n=t.line,r=t.column,i=t.filename,o=t.identifierName;this._queue.unshift([e,n,r,o,i])},e.prototype._flush=function(){for(var e=void 0;e=this._queue.pop();)this._append.apply(this,e)},e.prototype._append=function(e,t,n,r,i){this._map&&"\n"!==e[0]&&this._map.mark(this._position.line,this._position.column,t,n,r,i),this._buf.push(e),this._last=e[e.length-1];for(var o=0;o0&&"\n"===this._queue[0][0]&&this._queue.shift()},e.prototype.removeLastSemicolon=function(){this._queue.length>0&&";"===this._queue[0][0]&&this._queue.shift()},e.prototype.endsWith=function(e){if(1===e.length){var t=void 0;if(this._queue.length>0){var n=this._queue[0][0];t=n[n.length-1]}else t=this._last;return t===e}var r=this._last+this._queue.reduce(function(e,t){return t[0]+e},"");return e.length<=r.length&&r.slice(-e.length)===e},e.prototype.hasContent=function(){return this._queue.length>0||!!this._last},e.prototype.source=function(e,t){if(!e||t){var n=t?t[e]:null;this._sourcePosition.identifierName=t&&t.identifierName||null,this._sourcePosition.line=n?n.line:null,this._sourcePosition.column=n?n.column:null,this._sourcePosition.filename=t&&t.filename||null}},e.prototype.withSource=function(e,t,n){if(!this._map)return n();var r=this._sourcePosition.line,i=this._sourcePosition.column,o=this._sourcePosition.filename,a=this._sourcePosition.identifierName;this.source(e,t),n(),this._sourcePosition.line=r,this._sourcePosition.column=i,this._sourcePosition.filename=o,this._sourcePosition.identifierName=a},e.prototype.getCurrentColumn=function(){var e=this._queue.reduce(function(e,t){return t[0]+e},""),t=e.lastIndexOf("\n");return t===-1?this._position.column+e.length:e.length-1-t},e.prototype.getCurrentLine=function(){for(var e=this._queue.reduce(function(e,t){return t[0]+e},""),t=0,n=0;n")),this.space(),this.print(e.returnType,e)}function g(e){this.print(e.name,e),e.optional&&this.token("?"),this.token(":"),this.space(),this.print(e.typeAnnotation,e)}function y(e){this.print(e.id,e),this.print(e.typeParameters,e)}function b(e){this.print(e.id,e),this.print(e.typeParameters,e),e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),e.mixins&&e.mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e)),this.space(),this.print(e.body,e)}function x(e){"plus"===e.variance?this.token("+"):"minus"===e.variance&&this.token("-")}function E(e){this.word("interface"),this.space(),this._interfaceish(e)}function w(){this.space(),this.token("&"),this.space()}function A(e){this.printJoin(e.types,e,{separator:w})}function _(){this.word("mixed")}function C(){this.word("empty")}function S(e){this.token("?"),this.print(e.typeAnnotation,e)}function k(){this.word("number")}function D(){this.word("string")}function P(){this.word("this")}function O(e){this.token("["),this.printList(e.types,e),this.token("]")}function T(e){this.word("typeof"),this.space(),this.print(e.argument,e)}function M(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.token("="),this.space(),this.print(e.right,e),this.semicolon()}function R(e){this.token(":"),this.space(),e.optional&&this.token("?"),this.print(e.typeAnnotation,e)}function N(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e),e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))}function F(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")}function I(e){var t=this;e.exact?this.token("{|"):this.token("{");var n=e.properties.concat(e.callProperties,e.indexers);n.length&&(this.space(),this.printJoin(n,e,{addNewlines:function(e){if(e&&!n[0])return 1},indent:!0,statement:!0,iterator:function(){1!==n.length&&(t.format.flowCommaSeparator?t.token(","):t.semicolon(),t.space())}}),this.space()),e.exact?this.token("|}"):this.token("}")}function L(e){e.static&&(this.word("static"),this.space()),this.print(e.value,e)}function j(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.token("["),this.print(e.id,e),this.token(":"),this.space(),this.print(e.key,e),this.token("]"),this.token(":"),this.space(),this.print(e.value,e)}function B(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.print(e.key,e),e.optional&&this.token("?"),this.token(":"),this.space(),this.print(e.value,e)}function U(e){this.print(e.qualification,e),this.token("."),this.print(e.id,e)}function V(){this.space(),this.token("|"),this.space()}function W(e){this.printJoin(e.types,e,{separator:V})}function q(e){this.token("("),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.token(")")}function H(){this.word("void")}t.__esModule=!0,t.AnyTypeAnnotation=r,t.ArrayTypeAnnotation=i,t.BooleanTypeAnnotation=o,t.BooleanLiteralTypeAnnotation=a,t.NullLiteralTypeAnnotation=s,t.DeclareClass=u,t.DeclareFunction=l,t.DeclareInterface=c,t.DeclareModule=f,t.DeclareModuleExports=p,t.DeclareTypeAlias=d,t.DeclareVariable=h,t.ExistentialTypeParam=v,t.FunctionTypeAnnotation=m,t.FunctionTypeParam=g,t.InterfaceExtends=y,t._interfaceish=b,t._variance=x,t.InterfaceDeclaration=E,t.IntersectionTypeAnnotation=A,t.MixedTypeAnnotation=_,t.EmptyTypeAnnotation=C,t.NullableTypeAnnotation=S;var G=n(121);Object.defineProperty(t,"NumericLiteralTypeAnnotation",{enumerable:!0,get:function(){return G.NumericLiteral}}),Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return G.StringLiteral}}),t.NumberTypeAnnotation=k,t.StringTypeAnnotation=D,t.ThisTypeAnnotation=P,t.TupleTypeAnnotation=O,t.TypeofTypeAnnotation=T,t.TypeAlias=M,t.TypeAnnotation=R,t.TypeParameter=N,t.TypeParameterInstantiation=F,t.ObjectTypeAnnotation=I,t.ObjectTypeCallProperty=L,t.ObjectTypeIndexer=j,t.ObjectTypeProperty=B,t.QualifiedTypeIdentifier=U,t.UnionTypeAnnotation=W,t.TypeCastExpression=q,t.VoidTypeAnnotation=H,t.ClassImplements=y,t.GenericTypeAnnotation=y,t.TypeParameterDeclaration=F},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){this.print(e.name,e),e.value&&(this.token("="),this.print(e.value,e))}function o(e){this.word(e.name)}function a(e){this.print(e.namespace,e),this.token(":"),this.print(e.name,e)}function s(e){this.print(e.object,e),this.token("."),this.print(e.property,e)}function u(e){this.token("{"),this.token("..."),this.print(e.argument,e),this.token("}")}function l(e){this.token("{"),this.print(e.expression,e),this.token("}")}function c(e){this.token("{"),this.token("..."),this.print(e.expression,e),this.token("}")}function f(e){this.token(e.value)}function p(e){var t=e.openingElement;if(this.print(t,e),!t.selfClosing){this.indent();for(var n=e.children,r=Array.isArray(n),i=0,n=r?n:(0,y.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;this.print(a,e)}this.dedent(),this.print(e.closingElement,e)}}function d(){this.space()}function h(e){this.token("<"),this.print(e.name,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:d})),e.selfClosing?(this.space(),this.token("/>")):this.token(">")}function v(e){this.token("")}function m(){}t.__esModule=!0;var g=n(2),y=r(g);t.JSXAttribute=i,t.JSXIdentifier=o,t.JSXNamespacedName=a,t.JSXMemberExpression=s,t.JSXSpreadAttribute=u,t.JSXExpressionContainer=l,t.JSXSpreadChild=c,t.JSXText=f,t.JSXElement=p,t.JSXOpeningElement=h,t.JSXClosingElement=v,t.JSXEmptyExpression=m},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){var t=this;this.print(e.typeParameters,e),this.token("("),this.printList(e.params,e,{iterator:function(e){e.optional&&t.token("?"),t.print(e.typeAnnotation,e)}}),this.token(")"),e.returnType&&this.print(e.returnType,e)}function o(e){var t=e.kind,n=e.key;"method"!==t&&"init"!==t||e.generator&&this.token("*"),"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async"),this.space()),e.computed?(this.token("["),this.print(n,e),this.token("]")):this.print(n,e),this._params(e),this.space(),this.print(e.body,e)}function a(e){e.async&&(this.word("async"),this.space()),this.word("function"),e.generator&&this.token("*"),e.id?(this.space(),this.print(e.id,e)):this.space(),this._params(e),this.space(),this.print(e.body,e)}function s(e){e.async&&(this.word("async"),this.space());var t=e.params[0];1===e.params.length&&c.isIdentifier(t)&&!u(e,t)?this.print(t,e):this._params(e),this.space(),this.token("=>"),this.space(),this.print(e.body,e)}function u(e,t){return e.typeParameters||e.returnType||t.typeAnnotation||t.optional||t.trailingComments}t.__esModule=!0,t.FunctionDeclaration=void 0,t._params=i,t._method=o,t.FunctionExpression=a,t.ArrowFunctionExpression=s;var l=n(1),c=r(l);t.FunctionDeclaration=a},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))}function o(e){this.print(e.local,e)}function a(e){this.print(e.exported,e)}function s(e){this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))}function u(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.exported,e)}function l(e){this.word("export"),this.space(),this.token("*"),this.space(),this.word("from"),this.space(),this.print(e.source,e),this.semicolon()}function c(){this.word("export"),this.space(),p.apply(this,arguments)}function f(){this.word("export"),this.space(),this.word("default"),this.space(),p.apply(this,arguments)}function p(e){if(e.declaration){var t=e.declaration;this.print(t,e),m.isStatement(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());for(var n=e.specifiers.slice(0),r=!1;;){var i=n[0];if(!m.isExportDefaultSpecifier(i)&&!m.isExportNamespaceSpecifier(i))break;r=!0,this.print(n.shift(),e),n.length&&(this.token(","),this.space())}(n.length||!n.length&&!r)&&(this.token("{"),n.length&&(this.space(),this.printList(n,e),this.space()),this.token("}")),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}}function d(e){this.word("import"),this.space(),"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space());var t=e.specifiers.slice(0);if(t&&t.length){for(;;){var n=t[0];if(!m.isImportDefaultSpecifier(n)&&!m.isImportNamespaceSpecifier(n))break;this.print(t.shift(),e),t.length&&(this.token(","),this.space())}t.length&&(this.token("{"),this.space(),this.printList(t,e),this.space(),this.token("}")),this.space(),this.word("from"),this.space()}this.print(e.source,e),this.semicolon()}function h(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.local,e)}t.__esModule=!0,t.ImportSpecifier=i,t.ImportDefaultSpecifier=o,t.ExportDefaultSpecifier=a,t.ExportSpecifier=s,t.ExportNamespaceSpecifier=u,t.ExportAllDeclaration=l,t.ExportNamedDeclaration=c,t.ExportDefaultDeclaration=f,t.ImportDeclaration=d,t.ImportNamespaceSpecifier=h;var v=n(1),m=r(v)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){this.word("with"),this.space(),this.token("("),this.print(e.object,e),this.token(")"),this.printBlock(e)}function a(e){this.word("if"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.space();var t=e.alternate&&C.isIfStatement(s(e.consequent));t&&(this.token("{"),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.token("}")),e.alternate&&(this.endsWith("}")&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))}function s(e){return C.isStatement(e.body)?s(e.body):e}function u(e){this.word("for"),this.space(),this.token("("),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.token(";"),e.test&&(this.space(),this.print(e.test,e)),this.token(";"),e.update&&(this.space(),this.print(e.update,e)),this.token(")"),this.printBlock(e)}function l(e){this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.printBlock(e)}function c(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.semicolon()}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return function(n){this.word(e);var r=n[t];if(r){this.space();var i=this.startTerminatorless();this.print(r,n),this.endTerminatorless(i)}this.semicolon()}}function p(e){this.print(e.label,e),this.token(":"),this.space(),this.print(e.body,e)}function d(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))}function h(e){this.word("catch"),this.space(),this.token("("),this.print(e.param,e),this.token(")"),this.space(),this.print(e.body,e)}function v(e){this.word("switch"),this.space(),this.token("("),this.print(e.discriminant,e),this.token(")"),this.space(),this.token("{"),this.printSequence(e.cases,e,{indent:!0,addNewlines:function(t,n){if(!t&&e.cases[e.cases.length-1]===n)return-1}}),this.token("}")}function m(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.token(":")):(this.word("default"),this.token(":")),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))}function g(){this.word("debugger"),this.semicolon()}function y(){if(this.token(","),this.newline(),this.endsWith("\n"))for(var e=0;e<4;e++)this.space(!0)}function b(){if(this.token(","),this.newline(),this.endsWith("\n"))for(var e=0;e<6;e++)this.space(!0)}function x(e,t){this.word(e.kind),this.space();var n=!1;if(!C.isFor(t))for(var r=e.declarations,i=Array.isArray(r),o=0,r=i?r:(0,A.default)(r);;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;s.init&&(n=!0)}var u=void 0;n&&(u="const"===e.kind?b:y),this.printList(e.declarations,e,{separator:u}),(!C.isFor(t)||t.left!==e&&t.init!==e)&&this.semicolon()}function E(e){this.print(e.id,e),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.token("="),this.space(),this.print(e.init,e))}t.__esModule=!0,t.ThrowStatement=t.BreakStatement=t.ReturnStatement=t.ContinueStatement=t.ForAwaitStatement=t.ForOfStatement=t.ForInStatement=void 0;var w=n(2),A=i(w);t.WithStatement=o,t.IfStatement=a,t.ForStatement=u,t.WhileStatement=l,t.DoWhileStatement=c,t.LabeledStatement=p,t.TryStatement=d,t.CatchClause=h,t.SwitchStatement=v,t.SwitchCase=m,t.DebuggerStatement=g,t.VariableDeclaration=x,t.VariableDeclarator=E;var _=n(1),C=r(_),S=function(e){return function(t){this.word("for"),this.space(),"await"===e&&(this.word("await"),this.space()),this.token("("),this.print(t.left,t),this.space(),this.word("await"===e?"of":e),this.space(),this.print(t.right,t),this.token(")"),this.printBlock(t)}};t.ForInStatement=S("in"),t.ForOfStatement=S("of"),t.ForAwaitStatement=S("await"),t.ContinueStatement=f("continue"),t.ReturnStatement=f("return","argument"),t.BreakStatement=f("break"),t.ThrowStatement=f("throw","argument")},function(e,t){"use strict";function n(e){this.print(e.tag,e),this.print(e.quasi,e)}function r(e,t){var n=t.quasis[0]===e,r=t.quasis[t.quasis.length-1]===e,i=(n?"`":"}")+e.value.raw+(r?"`":"${");this.token(i)}function i(e){for(var t=e.quasis,n=0;no)return!0; -}return!1}function l(e,t){return"in"===e.operator&&(x.isVariableDeclarator(t)||x.isFor(t))}function c(e,t){return!(x.isForStatement(t)||x.isThrowStatement(t)||x.isReturnStatement(t)||x.isIfStatement(t)&&t.test===e||x.isWhileStatement(t)&&t.test===e||x.isForInStatement(t)&&t.right===e||x.isSwitchStatement(t)&&t.discriminant===e||x.isExpressionStatement(t)&&t.expression===e)}function f(e,t){return x.isBinary(t)||x.isUnaryLike(t)||x.isCallExpression(t)||x.isMemberExpression(t)||x.isNewExpression(t)||x.isConditionalExpression(t)&&e===t.test}function p(e,t,n){return y(n,{considerDefaultExports:!0})}function d(e,t){return x.isMemberExpression(t,{object:e})||x.isCallExpression(t,{callee:e})||x.isNewExpression(t,{callee:e})}function h(e,t,n){return y(n,{considerDefaultExports:!0})}function v(e,t){return!!(x.isExportDeclaration(t)||x.isBinaryExpression(t)||x.isLogicalExpression(t)||x.isUnaryExpression(t)||x.isTaggedTemplateExpression(t))||d(e,t)}function m(e,t){return!!(x.isUnaryLike(t)||x.isBinary(t)||x.isConditionalExpression(t,{test:e})||x.isAwaitExpression(t))||d(e,t)}function g(e){return!!x.isObjectPattern(e.left)||m.apply(void 0,arguments)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.considerArrow,r=void 0!==n&&n,i=t.considerDefaultExports,o=void 0!==i&&i,a=e.length-1,s=e[a];a--;for(var u=e[a];a>0;){if(x.isExpressionStatement(u,{expression:s})||x.isTaggedTemplateExpression(u)||o&&x.isExportDefaultDeclaration(u,{declaration:s})||r&&x.isArrowFunctionExpression(u,{body:s}))return!0;if(!(x.isCallExpression(u,{callee:s})||x.isSequenceExpression(u)&&u.expressions[0]===s||x.isMemberExpression(u,{object:s})||x.isConditional(u,{test:s})||x.isBinary(u,{left:s})||x.isAssignmentExpression(u,{left:s})))return!1;s=u,a--,u=e[a]}return!1}t.__esModule=!0,t.AwaitExpression=t.FunctionTypeAnnotation=void 0,t.NullableTypeAnnotation=i,t.UpdateExpression=o,t.ObjectExpression=a,t.DoExpression=s,t.Binary=u,t.BinaryExpression=l,t.SequenceExpression=c,t.YieldExpression=f,t.ClassExpression=p,t.UnaryLike=d,t.FunctionExpression=h,t.ArrowFunctionExpression=v,t.ConditionalExpression=m,t.AssignmentExpression=g;var b=n(1),x=r(b),E={"||":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10};t.FunctionTypeAnnotation=i,t.AwaitExpression=f},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f.isMemberExpression(e)?(o(e.object,t),e.computed&&o(e.property,t)):f.isBinary(e)||f.isAssignmentExpression(e)?(o(e.left,t),o(e.right,t)):f.isCallExpression(e)?(t.hasCall=!0,o(e.callee,t)):f.isFunction(e)?t.hasFunction=!0:f.isIdentifier(e)&&(t.hasHelper=t.hasHelper||a(e.callee)),t}function a(e){return f.isMemberExpression(e)?a(e.object)||a(e.property):f.isIdentifier(e)?"require"===e.name||"_"===e.name[0]:f.isCallExpression(e)?a(e.callee):!(!f.isBinary(e)&&!f.isAssignmentExpression(e))&&(f.isIdentifier(e.left)&&a(e.left)||a(e.right))}function s(e){return f.isLiteral(e)||f.isObjectExpression(e)||f.isArrayExpression(e)||f.isIdentifier(e)||f.isMemberExpression(e)}var u=n(579),l=i(u),c=n(1),f=r(c);t.nodes={AssignmentExpression:function(e){var t=o(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return{before:t.hasFunction,after:!0}},SwitchCase:function(e,t){return{before:e.consequent.length||t.cases[0]===e}},LogicalExpression:function(e){if(f.isFunction(e.left)||f.isFunction(e.right))return{after:!0}},Literal:function(e){if("use strict"===e.value)return{after:!0}},CallExpression:function(e){if(f.isFunction(e.callee)||a(e))return{before:!0,after:!0}},VariableDeclaration:function(e){for(var t=0;t0?new P.default(r):null}return e.prototype.generate=function(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()},e.prototype.indent=function(){this.format.compact||this.format.concise||this._indent++},e.prototype.dedent=function(){this.format.compact||this.format.concise||this._indent--},e.prototype.semicolon=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._maybeAddAuxComment(),this._append(";",!e)},e.prototype.rightBrace=function(){this.format.minified&&this._buf.removeLastSemicolon(),this.token("}")},e.prototype.space=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.format.compact||(this._buf.hasContent()&&!this.endsWith(" ")&&!this.endsWith("\n")||e)&&this._space()},e.prototype.word=function(e){this._endsWithWord&&this._space(),this._maybeAddAuxComment(),this._append(e),this._endsWithWord=!0},e.prototype.number=function(e){this.word(e),this._endsWithInteger=(0,E.default)(+e)&&!N.test(e)&&!M.test(e)&&!R.test(e)&&"."!==e[e.length-1]},e.prototype.token=function(e){("--"===e&&this.endsWith("!")||"+"===e[0]&&this.endsWith("+")||"-"===e[0]&&this.endsWith("-")||"."===e[0]&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e)},e.prototype.newline=function(e){if(!this.format.retainLines&&!this.format.compact){if(this.format.concise)return void this.space();if(!(this.endsWith("\n\n")||("number"!=typeof e&&(e=1),e=Math.min(2,e),(this.endsWith("{\n")||this.endsWith(":\n"))&&e--,e<=0)))for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];this._maybeAddParen(e),this._maybeIndent(e),t?this._buf.queue(e):this._buf.append(e),this._endsWithWord=!1,this._endsWithInteger=!1},e.prototype._maybeIndent=function(e){this._indent&&this.endsWith("\n")&&"\n"!==e[0]&&this._buf.queue(this._getIndent())},e.prototype._maybeAddParen=function(e){var t=this._parenPushNewlineState;if(t){this._parenPushNewlineState=null;var n=void 0;for(n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.length){n.indent&&this.indent();for(var r={addNewlines:n.addNewlines},i=0;i1&&void 0!==arguments[1])||arguments[1];e.innerComments&&(t&&this.indent(),this._printComments(e.innerComments),t&&this.dedent())},e.prototype.printSequence=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.statement=!0,this.printJoin(e,t,n)},e.prototype.printList=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==n.separator&&(n.separator=o),this.printJoin(e,t,n)},e.prototype._printNewline=function(e,t,n,r){var i=this;if(!this.format.retainLines&&!this.format.compact){if(this.format.concise)return void this.space();var o=0;if(null!=t.start&&!t._ignoreUserWhitespace&&this._whitespace)if(e){var a=t.leadingComments,s=a&&(0,g.default)(a,function(e){return!!e.loc&&i.format.shouldPrintComment(e.value)});o=this._whitespace.getNewlinesBefore(s||t)}else{var u=t.trailingComments,l=u&&(0,b.default)(u,function(e){return!!e.loc&&i.format.shouldPrintComment(e.value)});o=this._whitespace.getNewlinesAfter(l||t)}else{e||o++,r.addNewlines&&(o+=r.addNewlines(e,t)||0);var c=k.needsWhitespaceAfter;e&&(c=k.needsWhitespaceBefore),c(t,n)&&o++,this._buf.hasContent()||(o=0)}this.newline(o)}},e.prototype._getComments=function(e,t){return t&&(e?t.leadingComments:t.trailingComments)||[]},e.prototype._printComment=function(e){var t=this;if(this.format.shouldPrintComment(e.value)&&!e.ignore&&!this._printedComments.has(e)){if(this._printedComments.add(e),null!=e.start){if(this._printedCommentStarts[e.start])return;this._printedCommentStarts[e.start]=!0}this.newline(this._whitespace?this._whitespace.getNewlinesBefore(e):0),this.endsWith("[")||this.endsWith("{")||this.space();var n="CommentLine"===e.type?"//"+e.value+"\n":"/*"+e.value+"*/";if("CommentBlock"===e.type&&this.format.indent.adjustMultilineComment){var r=e.loc&&e.loc.start.column;if(r){var i=new RegExp("\\n\\s{1,"+r+"}","g");n=n.replace(i,"\n")}var o=Math.max(this._getIndent().length,this._buf.getCurrentColumn());n=n.replace(/\n(?!$)/g,"\n"+(0,A.default)(" ",o))}this.withSource("start",e.loc,function(){t._append(n)}),this.newline((this._whitespace?this._whitespace.getNewlinesAfter(e):0)+("CommentLine"===e.type?-1:0))}},e.prototype._printComments=function(e){if(e&&e.length)for(var t=e,n=Array.isArray(t),r=0,t=n?t:(0,l.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;this._printComment(o)}},e}();t.default=F;for(var I=[n(305),n(299),n(304),n(298),n(302),n(303),n(121),n(300),n(297),n(301)],L=0;L=0){for(;i&&e.start===r[i-1].start;)--i;t=r[i-1],n=r[i]}return this._getNewlinesBetween(t,n)},e.prototype.getNewlinesAfter=function(e){var t=void 0,n=void 0,r=this.tokens,i=this._findToken(function(t){return t.end-e.end},0,r.length);if(i>=0){for(;i&&e.end===r[i-1].end;)--i;t=r[i],n=r[i+1],","===n.type.label&&(n=r[i+2])}return n&&"eof"===n.type.label?1:this._getNewlinesBetween(t,n)},e.prototype._getNewlinesBetween=function(e,t){if(!t||!t.loc)return 0;for(var n=e?e.loc.end.line:1,r=t.loc.start.line,i=0,o=n;o=n)return-1;var r=t+n>>>1,i=e(this.tokens[r]);return i<0?this._findToken(e,r+1,n):i>0?this._findToken(e,t,r):0===i?r:-1},e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){for(var t=e,n=Array.isArray(t),r=0,t=n?t:(0,s.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i,a=o.node,u=a.expression;if(l.isMemberExpression(u)){var c=o.scope.maybeGenerateMemoised(u.object),f=void 0,p=[];c?(f=c,p.push(l.assignmentExpression("=",c,u.object))):f=u.object,p.push(l.callExpression(l.memberExpression(l.memberExpression(f,u.property,u.computed),l.identifier("bind")),[f])),1===p.length?a.expression=p[0]:a.expression=l.sequenceExpression(p)}}}t.__esModule=!0;var a=n(2),s=i(a);t.default=o;var u=n(1),l=r(u);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){function t(t){return t&&t.operator===e.operator+"="}function n(e,t){return u.assignmentExpression("=",e,t)}var r={};return r.ExpressionStatement=function(r,i){if(!r.isCompletionRecord()){var o=r.node.expression;if(t(o)){var s=[],l=(0,a.default)(o.left,s,i,r.scope,!0);s.push(u.expressionStatement(n(l.ref,e.build(l.uid,o.right)))),r.replaceWithMultiple(s)}}},r.AssignmentExpression=function(r,i){var o=r.node,s=r.scope;if(t(o)){var u=[],l=(0,a.default)(o.left,u,i,s);u.push(n(l.ref,e.build(l.uid,o.right))),r.replaceWithMultiple(u)}},r.BinaryExpression=function(t){var n=t.node;n.operator===e.operator&&t.replaceWith(e.build(n.left,n.right))},r};var o=n(314),a=i(o),s=n(1),u=r(s);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.scope,n=e.node,r=u.functionExpression(null,[],n.body,n.generator,n.async),i=r,o=[];(0,a.default)(e,function(e){return t.push({id:e})});var s={foundThis:!1,foundArguments:!1};e.traverse(l,s),s.foundArguments&&(i=u.memberExpression(r,u.identifier("apply")),o=[],s.foundThis&&o.push(u.thisExpression()),s.foundArguments&&(s.foundThis||o.push(u.nullLiteral()),o.push(u.identifier("arguments"))));var c=u.callExpression(i,o);return n.generator&&(c=u.yieldExpression(c,!0)),u.returnStatement(c)};var o=n(186),a=i(o),s=n(1),u=r(s),l={enter:function(e,t){e.isThisExpression()&&(t.foundThis=!0),e.isReferencedIdentifier({name:"arguments"})&&(t.foundArguments=!0)},Function:function(e){e.skip()}};e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t,n,r){var i=void 0;if(s.isSuper(e))return e;if(s.isIdentifier(e)){if(r.hasBinding(e.name))return e;i=e}else{if(!s.isMemberExpression(e))throw new Error("We can't explode this node type "+e.type);if(i=e.object,s.isSuper(i)||s.isIdentifier(i)&&r.hasBinding(i.name))return i}var o=r.generateUidIdentifierBasedOnNode(i);return t.push(s.variableDeclaration("var",[s.variableDeclarator(o,i)])),o}function o(e,t,n,r){var i=e.property,o=s.toComputedKey(e,i);if(s.isLiteral(o)&&s.isPureish(o))return o;var a=r.generateUidIdentifierBasedOnNode(i);return t.push(s.variableDeclaration("var",[s.variableDeclarator(a,i)])),a}t.__esModule=!0,t.default=function(e,t,n,r,a){var u=void 0;u=s.isIdentifier(e)&&a?e:i(e,t,n,r);var l=void 0,c=void 0;if(s.isIdentifier(e))l=e,c=u;else{var f=o(e,t,n,r),p=e.computed||s.isLiteral(f);c=l=s.memberExpression(u,f,p)}return{uid:c,ref:l}};var a=n(1),s=r(a);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(2),a=i(o);t.default=function(e){function t(t){if(t.node&&!t.isPure()){var n=e.scope.generateDeclaredUidIdentifier();r.push(c.assignmentExpression("=",n,t.node)),t.replaceWith(n)}}function n(e){if(Array.isArray(e)&&e.length){e=e.reverse(),(0,u.default)(e);for(var n=e,r=Array.isArray(n),i=0,n=r?n:(0,a.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var s=o;t(s)}}}e.assertClass();var r=[];t(e.get("superClass")),n(e.get("decorators"),!0);for(var i=e.get("body.body"),o=i,s=Array.isArray(o),l=0,o=s?o:(0,a.default)(o);;){var f;if(s){if(l>=o.length)break;f=o[l++]}else{if(l=o.next(),l.done)break;f=l.value}var p=f;p.is("computed")&&t(p.get("key")),p.has("decorators")&&n(e.get("decorators"))}r&&e.insertBefore(r.map(function(e){return c.expressionStatement(e)}))};var s=n(311),u=i(s),l=n(1),c=r(l);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0,t.default=function(e,t){var n=e.node,r=e.scope,i=e.parent,o=r.generateUidIdentifier("step"),s=r.generateUidIdentifier("value"),u=n.left,l=void 0;a.isIdentifier(u)||a.isPattern(u)||a.isMemberExpression(u)?l=a.expressionStatement(a.assignmentExpression("=",u,s)):a.isVariableDeclaration(u)&&(l=a.variableDeclaration(u.kind,[a.variableDeclarator(u.declarations[0].id,s)]));var d=f();(0,c.default)(d,p,null,{ITERATOR_HAD_ERROR_KEY:r.generateUidIdentifier("didIteratorError"),ITERATOR_COMPLETION:r.generateUidIdentifier("iteratorNormalCompletion"),ITERATOR_ERROR_KEY:r.generateUidIdentifier("iteratorError"),ITERATOR_KEY:r.generateUidIdentifier("iterator"),GET_ITERATOR:t.getAsyncIterator,OBJECT:n.right,STEP_VALUE:s,STEP_KEY:o,AWAIT:t.wrapAwait}),d=d.body.body;var h=a.isLabeledStatement(i),v=d[3].block.body,m=v[0];return h&&(v[0]=a.labeledStatement(i.label,m)),{replaceParent:h,node:d,declar:l,loop:m}};var o=n(1),a=i(o),s=n(4),u=r(s),l=n(7),c=r(l),f=(0,u.default)("\n function* wrapper() {\n var ITERATOR_COMPLETION = true;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY = undefined;\n try {\n for (\n var ITERATOR_KEY = GET_ITERATOR(OBJECT), STEP_KEY, STEP_VALUE;\n (\n STEP_KEY = yield AWAIT(ITERATOR_KEY.next()),\n ITERATOR_COMPLETION = STEP_KEY.done,\n STEP_VALUE = yield AWAIT(STEP_KEY.value),\n !ITERATOR_COMPLETION\n );\n ITERATOR_COMPLETION = true) {\n }\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (!ITERATOR_COMPLETION && ITERATOR_KEY.return) {\n yield AWAIT(ITERATOR_KEY.return());\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n }\n"),p={noScope:!0,Identifier:function(e,t){e.node.name in t&&e.replaceInline(t[e.node.name])},CallExpression:function(e,t){var n=e.node.callee;a.isIdentifier(n)&&"AWAIT"===n.name&&!t.AWAIT&&e.replaceWith(e.node.arguments[0])}};e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(4),o=r(i),a={};t.default=a,a.typeof=(0,o.default)('\n (typeof Symbol === "function" && typeof Symbol.iterator === "symbol")\n ? function (obj) { return typeof obj; }\n : function (obj) {\n return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype\n ? "symbol"\n : typeof obj;\n };\n'),a.jsx=(0,o.default)('\n (function () {\n var REACT_ELEMENT_TYPE = (typeof Symbol === "function" && Symbol.for && Symbol.for("react.element")) || 0xeac7;\n\n return function createRawReactElement (type, props, key, children) {\n var defaultProps = type && type.defaultProps;\n var childrenLength = arguments.length - 3;\n\n if (!props && childrenLength !== 0) {\n // If we\'re going to assign props.children, we create a new object now\n // to avoid mutating defaultProps.\n props = {};\n }\n if (props && defaultProps) {\n for (var propName in defaultProps) {\n if (props[propName] === void 0) {\n props[propName] = defaultProps[propName];\n }\n }\n } else if (!props) {\n props = defaultProps || {};\n }\n\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 3];\n }\n props.children = childArray;\n }\n\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key === undefined ? null : \'\' + key,\n ref: null,\n props: props,\n _owner: null,\n };\n };\n\n })()\n'),a.asyncIterator=(0,o.default)('\n (function (iterable) {\n if (typeof Symbol === "function") {\n if (Symbol.asyncIterator) {\n var method = iterable[Symbol.asyncIterator];\n if (method != null) return method.call(iterable);\n }\n if (Symbol.iterator) {\n return iterable[Symbol.iterator]();\n }\n }\n throw new TypeError("Object is not async iterable");\n })\n'),a.asyncGenerator=(0,o.default)('\n (function () {\n function AwaitValue(value) {\n this.value = value;\n }\n\n function AsyncGenerator(gen) {\n var front, back;\n\n function send(key, arg) {\n return new Promise(function (resolve, reject) {\n var request = {\n key: key,\n arg: arg,\n resolve: resolve,\n reject: reject,\n next: null\n };\n\n if (back) {\n back = back.next = request;\n } else {\n front = back = request;\n resume(key, arg);\n }\n });\n }\n\n function resume(key, arg) {\n try {\n var result = gen[key](arg)\n var value = result.value;\n if (value instanceof AwaitValue) {\n Promise.resolve(value.value).then(\n function (arg) { resume("next", arg); },\n function (arg) { resume("throw", arg); });\n } else {\n settle(result.done ? "return" : "normal", result.value);\n }\n } catch (err) {\n settle("throw", err);\n }\n }\n\n function settle(type, value) {\n switch (type) {\n case "return":\n front.resolve({ value: value, done: true });\n break;\n case "throw":\n front.reject(value);\n break;\n default:\n front.resolve({ value: value, done: false });\n break;\n }\n\n front = front.next;\n if (front) {\n resume(front.key, front.arg);\n } else {\n back = null;\n }\n }\n\n this._invoke = send;\n\n // Hide "return" method if generator return is not supported\n if (typeof gen.return !== "function") {\n this.return = undefined;\n }\n }\n\n if (typeof Symbol === "function" && Symbol.asyncIterator) {\n AsyncGenerator.prototype[Symbol.asyncIterator] = function () { return this; };\n }\n\n AsyncGenerator.prototype.next = function (arg) { return this._invoke("next", arg); };\n AsyncGenerator.prototype.throw = function (arg) { return this._invoke("throw", arg); };\n AsyncGenerator.prototype.return = function (arg) { return this._invoke("return", arg); };\n\n return {\n wrap: function (fn) {\n return function () {\n return new AsyncGenerator(fn.apply(this, arguments));\n };\n },\n await: function (value) {\n return new AwaitValue(value);\n }\n };\n\n })()\n'),a.asyncGeneratorDelegate=(0,o.default)('\n (function (inner, awaitWrap) {\n var iter = {}, waiting = false;\n\n function pump(key, value) {\n waiting = true;\n value = new Promise(function (resolve) { resolve(inner[key](value)); });\n return { done: false, value: awaitWrap(value) };\n };\n\n if (typeof Symbol === "function" && Symbol.iterator) {\n iter[Symbol.iterator] = function () { return this; };\n }\n\n iter.next = function (value) {\n if (waiting) {\n waiting = false;\n return value;\n }\n return pump("next", value);\n };\n\n if (typeof inner.throw === "function") {\n iter.throw = function (value) {\n if (waiting) {\n waiting = false;\n throw value;\n }\n return pump("throw", value);\n };\n }\n\n if (typeof inner.return === "function") {\n iter.return = function (value) {\n return pump("return", value);\n };\n }\n\n return iter;\n })\n'),a.asyncToGenerator=(0,o.default)('\n (function (fn) {\n return function () {\n var gen = fn.apply(this, arguments);\n return new Promise(function (resolve, reject) {\n function step(key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n return Promise.resolve(value).then(function (value) {\n step("next", value);\n }, function (err) {\n step("throw", err);\n });\n }\n }\n\n return step("next");\n });\n };\n })\n'),a.classCallCheck=(0,o.default)('\n (function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError("Cannot call a class as a function");\n }\n });\n'),a.createClass=(0,o.default)('\n (function() {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i ++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if ("value" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n })()\n'),a.defineEnumerableProperties=(0,o.default)('\n (function (obj, descs) {\n for (var key in descs) {\n var desc = descs[key];\n desc.configurable = desc.enumerable = true;\n if ("value" in desc) desc.writable = true;\n Object.defineProperty(obj, key, desc);\n }\n return obj;\n })\n'),a.defaults=(0,o.default)("\n (function (obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = Object.getOwnPropertyDescriptor(defaults, key);\n if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }\n return obj;\n })\n"),a.defineProperty=(0,o.default)("\n (function (obj, key, value) {\n // Shortcircuit the slow defineProperty path when possible.\n // We are trying to avoid issues where setters defined on the\n // prototype cause side effects under the fast path of simple\n // assignment. By checking for existence of the property with\n // the in operator, we can optimize most of this overhead away.\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n });\n"), -a.extends=(0,o.default)("\n Object.assign || (function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n })\n"),a.get=(0,o.default)('\n (function get(object, property, receiver) {\n if (object === null) object = Function.prototype;\n\n var desc = Object.getOwnPropertyDescriptor(object, property);\n\n if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);\n\n if (parent === null) {\n return undefined;\n } else {\n return get(parent, property, receiver);\n }\n } else if ("value" in desc) {\n return desc.value;\n } else {\n var getter = desc.get;\n\n if (getter === undefined) {\n return undefined;\n }\n\n return getter.call(receiver);\n }\n });\n'),a.inherits=(0,o.default)('\n (function (subClass, superClass) {\n if (typeof superClass !== "function" && superClass !== null) {\n throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n })\n'),a.instanceof=(0,o.default)('\n (function (left, right) {\n if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {\n return right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n });\n'),a.interopRequireDefault=(0,o.default)("\n (function (obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n })\n"),a.interopRequireWildcard=(0,o.default)("\n (function (obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n newObj.default = obj;\n return newObj;\n }\n })\n"),a.newArrowCheck=(0,o.default)('\n (function (innerThis, boundThis) {\n if (innerThis !== boundThis) {\n throw new TypeError("Cannot instantiate an arrow function");\n }\n });\n'),a.objectDestructuringEmpty=(0,o.default)('\n (function (obj) {\n if (obj == null) throw new TypeError("Cannot destructure undefined");\n });\n'),a.objectWithoutProperties=(0,o.default)("\n (function (obj, keys) {\n var target = {};\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n return target;\n })\n"),a.possibleConstructorReturn=(0,o.default)('\n (function (self, call) {\n if (!self) {\n throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");\n }\n return call && (typeof call === "object" || typeof call === "function") ? call : self;\n });\n'),a.selfGlobal=(0,o.default)('\n typeof global === "undefined" ? self : global\n'),a.set=(0,o.default)('\n (function set(object, property, value, receiver) {\n var desc = Object.getOwnPropertyDescriptor(object, property);\n\n if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);\n\n if (parent !== null) {\n set(parent, property, value, receiver);\n }\n } else if ("value" in desc && desc.writable) {\n desc.value = value;\n } else {\n var setter = desc.set;\n\n if (setter !== undefined) {\n setter.call(receiver, value);\n }\n }\n\n return value;\n });\n'),a.slicedToArray=(0,o.default)('\n (function () {\n // Broken out into a separate function to avoid deoptimizations due to the try/catch for the\n // array iterator case.\n function sliceIterator(arr, i) {\n // this is an expanded form of `for...of` that properly supports abrupt completions of\n // iterators etc. variable names have been minimised to reduce the size of this massive\n // helper. sometimes spec compliancy is annoying :(\n //\n // _n = _iteratorNormalCompletion\n // _d = _didIteratorError\n // _e = _iteratorError\n // _i = _iterator\n // _s = _step\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i["return"]) _i["return"]();\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (Symbol.iterator in Object(arr)) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError("Invalid attempt to destructure non-iterable instance");\n }\n };\n })();\n'),a.slicedToArrayLoose=(0,o.default)('\n (function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (Symbol.iterator in Object(arr)) {\n var _arr = [];\n for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {\n _arr.push(_step.value);\n if (i && _arr.length === i) break;\n }\n return _arr;\n } else {\n throw new TypeError("Invalid attempt to destructure non-iterable instance");\n }\n });\n'),a.taggedTemplateLiteral=(0,o.default)("\n (function (strings, raw) {\n return Object.freeze(Object.defineProperties(strings, {\n raw: { value: Object.freeze(raw) }\n }));\n });\n"),a.taggedTemplateLiteralLoose=(0,o.default)("\n (function (strings, raw) {\n strings.raw = raw;\n return strings;\n });\n"),a.temporalRef=(0,o.default)('\n (function (val, name, undef) {\n if (val === undef) {\n throw new ReferenceError(name + " is not defined - temporal dead zone");\n } else {\n return val;\n }\n })\n'),a.temporalUndefined=(0,o.default)("\n ({})\n"),a.toArray=(0,o.default)("\n (function (arr) {\n return Array.isArray(arr) ? arr : Array.from(arr);\n });\n"),a.toConsumableArray=(0,o.default)("\n (function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n return arr2;\n } else {\n return Array.from(arr);\n }\n });\n"),e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{pre:function(e){e.set("helpersNamespace",t.identifier("babelHelpers"))}}},e.exports=t.default},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var t=e.types;return{visitor:{Identifier:function(e,r){if("MemberExpression"!==e.parent.type&&"ClassMethod"!==e.parent.type&&!e.isPure()&&r.opts.hasOwnProperty(e.node.name)){var i=r.opts[e.node.name];if(void 0!==i){var o="undefined"==typeof i?"undefined":n(i);if("boolean"===o)e.replaceWith(t.booleanLiteral(i));else{var a=String(i);e.replaceWith(t.stringLiteral(a))}}}}}}}},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("dynamicImport")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("functionSent")}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{inherits:n(65)}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){var t=e.types,r={Function:function(e){e.skip()},YieldExpression:function(e,n){var r=e.node;if(r.delegate){var i=n.addHelper("asyncGeneratorDelegate");r.argument=t.callExpression(i,[t.callExpression(n.addHelper("asyncIterator"),[r.argument]),t.memberExpression(n.addHelper("asyncGenerator"),t.identifier("await"))])}}};return{inherits:n(191),visitor:{Function:function(e,n){e.node.async&&e.node.generator&&(e.traverse(r,n),(0,o.default)(e,n.file,{wrapAsync:t.memberExpression(n.addHelper("asyncGenerator"),t.identifier("wrap")),wrapAwait:t.memberExpression(n.addHelper("asyncGenerator"),t.identifier("await"))}))}}}};var i=n(122),o=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(){return{inherits:n(65),visitor:{Function:function(e,t){e.node.async&&!e.node.generator&&(0,o.default)(e,t.file,{wrapAsync:t.addImport(t.opts.module,t.opts.method)})}}}};var i=n(122),o=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e,t){if(!t.applyDecoratedDescriptor){t.applyDecoratedDescriptor=e.scope.generateUidIdentifier("applyDecoratedDescriptor");var n=p({NAME:t.applyDecoratedDescriptor});e.scope.getProgramParent().path.unshiftContainer("body",n)}return t.applyDecoratedDescriptor}function r(e,t){if(!t.initializerDefineProp){t.initializerDefineProp=e.scope.generateUidIdentifier("initDefineProp");var n=f({NAME:t.initializerDefineProp});e.scope.getProgramParent().path.unshiftContainer("body",n)}return t.initializerDefineProp}function i(e,t){if(!t.initializerWarningHelper){t.initializerWarningHelper=e.scope.generateUidIdentifier("initializerWarningHelper");var n=c({NAME:t.initializerWarningHelper});e.scope.getProgramParent().path.unshiftContainer("body",n)}return t.initializerWarningHelper}function o(e){var t=(e.isClass()?[e].concat(e.get("body.body")):e.get("properties")).reduce(function(e,t){return e.concat(t.node.decorators||[])},[]),n=t.filter(function(e){return!g.isIdentifier(e.expression)});if(0!==n.length)return g.sequenceExpression(n.map(function(t){var n=t.expression,r=t.expression=e.scope.generateDeclaredUidIdentifier("dec");return g.assignmentExpression("=",r,n)}).concat([e.node]))}function d(e,t){var n=e.node.decorators||[];if(e.node.decorators=null,0!==n.length){var r=e.scope.generateDeclaredUidIdentifier("class");return n.map(function(e){return e.expression}).reverse().reduce(function(e,t){return a({CLASS_REF:r,DECORATOR:t,INNER:e}).expression},e.node)}}function h(e,t){var n=e.node.body.body.some(function(e){return(e.decorators||[]).length>0});if(n)return m(e,t,e.node.body.body)}function v(e,t){var n=e.node.properties.some(function(e){return(e.decorators||[]).length>0});if(n)return m(e,t,e.node.properties)}function m(e,n,r){var o=(e.scope.generateDeclaredUidIdentifier("desc"),e.scope.generateDeclaredUidIdentifier("value"),e.scope.generateDeclaredUidIdentifier(e.isClass()?"class":"obj")),a=r.reduce(function(r,a){var c=a.decorators||[];if(a.decorators=null,0===c.length)return r;if(a.computed)throw e.buildCodeFrameError("Computed method/property decorators are not yet supported.");var f=g.isLiteral(a.key)?a.key:g.stringLiteral(a.key.name),p=e.isClass()&&!a.static?s({CLASS_REF:o}).expression:o;if(g.isClassProperty(a,{static:!1})){var d=e.scope.generateDeclaredUidIdentifier("descriptor"),h=a.value?g.functionExpression(null,[],g.blockStatement([g.returnStatement(a.value)])):g.nullLiteral();a.value=g.callExpression(i(e,n),[d,g.thisExpression()]),r=r.concat([g.assignmentExpression("=",d,g.callExpression(t(e,n),[p,f,g.arrayExpression(c.map(function(e){return e.expression})),g.objectExpression([g.objectProperty(g.identifier("enumerable"),g.booleanLiteral(!0)),g.objectProperty(g.identifier("initializer"),h)])]))])}else r=r.concat(g.callExpression(t(e,n),[p,f,g.arrayExpression(c.map(function(e){return e.expression})),g.isObjectProperty(a)||g.isClassProperty(a,{static:!0})?l({TEMP:e.scope.generateDeclaredUidIdentifier("init"),TARGET:p,PROPERTY:f}).expression:u({TARGET:p,PROPERTY:f}).expression,p]));return r},[]);return g.sequenceExpression([g.assignmentExpression("=",o,e.node),g.sequenceExpression(a),o])}var g=e.types;return{inherits:n(123),visitor:{ExportDefaultDeclaration:function(e){if(e.get("declaration").isClassDeclaration()){var t=e.node,n=t.declaration.id||e.scope.generateUidIdentifier("default");t.declaration.id=n,e.replaceWith(t.declaration),e.insertAfter(g.exportNamedDeclaration(null,[g.exportSpecifier(n,g.identifier("default"))]))}},ClassDeclaration:function(e){var t=e.node,n=t.id||e.scope.generateUidIdentifier("class");e.replaceWith(g.variableDeclaration("let",[g.variableDeclarator(n,g.toExpression(t))]))},ClassExpression:function(e,t){var n=o(e)||d(e,t)||h(e,t);n&&e.replaceWith(n)},ObjectExpression:function(e,t){var n=o(e)||v(e,t);n&&e.replaceWith(n)},AssignmentExpression:function(e,t){t.initializerWarningHelper&&e.get("left").isMemberExpression()&&e.get("left.property").isIdentifier()&&e.get("right").isCallExpression()&&e.get("right.callee").isIdentifier({name:t.initializerWarningHelper.name})&&e.replaceWith(g.callExpression(r(e,t),[e.get("left.object").node,g.stringLiteral(e.get("left.property").node.name),e.get("right.arguments")[0].node,e.get("right.arguments")[1].node]))}}}};var i=n(4),o=r(i),a=(0,o.default)("\n DECORATOR(CLASS_REF = INNER) || CLASS_REF;\n"),s=(0,o.default)("\n CLASS_REF.prototype;\n"),u=(0,o.default)("\n Object.getOwnPropertyDescriptor(TARGET, PROPERTY);\n"),l=(0,o.default)("\n (TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {\n enumerable: true,\n configurable: true,\n writable: true,\n initializer: function(){\n return TEMP;\n }\n })\n"),c=(0,o.default)("\n function NAME(descriptor, context){\n throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');\n }\n"),f=(0,o.default)("\n function NAME(target, property, descriptor, context){\n if (!descriptor) return;\n\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0,\n });\n }\n"),p=(0,o.default)("\n function NAME(target, property, decorators, descriptor, context){\n var desc = {};\n Object['ke' + 'ys'](descriptor).forEach(function(key){\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n if ('value' in desc || desc.initializer){\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function(desc, decorator){\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0){\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0){\n // This is a hack to avoid this being processed by 'transform-runtime'.\n // See issue #9.\n Object['define' + 'Property'](target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n")},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){var n=t._guessExecutionStatusRelativeTo(e);return"before"===n?"inside":"after"===n?"outside":"maybe"}function o(e,t){return u.callExpression(t.addHelper("temporalRef"),[e,u.stringLiteral(e.name),t.addHelper("temporalUndefined")])}function a(e,t,n){var r=n.letReferences[e.name];return!!r&&t.getBindingIdentifier(e.name)===r}t.__esModule=!0,t.visitor=void 0;var s=n(1),u=r(s);t.visitor={ReferencedIdentifier:function(e,t){if(this.file.opts.tdz){var n=e.node,r=e.parent,s=e.scope;if(!e.parentPath.isFor({left:n})&&a(n,s,t)){var l=s.getBinding(n.name).path,c=i(e,l);if("inside"!==c)if("maybe"===c){var f=o(n,t.file);if(l.parent._tdzThis=!0,e.skip(),e.parentPath.isUpdateExpression()){if(r._ignoreBlockScopingTDZ)return;e.parentPath.replaceWith(u.sequenceExpression([f,r]))}else e.replaceWith(f)}else"outside"===c&&e.replaceWith(u.throwStatement(u.inherits(u.newExpression(u.identifier("ReferenceError"),[u.stringLiteral(n.name+" is not defined - temporal dead zone")]),n)))}}},AssignmentExpression:{exit:function(e,t){if(this.file.opts.tdz){var n=e.node;if(!n._ignoreBlockScopingTDZ){var r=[],i=e.getBindingIdentifiers();for(var s in i){var l=i[s];a(l,e.scope,t)&&r.push(o(l,t.file))}r.length&&(n._ignoreBlockScopingTDZ=!0,r.push(n),e.replaceWithMultiple(r.map(u.expressionStatement)))}}}}}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(3),a=i(o),s=n(42),u=i(s),l=n(41),c=i(l),f=n(40),p=i(f),d=n(203),h=i(d),v=n(1),m=r(v),g=function(e){function t(){(0,a.default)(this,t);var n=(0,u.default)(this,e.apply(this,arguments));return n.isLoose=!0,n}return(0,c.default)(t,e),t.prototype._processMethod=function(e,t){if(!e.decorators){var n=this.classRef;e.static||(n=m.memberExpression(n,m.identifier("prototype")));var r=m.memberExpression(n,e.key,e.computed||m.isLiteral(e.key)),i=m.functionExpression(null,e.params,e.body,e.generator,e.async);i.returnType=e.returnType;var o=m.toComputedKey(e,e.key);m.isStringLiteral(o)&&(i=(0,p.default)({node:i,id:o,scope:t}));var a=m.expressionStatement(m.assignmentExpression("=",r,i));return m.inheritsComments(a,e),this.body.push(a),!0}},t}(h.default);t.default=g,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{BinaryExpression:function(e){var n=e.node;"instanceof"===n.operator&&e.replaceWith(t.callExpression(this.addHelper("instanceof"),[n.left,n.right]))}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){for(var t=e.params,n=Array.isArray(t),r=0,t=n?t:(0,u.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;if(!m.isIdentifier(o))return!0}return!1}function a(e,t){if(!e.hasOwnBinding(t.name))return!0;var n=e.getOwnBinding(t.name),r=n.kind;return"param"===r||"local"===r}t.__esModule=!0,t.visitor=void 0;var s=n(2),u=i(s),l=n(185),c=i(l),f=n(313),p=i(f),d=n(4),h=i(d),v=n(1),m=r(v),g=(0,h.default)("\n let VARIABLE_NAME =\n ARGUMENTS.length > ARGUMENT_KEY && ARGUMENTS[ARGUMENT_KEY] !== undefined ?\n ARGUMENTS[ARGUMENT_KEY]\n :\n DEFAULT_VALUE;\n"),y=(0,h.default)("\n let $0 = $1[$2];\n"),b={ReferencedIdentifier:function(e,t){var n=e.scope,r=e.node;"eval"!==r.name&&a(n,r)||(t.iife=!0,e.stop())},Scope:function(e){e.skip()}};t.visitor={Function:function(e){function t(e,t,r){var i=g({VARIABLE_NAME:e,DEFAULT_VALUE:t,ARGUMENT_KEY:m.numericLiteral(r),ARGUMENTS:u});i._blockHoist=n.params.length-r,s.push(i)}var n=e.node,r=e.scope;if(o(n)){e.ensureBlock();var i={iife:!1,scope:r},s=[],u=m.identifier("arguments");u._shadowedFunctionLiteral=e;for(var l=(0,c.default)(n),f=e.get("params"),d=0;d=l||v.isPattern()){var E=r.generateUidIdentifier("x");E._isDefaultPlaceholder=!0,n.params[d]=E}else n.params[d]=v.node;i.iife||(x.isIdentifier()&&!a(r,x.node)?i.iife=!0:x.traverse(b,i)),t(v.node,x.node,d)}else i.iife||h.isIdentifier()||h.traverse(b,i)}for(var w=l+1;w",p,c),d.binaryExpression("-",p,c),d.numericLiteral(0)));var g=h({ARGUMENTS:i,ARRAY_KEY:v,ARRAY_LEN:m,START:c,ARRAY:r,KEY:f,LEN:p});if(u.deopted)g._blockHoist=t.params.length+1,t.body.body.unshift(g);else{g._blockHoist=1;var b=e.getEarliestCommonAncestorFrom(u.references).getStatementParent();b.findParent(function(e){return e.isLoop()?void(b=e):e.isFunction()}),b.insertBefore(g)}}else for(var x=u.candidates,E=Array.isArray(x),w=0,x=E?x:(0,l.default)(x);;){var A;if(E){if(w>=x.length)break;A=x[w++]}else{if(w=x.next(),w.done)break;A=w.value}var _=A,C=_.path,S=_.cause;switch(S){case"indexGetter":a(C,i,u.offset);break;case"lengthGetter":s(C,i,u.offset);break;default:C.replaceWith(i)}}}}}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{MemberExpression:{exit:function(e){var n=e.node,r=n.property;n.computed||!t.isIdentifier(r)||t.isValidIdentifier(r.name)||(n.property=t.stringLiteral(r.name),n.computed=!0)}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{ObjectProperty:{exit:function(e){var n=e.node,r=n.key;n.computed||!t.isIdentifier(r)||t.isValidIdentifier(r.name)||(n.key=t.stringLiteral(r.name))}}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(2),a=i(o);t.default=function(e){var t=e.types;return{visitor:{ObjectExpression:function(e,n){for(var r=e.node,i=!1,o=r.properties,s=Array.isArray(o),l=0,o=s?o:(0,a.default)(o);;){var c;if(s){if(l>=o.length)break;c=o[l++]}else{if(l=o.next(),l.done)break;c=l.value}var f=c;if("get"===f.kind||"set"===f.kind){i=!0;break}}if(i){var p={};r.properties=r.properties.filter(function(e){return!!(e.computed||"get"!==e.kind&&"set"!==e.kind)||(u.push(p,e,null,n),!1)}),e.replaceWith(t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("defineProperties")),[r,u.toDefineObject(p)]))}}}}};var s=n(184),u=r(s);e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.parse,n=e.traverse;return{visitor:{CallExpression:function(e){if(e.get("callee").isIdentifier({name:"eval"})&&1===e.node.arguments.length){var r=e.get("arguments")[0].evaluate();if(!r.confident)return;var i=r.value;if("string"!=typeof i)return;var o=t(i);return n.removeProperties(o),o.program}}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){function t(e,t){e.addComment("trailing",r(e,t)),e.replaceWith(i.noop())}function r(e,t){var n=e.getSource().replace(/\*-\//g,"*-ESCAPED/").replace(/\*\//g,"*-/");return t&&t.optional&&(n="?"+n),":"!==n[0]&&(n=":: "+n),n}var i=e.types;return{inherits:n(124),visitor:{TypeCastExpression:function(e){var t=e.node;e.get("expression").addComment("trailing",r(e.get("typeAnnotation"))),e.replaceWith(i.parenthesizedExpression(t.expression))},Identifier:function(e){var t=e.node;t.optional&&!t.typeAnnotation&&e.addComment("trailing",":: ?")},AssignmentPattern:{exit:function(e){var t=e.node;t.left.optional=!1}},Function:{exit:function(e){var t=e.node;t.params.forEach(function(e){return e.optional=!1})}},ClassProperty:function(e){var n=e.node,r=e.parent;n.value||t(e,r)},"ExportNamedDeclaration|Flow":function(e){var n=e.node,r=e.parent;i.isExportNamedDeclaration(n)&&!i.isFlow(n.declaration)||t(e,r)},ImportDeclaration:function(e){var n=e.node,r=e.parent;i.isImportDeclaration(n)&&"type"!==n.importKind&&"typeof"!==n.importKind||t(e,r)}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{FunctionExpression:{exit:function(e){var n=e.node;n.id&&(n._ignoreUserWhitespace=!0,e.replaceWith(t.callExpression(t.functionExpression(null,[],t.blockStatement([t.toStatement(n),t.returnStatement(n.id)])),[])))}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{CallExpression:function(e,t){e.get("callee").matchesPattern("Object.assign")&&(e.node.callee=t.addHelper("extends"))}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{CallExpression:function(e,t){e.get("callee").matchesPattern("Object.setPrototypeOf")&&(e.node.callee=t.addHelper("defaults"))}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(2),o=r(i);t.default=function(e){function t(e){return i.isLiteral(i.toComputedKey(e,e.key),{value:"__proto__"})}function n(e){var t=e.left;return i.isMemberExpression(t)&&i.isLiteral(i.toComputedKey(t,t.property),{value:"__proto__"})}function r(e,t,n){return i.expressionStatement(i.callExpression(n.addHelper("defaults"),[t,e.right]))}var i=e.types;return{visitor:{AssignmentExpression:function(e,t){if(n(e.node)){var o=[],a=e.node.left.object,s=e.scope.maybeGenerateMemoised(a);s&&o.push(i.expressionStatement(i.assignmentExpression("=",s,a))),o.push(r(e.node,s||a,t)),s&&o.push(s),e.replaceWithMultiple(o)}},ExpressionStatement:function(e,t){var o=e.node.expression;i.isAssignmentExpression(o,{operator:"="})&&n(o)&&e.replaceWith(r(o,o.left.object,t))},ObjectExpression:function(e,n){for(var r=void 0,a=e.node,u=a.properties,l=Array.isArray(u),c=0,u=l?u:(0,o.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;t(p)&&(r=p.value,(0,s.default)(a.properties,p))}if(r){var d=[i.objectExpression([]),r];a.properties.length&&d.push(a),e.replaceWith(i.callExpression(n.addHelper("extends"),d))}}}}};var a=n(272),s=r(a);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(11),o=r(i);t.default=function(e){var t=e.types,n={enter:function(e,n){var r=function(){n.isImmutable=!1,e.stop()};if(e.isJSXClosingElement())return void e.skip();if(e.isJSXIdentifier({name:"ref"})&&e.parentPath.isJSXAttribute({name:e.node}))return r();if(!(e.isJSXIdentifier()||e.isIdentifier()||e.isJSXMemberExpression()||e.isImmutable())){if(e.isPure()){var i=e.evaluate();if(i.confident){var a=i.value,s=a&&"object"===("undefined"==typeof a?"undefined":(0,o.default)(a))||"function"==typeof a;if(!s)return}else if(t.isIdentifier(i.deopt))return}r()}}};return{visitor:{JSXElement:function(e){if(!e.node._hoisted){var t={isImmutable:!0};e.traverse(n,t),t.isImmutable?e.hoist():e.node._hoisted=!0}}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(2),o=r(i);t.default=function(e){function t(e){for(var t=0;t=d.length)break; -m=d[v++]}else{if(v=d.next(),v.done)break;m=v.value}var g=m;if(n(g,"key"))f=r(g);else{var y=g.name.name,b=i.isValidIdentifier(y)?i.identifier(y):i.stringLiteral(y);s(c.properties,b,r(g))}}var x=[p,c];if(f||u.children.length){var E=i.react.buildChildren(u);x.push.apply(x,[f||i.unaryExpression("void",i.numericLiteral(0),!0)].concat(E))}var w=i.callExpression(a.addHelper("jsx"),x);e.replaceWith(w)}}}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){var t=e.types;return{manipulateOptions:function(e,t){t.plugins.push("jsx")},visitor:(0,o.default)({pre:function(e){e.callee=e.tagExpr},post:function(e){t.react.isCompatTag(e.tagName)&&(e.call=t.callExpression(t.memberExpression(t.memberExpression(t.identifier("React"),t.identifier("DOM")),e.tagExpr,t.isLiteral(e.tagExpr)),e.args))}})}};var i=n(344),o=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){function t(e,n){if(u.isJSXIdentifier(e)){if("this"===e.name&&u.isReferenced(e,n))return u.thisExpression();if(!a.default.keyword.isIdentifierNameES6(e.name))return u.stringLiteral(e.name);e.type="Identifier"}else if(u.isJSXMemberExpression(e))return u.memberExpression(t(e.object,e),t(e.property,e));return e}function n(e){return u.isJSXExpressionContainer(e)?e.expression:e}function r(e){var t=n(e.value||u.booleanLiteral(!0));return u.isStringLiteral(t)&&!u.isJSXExpressionContainer(e.value)&&(t.value=t.value.replace(/\n\s+/g," ")),u.isValidIdentifier(e.name.name)?e.name.type="Identifier":e.name=u.stringLiteral(e.name.name),u.inherits(u.objectProperty(e.name,t),e)}function i(n,r){n.parent.children=u.react.buildChildren(n.parent);var i=t(n.node.name,n.node),a=[],s=void 0;u.isIdentifier(i)?s=i.name:u.isLiteral(i)&&(s=i.value);var l={tagExpr:i,tagName:s,args:a};e.pre&&e.pre(l,r);var c=n.node.attributes;return c=c.length?o(c,r):u.nullLiteral(),a.push(c),e.post&&e.post(l,r),l.call||u.callExpression(l.callee,a)}function o(e,t){function n(){i.length&&(o.push(u.objectExpression(i)),i=[])}var i=[],o=[],a=t.opts.useBuiltIns||!1;if("boolean"!=typeof a)throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");for(;e.length;){var s=e.shift();u.isJSXSpreadAttribute(s)?(n(),o.push(s.argument)):i.push(r(s))}if(n(),1===o.length)e=o[0];else{u.isObjectExpression(o[0])||o.unshift(u.objectExpression([]));var l=a?u.memberExpression(u.identifier("Object"),u.identifier("assign")):t.addHelper("extends");e=u.callExpression(l,o)}return e}var s={};return s.JSXNamespacedName=function(e){throw e.buildCodeFrameError("Namespace tags are not supported. ReactJSX is not XML.")},s.JSXElement={exit:function(e,t){var n=i(e.get("openingElement"),t);n.arguments=n.arguments.concat(e.node.children),n.arguments.length>=3&&(n._prettyCall=!0),e.replaceWith(u.inherits(n,e.node))}},s};var o=n(96),a=i(o),s=n(1),u=r(s);e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types,r={JSXOpeningElement:function(e){var r=e.node,i=t.jSXIdentifier(n),o=t.thisExpression();r.attributes.push(t.jSXAttribute(i,t.jSXExpressionContainer(o)))}};return{visitor:r}};var n="__self";e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){function t(e,t){var n=null!=t?i.numericLiteral(t):i.nullLiteral(),r=i.objectProperty(i.identifier("fileName"),e),o=i.objectProperty(i.identifier("lineNumber"),n);return i.objectExpression([r,o])}var i=e.types,o={JSXOpeningElement:function(e,o){var a=i.jSXIdentifier(n),s=e.container.openingElement.loc;if(s){for(var u=e.container.openingElement.attributes,l=0;l3||c<=u||(s=l,u=c)}var f=void 0;throw f=s?t.get("undeclaredVariableSuggestion",n.name,s):t.get("undeclaredVariable",n.name),e.buildCodeFrameError(f,ReferenceError)}}}}};var i=n(462),o=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(207),o=r(i);t.default={plugins:[o.default]},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{presets:[t.es2015!==!1&&[o.default.buildPreset,t.es2015],t.es2016!==!1&&s.default,t.es2017!==!1&&l.default].filter(Boolean)}};var i=n(213),o=r(i),a=n(214),s=r(a),u=n(215),l=r(u);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(351),o=r(i),a=n(211),s=r(a),u=n(125),l=r(u),c=n(210),f=r(c);t.default={presets:[o.default],plugins:[s.default,l.default,f.default],env:{development:{plugins:[]}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(216),o=r(i),a=n(202),s=r(a),u=n(208),l=r(u);t.default={presets:[o.default],plugins:[s.default,l.default]},e.exports=t.default},function(e,t,n){"use strict";e.exports={default:n(403),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(406),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(408),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(409),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(411),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(412),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(413),__esModule:!0}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(2),a=i(o),s=n(3),u=i(s),l=n(35),c=i(l),f=n(1),p=r(f),d=!1,h=function(){function e(t,n,r,i){(0,u.default)(this,e),this.queue=null,this.parentPath=i,this.scope=t,this.state=r,this.opts=n}return e.prototype.shouldVisit=function(e){var t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;var n=p.VISITOR_KEYS[e.type];if(!n||!n.length)return!1;for(var r=n,i=Array.isArray(r),o=0,r=i?r:(0,a.default)(r);;){var s;if(i){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}var u=s;if(e[u])return!0}return!1},e.prototype.create=function(e,t,n,r){return c.default.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:r})},e.prototype.maybeQueue=function(e,t){if(this.trap)throw new Error("Infinite cycle detected");this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))},e.prototype.visitMultiple=function(e,t,n){if(0===e.length)return!1;for(var r=[],i=0;i=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}var u=s;if(u.resync(),0!==u.contexts.length&&u.contexts[u.contexts.length-1]===this||u.pushContext(this),null!==u.key&&(d&&e.length>=1e4&&(this.trap=!0),!(t.indexOf(u.node)>=0))){if(t.push(u.node),u.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(var l=e,c=Array.isArray(l),f=0,l=c?l:(0,a.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var h=p;h.popContext()}return this.queue=null,n},e.prototype.visit=function(e,t){var n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))},e}();t.default=h,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){for(var t=this;t=t.parentPath;)if(e(t))return t;return null}function a(e){var t=this;do if(e(t))return t;while(t=t.parentPath);return null}function s(){return this.findParent(function(e){return e.isFunction()||e.isProgram()})}function u(){var e=this;do if(Array.isArray(e.container))return e;while(e=e.parentPath)}function l(e){return this.getDeepestCommonAncestorFrom(e,function(e,t,n){for(var r=void 0,i=b.VISITOR_KEYS[e.type],o=n,a=Array.isArray(o),s=0,o=a?o:(0,g.default)(o);;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if(s=o.next(),s.done)break;u=s.value}var l=u,c=l[t+1];if(r)if(c.listKey&&r.listKey===c.listKey&&c.keyp&&(r=c)}else r=c}return r})}function c(e,t){var n=this;if(!e.length)return this;if(1===e.length)return e[0];var r=1/0,i=void 0,o=void 0,a=e.map(function(e){var t=[];do t.unshift(e);while((e=e.parentPath)&&e!==n);return t.length=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}var h=d;if(h[u]!==l)break e}i=u,o=l}if(o)return t?t(o,i,a):o;throw new Error("Couldn't find intersection")}function f(){var e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function p(e){return e.isDescendant(this)}function d(e){return!!this.findParent(function(t){return t===e})}function h(){for(var e=this;e;){for(var t=arguments,n=Array.isArray(t),r=0,t=n?t:(0,g.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;if(e.node.type===o)return!0}e=e.parentPath}return!1}function v(e){var t=this.isFunction()?this:this.findParent(function(e){return e.isFunction()});if(t){if(t.isFunctionExpression()||t.isFunctionDeclaration()){var n=t.node.shadow;if(n&&(!e||n[e]!==!1))return t}else if(t.isArrowFunctionExpression())return t;return null}}t.__esModule=!0;var m=n(2),g=i(m);t.findParent=o,t.find=a,t.getFunctionParent=s,t.getStatementParent=u,t.getEarliestCommonAncestorFrom=l,t.getDeepestCommonAncestorFrom=c,t.getAncestry=f,t.isAncestor=p,t.isDescendant=d,t.inType=h,t.inShadow=v;var y=n(1),b=r(y),x=n(35);i(x)},function(e,t){"use strict";function n(){if("string"!=typeof this.key){var e=this.node;if(e){var t=e.trailingComments,n=e.leadingComments;if(t||n){var r=this.getSibling(this.key-1),i=this.getSibling(this.key+1);r.node||(r=i),i.node||(i=r),r.addComments("trailing",n),i.addComments("leading",t)}}}}function r(e,t,n){this.addComments(e,[{type:n?"CommentLine":"CommentBlock",value:t}])}function i(e,t){if(t){var n=this.node;if(n){var r=e+"Comments";n[r]?n[r]=n[r].concat(t):n[r]=t}}}t.__esModule=!0,t.shareCommentsWithSiblings=n,t.addComment=r,t.addComments=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=this.opts;return this.debug(function(){return e}),!(!this.node||!this._call(t[e]))||!!this.node&&this._call(t[this.node.type]&&t[this.node.type][e])}function o(e){if(!e)return!1;for(var t=e,n=Array.isArray(t),r=0,t=n?t:(0,C.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;if(o){var a=this.node;if(!a)return!0;var s=o.call(this.state,this,this.state);if(s)throw new Error("Unexpected return value from visitor method "+o);if(this.node!==a)return!0;if(this.shouldStop||this.shouldSkip||this.removed)return!0}}return!1}function a(){var e=this.opts.blacklist;return e&&e.indexOf(this.node.type)>-1}function s(){return!!this.node&&(!this.isBlacklisted()&&((!this.opts.shouldSkip||!this.opts.shouldSkip(this))&&(this.call("enter")||this.shouldSkip?(this.debug(function(){return"Skip..."}),this.shouldStop):(this.debug(function(){return"Recursing into..."}),k.default.node(this.node,this.opts,this.scope,this.state,this,this.skipKeys),this.call("exit"),this.shouldStop))))}function u(){this.shouldSkip=!0}function l(e){this.skipKeys[e]=!0}function c(){this.shouldStop=!0,this.shouldSkip=!0}function f(){if(!this.opts||!this.opts.noScope){var e=this.context&&this.context.scope;if(!e)for(var t=this.parentPath;t&&!e;){if(t.opts&&t.opts.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope&&this.scope.init()}}function p(e){return this.shouldSkip=!1,this.shouldStop=!1,this.removed=!1,this.skipKeys={},e&&(this.context=e,this.state=e.state,this.opts=e.opts),this.setScope(),this}function d(){this.removed||(this._resyncParent(),this._resyncList(),this._resyncKey())}function h(){this.parentPath&&(this.parent=this.parentPath.node)}function v(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:this;if(!e.removed)for(var t=this.contexts,n=t,r=Array.isArray(n),i=0,n=r?n:(0,C.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;a.maybeQueue(e)}}function A(){for(var e=this,t=this.contexts;!t.length;)e=e.parentPath,t=e.contexts;return t}t.__esModule=!0;var _=n(2),C=r(_);t.call=i,t._call=o,t.isBlacklisted=a,t.visit=s,t.skip=u,t.skipKey=l,t.stop=c,t.setScope=f,t.setContext=p,t.resync=d,t._resyncParent=h,t._resyncKey=v,t._resyncList=m,t._resyncRemoved=g,t.popContext=y,t.pushContext=b,t.setup=x,t.setKey=E,t.requeue=w,t._getQueueContexts=A;var S=n(7),k=r(S)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(){var e=this.node,t=void 0;if(this.isMemberExpression())t=e.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");t=e.key}return e.computed||u.isIdentifier(t)&&(t=u.stringLiteral(t.name)),t}function o(){return u.ensureBlock(this.node)}function a(){if(this.isArrowFunctionExpression()){this.ensureBlock();var e=this.node;e.expression=!1,e.type="FunctionExpression",e.shadow=e.shadow||!0}}t.__esModule=!0,t.toComputedKey=i,t.ensureBlock=o,t.arrowFunctionToShadowed=a;var s=n(1),u=r(s)},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=this.evaluate();if(e.confident)return!!e.value}function o(){function t(e){i&&(o=e,i=!1)}function n(e){var n=e.node;if(a.has(n)){var o=a.get(n);return o.resolved?o.value:void t(e)}var s={resolved:!1};a.set(n,s);var u=r(e);return i&&(s.resolved=!0,s.value=u),u}function r(r){if(i){var o=r.node;if(r.isSequenceExpression()){var a=r.get("expressions");return n(a[a.length-1])}if(r.isStringLiteral()||r.isNumericLiteral()||r.isBooleanLiteral())return o.value;if(r.isNullLiteral())return null;if(r.isTemplateLiteral()){for(var u="",c=0,f=r.get("expressions"),h=o.quasis,v=Array.isArray(h),m=0,h=v?h:(0,l.default)(h);;){var g;if(v){if(m>=h.length)break;g=h[m++]}else{if(m=h.next(),m.done)break;g=m.value}var y=g;if(!i)break;u+=y.value.cooked;var b=f[c++];b&&(u+=String(n(b)))}if(!i)return;return u}if(r.isConditionalExpression()){var x=n(r.get("test"));if(!i)return;return n(x?r.get("consequent"):r.get("alternate"))}if(r.isExpressionWrapper())return n(r.get("expression"));if(r.isMemberExpression()&&!r.parentPath.isCallExpression({callee:o})){var E=r.get("property"),w=r.get("object");if(w.isLiteral()&&E.isIdentifier()){var A=w.node.value,_="undefined"==typeof A?"undefined":(0,s.default)(A);if("number"===_||"string"===_)return A[E.node.name]}}if(r.isReferencedIdentifier()){var C=r.scope.getBinding(o.name);if(C&&C.constantViolations.length>0)return t(C.path);if(C&&r.node.start=T.length)break;N=T[R++]}else{if(R=T.next(),R.done)break;N=R.value}var F=N;if(F=F.evaluate(),!F.confident)return t(F);P.push(F.value)}return P}if(r.isObjectExpression()){for(var I={},L=r.get("properties"),j=L,B=Array.isArray(j),U=0,j=B?j:(0,l.default)(j);;){var V;if(B){if(U>=j.length)break;V=j[U++]}else{if(U=j.next(),U.done)break;V=U.value}var W=V;if(W.isObjectMethod()||W.isSpreadProperty())return t(W);var q=W.get("key"),H=q;if(W.node.computed){if(H=H.evaluate(),!H.confident)return t(q);H=H.value}else H=H.isIdentifier()?H.node.name:H.node.value;var G=W.get("value"),z=G.evaluate();if(!z.confident)return t(G);z=z.value,I[H]=z}return I}if(r.isLogicalExpression()){var Y=i,K=n(r.get("left")),X=i;i=Y;var $=n(r.get("right")),J=i;switch(i=X&&J,o.operator){case"||":if(K&&X)return i=!0,K;if(!i)return;return K||$;case"&&":if((!K&&X||!$&&J)&&(i=!0),!i)return;return K&&$}}if(r.isBinaryExpression()){var Q=n(r.get("left"));if(!i)return;var Z=n(r.get("right"));if(!i)return;switch(o.operator){case"-":return Q-Z;case"+":return Q+Z;case"/":return Q/Z;case"*":return Q*Z;case"%":return Q%Z;case"**":return Math.pow(Q,Z);case"<":return Q":return Q>Z;case"<=":return Q<=Z;case">=":return Q>=Z;case"==":return Q==Z;case"!=":return Q!=Z;case"===":return Q===Z;case"!==":return Q!==Z;case"|":return Q|Z;case"&":return Q&Z;case"^":return Q^Z;case"<<":return Q<>":return Q>>Z;case">>>":return Q>>>Z}}if(r.isCallExpression()){var ee=r.get("callee"),te=void 0,ne=void 0;if(ee.isIdentifier()&&!r.scope.getBinding(ee.node.name,!0)&&p.indexOf(ee.node.name)>=0&&(ne=e[o.callee.name]),ee.isMemberExpression()){var re=ee.get("object"),ie=ee.get("property");if(re.isIdentifier()&&ie.isIdentifier()&&p.indexOf(re.node.name)>=0&&d.indexOf(ie.node.name)<0&&(te=e[re.node.name],ne=te[ie.node.name]),re.isLiteral()&&ie.isIdentifier()){var oe=(0,s.default)(re.node.value);"string"!==oe&&"number"!==oe||(te=re.node.value,ne=te[ie.node.name])}}if(ne){var ae=r.get("arguments").map(n);if(!i)return;return ne.apply(te,ae)}}t(r)}}var i=!0,o=void 0,a=new f.default,u=n(this);return i||(u=void 0),{confident:i,deopt:o,value:u}}t.__esModule=!0;var a=n(11),s=r(a),u=n(2),l=r(u),c=n(131),f=r(c);t.evaluateTruthy=i,t.evaluate=o;var p=["String","Number","Math"],d=["random"]}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(){var e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function a(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):void 0}function s(){var e=[],t=function(t){t&&(e=e.concat(t.getCompletionRecords()))};if(this.isIfStatement())t(this.get("consequent")),t(this.get("alternate"));else if(this.isDoExpression()||this.isFor()||this.isWhile())t(this.get("body"));else if(this.isProgram()||this.isBlockStatement())t(this.get("body").pop());else{if(this.isFunction())return this.get("body").getCompletionRecords();this.isTryStatement()?(t(this.get("block")),t(this.get("handler")),t(this.get("finalizer"))):e.push(this)}return e}function u(e){return C.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e})}function l(){return this.getSibling(this.key-1)}function c(){return this.getSibling(this.key+1)}function f(){for(var e=this.key,t=this.getSibling(++e),n=[];t.node;)n.push(t),t=this.getSibling(++e);return n}function p(){for(var e=this.key,t=this.getSibling(--e),n=[];t.node;)n.push(t),t=this.getSibling(--e);return n}function d(e,t){t===!0&&(t=this.context);var n=e.split(".");return 1===n.length?this._getKey(e,t):this._getPattern(n,t)}function h(e,t){var n=this,r=this.node,i=r[e];return Array.isArray(i)?i.map(function(o,a){return C.default.get({listKey:e,parentPath:n,parent:r,container:i,key:a}).setContext(t)}):C.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function v(e,t){for(var n=this,r=e,i=Array.isArray(r),o=0,r=i?r:(0,A.default)(r);;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;n="."===s?n.parentPath:Array.isArray(n)?n[s]:n.get(s,t)}return n}function m(e){return k.getBindingIdentifiers(this.node,e)}function g(e){return k.getOuterBindingIdentifiers(this.node,e)}function y(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this,r=[].concat(n),i=(0,E.default)(null);r.length;){var o=r.shift();if(o&&o.node){var a=k.getBindingIdentifiers.keys[o.node.type];if(o.isIdentifier())if(e){var s=i[o.node.name]=i[o.node.name]||[];s.push(o)}else i[o.node.name]=o;else if(o.isExportDeclaration()){var u=o.get("declaration");u.isDeclaration()&&r.push(u)}else{if(t){if(o.isFunctionDeclaration()){r.push(o.get("id"));continue}if(o.isFunctionExpression())continue}if(a)for(var l=0;l=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;if(g.isAnyTypeAnnotation(a)||u(e,a,!0))return!0}return!1}return u(e,t,!0)}function c(e){var t=this.getTypeAnnotation();if(e=e.getTypeAnnotation(),!g.isAnyTypeAnnotation(t)&&g.isFlowBaseAnnotation(t))return e.type===t.type}function f(e){var t=this.getTypeAnnotation();return g.isGenericTypeAnnotation(t)&&g.isIdentifier(t.id,{name:e})}t.__esModule=!0;var p=n(2),d=i(p);t.getTypeAnnotation=o,t._getTypeAnnotation=a,t.isBaseType=s,t.couldBeBaseType=l,t.baseTypeStrictlyMatches=c,t.isGenericType=f;var h=n(372),v=r(h),m=n(1),g=r(m)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=e.scope.getBinding(t),r=[];e.typeAnnotation=d.unionTypeAnnotation(r);var i=[],o=a(n,e,i),s=l(e,t);if(s){var u=a(n,s.ifStatement);o=o.filter(function(e){return u.indexOf(e)<0}),r.push(s.typeAnnotation)}if(o.length){o=o.concat(i);for(var c=o,p=Array.isArray(c),h=0,c=p?c:(0,f.default)(c);;){var v;if(p){if(h>=c.length)break;v=c[h++]}else{if(h=c.next(),h.done)break;v=h.value}var m=v;r.push(m.getTypeAnnotation())}}if(r.length)return d.createUnionTypeAnnotation(r)}function a(e,t,n){var r=e.constantViolations.slice();return r.unshift(e.path),r.filter(function(e){e=e.resolve();var r=e._guessExecutionStatusRelativeTo(t);return n&&"function"===r&&n.push(e),"before"===r})}function s(e,t){var n=t.node.operator,r=t.get("right").resolve(),i=t.get("left").resolve(),o=void 0;if(i.isIdentifier({name:e})?o=r:r.isIdentifier({name:e})&&(o=i),o)return"==="===n?o.getTypeAnnotation():d.BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(n)>=0?d.numberTypeAnnotation():void 0;if("==="===n){var a=void 0,s=void 0;if(i.isUnaryExpression({operator:"typeof"})?(a=i,s=r):r.isUnaryExpression({operator:"typeof"})&&(a=r,s=i),(s||a)&&(s=s.resolve(),s.isLiteral())){var u=s.node.value;if("string"==typeof u&&a.get("argument").isIdentifier({name:e}))return d.createTypeAnnotationBasedOnTypeof(s.node.value)}}}function u(e){for(var t=void 0;t=e.parentPath;){if(t.isIfStatement()||t.isConditionalExpression())return"test"===e.key?void 0:t;e=t}}function l(e,t){var n=u(e);if(n){var r=n.get("test"),i=[r],o=[];do{var a=i.shift().resolve();if(a.isLogicalExpression()&&(i.push(a.get("left")),i.push(a.get("right"))),a.isBinaryExpression()){var c=s(t,a);c&&o.push(c)}}while(i.length);return o.length?{typeAnnotation:d.createUnionTypeAnnotation(o),ifStatement:n}:l(n,t)}}t.__esModule=!0;var c=n(2),f=i(c);t.default=function(e){if(this.isReferenced()){var t=this.scope.getBinding(e.name);return t?t.identifier.typeAnnotation?t.identifier.typeAnnotation:o(this,e.name):"undefined"===e.name?d.voidTypeAnnotation():"NaN"===e.name||"Infinity"===e.name?d.numberTypeAnnotation():void("arguments"===e.name)}};var p=n(1),d=r(p);e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(){var e=this.get("id");return e.isIdentifier()?this.get("init").getTypeAnnotation():void 0}function a(e){return e.typeAnnotation}function s(e){if(this.get("callee").isIdentifier())return O.genericTypeAnnotation(e.callee)}function u(){return O.stringTypeAnnotation()}function l(e){var t=e.operator;return"void"===t?O.voidTypeAnnotation():O.NUMBER_UNARY_OPERATORS.indexOf(t)>=0?O.numberTypeAnnotation():O.STRING_UNARY_OPERATORS.indexOf(t)>=0?O.stringTypeAnnotation():O.BOOLEAN_UNARY_OPERATORS.indexOf(t)>=0?O.booleanTypeAnnotation():void 0}function c(e){var t=e.operator;if(O.NUMBER_BINARY_OPERATORS.indexOf(t)>=0)return O.numberTypeAnnotation();if(O.BOOLEAN_BINARY_OPERATORS.indexOf(t)>=0)return O.booleanTypeAnnotation();if("+"===t){var n=this.get("right"),r=this.get("left");return r.isBaseType("number")&&n.isBaseType("number")?O.numberTypeAnnotation():r.isBaseType("string")||n.isBaseType("string")?O.stringTypeAnnotation():O.unionTypeAnnotation([O.stringTypeAnnotation(),O.numberTypeAnnotation()])}}function f(){return O.createUnionTypeAnnotation([this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()])}function p(){return O.createUnionTypeAnnotation([this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()])}function d(){return this.get("expressions").pop().getTypeAnnotation()}function h(){return this.get("right").getTypeAnnotation()}function v(e){var t=e.operator;if("++"===t||"--"===t)return O.numberTypeAnnotation()}function m(){return O.stringTypeAnnotation()}function g(){return O.numberTypeAnnotation()}function y(){return O.booleanTypeAnnotation()}function b(){return O.nullLiteralTypeAnnotation()}function x(){return O.genericTypeAnnotation(O.identifier("RegExp"))}function E(){return O.genericTypeAnnotation(O.identifier("Object"))}function w(){return O.genericTypeAnnotation(O.identifier("Array"))}function A(){return w()}function _(){return O.genericTypeAnnotation(O.identifier("Function"))}function C(){return k(this.get("callee"))}function S(){return k(this.get("tag"))}function k(e){if(e=e.resolve(),e.isFunction()){if(e.is("async"))return e.is("generator")?O.genericTypeAnnotation(O.identifier("AsyncIterator")):O.genericTypeAnnotation(O.identifier("Promise"));if(e.node.returnType)return e.node.returnType}}t.__esModule=!0,t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=t.Identifier=void 0;var D=n(371);Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return i(D).default}}),t.VariableDeclarator=o,t.TypeCastExpression=a,t.NewExpression=s,t.TemplateLiteral=u,t.UnaryExpression=l,t.BinaryExpression=c,t.LogicalExpression=f,t.ConditionalExpression=p,t.SequenceExpression=d,t.AssignmentExpression=h,t.UpdateExpression=v,t.StringLiteral=m,t.NumericLiteral=g,t.BooleanLiteral=y,t.NullLiteral=b,t.RegExpLiteral=x,t.ObjectExpression=E,t.ArrayExpression=w,t.RestElement=A,t.CallExpression=C,t.TaggedTemplateExpression=S;var P=n(1),O=r(P);a.validParent=!0,A.validParent=!0,t.FunctionExpression=_,t.ArrowFunctionExpression=_,t.FunctionDeclaration=_,t.ClassExpression=_,t.ClassDeclaration=_},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){function n(e){var t=r[o];return"*"===t||e===t}if(!this.isMemberExpression())return!1;for(var r=e.split("."),i=[this.node],o=0;i.length;){var a=i.shift();if(t&&o===r.length)return!0;if(k.isIdentifier(a)){if(!n(a.name))return!1}else if(k.isLiteral(a)){if(!n(a.value))return!1}else{if(k.isMemberExpression(a)){if(a.computed&&!k.isLiteral(a.property))return!1;i.unshift(a.property),i.unshift(a.object);continue}if(!k.isThisExpression(a))return!1;if(!n("this"))return!1}if(++o>r.length)return!1}return o===r.length}function a(e){var t=this.node&&this.node[e];return t&&Array.isArray(t)?!!t.length:!!t}function s(){return this.scope.isStatic(this.node)}function u(e){return!this.has(e)}function l(e,t){return this.node[e]===t}function c(e){return k.isType(this.type,e)}function f(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()}function p(e){return!("body"!==this.key||!this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?k.isBlockStatement(e):!!this.isBlockStatement()&&k.isExpression(e))}function d(e){var t=this,n=!0;do{var r=t.container;if(t.isFunction()&&!n)return!!e;if(n=!1,Array.isArray(r)&&t.key!==r.length-1)return!1}while((t=t.parentPath)&&!t.isProgram());return!0}function h(){return!this.parentPath.isLabeledStatement()&&!k.isBlockStatement(this.container)&&(0,C.default)(k.STATEMENT_OR_BLOCK_KEYS,this.key)}function v(e,t){if(!this.isReferencedIdentifier())return!1;var n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;var r=n.path,i=r.parentPath;return!!i.isImportDeclaration()&&(i.node.source.value===e&&(!t||(!(!r.isImportDefaultSpecifier()||"default"!==t)||(!(!r.isImportNamespaceSpecifier()||"*"!==t)||!(!r.isImportSpecifier()||r.node.imported.name!==t)))))}function m(){var e=this.node;return e.end?this.hub.file.code.slice(e.start,e.end):""}function g(e){return"after"!==this._guessExecutionStatusRelativeTo(e)}function y(e){var t=e.scope.getFunctionParent(),n=this.scope.getFunctionParent();if(t.node!==n.node){var r=this._guessExecutionStatusRelativeToDifferentFunctions(t);if(r)return r;e=t.path}var i=e.getAncestry();if(i.indexOf(this)>=0)return"after";var o=this.getAncestry(),a=void 0,s=void 0,u=void 0;for(u=0;u=0){a=l;break}}if(!a)return"before";var c=i[s-1],f=o[u-1];if(!c||!f)return"before";if(c.listKey&&c.container===f.container)return c.key>f.key?"before":"after";var p=k.VISITOR_KEYS[c.type].indexOf(c.key),d=k.VISITOR_KEYS[f.type].indexOf(f.key);return p>d?"before":"after"}function b(e){var t=e.path;if(t.isFunctionDeclaration()){var n=t.scope.getBinding(t.node.id.name);if(!n.references)return"before";for(var r=n.referencePaths,i=r,o=Array.isArray(i),a=0,i=o?i:(0,A.default)(i);;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if(a=i.next(),a.done)break;s=a.value}var u=s;if("callee"!==u.key||!u.parentPath.isCallExpression())return}for(var l=void 0,c=r,f=Array.isArray(c),p=0,c=f?c:(0,A.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}var h=d,v=!!h.find(function(e){return e.node===t.node});if(!v){var m=this._guessExecutionStatusRelativeTo(h);if(l){if(l!==m)return}else l=m}}return l}}function x(e,t){return this._resolve(e,t)||this}function E(e,t){if(!(t&&t.indexOf(this)>=0))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){var n=this.scope.getBinding(this.node.name);if(!n)return;if(!n.constant)return;if("module"===n.kind)return;if(n.path!==this){var r=n.path.resolve(e,t);if(this.find(function(e){return e.node===r.node}))return;return r}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){var i=this.toComputedKey();if(!k.isLiteral(i))return;var o=i.value,a=this.get("object").resolve(e,t);if(a.isObjectExpression())for(var s=a.get("properties"),u=s,l=Array.isArray(u),c=0,u=l?u:(0,A.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;if(p.isProperty()){var d=p.get("key"),h=p.isnt("computed")&&d.isIdentifier({name:o});if(h=h||d.isLiteral({value:o}))return p.get("value").resolve(e,t)}}else if(a.isArrayExpression()&&!isNaN(+o)){var v=a.get("elements"),m=v[o];if(m)return m.resolve(e,t)}}}}t.__esModule=!0,t.is=void 0;var w=n(2),A=i(w);t.matchesPattern=o,t.has=a,t.isStatic=s,t.isnt=u,t.equals=l,t.isNodeType=c,t.canHaveVariableDeclarationOrExpression=f,t.canSwapBetweenExpressionAndStatement=p,t.isCompletionRecord=d,t.isStatementOrBlock=h,t.referencesImport=v,t.getSource=m,t.willIMaybeExecuteBefore=g,t._guessExecutionStatusRelativeTo=y,t._guessExecutionStatusRelativeToDifferentFunctions=b,t.resolve=x,t._resolve=E;var _=n(110),C=i(_),S=n(1),k=r(S);t.is=a},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(2),a=i(o),s=n(3),u=i(s),l=n(1),c=r(l),f={ReferencedIdentifier:function(e,t){if(!e.isJSXIdentifier()||!l.react.isCompatTag(e.node.name)||e.parentPath.isJSXMemberExpression()){if("this"===e.node.name){var n=e.scope;do if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}var r=e.scope.getBinding(e.node.name);r&&r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}},p=function(){function e(t,n){(0,u.default)(this,e),this.breakOnScopePaths=[],this.bindings={},this.scopes=[],this.scope=n,this.path=t,this.attachAfter=!1}return e.prototype.isCompatibleScope=function(e){for(var t in this.bindings){var n=this.bindings[t];if(!e.bindingIdentifierEquals(t,n.identifier))return!1}return!0},e.prototype.getCompatibleScopes=function(){var e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.indexOf(e.path)>=0)break}while(e=e.parent)},e.prototype.getAttachmentPath=function(){var e=this._getAttachmentPath();if(e){var t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(var n in this.bindings)if(t.hasOwnBinding(n)){var r=this.bindings[n];if("param"!==r.kind&&this.getAttachmentParentForPath(r.path).key>e.key){this.attachAfter=!0,e=r.path;for(var i=r.constantViolations,o=Array.isArray(i),s=0,i=o?i:(0,a.default)(i);;){var u;if(o){if(s>=i.length)break;u=i[s++]}else{if(s=i.next(),s.done)break;u=s.value}var l=u;this.getAttachmentParentForPath(l).key>e.key&&(e=l)}}}return e}},e.prototype._getAttachmentPath=function(){var e=this.scopes,t=e.pop();if(t){if(t.path.isFunction()){if(this.hasOwnParamBindings(t)){if(this.scope===t)return;return t.path.get("body").get("body")[0]}return this.getNextScopeAttachmentParent()}return t.path.isProgram()?this.getNextScopeAttachmentParent():void 0}},e.prototype.getNextScopeAttachmentParent=function(){var e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)},e.prototype.getAttachmentParentForPath=function(e){do if(!e.parentPath||Array.isArray(e.container)&&e.isStatement()||e.isVariableDeclarator()&&null!==e.parentPath.node&&e.parentPath.node.declarations.length>1)return e;while(e=e.parentPath)},e.prototype.hasOwnParamBindings=function(e){for(var t in this.bindings)if(e.hasOwnBinding(t)){var n=this.bindings[t];if("param"===n.kind&&n.constant)return!0}return!1},e.prototype.run=function(){var e=this.path.node;if(!e._hoisted){e._hoisted=!0,this.path.traverse(f,this),this.getCompatibleScopes();var t=this.getAttachmentPath();if(t&&t.getFunctionParent()!==this.path.getFunctionParent()){var n=t.scope.generateUidIdentifier("ref"),r=c.variableDeclarator(n,this.path.node),i=this.attachAfter?"insertAfter":"insertBefore";t[i]([t.isVariableDeclarator()?r:c.variableDeclaration("var",[r])]);var o=this.path.parentPath;o.isJSXElement()&&this.path.container===o.node.children&&(n=c.JSXExpressionContainer(n)),this.path.replaceWith(n)}}},e}();t.default=p,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0;t.hooks=[function(e,t){var n="test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement();if(n)return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&("consequent"===e.key||"alternate"===e.key)||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){if(this._assertUnremoved(),e=this._verifyNodeList(e),this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement())return this.parentPath.insertBefore(e);if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&"init"===this.key)this.node&&e.push(this.node),this.replaceExpressionWithStatements(e);else{if(this._maybePopFromStatements(e),Array.isArray(this.container))return this._containerInsertBefore(e);if(!this.isStatementOrBlock())throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?");this.node&&e.push(this.node),this._replaceWith(S.blockStatement(e))}return[this]}function a(e,t){this.updateSiblingKeys(e,t.length);for(var n=[],r=0;r=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;p.setScope(),p.debug(function(){return"Inserted."});for(var d=s,h=Array.isArray(d),v=0,d=h?d:(0,b.default)(d);;){var m;if(h){if(v>=d.length)break;m=d[v++]}else{if(v=d.next(),v.done)break;m=v.value}var g=m;g.maybeQueue(p,!0)}}return n}function s(e){return this._containerInsert(this.key,e)}function u(e){return this._containerInsert(this.key+1,e)}function l(e){var t=e[e.length-1],n=S.isIdentifier(t)||S.isExpressionStatement(t)&&S.isIdentifier(t.expression);n&&!this.isCompletionRecord()&&e.pop()}function c(e){if(this._assertUnremoved(),e=this._verifyNodeList(e),this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement())return this.parentPath.insertAfter(e);if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&"init"===this.key){if(this.node){var t=this.scope.generateDeclaredUidIdentifier();e.unshift(S.expressionStatement(S.assignmentExpression("=",t,this.node))),e.push(S.expressionStatement(t))}this.replaceExpressionWithStatements(e)}else{if(this._maybePopFromStatements(e),Array.isArray(this.container))return this._containerInsertAfter(e);if(!this.isStatementOrBlock())throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?");this.node&&e.unshift(this.node),this._replaceWith(S.blockStatement(e))}return[this]}function f(e,t){if(this.parent)for(var n=x.path.get(this.parent),r=0;r=e&&(i.key+=t)}}function p(e){if(!e)return[];e.constructor!==Array&&(e=[e]);for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:this.scope,t=new w.default(this,e);return t.run()}t.__esModule=!0;var m=n(11),g=i(m),y=n(2),b=i(y);t.insertBefore=o,t._containerInsert=a,t._containerInsertBefore=s,t._containerInsertAfter=u,t._maybePopFromStatements=l,t.insertAfter=c,t.updateSiblingKeys=f,t._verifyNodeList=p,t.unshiftContainer=d,t.pushContainer=h,t.hoist=v;var x=n(86),E=n(374),w=i(E),A=n(35),_=i(A),C=n(1),S=r(C)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){return this._assertUnremoved(),this.resync(),this._callRemovalHooks()?void this._markRemoved():(this.shareCommentsWithSiblings(),this._remove(),void this._markRemoved())}function o(){for(var e=f.hooks,t=Array.isArray(e),n=0,e=t?e:(0,c.default)(e);;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var i=r;if(i(this,this.parentPath))return!0}}function a(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)}function s(){this.shouldSkip=!0,this.removed=!0,this.node=null}function u(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}t.__esModule=!0;var l=n(2),c=r(l);t.remove=i,t._callRemovalHooks=o,t._remove=a,t._markRemoved=s,t._assertUnremoved=u;var f=n(375)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){this.resync(),e=this._verifyNodeList(e),E.inheritLeadingComments(e[0],this.node),E.inheritTrailingComments(e[e.length-1],this.node),this.node=this.container[this.key]=null,this.insertAfter(e),this.node?this.requeue():this.remove()}function a(e){this.resync();try{e="("+e+")",e=(0,b.parse)(e)}catch(n){var t=n.loc;throw t&&(n.message+=" - make sure this is an expression.",n.message+="\n"+(0,h.default)(e,t.line,t.column+1)),n}return e=e.program.body[0].expression,m.default.removeProperties(e),this.replaceWith(e)}function s(e){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");if(e instanceof y.default&&(e=e.node),!e)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node!==e){if(this.isProgram()&&!E.isProgram(e))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(e))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof e)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");if(this.isNodeType("Statement")&&E.isExpression(e)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(e)||(e=E.expressionStatement(e))),this.isNodeType("Expression")&&E.isStatement(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e))return this.replaceExpressionWithStatements([e]);var t=this.node;t&&(E.inheritsComments(e,t),E.removeComments(t)),this._replaceWith(e),this.type=e.type,this.setScope(),this.requeue()}}function u(e){if(!this.container)throw new ReferenceError("Container is falsy");this.inList?E.validate(this.parent,this.key,[e]):E.validate(this.parent,this.key,e),this.debug(function(){return"Replace with "+(e&&e.type)}),this.node=this.container[this.key]=e}function l(e){this.resync();var t=E.toSequenceExpression(e,this.scope);if(E.isSequenceExpression(t)){var n=t.expressions;n.length>=2&&this.parentPath.isExpressionStatement()&&this._maybePopFromStatements(n),1===n.length?this.replaceWith(n[0]):this.replaceWith(t)}else{if(!t){var r=E.functionExpression(null,[],E.blockStatement(e));r.shadow=!0,this.replaceWith(E.callExpression(r,[])),this.traverse(w);for(var i=this.get("callee").getCompletionRecords(),o=i,a=Array.isArray(o),s=0,o=a?o:(0,p.default)(o);;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if(s=o.next(),s.done)break;u=s.value}var l=u;if(l.isExpressionStatement()){var c=l.findParent(function(e){return e.isLoop()});if(c){var f=c.getData("expressionReplacementReturnUid");if(f)f=E.identifier(f.name);else{var d=this.get("callee");f=d.scope.generateDeclaredUidIdentifier("ret"),d.get("body").pushContainer("body",E.returnStatement(f)),c.setData("expressionReplacementReturnUid",f)}l.get("expression").replaceWith(E.assignmentExpression("=",f,l.node.expression))}else l.replaceWith(E.returnStatement(l.node.expression))}}return this.node}this.replaceWith(t)}}function c(e){return this.resync(),Array.isArray(e)?Array.isArray(this.container)?(e=this._verifyNodeList(e),this._containerInsertAfter(e),this.remove()):this.replaceWithMultiple(e):this.replaceWith(e)}t.__esModule=!0;var f=n(2),p=i(f);t.replaceWithMultiple=o,t.replaceWithSourceString=a,t.replaceWith=s,t._replaceWith=u,t.replaceExpressionWithStatements=l,t.replaceInline=c;var d=n(177),h=i(d),v=n(7),m=i(v),g=n(35),y=i(g),b=n(134),x=n(1),E=r(x),w={Function:function(e){e.skip()},VariableDeclaration:function(e){if("var"===e.node.kind){var t=e.getBindingIdentifiers();for(var n in t)e.scope.push({id:t[n]});for(var r=[],i=e.node.declarations,o=Array.isArray(i),a=0,i=o?i:(0,p.default)(i);;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if(a=i.next(),a.done)break;s=a.value}var u=s;u.init&&r.push(E.expressionStatement(E.assignmentExpression("=",u.id,u.init)))}e.replaceWithMultiple(r)}}}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(3),a=i(o),s=n(221),u=(i(s),n(1)),l=r(u),c={ReferencedIdentifier:function(e,t){var n=e.node;n.name===t.oldName&&(n.name=t.newName)},Scope:function(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||e.skip()},"AssignmentExpression|Declaration":function(e,t){var n=e.getOuterBindingIdentifiers();for(var r in n)r===t.oldName&&(n[r].name=t.newName)}},f=function(){function e(t,n,r){(0,a.default)(this,e),this.newName=r,this.oldName=n,this.binding=t}return e.prototype.maybeConvertFromExportDeclaration=function(e){var t=e.parentPath.isExportDeclaration()&&e.parentPath;if(t){var n=t.isExportDefaultDeclaration();n&&(e.isFunctionDeclaration()||e.isClassDeclaration())&&!e.node.id&&(e.node.id=e.scope.generateUidIdentifier("default"));var r=e.getOuterBindingIdentifiers(),i=[];for(var o in r){var a=o===this.oldName?this.newName:o,s=n?"default":o;i.push(l.exportSpecifier(l.identifier(a),l.identifier(s)))}if(i.length){var u=l.exportNamedDeclaration(null,i);e.isFunctionDeclaration()&&(u._blockHoist=3),t.insertAfter(u),t.replaceWith(e.node)}}},e.prototype.maybeConvertFromClassFunctionDeclaration=function(e){},e.prototype.maybeConvertFromClassFunctionExpression=function(e){},e.prototype.rename=function(e){var t=this.binding,n=this.oldName,r=this.newName,i=t.scope,o=t.path,a=o.find(function(e){return e.isDeclaration()||e.isFunctionExpression()});a&&this.maybeConvertFromExportDeclaration(a),i.traverse(e||i.block,c,this),e||(i.removeOwnBinding(n),i.bindings[r]=t,this.binding.identifier.name=r),"hoisted"===t.type,a&&(this.maybeConvertFromClassFunctionDeclaration(a),this.maybeConvertFromClassFunctionExpression(a))},e}();t.default=f,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e._exploded)return e;e._exploded=!0;for(var t in e)if(!d(t)){var n=t.split("|");if(1!==n.length){var r=e[t];delete e[t];for(var i=n,o=Array.isArray(i),s=0,i=o?i:(0,x.default)(i);;){var u;if(o){if(s>=i.length)break;u=i[s++]}else{if(s=i.next(),s.done)break;u=s.value}var l=u;e[l]=r}}}a(e),delete e.__esModule,c(e),f(e);for(var v=(0,y.default)(e),m=Array.isArray(v),g=0,v=m?v:(0,x.default)(v);;){var b;if(m){if(g>=v.length)break;b=v[g++]}else{if(g=v.next(),g.done)break;b=g.value}var E=b;if(!d(E)){var A=w[E];if(A){var _=e[E];for(var C in _)_[C]=p(A,_[C]);if(delete e[E],A.types)for(var k=A.types,P=Array.isArray(k),O=0,k=P?k:(0,x.default)(k);;){var T;if(P){if(O>=k.length)break;T=k[O++]}else{if(O=k.next(),O.done)break;T=O.value}var M=T;e[M]?h(e[M],_):e[M]=_}else h(e,_)}}}for(var R in e)if(!d(R)){var N=e[R],F=S.FLIPPED_ALIAS_KEYS[R],I=S.DEPRECATED_KEYS[R];if(I&&(console.trace("Visitor defined for "+R+" but it has been renamed to "+I),F=[I]),F){delete e[R];for(var L=F,j=Array.isArray(L),B=0,L=j?L:(0,x.default)(L);;){var U;if(j){if(B>=L.length)break;U=L[B++]}else{if(B=L.next(),B.done)break;U=B.value}var V=U,W=e[V];W?h(W,N):e[V]=(0,D.default)(N)}}}for(var q in e)d(q)||f(e[q]);return e}function a(e){if(!e._verified){if("function"==typeof e)throw new Error(_.get("traverseVerifyRootFunction"));for(var t in e)if("enter"!==t&&"exit"!==t||s(t,e[t]),!d(t)){if(S.TYPES.indexOf(t)<0)throw new Error(_.get("traverseVerifyNodeType",t));var n=e[t];if("object"===("undefined"==typeof n?"undefined":(0,m.default)(n)))for(var r in n){if("enter"!==r&&"exit"!==r)throw new Error(_.get("traverseVerifyVisitorProperty",t,r));s(t+"."+r,n[r])}}e._verified=!0}}function s(e,t){for(var n=[].concat(t),r=n,i=Array.isArray(r),o=0,r=i?r:(0,x.default)(r);;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;if("function"!=typeof s)throw new TypeError("Non-function found defined in "+e+" with type "+("undefined"==typeof s?"undefined":(0,m.default)(s)))}}function u(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],r={},i=0;i1&&void 0!==arguments[1]?arguments[1]:e.key||e.property;return e.computed||C.isIdentifier(t)&&(t=C.stringLiteral(t.name)),t}function a(e,t){function n(e){for(var o=!1,a=[],s=e,u=Array.isArray(s),l=0,s=u?s:(0,b.default)(s);;){var c;if(u){if(l>=s.length)break;c=s[l++]}else{if(l=s.next(),l.done)break;c=l.value}var f=c;if(C.isExpression(f))a.push(f);else if(C.isExpressionStatement(f))a.push(f.expression);else{if(C.isVariableDeclaration(f)){if("var"!==f.kind)return i=!0;for(var p=f.declarations,d=Array.isArray(p),h=0,p=d?p:(0,b.default)(p);;){var v;if(d){if(h>=p.length)break;v=p[h++]}else{if(h=p.next(),h.done)break;v=h.value}var m=v,g=C.getBindingIdentifiers(m);for(var y in g)r.push({kind:f.kind,id:g[y]});m.init&&a.push(C.assignmentExpression("=",m.id,m.init))}o=!0;continue}if(C.isIfStatement(f)){var x=f.consequent?n([f.consequent]):t.buildUndefinedNode(),E=f.alternate?n([f.alternate]):t.buildUndefinedNode();if(!x||!E)return i=!0;a.push(C.conditionalExpression(f.test,x,E))}else{if(!C.isBlockStatement(f)){if(C.isEmptyStatement(f)){o=!0;continue}return i=!0}a.push(n(f.body))}}o=!1}return(o||0===a.length)&&a.push(t.buildUndefinedNode()),1===a.length?a[0]:C.sequenceExpression(a)}if(e&&e.length){var r=[],i=!1,o=n(e);if(!i){for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:e.key,n=void 0; -return"method"===e.kind?s.increment()+"":(n=C.isIdentifier(t)?t.name:C.isStringLiteral(t)?(0,g.default)(t.value):(0,g.default)(C.removePropertiesDeep(C.cloneDeep(t))),e.computed&&(n="["+n+"]"),e.static&&(n="static:"+n),n)}function u(e){return e+="",e=e.replace(/[^a-zA-Z0-9$_]/g,"-"),e=e.replace(/^[-0-9]+/,""),e=e.replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),C.isValidIdentifier(e)||(e="_"+e),e||"_"}function l(e){return e=u(e),"eval"!==e&&"arguments"!==e||(e="_"+e),e}function c(e,t){if(C.isStatement(e))return e;var n=!1,r=void 0;if(C.isClass(e))n=!0,r="ClassDeclaration";else if(C.isFunction(e))n=!0,r="FunctionDeclaration";else if(C.isAssignmentExpression(e))return C.expressionStatement(e);if(n&&!e.id&&(r=!1),!r){if(t)return!1;throw new Error("cannot turn "+e.type+" to a statement")}return e.type=r,e}function f(e){if(C.isExpressionStatement(e)&&(e=e.expression),C.isExpression(e))return e;if(C.isClass(e)?e.type="ClassExpression":C.isFunction(e)&&(e.type="FunctionExpression"),!C.isExpression(e))throw new Error("cannot turn "+e.type+" to an expression");return e}function p(e,t){return C.isBlockStatement(e)?e:(C.isEmptyStatement(e)&&(e=[]),Array.isArray(e)||(C.isStatement(e)||(e=C.isFunction(t)?C.returnStatement(e):C.expressionStatement(e)),e=[e]),C.blockStatement(e))}function d(e){if(void 0===e)return C.identifier("undefined");if(e===!0||e===!1)return C.booleanLiteral(e);if(null===e)return C.nullLiteral();if("string"==typeof e)return C.stringLiteral(e);if("number"==typeof e)return C.numericLiteral(e);if((0,A.default)(e)){var t=e.source,n=e.toString().match(/\/([a-z]+|)$/)[1];return C.regExpLiteral(t,n)}if(Array.isArray(e))return C.arrayExpression(e.map(C.valueToNode));if((0,E.default)(e)){var r=[];for(var i in e){var o=void 0;o=C.isValidIdentifier(i)?C.identifier(i):C.stringLiteral(i),r.push(C.objectProperty(o,C.valueToNode(e[i])))}return C.objectExpression(r)}throw new Error("don't know how to turn this value into a node")}t.__esModule=!0;var h=n(355),v=i(h),m=n(34),g=i(m),y=n(2),b=i(y);t.toComputedKey=o,t.toSequenceExpression=a,t.toKeyAlias=s,t.toIdentifier=u,t.toBindingIdentifierName=l,t.toStatement=c,t.toExpression=f,t.toBlock=p,t.valueToNode=d;var x=n(270),E=i(x),w=n(271),A=i(w),_=n(1),C=r(_);s.uid=0,s.increment=function(){return s.uid>=v.default?s.uid=0:s.uid++}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var o=n(1),a=i(o),s=n(133),u=n(26),l=r(u);(0,l.default)("ArrayExpression",{fields:{elements:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,l.default)("AssignmentExpression",{fields:{operator:{validate:(0,u.assertValueType)("string")},left:{validate:(0,u.assertNodeType)("LVal")},right:{validate:(0,u.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),(0,l.default)("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:u.assertOneOf.apply(void 0,s.BINARY_OPERATORS)},left:{validate:(0,u.assertNodeType)("Expression")},right:{validate:(0,u.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),(0,l.default)("Directive",{visitor:["value"],fields:{value:{validate:(0,u.assertNodeType)("DirectiveLiteral")}}}),(0,l.default)("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,u.assertValueType)("string")}}}),(0,l.default)("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Directive"))),default:[]},body:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),(0,l.default)("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,u.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,l.default)("CallExpression",{visitor:["callee","arguments"],fields:{callee:{validate:(0,u.assertNodeType)("Expression")},arguments:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Expression","SpreadElement")))}},aliases:["Expression"]}),(0,l.default)("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,u.assertNodeType)("Identifier")},body:{validate:(0,u.assertNodeType)("BlockStatement")}},aliases:["Scopable"]}),(0,l.default)("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,u.assertNodeType)("Expression")},consequent:{validate:(0,u.assertNodeType)("Expression")},alternate:{validate:(0,u.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),(0,l.default)("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,u.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,l.default)("DebuggerStatement",{aliases:["Statement"]}),(0,l.default)("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,u.assertNodeType)("Expression")},body:{validate:(0,u.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),(0,l.default)("EmptyStatement",{aliases:["Statement"]}),(0,l.default)("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,u.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),(0,l.default)("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,u.assertNodeType)("Program")}}}),(0,l.default)("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,u.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,u.assertNodeType)("Expression")},body:{validate:(0,u.assertNodeType)("Statement")}}}),(0,l.default)("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,u.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,u.assertNodeType)("Expression"),optional:!0},update:{validate:(0,u.assertNodeType)("Expression"),optional:!0},body:{validate:(0,u.assertNodeType)("Statement")}}}),(0,l.default)("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:{id:{validate:(0,u.assertNodeType)("Identifier")},params:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("LVal")))},body:{validate:(0,u.assertNodeType)("BlockStatement")},generator:{default:!1,validate:(0,u.assertValueType)("boolean")},async:{default:!1,validate:(0,u.assertValueType)("boolean")}},aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"]}),(0,l.default)("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{id:{validate:(0,u.assertNodeType)("Identifier"),optional:!0},params:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("LVal")))},body:{validate:(0,u.assertNodeType)("BlockStatement")},generator:{default:!1,validate:(0,u.assertValueType)("boolean")},async:{default:!1,validate:(0,u.assertValueType)("boolean")}}}),(0,l.default)("Identifier",{builder:["name"],visitor:["typeAnnotation"],aliases:["Expression","LVal"],fields:{name:{validate:function(e,t,n){!a.isValidIdentifier(n)}},decorators:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Decorator")))}}}),(0,l.default)("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,u.assertNodeType)("Expression")},consequent:{validate:(0,u.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,u.assertNodeType)("Statement")}}}),(0,l.default)("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,u.assertNodeType)("Identifier")},body:{validate:(0,u.assertNodeType)("Statement")}}}),(0,l.default)("StringLiteral",{builder:["value"],fields:{value:{validate:(0,u.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,u.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,u.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Literal"],fields:{pattern:{validate:(0,u.assertValueType)("string")},flags:{validate:(0,u.assertValueType)("string"),default:""}}}),(0,l.default)("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:u.assertOneOf.apply(void 0,s.LOGICAL_OPERATORS)},left:{validate:(0,u.assertNodeType)("Expression")},right:{validate:(0,u.assertNodeType)("Expression")}}}),(0,l.default)("MemberExpression",{builder:["object","property","computed"],visitor:["object","property"],aliases:["Expression","LVal"],fields:{object:{validate:(0,u.assertNodeType)("Expression")},property:{validate:function(e,t,n){var r=e.computed?"Expression":"Identifier";(0,u.assertNodeType)(r)(e,t,n)}},computed:{default:!1}}}),(0,l.default)("NewExpression",{visitor:["callee","arguments"],aliases:["Expression"],fields:{callee:{validate:(0,u.assertNodeType)("Expression")},arguments:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Expression","SpreadElement")))}}}),(0,l.default)("Program",{visitor:["directives","body"],builder:["body","directives"],fields:{directives:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Directive"))),default:[]},body:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","FunctionParent"]}),(0,l.default)("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("ObjectMethod","ObjectProperty","SpreadProperty")))}}}),(0,l.default)("ObjectMethod",{builder:["kind","key","params","body","computed"],fields:{kind:{validate:(0,u.chain)((0,u.assertValueType)("string"),(0,u.assertOneOf)("method","get","set")),default:"method"},computed:{validate:(0,u.assertValueType)("boolean"),default:!1},key:{validate:function(e,t,n){var r=e.computed?["Expression"]:["Identifier","StringLiteral","NumericLiteral"];u.assertNodeType.apply(void 0,r)(e,t,n)}},decorators:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Decorator")))},body:{validate:(0,u.assertNodeType)("BlockStatement")},generator:{default:!1,validate:(0,u.assertValueType)("boolean")},async:{default:!1,validate:(0,u.assertValueType)("boolean")}},visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),(0,l.default)("ObjectProperty",{builder:["key","value","computed","shorthand","decorators"],fields:{computed:{validate:(0,u.assertValueType)("boolean"),default:!1},key:{validate:function(e,t,n){var r=e.computed?["Expression"]:["Identifier","StringLiteral","NumericLiteral"];u.assertNodeType.apply(void 0,r)(e,t,n)}},value:{validate:(0,u.assertNodeType)("Expression")},shorthand:{validate:(0,u.assertValueType)("boolean"),default:!1},decorators:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"]}),(0,l.default)("RestElement",{visitor:["argument","typeAnnotation"],aliases:["LVal"],fields:{argument:{validate:(0,u.assertNodeType)("LVal")},decorators:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Decorator")))}}}),(0,l.default)("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,u.assertNodeType)("Expression"),optional:!0}}}),(0,l.default)("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Expression")))}},aliases:["Expression"]}),(0,l.default)("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,u.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("Statement")))}}}),(0,l.default)("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,u.assertNodeType)("Expression")},cases:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("SwitchCase")))}}}),(0,l.default)("ThisExpression",{aliases:["Expression"]}),(0,l.default)("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,u.assertNodeType)("Expression")}}}),(0,l.default)("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{body:{validate:(0,u.assertNodeType)("BlockStatement")},handler:{optional:!0,handler:(0,u.assertNodeType)("BlockStatement")},finalizer:{optional:!0,validate:(0,u.assertNodeType)("BlockStatement")}}}),(0,l.default)("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,u.assertNodeType)("Expression")},operator:{validate:u.assertOneOf.apply(void 0,s.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),(0,l.default)("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:(0,u.assertNodeType)("Expression")},operator:{validate:u.assertOneOf.apply(void 0,s.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),(0,l.default)("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{kind:{validate:(0,u.chain)((0,u.assertValueType)("string"),(0,u.assertOneOf)("var","let","const"))},declarations:{validate:(0,u.chain)((0,u.assertValueType)("array"),(0,u.assertEach)((0,u.assertNodeType)("VariableDeclarator")))}}}),(0,l.default)("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:(0,u.assertNodeType)("LVal")},init:{optional:!0,validate:(0,u.assertNodeType)("Expression")}}}),(0,l.default)("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,u.assertNodeType)("Expression")},body:{validate:(0,u.assertNodeType)("BlockStatement","Statement")}}}),(0,l.default)("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{object:(0,u.assertNodeType)("Expression")},body:{validate:(0,u.assertNodeType)("BlockStatement","Statement")}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(26),o=r(i);(0,o.default)("AssignmentPattern",{visitor:["left","right"],aliases:["Pattern","LVal"],fields:{left:{validate:(0,i.assertNodeType)("Identifier")},right:{validate:(0,i.assertNodeType)("Expression")},decorators:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Decorator")))}}}),(0,o.default)("ArrayPattern",{visitor:["elements","typeAnnotation"],aliases:["Pattern","LVal"],fields:{elements:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Expression")))},decorators:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Decorator")))}}}),(0,o.default)("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("LVal")))},body:{validate:(0,i.assertNodeType)("BlockStatement","Expression")},async:{validate:(0,i.assertValueType)("boolean"),default:!1}}}),(0,o.default)("ClassBody",{visitor:["body"],fields:{body:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("ClassMethod","ClassProperty")))}}}),(0,o.default)("ClassDeclaration",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Statement","Declaration","Pureish"],fields:{id:{validate:(0,i.assertNodeType)("Identifier")},body:{validate:(0,i.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,i.assertNodeType)("Expression")},decorators:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Decorator")))}}}),(0,o.default)("ClassExpression",{inherits:"ClassDeclaration",aliases:["Scopable","Class","Expression","Pureish"],fields:{id:{optional:!0,validate:(0,i.assertNodeType)("Identifier")},body:{validate:(0,i.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,i.assertNodeType)("Expression")},decorators:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Decorator")))}}}),(0,o.default)("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0,i.assertNodeType)("StringLiteral")}}}),(0,o.default)("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,i.assertNodeType)("FunctionDeclaration","ClassDeclaration","Expression")}}}),(0,o.default)("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,i.assertNodeType)("Declaration"),optional:!0},specifiers:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("ExportSpecifier")))},source:{validate:(0,i.assertNodeType)("StringLiteral"),optional:!0}}}),(0,o.default)("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,i.assertNodeType)("Identifier")},exported:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,o.default)("ForOfStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,i.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,i.assertNodeType)("Expression")},body:{validate:(0,i.assertNodeType)("Statement")}}}),(0,o.default)("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{specifiers:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,i.assertNodeType)("StringLiteral")}}}),(0,o.default)("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,o.default)("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,o.default)("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,i.assertNodeType)("Identifier")},imported:{validate:(0,i.assertNodeType)("Identifier")},importKind:{validate:(0,i.assertOneOf)(null,"type","typeof")}}}),(0,o.default)("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,i.assertValueType)("string")},property:{validate:(0,i.assertValueType)("string")}}}),(0,o.default)("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:{kind:{validate:(0,i.chain)((0,i.assertValueType)("string"),(0,i.assertOneOf)("get","set","method","constructor")),default:"method"},computed:{default:!1,validate:(0,i.assertValueType)("boolean")},static:{default:!1,validate:(0,i.assertValueType)("boolean")},key:{validate:function(e,t,n){var r=e.computed?["Expression"]:["Identifier","StringLiteral","NumericLiteral"];i.assertNodeType.apply(void 0,r)(e,t,n)}},params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("LVal")))},body:{validate:(0,i.assertNodeType)("BlockStatement")},generator:{default:!1,validate:(0,i.assertValueType)("boolean")},async:{default:!1,validate:(0,i.assertValueType)("boolean")}}}),(0,o.default)("ObjectPattern",{visitor:["properties","typeAnnotation"],aliases:["Pattern","LVal"],fields:{properties:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("RestProperty","Property")))},decorators:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Decorator")))}}}),(0,o.default)("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("Super",{aliases:["Expression"]}),(0,o.default)("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,i.assertNodeType)("Expression")},quasi:{validate:(0,i.assertNodeType)("TemplateLiteral")}}}),(0,o.default)("TemplateElement",{builder:["value","tail"],fields:{value:{},tail:{validate:(0,i.assertValueType)("boolean"),default:!1}}}),(0,o.default)("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("TemplateElement")))},expressions:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Expression")))}}}),(0,o.default)("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,i.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,i.assertNodeType)("Expression")}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(26),o=r(i);(0,o.default)("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("ForAwaitStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,i.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,i.assertNodeType)("Expression")},body:{validate:(0,i.assertNodeType)("Statement")}}}),(0,o.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:{}}),(0,o.default)("Import",{aliases:["Expression"]}),(0,o.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("DoExpression",{visitor:["body"],aliases:["Expression"],fields:{body:{validate:(0,i.assertNodeType)("BlockStatement")}}}),(0,o.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,o.default)("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,o.default)("RestProperty",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:(0,i.assertNodeType)("LVal")}}}),(0,o.default)("SpreadProperty",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(26),o=r(i);(0,o.default)("AnyTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow"],fields:{}}),(0,o.default)("BooleanTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("BooleanLiteralTypeAnnotation",{aliases:["Flow"],fields:{}}),(0,o.default)("NullLiteralTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}}),(0,o.default)("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed"],aliases:["Property"],fields:{computed:{validate:(0,i.assertValueType)("boolean"),default:!1}}}),(0,o.default)("DeclareClass",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareInterface",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareModule",{visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("ExistentialTypeParam",{aliases:["Flow"]}),(0,o.default)("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow"],fields:{}}),(0,o.default)("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{}}),(0,o.default)("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}}),(0,o.default)("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}}),(0,o.default)("InterfaceDeclaration",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}}),(0,o.default)("MixedTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"]}),(0,o.default)("EmptyTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"]}),(0,o.default)("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow"],fields:{}}),(0,o.default)("NumericLiteralTypeAnnotation",{aliases:["Flow"],fields:{}}),(0,o.default)("NumberTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("StringLiteralTypeAnnotation",{aliases:["Flow"],fields:{}}),(0,o.default)("StringTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("ThisTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}}),(0,o.default)("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow"],fields:{}}),(0,o.default)("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("TypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow"],fields:{}}),(0,o.default)("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{}}),(0,o.default)("TypeParameter",{visitor:["bound"],aliases:["Flow"],fields:{}}),(0,o.default)("TypeParameterDeclaration",{visitor:["params"],aliases:["Flow"],fields:{}}),(0,o.default)("TypeParameterInstantiation",{visitor:["params"],aliases:["Flow"],fields:{}}),(0,o.default)("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties"],aliases:["Flow"],fields:{}}),(0,o.default)("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{}}),(0,o.default)("ObjectTypeIndexer",{visitor:["id","key","value"],aliases:["Flow","UserWhitespacable"],fields:{}}),(0,o.default)("ObjectTypeProperty",{visitor:["key","value"],aliases:["Flow","UserWhitespacable"],fields:{}}),(0,o.default)("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{}}),(0,o.default)("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}}),(0,o.default)("VoidTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}})},function(e,t,n){"use strict";n(26),n(382),n(383),n(385),n(387),n(388),n(384)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(26),o=r(i);(0,o.default)("JSXAttribute",{visitor:["name","value"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,i.assertNodeType)("JSXElement","StringLiteral","JSXExpressionContainer")}}}),(0,o.default)("JSXClosingElement",{visitor:["name"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression")}}}),(0,o.default)("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["JSX","Immutable","Expression"],fields:{openingElement:{validate:(0,i.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,i.assertNodeType)("JSXClosingElement")},children:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement")))}}}),(0,o.default)("JSXEmptyExpression",{aliases:["JSX","Expression"]}),(0,o.default)("JSXExpressionContainer",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("JSXSpreadChild",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("JSXIdentifier",{builder:["name"],aliases:["JSX","Expression"],fields:{name:{validate:(0,i.assertValueType)("string")}}}),(0,o.default)("JSXMemberExpression",{visitor:["object","property"],aliases:["JSX","Expression"],fields:{object:{validate:(0,i.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,o.default)("JSXNamespacedName",{visitor:["namespace","name"],aliases:["JSX"],fields:{namespace:{validate:(0,i.assertNodeType)("JSXIdentifier")},name:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,o.default)("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression")},selfClosing:{default:!1,validate:(0,i.assertValueType)("boolean")},attributes:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXAttribute","JSXSpreadAttribute"))) -}}}),(0,o.default)("JSXSpreadAttribute",{visitor:["argument"],aliases:["JSX"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("JSXText",{aliases:["JSX","Immutable"],builder:["value"],fields:{value:{validate:(0,i.assertValueType)("string")}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(26),o=r(i);(0,o.default)("Noop",{visitor:[]}),(0,o.default)("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}})},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){var t=o(e);return 1===t.length?t[0]:u.unionTypeAnnotation(t)}function o(e){for(var t={},n={},r=[],i=[],a=0;a=0)){if(u.isAnyTypeAnnotation(s))return[s];if(u.isFlowBaseAnnotation(s))n[s.type]=s;else if(u.isUnionTypeAnnotation(s))r.indexOf(s.types)<0&&(e=e.concat(s.types),r.push(s.types));else if(u.isGenericTypeAnnotation(s)){var l=s.id.name;if(t[l]){var c=t[l];c.typeParameters?s.typeParameters&&(c.typeParameters.params=o(c.typeParameters.params.concat(s.typeParameters.params))):c=s.typeParameters}else t[l]=s}else i.push(s)}}for(var f in n)i.push(n[f]);for(var p in t)i.push(t[p]);return i}function a(e){if("string"===e)return u.stringTypeAnnotation();if("number"===e)return u.numberTypeAnnotation();if("undefined"===e)return u.voidTypeAnnotation();if("boolean"===e)return u.booleanTypeAnnotation();if("function"===e)return u.genericTypeAnnotation(u.identifier("Function"));if("object"===e)return u.genericTypeAnnotation(u.identifier("Object"));if("symbol"===e)return u.genericTypeAnnotation(u.identifier("Symbol"));throw new Error("Invalid typeof value")}t.__esModule=!0,t.createUnionTypeAnnotation=i,t.removeTypeDuplicates=o,t.createTypeAnnotationBasedOnTypeof=a;var s=n(1),u=r(s)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return!!e&&/^[a-z]|\-/.test(e)}function o(e,t){for(var n=e.value.split(/\r\n|\n|\r/),r=0,i=0;i=0)return!0}else if(o===e)return!0}return!1}function a(e,t){switch(t.type){case"BindExpression":return t.object===e||t.callee===e;case"MemberExpression":case"JSXMemberExpression":return!(t.property!==e||!t.computed)||t.object===e;case"MetaProperty":return!1;case"ObjectProperty":if(t.key===e)return t.computed;case"VariableDeclarator":return t.id!==e;case"ArrowFunctionExpression":case"FunctionDeclaration":case"FunctionExpression":for(var n=t.params,r=Array.isArray(n),i=0,n=r?n:(0,x.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;if(a===e)return!1}return t.id!==e;case"ExportSpecifier":return!t.source&&t.local===e;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"JSXAttribute":return t.name!==e;case"ClassProperty":return t.key===e?t.computed:t.value===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ClassDeclaration":case"ClassExpression":return t.id!==e;case"ClassMethod":case"ObjectMethod":return t.key===e&&t.computed;case"LabeledStatement":return!1;case"CatchClause":return t.param!==e;case"RestElement":return!1;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"ObjectPattern":case"ArrayPattern":return!1}return!0}function s(e){return"string"==typeof e&&!A.default.keyword.isReservedWordES6(e,!0)&&("await"!==e&&A.default.keyword.isIdentifierNameES6(e))}function u(e){return C.isVariableDeclaration(e)&&("var"!==e.kind||e[S.BLOCK_SCOPED_SYMBOL])}function l(e){return C.isFunctionDeclaration(e)||C.isClassDeclaration(e)||C.isLet(e)}function c(e){return C.isVariableDeclaration(e,{kind:"var"})&&!e[S.BLOCK_SCOPED_SYMBOL]}function f(e){return C.isImportDefaultSpecifier(e)||C.isIdentifier(e.imported||e.exported,{name:"default"})}function p(e,t){return(!C.isBlockStatement(e)||!C.isFunction(t,{body:e}))&&C.isScopable(e)}function d(e){return!!C.isType(e.type,"Immutable")||!!C.isIdentifier(e)&&"undefined"===e.name}function h(e,t){if("object"!==("undefined"==typeof e?"undefined":(0,y.default)(e))||"object"!==("undefined"==typeof e?"undefined":(0,y.default)(e))||null==e||null==t)return e===t;if(e.type!==t.type)return!1;for(var n=(0,m.default)(C.NODE_FIELDS[e.type]||e.type),r=n,i=Array.isArray(r),o=0,r=i?r:(0,x.default)(r);;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if(o=r.next(),o.done)break;a=o.value}var s=a;if((0,y.default)(e[s])!==(0,y.default)(t[s]))return!1;if(Array.isArray(e[s])){if(!Array.isArray(t[s]))return!1;if(e[s].length!==t[s].length)return!1;for(var u=0;u=0&&l>0){for(r=[],o=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),l]:(i=r.pop(),i=0?u:l;r.length&&(s=[o,a])}return s}e.exports=n,n.range=i},function(e,t){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-n(e)}function i(e){var t,r,i,o,a,s,u=e.length;a=n(e),s=new c(3*u/4-a),i=a>0?u-4:u;var f=0;for(t=0,r=0;t>16&255,s[f++]=o>>8&255,s[f++]=255&o;return 2===a?(o=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,s[f++]=255&o):1===a&&(o=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,s[f++]=o>>8&255,s[f++]=255&o),s}function o(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function a(e,t,n){for(var r,i=[],a=t;ac?c:l+s));return 1===r?(t=e[n-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="="),o.push(i),o.join("")}t.byteLength=r,t.toByteArray=i,t.fromByteArray=s;for(var u=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=f.length;p=t}function p(e,t){var n=[],i=h("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),v=o||s,m=i.body.indexOf(",")>=0;if(!v&&!m)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+g+i.post,p(e)):[e];var y;if(v)y=i.body.split(/\.\./);else if(y=a(i.body),1===y.length&&(y=p(y[0],!1).map(u),1===y.length)){var b=i.post.length?p(i.post,!1):[""];return b.map(function(e){return i.pre+y[0]+e})}var x,E=i.pre,b=i.post.length?p(i.post,!1):[""];if(v){var w=r(y[0]),A=r(y[1]),_=Math.max(y[0].length,y[1].length),C=3==y.length?Math.abs(r(y[2])):1,S=c,k=A0){var M=new Array(T+1).join("0");O=P<0?"-"+M+O.slice(1):M+O}}x.push(O)}}else x=d(y,function(e){return p(e,!1)});for(var R=0;R - * @license MIT - */ -"use strict";function r(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function i(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),a.alloc(+e)}function g(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,i);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):E(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}var l;if(i){var c=-1;for(l=n;ls&&(n=s-u),l=n;l>=0;l--){for(var f=!0,p=0;pi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,l,c,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=e[i+1],128===(192&u)&&(f=(31&o)<<6|63&u,f>127&&(a=f));break;case 3:u=e[i+1],l=e[i+2],128===(192&u)&&128===(192&l)&&(f=(15&o)<<12|(63&u)<<6|63&l,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],128===(192&u)&&128===(192&l)&&128===(192&c)&&(f=(15&o)<<18|(63&u)<<12|(63&l)<<6|63&c,f>65535&&f<1114112&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return O(r)}function O(e){var t=e.length;if(t<=ee)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,i){return i||B(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,i){return i||B(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,n,r,52,8),n+8}function W(e){if(e=q(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function G(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function K(e){return J.toByteArray(W(e))}function X(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function $(e){return e!==e}var J=n(393),Q=n(456),Z=n(396);t.Buffer=a,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:r(),t.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return s(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return l(null,e,t,n)},a.allocUnsafe=function(e){return c(null,e)},a.allocUnsafeSlow=function(e){return c(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,r,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,u=Math.min(o,s),l=this.slice(r,i),c=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=this[e],i=1,o=0;++o=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),Q.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),Q.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),Q.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),Q.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;I(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o1)for(var r=1;rc;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(22),i=n(227),o=n(12)("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(418);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){"use strict";var r=n(23).f,i=n(89),o=n(144),a=n(54),s=n(135),u=n(87),l=n(88),c=n(141),f=n(228),p=n(433),d=n(20),h=n(56).fastKey,v=d?"_s":"size",m=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var f=e(function(e,r){s(e,f,t,"_i"),e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,void 0!=r&&l(r,n,e[c],e)});return o(f.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var t=this,n=m(t,e);if(n){var r=n.n,i=n.p;delete t._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),t._f==n&&(t._f=r),t._l==n&&(t._l=i),t[v]--}return!!n},forEach:function(e){s(this,f,"forEach");for(var t,n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!m(this,e)}}),d&&r(f.prototype,"size",{get:function(){return u(this[v])}}),f},def:function(e,t,n){var r,i,o=m(e,t);return o?o.v=n:(e._l=o={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:m,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?f(0,n.k):"values"==t?f(0,n.v):f(0,[n.k,n.v]):(e._t=void 0,f(1))},n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){"use strict";var r=n(223),i=n(416);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){"use strict";var r=n(43),i=n(143),o=n(90);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){"use strict";e.exports=n(14).document&&document.documentElement},function(e,t,n){"use strict";var r=n(55),i=n(12)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(19);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){"use strict";var r=n(89),i=n(91),o=n(92),a={};n(28)(a,n(12)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(43),i=n(37);e.exports=function(e,t){for(var n,o=i(e),a=r(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===t)return n}},function(e,t,n){"use strict";var r=n(23),i=n(19),o=n(43);e.exports=n(20)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(37),o=n(231).f,a={}.toString,s="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==a.call(e)?u(e):o(i(e))}},function(e,t,n){"use strict";var r=n(27),i=n(93),o=n(146)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(21),i=n(5),o=n(36);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){"use strict";var r=n(22),i=n(19),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(54)(Function.call,n(230).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){"use strict";var r=n(14),i=n(5),o=n(23),a=n(20),s=n(12)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(148),i=n(87);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(e,t,n){"use strict";var r=n(148),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){"use strict";var r=n(19),i=n(233);e.exports=n(5).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){"use strict";var r=n(415),i=n(228),o=n(55),a=n(37);e.exports=n(141)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(420);e.exports=n(138)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(21);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";var r=n(21);r(r.S+r.F,"Object",{assign:n(229)})},function(e,t,n){"use strict";var r=n(21);r(r.S,"Object",{create:n(89)})},function(e,t,n){"use strict";var r=n(93),i=n(43);n(431)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){"use strict";var r=n(21);r(r.S,"Object",{setPrototypeOf:n(432).set})},function(e,t,n){"use strict";var r,i=n(136)(0),o=n(145),a=n(56),s=n(229),u=n(224),l=n(22),c=a.getWeak,f=Object.isExtensible,p=u.ufstore,d={},h=function(e){ -return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(l(e)){var t=c(e);return t===!0?p(this).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(this,e,t)}},m=e.exports=n(138)("WeakMap",h,v,u,!0,!0);7!=(new m).set((Object.freeze||Object)(d),7).get(d)&&(r=u.getConstructor(h),s(r.prototype,v),a.NEED=!0,i(["delete","has","get","set"],function(e){var t=m.prototype,n=t[e];o(t,e,function(t,i){if(l(t)&&!f(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)})}))},function(e,t,n){"use strict";var r=n(224);n(138)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(21);r(r.P+r.R,"Map",{toJSON:n(421)("Map")})},function(e,t,n){"use strict";n(151)("asyncIterator")},function(e,t,n){"use strict";n(151)("observable")},function(e,t,n){"use strict";function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function i(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(l||r);e.diff=i,e.prev=l,e.curr=r,l=r;for(var o=new Array(arguments.length),a=0;an||a===n&&s>r)&&(n=a,r=s,t=Number(i))}return t}var i=n(606),o=/^(?:( )+|\t+)/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t,n,a=0,s=0,u=0,l={};e.split(/\n/g).forEach(function(e){if(e){var r,i=e.match(o);i?(r=i[0].length,i[1]?s++:a++):r=0;var c=r-u;u=r,c?(n=c>0,t=l[n?c:-c],t?t[0]++:t=l[c]=[1,0]):t&&(t[1]+=Number(n))}});var c,f,p=r(l);return p?s>=a?(c="space",f=i(" ",p)):(c="tab",f=i("\t",p)):(c=null,f=""),{amount:p,type:c,indent:f}}},function(e,t){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(n,"\\$&")}},function(e,t){"use strict";!function(){function t(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function n(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(e){return r(e)||null!=e&&"FunctionDeclaration"===e.type}function o(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function a(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=o(t)}while(t);return!1}e.exports={isExpression:t,isStatement:r,isIterationStatement:n,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:o}}()},function(e,t,n){"use strict";!function(){function t(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,n){if(n&&t(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===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}}function o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function s(e){return"eval"===e||"arguments"===e}function u(e){var t,n,r;if(0===e.length)return!1;if(r=e.charCodeAt(0),!d.isIdentifierStartES5(r))return!1;for(t=1,n=e.length;t=n)return!1;if(i=e.charCodeAt(t),!(56320<=i&&i<=57343))return!1;r=l(r,i)}if(!o(r))return!1;o=d.isIdentifierPartES6}return!0}function f(e,t){return u(e)&&!o(e,t)}function p(e,t){return c(e)&&!a(e,t)}var d=n(235);e.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:s,isIdentifierNameES5:u,isIdentifierNameES6:c,isIdentifierES5:f,isIdentifierES6:p}}()},function(e,t,n){"use strict";e.exports=n(621)},function(e,t,n){"use strict";var r=n(176),i=new RegExp(r().source);e.exports=i.test.bind(i)},function(e,t){"use strict";t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:(d?-1:1)*(1/0);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?p/u:p*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=h,a/=256,l-=8);e[n+d-h]|=128*v}},function(e,t,n){"use strict";var r=function(e,t,n,r,i,o,a,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 l=[n,r,i,o,a,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};e.exports=r},function(e,t,n){"use strict";var r=n(594);e.exports=Number.isFinite||function(e){return!("number"!=typeof e||r(e)||e===1/0||e===-(1/0))}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0]};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},function(e,t,n){var r;(function(e,i){"use strict";var o="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};!function(a){var s="object"==o(t)&&t,u="object"==o(e)&&e&&e.exports==s&&e,l="object"==("undefined"==typeof i?"undefined":o(i))&&i;l.global!==l&&l.window!==l||(a=l);var c={},f=c.hasOwnProperty,p=function(e,t){var n;for(n in e)f.call(e,n)&&t(n,e[n])},d=function(e,t){return t?(p(t,function(t,n){e[t]=n}),e):e},h=function(e,t){for(var n=e.length,r=-1;++r=55296&&N<=56319&&B>j+1&&(F=L.charCodeAt(j+1),F>=56320&&F<=57343))){I=1024*(N-55296)+F-56320+65536;var V=I.toString(16);l||(V=V.toUpperCase()),o+="\\u{"+V+"}",j++}else{if(!n.escapeEverything){if(S.test(U)){o+=U;continue}if('"'==U){o+=a==U?'\\"':U;continue}if("'"==U){o+=a==U?"\\'":U;continue}}if("\0"!=U||i||C.test(L.charAt(j+1)))if(_.test(U))o+=A[U];else{var W=U.charCodeAt(0),V=W.toString(16);l||(V=V.toUpperCase());var q=V.length>2||i,H="\\"+(q?"u":"x")+("0000"+V).slice(q?-4:-2);o+=H}else o+="\\0"}}return n.wrap&&(o=a+o+a),n.escapeEtago?o.replace(/<\/(script|style)/gi,"<\\/$1"):o};k.version="1.3.0","object"==o(n(48))&&n(48)?(r=function(){return k}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))):s&&!s.nodeType?u?u.exports=k:s.jsesc=k:a.jsesc=k}(void 0)}).call(t,n(39)(e),function(){return this}())},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i="object"===r(t)?t:{};i.parse=function(){var e,t,n,i,o,a,s={"'":"'",'"':'"',"\\":"\\","/":"/","\n":"",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},u=[" ","\t","\r","\n","\v","\f"," ","\ufeff"],l=function(e){return""===e?"EOF":"'"+e+"'"},c=function r(i){var r=new SyntaxError;throw r.message=i+" at line "+t+" column "+n+" of the JSON5 data. Still to read: "+JSON.stringify(o.substring(e-1,e+19)),r.at=e,r.lineNumber=t,r.columnNumber=n,r},f=function(r){return r&&r!==i&&c("Expected "+l(r)+" instead of "+l(i)),i=o.charAt(e),e++,n++,("\n"===i||"\r"===i&&"\n"!==p())&&(t++,n=0),i},p=function(){return o.charAt(e)},d=function(){var e=i;for("_"!==i&&"$"!==i&&(i<"a"||i>"z")&&(i<"A"||i>"Z")&&c("Bad identifier as unquoted key");f()&&("_"===i||"$"===i||i>="a"&&i<="z"||i>="A"&&i<="Z"||i>="0"&&i<="9");)e+=i;return e},h=function e(){var e,t="",n="",r=10;if("-"!==i&&"+"!==i||(t=i,f(i)),"I"===i)return e=x(),("number"!=typeof e||isNaN(e))&&c("Unexpected word for number"),"-"===t?-e:e;if("N"===i)return e=x(),isNaN(e)||c("expected word to be NaN"),e;switch("0"===i&&(n+=i,f(),"x"===i||"X"===i?(n+=i,f(),r=16):i>="0"&&i<="9"&&c("Octal literal")),r){case 10:for(;i>="0"&&i<="9";)n+=i,f();if("."===i)for(n+=".";f()&&i>="0"&&i<="9";)n+=i;if("e"===i||"E"===i)for(n+=i,f(),"-"!==i&&"+"!==i||(n+=i,f());i>="0"&&i<="9";)n+=i,f();break;case 16:for(;i>="0"&&i<="9"||i>="A"&&i<="F"||i>="a"&&i<="f";)n+=i,f()}return e="-"===t?-n:+n,isFinite(e)?e:void c("Bad number")},v=function e(){var t,n,r,o,e="";if('"'===i||"'"===i)for(r=i;f();){if(i===r)return f(),e;if("\\"===i)if(f(),"u"===i){for(o=0,n=0;n<4&&(t=parseInt(f(),16),isFinite(t));n+=1)o=16*o+t;e+=String.fromCharCode(o)}else if("\r"===i)"\n"===p()&&f();else{if("string"!=typeof s[i])break;e+=s[i]}else{if("\n"===i)break;e+=i}}c("Bad string")},m=function(){"/"!==i&&c("Not an inline comment");do if(f(),"\n"===i||"\r"===i)return void f();while(i)},g=function(){"*"!==i&&c("Not a block comment");do for(f();"*"===i;)if(f("*"),"/"===i)return void f("/");while(i);c("Unterminated block comment")},y=function(){"/"!==i&&c("Not a comment"),f("/"),"/"===i?m():"*"===i?g():c("Unrecognized comment")},b=function(){for(;i;)if("/"===i)y();else{if(!(u.indexOf(i)>=0))return;f()}},x=function(){switch(i){case"t":return f("t"),f("r"),f("u"),f("e"),!0;case"f":return f("f"),f("a"),f("l"),f("s"),f("e"),!1;case"n":return f("n"),f("u"),f("l"),f("l"),null;case"I":return f("I"),f("n"),f("f"),f("i"),f("n"),f("i"),f("t"),f("y"),1/0;case"N":return f("N"),f("a"),f("N"),NaN}c("Unexpected "+l(i))},E=function e(){var e=[];if("["===i)for(f("["),b();i;){if("]"===i)return f("]"),e;if(","===i?c("Missing array element"):e.push(a()),b(),","!==i)return f("]"),e;f(","),b()}c("Bad array")},w=function e(){var t,e={};if("{"===i)for(f("{"),b();i;){if("}"===i)return f("}"),e;if(t='"'===i||"'"===i?v():d(),b(),f(":"),e[t]=a(),b(),","!==i)return f("}"),e;f(","),b()}c("Bad object")};return a=function(){switch(b(),i){case"{":return w();case"[":return E();case'"':case"'":return v();case"-":case"+":case".":return h();default:return i>="0"&&i<="9"?h():x()}},function(s,u){var l;return o=String(s),e=0,t=1,n=1,i=" ",l=a(),b(),i&&c("Syntax error"),"function"==typeof u?function e(t,n){var i,o,a=t[n];if(a&&"object"===("undefined"==typeof a?"undefined":r(a)))for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o=e(a,i),void 0!==o?a[i]=o:delete a[i]);return u.call(t,n,a)}({"":l},""):l}}(),i.stringify=function(e,t,n){function o(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e||"$"===e}function a(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e||"$"===e}function s(e){if("string"!=typeof e)return!1;if(!a(e[0]))return!1;for(var t=1,n=e.length;t10&&(e=e.substring(0,10));for(var r=n?"":"\n",i=0;i=0?i:void 0:i};i.isWord=s;var v,m=[];n&&("string"==typeof n?v=n:"number"==typeof n&&n>=0&&(v=f(" ",n,!0)));var g=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,y={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},b={"":e};return void 0===e?h(b,"",!0):d(b,"",!0)}},function(e,t){"use strict";var n=[],r=[];e.exports=function(e,t){if(e===t)return 0;var i=e.length,o=t.length;if(0===i)return o;if(0===o)return i;for(var a,s,u,l,c=0,f=0;cs?l>s?s+1:l:l>u?u+1:l;return s}},function(e,t,n){"use strict";var r=n(38),i=n(15),o=r(i,"DataView");e.exports=o},function(e,t,n){"use strict";function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}var i=n(162);e.exports=r},function(e,t){"use strict";function n(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=t?e:t)),e}e.exports=n},function(e,t,n){"use strict";var r=n(16),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){"use strict";var r=n(480),i=n(517),o=i(r);e.exports=o},function(e,t,n){"use strict";function r(e,t,n,a,s){var u=-1,l=e.length;for(n||(n=o),s||(s=[]);++u0&&n(c)?t>1?r(c,t-1,n,a,s):i(s,c):a||(s[s.length]=c)}return s}var i=n(157),o=n(534);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e&&i(e,t,o)}var i=n(243),o=n(31);e.exports=r},function(e,t){"use strict";function n(e,t){return null!=e&&i.call(e,t)}var r=Object.prototype,i=r.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e,t){return null!=e&&t in Object(e)}e.exports=n},function(e,t){"use strict";function n(e,t,n,r){for(var i=n-1,o=e.length;++i-1;)d!==e&&c.call(d,h,1),c.call(e,h,1);return e}var i=n(58),o=n(162),a=n(483),s=n(101),u=n(164),l=Array.prototype,c=l.splice;e.exports=r},function(e,t){"use strict";function n(e,t){var n="";if(!e||t<1||t>r)return n;do t%2&&(n+=e),t=i(t/2),t&&(e+=e);while(t);return n}var r=9007199254740991,i=Math.floor;e.exports=n},function(e,t,n){"use strict";var r=n(567),i=n(254),o=n(109),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){"use strict";function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}e.exports=n},function(e,t){"use strict";function n(e,t){for(var n=-1,r=Array(e);++n=c){var m=t?null:u(e);if(m)return l(m);d=!1,f=s,v=new i}else v=t?[]:h;e:for(;++rt||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e=u)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}var i=n(512);e.exports=r},function(e,t,n){"use strict";function r(e,t){return i(e,o(e),t)}var i=n(30),o=n(166);e.exports=r},function(e,t,n){"use strict";function r(e,t){return i(e,o(e),t)}var i=n(30),o=n(258);e.exports=r},function(e,t,n){"use strict";var r=n(15),i=r["__core-js_shared__"];e.exports=i},function(e,t,n){"use strict";function r(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a-1}var i=n(99);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i=n(99);e.exports=r},function(e,t,n){"use strict";function r(){this.size=0,this.__data__={hash:new i,map:new(a||o),string:new i}}var i=n(464),o=n(97),a=n(155);e.exports=r},function(e,t,n){"use strict";function r(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}var i=n(103);e.exports=r},function(e,t,n){"use strict";function r(e){return i(this,e).get(e)}var i=n(103);e.exports=r},function(e,t,n){"use strict";function r(e){return i(this,e).has(e)}var i=n(103);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var i=n(103);e.exports=r},function(e,t,n){"use strict";function r(e){var t=i(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}var i=n(580),o=500;e.exports=r},function(e,t,n){"use strict";var r=n(266),i=r(Object.keys,Object);e.exports=i},function(e,t){"use strict";function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t){"use strict";function n(e){return i.call(e)}var r=Object.prototype,i=r.toString;e.exports=n},function(e,t,n){"use strict";function r(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),u=Array(s);++a0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;e.exports=n},function(e,t,n){"use strict";function r(){this.__data__=new i,this.size=0}var i=n(97);e.exports=r},function(e,t){"use strict";function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){"use strict";function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){"use strict";function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},function(e,t,n){"use strict";function r(e,t,n){return e=s(e),n=null==n?0:i(a(n),0,e.length),t=o(t),e.slice(n,n+t.length)==t}var i=n(476),o=n(248),a=n(47),s=n(113);e.exports=r},function(e,t){"use strict";function n(){return!1}e.exports=n},function(e,t,n){"use strict";function r(e){if(!e)return 0===e?e:0;if(e=i(e),e===o||e===-o){var t=e<0?-1:1;return t*a}return e===e?e:0}var i=n(589),o=1/0,a=1.7976931348623157e308;e.exports=r},function(e,t,n){"use strict";function r(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?f(e.slice(2),n?2:8):u.test(e)?a:+e}var i=n(16),o=n(60),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;e.exports=r},function(e,t,n){"use strict";function r(e){return i(e,o(e))}var i=n(30),o=n(46);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.length?i(e):[]}var i=n(505);e.exports=r},function(e,t,n){"use strict";function r(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}function i(e,t){return t=t||{},function(n,r,i){return a(n,e,t)}}function o(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 a(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 s(t,n).match(e))}function s(e,t){if(!(this instanceof s))return new s(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==m.sep&&(e=e.split(m.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 u(){if(!this._made){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(C)}),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 e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}}function l(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,o=e.length;i65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return g;if(""===e)return"";for(var i,o,a="",s=!!r.nocase,u=!1,l=[],c=[],f=!1,p=-1,d=-1,v="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this,y=0,w=e.length;y-1;T--){var M=c[T],R=a.slice(0,M.reStart),N=a.slice(M.reStart,M.reEnd-8),F=a.slice(M.reEnd-8,M.reEnd),I=a.slice(M.reEnd);F+=I;var L=R.split("(").length-1,j=I;for(y=0;y=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,c,t,f),c!==a))}var d;if("string"==typeof u?(d=r.nocase?l.toLowerCase()===u.toLowerCase():l===u,this.debug("string match",u,l,d)):(d=l.match(u),this.debug("pattern match",u,l,d)),!d)return!1}if(i===a&&o===s)return!0;if(i===a)return n;if(o===s){var h=i===a-1&&""===e[i];return h}throw new Error("wtf?")}},function(e,t){"use strict";function n(e){if(e=String(e),!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*f;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*u;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(e){return e>=c?Math.round(e/c)+"d":e>=l?Math.round(e/l)+"h":e>=u?Math.round(e/u)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function i(e){return o(e,c,"day")||o(e,l,"hour")||o(e,u,"minute")||o(e,s,"second")||e+" ms"}function o(e,t,n){if(!(e0)return n(e);if("number"===o&&isNaN(e)===!1)return t.long?i(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){"use strict";e.exports=Number.isNaN||function(e){return e!==e}},function(e,t,n){(function(t){"use strict";function n(e){return"/"===e.charAt(0)}function r(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,n=t.exec(e),r=n[1]||"",i=Boolean(r&&":"!==r.charAt(1));return Boolean(n[2]||i)}e.exports="win32"===t.platform?r:n,e.exports.posix=n,e.exports.win32=r}).call(t,n(8))},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}var o=n(13),a=i(o),s=n(1),u=r(s),l=Object.prototype.hasOwnProperty;t.hoist=function(e){function t(e,t){u.assertVariableDeclaration(e);var r=[];return e.declarations.forEach(function(e){n[e.id.name]=u.identifier(e.id.name),e.init?r.push(u.assignmentExpression("=",e.id,e.init)):t&&r.push(e.id)}),0===r.length?null:1===r.length?r[0]:u.sequenceExpression(r)}u.assertFunction(e.node);var n={};e.get("body").traverse({VariableDeclaration:{exit:function(e){var n=t(e.node,!1);null===n?e.remove():e.replaceWith(u.expressionStatement(n)),e.skip()}},ForStatement:function(e){var n=e.node.init;u.isVariableDeclaration(n)&&e.get("init").replaceWith(t(n,!1))},ForXStatement:function(e){var n=e.get("left");n.isVariableDeclaration()&&n.replaceWith(t(n.node,!0))},FunctionDeclaration:function(e){var t=e.node;n[t.id.name]=t.id;var r=u.expressionStatement(u.assignmentExpression("=",t.id,u.functionExpression(t.id,t.params,t.body,t.generator,t.expression)));e.parentPath.isBlockStatement()?(e.parentPath.unshiftContainer("body",r),e.remove()):e.replaceWith(r),e.skip()},FunctionExpression:function(e){e.skip()}});var r={};e.get("params").forEach(function(e){var t=e.node;u.isIdentifier(t)&&(r[t.name]=t)});var i=[];return(0,a.default)(n).forEach(function(e){l.call(r,e)||i.push(u.variableDeclarator(n[e],null))}),0===i.length?null:u.variableDeclaration("var",i)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return n(601)}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(){v.default.ok(this instanceof o)}function a(e){o.call(this),g.assertLiteral(e),this.returnLoc=e}function s(e,t,n){o.call(this),g.assertLiteral(e),g.assertLiteral(t),n?g.assertIdentifier(n):n=null,this.breakLoc=e,this.continueLoc=t,this.label=n}function u(e){o.call(this),g.assertLiteral(e),this.breakLoc=e}function l(e,t,n){o.call(this),g.assertLiteral(e),t?v.default.ok(t instanceof c):t=null,n?v.default.ok(n instanceof f):n=null,v.default.ok(t||n),this.firstLoc=e,this.catchEntry=t,this.finallyEntry=n}function c(e,t){o.call(this),g.assertLiteral(e),g.assertIdentifier(t),this.firstLoc=e,this.paramId=t}function f(e,t){o.call(this),g.assertLiteral(e),g.assertLiteral(t),this.firstLoc=e,this.afterLoc=t}function p(e,t){o.call(this),g.assertLiteral(e),g.assertIdentifier(t),this.breakLoc=e,this.label=t}function d(e){v.default.ok(this instanceof d);var t=n(278).Emitter;v.default.ok(e instanceof t),this.emitter=e,this.entryStack=[new a(e.finalLoc)]}var h=n(62),v=i(h),m=n(1),g=r(m),y=n(115);(0,y.inherits)(a,o),t.FunctionEntry=a,(0,y.inherits)(s,o),t.LoopEntry=s,(0,y.inherits)(u,o),t.SwitchEntry=u,(0,y.inherits)(l,o),t.TryEntry=l,(0,y.inherits)(c,o),t.CatchEntry=c,(0,y.inherits)(f,o),t.FinallyEntry=f,(0,y.inherits)(p,o),t.LabeledEntry=p;var b=d.prototype;t.LeapManager=d,b.withEntry=function(e,t){v.default.ok(e instanceof o),this.entryStack.push(e);try{t.call(this.emitter)}finally{var n=this.entryStack.pop();v.default.strictEqual(n,e)}},b._findLeapLocation=function(e,t){for(var n=this.entryStack.length-1;n>=0;--n){var r=this.entryStack[n],i=r[e];if(i)if(t){if(r.label&&r.label.name===t.name)return i}else if(!(r instanceof p))return i}return null},b.getBreakLoc=function(e){return this._findLeapLocation("breakLoc",e)},b.getContinueLoc=function(e){return this._findLeapLocation("continueLoc",e)}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){function n(e){function t(e){return n||(Array.isArray(e)?e.some(t):l.isNode(e)&&(s.default.strictEqual(n,!1),n=r(e))),n}l.assertNode(e);var n=!1,i=l.VISITOR_KEYS[e.type];if(i)for(var o=0;o0&&(a.node.body=l);var c=o(e);f.assertIdentifier(n.id);var h=f.identifier(n.id.name+"$"),m=(0,p.hoist)(e),y=s(e,i);if(y){m=m||f.variableDeclaration("var",[]);var b=f.identifier("arguments");b._shadowedFunctionLiteral=e,m.declarations.push(f.variableDeclarator(i,b))}var w=new d.Emitter(r);w.explode(e.get("body")),m&&m.declarations.length>0&&u.push(m);var A=[w.getContextFunction(h),n.generator?c:f.nullLiteral(),f.thisExpression()],_=w.getTryLocsList();_&&A.push(_);var C=f.callExpression(g.runtimeProperty(n.async?"async":"wrap"),A);u.push(f.returnStatement(C)),n.body=f.blockStatement(u);var S=a.node.directives;S&&(n.body.directives=S);var k=n.generator;k&&(n.generator=!1),n.async&&(n.async=!1),k&&f.isExpression(n)&&e.replaceWith(f.callExpression(g.runtimeProperty("mark"),[n])),e.requeue()}}};var b={"FunctionExpression|FunctionDeclaration":function(e){e.skip()},Identifier:function(e,t){"arguments"===e.node.name&&g.isReference(e)&&(e.replaceWith(t.argsId),t.didRenameArguments=!0)}},x={MetaProperty:function(e){var t=e.node;"function"===t.meta.name&&"sent"===t.property.name&&e.replaceWith(f.memberExpression(this.context,f.identifier("_sent")))}},E={Function:function(e){e.skip()},AwaitExpression:function(e){var t=e.node.argument;e.replaceWith(f.yieldExpression(f.callExpression(g.runtimeProperty("awrap"),[t]),!1))}}},function(e,t,n){"use strict";var r=n(277);t.REGULAR={d:r().addRange(48,57),D:r().addRange(0,47).addRange(58,65535),s:r(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:r().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,65535),w:r(95).addRange(48,57).addRange(65,90).addRange(97,122),W:r(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,65535)},t.UNICODE={d:r().addRange(48,57),D:r().addRange(0,47).addRange(58,1114111),s:r(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:r().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111),w:r(95).addRange(48,57).addRange(65,90).addRange(97,122),W:r(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)},t.UNICODE_IGNORE_CASE={d:r().addRange(48,57),D:r().addRange(0,47).addRange(58,1114111),s:r(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:r().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111),w:r(95,383,8490).addRange(48,57).addRange(65,90).addRange(97,122),W:r(75,83,96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)}},function(e,t,n){"use strict";function r(e){return A?w?v.UNICODE_IGNORE_CASE[e]:v.UNICODE[e]:v.REGULAR[e]}function i(e,t){return g.call(e,t)}function o(e,t){for(var n in t)e[n]=t[n]}function a(e,t){if(t){var n=p(t,"");switch(n.type){case"characterClass":case"group":case"value":break;default:n=s(n,t)}o(e,n)}}function s(e,t){return{type:"group",behavior:"ignore",body:[e],raw:"(?:"+t+")"}}function u(e){return!!i(h,e)&&h[e]}function l(e){var t=d();e.body.forEach(function(e){switch(e.type){case"value":if(t.add(e.codePoint),w&&A){var n=u(e.codePoint);n&&t.add(n)}break;case"characterClassRange":var i=e.min.codePoint,o=e.max.codePoint;t.addRange(i,o),w&&A&&t.iuAddRange(i,o);break;case"characterClassEscape":t.add(r(e.value));break;default:throw Error("Unknown term type: "+e.type)}});return e.negative&&(t=(A?y:b).clone().remove(t)),a(e,t.toString()),e}function c(e){switch(e.type){case"dot":a(e,(A?x:E).toString());break;case"characterClass":e=l(e);break;case"characterClassEscape":a(e,r(e.value).toString());break;case"alternative":case"disjunction":case"group":case"quantifier":e.body=e.body.map(c);break;case"value":var t=e.codePoint,n=d(t);if(w&&A){var i=u(t);i&&n.add(i)}a(e,n.toString());break;case"anchor":case"empty":case"group":case"reference":break;default:throw Error("Unknown term type: "+e.type)}return e}var f=n(604).generate,p=n(605).parse,d=n(277),h=n(622),v=n(602),m={},g=m.hasOwnProperty,y=d().addRange(0,1114111),b=d().addRange(0,65535),x=y.clone().remove(10,13,8232,8233),E=x.clone().intersection(b);d.prototype.iuAddRange=function(e,t){var n=this;do{var r=u(e);r&&n.add(r)}while(++e<=t);return n};var w=!1,A=!1;e.exports=function(e,t){var n=p(e,t);return w=!!t&&t.indexOf("i")>-1,A=!!t&&t.indexOf("u")>-1,o(n,c(n)),f(n)}},function(e,t,n){var r;(function(e,i){"use strict";var o="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};(function(){function a(){var e,t,n=16384,r=[],i=-1,o=arguments.length;if(!o)return"";for(var a="";++i1114111||P(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(s-=65536,e=(s>>10)+55296,t=s%1024+56320,r.push(e,t)),(i+1==o||r.length>n)&&(a+=D.apply(null,r),r.length=0)}return a}function s(e,t){if(t.indexOf("|")==-1){if(e==t)return;throw Error("Invalid node type: "+e)}if(t=s.hasOwnProperty(t)?s[t]:s[t]=RegExp("^(?:"+t+")$"),!t.test(e))throw Error("Invalid node type: "+e)}function u(e){var t=e.type;if(u.hasOwnProperty(t)&&"function"==typeof u[t])return u[t](e);throw Error("Invalid node type: "+t)}function l(e){s(e.type,"alternative");var t=e.body,n=t?t.length:0;if(1==n)return E(t[0]);for(var r=-1,i="";++r=55296&&n<=56319&&(r=E().charCodeAt(0),r>=56320&&r<=57343))return J++,o("symbol",1024*(n-55296)+r-56320+65536,J-2,J)}return o("symbol",n,J-1,J)}function u(e,t,r){return n({type:"disjunction",body:e,range:[t,r]})}function l(){return n({type:"dot",range:[J-1,J]})}function c(e){return n({type:"characterClassEscape",value:e,range:[J-2,J]})}function f(e){return n({type:"reference",matchIndex:parseInt(e,10),range:[J-1-e.length,J]})}function p(e,t,r,i){return n({type:"group",behavior:e,body:t,range:[r,i]})}function d(e,t,r,i){return null==i&&(r=J-1,i=J),n({type:"quantifier",min:e,max:t,greedy:!0,body:null,range:[r,i]})}function h(e,t,r){return n({type:"alternative",body:e,range:[t,r]})}function v(e,t,r,i){return n({type:"characterClass",body:e,negative:t,range:[r,i]})}function m(e,t,r,i){return e.codePoint>t.codePoint&&z("invalid range in character class",e.raw+"-"+t.raw,r,i),n({type:"characterClassRange",min:e,max:t,range:[r,i]})}function g(e){return"alternative"===e.type?e.body:[e]}function y(t){t=t||1;var n=e.substring(J,J+t);return J+=t||1,n}function b(e){x(e)||z("character",e)}function x(t){if(e.indexOf(t,J)===J)return y(t.length)}function E(){return e[J]}function w(t){return e.indexOf(t,J)===J}function A(t){return e[J+1]===t}function _(t){var n=e.substring(J),r=n.match(t);return r&&(r.range=[],r.range[0]=J,y(r[0].length),r.range[1]=J),r}function C(){var e=[],t=J;for(e.push(S());x("|");)e.push(S());return 1===e.length?e[0]:u(e,t,J)}function S(){for(var e,t=[],n=J;e=k();)t.push(e);return 1===t.length?t[0]:h(t,n,J)}function k(){if(J>=e.length||w("|")||w(")"))return null;var t=P();if(t)return t;var n=T();n||z("Expected atom");var i=O()||!1;return i?(i.body=g(n),r(i,n.range[0]),i):n}function D(e,t,n,r){var i=null,o=J;if(x(e))i=t;else{if(!x(n))return!1;i=r}var a=C();a||z("Expected disjunction"),b(")");var s=p(i,g(a),o,J);return"normal"==i&&X&&K++,s}function P(){return x("^")?i("start",1):x("$")?i("end",1):x("\\b")?i("boundary",2):x("\\B")?i("not-boundary",2):D("(?=","lookahead","(?!","negativeLookahead")}function O(){var e,t,n,r,i=J;return x("*")?t=d(0):x("+")?t=d(1):x("?")?t=d(0,1):(e=_(/^\{([0-9]+)\}/))?(n=parseInt(e[1],10),t=d(n,n,e.range[0],e.range[1])):(e=_(/^\{([0-9]+),\}/))?(n=parseInt(e[1],10),t=d(n,void 0,e.range[0],e.range[1])):(e=_(/^\{([0-9]+),([0-9]+)\}/))&&(n=parseInt(e[1],10),r=parseInt(e[2],10),n>r&&z("numbers out of order in {} quantifier","",i,J),t=d(n,r,e.range[0],e.range[1])),t&&x("?")&&(t.greedy=!1,t.range[1]+=1),t}function T(){var e;return(e=_(/^[^^$\\.*+?(){[|]/))?s(e):x(".")?l():x("\\")?(e=N(),e||z("atomEscape"),e):(e=B())?e:D("(?:","ignore","(","normal")}function M(e){if($){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&w("\\")&&A("u")){var i=J;J++;var o=R();"unicodeEscape"==o.kind&&(r=o.codePoint)>=56320&&r<=57343?(e.range[1]=o.range[1],e.codePoint=1024*(t-55296)+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",n(e)):J=i}}return e}function R(){return N(!0)}function N(e){var t,n=J;if(t=F())return t;if(e){if(x("b"))return a("singleEscape",8,"\\b");x("B")&&z("\\B not possible inside of CharacterClass","",n)}return t=I()}function F(){var e,t;if(e=_(/^(?!0)\d+/)){t=e[0];var n=parseInt(e[0],10);return n<=K?f(e[0]):(Y.push(n),y(-e[0].length),(e=_(/^[0-7]{1,3}/))?a("octal",parseInt(e[0],8),e[0],1):(e=s(_(/^[89]/)),r(e,e.range[0]-1)))}return(e=_(/^[0-7]{1,3}/))?(t=e[0],/^0{1,3}$/.test(t)?a("null",0,"0",t.length+1):a("octal",parseInt(t,8),t,1)):!!(e=_(/^[dDsSwW]/))&&c(e[0])}function I(){var e;if(e=_(/^[fnrtv]/)){var t=0;switch(e[0]){case"t":t=9;break;case"n":t=10;break;case"v":t=11;break;case"f":t=12;break;case"r":t=13}return a("singleEscape",t,"\\"+e[0])}return(e=_(/^c([a-zA-Z])/))?a("controlLetter",e[1].charCodeAt(0)%32,e[1],2):(e=_(/^x([0-9a-fA-F]{2})/))?a("hexadecimalEscape",parseInt(e[1],16),e[1],2):(e=_(/^u([0-9a-fA-F]{4})/))?M(a("unicodeEscape",parseInt(e[1],16),e[1],2)):$&&(e=_(/^u\{([0-9a-fA-F]+)\}/))?a("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):j()}function L(e){var t=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԯԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠ-ࢲࣤ-ॣ०-९ॱ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧ᪰-᪽ᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶ᳸᳹ᴀ-᷵᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚝꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꧠ-ꧾꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︭︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]");return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&t.test(String.fromCharCode(e))}function j(){var e,t="‌",n="‍";return L(E())?x(t)?a("identifier",8204,t):x(n)?a("identifier",8205,n):null:(e=y(),a("identifier",e.charCodeAt(0),e,1))}function B(){var e,t=J;return(e=_(/^\[\^/))?(e=U(),b("]"),v(e,!0,t,J)):x("[")?(e=U(),b("]"),v(e,!1,t,J)):null}function U(){var e;return w("]")?[]:(e=W(),e||z("nonEmptyClassRanges"),e)}function V(e){var t,n,r;if(w("-")&&!A("]")){b("-"),r=H(),r||z("classAtom"),n=J;var i=U();return i||z("classRanges"),t=e.range[0],"empty"===i.type?[m(e,r,t,n)]:[m(e,r,t,n)].concat(i)}return r=q(),r||z("nonEmptyClassRangesNoDash"),[e].concat(r)}function W(){var e=H();return e||z("classAtom"),w("]")?[e]:V(e)}function q(){var e=H();return e||z("classAtom"),w("]")?e:V(e)}function H(){return x("-")?s("-"):G()}function G(){var e;return(e=_(/^[^\\\]-]/))?s(e[0]):x("\\")?(e=R(),e||z("classEscape"),M(e)):void 0}function z(t,n,r,i){r=null==r?J:r,i=null==i?r:i;var o=Math.max(0,r-10),a=Math.min(i+10,e.length),s=" "+e.substring(o,a),u=" "+new Array(r-o+1).join(" ")+"^";throw SyntaxError(t+" at position "+r+(n?": "+n:"")+"\n"+s+"\n"+u)}var Y=[],K=0,X=!0,$=(t||"").indexOf("u")!==-1,J=0;e=String(e),""===e&&(e="(?:)");var Q=C();Q.range[1]!==e.length&&z("Could not parse entire input - got stuck","",Q.range[1]);for(var Z=0;Z>=1);return n}},function(e,t){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e0?r-u>1?n(u,r,i,o,a,s):s==t.LEAST_UPPER_BOUND?r1?n(e,u,i,o,a,s):s==t.LEAST_UPPER_BOUND?u:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,o){if(0===r.length)return-1;var a=n(-1,r.length,e,r,i,o||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===i(r[a],r[a-1],!0);)--a;return a}},function(e,t,n){"use strict";function r(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return r>n||r==n&&a>=i||o.compareByGeneratedPositionsInflated(e,t)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var o=n(61);i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){r(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},function(e,t){"use strict";function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t){return Math.round(e+Math.random()*(t-e))}function i(e,t,o,a){if(o=0){var o=this._originalMappings[i];if(void 0===e.column)for(var a=o.originalLine;o&&o.originalLine===a;)r.push({line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i];else for(var l=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==l;)r.push({line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}return r},t.SourceMapConsumer=r,i.prototype=Object.create(r.prototype),i.prototype.consumer=r,i.fromSourceMap=function(e){var t=Object.create(i.prototype),n=t._names=l.fromArray(e._names.toArray(),!0),r=t._sources=l.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),u=t.__generatedMappings=[],c=t.__originalMappings=[],p=0,d=a.length;p1&&(n.source=v+i[1],v+=i[1],n.originalLine=d+i[2],d=n.originalLine,n.originalLine+=1,n.originalColumn=h+i[3],h=n.originalColumn,i.length>4&&(n.name=m+i[4],m+=i[4])),w.push(n),"number"==typeof n.originalLine&&E.push(n)}f(w,s.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,f(E,s.compareByOriginalPositions),this.__originalMappings=E},i.prototype._findMapping=function(e,t,n,r,i,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return u.search(e,t,i,o)},i.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var o=s.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),null!=this.sourceRoot&&(o=s.join(this.sourceRoot,o)));var a=s.getArg(i,"name",null);return null!==a&&(a=this._names.at(a)),{source:o,line:s.getArg(i,"originalLine",null),column:s.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},i.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=s.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=s.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(e){var t=s.getArg(e,"source");if(null!=this.sourceRoot&&(t=s.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};t=this._sources.indexOf(t);var n={source:t,originalLine:s.getArg(e,"line"),originalColumn:s.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=i,a.prototype=Object.create(r.prototype),a.prototype.constructor=r,a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&(p&&i(p,l()),s.add(u.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=o.join(n,e)),s.setSourceContent(e,r))}),s},r.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},r.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},r.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n1&&(n+=" ("+p+")")),e(t.content,l({filename:n},r(t))).code}function r(e){return{presets:e.presets||["react","es2015"],plugins:e.plugins||["transform-class-properties","transform-object-rest-spread","transform-flow-strip-types"],sourceMaps:"inline"}}function i(e,t){var r=document.createElement("script");r.text=n(e,t),f.appendChild(r)}function o(e,t,n){var r=new XMLHttpRequest;return r.open("GET",e,!0),"overrideMimeType"in r&&r.overrideMimeType("text/plain"),r.onreadystatechange=function(){if(4===r.readyState){if(0!==r.status&&200!==r.status)throw n(),new Error("Could not load "+e);t(r.responseText)}},r.send(null)}function a(e,t){var n=e.getAttribute(t);return""===n?[]:n?n.split(",").map(function(e){return e.trim()}):null}function s(e,t){function n(){var t,n;for(n=0;n - * @license MIT - */ -"use strict";function r(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function i(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),a.alloc(+e)}function g(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,i);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):E(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}var l;if(i){var c=-1;for(l=n;ls&&(n=s-u),l=n;l>=0;l--){for(var f=!0,p=0;pi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,l,c,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=e[i+1],128===(192&u)&&(f=(31&o)<<6|63&u,f>127&&(a=f));break;case 3:u=e[i+1],l=e[i+2],128===(192&u)&&128===(192&l)&&(f=(15&o)<<12|(63&u)<<6|63&l,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],128===(192&u)&&128===(192&l)&&128===(192&c)&&(f=(15&o)<<18|(63&u)<<12|(63&l)<<6|63&c,f>65535&&f<1114112&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return O(r)}function O(e){var t=e.length;if(t<=ee)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,i){return i||B(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,i){return i||B(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,n,r,52,8),n+8}function W(e){if(e=q(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function G(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function K(e){return J.toByteArray(W(e))}function X(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function $(e){return e!==e}var J=n(842),Q=n(843),Z=n(844);t.Buffer=a,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:r(),t.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return s(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return l(null,e,t,n)},a.allocUnsafe=function(e){return c(null,e)},a.allocUnsafeSlow=function(e){return c(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,r,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,u=Math.min(o,s),l=this.slice(r,i),c=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=this[e],i=1,o=0;++o=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),Q.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),Q.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),Q.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),Q.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;I(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-n(e)}function i(e){var t,r,i,o,a,s,u=e.length;a=n(e),s=new c(3*u/4-a),i=a>0?u-4:u;var f=0;for(t=0,r=0;t>16&255,s[f++]=o>>8&255,s[f++]=255&o;return 2===a?(o=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,s[f++]=255&o):1===a&&(o=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,s[f++]=o>>8&255,s[f++]=255&o),s}function o(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function a(e,t,n){for(var r,i=[],a=t;ac?c:l+s));return 1===r?(t=e[n-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="="),o.push(i),o.join("")}t.byteLength=r,t.toByteArray=i,t.fromByteArray=s;for(var u=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=f.length;p>1,c=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:(d?-1:1)*(1/0);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?p/u:p*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=h,a/=256,l-=8);e[n+d-h]|=128*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(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)}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function e(e,t){for(var n=0;n {\n var list = [];\n var console = { log(...x) {\n list.push({val: x, multipleArgs: x.length !== 1})\n }};\n "+t+"\n return list;\n });\n ",{presets:["es2015","react","stage-1"]}).code},this._setTimeout=function(){for(var e=arguments.length,t=Array(e),n=0;n (\n \n
    \n
    \n \n );\n\n}\n"; -},function(e,t){e.exports="class Example extends React.Component {\n\n constructor() {\n super();\n this.state = {};\n }\n\n componentDidMount() {\n this.updateOutput();\n }\n\n updateOutput = () => (\n this.setState({ flex: ReactDOM.findDOMNode(this.refs.output).style.flex })\n );\n\n linkState = key => ({\n value: this.state[key],\n requestChange: (value) => {\n this.setState({ [key]: value });\n setTimeout(this.updateOutput);\n }\n });\n\n getValues = () => {\n const { grow, shrink, basis } = this.state || {};\n return {\n grow: grow === 'true' ? true : (grow === 'false' ? false : (parseInt(grow) || undefined)),\n shrink: shrink === 'true' ? true : (shrink === 'false' ? false : (parseInt(shrink) || undefined)),\n basis: String(parseInt(basis)) === basis ? parseInt(basis) : basis\n };\n };\n\n render = () => (\n
    \n

    Input

    \n
    \n \n \n \n
    \n \n

    Output

    \n \n
    \n );\n\n}\n"},function(e,t){e.exports="class Example extends React.Component {\n\n render = () => (\n \n \n \n \n );\n\n}\n"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(854),o=r(i);t.default=o.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}function s(e){}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Props=void 0;var u,l,c=Object.assign||function(e){for(var t=1;t0)||s('passing both "grow" and "shrink={false}" is a no-op!')}},{key:"getGrow",value:function(){var e=this.props.grow;return"number"==typeof e?e:e?1:0}},{key:"getShrink",value:function(){var e=this.props,t=e.shrink,n=e.basis;return"number"==typeof t?t:t?1:t===!1?0:n&&"auto"!==n?0:1}},{key:"getBasis",value:function(){var e=this.props.basis;if(e){var t=E.t.Number.is(e)||String(parseInt(e,10))===e?"px":"";return e+t}return"auto"}},{key:"getFlexStyle",value:function(){var e=this.getGrow(),t=this.getShrink(),n=this.getBasis(),r=e+" "+t+" "+n;return{WebkitBoxFlex:r,MozBoxFlex:r,msFlex:r,WebkitFlex:r,flex:r}}},{key:"getStyle",value:function(){var e=(0,g.default)(this.props,["width","height","marginLeft","marginTop","marginRight","marginBottom"]);return c({},this.getFlexStyle(),e,this.props.style)}},{key:"getContentAlignmentClasses",value:function(){var e=this.props.column?"justify-content-":"align-content-",t=this.props.column?"align-content-":"justify-content-",n={top:e+"start",center:e+"center",bottom:e+"end"},r={left:t+"start",center:t+"center",right:t+"end"},i=n[this.props.vAlignContent],o=r[this.props.hAlignContent];return(0,v.default)(i,o)}},{key:"getClasses",value:function(){var e=this.props.column&&"flex-column",t=this.getContentAlignmentClasses(),n=this.props.wrap&&"flex-wrap";return(0,v.default)("react-flex-view",e,t,n,this.props.className)}},{key:"render",value:function(){var e=this.getClasses(),t=this.getStyle(),n=(0,b.default)(this.props,Object.keys(w));return d.default.createElement("div",c({className:e,style:t},n),this.props.children)}}]),t}(d.default.Component))||l);t.default=A},function(e,t,n){function r(e,t,n){var r=s(e)?i:a;return n&&u(e,t,n)&&(t=void 0),r(e,o(t,3))}var i=n(307),o=n(254),a=n(856),s=n(317),u=n(466);e.exports=r},function(e,t,n){function r(e,t){var n;return i(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}var i=n(857);e.exports=r},function(e,t,n){var r=n(858),i=n(861),o=i(r);e.exports=o},function(e,t,n){function r(e,t){return e&&i(e,t,o)}var i=n(859),o=n(321);e.exports=r},function(e,t,n){var r=n(860),i=r();e.exports=i},function(e,t){function n(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(n(o[u],u,o)===!1)break}return t}}e.exports=n},function(e,t,n){function r(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a - - - FlexView - - - - - - - - - -
    - - - - - - - diff --git a/dev/build/style.f052050b140546fe4529.min.css b/dev/build/style.f052050b140546fe4529.min.css deleted file mode 100644 index 09ffddb..0000000 --- a/dev/build/style.f052050b140546fe4529.min.css +++ /dev/null @@ -1 +0,0 @@ -.sidebar-content>.logo{display:none}.react-flex-view{box-sizing:"border-box";min-width:0;min-height:0;display:flexbox;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex-direction:row;-moz-box-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex-wrap:nowrap;-moz-box-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;flex-align:stretch;-webkit-align-items:stretch;-moz-box-align-items:stretch;-ms-align-items:stretch;align-items:stretch}.react-flex-view.flex-column{-webkit-box-flex-direction:column;-moz-box-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.react-flex-view.flex-wrap{-webkit-box-flex-wrap:wrap;-moz-box-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.react-flex-view.align-content-start{-ms-flex-align:start;flex-align:start;-webkit-align-items:flex-start;-moz-box-align-items:flex-start;-ms-align-items:flex-start;align-items:flex-start}.react-flex-view.align-content-center{-ms-flex-align:center;flex-align:center;-webkit-align-items:center;-moz-box-align-items:center;-ms-align-items:center;align-items:center}.react-flex-view.align-content-end{-ms-flex-align:end;flex-align:end;-webkit-align-items:flex-end;-moz-box-align-items:flex-end;-ms-align-items:flex-end;align-items:flex-end}.react-flex-view.justify-content-start{-ms-flex-pack:start;flex-pack:start;-webkit-justify-content:flex-start;-moz-box-justify-content:flex-start;-ms-justify-content:flex-start;justify-content:flex-start}.react-flex-view.justify-content-center{-ms-flex-pack:center;flex-pack:center;-webkit-justify-content:center;-moz-box-justify-content:center;-ms-justify-content:center;justify-content:center}.react-flex-view.justify-content-end{-ms-flex-pack:end;flex-pack:end;-webkit-justify-content:flex-end;-moz-box-justify-content:flex-end;-ms-justify-content:flex-end;justify-content:flex-end}html{font-family:Source Sans Pro,sans-serif;font-size:16px;font-weight:400;color:#727a86;-webkit-font-smoothing:antialiased;background-color:#fff}h1{font-size:27px}h1,h2{font-weight:600;color:#354052;line-height:1.5}h2{font-size:18px}h3{font-weight:700;font-size:14px;color:#354052;line-height:1.5;text-transform:uppercase;border-bottom:2px solid #dfe3e9;padding-bottom:10px}p{font-size:16px;font-weight:400;line-height:1.43}strong{font-weight:700}a{cursor:pointer;color:#1a91eb}a:hover{color:rgba(26,145,235,.3)}.kitchen-sink .component,.kitchen-sink .content>.body{margin:40px 60px}.kitchen-sink .component .examples .example{margin-bottom:45px}.kitchen-sink .component .examples .example .example-card{position:relative;margin-top:10px;border-radius:4px;border:1px solid #dfe3e9}.kitchen-sink .component .examples .example .example-card .live-demo .component{margin:0;padding:30px 40px}.kitchen-sink .component .examples .example .example-card .live-demo .CodeMirror,.kitchen-sink .component .examples .example .example-card .live-demo .playground{overflow:hidden;border-radius:0 0 4px 4px}.kitchen-sink .component .examples .example .example-card .live-demo .CodeMirror{height:auto;margin-bottom:-30px}.kitchen-sink .component .examples .example .example-card .live-demo .playground{display:flexbox;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex-direction:column-reverse;-moz-box-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.kitchen-sink .component .examples .example .example-card .live-demo .playground .playgroundStage .CodeMirror-wrap{padding:10px}.kitchen-sink .component .examples .example .example-card .live-demo .playground .playgroundPreview>div>div{display:none}.kitchen-sink .component .examples .example .example-card .live-demo .playground .playgroundPreview>div>.playgroundError{display:block;font-family:Consolas,Courier,monospace;position:absolute;width:100%;padding:10px;font-size:12px;color:#fff;background:#f2777a;transform:translateY(-100%)}.kitchen-sink .component .examples .example .example-card .live-demo .show-code{position:absolute;top:10px;right:10px;color:#9098a7;font-size:9px}.kitchen-sink .component .examples .example .example-card .live-demo .show-code.active,.kitchen-sink .component .examples .example .example-card .live-demo .show-code:hover{cursor:pointer;color:#1a91eb}.kitchen-sink .component>.footer table{margin-top:34px;border-collapse:collapse;font-size:16px;color:#354052}.kitchen-sink .component>.footer table tr{height:40px}.kitchen-sink .component>.footer table thead th{padding:0 5px;text-align:left;background-color:#f0f3f8;color:#7f8fa4;font-size:16px;font-weight:600;border:1px solid #dfe3e9}.kitchen-sink .component>.footer table tbody td{padding:0 5px;border:1px solid #dfe3e9}.kitchen-sink .component>.footer table tbody td code{background-color:#f0f3f8}.kitchen-sink .sidebar .sidebar-content{border-right:1px solid #dfe3e9;width:240px;height:100%}.kitchen-sink .sidebar .sidebar-content .logo{height:240px;font-size:33px;font-weight:700;border-bottom:1px solid #eaeaea;color:#354052}.kitchen-sink .sidebar .sidebar-content .logo .sub{font-size:16px;font-weight:600;color:#9098a7}.kitchen-sink .sidebar .sidebar-content .collapsable-section{border:0}.kitchen-sink .sidebar .sidebar-content .collapsable-section *{transition:all .45s cubic-bezier(.23,1,.32,1) 0ms}.kitchen-sink .sidebar .sidebar-content .collapsable-section .content{width:100%;padding:20px;border-bottom:1px solid #eaeaea;cursor:pointer;font-weight:600;background:transparent}.kitchen-sink .sidebar .sidebar-content .collapsable-section .content:hover{background-color:#f0f0f0}.kitchen-sink .sidebar .sidebar-content .collapsable-section .content .icon{font-size:8px;color:#9098a7}.kitchen-sink .sidebar .sidebar-content .collapsable-section .items{background-color:#f0f3f8;padding:10px 0}.kitchen-sink .sidebar .sidebar-content .collapsable-section .items .item{width:100%;padding:10px 20px;cursor:pointer;color:#727a86;font-weight:400}.kitchen-sink .sidebar .sidebar-content .collapsable-section .items .item.active,.kitchen-sink .sidebar .sidebar-content .collapsable-section .items .item:hover{color:#1a91eb;text-decoration:none}.more-or-less .expand-button{width:100%;height:15px;cursor:pointer;background:linear-gradient(0deg,#f2f4f7,#fff);border-top:1px solid #ced0da}.more-or-less .expand-button:hover{background-color:linear-gradient(0deg,#dfe3e8,#fff)}.more-or-less .expand-button:hover .expand-button-icon{color:#9098a7}.more-or-less .expand-button .expand-button-icon{font-size:17px;color:#9098a7}.loading-spinner .loading-spinner-overlay{position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;z-index:99}.loading-spinner .loading-spinner-overlay .message,.loading-spinner .loading-spinner-overlay .spinner{position:absolute;top:50%;left:50%}.loading-spinner .loading-spinner-overlay .spinner{margin-top:-.5em;margin-left:-.5em;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}.loading-spinner .loading-spinner-overlay .spinner:after{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;margin-top:-.5em;margin-left:-.5em;border-bottom-color:transparent;opacity:.2}.loading-spinner .loading-spinner-overlay .spinner,.loading-spinner .loading-spinner-overlay .spinner:after{width:1em;height:1em;border-radius:50%;border-style:solid;border-width:.1em}.loading-spinner .loading-spinner-overlay .message{font-weight:700;width:100%;left:0;padding-left:2em;padding-right:2em;text-align:center}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}} \ No newline at end of file diff --git a/dev/build/style.f052050b140546fe4529.min.css.gz b/dev/build/style.f052050b140546fe4529.min.css.gz deleted file mode 100644 index 4cac0c6..0000000 Binary files a/dev/build/style.f052050b140546fe4529.min.css.gz and /dev/null differ diff --git a/dev/examples.js b/dev/examples.js deleted file mode 100644 index c704df4..0000000 --- a/dev/examples.js +++ /dev/null @@ -1,102 +0,0 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; -import t from 'tcomb'; -import { Route, create } from 'react-router'; -import find from 'lodash/find'; -import includes from 'lodash/includes'; -import pick from 'lodash/pick'; -import KitchenSink from 'buildo-react-components/lib/kitchen-sink'; -import sections from './examples/index.js'; -import FlexView from '../src'; - -import './examples.scss'; -import '../src/flexView.scss'; - -/* KitchenSink styles */ -import 'buildo-react-components/src/kitchen-sink/style.scss'; -import 'buildo-react-components/src/more-or-less/moreOrLess.scss'; -import 'buildo-react-components/src/loading-spinner/style.scss'; - -const log = (...args) => console.log(...args); // eslint-disable-line no-console - -const scope = { - React, ReactDOM, - t, log, - includes, pick, - FlexView -}; - -class Examples extends React.Component { - - constructor(props) { - super(props); - this.state = { openSections: sections.map(s => s.id) }; - } - - findSection = (id) => find(sections, { id }) - - onSelectItem = (sectionId, id) => { - const isComponent = this.findSection(sectionId).components; - const componentId = isComponent ? id : undefined; - const contentId = isComponent ? undefined : id; - this.props.router.transitionTo('/', null, { componentId, contentId, sectionId }); - this.setState({ loading: true }); - setTimeout(() => { - this.setState({ loading: false }); - }); - } - - onToggleSection = (sectionId) => { - const { openSections } = this.state; - if (includes(openSections, sectionId)) { - this.setState({ openSections: openSections.filter(s => s !== sectionId) }); - } else { - this.setState({ openSections: openSections.concat(sectionId) }); - } - } - - componentDidUpdate() { - const showCodeButton = document.querySelector('.show-code'); - if (showCodeButton && showCodeButton.className.indexOf('active') === -1) { - showCodeButton.click(); - } - } - - render() { - const { - props: { query: { componentId, contentId, sectionId } }, - state: { openSections, loading }, - onSelectItem, onToggleSection - } = this; - - return ( -
    - -
    - ); - } -} - - -const routes = ( - -); - -const router = create({ routes }); - -router.run((Handler, { query }) => { - // RENDERS - ReactDOM.render(, document.getElementById('container')); -}); diff --git a/dev/examples.scss b/dev/examples.scss deleted file mode 100644 index 60e5ac0..0000000 --- a/dev/examples.scss +++ /dev/null @@ -1,3 +0,0 @@ -.sidebar-content >.logo { - display: none; -} diff --git a/dev/examples/Column.example b/dev/examples/Column.example deleted file mode 100644 index 732d107..0000000 --- a/dev/examples/Column.example +++ /dev/null @@ -1,12 +0,0 @@ -// import FlexView from 'react-flexview'; - -class Example extends React.Component { - - render = () => ( - -
    -
    - - ); - -} diff --git a/dev/examples/ComputeFlex.example b/dev/examples/ComputeFlex.example deleted file mode 100644 index e4a3f1c..0000000 --- a/dev/examples/ComputeFlex.example +++ /dev/null @@ -1,49 +0,0 @@ -// import FlexView from 'react-flexview'; - -class Example extends React.Component { - - constructor() { - super(); - this.state = {}; - } - - componentDidMount() { - this.updateOutput(); - } - - updateOutput = () => ( - this.setState({ flex: ReactDOM.findDOMNode(this.refs.output).style.flex }) - ); - - linkState = key => ({ - value: this.state[key], - requestChange: (value) => { - this.setState({ [key]: value }); - setTimeout(this.updateOutput); - } - }); - - getValues = () => { - const { grow, shrink, basis } = this.state || {}; - return { - grow: grow === 'true' ? true : (grow === 'false' ? false : (parseInt(grow) || undefined)), - shrink: shrink === 'true' ? true : (shrink === 'false' ? false : (parseInt(shrink) || undefined)), - basis: String(parseInt(basis)) === basis ? parseInt(basis) : basis - }; - }; - - render = () => ( -
    -

    Input

    -
    - - - -
    - -

    Output

    - -
    - ); - -} diff --git a/dev/examples/Row.example b/dev/examples/Row.example deleted file mode 100644 index b23cb8d..0000000 --- a/dev/examples/Row.example +++ /dev/null @@ -1,22 +0,0 @@ -// import FlexView from 'react-flexview'; - -class Example extends React.Component { - - render = () => ( - - - - - ); - -} diff --git a/dev/examples/examples.json b/dev/examples/examples.json deleted file mode 100644 index 6876d0d..0000000 --- a/dev/examples/examples.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "Examples", - "id": "examples", - "components": [ - { - "id": "column", - "title": "Column", - "desc": "Column", - "examples": [ - "Column.example" - ] - }, - { - "id": "row", - "title": "Row", - "desc": "Row", - "examples": [ - "Row.example" - ] - }, - { - "id": "compute-flex", - "title": "ComputeFlex", - "desc": "ComputeFlex", - "examples": [ - "ComputeFlex.example" - ] - } - ] -} diff --git a/dev/examples/index.js b/dev/examples/index.js deleted file mode 100644 index 765de0a..0000000 --- a/dev/examples/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import examplesJSON from 'raw!./examples.json'; - -const json = JSON.parse(examplesJSON); - -function dynamicRequire(e) { - const fileName = e.split('.')[0]; - return require(`raw!./${fileName}.example`); -} - -const components = json.components.map(c => ({ - ...c, - examples: c.examples.map(e => ({ code: dynamicRequire(e) })) -})); - -export default [{ ...json, components }]; diff --git a/dev/index.html b/dev/index.html deleted file mode 100644 index 8add08b..0000000 --- a/dev/index.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - FlexView - - - - - <% for (var chunk in htmlWebpackPlugin.files.chunks.main.css) { %> - - <% } %> - - -
    - - - <% for (var chunk in htmlWebpackPlugin.files.chunks) { %> - - <% } %> - - diff --git a/dev/webpack.base.babel.js b/dev/webpack.base.babel.js deleted file mode 100644 index 420c441..0000000 --- a/dev/webpack.base.babel.js +++ /dev/null @@ -1,34 +0,0 @@ -import path from 'path'; - -export const paths = { - SRC: path.resolve(__dirname, '../src'), - ENTRY: path.resolve(__dirname, 'examples.js'), - INDEX_HTML: path.resolve(__dirname, 'index.html'), - BUILD: path.resolve(__dirname, 'build'), - DEV: path.resolve(__dirname) -}; - -export default { - output: { - path: paths.BUILD, - filename: 'bundle.js' - }, - - module: { - loaders: [ - { - test: /\.jsx?$/, - loaders: ['babel'], - include: [paths.SRC, paths.DEV] - } - ], - preLoaders: [ - { - test: /\.jsx?$/, - loader: 'eslint', - include: [paths.SRC, paths.DEV], - exclude: /node_modules/ - } - ] - } -}; diff --git a/dev/webpack.config.babel.js b/dev/webpack.config.babel.js deleted file mode 100644 index ef74eae..0000000 --- a/dev/webpack.config.babel.js +++ /dev/null @@ -1,35 +0,0 @@ -import webpack from 'webpack'; -import HtmlWebpackPlugin from 'html-webpack-plugin'; -import ExtractTextPlugin from 'extract-text-webpack-plugin'; -import webpackBase, { paths } from './webpack.base.babel'; - -export default { - ...webpackBase, - - entry: [ - 'webpack/hot/dev-server', - paths.ENTRY - ], - - devtool: 'source-map', - - devServer: { - host: '0.0.0.0', - contentBase: paths.BUILD, - port: '8080' - }, - - module: { - ...webpackBase.module, - loaders: webpackBase.module.loaders.concat([{ - test: /\.scss$/, - loader: ExtractTextPlugin.extract('style', 'css?sourceMap!sass?sourceMap') - }]) - }, - - plugins: [ - new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('development') }), - new HtmlWebpackPlugin({ inject: false, template: paths.INDEX_HTML }), - new ExtractTextPlugin('style', 'style.[hash].min.css') - ] -}; diff --git a/dev/webpack.config.build.babel.js b/dev/webpack.config.build.babel.js deleted file mode 100644 index f896909..0000000 --- a/dev/webpack.config.build.babel.js +++ /dev/null @@ -1,33 +0,0 @@ -import webpack from 'webpack'; -import CompressionPlugin from 'compression-webpack-plugin'; -import HtmlWebpackPlugin from 'html-webpack-plugin'; -import ExtractTextPlugin from 'extract-text-webpack-plugin'; -import webpackBase, { paths } from './webpack.base.babel'; - -export default { - ...webpackBase, - - entry: paths.ENTRY, - - module: { - ...webpackBase.module, - loaders: webpackBase.module.loaders.concat([{ - test: /\.scss$/, - loader: ExtractTextPlugin.extract('style', 'css?sourceMap!sass?sourceMap') - }]) - }, - - plugins: [ - new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production') }), - new webpack.optimize.UglifyJsPlugin({ - compress: { - warnings: false, - screw_ie8: true - } - }), - new CompressionPlugin({ regExp: /\.js$|\.css$/ }), - new webpack.NoErrorsPlugin(), - new HtmlWebpackPlugin({ inject: false, template: paths.INDEX_HTML }), - new ExtractTextPlugin('style', 'style.[hash].min.css') - ] -}; diff --git a/examples/Examples.md b/examples/Examples.md new file mode 100644 index 0000000..aac46b2 --- /dev/null +++ b/examples/Examples.md @@ -0,0 +1,82 @@ +### Examples + +#### Column +```js + +
    +
    + +``` + +#### Row +```js + + + + +``` + +#### Compute flex +```js +class ComputeFlex extends React.Component { + + constructor() { + this.state = {} + this.updateOutput = this.updateOutput.bind(this); + } + + componentDidMount() { + this.updateOutput(); + } + + updateOutput() { + this.setState({ flex: ReactDOM.findDOMNode(this.output).style.flex }) + } + + getValues() { + const { grow, shrink, basis } = this.state; + return { + grow: grow === 'true' ? true : (grow === 'false' ? false : (parseInt(grow) || undefined)), + shrink: shrink === 'true' ? true : (shrink === 'false' ? false : (parseInt(shrink) || undefined)), + basis: String(parseInt(basis)) === basis ? parseInt(basis) : basis + }; + } + + onChange(key) { + return ({ target: { value } }) => { + this.setState({ [key]: value }); + setTimeout(this.updateOutput); + } + } + + render() { + const { grow = '', shrink = '', basis = '', flex } = this.state; + + return ( +
    +

    Input

    + + + + + this.output = ref} /> + +

    Output

    + +
    + ); + } +} + + +``` diff --git a/flow-typed/buildo.js b/flow-typed/buildo.js deleted file mode 100644 index c3a5915..0000000 --- a/flow-typed/buildo.js +++ /dev/null @@ -1,11 +0,0 @@ -type Many = T | T[]; - -declare module 'lodash/omit' { - declare function omit(object: Object, ...props: Array>>): Object; - declare var exports: typeof omit; -} - -declare module 'lodash/pick' { - declare function pick(object: Object, ...props: Array>>): Object; - declare var exports: typeof pick; -} diff --git a/flow-typed/npm/classnames_v2.x.x.js b/flow-typed/npm/classnames_v2.x.x.js deleted file mode 100644 index 8c9ed1c..0000000 --- a/flow-typed/npm/classnames_v2.x.x.js +++ /dev/null @@ -1,16 +0,0 @@ -// flow-typed signature: cf6332fcf9a3398cffb131f7da90662b -// flow-typed version: dc0ded3d57/classnames_v2.x.x/flow_>=v0.28.x - -type $npm$classnames$Classes = - string | - {[className: string]: ?boolean } | - Array | - false | - void | - null - -declare module 'classnames' { - declare function exports( - ...classes: Array<$npm$classnames$Classes> - ): string; -} diff --git a/generateReadme.js b/generateReadme.js deleted file mode 100644 index cd17481..0000000 --- a/generateReadme.js +++ /dev/null @@ -1,4 +0,0 @@ -import path from 'path'; -import { generateReadme } from 'react-readme-generator'; - -generateReadme(path.resolve('src/FlexView.js')); diff --git a/karma.conf.js b/karma.conf.js deleted file mode 100644 index d6ea1eb..0000000 --- a/karma.conf.js +++ /dev/null @@ -1,80 +0,0 @@ -'use strict'; - -var path = require('path'); -var webpack = require('webpack'); - -var paths = { - SRC: path.resolve(__dirname, 'src'), - TEST: path.resolve(__dirname, 'test') -}; - -module.exports = function (config) { - config.set({ - - browserNoActivityTimeout: 30000, - - browsers: [ 'Chrome' ], - - singleRun: true, - - frameworks: [ 'mocha' ], - - files: [ - 'karma.js' - ], - - preprocessors: { - 'karma.js': [ 'webpack' ], - }, - - reporters: process.env.CONTINUOUS_INTEGRATION ? [ 'bamboo', 'coverage' ] : [ 'dots', 'coverage' ], - - bambooReporter: { - filename: 'mocha.json', - }, - - coverageReporter: { - reporters: [ - process.env.CONTINUOUS_INTEGRATION ? - { type: 'lcov', subdir: 'lcov-report' } : - { type: 'html', subdir: 'html-report' } - ], - }, - - webpack: { - module: { - loaders: [ - { - test: /\.jsx?$/, - loader: 'babel?stage=0&loose', - include: [paths.SRC, paths.TEST], - exclude: /node_modules/ - } - ], - preLoaders: [ - { - test: /\.jsx?$/, - loader: 'isparta?{babel: {stage: 0, loose: true}}', - include: paths.SRC, - exclude: /node_modules/ - }, { - test: /\.jsx?$/, - loader: 'eslint', - include: paths.SRC, - exclude: /node_modules/ - } - ] - }, - plugins: [ - new webpack.DefinePlugin({ - 'process.env.NODE_ENV': JSON.stringify('test') - }) - ] - }, - - webpackMiddleware: { - noInfo: true //please don't spam the console when running in karma! - } - - }); -}; diff --git a/karma.js b/karma.js deleted file mode 100644 index 484d8da..0000000 --- a/karma.js +++ /dev/null @@ -1,3 +0,0 @@ -// called by karma -const testsContext = require.context('./test', true, /tests/); -testsContext.keys().forEach(testsContext); diff --git a/package.json b/package.json index 719fc82..2418201 100644 --- a/package.json +++ b/package.json @@ -1,30 +1,24 @@ { "name": "react-flexview", - "version": "1.0.13", + "version": "6.0.1", "description": "A react component to abstract over flexbox", "files": [ "lib", "src", - "dev", - "react-flexview.d.ts" + "examples", + "styleguide" ], - "main": "lib/index.js", - "typings": "react-flexview.d.ts", + "main": "lib", + "typings": "lib", "scripts": { - "test": "mocha", - "build": "rm -rf lib && mkdir lib && node-sass src --importer sass-importer.js --include-path node_modules -o lib && babel src -d lib && flow-copy-source -v src lib", - "lint": "scriptoni lint src dev/examples.js dev/examples", - "lint-fix": "scriptoni lint --fix src dev/examples.js dev/examples", - "lint-style": "scriptoni lint-style", - "lint-style-fix": "scriptoni stylefmt", - "preversion": "npm run lint && npm run test && npm run build-examples", - "prepublish": "npm run build", - "build-examples": "npm run clean && webpack --config dev/webpack.config.build.babel.js --progress", - "start": "webpack-dev-server --config dev/webpack.config.babel.js --progress --hot --inline", - "clean": "rm -rf dev/build", - "generate-readme": "babel-node ./generateReadme.js", - "release-version": "smooth-release", - "flow-check": "flow check" + "test": "jest", + "build": "rm -rf lib && mkdir lib && tsc", + "prettier-write": "prettier --write '**/*.{js,ts,tsx}'", + "preversion": "yarn test", + "prepublishOnly": "yarn build", + "start": "styleguidist server", + "typecheck": "tsc --noEmit", + "release-version": "smooth-release" }, "repository": { "type": "git", @@ -43,46 +37,40 @@ }, "homepage": "https://github.com/buildo/react-flexview", "dependencies": { - "@types/react": "^15.0.34", - "classnames": "^2.2.5", - "lodash": "^4.15.0", - "sass-flex-mixins": "^0.1.0", - "tcomb-react": "^0.9.3" + "prop-types": "^15.5.6" }, "devDependencies": { - "babel-cli": "^6.8.0", - "babel-core": "^6.9.0", - "babel-loader": "^6.2.4", + "@types/classnames": "^2.2.10", + "@types/jest": "^21.1.8", + "@types/prop-types": "^15.5.2", + "@types/react": "^16.9.34", + "@types/react-dom": "^16.9.6", + "babel-loader": "^7.1.2", "babel-preset-buildo": "^0.1.1", - "babel-register": "^6.14.0", - "buildo-react-components": "0.6.0", - "component-playground": "^1.2.0", - "compression-webpack-plugin": "^0.3.1", - "css-loader": "^0.23.1", - "eslint-loader": "^1.3.0", - "estraverse-fb": "^1.3.1", - "extract-text-webpack-plugin": "^1.0.1", - "flow-bin": "^0.38.0", - "flow-copy-source": "^1.1.0", - "html-webpack-plugin": "^2.28.0", - "mocha": "^3.0.2", - "node-sass": "^3.7.0", - "prop-types": "^15.5.10", - "raw-loader": "^0.5.1", - "react": "^0.14.8", - "react-dom": "^0.14.8", - "react-readme-generator": "0.0.1", - "react-remarkable": "^1.1.1", - "react-router": "^0.13.5", - "react-sidebar": "^2.1.2", - "require-dir": "^0.3.0", - "resolve-url-loader": "^1.4.3", - "sass-loader": "^3.2.0", - "sass-variables-loader": "0.1.3", - "scriptoni": "^0.6.0", - "smooth-release": "^8.0.4", - "style-loader": "^0.13.1", - "webpack": "^1.13.1", - "webpack-dev-server": "^1.14.1" + "file-loader": "^1.1.5", + "jest": "^21.2.1", + "prettier": "^1.16.1", + "progress-bar-webpack-plugin": "^1.10.0", + "react": "^16.13.1", + "react-docgen-typescript": "1.1.0", + "react-dom": "^16.13.1", + "react-styleguidist": "6.0.33", + "react-test-renderer": "^16.2.0", + "smooth-release": "^8.0.0", + "ts-jest": "^21.2.3", + "ts-loader": "^2.3.3", + "typescript": "^3.8.3", + "webpack": "3.5.5" + }, + "jest": { + "transform": { + "^.+\\.tsx?$": "/node_modules/ts-jest/preprocessor.js" + }, + "testRegex": "(.*[.](test))[.](tsx?)$", + "moduleFileExtensions": [ + "js", + "ts", + "tsx" + ] } } diff --git a/react-flexview.d.ts b/react-flexview.d.ts deleted file mode 100644 index 6d3ecc9..0000000 --- a/react-flexview.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Component, HTMLProps } from 'react'; - -// listing all Div attributes apart from "wrap" because Div's wrap conflicts with FLexView' wrap -type HTMLDivElementPropsKeys = "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accept" | "acceptCharset" | "accessKey" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "className" | "cols" | "colSpan" | "content" | "contentEditable" | "contextMenu" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "dir" | "disabled" | "download" | "draggable" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "hidden" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "id" | "inputMode" | "integrity" | "is" | "keyParams" | "keyType" | "kind" | "label" | "lang" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "radioGroup" | "readOnly" | "rel" | "required" | "reversed" | "role" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "slot" | "span" | "spellCheck" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "style" | "summary" | "tabIndex" | "target" | "title" | "type" | "useMap" | "value" | "width" | "wmode" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" - -export declare interface IProps extends Pick, HTMLDivElementPropsKeys> { - children?: any; - column?: boolean; - vAlignContent?: 'top' | 'center' | 'bottom'; - hAlignContent?: 'left' | 'center' | 'right'; - marginLeft?: string | number; - marginTop?: string | number; - marginRight?: string | number; - marginBottom?: string | number; - grow?: boolean | number; - shrink?: boolean | number; - basis?: string | number; - wrap?: boolean; - height?: string | number; - width?: string | number; -} -/** React component to abstract over flexbox - * @param children - flexView content - * @param column - flex-direction: column - * @param vAlignContent - align content vertically - * @param hAlignContent - align content horizontally - * @param marginLeft - margin-left property ("auto" to align self right) - * @param marginTop - margin-top property ("auto" to align self bottom) - * @param marginRight - margin-right property ("auto" to align self left) - * @param marginBottom - margin-bottom property ("auto" to align self top) - * @param grow property (for parent primary axis) - * @param shrink - flex-shrink property - * @param basis - flex-basis property - * @param wrap - wrap content - * @param height - height property (for parent secondary axis) - * @param width - width property (for parent secondary axis) - */ -export default class FlexView extends Component { - componentDidMount(): void; - private logWarnings; - private getGrow; - private getShrink; - private getBasis; - private getFlexStyle; - private getStyle; - private getContentAlignmentClasses; - private getClasses; - render(): JSX.Element; -} diff --git a/sass-importer.js b/sass-importer.js index 42d392f..fb7c0c5 100644 --- a/sass-importer.js +++ b/sass-importer.js @@ -1,5 +1,5 @@ module.exports = function(url) { return { - file: url.replace(/~/g, 'node_modules/') + file: url.replace(/~/g, "node_modules/") }; }; diff --git a/src/FlexView.js b/src/FlexView.js deleted file mode 100644 index 2d2400f..0000000 --- a/src/FlexView.js +++ /dev/null @@ -1,222 +0,0 @@ -// @flow - -import React from 'react'; -import cx from 'classnames'; -import pick from 'lodash/pick'; -import omit from 'lodash/omit'; -import some from 'lodash/some'; -import { t, props } from 'tcomb-react'; - -function warn(warning: string): void { - if (process.env.NODE_ENV !== 'production') { - console.warn(warning); // eslint-disable-line no-console - } -} - -export type IProps = { - children?: any, - column?: boolean, - vAlignContent?: 'top' | 'center' | 'bottom', - hAlignContent?: 'left' | 'center' | 'right', - marginLeft?: string | number, - marginTop?: string | number, - marginRight?: string | number, - marginBottom?: string | number, - grow?: boolean | number, - shrink?: boolean | number, - basis?: string | number, - wrap?: boolean, - height?: string | number, - width?: string | number, - className?: string, - style?: Object -}; - -export const Props = { - children: t.ReactChildren, - column: t.maybe(t.Boolean), - vAlignContent: t.maybe(t.enums.of(['top', 'center', 'bottom'])), - hAlignContent: t.maybe(t.enums.of(['left', 'center', 'right'])), - marginLeft: t.maybe(t.union([t.String, t.Number])), - marginTop: t.maybe(t.union([t.String, t.Number])), - marginRight: t.maybe(t.union([t.String, t.Number])), - marginBottom: t.maybe(t.union([t.String, t.Number])), - grow: t.maybe(t.union([t.Boolean, t.Number])), - shrink: t.maybe(t.union([t.Boolean, t.Number])), - basis: t.maybe(t.union([t.String, t.Number])), - wrap: t.maybe(t.Boolean), - height: t.maybe(t.union([t.String, t.Number])), - width: t.maybe(t.union([t.String, t.Number])), - className: t.maybe(t.String), - style: t.maybe(t.Object) -}; - -/** React component to abstract over flexbox - * @param children - flexView content - * @param column - flex-direction: column - * @param vAlignContent - align content vertically - * @param hAlignContent - align content horizontally - * @param marginLeft - margin-left property ("auto" to align self right) - * @param marginTop - margin-top property ("auto" to align self bottom) - * @param marginRight - margin-right property ("auto" to align self left) - * @param marginBottom - margin-bottom property ("auto" to align self top) - * @param grow property (for parent primary axis) - * @param shrink - flex-shrink property - * @param basis - flex-basis property - * @param wrap - wrap content - * @param height - height property (for parent secondary axis) - * @param width - width property (for parent secondary axis) - */ -@props(Props, { strict: false }) -export default class FlexView extends React.Component { - - componentDidMount() { - this.logWarnings(); - } - - logWarnings() { - const { basis, shrink, grow, hAlignContent, vAlignContent, children, column } = this.props; - - if (basis === 'auto') { - warn('basis is "auto" by default: forcing it to "auto" will leave "shrink:true" as default'); - } - - if ( - (shrink === false || shrink === 0) && - (grow === true || (typeof grow === 'number' && grow > 0)) - ) { - warn('passing both "grow" and "shrink={false}" is a no-op!'); - } - - if (process.env.NODE_ENV !== 'production' && !t.Nil.is(children) && !column && hAlignContent === 'center') { - const atLeastOneChildHasHMarginAuto = some([].concat(children), child => { - const { props = {} } = t.Object.is(child) ? child : {}; - const { style = {} } = props; - - const marginLeft = style.marginLeft || props.marginLeft; - const marginRight = style.marginRight || props.marginRight; - return marginLeft === 'auto' && marginRight === 'auto'; - }); - - atLeastOneChildHasHMarginAuto && warn('In a row with hAlignContent="center" there should be no child with marginLeft and marginRight set to "auto"\nhttps://github.com/buildo/react-flexview/issues/30'); - } - - if (process.env.NODE_ENV !== 'production' && !t.Nil.is(children) && column && vAlignContent === 'center') { - const atLeastOneChildHasVMarginAuto = some([].concat(children), child => { - const { props = {} } = t.Object.is(child) ? child : {}; - const { style = {} } = props; - - const marginTop = style.marginTop || props.marginTop; - const marginBottom = style.marginBottom || props.marginBottom; - return marginTop === 'auto' && marginBottom === 'auto'; - }); - - atLeastOneChildHasVMarginAuto && warn('In a column with vAlignContent="center" there should be no child with marginTop and marginBottom set to "auto"\nhttps://github.com/buildo/react-flexview/issues/30'); - } - } - - getGrow() { - const { grow } = this.props; - if (typeof grow === 'number') { - return grow; - } else if (grow) { - return 1; - } - - return 0; // default - } - - getShrink() { - const { shrink, basis } = this.props; - if (typeof shrink === 'number') { - return shrink; - } else if (shrink) { - return 1; - } else if (shrink === false) { - return 0; - } - - if (basis && basis !== 'auto') { - return 0; - } - - return 1; // default - } - - getBasis() { - const { basis } = this.props; - if (basis) { - const suffix = t.Number.is(basis) || String(parseInt(basis, 10)) === basis ? 'px' : ''; - return basis + suffix; - } - - return 'auto'; // default - } - - getFlexStyle() { - const grow = this.getGrow(); - const shrink = this.getShrink(); - const basis = this.getBasis(); - const values = `${grow} ${shrink} ${basis}`; - return { - WebkitBoxFlex: values, - MozBoxFlex: values, - msFlex: values, - WebkitFlex: values, - flex: values - }; - } - - getStyle() { - const style = pick(this.props, [ - 'width', - 'height', - 'marginLeft', - 'marginTop', - 'marginRight', - 'marginBottom' - ]); - return { ...this.getFlexStyle(), ...style, ...this.props.style }; - } - - getContentAlignmentClasses() { - const vPrefix = this.props.column ? 'justify-content-' : 'align-content-'; - const hPrefix = this.props.column ? 'align-content-' : 'justify-content-'; - - const vAlignContentClasses: Object = { - top: `${vPrefix}start`, - center: `${vPrefix}center`, - bottom: `${vPrefix}end` - }; - - const hAlignContentClasses: Object = { - left: `${hPrefix}start`, - center: `${hPrefix}center`, - right: `${hPrefix}end` - }; - - const vAlignContent = vAlignContentClasses[this.props.vAlignContent]; - const hAlignContent = hAlignContentClasses[this.props.hAlignContent]; - - return cx(vAlignContent, hAlignContent); - } - - getClasses() { - const direction = this.props.column && 'flex-column'; - const contentAlignment = this.getContentAlignmentClasses(); - const wrap = this.props.wrap && 'flex-wrap'; - return cx('react-flex-view', direction, contentAlignment, wrap, this.props.className); - } - - render() { - const className = this.getClasses(); - const style = this.getStyle(); - const props = omit(this.props, Object.keys(Props)); - return ( -
    - {this.props.children} -
    - ); - } - -} diff --git a/src/FlexView.tsx b/src/FlexView.tsx new file mode 100644 index 0000000..3999259 --- /dev/null +++ b/src/FlexView.tsx @@ -0,0 +1,298 @@ +import * as React from "react"; +import * as PropTypes from "prop-types"; + +type ReactText = string | number; +type ReactChild = React.ReactElement | ReactText; + +interface ChildrenArray extends Array {} +type ReactFragment = ChildrenArray; +type Children = ReactChild | ReactFragment | boolean | null | undefined; + +export type Overwrite = Pick> & O2; + +declare var process: { env: { NODE_ENV: "production" | "development" } }; + +function warn(warning: string): void { + if (process.env.NODE_ENV !== "production") { + console.warn(warning); // eslint-disable-line no-console + } +} + +function some(array: any[], predicate: (v: any) => boolean): boolean { + return array.filter(predicate).length > 0; +} + +type ElementProps = Omit, "ref">; + +type FlexViewProps = { + /** FlexView content */ + children?: Children; + /** flex-direction: column */ + column?: boolean; + /** align content vertically */ + vAlignContent?: "top" | "center" | "bottom"; + /** align content horizontally */ + hAlignContent?: "left" | "center" | "right"; + /** margin-left property ("auto" to align self right) */ + marginLeft?: string | number; + /** margin-top property ("auto" to align self bottom) */ + marginTop?: string | number; + /** margin-right property ("auto" to align self left) */ + marginRight?: string | number; + /** margin-bottom property ("auto" to align self top) */ + marginBottom?: string | number; + /** grow property (for parent primary axis) */ + grow?: boolean | number; + /** flex-shrink property */ + shrink?: boolean | number; + /** flex-basis property */ + basis?: string | number; + /** wrap content */ + wrap?: boolean; + /** height property (for parent secondary axis) */ + height?: string | number; + /** width property (for parent secondary axis) */ + width?: string | number; + /** class to pass to top level element of the component */ + className?: string; + /** style object to pass to top level element of the component */ + style?: React.CSSProperties; + /** native dom component to render. Defaults to div */ + component?: keyof JSX.IntrinsicElements; +}; + +export namespace FlexView { + export type Props = Overwrite; +} + +export class FlexViewInternal extends React.Component< + FlexView.Props & { componentRef?: React.Ref } +> { + static propTypes = { + children: PropTypes.node, + column: PropTypes.bool, + vAlignContent: PropTypes.oneOf(["top", "center", "bottom"]), + hAlignContent: PropTypes.oneOf(["left", "center", "right"]), + marginLeft: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + marginTop: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + marginRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + marginBottom: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + grow: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]), + shrink: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]), + basis: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + wrap: PropTypes.bool, + height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + className: PropTypes.string, + style: PropTypes.object, + component: PropTypes.elementType, + }; + + componentDidMount() { + this.logWarnings(); + } + + logWarnings(): void { + const { + basis, + hAlignContent, + vAlignContent, + children, + column, + } = this.props; + + if (basis === "auto") { + warn( + 'basis is "auto" by default: forcing it to "auto" will leave "shrink:true" as default' + ); + } + + if ( + process.env.NODE_ENV !== "production" && + typeof children !== "undefined" && + !column && + hAlignContent === "center" + ) { + const atLeastOneChildHasHMarginAuto = some( + [].concat(children as any), + (child: any) => { + const props = + (typeof child === "object" && child !== null + ? child.props + : undefined) || {}; + const style = props.style || {}; + + const marginLeft = style.marginLeft || props.marginLeft; + const marginRight = style.marginRight || props.marginRight; + return marginLeft === "auto" && marginRight === "auto"; + } + ); + + atLeastOneChildHasHMarginAuto && + warn( + 'In a row with hAlignContent="center" there should be no child with marginLeft and marginRight set to "auto"\nhttps://github.com/buildo/react-flexview/issues/30' + ); + } + + if ( + process.env.NODE_ENV !== "production" && + typeof children !== "undefined" && + column && + vAlignContent === "center" + ) { + const atLeastOneChildHasVMarginAuto = some( + [].concat(children as any), + (child: any) => { + const props = + (typeof child === "object" && child !== null + ? child.props + : undefined) || {}; + const style = props.style || {}; + + const marginTop = style.marginTop || props.marginTop; + const marginBottom = style.marginBottom || props.marginBottom; + return marginTop === "auto" && marginBottom === "auto"; + } + ); + + atLeastOneChildHasVMarginAuto && + warn( + 'In a column with vAlignContent="center" there should be no child with marginTop and marginBottom set to "auto"\nhttps://github.com/buildo/react-flexview/issues/30' + ); + } + } + + getGrow(): number { + const { grow } = this.props; + if (typeof grow === "number") { + return grow; + } else if (grow) { + return 1; + } + + return 0; // default + } + + getShrink(): number { + const { shrink, basis } = this.props; + if (typeof shrink === "number") { + return shrink; + } else if (shrink) { + return 1; + } else if (shrink === false) { + return 0; + } + + if (basis && basis !== "auto") { + return 0; + } + + return 1; // default + } + + getBasis(): string { + const { basis } = this.props; + if (basis) { + const suffix = + typeof basis === "number" || + String(parseInt(basis as string, 10)) === basis + ? "px" + : ""; + return basis + suffix; + } + + return "auto"; // default + } + + getStyle(): React.CSSProperties { + const { column, wrap, vAlignContent, hAlignContent } = this.props; + + const style = { + width: this.props.width, + height: this.props.height, + marginLeft: this.props.marginLeft, + marginTop: this.props.marginTop, + marginRight: this.props.marginRight, + marginBottom: this.props.marginBottom, + }; + + function alignPropToFlex( + align: FlexView.Props["vAlignContent"] | FlexView.Props["hAlignContent"] + ) { + switch (align) { + case "top": + case "left": + return "flex-start"; + case "center": + return "center"; + case "bottom": + case "right": + return "flex-end"; + } + } + + return { + boxSizing: "border-box", + + // some browsers don't set these by default on flex + minWidth: 0, + minHeight: 0, + + // flex properties + display: "flex", + flexDirection: column ? "column" : "row", + flexWrap: wrap ? "wrap" : "nowrap", + flex: `${this.getGrow()} ${this.getShrink()} ${this.getBasis()}`, + justifyContent: alignPropToFlex(column ? vAlignContent : hAlignContent), + alignItems: alignPropToFlex(column ? hAlignContent : vAlignContent), + + // style passed through props + ...style, + ...this.props.style, + }; + } + + getElementProps(): ElementProps & { [k in keyof FlexViewProps]?: never } { + const { + children, + className, + style, + column, + grow, + shrink, + basis, + wrap, + vAlignContent, + hAlignContent, + width, + height, + marginBottom, + marginTop, + marginLeft, + marginRight, + componentRef, + component, + ...rest + } = this.props; + + return rest; + } + + render() { + return React.createElement(this.props.component || "div", { + ref: this.props.componentRef, + className: this.props.className, + style: this.getStyle(), + children: this.props.children, + ...this.getElementProps(), + }); + } +} + +export const FlexView = React.forwardRef( + (props: FlexView.Props, ref: React.Ref) => ( + + ) +); + +export default FlexView; diff --git a/src/README.md b/src/README.md index 3590920..afa4938 100644 --- a/src/README.md +++ b/src/README.md @@ -1,23 +1,6 @@ -# FlexView +React component to abstract over CSS *flexbox*. -React component to abstract over flexbox +`FlexView` should be used as a replacement for `div` to create complex layouts such as grids. +Once you decide to use `FlexView`, you should try to replace any `div` with it because, to work effectively, `FlexView` needs to be nested inside another `FlexView`: a single `div` may cause big problems. -## Props -|Name|Type|Default|Description| -|----|----|-------|-----------| -| **children** | ReactChildren | | **required**. FlexView content | -| **column** | Boolean | | *optional*. Flex-direction: column | -| **vAlignContent** | enum("top" | "center" | "bottom") | | *optional*. Align content vertically | -| **hAlignContent** | enum("left" | "center" | "right") | | *optional*. Align content horizontally | -| **marginLeft** | union(String | Number) | | *optional*. Margin-left property ("auto" to align self right) | -| **marginTop** | union(String | Number) | | *optional*. Margin-top property ("auto" to align self bottom) | -| **marginRight** | union(String | Number) | | *optional*. Margin-right property ("auto" to align self left) | -| **marginBottom** | union(String | Number) | | *optional*. Margin-bottom property ("auto" to align self top) | -| **grow** | union(Boolean | Number) | | *optional*. Property (for parent primary axis) | -| **shrink** | union(Boolean | Number) | | *optional*. Flex-shrink property | -| **basis** | union(String | Number) | | *optional*. Flex-basis property | -| **wrap** | Boolean | | *optional*. Wrap content | -| **height** | union(String | Number) | | *optional*. Height property (for parent secondary axis) | -| **width** | union(String | Number) | | *optional*. Width property (for parent secondary axis) | -| **className** | String | | *optional*. Additional `className` for wrapper element | -| **style** | Object | | *optional*. Inline-style overrides for wrapper element | \ No newline at end of file +You can read more about how `FlexView` works [here](https://github.com/buildo/react-flexview). diff --git a/src/flexView.scss b/src/flexView.scss deleted file mode 100644 index cf312e9..0000000 --- a/src/flexView.scss +++ /dev/null @@ -1,48 +0,0 @@ -@import 'http://github.com/~sass-flex-mixins/src/sass-flex-mixins.scss'; - -.react-flex-view { - box-sizing: 'border-box'; - - // some browsers don't set these by default on flex - min-width: 0; - min-height: 0; - - @include display_flex(); - @include flex_flex-direction(row); - @include flex_flex-wrap(nowrap); - @include flex_align-items(stretch); - - &.flex-column { - @include flex_flex-direction(column); - } - - &.flex-wrap { - @include flex_flex-wrap(wrap); - } - - // ALIGN CONTENT - - &.align-content-start { - @include flex_align-items(flex-start); - } - - &.align-content-center { - @include flex_align-items(center); - } - - &.align-content-end { - @include flex_align-items(flex-end); - } - - &.justify-content-start { - @include flex_justify-content(flex-start); - } - - &.justify-content-center { - @include flex_justify-content(center); - } - - &.justify-content-end { - @include flex_justify-content(flex-end); - } -} diff --git a/src/index.js b/src/index.js deleted file mode 100644 index f932938..0000000 --- a/src/index.js +++ /dev/null @@ -1,3 +0,0 @@ -// @flow -import FlexView from './FlexView'; -export default FlexView; diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..64015c6 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,2 @@ +import { FlexView } from "./FlexView"; +export default FlexView; diff --git a/styleguide.config.js b/styleguide.config.js new file mode 100644 index 0000000..e553710 --- /dev/null +++ b/styleguide.config.js @@ -0,0 +1,28 @@ +const path = require("path"); + +module.exports = { + // build + serverPort: 8080, + + require: [ + // "global" setup + sass imports + path.resolve(__dirname, "styleguide/setup.ts") + ], + + // content + title: "react-flexview", + // assetsDir: 'styleguide/assets', + template: "styleguide/index.html", + propsParser: require("react-docgen-typescript").parse, // detect docs using TS information + sections: [ + { + name: "FlexView", + components: () => [path.resolve(__dirname, "src/FlexView.tsx")] + } + ], + showCode: true, + showUsage: false, // show props by default + getExampleFilename() { + return path.resolve(__dirname, "examples/Examples.md"); + } +}; diff --git a/styleguide/index.html b/styleguide/index.html new file mode 100644 index 0000000..45bbca5 --- /dev/null +++ b/styleguide/index.html @@ -0,0 +1,12 @@ + + + + + + + + + +
    + + diff --git a/styleguide/setup.ts b/styleguide/setup.ts new file mode 100644 index 0000000..769fe5e --- /dev/null +++ b/styleguide/setup.ts @@ -0,0 +1,4 @@ +import * as ReactDOM from "react-dom"; + +// @ts-ignore: this file runs is Node => global exists +global.ReactDOM = ReactDOM; diff --git a/test/index.js b/test/index.js deleted file mode 100644 index 2734ede..0000000 --- a/test/index.js +++ /dev/null @@ -1,11 +0,0 @@ -// called by mocha -const requireDir = require('require-dir'); - -require('babel-register')({ - ignore: /node_modules/, - extensions: ['.js', '.jsx'] -}); - -requireDir('./tests', { - recurse: true -}); diff --git a/test/tests/FlexView.test.tsx b/test/tests/FlexView.test.tsx new file mode 100644 index 0000000..4c756dd --- /dev/null +++ b/test/tests/FlexView.test.tsx @@ -0,0 +1,42 @@ +import { execSync } from "child_process"; +import * as fs from "fs"; +import * as path from "path"; +import * as React from "react"; +import * as renderer from "react-test-renderer"; +import FlexView from "../../src"; + +describe("FlexView", () => { + it("renders correctly", () => { + const component = renderer.create( + + CONTENT + + ); + expect(component).toMatchSnapshot(); + }); + + it("renders custom intrinsic elements", () => { + const component = renderer.create( + + CONTENT + + ); + expect(component).toMatchSnapshot(); + }); +}); + +describe("build", () => { + it("build script generates every needed file", () => { + execSync("yarn build"); + expect( + fs.readdirSync(path.resolve(__dirname, "../../lib")) + ).toMatchSnapshot(); + }); +}); diff --git a/test/tests/__snapshots__/FlexView.test.tsx.snap b/test/tests/__snapshots__/FlexView.test.tsx.snap new file mode 100644 index 0000000..86f2233 --- /dev/null +++ b/test/tests/__snapshots__/FlexView.test.tsx.snap @@ -0,0 +1,64 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`FlexView renders correctly 1`] = ` +
    + CONTENT +
    +`; + +exports[`FlexView renders custom intrinsic elements 1`] = ` +
    + CONTENT +
    +`; + +exports[`build build script generates every needed file 1`] = ` +Array [ + "FlexView.d.ts", + "FlexView.js", + "index.d.ts", + "index.js", +] +`; diff --git a/test/tests/fake.js b/test/tests/fake.js deleted file mode 100644 index 87b0a7d..0000000 --- a/test/tests/fake.js +++ /dev/null @@ -1,3 +0,0 @@ -describe('fake suite', () => { - it('fake test', () => {}); -}); diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..786c077 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "ES3", + "module": "commonjs", + "declaration": true, + "allowSyntheticDefaultImports": false, + "allowJs": false, + "experimentalDecorators": true, + "outDir": "./lib", + "baseUrl": ".", + "noImplicitAny": true, + "suppressImplicitAnyIndexErrors": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strictNullChecks": true, + "sourceMap": false, + "alwaysStrict": true, + "jsx": "react", + "lib": [ + "dom", "es6" + ] + }, + "include": [ + "src/*", + "typings" + ] +} diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..c91b1e2 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,41 @@ +const path = require("path"); +const ProgressBarPlugin = require("progress-bar-webpack-plugin"); + +module.exports = { + resolve: { + extensions: [".js", ".jsx", ".ts", ".tsx", ".json"] + }, + plugins: [new ProgressBarPlugin()], + module: { + rules: [ + { + test: /\.[jt]sx?$/, + include: [ + path.resolve(__dirname, "src"), + path.resolve(__dirname, "styleguide") + ], + use: [ + { + loader: "babel-loader", + options: { + presets: [["buildo", { env: "react" }]] + } + }, + { + loader: "ts-loader", + options: { + configFile: require("path").resolve(__dirname, "tsconfig.json") + } + } + ] + }, + { + test: /\.(png|jpg|gif)$/, + loader: "file-loader", + options: { + name: "[name].[ext]" + } + } + ] + } +};