diff --git a/app/assets/javascripts/discourse/package.json b/app/assets/javascripts/discourse/package.json index ac38f94aae3..a1d0ef01845 100644 --- a/app/assets/javascripts/discourse/package.json +++ b/app/assets/javascripts/discourse/package.json @@ -16,7 +16,7 @@ "test": "ember test" }, "dependencies": { - "@babel/core": "^7.14.3", + "@babel/core": "^7.18.5", "@discourse/itsatrap": "^2.0.10", "@ember/jquery": "^2.0.0", "@ember/optional-features": "^1.1.0", diff --git a/app/assets/javascripts/yarn.lock b/app/assets/javascripts/yarn.lock index 25239bdc4f6..045da94d28c 100644 --- a/app/assets/javascripts/yarn.lock +++ b/app/assets/javascripts/yarn.lock @@ -2,6 +2,14 @@ # yarn lockfile v1 +"@ampproject/remapping@^2.1.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" + integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== + dependencies: + "@jridgewell/gen-mapping" "^0.1.0" + "@jridgewell/trace-mapping" "^0.3.9" + "@babel/code-frame@7.12.11": version "7.12.11" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" @@ -16,40 +24,40 @@ dependencies: "@babel/highlight" "^7.16.7" -"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.16.4", "@babel/compat-data@^7.16.8": - version "7.16.8" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.16.8.tgz#31560f9f29fdf1868de8cb55049538a1b9732a60" - integrity sha512-m7OkX0IdKLKPpBlJtF561YJal5y/jyI5fNfWbPxh2D/nbzzGI4qRyrD8xO2jB24u7l+5I2a43scCG2IrfjC50Q== +"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.16.4", "@babel/compat-data@^7.16.8", "@babel/compat-data@^7.17.10": + version "7.18.5" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.18.5.tgz#acac0c839e317038c73137fbb6ef71a1d6238471" + integrity sha512-BxhE40PVCBxVEJsSBhB6UWyAuqJRxGsAw8BdHMJ3AKGydcwuWW4kOO3HmqBQAdcq/OP+/DlTVxLvsCzRTnZuGg== -"@babel/core@^7.1.6", "@babel/core@^7.12.0", "@babel/core@^7.12.10", "@babel/core@^7.12.3", "@babel/core@^7.14.3", "@babel/core@^7.16.7", "@babel/core@^7.3.4": - version "7.16.12" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.12.tgz#5edc53c1b71e54881315923ae2aedea2522bb784" - integrity sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg== +"@babel/core@^7.1.6", "@babel/core@^7.12.0", "@babel/core@^7.12.10", "@babel/core@^7.12.3", "@babel/core@^7.16.7", "@babel/core@^7.18.5", "@babel/core@^7.3.4": + version "7.18.5" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.5.tgz#c597fa680e58d571c28dda9827669c78cdd7f000" + integrity sha512-MGY8vg3DxMnctw0LdvSEojOsumc70g0t18gNyUdAZqB1Rpd1Bqo/svHGvt+UJ6JcGX+DIekGFDxxIWofBxLCnQ== dependencies: + "@ampproject/remapping" "^2.1.0" "@babel/code-frame" "^7.16.7" - "@babel/generator" "^7.16.8" - "@babel/helper-compilation-targets" "^7.16.7" - "@babel/helper-module-transforms" "^7.16.7" - "@babel/helpers" "^7.16.7" - "@babel/parser" "^7.16.12" + "@babel/generator" "^7.18.2" + "@babel/helper-compilation-targets" "^7.18.2" + "@babel/helper-module-transforms" "^7.18.0" + "@babel/helpers" "^7.18.2" + "@babel/parser" "^7.18.5" "@babel/template" "^7.16.7" - "@babel/traverse" "^7.16.10" - "@babel/types" "^7.16.8" + "@babel/traverse" "^7.18.5" + "@babel/types" "^7.18.4" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.2" - json5 "^2.1.2" + json5 "^2.2.1" semver "^6.3.0" - source-map "^0.5.0" -"@babel/generator@^7.16.8": - version "7.16.8" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.16.8.tgz#359d44d966b8cd059d543250ce79596f792f2ebe" - integrity sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw== +"@babel/generator@^7.16.8", "@babel/generator@^7.18.2": + version "7.18.2" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.2.tgz#33873d6f89b21efe2da63fe554460f3df1c5880d" + integrity sha512-W1lG5vUwFvfMd8HVXqdfbuG7RuaSrTCCD8cl8fP8wOivdbtbIg2Db3IWUcgvfxKbbn6ZBGYRW/Zk1MIwK49mgw== dependencies: - "@babel/types" "^7.16.8" + "@babel/types" "^7.18.2" + "@jridgewell/gen-mapping" "^0.3.0" jsesc "^2.5.1" - source-map "^0.5.0" "@babel/helper-annotate-as-pure@^7.16.7": version "7.16.7" @@ -66,14 +74,14 @@ "@babel/helper-explode-assignable-expression" "^7.16.7" "@babel/types" "^7.16.7" -"@babel/helper-compilation-targets@^7.12.0", "@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz#06e66c5f299601e6c7da350049315e83209d551b" - integrity sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA== +"@babel/helper-compilation-targets@^7.12.0", "@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.16.7", "@babel/helper-compilation-targets@^7.18.2": + version "7.18.2" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.2.tgz#67a85a10cbd5fc7f1457fec2e7f45441dc6c754b" + integrity sha512-s1jnPotJS9uQnzFtiZVBUxe67CuBa679oWFHpxYYnTpRL/1ffhyX44R9uYiXoa/pLXcY9H2moJta0iaanlk/rQ== dependencies: - "@babel/compat-data" "^7.16.4" + "@babel/compat-data" "^7.17.10" "@babel/helper-validator-option" "^7.16.7" - browserslist "^4.17.5" + browserslist "^4.20.2" semver "^6.3.0" "@babel/helper-create-class-features-plugin@^7.13.0", "@babel/helper-create-class-features-plugin@^7.16.10", "@babel/helper-create-class-features-plugin@^7.16.7", "@babel/helper-create-class-features-plugin@^7.5.5": @@ -125,12 +133,10 @@ resolve "^1.14.2" semver "^6.1.2" -"@babel/helper-environment-visitor@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz#ff484094a839bde9d89cd63cba017d7aae80ecd7" - integrity sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag== - dependencies: - "@babel/types" "^7.16.7" +"@babel/helper-environment-visitor@^7.16.7", "@babel/helper-environment-visitor@^7.18.2": + version "7.18.2" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.2.tgz#8a6d2dedb53f6bf248e31b4baf38739ee4a637bd" + integrity sha512-14GQKWkX9oJzPiQQ7/J36FTXcD4kSp8egKjO9nINlSKiHITRA9q/R74qu8S9xlc/b/yjsJItQUeeh3xnGN0voQ== "@babel/helper-explode-assignable-expression@^7.16.7": version "7.16.7" @@ -139,14 +145,13 @@ dependencies: "@babel/types" "^7.16.7" -"@babel/helper-function-name@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz#f1ec51551fb1c8956bc8dd95f38523b6cf375f8f" - integrity sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA== +"@babel/helper-function-name@^7.16.7", "@babel/helper-function-name@^7.17.9": + version "7.17.9" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.17.9.tgz#136fcd54bc1da82fcb47565cf16fd8e444b1ff12" + integrity sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg== dependencies: - "@babel/helper-get-function-arity" "^7.16.7" "@babel/template" "^7.16.7" - "@babel/types" "^7.16.7" + "@babel/types" "^7.17.0" "@babel/helper-get-function-arity@^7.16.7": version "7.16.7" @@ -176,19 +181,19 @@ dependencies: "@babel/types" "^7.16.7" -"@babel/helper-module-transforms@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz#7665faeb721a01ca5327ddc6bba15a5cb34b6a41" - integrity sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng== +"@babel/helper-module-transforms@^7.16.7", "@babel/helper-module-transforms@^7.18.0": + version "7.18.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.18.0.tgz#baf05dec7a5875fb9235bd34ca18bad4e21221cd" + integrity sha512-kclUYSUBIjlvnzN2++K9f2qzYKFgjmnmjwL4zlmU5f8ZtzgWe8s0rUPSTGy2HmK4P8T52MQsS+HTQAgZd3dMEA== dependencies: "@babel/helper-environment-visitor" "^7.16.7" "@babel/helper-module-imports" "^7.16.7" - "@babel/helper-simple-access" "^7.16.7" + "@babel/helper-simple-access" "^7.17.7" "@babel/helper-split-export-declaration" "^7.16.7" "@babel/helper-validator-identifier" "^7.16.7" "@babel/template" "^7.16.7" - "@babel/traverse" "^7.16.7" - "@babel/types" "^7.16.7" + "@babel/traverse" "^7.18.0" + "@babel/types" "^7.18.0" "@babel/helper-optimise-call-expression@^7.16.7": version "7.16.7" @@ -222,12 +227,12 @@ "@babel/traverse" "^7.16.7" "@babel/types" "^7.16.7" -"@babel/helper-simple-access@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz#d656654b9ea08dbb9659b69d61063ccd343ff0f7" - integrity sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g== +"@babel/helper-simple-access@^7.16.7", "@babel/helper-simple-access@^7.17.7": + version "7.18.2" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.18.2.tgz#4dc473c2169ac3a1c9f4a51cfcd091d1c36fcff9" + integrity sha512-7LIrjYzndorDY88MycupkpQLKS1AFfsVRm2k/9PtKScSy5tZq0McZTj+DiMRynboZfIqOKvo03pmhTaUgiD6fQ== dependencies: - "@babel/types" "^7.16.7" + "@babel/types" "^7.18.2" "@babel/helper-skip-transparent-expression-wrappers@^7.16.0": version "7.16.0" @@ -263,14 +268,14 @@ "@babel/traverse" "^7.16.8" "@babel/types" "^7.16.8" -"@babel/helpers@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.16.7.tgz#7e3504d708d50344112767c3542fc5e357fffefc" - integrity sha512-9ZDoqtfY7AuEOt3cxchfii6C7GDyyMBffktR5B2jvWv8u2+efwvpnVKXMWzNehqy68tKgAfSwfdw/lWpthS2bw== +"@babel/helpers@^7.16.7", "@babel/helpers@^7.18.2": + version "7.18.2" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.18.2.tgz#970d74f0deadc3f5a938bfa250738eb4ac889384" + integrity sha512-j+d+u5xT5utcQSzrh9p+PaJX94h++KN+ng9b9WEJq7pkUPAd61FGqhjuUEdfknb3E/uDBb7ruwEeKkIxNJPIrg== dependencies: "@babel/template" "^7.16.7" - "@babel/traverse" "^7.16.7" - "@babel/types" "^7.16.7" + "@babel/traverse" "^7.18.2" + "@babel/types" "^7.18.2" "@babel/highlight@^7.10.4", "@babel/highlight@^7.16.7": version "7.16.10" @@ -281,10 +286,10 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.12.3", "@babel/parser@^7.16.10", "@babel/parser@^7.16.12", "@babel/parser@^7.16.7", "@babel/parser@^7.4.5", "@babel/parser@^7.7.0": - version "7.16.12" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.12.tgz#9474794f9a650cf5e2f892444227f98e28cdf8b6" - integrity sha512-VfaV15po8RiZssrkPweyvbGVSe4x2y+aciFCgn0n0/SJMR22cwofRV1mtnJQYcSB1wUTaA/X1LnA3es66MCO5A== +"@babel/parser@^7.12.3", "@babel/parser@^7.16.10", "@babel/parser@^7.16.12", "@babel/parser@^7.16.7", "@babel/parser@^7.18.5", "@babel/parser@^7.4.5", "@babel/parser@^7.7.0": + version "7.18.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.5.tgz#337062363436a893a2d22faa60be5bb37091c83c" + integrity sha512-YZWVaglMiplo7v8f1oMQ5ZPQr0vn7HPeZXxXWsxXJRjGVrzUFn9OxFQl1sb5wzfootjA/yChhW84BV+383FSOw== "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.16.7": version "7.16.7" @@ -968,26 +973,26 @@ "@babel/parser" "^7.16.7" "@babel/types" "^7.16.7" -"@babel/traverse@^7.1.6", "@babel/traverse@^7.12.1", "@babel/traverse@^7.13.0", "@babel/traverse@^7.16.10", "@babel/traverse@^7.16.7", "@babel/traverse@^7.16.8", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": - version "7.16.10" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.16.10.tgz#448f940defbe95b5a8029975b051f75993e8239f" - integrity sha512-yzuaYXoRJBGMlBhsMJoUW7G1UmSb/eXr/JHYM/MsOJgavJibLwASijW7oXBdw3NQ6T0bW7Ty5P/VarOs9cHmqw== +"@babel/traverse@^7.1.6", "@babel/traverse@^7.12.1", "@babel/traverse@^7.13.0", "@babel/traverse@^7.16.10", "@babel/traverse@^7.16.7", "@babel/traverse@^7.16.8", "@babel/traverse@^7.18.0", "@babel/traverse@^7.18.2", "@babel/traverse@^7.18.5", "@babel/traverse@^7.4.5", "@babel/traverse@^7.7.0": + version "7.18.5" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.5.tgz#94a8195ad9642801837988ab77f36e992d9a20cd" + integrity sha512-aKXj1KT66sBj0vVzk6rEeAO6Z9aiiQ68wfDgge3nHhA/my6xMM/7HGQUNumKZaoa2qUPQ5whJG9aAifsxUKfLA== dependencies: "@babel/code-frame" "^7.16.7" - "@babel/generator" "^7.16.8" - "@babel/helper-environment-visitor" "^7.16.7" - "@babel/helper-function-name" "^7.16.7" + "@babel/generator" "^7.18.2" + "@babel/helper-environment-visitor" "^7.18.2" + "@babel/helper-function-name" "^7.17.9" "@babel/helper-hoist-variables" "^7.16.7" "@babel/helper-split-export-declaration" "^7.16.7" - "@babel/parser" "^7.16.10" - "@babel/types" "^7.16.8" + "@babel/parser" "^7.18.5" + "@babel/types" "^7.18.4" debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.1.6", "@babel/types@^7.12.1", "@babel/types@^7.16.0", "@babel/types@^7.16.7", "@babel/types@^7.16.8", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.7.0": - version "7.16.8" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.16.8.tgz#0ba5da91dd71e0a4e7781a30f22770831062e3c1" - integrity sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg== +"@babel/types@^7.1.6", "@babel/types@^7.12.1", "@babel/types@^7.16.0", "@babel/types@^7.16.7", "@babel/types@^7.16.8", "@babel/types@^7.17.0", "@babel/types@^7.18.0", "@babel/types@^7.18.2", "@babel/types@^7.18.4", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.7.0": + version "7.18.4" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.4.tgz#27eae9b9fd18e9dccc3f9d6ad051336f307be354" + integrity sha512-ThN1mBcMq5pG/Vm2IcBmPPfyPXbd8S02rS+OBIDENdufvqC7Z/jHPCv9IcP01277aKtDI8g/2XysBN4hA8niiw== dependencies: "@babel/helper-validator-identifier" "^7.16.7" to-fast-properties "^2.0.0" @@ -1335,6 +1340,46 @@ "@glimmer/interfaces" "^0.42.2" "@glimmer/util" "^0.42.2" +"@jridgewell/gen-mapping@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" + integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== + dependencies: + "@jridgewell/set-array" "^1.0.0" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@jridgewell/gen-mapping@^0.3.0": + version "0.3.1" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.1.tgz#cf92a983c83466b8c0ce9124fadeaf09f7c66ea9" + integrity sha512-GcHwniMlA2z+WFPWuY8lp3fsza0I8xPFMWL5+n8LYyP6PSvPrXf4+n8stDHZY2DM0zy9sVkRDy1jDI4XGzYVqg== + dependencies: + "@jridgewell/set-array" "^1.0.0" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@^3.0.3": + version "3.0.7" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.0.7.tgz#30cd49820a962aff48c8fffc5cd760151fca61fe" + integrity sha512-8cXDaBBHOr2pQ7j77Y6Vp5VDT2sIqWyWQ56TjEq4ih/a4iST3dItRe8Q9fp0rrIl9DoKhWQtUQz/YpOxLkXbNA== + +"@jridgewell/set-array@^1.0.0": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.1.tgz#36a6acc93987adcf0ba50c66908bd0b70de8afea" + integrity sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ== + +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.13" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz#b6461fb0c2964356c469e115f504c95ad97ab88c" + integrity sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w== + +"@jridgewell/trace-mapping@^0.3.9": + version "0.3.13" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.13.tgz#dcfe3e95f224c8fe97a87a5235defec999aa92ea" + integrity sha512-o1xbKhp9qnIAoHJSWd6KlCZfqslL4valSF81H8ImioOAxluWYWOpWkpyktY2vnt4tbrX9XYaxovq6cgowaJp2w== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@mrmlnc/readdir-enhanced@^2.2.1": version "2.2.1" resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" @@ -3928,15 +3973,15 @@ browserslist@^3.2.6: caniuse-lite "^1.0.30000844" electron-to-chromium "^1.3.47" -browserslist@^4.14.5, browserslist@^4.17.5, browserslist@^4.19.1: - version "4.19.1" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.19.1.tgz#4ac0435b35ab655896c31d53018b6dd5e9e4c9a3" - integrity sha512-u2tbbG5PdKRTUoctO3NBD8FQ5HdPh1ZXPHzp1rwaa5jTc+RV9/+RlWiAIKmjRPQF+xbGM9Kklj5bZQFa2s/38A== +browserslist@^4.14.5, browserslist@^4.17.5, browserslist@^4.19.1, browserslist@^4.20.2: + version "4.20.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.20.4.tgz#98096c9042af689ee1e0271333dbc564b8ce4477" + integrity sha512-ok1d+1WpnU24XYN7oC3QWgTyMhY/avPJ/r9T00xxvUOIparA/gc+UPUMaod3i+G6s+nI2nUb9xZ5k794uIwShw== dependencies: - caniuse-lite "^1.0.30001286" - electron-to-chromium "^1.4.17" + caniuse-lite "^1.0.30001349" + electron-to-chromium "^1.4.147" escalade "^3.1.1" - node-releases "^2.0.1" + node-releases "^2.0.5" picocolors "^1.0.0" bser@2.1.1: @@ -4089,10 +4134,10 @@ can-symlink@^1.0.0: dependencies: tmp "0.0.28" -caniuse-lite@^1.0.30000844, caniuse-lite@^1.0.30001286: - version "1.0.30001301" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001301.tgz#ebc9086026534cab0dab99425d9c3b4425e5f450" - integrity sha512-csfD/GpHMqgEL3V3uIgosvh+SVIQvCh43SNu9HRbP1lnxkKm1kjDG4f32PP571JplkLjfS+mg2p1gxR7MYrrIA== +caniuse-lite@^1.0.30000844, caniuse-lite@^1.0.30001286, caniuse-lite@^1.0.30001349: + version "1.0.30001357" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001357.tgz#dec7fc4158ef6ad24690d0eec7b91f32b8cb1b5d" + integrity sha512-b+KbWHdHePp+ZpNj+RDHFChZmuN+J5EvuQUlee9jOQIUAdhv9uvAZeEtUeLAknXbkiu1uxjQ9NLp1ie894CuWg== capture-exit@^2.0.0: version "2.0.0" @@ -5050,10 +5095,10 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= -electron-to-chromium@^1.3.47, electron-to-chromium@^1.4.17: - version "1.4.51" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.51.tgz#a432f5a5d983ace79278a33057300cf949627e63" - integrity sha512-JNEmcYl3mk1tGQmy0EvL5eik/CKSBuzAyGP0QFdG6LIgxQe3II0BL1m2zKc2MZMf3uGqHWE1TFddJML0RpjSHQ== +electron-to-chromium@^1.3.47, electron-to-chromium@^1.4.147, electron-to-chromium@^1.4.17: + version "1.4.161" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.161.tgz#49cb5b35385bfee6cc439d0a04fbba7a7a7f08a1" + integrity sha512-sTjBRhqh6wFodzZtc5Iu8/R95OkwaPNn7tj/TaDU5nu/5EFiQDtADGAXdR4tJcTEHlYfJpHqigzJqHvPgehP8A== elliptic@^6.5.3: version "6.5.4" @@ -8367,12 +8412,10 @@ json5@^1.0.1: dependencies: minimist "^1.2.0" -json5@^2.1.2: - version "2.2.0" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3" - integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA== - dependencies: - minimist "^1.2.5" +json5@^2.1.2, json5@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" + integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== jsonfile@^2.1.0: version "2.4.0" @@ -9377,10 +9420,10 @@ node-notifier@^9.0.1: uuid "^8.3.0" which "^2.0.2" -node-releases@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5" - integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA== +node-releases@^2.0.1, node-releases@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.5.tgz#280ed5bc3eba0d96ce44897d8aee478bfb3d9666" + integrity sha512-U9h1NLROZTq9uE1SNffn6WuPDg8icmi3ns4rEl/oTfIle4iLjTliCzgTsbaIFMq/Xn078/lfY/BL0GWZ+psK4Q== node-watch@0.7.1: version "0.7.1" diff --git a/spec/models/theme_spec.rb b/spec/models/theme_spec.rb index a14f10e5b8a..0d07988ad4a 100644 --- a/spec/models/theme_spec.rb +++ b/spec/models/theme_spec.rb @@ -252,7 +252,7 @@ HTML expect(javascript_cache.content).to include("var x = 1;") end - it "wraps constants calls in a readOnlyError function" do + it "replaces const writes with _readOnlyError function call" do html = < const x = 1; @@ -263,7 +263,7 @@ HTML baked, javascript_cache = transpile(html) expect(baked).to include(javascript_cache.url) expect(javascript_cache.content).to include('var x = 1;') - expect(javascript_cache.content).to include('x = (_readOnlyError("x"), 2);') + expect(javascript_cache.content).to include('2, _readOnlyError("x");') end end diff --git a/vendor/assets/javascripts/babel.js b/vendor/assets/javascripts/babel.js index 2ca5ba74f77..4ae4216d481 100644 --- a/vendor/assets/javascripts/babel.js +++ b/vendor/assets/javascripts/babel.js @@ -1,2 +1,17 @@ -// https://unpkg.com/@babel/standalone@7.11.6/babel.min.js -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Babel={})}(this,(function(e){"use strict";var t,r=Object.freeze({__proto__:null,get types(){return Ah},get DEFAULT_EXTENSIONS(){return bI},get OptionManager(){return xI},get Plugin(){return EI},get File(){return VA},get buildExternalHelpers(){return XA},get resolvePlugin(){return uP},get resolvePreset(){return pP},get version(){return hP},get getEnv(){return mP},get tokTypes(){return cx},get traverse(){return $w},get template(){return nw},get createConfigItem(){return gk},get loadPartialConfig(){return vD},get loadPartialConfigSync(){return bD},get loadPartialConfigAsync(){return xD},get loadOptions(){return ED},get loadOptionsSync(){return wD},get loadOptionsAsync(){return SD},get transform(){return sI},get transformSync(){return iI},get transformAsync(){return oI},get transformFile(){return lI},get transformFileSync(){return cI},get transformFileAsync(){return uI},get transformFromAst(){return dI},get transformFromAstSync(){return fI},get transformFromAstAsync(){return hI},get parse(){return yI},get parseSync(){return gI},get parseAsync(){return vI}});function n(e){return(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)}function a(e){this.wrapped=e}function s(e){var t,r;function n(t,r){try{var i=e[t](r),o=i.value,l=o instanceof a;Promise.resolve(l?o.wrapped:o).then((function(e){l?n("return"===t?"return":"next",e):s(i.done?"return":"normal",e)}),(function(e){n("throw",e)}))}catch(e){s("throw",e)}}function s(e,a){switch(e){case"return":t.resolve({value:a,done:!0});break;case"throw":t.reject(a);break;default:t.resolve({value:a,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,a){return new Promise((function(s,i){var o={key:e,arg:a,resolve:s,reject:i,next:null};r?r=r.next=o:(t=r=o,n(e,a))}))},"function"!=typeof e.return&&(this.return=void 0)}function i(e,t,r,n,a,s,i){try{var o=e[s](i),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,a)}function o(e,t){for(var r=0;r=0||(a[r]=e[r]);return a}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?w(e):t}function T(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function j(e,t,r){return(j="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=T(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}})(e,t,r||e)}function A(e,t,r,n){return(A="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,r,n){var a,s=T(e,t);if(s){if((a=Object.getOwnPropertyDescriptor(s,t)).set)return a.set.call(n,r),!0;if(!a.writable)return!1}if(a=Object.getOwnPropertyDescriptor(n,t)){if(!a.writable)return!1;a.value=r,Object.defineProperty(n,t,a)}else c(n,t,r);return!0})(e,t,r,n)}function P(e,t){return t||(t=e.slice(0)),e.raw=t,e}function k(){}function C(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}function D(e){return I(e)||O(e)||F(e)||L()}function _(e){if(Array.isArray(e))return R(e)}function I(e){if(Array.isArray(e))return e}function O(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function N(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,s=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,s=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw s}}return r}}function B(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){for(var r,n=[],a=e[Symbol.iterator]();!(r=a.next()).done&&(n.push(r.value),!t||n.length!==t););return n}}function F(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function W(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function V(e){var t=W(e,"string");return"symbol"==typeof t?t:String(t)}"function"==typeof Symbol&&Symbol.asyncIterator&&(s.prototype[Symbol.asyncIterator]=function(){return this}),s.prototype.next=function(e){return this._invoke("next",e)},s.prototype.throw=function(e){return this._invoke("throw",e)},s.prototype.return=function(e){return this._invoke("return",e)};var G=0;function K(e){var t,r=V(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var n={kind:"field"===e.kind?"field":"method",key:r,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(n.decorators=e.decorators),"field"===e.kind&&(n.initializer=e.value),n}function H(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function z(e){return e.decorators&&e.decorators.length}function q(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function J(e,t){var r=e[t];if(void 0!==r&&"function"!=typeof r)throw new TypeError("Expected '"+t+"' to be a function");return r}function X(e,t){X=function(e,t){return new s(e,void 0,t)};var r=b(RegExp),n=RegExp.prototype,a=new WeakMap;function s(e,t,n){var s=r.call(this,e,t);return a.set(s,n||a.get(e)),s}function i(e,t){var r=a.get(t);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return d(s,r),s.prototype.exec=function(e){var t=n.exec.call(this,e);return t&&(t.groups=i(t,this)),t},s.prototype[Symbol.replace]=function(e,t){if("string"==typeof t){var r=a.get(this);return n[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+r[t]})))}if("function"==typeof t){var s=this;return n[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!=typeof e[e.length-1]&&e.push(i(e,s)),t.apply(this,e)}))}return n[Symbol.replace].call(this,e,t)},X.apply(this,arguments)}var Y=Object.freeze({__proto__:null,get typeof(){return n},jsx:function(e,r,n,a){t||(t="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var s=e&&e.defaultProps,i=arguments.length-3;if(r||0===i||(r={children:void 0}),1===i)r.children=a;else if(i>1){for(var o=new Array(i),l=0;l=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a},assertThisInitialized:w,possibleConstructorReturn:S,createSuper:function(e){var t=y();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return S(this,r)}},superPropBase:T,get get(){return j},set:function(e,t,r,n,a){if(!A(e,t,r,n||e)&&a)throw new Error("failed to set property");return r},taggedTemplateLiteral:function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},taggedTemplateLiteralLoose:P,readOnlyError:function(e){throw new Error('"'+e+'" is read-only')},classNameTDZError:function(e){throw new Error('Class "'+e+'" cannot be referenced in computed property keys.')},temporalUndefined:k,tdz:C,temporalRef:function(e,t){return e===k?C(t):e},slicedToArray:function(e,t){return I(e)||N(e,t)||F(e,t)||L()},slicedToArrayLoose:function(e,t){return I(e)||B(e,t)||F(e,t)||L()},toArray:D,toConsumableArray:function(e){return _(e)||O(e)||F(e)||M()},arrayWithoutHoles:_,arrayWithHoles:I,maybeArrayLike:function(e,t,r){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var n=t.length;return R(t,void 0!==r&&r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,s=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw s}}}},createForOfIteratorHelperLoose:U,skipFirstGeneratorNext:function(e){return function(){var t=e.apply(this,arguments);return t.next(),t}},toPrimitive:W,toPropertyKey:V,initializerWarningHelper:function(e,t){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")},initializerDefineProperty:function(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})},applyDecoratedDescriptor:function(e,t,r,n,a){var s={};return Object.keys(n).forEach((function(e){s[e]=n[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),s),a&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(a):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s},classPrivateFieldLooseKey:function(e){return"__private_"+G+++"_"+e},classPrivateFieldLooseBase:function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e},classPrivateFieldGet:function(e,t){var r=t.get(e);if(!r)throw new TypeError("attempted to get private field on non-instance");return r.get?r.get.call(e):r.value},classPrivateFieldSet:function(e,t,r){var n=t.get(e);if(!n)throw new TypeError("attempted to set private field on non-instance");if(n.set)n.set.call(e,r);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=r}return r},classPrivateFieldDestructureSet:function(e,t){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");var r=t.get(e);if(r.set)return"__destrObj"in r||(r.__destrObj={set value(t){r.set.call(e,t)}}),r.__destrObj;if(!r.writable)throw new TypeError("attempted to set read only private field");return r},classStaticPrivateFieldSpecGet:function(e,t,r){if(e!==t)throw new TypeError("Private static access of wrong provenance");return r.get?r.get.call(e):r.value},classStaticPrivateFieldSpecSet:function(e,t,r,n){if(e!==t)throw new TypeError("Private static access of wrong provenance");if(r.set)r.set.call(e,n);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=n}return n},classStaticPrivateMethodGet:function(e,t,r){if(e!==t)throw new TypeError("Private static access of wrong provenance");return r},classStaticPrivateMethodSet:function(){throw new TypeError("attempted to set read only static private field")},decorate:function(e,t,r,n){var a=function(){(function(){return e});var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var a=t.placement;if(t.kind===n&&("static"===a||"prototype"===a)){var s="static"===a?e:r;this.defineClassElement(s,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],a={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,a)}),this),e.forEach((function(e){if(!z(e))return r.push(e);var t=this.decorateElement(e,a);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var s=this.decorateConstructor(r,t);return n.push.apply(n,s.finishers),s.finishers=n,s},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],a=e.decorators,s=a.length-1;s>=0;s--){var i=t[e.placement];i.splice(i.indexOf(e.key),1);var o=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,a[s])(o)||o);e=l.element,this.addElementPlacement(e,t),l.finisher&&n.push(l.finisher);var c=l.extras;if(c){for(var u=0;u=0;n--){var a=this.fromClassDescriptor(e),s=this.toClassDescriptor((0,t[n])(a)||a);if(void 0!==s.finisher&&r.push(s.finisher),void 0!==s.elements){e=s.elements;for(var i=0;ia.length)return!1;for(var i=0,o=s.length-1;i-1};var Dr=function(e,t){var r=this.__data__,n=jr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function _r(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},ia={};ia["[object Float32Array]"]=ia["[object Float64Array]"]=ia["[object Int8Array]"]=ia["[object Int16Array]"]=ia["[object Int32Array]"]=ia["[object Uint8Array]"]=ia["[object Uint8ClampedArray]"]=ia["[object Uint16Array]"]=ia["[object Uint32Array]"]=!0,ia["[object Arguments]"]=ia["[object Array]"]=ia["[object ArrayBuffer]"]=ia["[object Boolean]"]=ia["[object DataView]"]=ia["[object Date]"]=ia["[object Error]"]=ia["[object Function]"]=ia["[object Map]"]=ia["[object Number]"]=ia["[object Object]"]=ia["[object RegExp]"]=ia["[object Set]"]=ia["[object String]"]=ia["[object WeakMap]"]=!1;var oa=function(e){return Jn(e)&&sa(e.length)&&!!ia[en(e)]};var la=function(e){return function(t){return e(t)}},ca=Lr((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,a=n&&n.exports===r&&Vr.process,s=function(){try{var e=n&&n.require&&n.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s})),ua=ca&&ca.isTypedArray,pa=ua?la(ua):oa,da=Object.prototype.hasOwnProperty;var fa=function(e,t){var r=ea(e),n=!r&&Zn(e),a=!r&&!n&&ra(e),s=!r&&!n&&!a&&pa(e),i=r||n||a||s,o=i?qn(e.length,String):[],l=o.length;for(var c in e)!t&&!da.call(e,c)||i&&("length"==c||a&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||aa(c,l))||o.push(c);return o},ha=Object.prototype;var ma=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ha)};var ya=function(e,t){return function(r){return e(t(r))}},ga=ya(Object.keys,Object),va=Object.prototype.hasOwnProperty;var ba=function(e){if(!ma(e))return ga(e);var t=[];for(var r in Object(e))va.call(e,r)&&"constructor"!=r&&t.push(r);return t};var xa=function(e){return null!=e&&sa(e.length)&&!rn(e)};var Ea=function(e){return xa(e)?fa(e):ba(e)};var wa=function(e,t){return e&&zn(t,Ea(t),e)};var Sa=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Ta=Object.prototype.hasOwnProperty;var ja=function(e){if(!tn(e))return Sa(e);var t=ma(e),r=[];for(var n in e)("constructor"!=n||!t&&Ta.call(e,n))&&r.push(n);return r};var Aa=function(e){return xa(e)?fa(e,!0):ja(e)};var Pa=function(e,t){return e&&zn(t,Aa(t),e)},ka=Lr((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,a=n&&n.exports===r?Kr.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}}));var Ca=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r1)for(var r=1;re)return!1;if((r+=t[n+1])>=e)return!0}return!1}function yi(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&pi.test(String.fromCharCode(e)):mi(e,fi)))}function gi(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&di.test(String.fromCharCode(e)):mi(e,fi)||mi(e,hi))))}var vi=["implements","interface","let","package","private","protected","public","static","yield"],bi=["eval","arguments"],xi=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),Ei=new Set(vi),wi=new Set(bi);function Si(e,t){return t&&"await"===e||"enum"===e}function Ti(e,t){return Si(e,t)||Ei.has(e)}function ji(e){return wi.has(e)}function Ai(e,t){return Ti(e,t)||ji(e)}function Pi(e){return xi.has(e)}function ki(e,t){if(void 0===t&&(t=!0),"string"!=typeof e)return!1;if(t){if(Pi(e)||Ti(e))return!1;if("await"===e)return!1}return function(e){for(var t=!0,r=0,n=Array.from(e);r","<",">=","<="],Bi=["==","===","!=","!=="],Fi=[].concat(Bi,["in","instanceof"]),Ri=[].concat(Fi,Ni),Mi=["-","/","%","*","**","&","|",">>",">>>","<<","^"],Li=["+"].concat(Mi,Ri),Ui=["=","+="].concat(Mi.map((function(e){return e+"="})),Ii.map((function(e){return e+"="}))),Wi=["delete","!"],Vi=["+","-","~"],Gi=["typeof"],Ki=["void","throw"].concat(Wi,Vi,Gi),Hi={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},zi=Symbol.for("var used to be block scoped"),qi=Symbol.for("should not be considered a local binding");function Ji(e,t,r){if(e){var n=eo[e.type];if(n)Xi(e,t,r,n[t]),Yi(e,t,r)}}function Xi(e,t,r,n){(null==n?void 0:n.validate)&&(n.optional&&null==r||n.validate(e,t,r))}function Yi(e,t,r){if(null!=r){var n=no[r.type];n&&n(e,t,r)}}var $i={},Qi={},Zi={},eo={},to={},ro={},no={};function ao(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function so(e){return{validate:e}}function io(e){return"string"==typeof e?mo(e):mo.apply(void 0,e)}function oo(e){return so(io(e))}function lo(e){return{validate:e,optional:!0}}function co(e){return{validate:io(e),optional:!0}}function uo(e){return t=io(e),bo(go("array"),fo(t));var t}function po(e){return so(uo(e))}function fo(e){function t(t,r,n){if(Array.isArray(n))for(var a=0;aa+1)throw new TypeError("RestElement must be last element of "+n)}}}),wo("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:mo("Expression"),optional:!0}}}),wo("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:bo(go("array"),fo(mo("Expression")))}},aliases:["Expression"]}),wo("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:mo("Expression")}}}),wo("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:mo("Expression"),optional:!0},consequent:{validate:bo(go("array"),fo(mo("Statement")))}}}),wo("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:mo("Expression")},cases:{validate:bo(go("array"),fo(mo("SwitchCase")))}}}),wo("ThisExpression",{aliases:["Expression"]}),wo("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:mo("Expression")}}}),wo("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:bo(mo("BlockStatement"),Object.assign((function(e){if(si.env.BABEL_TYPES_8_BREAKING&&!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:mo("CatchClause")},finalizer:{optional:!0,validate:mo("BlockStatement")}}}),wo("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:mo("Expression")},operator:{validate:ho.apply(void 0,Ki)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),wo("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:si.env.BABEL_TYPES_8_BREAKING?mo("Identifier","MemberExpression"):mo("Expression")},operator:{validate:ho.apply(void 0,Oi)}},visitor:["argument"],aliases:["Expression"]}),wo("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:go("boolean"),optional:!0},kind:{validate:ho("var","let","const")},declarations:{validate:bo(go("array"),fo(mo("VariableDeclarator")))}},validate:function(e,t,r){if(si.env.BABEL_TYPES_8_BREAKING&&li("ForXStatement",e,{left:r})&&1!==r.declarations.length)throw new TypeError("Exactly one VariableDeclarator is required in the VariableDeclaration of a "+e.type)}}),wo("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!si.env.BABEL_TYPES_8_BREAKING)return mo("LVal");var e=mo("Identifier","ArrayPattern","ObjectPattern"),t=mo("Identifier");return function(r,n,a){(r.init?e:t)(r,n,a)}}()},definite:{optional:!0,validate:go("boolean")},init:{optional:!0,validate:mo("Expression")}}}),wo("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:mo("Expression")},body:{validate:mo("Statement")}}}),wo("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:mo("Expression")},body:{validate:mo("Statement")}}}),wo("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Io,{left:{validate:mo("Identifier","ObjectPattern","ArrayPattern","MemberExpression")},right:{validate:mo("Expression")},decorators:{validate:bo(go("array"),fo(mo("Decorator"))),optional:!0}})}),wo("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Io,{elements:{validate:bo(go("array"),fo(yo("null","PatternLike")))},decorators:{validate:bo(go("array"),fo(mo("Decorator"))),optional:!0}})}),wo("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},To,jo,{expression:{validate:go("boolean")},body:{validate:mo("BlockStatement","Expression")}})}),wo("ClassBody",{visitor:["body"],fields:{body:{validate:bo(go("array"),fo(mo("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","TSDeclareMethod","TSIndexSignature")))}}}),wo("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:mo("Identifier"),optional:!0},typeParameters:{validate:mo("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:mo("ClassBody")},superClass:{optional:!0,validate:mo("Expression")},superTypeParameters:{validate:mo("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:bo(go("array"),fo(mo("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:bo(go("array"),fo(mo("Decorator"))),optional:!0},mixins:{validate:mo("InterfaceExtends"),optional:!0}}}),wo("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:mo("Identifier")},typeParameters:{validate:mo("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:mo("ClassBody")},superClass:{optional:!0,validate:mo("Expression")},superTypeParameters:{validate:mo("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:bo(go("array"),fo(mo("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:bo(go("array"),fo(mo("Decorator"))),optional:!0},mixins:{validate:mo("InterfaceExtends"),optional:!0},declare:{validate:go("boolean"),optional:!0},abstract:{validate:go("boolean"),optional:!0}},validate:function(){var e=mo("Identifier");return function(t,r,n){si.env.BABEL_TYPES_8_BREAKING&&(li("ExportDefaultDeclaration",t)||e(n,"id",n.id))}}()}),wo("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:mo("StringLiteral")}}}),wo("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:mo("FunctionDeclaration","TSDeclareFunction","ClassDeclaration","Expression")}}}),wo("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:bo(mo("Declaration"),Object.assign((function(e,t,r){if(si.env.BABEL_TYPES_8_BREAKING&&r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")}),{oneOfNodeTypes:["Declaration"]}),(function(e,t,r){if(si.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")}))},specifiers:{default:[],validate:bo(go("array"),fo((Do=mo("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),_o=mo("ExportSpecifier"),si.env.BABEL_TYPES_8_BREAKING?function(e,t,r){(e.source?Do:_o)(e,t,r)}:Do)))},source:{validate:mo("StringLiteral"),optional:!0},exportKind:lo(ho("type","value"))}}),wo("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:mo("Identifier")},exported:{validate:mo("Identifier")}}}),wo("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!si.env.BABEL_TYPES_8_BREAKING)return mo("VariableDeclaration","LVal");var e=mo("VariableDeclaration"),t=mo("Identifier","MemberExpression","ArrayPattern","ObjectPattern");return function(r,n,a){li("VariableDeclaration",a)?e(r,n,a):t(r,n,a)}}()},right:{validate:mo("Expression")},body:{validate:mo("Statement")},await:{default:!1}}}),wo("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{specifiers:{validate:bo(go("array"),fo(mo("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:mo("StringLiteral")},importKind:{validate:ho("type","typeof","value"),optional:!0}}}),wo("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:mo("Identifier")}}}),wo("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:mo("Identifier")}}}),wo("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:mo("Identifier")},imported:{validate:mo("Identifier")},importKind:{validate:ho("type","typeof"),optional:!0}}}),wo("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:bo(mo("Identifier"),Object.assign((function(e,t,r){if(si.env.BABEL_TYPES_8_BREAKING){var n;switch(r.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta"}if(!li("Identifier",e.property,{name:n}))throw new TypeError("Unrecognised MetaProperty")}}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:mo("Identifier")}}});var Oo={abstract:{validate:go("boolean"),optional:!0},accessibility:{validate:ho("public","private","protected"),optional:!0},static:{default:!1},computed:{default:!1},optional:{validate:go("boolean"),optional:!0},key:{validate:bo(function(){var e=mo("Identifier","StringLiteral","NumericLiteral"),t=mo("Expression");return function(r,n,a){(r.computed?t:e)(r,n,a)}}(),mo("Identifier","StringLiteral","NumericLiteral","Expression"))}},No=Object.assign({},To,Oo,{kind:{validate:ho("get","set","method","constructor"),default:"method"},access:{validate:bo(go("string"),ho("public","private","protected")),optional:!0},decorators:{validate:bo(go("array"),fo(mo("Decorator"))),optional:!0}});wo("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},No,jo,{body:{validate:mo("BlockStatement")}})}),wo("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Io,{properties:{validate:bo(go("array"),fo(mo("RestElement","ObjectProperty")))}})}),wo("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:mo("Expression")}}}),wo("Super",{aliases:["Expression"]}),wo("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:mo("Expression")},quasi:{validate:mo("TemplateLiteral")},typeParameters:{validate:mo("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),wo("TemplateElement",{builder:["value","tail"],fields:{value:{validate:function(e){function t(t,r,n){for(var a=[],s=0,i=Object.keys(e);s1?t-1:0),n=1;na.length)throw new Error(e+": Too many arguments passed. Received "+s+" but can receive no more than "+a.length);var i={type:e},o=0;a.forEach((function(t){var n,a=eo[e][t];o=0)){if(pt(i))return[i];if(vr(i))r[i.type]=i;else if(Tt(i))n.indexOf(i.types)<0&&(e=e.concat(i.types),n.push(i.types));else if(mt(i)){var o=i.id.name;if(t[o]){var l=t[o];l.typeParameters?i.typeParameters&&(l.typeParameters.params=Nd(l.typeParameters.params.concat(i.typeParameters.params))):l=i.typeParameters}else t[o]=i}else a.push(i)}}for(var c=0,u=Object.keys(r);c=0)){if(Wt(i.type))return[i];br(i)?r[i.type]=i:Ht(i)?n.indexOf(i.types)<0&&(e=e.concat(i.types),n.push(i.types)):a.push(i)}}for(var o=0,l=Object.keys(r);o=Number.MAX_SAFE_INTEGER?eh.uid=0:eh.uid++},th.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};var ah=Function.prototype,sh=Object.prototype,ih=ah.toString,oh=sh.hasOwnProperty,lh=ih.call(Object);var ch=function(e){if(!Jn(e)||"[object Object]"!=en(e))return!1;var t=Ra(e);if(null===t)return!0;var r=oh.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ih.call(r)==lh};var uh=function(e){return Jn(e)&&"[object RegExp]"==en(e)},ph=ca&&ca.isRegExp,dh=ph?la(ph):uh;function fh(e){if(void 0===e)return El("undefined");if(!0===e||!1===e)return Pl(e);if(null===e)return Al();if("string"==typeof e)return Tl(e);if("number"==typeof e){var t;if(Number.isFinite(e))t=jl(Math.abs(e));else t=rl("/",Number.isNaN(e)?jl(0):jl(1),jl(0));return(e<0||Object.is(e,-0))&&(t=Hl("-",t)),t}if(dh(e))return kl(e.source,e.toString().match(/\/([a-z]+|)$/)[1]);if(Array.isArray(e))return el(e.map(fh));if(ch(e)){for(var r=[],n=0,a=Object.keys(e);n=0)return!0}else if(s===e)return!0}return!1}function vh(e){return Fe(e)&&("var"!==e.kind||e[zi])}function bh(e){return de(e)||Ke(e)||vh(e)}function xh(e,t,r){switch(t.type){case"MemberExpression":case"JSXMemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"ExportSpecifier":return!t.source&&t.local===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.params.includes(e))return!1;case"ObjectProperty":case"ClassProperty":case"ClassPrivateProperty":return t.key===e?!!t.computed:t.value!==e||(!r||"ObjectPattern"!==r.type);case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"LabeledStatement":case"CatchClause":case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key!==e||!!t.computed}return!0}function Eh(e,t){return(!te(e)||!sr(t,{body:e}))&&((!te(e)||!ae(t,{body:e}))&&(!(!dr(e)||!sr(t))||Zt(e)))}var wh=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function Sh(e){return ki(e)&&!wh.has(e)}function Th(e){return Fe(e,{kind:"var"})&&!e[zi]}var jh={isReactComponent:wr,isCompatTag:function(e){return!!e&&/^[a-z]/.test(e)},buildChildren:function(e){for(var t=[],r=0;r0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*Gh;case"weeks":case"week":case"w":return r*Vh;case"days":case"day":case"d":return r*Wh;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Uh;case"minutes":case"minute":case"mins":case"min":case"m":return r*Lh;case"seconds":case"second":case"secs":case"sec":case"s":return r*Mh;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=Wh)return Hh(e,t,Wh,"day");if(t>=Uh)return Hh(e,t,Uh,"hour");if(t>=Lh)return Hh(e,t,Lh,"minute");if(t>=Mh)return Hh(e,t,Mh,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=Wh)return Math.round(e/Wh)+"d";if(t>=Uh)return Math.round(e/Uh)+"h";if(t>=Lh)return Math.round(e/Lh)+"m";if(t>=Mh)return Math.round(e/Mh)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Hh(e,t,r,n){var a=t>=1.5*r;return Math.round(e/r)+" "+n+(a?"s":"")}var zh=function(e){function t(e){for(var t=0,n=0;n=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=zh(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),Jh=function(){function e(e){var t=e.identifier,r=e.scope,n=e.path,a=e.kind;this.identifier=t,this.scope=r,this.path=n,this.kind=a,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.clearValue()}var t=e.prototype;return t.deoptValue=function(){this.clearValue(),this.hasDeoptedValue=!0},t.setValue=function(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)},t.clearValue=function(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null},t.reassign=function(e){this.constant=!1,-1===this.constantViolations.indexOf(e)&&this.constantViolations.push(e)},t.reference=function(e){-1===this.referencePaths.indexOf(e)&&(this.referenced=!0,this.references++,this.referencePaths.push(e))},t.dereference=function(){this.references--,this.referenced=!!this.references},e}();function Xh(e){if(!e.isExportDeclaration())throw new Error("Only export declarations can be split.");var t=e.isExportDefaultDeclaration(),r=e.get("declaration"),n=r.isClassDeclaration();if(t){var a=r.isFunctionDeclaration()||n,s=r.isScope()?r.scope.parent:r.scope,i=r.node.id,o=!1;i||(o=!0,i=s.generateUidIdentifier("default"),(a||r.isFunctionExpression()||r.isClassExpression())&&(r.node.id=Ud(i)));var l=a?r:ql("var",[Jl(Ud(i),r.node)]),c=sc(null,[ic(Ud(i),El("default"))]);return e.insertAfter(c),e.replaceWith(l),o&&s.registerDeclaration(e),e}if(e.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");var u=r.getOuterBindingIdentifiers(),p=sc(null,Object.keys(u).map((function(e){return ic(El(e),El(e))})));return e.insertAfter(p),e.replaceWith(r.node),e}var Yh={ReferencedIdentifier:function(e,t){var r=e.node;r.name===t.oldName&&(r.name=t.newName)},Scope:function(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||e.skip()},"AssignmentExpression|Declaration|VariableDeclarator":function(e,t){if(!e.isVariableDeclaration()){var r=e.getOuterBindingIdentifiers();for(var n in r)n===t.oldName&&(r[n].name=t.newName)}}},$h=function(){function e(e,t,r){this.newName=r,this.oldName=t,this.binding=e}var t=e.prototype;return t.maybeConvertFromExportDeclaration=function(e){var t=e.parentPath;t.isExportDeclaration()&&(t.isExportDefaultDeclaration()&&!t.get("declaration").node.id||Xh(t))},t.maybeConvertFromClassFunctionDeclaration=function(e){},t.maybeConvertFromClassFunctionExpression=function(e){},t.rename=function(e){var t=this.binding,r=this.oldName,n=this.newName,a=t.scope,s=t.path.find((function(e){return e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()}));s&&(s.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(s));a.traverse(e||a.block,Yh,this),e||(a.removeOwnBinding(r),a.bindings[n]=t,this.binding.identifier.name=n),t.type,s&&(this.maybeConvertFromClassFunctionDeclaration(s),this.maybeConvertFromClassFunctionExpression(s))},e}();var Qh=function(e){return e};var Zh=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},em=Math.max;var tm=function(e,t,r){return t=em(void 0===t?e.length-1:t,0),function(){for(var n=arguments,a=-1,s=em(n.length-t,0),i=Array(s);++a0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(nm);var im=function(e,t){return sm(tm(e,t,Qh),e+"")};var om=function(e,t,r){if(!tn(r))return!1;var n=typeof t;return!!("number"==n?xa(r)&&aa(t,r.length):"string"==n&&t in r)&&Tr(r[t],e)},lm=Object.prototype,cm=lm.hasOwnProperty,um=im((function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&om(t[0],t[1],a)&&(n=1);++r1&&(r+=t),"_"+r},t.generateUidBasedOnNode=function(e,t){var r=[];!function e(t,r){switch(null==t?void 0:t.type){default:if(hr(t))if(t.source)e(t.source,r);else if(t.specifiers&&t.specifiers.length)for(var n,a=U(t.specifiers);!(n=a()).done;)e(n.value,r);else t.declaration&&e(t.declaration,r);else yr(t)?e(t.local,r):lr(t)&&r.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":e(t.object,r),e(t.property,r);break;case"Identifier":case"JSXIdentifier":r.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":e(t.callee,r);break;case"ObjectExpression":case"ObjectPattern":for(var s,i=U(t.properties);!(s=i()).done;)e(s.value,r);break;case"SpreadElement":case"RestElement":e(t.argument,r);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":e(t.key,r);break;case"ThisExpression":r.push("this");break;case"Super":r.push("super");break;case"Import":r.push("import");break;case"DoExpression":r.push("do");break;case"YieldExpression":r.push("yield"),e(t.argument,r);break;case"AwaitExpression":r.push("await"),e(t.argument,r);break;case"AssignmentExpression":e(t.left,r);break;case"VariableDeclarator":e(t.id,r);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":e(t.id,r);break;case"ParenthesizedExpression":e(t.expression,r);break;case"UnaryExpression":case"UpdateExpression":e(t.argument,r);break;case"MetaProperty":e(t.meta,r),e(t.property,r);break;case"JSXElement":e(t.openingElement,r);break;case"JSXOpeningElement":r.push(t.name);break;case"JSXFragment":e(t.openingFragment,r);break;case"JSXOpeningFragment":r.push("Fragment");break;case"JSXNamespacedName":e(t.namespace,r),e(t.name,r)}}(e,r);var n=r.join("$");return n=n.replace(/^_/,"")||t||"ref",this.generateUid(n.slice(0,20))},t.generateUidIdentifierBasedOnNode=function(e,t){return El(this.generateUidBasedOnNode(e,t))},t.isStatic=function(e){if(Oe(e)||rt(e))return!0;if(he(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1},t.maybeGenerateMemoised=function(e,t){if(this.isStatic(e))return null;var r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),Ud(r))},t.checkBlockScopedCollisions=function(e,t,r,n){if("param"!==t&&("local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&("let"===t||"const"===t))))throw this.hub.buildError(n,'Duplicate declaration "'+r+'"',TypeError)},t.rename=function(e,t,r){var n=this.getBinding(e);if(n)return t=t||this.generateUidIdentifier(e).name,new $h(n,e,t).rename(r)},t._renameFromMap=function(e,t,r,n){e[t]&&(e[r]=n,e[t]=null)},t.dump=function(){var e="-".repeat(60);console.log(e);var t=this;do{console.log("#",t.block.type);for(var r=0,n=Object.keys(t.bindings);r>>=5)>0&&(t|=32),r+=ey(t)}while(n>0);return r},ny=function(e,t,r){var n,a,s,i,o=e.length,l=0,c=0;do{if(t>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=ty(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&a),l+=(a&=31)<>1,1==(1&s)?-i:i),r.rest=t},ay=Lr((function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function a(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function s(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(e){var r=e,n=a(e);if(n){if(!n.path)return e;r=n.path}for(var i,o=t.isAbsolute(r),l=r.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(i=l[u])?l.splice(u,1):".."===i?c++:c>0&&(""===i?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(r=l.join("/"))&&(r=o?"/":"."),n?(n.path=r,s(n)):r}t.urlParse=a,t.urlGenerate=s,t.normalize=i,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=a(t),o=a(e);if(o&&(e=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),s(r);if(r||t.match(n))return t;if(o&&!o.host&&!o.path)return o.host=t,s(o);var l="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=l,s(o)):l},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var o=!("__proto__"in Object.create(null));function l(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function u(e,t){return e===t?0:e>t?1:-1}t.toSetString=o?l:function(e){return c(e)?"$"+e:e},t.fromSetString=o?l:function(e){return c(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=e.source-t.source;return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=e.source-t.source)||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=u(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:u(e.name,t.name)}})),sy=Object.prototype.hasOwnProperty,iy="undefined"!=typeof Map;function oy(){this._array=[],this._set=iy?new Map:Object.create(null)}oy.fromArray=function(e,t){for(var r=new oy,n=0,a=e.length;n=0)return t}else{var r=ay.toSetString(e);if(sy.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},oy.prototype.at=function(e){if(e>=0&&en||a==n&&i>=s||ay.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},cy.prototype.toArray=function(){return this._sorted||(this._array.sort(ay.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var uy=ly.ArraySet,py={MappingList:cy}.MappingList;function dy(e){e||(e={}),this._file=ay.getArg(e,"file",null),this._sourceRoot=ay.getArg(e,"sourceRoot",null),this._skipValidation=ay.getArg(e,"skipValidation",!1),this._sources=new uy,this._names=new uy,this._mappings=new py,this._sourcesContents=null}dy.prototype._version=3,dy.fromSourceMap=function(e){var t=e.sourceRoot,r=new dy({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=ay.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)})),r},dy.prototype.addMapping=function(e){var t=ay.getArg(e,"generated"),r=ay.getArg(e,"original",null),n=ay.getArg(e,"source",null),a=ay.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:a})},dy.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=ay.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ay.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[ay.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},dy.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var a=this._sourceRoot;null!=a&&(n=ay.relative(a,n));var s=new uy,i=new uy;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=r&&(t.source=ay.join(r,t.source)),null!=a&&(t.source=ay.relative(a,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var l=t.source;null==l||s.has(l)||s.add(l);var c=t.name;null==c||i.has(c)||i.add(c)}),this),this._sources=s,this._names=i,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=ay.join(r,t)),null!=a&&(t=ay.relative(a,t)),this.setSourceContent(t,n))}),this)},dy.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},dy.prototype._serializeMappings=function(){for(var e,t,r,n,a=0,s=1,i=0,o=0,l=0,c=0,u="",p=this._mappings.toArray(),d=0,f=p.length;d0){if(!ay.compareByGeneratedPositionsInflated(t,p[d-1]))continue;e+=","}e+=ry(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=ry(n-c),c=n,e+=ry(t.originalLine-1-o),o=t.originalLine-1,e+=ry(t.originalColumn-i),i=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=ry(r-l),l=r)),u+=e}return u},dy.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=ay.relative(t,e));var r=ay.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},dy.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},dy.prototype.toString=function(){return JSON.stringify(this.toJSON())};var fy={SourceMapGenerator:dy},hy=Lr((function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,n,a){if(0===r.length)return-1;var s=function e(r,n,a,s,i,o){var l=Math.floor((n-r)/2)+r,c=i(a,s[l],!0);return 0===c?l:c>0?n-l>1?e(l,n,a,s,i,o):o==t.LEAST_UPPER_BOUND?n1?e(r,l,a,s,i,o):o==t.LEAST_UPPER_BOUND?l:r<0?-1:r}(-1,r.length,e,r,n,a||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===n(r[s],r[s-1],!0);)--s;return s}}));function my(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function yy(e,t,r,n){if(r=0){var s=this._originalMappings[a];if(void 0===e.column)for(var i=s.originalLine;s&&s.originalLine===i;)n.push({line:ay.getArg(s,"generatedLine",null),column:ay.getArg(s,"generatedColumn",null),lastColumn:ay.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var o=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==o;)n.push({line:ay.getArg(s,"generatedLine",null),column:ay.getArg(s,"generatedColumn",null),lastColumn:ay.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return n};var xy=by;function Ey(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=ay.getArg(t,"version"),n=ay.getArg(t,"sources"),a=ay.getArg(t,"names",[]),s=ay.getArg(t,"sourceRoot",null),i=ay.getArg(t,"sourcesContent",null),o=ay.getArg(t,"mappings"),l=ay.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(ay.normalize).map((function(e){return s&&ay.isAbsolute(s)&&ay.isAbsolute(e)?ay.relative(s,e):e})),this._names=gy.fromArray(a.map(String),!0),this._sources=gy.fromArray(n,!0),this.sourceRoot=s,this.sourcesContent=i,this._mappings=o,this.file=l}function wy(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Ey.prototype=Object.create(by.prototype),Ey.prototype.consumer=by,Ey.fromSourceMap=function(e){var t=Object.create(Ey.prototype),r=t._names=gy.fromArray(e._names.toArray(),!0),n=t._sources=gy.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(),s=t.__generatedMappings=[],i=t.__originalMappings=[],o=0,l=a.length;o1&&(r.source=p+a[1],p+=a[1],r.originalLine=c+a[2],c=r.originalLine,r.originalLine+=1,r.originalColumn=u+a[3],u=r.originalColumn,a.length>4&&(r.name=d+a[4],d+=a[4])),v.push(r),"number"==typeof r.originalLine&&g.push(r)}vy(v,ay.compareByGeneratedPositionsDeflated),this.__generatedMappings=v,vy(g,ay.compareByOriginalPositions),this.__originalMappings=g},Ey.prototype._findMapping=function(e,t,r,n,a,s){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return hy.search(e,t,a,s)},Ey.prototype.computeColumnSpans=function(){for(var e=0;e=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var a=ay.getArg(n,"source",null);null!==a&&(a=this._sources.at(a),null!=this.sourceRoot&&(a=ay.join(this.sourceRoot,a)));var s=ay.getArg(n,"name",null);return null!==s&&(s=this._names.at(s)),{source:a,line:ay.getArg(n,"originalLine",null),column:ay.getArg(n,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},Ey.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},Ey.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=ay.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=ay.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Ey.prototype.generatedPositionFor=function(e){var t=ay.getArg(e,"source");if(null!=this.sourceRoot&&(t=ay.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:ay.getArg(e,"line"),originalColumn:ay.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",ay.compareByOriginalPositions,ay.getArg(e,"bias",by.GREATEST_LOWER_BOUND));if(n>=0){var a=this._originalMappings[n];if(a.source===r.source)return{line:ay.getArg(a,"generatedLine",null),column:ay.getArg(a,"generatedColumn",null),lastColumn:ay.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var Sy=Ey;function Ty(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=ay.getArg(t,"version"),n=ay.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new gy,this._names=new gy;var a={line:-1,column:0};this._sections=n.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=ay.getArg(e,"offset"),r=ay.getArg(t,"line"),n=ay.getArg(t,"column");if(r=0;t--)this.prepend(e[t]);else{if(!e[ky]&&"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},Cy.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r0&&Iy.test(this._queue[0][0]);)this._queue.shift();var t=this._sourcePosition,r=t.line,n=t.column,a=t.filename,s=t.identifierName,i=t.force;this._queue.unshift([e,r,n,s,a,i])},t._flush=function(){for(var e;e=this._queue.pop();)this._append.apply(this,e)},t._append=function(e,t,r,n,a,s){this._map&&"\n"!==e[0]&&this._map.mark(this._position.line,this._position.column,t,r,n,a,s),this._buf.push(e),this._last=e[e.length-1];for(var i=0;i0&&"\n"===this._queue[0][0]&&this._queue.shift()},t.removeLastSemicolon=function(){this._queue.length>0&&";"===this._queue[0][0]&&this._queue.shift()},t.endsWith=function(e){if(1===e.length){var t;if(this._queue.length>0){var r=this._queue[0][0];t=r[r.length-1]}else t=this._last;return t===e}var n=this._last+this._queue.reduce((function(e,t){return t[0]+e}),"");return e.length<=n.length&&n.slice(-e.length)===e},t.hasContent=function(){return this._queue.length>0||!!this._last},t.exactSource=function(e,t){this.source("start",e,!0),t(),this.source("end",e),this._disallowPop("start",e)},t.source=function(e,t,r){e&&!t||this._normalizePosition(e,t,this._sourcePosition,r)},t.withSource=function(e,t,r){if(!this._map)return r();var n=this._sourcePosition.line,a=this._sourcePosition.column,s=this._sourcePosition.filename,i=this._sourcePosition.identifierName;this.source(e,t),r(),this._sourcePosition.force&&this._sourcePosition.line===n&&this._sourcePosition.column===a&&this._sourcePosition.filename===s||this._disallowedPop&&this._disallowedPop.line===n&&this._disallowedPop.column===a&&this._disallowedPop.filename===s||(this._sourcePosition.line=n,this._sourcePosition.column=a,this._sourcePosition.filename=s,this._sourcePosition.identifierName=i,this._sourcePosition.force=!1,this._disallowedPop=null)},t._disallowPop=function(e,t){e&&!t||(this._disallowedPop=this._normalizePosition(e,t))},t._normalizePosition=function(e,t,r,n){var a=t?t[e]:null;void 0===r&&(r={identifierName:null,line:null,column:null,filename:null,force:!1});var s=r.line,i=r.column,o=r.filename;return r.identifierName="start"===e&&(null==t?void 0:t.identifierName)||null,r.line=null==a?void 0:a.line,r.column=null==a?void 0:a.column,r.filename=null==t?void 0:t.filename,(n||r.line!==s||r.column!==i||r.filename!==o)&&(r.force=n),r},t.getCurrentColumn=function(){var e=this._queue.reduce((function(e,t){return t[0]+e}),""),t=e.lastIndexOf("\n");return-1===t?this._position.column+e.length:e.length-1-t},t.getCurrentLine=function(){for(var e=this._queue.reduce((function(e,t){return t[0]+e}),""),t=0,r=0;r":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10},Ly=function(e,t){return(Ke(t)||Ge(t))&&t.superClass===e},Uy=function(e,t){return(we(t)||ct(t))&&t.object===e||(ne(t)||ut(t)||Se(t))&&t.callee===e||nt(t)&&t.tag===e||Xt(t)};function Wy(e,t){return dt(t)||bt(t)||yt(t)||Tt(t)}function Vy(e,t){return Vt(t)||Gt(t)||zt(t)||Ht(t)||Kt(t)}function Gy(e,t){return Qt(t)||pr(t)||Uy(e,t)||it(t)&&st(e)||se(t)&&e===t.test||Ly(e,t)}function Ky(e,t){return Uy(e,t)||ee(t,{operator:"**",left:e})||Ly(e,t)}function Hy(e,t){return!!(pr(t)||Qt(t)||se(t,{test:e})||it(t)||Jt(t)||qt(t))||Ky(e,t)}function zy(e,t){return ne(t,{callee:e})||we(t,{object:e})}function qy(e,t){for(var r=void 0===t?{}:t,n=r.considerArrow,a=void 0!==n&&n,s=r.considerDefaultExports,i=void 0!==s&&s,o=e.length-1,l=e[o],c=e[--o];o>0;){if(le(c,{expression:l})||i&&ze(c,{declaration:l})||a&&We(c,{body:l}))return!0;if(!(Uy(l,c)&&!Se(c)||De(c)&&c.expressions[0]===l||tr(c,{test:l})||Qt(c,{left:l})||Z(c,{left:l})))return!1;l=c,c=e[--o]}return!1}function Jy(e){var t={};function r(e,r){var n=t[e];t[e]=n?function(e,t,a){var s=n(e,t,a);return null==s?r(e,t,a):s}:r}for(var n=0,a=Object.keys(e);ns)return!0}},UnionTypeAnnotation:Wy,IntersectionTypeAnnotation:Wy,TSAsExpression:function(){return!0},TSTypeAssertion:function(){return!0},TSUnionType:Vy,TSIntersectionType:Vy,TSInferType:function(e,t){return Vt(t)||Gt(t)},BinaryExpression:function(e,t){return"in"===e.operator&&(Re(t)||nr(t))},SequenceExpression:function(e,t){return!(pe(t)||Ne(t)||Ce(t)||me(t)&&t.test===e||Me(t)&&t.test===e||ue(t)&&t.right===e||Ie(t)&&t.discriminant===e||le(t)&&t.expression===e)},YieldExpression:Gy,AwaitExpression:Gy,ClassExpression:function(e,t,r){return qy(r,{considerDefaultExports:!0})},UnaryLike:Ky,FunctionExpression:function(e,t,r){return qy(r,{considerDefaultExports:!0})},ArrowFunctionExpression:function(e,t){return mr(t)||Hy(e,t)},ConditionalExpression:Hy,OptionalMemberExpression:zy,OptionalCallExpression:zy,AssignmentExpression:function(e,t,r){return!!et(e.left)||Hy(e,t)},LogicalExpression:function(e,t){switch(e.operator){case"||":return!!Ee(t)&&("??"===t.operator||"&&"===t.operator);case"&&":return Ee(t,{operator:"??"});case"??":return Ee(t)&&"??"!==t.operator}}})),Yy=Jy(Ry),$y=Jy({VariableDeclaration:function(e){return e.declarations.map((function(e){return e.init}))},ArrayExpression:function(e){return e.elements},ObjectExpression:function(e){return e.properties}});function Qy(e,t,r,n){var a=e[t.type];return a?a(t,r,n):null}function Zy(e,t,r){if(!e)return 0;le(e)&&(e=e.expression);var n=Qy(Yy,e,t);if(!n){var a=Qy($y,e,t);if(a)for(var s=0;s>18&63]+Eg[a>>12&63]+Eg[a>>6&63]+Eg[63&a]);return s.join("")}function Pg(e){var t;Tg||jg();for(var r=e.length,n=r%3,a="",s=[],i=16383,o=0,l=r-n;ol?l:o+i));return 1===n?(t=e[r-1],a+=Eg[t>>2],a+=Eg[t<<4&63],a+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],a+=Eg[t>>10],a+=Eg[t>>4&63],a+=Eg[t<<2&63],a+="="),s.push(a),s.join("")}function kg(e,t,r,n,a){var s,i,o=8*a-n-1,l=(1<>1,u=-7,p=r?a-1:0,d=r?-1:1,f=e[t+p];for(p+=d,s=f&(1<<-u)-1,f>>=-u,u+=o;u>0;s=256*s+e[t+p],p+=d,u-=8);for(i=s&(1<<-u)-1,s>>=-u,u+=n;u>0;i=256*i+e[t+p],p+=d,u-=8);if(0===s)s=1-c;else{if(s===l)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,n),s-=c}return(f?-1:1)*i*Math.pow(2,s-n)}function Cg(e,t,r,n,a,s){var i,o,l,c=8*s-a-1,u=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:s-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(i++,l/=2),i+p>=u?(o=0,i=u):i+p>=1?(o=(t*l-1)*Math.pow(2,a),i+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,a),i=0));a>=8;e[r+f]=255&o,f+=h,o/=256,a-=8);for(i=i<0;e[r+f]=255&i,f+=h,i/=256,c-=8);e[r+f-h]|=128*m}var Dg={}.toString,_g=Array.isArray||function(e){return"[object Array]"==Dg.call(e)};Bg.TYPED_ARRAY_SUPPORT=void 0===Bs.TYPED_ARRAY_SUPPORT||Bs.TYPED_ARRAY_SUPPORT;var Ig=Og();function Og(){return Bg.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ng(e,t){if(Og()=Og())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Og().toString(16)+" bytes");return 0|e}function Wg(e){return!(null==e||!e._isBuffer)}function Vg(e,t){if(Wg(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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return mv(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return yv(e).length;default:if(n)return mv(e).length;t=(""+t).toLowerCase(),n=!0}}function Gg(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return av(this,t,r);case"utf8":case"utf-8":return ev(this,t,r);case"ascii":return rv(this,t,r);case"latin1":case"binary":return nv(this,t,r);case"base64":return Zg(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sv(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Kg(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Hg(e,t,r,n,a){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=Bg.from(t,n)),Wg(t))return 0===t.length?-1:zg(e,t,r,n,a);if("number"==typeof t)return t&=255,Bg.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):zg(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function zg(e,t,r,n,a){var s,i=1,o=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,o/=2,l/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var u=-1;for(s=r;so&&(r=o-l),s=r;s>=0;s--){for(var p=!0,d=0;da&&(n=a):n=a;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var i=0;i>8,a=r%256,s.push(a),s.push(n);return s}(t,e.length-r),e,r,n)}function Zg(e,t,r){return 0===t&&r===e.length?Pg(e):Pg(e.slice(t,r))}function ev(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a239?4:c>223?3:c>191?2:1;if(a+p<=r)switch(p){case 1:c<128&&(u=c);break;case 2:128==(192&(s=e[a+1]))&&(l=(31&c)<<6|63&s)>127&&(u=l);break;case 3:s=e[a+1],i=e[a+2],128==(192&s)&&128==(192&i)&&(l=(15&c)<<12|(63&s)<<6|63&i)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:s=e[a+1],i=e[a+2],o=e[a+3],128==(192&s)&&128==(192&i)&&128==(192&o)&&(l=(15&c)<<18|(63&s)<<12|(63&i)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,p=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=p}return function(e){var t=e.length;if(t<=tv)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Bg.prototype.compare=function(e,t,r,n,a){if(!Wg(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(a>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0),o=Math.min(s,i),l=this.slice(n,a),c=e.slice(t,r),u=0;ua)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return qg(this,e,t,r);case"utf8":case"utf-8":return Jg(this,e,t,r);case"ascii":return Xg(this,e,t,r);case"latin1":case"binary":return Yg(this,e,t,r);case"base64":return $g(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qg(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},Bg.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tv=4096;function rv(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;an)&&(r=n);for(var a="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function ov(e,t,r,n,a,s){if(!Wg(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function lv(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,s=Math.min(e.length-r,2);a>>8*(n?a:1-a)}function cv(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,s=Math.min(e.length-r,4);a>>8*(n?a:3-a)&255}function uv(e,t,r,n,a,s){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function pv(e,t,r,n,a){return a||uv(e,0,r,4),Cg(e,t,r,n,23,4),r+4}function dv(e,t,r,n,a){return a||uv(e,0,r,8),Cg(e,t,r,n,52,8),r+8}Bg.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(a*=256);)n+=this[e+--t]*a;return n},Bg.prototype.readUInt8=function(e,t){return t||iv(e,1,this.length),this[e]},Bg.prototype.readUInt16LE=function(e,t){return t||iv(e,2,this.length),this[e]|this[e+1]<<8},Bg.prototype.readUInt16BE=function(e,t){return t||iv(e,2,this.length),this[e]<<8|this[e+1]},Bg.prototype.readUInt32LE=function(e,t){return t||iv(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Bg.prototype.readUInt32BE=function(e,t){return t||iv(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Bg.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||iv(e,t,this.length);for(var n=this[e],a=1,s=0;++s=(a*=128)&&(n-=Math.pow(2,8*t)),n},Bg.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||iv(e,t,this.length);for(var n=t,a=1,s=this[e+--n];n>0&&(a*=256);)s+=this[e+--n]*a;return s>=(a*=128)&&(s-=Math.pow(2,8*t)),s},Bg.prototype.readInt8=function(e,t){return t||iv(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Bg.prototype.readInt16LE=function(e,t){t||iv(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Bg.prototype.readInt16BE=function(e,t){t||iv(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Bg.prototype.readInt32LE=function(e,t){return t||iv(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Bg.prototype.readInt32BE=function(e,t){return t||iv(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Bg.prototype.readFloatLE=function(e,t){return t||iv(e,4,this.length),kg(this,e,!0,23,4)},Bg.prototype.readFloatBE=function(e,t){return t||iv(e,4,this.length),kg(this,e,!1,23,4)},Bg.prototype.readDoubleLE=function(e,t){return t||iv(e,8,this.length),kg(this,e,!0,52,8)},Bg.prototype.readDoubleBE=function(e,t){return t||iv(e,8,this.length),kg(this,e,!1,52,8)},Bg.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||ov(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+a]=e/s&255;return t+r},Bg.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||ov(this,e,t,1,255,0),Bg.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Bg.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||ov(this,e,t,2,65535,0),Bg.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lv(this,e,t,!0),t+2},Bg.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||ov(this,e,t,2,65535,0),Bg.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lv(this,e,t,!1),t+2},Bg.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||ov(this,e,t,4,4294967295,0),Bg.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):cv(this,e,t,!0),t+4},Bg.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||ov(this,e,t,4,4294967295,0),Bg.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cv(this,e,t,!1),t+4},Bg.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);ov(this,e,t,r,a-1,-a)}var s=0,i=1,o=0;for(this[t]=255&e;++s>0)-o&255;return t+r},Bg.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);ov(this,e,t,r,a-1,-a)}var s=r-1,i=1,o=0;for(this[t+s]=255&e;--s>=0&&(i*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/i>>0)-o&255;return t+r},Bg.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||ov(this,e,t,1,127,-128),Bg.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Bg.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||ov(this,e,t,2,32767,-32768),Bg.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lv(this,e,t,!0),t+2},Bg.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||ov(this,e,t,2,32767,-32768),Bg.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lv(this,e,t,!1),t+2},Bg.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||ov(this,e,t,4,2147483647,-2147483648),Bg.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):cv(this,e,t,!0),t+4},Bg.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||ov(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Bg.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cv(this,e,t,!1),t+4},Bg.prototype.writeFloatLE=function(e,t,r){return pv(this,e,t,!0,r)},Bg.prototype.writeFloatBE=function(e,t,r){return pv(this,e,t,!1,r)},Bg.prototype.writeDoubleLE=function(e,t,r){return dv(this,e,t,!0,r)},Bg.prototype.writeDoubleBE=function(e,t,r){return dv(this,e,t,!1,r)},Bg.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--a)e[a+t]=this[a+r];else if(s<1e3||!Bg.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&s.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&s.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function yv(e){return function(e){var t,r,n,a,s,i;Tg||jg();var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[o-2]?2:"="===e[o-1]?1:0,i=new Sg(3*o/4-s),n=s>0?o-4:o;var l=0;for(t=0,r=0;t>16&255,i[l++]=a>>8&255,i[l++]=255&a;return 2===s?(a=wg[e.charCodeAt(t)]<<2|wg[e.charCodeAt(t+1)]>>4,i[l++]=255&a):1===s&&(a=wg[e.charCodeAt(t)]<<10|wg[e.charCodeAt(t+1)]<<4|wg[e.charCodeAt(t+2)]>>2,i[l++]=a>>8&255,i[l++]=255&a),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(fv,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function gv(e,t,r,n){for(var a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function vv(e){return null!=e&&(!!e._isBuffer||bv(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&bv(e.slice(0,0))}(e))}function bv(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var xv=Object.freeze({__proto__:null,Buffer:Bg,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),Bg.alloc(+e)},isBuffer:vv,kMaxLength:Ig}),Ev={},wv=Ev.hasOwnProperty,Sv=function(e,t){for(var r in e)wv.call(e,r)&&t(r,e[r])},Tv=Ev.toString,jv=Array.isArray,Av=Bg.isBuffer,Pv={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},kv=/["'\\\b\f\n\r\t]/,Cv=/[0-9]/,Dv=/[ !#-&\(-\[\]-_a-~]/,_v=function e(t,r){var n,a,s=function(){f=d,++r.indentLevel,d=r.indent.repeat(r.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},o=r&&r.json;o&&(i.quotes="double",i.wrap=!0),n=i,"single"!=(r=(a=r)?(Sv(a,(function(e,t){n[e]=t})),n):n).quotes&&"double"!=r.quotes&&"backtick"!=r.quotes&&(r.quotes="single");var l,c="double"==r.quotes?'"':"backtick"==r.quotes?"`":"'",u=r.compact,p=r.lowercaseHex,d=r.indent.repeat(r.indentLevel),f="",h=r.__inline1__,m=r.__inline2__,y=u?"":"\n",g=!0,v="binary"==r.numbers,b="octal"==r.numbers,x="decimal"==r.numbers,E="hexadecimal"==r.numbers;if(o&&t&&"function"==typeof t.toJSON&&(t=t.toJSON()),!function(e){return"string"==typeof e||"[object String]"==Tv.call(e)}(t)){if(function(e){return"[object Map]"==Tv.call(e)}(t))return 0==t.size?"new Map()":(u||(r.__inline1__=!0,r.__inline2__=!1),"new Map("+e(Array.from(t),r)+")");if(function(e){return"[object Set]"==Tv.call(e)}(t))return 0==t.size?"new Set()":"new Set("+e(Array.from(t),r)+")";if(Av(t))return 0==t.length?"Buffer.from([])":"Buffer.from("+e(Array.from(t),r)+")";if(jv(t))return l=[],r.wrap=!0,h&&(r.__inline1__=!1,r.__inline2__=!0),m||s(),function(e,t){for(var r=e.length,n=-1;++n=55296&&P<=56319&&j>T+1){var k=S.charCodeAt(T+1);if(k>=56320&&k<=57343){var C=(1024*(P-55296)+k-56320+65536).toString(16);p||(C=C.toUpperCase()),l+="\\u{"+C+"}",++T;continue}}}if(!r.escapeEverything){if(Dv.test(A)){l+=A;continue}if('"'==A){l+=c==A?'\\"':A;continue}if("`"==A){l+=c==A?"\\`":A;continue}if("'"==A){l+=c==A?"\\'":A;continue}}if("\0"!=A||o||Cv.test(S.charAt(T+1)))if(kv.test(A))l+=Pv[A];else{var D=A.charCodeAt(0);if(r.minimal&&8232!=D&&8233!=D)l+=A;else{var _=D.toString(16);p||(_=_.toUpperCase());var I=_.length>2||o,O="\\"+(I?"u":"x")+("0000"+_).slice(I?-4:-2);l+=O}}else l+="\\0"}return r.wrap&&(l=c+l+c),"`"==c&&(l=l.replace(/\$\{/g,"\\${")),r.isScriptContext?l.replace(/<\/(script|style)/gi,"<\\/$1").replace(/