/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@outright/buble@100.19.7/dist/buble.cjs.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var rewritePattern=_interopDefault(require("regexpu-core")),MagicString=_interopDefault(require("magic-string")),acorn=require("acorn"),acornJsx=_interopDefault(require("acorn-jsx")),acornDynamicImport=_interopDefault(require("acorn-dynamic-import"));function toJSON(e){var t={};return Object.keys(e).forEach((r=>{"parent"!==r&&"program"!==r&&"keys"!==r&&"__wrapped"!==r&&(Array.isArray(e[r])?t[r]=e[r].map(toJSON):e[r]&&e[r].toJSON?t[r]=e[r].toJSON():t[r]=e[r])})),t}class Node{ancestor(e){for(var t=this;e--;)if(!(t=t.parent))return null;return t}contains(e){for(;e;){if(e===this)return!0;e=e.parent}return!1}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findNearest(e){return"string"==typeof e&&(e=new RegExp(`^${e}$`)),e.test(this.type)?this:this.parent.findNearest(e)}unparenthesizedParent(){for(var e=this.parent;e&&"ParenthesizedExpression"===e.type;)e=e.parent;return e}unparenthesize(){for(var e=this;"ParenthesizedExpression"===e.type;)e=e.expression;return e}findScope(e){return this.parent.findScope(e)}getIndentation(){return this.parent.getIndentation()}initialise(e){for(var t=0,r=this.keys;t<r.length;t+=1){var s=this[r[t]];Array.isArray(s)?s.forEach((t=>t&&t.initialise(e))):s&&"object"==typeof s&&s.initialise(e)}}toJSON(){return toJSON(this)}toString(){return this.program.magicString.original.slice(this.start,this.end)}transpile(e,t){for(var r=0,s=this.keys;r<s.length;r+=1){var i=this[s[r]];Array.isArray(i)?i.forEach((r=>r&&r.transpile(e,t))):i&&"object"==typeof i&&i.transpile(e,t)}}}function extractNames(e){var t=[];return extractors[e.type](t,e),t}var extractors={Identifier(e,t){e.push(t)},ObjectPattern(e,t){for(var r=0,s=t.properties;r<s.length;r+=1){var i=s[r];extractors[i.type](e,i)}},Property(e,t){extractors[t.value.type](e,t.value)},ArrayPattern(e,t){for(var r=0,s=t.elements;r<s.length;r+=1){var i=s[r];i&&extractors[i.type](e,i)}},RestElement(e,t){extractors[t.argument.type](e,t.argument)},AssignmentPattern(e,t){extractors[t.left.type](e,t.left)}},reserved=Object.create(null);function Scope(e){e=e||{},this.parent=e.parent,this.isBlockScope=!!e.block,this.createDeclarationCallback=e.declare;for(var t=this;t.isBlockScope;)t=t.parent;this.functionScope=t,this.identifiers=[],this.declarations=Object.create(null),this.references=Object.create(null),this.blockScopedDeclarations=this.isBlockScope?null:Object.create(null),this.aliases=Object.create(null)}function locate(e,t){var r,s=e.split("\n"),i=s.length,n=0;for(r=0;r<i;r+=1){var a=n+s[r].length+1;if(a>t)return{line:r+1,column:t-n,char:r};n=a}throw new Error("Could not determine location of character")}function pad(e,t){var r=String(e);return r+repeat(" ",t-r.length)}function repeat(e,t){for(var r="";t--;)r+=e;return r}function getSnippet(e,t,r){void 0===r&&(r=1);var s=Math.max(t.line-5,0),i=t.line,n=String(i).length,a=e.split("\n").slice(s,i),o=a[a.length-1].slice(0,t.column).replace(/\t/g,"  ").length,p=a.map(((e,t)=>`${pad(t+s+1,n)} : ${e.replace(/\t/g,"  ")}`)).join("\n");return p+="\n"+repeat(" ",n+3+o)+repeat("^",r)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach((e=>reserved[e]=!0)),Scope.prototype={addDeclaration(e,t){for(var r=0,s=extractNames(e);r<s.length;r+=1){var i=s[r],n=i.name,a={name:n,node:i,kind:t,instances:[]};this.declarations[n]=a,this.isBlockScope&&(this.functionScope.blockScopedDeclarations[n]||(this.functionScope.blockScopedDeclarations[n]=[]),this.functionScope.blockScopedDeclarations[n].push(a))}},addReference(e){this.consolidated?this.consolidateReference(e):this.identifiers.push(e)},consolidate(){for(var e=0;e<this.identifiers.length;e+=1){var t=this.identifiers[e];this.consolidateReference(t)}this.consolidated=!0},consolidateReference(e){var t=this.declarations[e.name];t?t.instances.push(e):(this.references[e.name]=!0,this.parent&&this.parent.addReference(e))},contains(e){return this.declarations[e]||!!this.parent&&this.parent.contains(e)},createIdentifier(e){"number"==typeof e&&(e=e.toString());for(var t=e=e.replace(/\s/g,"").replace(/\[([^\]]+)\]/g,"_$1").replace(/[^a-zA-Z0-9_$]/g,"_").replace(/_{2,}/,"_"),r=1;this.declarations[t]||this.references[t]||this.aliases[t]||t in reserved;)t=`${e}$${r++}`;return this.aliases[t]=!0,t},createDeclaration(e){var t=this.createIdentifier(e);return this.createDeclarationCallback(t),t},findDeclaration(e){return this.declarations[e]||this.parent&&this.parent.findDeclaration(e)},resolveName(e){var t=this.findDeclaration(e);return t?t.name:e}};class CompileError extends Error{constructor(e,t){if(super(e),this.name="CompileError",t){var r=t.program.magicString.original,s=locate(r,t.start);this.message=e+` (${s.line}:${s.column})`,this.stack=(new Error).stack.replace(new RegExp(`.+new ${this.name}.+\\n`,"m"),""),this.loc=s,this.snippet=getSnippet(r,s,t.end-t.start)}}toString(){return`${this.name}: ${this.message}\n${this.snippet}`}static missingTransform(e,t,r,s){throw void 0===s&&(s=null),new CompileError(`Transforming ${e} is not ${s?"fully supported":"implemented"}. Use \`transforms: { ${t}: false }\` to skip transformation and disable this error${s?`, or \`transforms: { ${s}: true }\` if you know what you're doing`:""}.`,r)}}function findIndex(e,t){for(var r=0;r<e.length;r+=1)if(t(e[r],r))return r;return-1}var handlers={Identifier:destructureIdentifier,AssignmentPattern:destructureAssignmentPattern,ArrayPattern:destructureArrayPattern,ObjectPattern:destructureObjectPattern};function destructure(e,t,r,s,i,n,a){handlers[s.type](e,t,r,s,i,n,a)}function destructureIdentifier(e,t,r,s,i,n,a){a.push(((t,a,o)=>{e.overwrite(s.start,s.end,(n?a:`${a}var `)+r(s)+` = ${i}${o}`),e.move(s.start,s.end,t)}))}function destructureMemberExpression(e,t,r,s,i,n,a){a.push(((t,r,a)=>{e.prependRight(s.start,n?r:`${r}var `),e.appendLeft(s.end,` = ${i}${a}`),e.move(s.start,s.end,t)}))}function destructureAssignmentPattern(e,t,r,s,i,n,a){var o="Identifier"===s.left.type,p=o?s.left.name:i;n||a.push(((t,r,i)=>{e.prependRight(s.left.end,`${r}if ( ${p} === void 0 ) ${p}`),e.move(s.left.end,s.right.end,t),e.appendLeft(s.right.end,i)})),o||destructure(e,t,r,s.left,i,n,a)}function destructureArrayPattern(e,t,r,s,i,n,a){var o=s.start;s.elements.forEach(((s,p)=>{s&&("RestElement"===s.type?handleProperty(e,t,r,o,s.argument,`${i}.slice(${p})`,n,a):handleProperty(e,t,r,o,s,`${i}[${p}]`,n,a),o=s.end)})),e.remove(o,s.end)}function destructureObjectPattern(e,t,r,s,i,n,a){var o=s.start,p=[];s.properties.forEach((s=>{var h,l;if("Property"===s.type)if(l=s.value,s.computed||"Identifier"!==s.key.type)if(s.computed||"Literal"!==s.key.type){var d=e.slice(s.key.start,s.key.end);h=`${i}[${d}]`,p.push(`String(${d})`)}else h=`${i}[${s.key.raw}]`,p.push(JSON.stringify(String(s.key.value)));else h=`${i}.${s.key.name}`,p.push(`"${s.key.name}"`);else{if("RestElement"!==s.type)throw new CompileError(this,`Unexpected node of type ${s.type} in object pattern`);l=s.argument,h=t("rest"),a.push(((t,r,a)=>{var l=s.program.getObjectWithoutPropertiesHelper(e);e.overwrite(s.start,o=s.argument.start,(n?r:`${r}var `)+`${h} = ${l}( ${i}, [${p.join(", ")}] )${a}`),e.move(s.start,o,t)}))}handleProperty(e,t,r,o,l,h,n,a),o=s.end})),e.remove(o,s.end)}function handleProperty(e,t,r,s,i,n,a,o){switch(i.type){case"Identifier":e.remove(s,i.start),destructureIdentifier(e,t,r,i,n,a,o);break;case"MemberExpression":e.remove(s,i.start),destructureMemberExpression(e,t,r,i,n,!0,o);break;case"AssignmentPattern":var p,h="Identifier"===i.left.type;p=h?r(i.left):t(n),o.push(((t,r,s)=>{a?(e.prependRight(i.right.start,`${p} = ${n}, ${p} = ${p} === void 0 ? `),e.appendLeft(i.right.end,` : ${p}${s}`)):(e.prependRight(i.right.start,`${r}var ${p} = ${n}; if ( ${p} === void 0 ) ${p} = `),e.appendLeft(i.right.end,s)),e.move(i.right.start,i.right.end,t)})),h?e.remove(s,i.right.start):(e.remove(s,i.left.start),e.remove(i.left.end,i.right.start),handleProperty(e,t,r,s,i.left,p,a,o));break;case"ObjectPattern":e.remove(s,s=i.start);var l=n;i.properties.length>1&&(l=t(n),o.push(((t,r,o)=>{e.prependRight(i.start,(a?"":`${r}var `)+`${l} = `),e.overwrite(i.start,s=i.start+1,n),e.appendLeft(s,o),e.overwrite(i.start,s=i.start+1,(a?"":`${r}var `)+`${l} = ${n}${o}`),e.move(i.start,s,t)}))),destructureObjectPattern(e,t,r,i,l,a,o);break;case"ArrayPattern":if(e.remove(s,s=i.start),i.elements.filter(Boolean).length>1){var d=t(n);o.push(((t,r,o)=>{e.prependRight(i.start,(a?"":`${r}var `)+`${d} = `),e.overwrite(i.start,s=i.start+1,n,{contentOnly:!0}),e.appendLeft(s,o),e.move(i.start,s,t)})),i.elements.forEach(((i,n)=>{i&&("RestElement"===i.type?handleProperty(e,t,r,s,i.argument,`${d}.slice(${n})`,a,o):handleProperty(e,t,r,s,i,`${d}[${n}]`,a,o),s=i.end)}))}else{var c=findIndex(i.elements,Boolean),m=i.elements[c];"RestElement"===m.type?handleProperty(e,t,r,s,m.argument,`${n}.slice(${c})`,a,o):handleProperty(e,t,r,s,m,`${n}[${c}]`,a,o),s=m.end}e.remove(s,i.end);break;default:throw new Error(`Unexpected node type in destructuring (${i.type})`)}}function isUseStrict(e){return!!e&&("ExpressionStatement"===e.type&&("Literal"===e.expression.type&&"use strict"===e.expression.value))}class BlockStatement extends Node{createScope(){this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new Scope({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:e=>this.createdDeclarations.push(e)}),this.parentIsFunction&&this.parent.params.forEach((e=>{this.scope.addDeclaration(e,"param")}))}initialise(e){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach((t=>t.initialise(e))),this.scope.consolidate()}findLexicalBoundary(){return"Program"===this.type||/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()}findScope(e){return e&&!this.isFunctionBlock?this.parent.findScope(e):this.scope}getArgumentsAlias(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias}getArgumentsArrayAlias(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias}getThisAlias(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias}getIndentation(){if(void 0===this.indentation){for(var e=this.program.magicString.original,t=this.synthetic||!this.body.length,r=t?this.start:this.body[0].start;r&&"\n"!==e[r];)r-=1;for(this.indentation="";;){var s=e[r+=1];if(" "!==s&&"\t"!==s)break;this.indentation+=s}for(var i=this.program.magicString.getIndentString(),n=this.parent;n;)"constructor"!==n.kind||n.parent.parent.superClass||(this.indentation=this.indentation.replace(i,"")),n=n.parent;t&&(this.indentation+=i)}return this.indentation}transpile(e,t){var r,s=this.getIndentation(),i=[];if(this.argumentsAlias&&i.push(((t,r,s)=>{var i=`${r}var ${this.argumentsAlias} = arguments${s}`;e.appendLeft(t,i)})),this.thisAlias&&i.push(((t,r,s)=>{var i=`${r}var ${this.thisAlias} = this${s}`;e.appendLeft(t,i)})),this.argumentsArrayAlias&&i.push(((t,r,i)=>{var n=this.scope.createIdentifier("i"),a=`${r}var ${n} = arguments.length, ${this.argumentsArrayAlias} = Array(${n});\n${s}while ( ${n}-- ) ${this.argumentsArrayAlias}[${n}] = arguments[${n}]${i}`;e.appendLeft(t,a)})),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,e,t,s,i):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],e,t,s,i),t.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(e),super.transpile(e,t),this.createdDeclarations.length&&i.push(((t,r,s)=>{var i=`${r}var ${this.createdDeclarations.join(", ")}${s}`;e.appendLeft(t,i)})),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var n=this.body[0];i.length?(e.appendLeft(this.start,"{").prependRight(this.end,`${this.parent.getIndentation()}}`),e.prependRight(n.start,`\n${s}return `),e.appendLeft(n.end,";\n")):t.arrow&&(e.prependRight(n.start,"{ return "),e.appendLeft(n.end,"; }"))}else i.length&&e.prependRight(this.start,"{").appendLeft(this.end,"}");r=isUseStrict(this.body[0])?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var a=`\n${s}`,o=";";i.forEach(((e,t)=>{t===i.length-1&&(o=";\n"),e(r,a,o)}))}transpileParameters(e,t,r,s,i){e.forEach((n=>{if("AssignmentPattern"===n.type&&"Identifier"===n.left.type)r.defaultParameter&&i.push(((e,r,s)=>{var i=`${r}if ( ${n.left.name} === void 0 ) ${n.left.name}`;t.prependRight(n.left.end,i).move(n.left.end,n.right.end,e).appendLeft(n.right.end,s)}));else if("RestElement"===n.type)r.spreadRest&&i.push(((r,i,a)=>{var o=e[e.length-2];if(o)t.remove(o?o.end:n.start,n.end);else{for(var p=n.start,h=n.end;/\s/.test(t.original[p-1]);)p-=1;for(;/\s/.test(t.original[h]);)h+=1;t.remove(p,h)}var l=n.argument.name,d=this.scope.createIdentifier("len"),c=e.length-1;c?t.prependRight(r,`${i}var ${l} = [], ${d} = arguments.length - ${c};\n${s}while ( ${d}-- > 0 ) ${l}[ ${d} ] = arguments[ ${d} + ${c} ]${a}`):t.prependRight(r,`${i}var ${l} = [], ${d} = arguments.length;\n${s}while ( ${d}-- ) ${l}[ ${d} ] = arguments[ ${d} ]${a}`)}));else if("Identifier"!==n.type&&r.parameterDestructuring){var a=this.scope.createIdentifier("ref");destructure(t,(e=>this.scope.createIdentifier(e)),(e=>{var t=e.name;return this.scope.resolveName(t)}),n,a,!1,i),t.prependRight(n.start,a)}}))}transpileBlockScopedIdentifiers(e){Object.keys(this.scope.blockScopedDeclarations).forEach((t=>{for(var r=0,s=this.scope.blockScopedDeclarations[t];r<s.length;r+=1){var i=s[r],n=!1;if("for.let"===i.kind){var a=i.node.findNearest("ForStatement");if(a.shouldRewriteAsFunction){var o=this.scope.createIdentifier(t),p=a.reassigned[t]?this.scope.createIdentifier(t):t;i.name=o,e.overwrite(i.node.start,i.node.end,o,{storeName:!0}),a.aliases[t]={outer:o,inner:p};for(var h=0,l=i.instances;h<l.length;h+=1){var d=l[h],c=a.body.contains(d)?p:o;t!==c&&e.overwrite(d.start,d.end,c,{storeName:!0})}n=!0}}if(!n){var m=this.scope.createIdentifier(t);if(t!==m){i.name=m,e.overwrite(i.node.start,i.node.end,m,{storeName:!0});for(var u=0,f=i.instances;u<f.length;u+=1){var g=f[u];g.rewritten=!0,e.overwrite(g.start,g.end,m,{storeName:!0})}}}}}))}}function isArguments(e){return"Identifier"===e.type&&"arguments"===e.name}function inlineSpreads(e,t,r){for(var s=r.length;s--;){var i=r[s];if(i&&"SpreadElement"===i.type){var n=i.argument;if("ArrayExpression"===n.type){var a=n.elements;if(!a.some((e=>null===e))){var o=s===r.length-1;0===a.length?e.remove(o&&0!==s?r[s-1].end:i.start,o?t.end-1:r[s+1].start):(e.remove(i.start,a[0].start),e.remove(a[a.length-1].end,o?t.end-1:i.end)),r.splice.apply(r,[s,1].concat(a)),s+=a.length}}}}}function needsParentheses(e){switch(e.type){case"ArrayExpression":case"CallExpression":case"Identifier":case"ParenthesizedExpression":case"ThisExpression":return!1;default:return!0}}function spread(e,t,r,s,i){for(var n=t.length,a=-1;n--;){var o=t[n];o&&"SpreadElement"===o.type&&(isArguments(o.argument)&&e.overwrite(o.argument.start,o.argument.end,s),a=n)}if(-1===a)return!1;if(i){for(n=0;n<t.length;n+=1){var p=t[n];"SpreadElement"===p.type?e.remove(p.start,p.argument.start):(e.prependRight(p.start,"["),e.prependRight(p.end,"]"))}return!0}var h=t[a],l=t[a-1];if(l)e.overwrite(l.end,h.start," ].concat( ");else{var d;if(r!==h.start)(d=needsParentheses(h.argument))?e.overwrite(r,h.start,"( "):e.remove(r,h.start);else{if("CallExpression"!==h.parent.type)throw new CompileError("Unsupported spread construct, please raise an issue at https://github.com/bublejs/buble/issues",h);d=needsParentheses(h.argument)}e.overwrite(h.end,t[1].start,d?" ).concat( ":".concat( ")}for(n=a;n<t.length;n+=1)(h=t[n])&&("SpreadElement"===h.type?e.remove(h.start,h.argument.start):(e.appendLeft(h.start,"["),e.appendLeft(h.end,"]")));return!0}class ArrayExpression extends Node{initialise(e){if(e.spreadRest&&this.elements.length)for(var t=this.findLexicalBoundary(),r=this.elements.length;r--;){var s=this.elements[r];s&&"SpreadElement"===s.type&&isArguments(s.argument)&&(this.argumentsArrayAlias=t.getArgumentsArrayAlias())}super.initialise(e)}transpile(e,t){if(super.transpile(e,t),t.spreadRest){if(inlineSpreads(e,this,this.elements),this.elements.length){var r=this.elements[this.elements.length-1];r&&/\s*,/.test(e.original.slice(r.end,this.end))&&e.overwrite(r.end,this.end-1," ")}if(1===this.elements.length){var s=this.elements[0];s&&"SpreadElement"===s.type&&(isArguments(s.argument)?e.overwrite(this.start,this.end,`[].concat( ${this.argumentsArrayAlias} )`):(e.overwrite(this.start,s.argument.start,"[].concat( "),e.overwrite(s.end,this.end," )")))}else{spread(e,this.elements,this.start,this.argumentsArrayAlias)&&e.overwrite(this.end-1,this.end,")")}}}}function removeTrailingComma(e,t){for(;")"!==e.original[t];){if(","===e.original[t])return void e.remove(t,t+1);"/"===e.original[t]&&(t="/"===e.original[t+1]?e.original.indexOf("\n",t):e.original.indexOf("*/",t)+1),t+=1}}class ArrowFunctionExpression extends Node{initialise(e){this.async&&e.asyncAwait&&CompileError.missingTransform("async arrow functions","asyncAwait",this),this.body.createScope(),super.initialise(e)}transpile(e,t){for(var r=this.start,s=(this.body||this.params[0]).start-1;"("!==e.original[r]&&r<s;)++r;"("!==e.original[r]&&(r=-1);var i=-1===r;if(t.arrow||this.needsArguments(t)){for(var n=this.body.start;"="!==e.original[n];)n-=1;e.remove(n,this.body.start),super.transpile(e,t),i&&(e.prependRight(this.params[0].start,"("),e.appendLeft(this.params[0].end,")"));var a,o=this.parent&&"ExpressionStatement"===this.parent.type,p=o?"!":"";this.async&&(p+="async "),p+="function",o||(p+=" "),(a=i?this.params[0].start:r)>this.start?e.overwrite(this.start,a,p):e.prependRight(this.start,p)}else super.transpile(e,t);t.trailingFunctionCommas&&this.params.length&&!i&&removeTrailingComma(e,this.params[this.params.length-1].end)}needsArguments(e){return e.spreadRest&&this.params.filter((e=>"RestElement"===e.type)).length>0}}function checkConst(e,t){var r=t.findDeclaration(e.name);if(r&&"const"===r.kind)throw new CompileError(`${e.name} is read-only`,e)}class AssignmentExpression extends Node{initialise(e){if("Identifier"===this.left.type){var t=this.findScope(!1).findDeclaration(this.left.name),r=t&&t.node.ancestor(3);r&&"ForStatement"===r.type&&r.body.contains(this)&&(r.reassigned[this.left.name]=!0)}super.initialise(e)}transpile(e,t){"Identifier"===this.left.type&&checkConst(this.left,this.findScope(!1)),"**="===this.operator&&t.exponentiation?this.transpileExponentiation(e,t):/Pattern/.test(this.left.type)&&t.destructuring&&this.transpileDestructuring(e),super.transpile(e,t)}transpileDestructuring(e){var t=this.findScope(!0),r=this.findScope(!1),s=t.createDeclaration("assign");e.appendRight(this.left.end,`(${s}`),e.appendLeft(this.right.end,", ");var i=[];destructure(e,(e=>t.createDeclaration(e)),(e=>{var t=r.resolveName(e.name);return checkConst(e,r),t}),this.left,s,!0,i);var n=", ";i.forEach(((e,t)=>{t===i.length-1&&(n=""),e(this.end,"",n)})),"ExpressionStatement"===this.unparenthesizedParent().type?e.prependRight(this.end,")"):e.appendRight(this.end,`, ${s})`)}transpileExponentiation(e){for(var t,r=this.findScope(!1),s=this.left.end;"*"!==e.original[s];)s+=1;e.remove(s,s+2);var i=this.left.unparenthesize();if("Identifier"===i.type)t=r.resolveName(i.name);else if("MemberExpression"===i.type){var n,a,o=!1,p=!1,h=this.findNearest(/(?:Statement|Declaration)$/),l=h.getIndentation();"Identifier"===i.property.type?a=i.computed?r.resolveName(i.property.name):i.property.name:(a=r.createDeclaration("property"),p=!0),"Identifier"===i.object.type?n=r.resolveName(i.object.name):(n=r.createDeclaration("object"),o=!0),i.start===h.start?o&&p?(e.prependRight(h.start,`${n} = `),e.overwrite(i.object.end,i.property.start,`;\n${l}${a} = `),e.overwrite(i.property.end,i.end,`;\n${l}${n}[${a}]`)):o?(e.prependRight(h.start,`${n} = `),e.appendLeft(i.object.end,`;\n${l}`),e.appendLeft(i.object.end,n)):p&&(e.prependRight(i.property.start,`${a} = `),e.appendLeft(i.property.end,`;\n${l}`),e.move(i.property.start,i.property.end,this.start),e.appendLeft(i.object.end,`[${a}]`),e.remove(i.object.end,i.property.start),e.remove(i.property.end,i.end)):(o&&p?(e.prependRight(i.start,`( ${n} = `),e.overwrite(i.object.end,i.property.start,`, ${a} = `),e.overwrite(i.property.end,i.end,`, ${n}[${a}]`)):o?(e.prependRight(i.start,`( ${n} = `),e.appendLeft(i.object.end,`, ${n}`)):p&&(e.prependRight(i.property.start,`( ${a} = `),e.appendLeft(i.property.end,", "),e.move(i.property.start,i.property.end,i.start),e.overwrite(i.object.end,i.property.start,`[${a}]`),e.remove(i.property.end,i.end)),p&&e.appendLeft(this.end," )")),t=n+(i.computed||p?`[${a}]`:`.${a}`)}e.prependRight(this.right.start,`Math.pow( ${t}, `),e.appendLeft(this.right.end," )")}}class AwaitExpression extends Node{initialise(e){e.asyncAwait&&CompileError.missingTransform("await","asyncAwait",this),super.initialise(e)}}class BinaryExpression extends Node{transpile(e,t){"**"===this.operator&&t.exponentiation&&(e.prependRight(this.start,"Math.pow( "),e.overwrite(this.left.end,this.right.start,", "),e.appendLeft(this.end," )")),super.transpile(e,t)}}var loopStatement=/(?:For(?:In|Of)?|While)Statement/;class BreakStatement extends Node{initialise(){var e=this.findNearest(loopStatement),t=this.findNearest("SwitchCase");e&&(!t||e.depth>t.depth)&&(e.canBreak=!0,this.loop=e)}transpile(e){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new CompileError("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+5,"return 'break'")}}}class CallExpression extends Node{initialise(e){if(e.spreadRest&&this.arguments.length>1)for(var t=this.findLexicalBoundary(),r=this.arguments.length;r--;){var s=this.arguments[r];"SpreadElement"===s.type&&isArguments(s.argument)&&(this.argumentsArrayAlias=t.getArgumentsArrayAlias())}super.initialise(e)}transpile(e,t){if(t.spreadRest&&this.arguments.length&&inlineSpreads(e,this,this.arguments),t.spreadRest&&this.arguments.length){var r,s=!1,i=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===i.type&&(e.remove(i.start,i.argument.start),s=!0):s=spread(e,this.arguments,i.start,this.argumentsArrayAlias),s){var n=null;if("Super"===this.callee.type?n=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(n=this.callee.object),n||"MemberExpression"!==this.callee.type)r="void 0";else if("Identifier"===this.callee.object.type)r=this.callee.object.name;else{r=this.findScope(!0).createDeclaration("ref");var a=this.callee.object;e.prependRight(a.start,`(${r} = `),e.appendLeft(a.end,")")}e.appendLeft(this.callee.end,".apply"),n?(n.noCall=!0,this.arguments.length>1&&("SpreadElement"===i.type?needsParentheses(i.argument)&&e.prependRight(i.start,"( "):e.prependRight(i.start,"[ "),e.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?e.prependRight(i.start,`${r}, `):("SpreadElement"===i.type?needsParentheses(i.argument)?e.appendLeft(i.start,`${r}, ( `):e.appendLeft(i.start,`${r}, `):e.appendLeft(i.start,`${r}, [ `),e.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}t.trailingFunctionCommas&&this.arguments.length&&removeTrailingComma(e,this.arguments[this.arguments.length-1].end),super.transpile(e,t)}}class ClassBody extends Node{transpile(e,t,r,s){if(t.classes){var i=this.parent.name,n=e.getIndentString(),a=this.getIndentation()+(r?n:""),o=a+n,p=findIndex(this.body,(e=>"constructor"===e.kind)),h=this.body[p],l="",d="";if(this.body.length?(e.remove(this.start,this.body[0].start),e.remove(this.body[this.body.length-1].end,this.end)):e.remove(this.start,this.end),h){h.value.body.isConstructorBody=!0;var c=this.body[p-1],m=this.body[p+1];p>0&&(e.remove(c.end,h.start),e.move(h.start,m?m.start:this.end-1,this.body[0].start)),r||e.appendLeft(h.end,";")}var u=!1!==this.program.options.namedFunctionExpressions,f=u||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var g=`if ( ${s} ) ${i}.__proto__ = ${s};\n${a}${i}.prototype = Object.create( ${s} && ${s}.prototype );\n${a}${i}.prototype.constructor = ${i};`;if(h)l+=`\n\n${a}`+g;else l+=(g=`function ${i} () {`+(s?`\n${o}${s}.apply(this, arguments);\n${a}}`:"}")+(r?"":";")+(this.body.length?`\n\n${a}`:"")+g)+`\n\n${a}`}else if(!h){var y="function "+(f?i+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(y+=";"),this.body.length&&(y+=`\n\n${a}`),l+=y}var v,$,b=this.findScope(!1),S=[],x=[];if(this.body.forEach(((r,s)=>{if("get"!==r.kind&&"set"!==r.kind||!t.getterSetter||CompileError.missingTransform("getters and setters","getterSetter",r),"constructor"!==r.kind){if(r.static){var n=" "==e.original[r.start+6]?7:6;e.remove(r.start,r.start+n)}var o,h="method"!==r.kind,l=r.key.name;(reserved[l]||r.value.body.scope.references[l])&&(l=b.createIdentifier(l));var d=!1;if(r.computed||"Literal"!==r.key.type||(d=!0,r.computed=!0),h){if(r.computed)throw new Error("Computed accessor properties are not currently supported");e.remove(r.start,r.key.start),r.static?(~x.indexOf(r.key.name)||x.push(r.key.name),$||($=b.createIdentifier("staticAccessors")),o=`${$}`):(~S.indexOf(r.key.name)||S.push(r.key.name),v||(v=b.createIdentifier("prototypeAccessors")),o=`${v}`)}else o=r.static?`${i}`:`${i}.prototype`;r.computed||(o+="."),(p>0&&s===p+1||0===s&&p===this.body.length-1)&&(o=`\n\n${a}${o}`);var c=r.key.end;if(r.computed)if(d)e.prependRight(r.key.start,"["),e.appendLeft(r.key.end,"]");else{for(;"]"!==e.original[c];)c+=1;c+=1}var m=r.computed||h||!u?"":`${l} `,g=(h?`.${r.kind}`:"")+` = ${r.value.async?"async ":""}function`+(r.value.generator?"* ":" ")+m;e.remove(c,r.value.start),e.prependRight(r.value.start,g),e.appendLeft(r.end,";"),r.value.generator&&e.remove(r.start,r.key.start);var y=r.key.start;if(r.computed&&!d)for(;"["!=e.original[y];)--y;r.start<y?e.overwrite(r.start,y,o):e.prependRight(r.start,o)}else{var E=f?" "+i:"";e.overwrite(r.key.start,r.key.end,`function${E}`)}})),S.length||x.length){var E=[],w=[];S.length&&(E.push(`var ${v} = { ${S.map((e=>`${e}: { configurable: true }`)).join(",")} };`),w.push(`Object.defineProperties( ${i}.prototype, ${v} );`)),x.length&&(E.push(`var ${$} = { ${x.map((e=>`${e}: { configurable: true }`)).join(",")} };`),w.push(`Object.defineProperties( ${i}, ${$} );`)),h&&(l+=`\n\n${a}`),l+=E.join(`\n${a}`),h||(l+=`\n\n${a}`),d+=`\n\n${a}`+w.join(`\n${a}`)}h?e.appendLeft(h.end,l):e.prependRight(this.start,l),e.appendLeft(this.end,d)}super.transpile(e,t)}}function deindent(e,t){var r=e.start,s=e.end,i=t.getIndentString(),n=i.length,a=r-n;e.program.indentExclusions[a]||t.original.slice(a,r)!==i||t.remove(a,r);for(var o,p=new RegExp(i+"\\S","g"),h=t.original.slice(r,s);o=p.exec(h);){var l=r+o.index;e.program.indentExclusions[l]||t.remove(l,l+n)}}class ClassDeclaration extends Node{initialise(e){this.id?(this.name=this.id.name,this.findScope(!0).addDeclaration(this.id,"class")):this.name=this.findScope(!0).createIdentifier("defaultExport"),super.initialise(e)}transpile(e,t){if(t.classes){this.superClass||deindent(this.body,e);var r=this.superClass&&(this.superClass.name||"superclass"),s=this.getIndentation(),i=s+e.getIndentString(),n="ExportDefaultDeclaration"===this.parent.type;n&&e.remove(this.parent.start,this.start);var a=this.start;this.id?(e.overwrite(a,this.id.start,"var "),a=this.id.end):e.prependLeft(a,`var ${this.name}`),this.superClass?this.superClass.end===this.body.start?(e.remove(a,this.superClass.start),e.appendLeft(a,` = /*@__PURE__*/(function (${r}) {\n${i}`)):(e.overwrite(a,this.superClass.start," = "),e.overwrite(this.superClass.end,this.body.start,`/*@__PURE__*/(function (${r}) {\n${i}`)):a===this.body.start?e.appendLeft(a," = "):e.overwrite(a,this.body.start," = "),this.body.transpile(e,t,!!this.superClass,r);var o=n?`\n\n${s}export default ${this.name};`:"";this.superClass?(e.appendLeft(this.end,`\n\n${i}return ${this.name};\n${s}}(`),e.move(this.superClass.start,this.superClass.end,this.end),e.prependRight(this.end,`));${o}`)):o&&e.prependRight(this.end,o)}else this.body.transpile(e,t,!1,null)}}class ClassExpression extends Node{initialise(e){this.name=(this.id?this.id.name:"VariableDeclarator"===this.parent.type?this.parent.id.name:"AssignmentExpression"!==this.parent.type?null:"Identifier"===this.parent.left.type?this.parent.left.name:"MemberExpression"===this.parent.left.type?this.parent.left.property.name:null)||this.findScope(!0).createIdentifier("anonymous"),super.initialise(e)}transpile(e,t){if(t.classes){var r=this.superClass&&(this.superClass.name||"superclass"),s=this.getIndentation(),i=s+e.getIndentString();this.superClass?(e.remove(this.start,this.superClass.start),e.remove(this.superClass.end,this.body.start),e.appendRight(this.start,`/*@__PURE__*/(function (${r}) {\n${i}`)):e.overwrite(this.start,this.body.start,`/*@__PURE__*/(function () {\n${i}`),this.body.transpile(e,t,!0,r);var n="";this.superClass&&(n=e.slice(this.superClass.start,this.superClass.end),e.remove(this.superClass.start,this.superClass.end)),e.appendLeft(this.end,`\n\n${i}return ${this.name};\n${s}}(${n}))`)}else this.body.transpile(e,t,!1)}}class ContinueStatement extends Node{transpile(e){if(this.findNearest(loopStatement).shouldRewriteAsFunction){if(this.label)throw new CompileError("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+8,"return")}}}class ExportDefaultDeclaration extends Node{initialise(e){e.moduleExport&&CompileError.missingTransform("export","moduleExport",this),super.initialise(e)}}class ExportNamedDeclaration extends Node{initialise(e){e.moduleExport&&CompileError.missingTransform("export","moduleExport",this),super.initialise(e)}}class LoopStatement extends Node{findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope}initialise(e){if(this.body.createScope(),this.createdScope=!0,this.reassigned=Object.create(null),this.aliases=Object.create(null),this.thisRefs=[],super.initialise(e),e.letConst)for(var t=Object.keys(this.body.scope.declarations),r=t.length;r--;){for(var s=t[r],i=this.body.scope.declarations[s],n=i.instances.length;n--;){var a=i.instances[n].findNearest(/Function/);if(a&&a.depth>this.depth){this.shouldRewriteAsFunction=!0;for(var o=0,p=this.thisRefs;o<p.length;o+=1){var h=p[o];h.alias=h.alias||h.findLexicalBoundary().getThisAlias()}break}}if(this.shouldRewriteAsFunction)break}}transpile(e,t){var r="ForOfStatement"!=this.type&&("BlockStatement"!==this.body.type||"BlockStatement"===this.body.type&&this.body.synthetic);if(this.shouldRewriteAsFunction){var s=this.getIndentation(),i=s+e.getIndentString(),n=this.args?` ${this.args.join(", ")} `:"",a=this.params?` ${this.params.join(", ")} `:"",o=this.findScope(!0),p=o.createIdentifier("loop"),h=`var ${p} = function (${a}) `+(this.body.synthetic?`{\n${s}${e.getIndentString()}`:""),l=(this.body.synthetic?`\n${s}}`:"")+`;\n\n${s}`;if(e.prependRight(this.body.start,h),e.appendLeft(this.body.end,l),e.move(this.start,this.body.start,this.body.end),this.canBreak||this.canReturn){var d=o.createIdentifier("returned"),c=`{\n${i}var ${d} = ${p}(${n});\n`;this.canBreak&&(c+=`\n${i}if ( ${d} === 'break' ) break;`),this.canReturn&&(c+=`\n${i}if ( ${d} ) return ${d}.v;`),c+=`\n${s}}`,e.prependRight(this.body.end,c)}else{var m=`${p}(${n});`;"DoWhileStatement"===this.type?e.overwrite(this.start,this.body.start,`do {\n${i}${m}\n${s}}`):e.prependRight(this.body.end,m)}}else r&&(e.appendLeft(this.body.start,"{ "),e.prependRight(this.body.end," }"));super.transpile(e,t)}}class ForStatement extends LoopStatement{findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope}transpile(e,t){var r=this.getIndentation()+e.getIndentString();if(this.shouldRewriteAsFunction){var s="VariableDeclaration"===this.init.type?this.init.declarations.map((e=>extractNames(e.id))):[],i=this.aliases;this.args=s.map((e=>e in this.aliases?this.aliases[e].outer:e)),this.params=s.map((e=>e in this.aliases?this.aliases[e].inner:e));var n=Object.keys(this.reassigned).map((e=>`${i[e].outer} = ${i[e].inner};`));if(n.length)if(this.body.synthetic)e.appendLeft(this.body.body[0].end,`; ${n.join(" ")}`);else{var a=this.body.body[this.body.body.length-1];e.appendLeft(a.end,`\n\n${r}${n.join(`\n${r}`)}`)}}super.transpile(e,t)}}class ForInStatement extends LoopStatement{findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope}transpile(e,t){var r="VariableDeclaration"===this.left.type;if(this.shouldRewriteAsFunction){var s=r?this.left.declarations.map((e=>extractNames(e.id))):[];this.args=s.map((e=>e in this.aliases?this.aliases[e].outer:e)),this.params=s.map((e=>e in this.aliases?this.aliases[e].inner:e))}super.transpile(e,t);var i=r?this.left.declarations[0].id:this.left;"Identifier"!==i.type&&this.destructurePattern(e,i,r)}destructurePattern(e,t,r){var s=this.findScope(!0),i=this.getIndentation()+e.getIndentString(),n=s.createIdentifier("ref"),a=this.body.body.length?this.body.body[0].start:this.body.start+1;e.move(t.start,t.end,a),e.prependRight(t.end,r?n:`var ${n}`);var o=[];destructure(e,(e=>s.createIdentifier(e)),(e=>{var t=e.name;return s.resolveName(t)}),t,n,!1,o);var p=`;\n${i}`;o.forEach(((e,t)=>{t===o.length-1&&(p=`;\n\n${i}`),e(a,"",p)}))}}class ForOfStatement extends LoopStatement{initialise(e){e.forOf&&!e.dangerousForOf&&CompileError.missingTransform("for-of statements","forOf",this,"dangerousForOf"),this.await&&e.asyncAwait&&CompileError.missingTransform("for-await-of statements","asyncAwait",this),super.initialise(e)}transpile(e,t){if(super.transpile(e,t),t.dangerousForOf)if(this.body.body[0]){var r=this.findScope(!0),s=this.getIndentation(),i=s+e.getIndentString(),n=r.createIdentifier("i"),a=r.createIdentifier("list");this.body.synthetic&&(e.prependRight(this.left.start,`{\n${i}`),e.appendLeft(this.body.body[0].end,`\n${s}}`));var o=this.body.body[0].start;e.remove(this.left.end,this.right.start),e.move(this.left.start,this.left.end,o),e.prependRight(this.right.start,`var ${n} = 0, ${a} = `),e.appendLeft(this.right.end,`; ${n} < ${a}.length; ${n} += 1`);var p="VariableDeclaration"===this.left.type,h=p?this.left.declarations[0].id:this.left;if("Identifier"!==h.type){var l=[],d=r.createIdentifier("ref");destructure(e,(e=>r.createIdentifier(e)),(e=>{var t=e.name;return r.resolveName(t)}),h,d,!p,l);var c=`;\n${i}`;l.forEach(((e,t)=>{t===l.length-1&&(c=`;\n\n${i}`),e(o,"",c)})),p?(e.appendLeft(this.left.start+this.left.kind.length+1,d),e.appendLeft(this.left.end,` = ${a}[${n}];\n${i}`)):e.appendLeft(this.left.end,`var ${d} = ${a}[${n}];\n${i}`)}else e.appendLeft(this.left.end,` = ${a}[${n}];\n\n${i}`)}else"VariableDeclaration"===this.left.type&&"var"===this.left.kind?(e.remove(this.start,this.left.start),e.appendLeft(this.left.end,";"),e.remove(this.left.end,this.end)):e.remove(this.start,this.end)}}class FunctionDeclaration extends Node{initialise(e){this.generator&&e.generator&&CompileError.missingTransform("generators","generator",this),this.async&&e.asyncAwait&&CompileError.missingTransform("async functions","asyncAwait",this),this.body.createScope(),this.id&&this.findScope(!0).addDeclaration(this.id,"function"),super.initialise(e)}transpile(e,t){super.transpile(e,t),t.trailingFunctionCommas&&this.params.length&&removeTrailingComma(e,this.params[this.params.length-1].end)}}class FunctionExpression extends Node{initialise(e){this.generator&&e.generator&&CompileError.missingTransform("generators","generator",this),this.async&&e.asyncAwait&&CompileError.missingTransform("async functions","asyncAwait",this),this.body.createScope(),this.id&&this.body.scope.addDeclaration(this.id,"function"),super.initialise(e);var t,r=this.parent;if(e.conciseMethodProperty&&"Property"===r.type&&"init"===r.kind&&r.method&&"Identifier"===r.key.type||e.classes&&"MethodDefinition"===r.type&&"method"===r.kind&&"Identifier"===r.key.type?t=r.key.name:this.id&&"Identifier"===this.id.type&&(t=this.id.alias||this.id.name),t)for(var s=0,i=this.params;s<i.length;s+=1){var n=i[s];if("Identifier"===n.type&&t===n.name){var a=this.body.scope,o=a.declarations[t],p=a.createIdentifier(t);n.alias=p;for(var h=0,l=o.instances;h<l.length;h+=1){l[h].alias=p}break}}}transpile(e,t){super.transpile(e,t),t.trailingFunctionCommas&&this.params.length&&removeTrailingComma(e,this.params[this.params.length-1].end)}}function isReference(e,t){return"MemberExpression"===e.type?!e.computed&&isReference(e.object,e):"Identifier"===e.type?!t||!/(Function|Class)Expression/.test(t.type)&&("VariableDeclarator"===t.type?e===t.init:"MemberExpression"===t.type||"MethodDefinition"===t.type?t.computed||e===t.object:"ArrayPattern"!==t.type&&("Property"===t.type?"ObjectPattern"!==t.parent.type&&(t.computed||e===t.value):"MethodDefinition"!==t.type&&("ExportSpecifier"!==t.type||e===t.local))):void 0}class Identifier extends Node{findScope(e){return this.parent.params&&~this.parent.params.indexOf(this)||"FunctionExpression"===this.parent.type&&this===this.parent.id?this.parent.body.scope:this.parent.findScope(e)}initialise(e){if(isReference(this,this.parent)){if(e.arrow&&"arguments"===this.name&&!this.findScope(!1).contains(this.name)){var t=this.findLexicalBoundary(),r=this.findNearest("ArrowFunctionExpression"),s=this.findNearest(loopStatement);r&&r.depth>t.depth&&(this.alias=t.getArgumentsAlias()),s&&s.body.contains(this)&&s.depth>t.depth&&(this.alias=t.getArgumentsAlias())}this.findScope(!1).addReference(this)}}transpile(e){this.alias&&e.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})}}class IfStatement extends Node{initialise(e){super.initialise(e)}transpile(e,t){("BlockStatement"!==this.consequent.type||"BlockStatement"===this.consequent.type&&this.consequent.synthetic)&&(e.appendLeft(this.consequent.start,"{ "),e.prependRight(this.consequent.end," }")),this.alternate&&"IfStatement"!==this.alternate.type&&("BlockStatement"!==this.alternate.type||"BlockStatement"===this.alternate.type&&this.alternate.synthetic)&&(e.appendLeft(this.alternate.start,"{ "),e.prependRight(this.alternate.end," }")),super.transpile(e,t)}}class Import extends Node{initialise(e){e.moduleImport&&CompileError.missingTransform("dynamic import expressions","moduleImport",this),super.initialise(e)}}class ImportDeclaration extends Node{initialise(e){e.moduleImport&&CompileError.missingTransform("import","moduleImport",this),super.initialise(e)}}class ImportDefaultSpecifier extends Node{initialise(e){this.findScope(!0).addDeclaration(this.local,"import"),super.initialise(e)}}class ImportSpecifier extends Node{initialise(e){this.findScope(!0).addDeclaration(this.local,"import"),super.initialise(e)}}var hasDashes=e=>/-/.test(e),formatKey=e=>hasDashes(e)?`'${e}'`:e,formatVal=e=>e?"":"true";class JSXAttribute extends Node{transpile(e,t){var r=this.name,s=r.start,i=r.name,n=this.value?this.value.start:this.name.end;e.overwrite(s,n,`${formatKey(i)}: ${formatVal(this.value)}`),super.transpile(e,t)}}function containsNewLine(e){return"JSXText"===e.type&&!/\S/.test(e.value)&&/\n/.test(e.value)}class JSXClosingElement extends Node{transpile(e){var t=!0,r=this.parent.children[this.parent.children.length-1];(r&&containsNewLine(r)||this.parent.openingElement.attributes.length)&&(t=!1),e.overwrite(this.start,this.end,t?" )":")")}}function containsNewLine$1(e){return"JSXText"===e.type&&!/\S/.test(e.value)&&/\n/.test(e.value)}class JSXClosingFragment extends Node{transpile(e){var t=!0,r=this.parent.children[this.parent.children.length-1];r&&containsNewLine$1(r)&&(t=!1),e.overwrite(this.start,this.end,t?" )":")")}}function normalise(e,t){return e=e.replace(/\u00a0/g,"&nbsp;"),t&&/\n/.test(e)&&(e=e.replace(/\s+$/,"")),e=e.replace(/^\n\r?\s+/,"").replace(/\s*\n\r?\s*/gm," "),JSON.stringify(e)}class JSXElement extends Node{transpile(e,t){super.transpile(e,t);var r=this.children.filter((e=>"JSXText"!==e.type||(/\S/.test(e.raw)||!/\n/.test(e.raw))));if(r.length){var s,i=(this.openingElement||this.openingFragment).end;for(s=0;s<r.length;s+=1){var n=r[s];if("JSXExpressionContainer"===n.type&&"JSXEmptyExpression"===n.expression.type);else{var a="\n"===e.original[i]&&"JSXText"!==n.type?"":" ";e.appendLeft(i,`,${a}`)}if("JSXText"===n.type){var o=normalise(n.value,s===r.length-1);e.overwrite(n.start,n.end,o)}i=n.end}}}}class JSXExpressionContainer extends Node{transpile(e,t){e.remove(this.start,this.expression.start),e.remove(this.expression.end,this.end),super.transpile(e,t)}}class JSXFragment extends JSXElement{}class JSXOpeningElement extends Node{transpile(e,t){super.transpile(e,t),e.overwrite(this.start,this.name.start,`${this.program.jsx}( `);var r="JSXIdentifier"===this.name.type&&this.name.name[0]===this.name.name[0].toLowerCase();r&&e.prependRight(this.name.start,"'");var s=this.attributes.length,i=this.name.end;if(s){var n,a,o,p=!1;for(n=0;n<s;n+=1)if("JSXSpreadAttribute"===this.attributes[n].type){p=!0;break}for(i=this.attributes[0].end,n=0;n<s;n+=1){var h=this.attributes[n];if(n>0&&(h.start===i?e.prependRight(i,", "):e.overwrite(i,h.start,", ")),p&&"JSXSpreadAttribute"!==h.type){var l=this.attributes[n-1],d=this.attributes[n+1];l&&"JSXSpreadAttribute"!==l.type||e.prependRight(h.start,"{ "),d&&"JSXSpreadAttribute"!==d.type||e.appendLeft(h.end," }")}i=h.end}if(p)if(1===s)o=r?"',":",";else{if(!this.program.options.objectAssign)throw new CompileError("Mixed JSX attributes ending in spread requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);o=r?`', ${this.program.options.objectAssign}({},`:`, ${this.program.options.objectAssign}({},`,a=")"}else o=r?"', {":", {",a=" }";e.prependRight(this.name.end,o),a&&e.appendLeft(this.attributes[s-1].end,a)}else e.appendLeft(this.name.end,r?"', null":", null"),i=this.name.end;this.selfClosing?e.overwrite(i,this.end,this.attributes.length?")":" )"):e.remove(i,this.end)}}class JSXOpeningFragment extends Node{transpile(e){e.overwrite(this.start,this.end,`${this.program.jsx}( ${this.program.jsxFragment}, null`)}}class JSXSpreadAttribute extends Node{transpile(e,t){e.remove(this.start,this.argument.start),e.remove(this.argument.end,this.end),super.transpile(e,t)}}var nonAsciiLsOrPs=/[\u2028-\u2029]/g;class Literal extends Node{initialise(){"string"==typeof this.value&&this.program.indentExclusionElements.push(this)}transpile(e,t){if(t.numericLiteral&&this.raw.match(/^0[bo]/i)&&e.overwrite(this.start,this.end,String(this.value),{storeName:!0,contentOnly:!0}),this.regex){var r=this.regex,s=r.pattern,i=r.flags;t.stickyRegExp&&/y/.test(i)&&CompileError.missingTransform("the regular expression sticky flag","stickyRegExp",this),t.unicodeRegExp&&/u/.test(i)&&e.overwrite(this.start,this.end,`/${rewritePattern(s,i)}/${i.replace("u","")}`,{contentOnly:!0})}else"string"==typeof this.value&&this.value.match(nonAsciiLsOrPs)&&e.overwrite(this.start,this.end,this.raw.replace(nonAsciiLsOrPs,(e=>"\u2028"==e?"\\u2028":"\\u2029")),{contentOnly:!0})}}class MemberExpression extends Node{transpile(e,t){t.reservedProperties&&reserved[this.property.name]&&(e.overwrite(this.object.end,this.property.start,"['"),e.appendLeft(this.property.end,"']")),super.transpile(e,t)}}class NewExpression extends Node{initialise(e){if(e.spreadRest&&this.arguments.length)for(var t=this.findLexicalBoundary(),r=this.arguments.length;r--;){var s=this.arguments[r];if("SpreadElement"===s.type&&isArguments(s.argument)){this.argumentsArrayAlias=t.getArgumentsArrayAlias();break}}super.initialise(e)}transpile(e,t){if(super.transpile(e,t),t.spreadRest&&this.arguments.length&&inlineSpreads(e,this,this.arguments),t.spreadRest&&this.arguments.length){var r=this.arguments[0];spread(e,this.arguments,r.start,this.argumentsArrayAlias,!0)&&(e.prependRight(this.start+3," (Function.prototype.bind.apply("),e.overwrite(this.callee.end,r.start,", [ null ].concat( "),e.appendLeft(this.end," ))"))}this.arguments.length&&removeTrailingComma(e,this.arguments[this.arguments.length-1].end)}}class ObjectExpression extends Node{transpile(e,t){var r;super.transpile(e,t);for(var s=this.start+1,i=0,n=0,a=null,o=null,p=0;p<this.properties.length;++p){var h=this.properties[p];if("SpreadElement"===h.type){var l=h.argument;"ObjectExpression"===l.type||"Literal"===l.type&&"string"!=typeof l.value?"ObjectExpression"===l.type&&l.properties.length>0?(e.remove(h.start,l.properties[0].start),e.remove(l.properties[l.properties.length-1].end,h.end),(r=this.properties).splice.apply(r,[p,1].concat(l.properties)),p--):(e.remove(h.start,p===this.properties.length-1?h.end:this.properties[p+1].start),this.properties.splice(p,1),p--):(i+=1,null===a&&(a=p))}else h.computed&&t.computedProperty&&(n+=1,null===o&&(o=p))}if(!i||t.objectRestSpread||n&&t.computedProperty){if(i){if(!this.program.options.objectAssign)throw new CompileError("Object spread operator requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);for(var d=this.properties.length;d--;){var c=this.properties[d];if("Property"===c.type&&!n){var m=this.properties[d-1],u=this.properties[d+1];m&&"Property"===m.type||e.prependRight(c.start,"{"),u&&"Property"===u.type||e.appendLeft(c.end,"}")}"SpreadElement"===c.type&&(e.remove(c.start,c.argument.start),e.remove(c.argument.end,c.end))}s=this.properties[0].start,n?"SpreadElement"===this.properties[0].type?(e.overwrite(this.start,s,`${this.program.options.objectAssign}({}, `),e.remove(this.end-1,this.end),e.appendRight(this.end,")")):(e.prependLeft(this.start,`${this.program.options.objectAssign}(`),e.appendRight(this.end,")")):(e.overwrite(this.start,s,`${this.program.options.objectAssign}({}, `),e.overwrite(this.properties[this.properties.length-1].end,this.end,")"))}}else i=0,a=null;if(n&&t.computedProperty){var f,g,y=this.getIndentation();"VariableDeclarator"===this.parent.type&&1===this.parent.parent.declarations.length&&"Identifier"===this.parent.id.type?(f=!0,g=this.parent.id.alias||this.parent.id.name):("AssignmentExpression"===this.parent.type&&"ExpressionStatement"===this.parent.parent.type&&"Identifier"===this.parent.left.type||"AssignmentPattern"===this.parent.type&&"Identifier"===this.parent.left.type)&&(f=!0,g=this.parent.left.alias||this.parent.left.name),i&&(f=!1),g=this.findScope(!1).resolveName(g);var v=s,$=this.end;f||(null===a||o<a?(g=this.findScope(!0).createDeclaration("obj"),e.prependRight(this.start,`( ${g} = `)):g=null);for(var b,S=this.properties.length,x=!1,E=!0,w=0;w<S;w+=1){var k=this.properties[w],A=w>0?this.properties[w-1].end:v;if("Property"===k.type&&(k.computed||b&&!i)){if(0===w&&(A=this.start+1),b=k,g){var I=(f?`;\n${y}${g}`:`, ${g}`)+("Literal"===k.key.type||k.computed?"":".");A<k.start?e.overwrite(A,k.start,I):e.prependRight(k.start,I)}else{var L=(g=this.findScope(!0).createDeclaration("obj"))+(k.computed?"":".");e.appendRight(k.start,`( ${g} = {}, ${L}`)}var C=k.key.end;if(k.computed){for(;"]"!==e.original[C];)C+=1;C+=1}"Literal"!==k.key.type||k.computed?k.shorthand||k.method&&!k.computed&&t.conciseMethodProperty?e.overwrite(k.key.start,k.key.end,e.slice(k.key.start,k.key.end).replace(/:/," =")):(k.value.start>C&&e.remove(C,k.value.start),e.prependLeft(C," = ")):e.overwrite(k.start,k.value.start,"["+e.slice(k.start,k.key.end)+"] = "),!k.method||!k.computed&&t.conciseMethodProperty||(k.value.generator&&e.remove(k.start,k.key.start),e.prependRight(k.value.start,`function${k.value.generator?"*":""} `))}else"SpreadElement"===k.type?g&&w>0&&(b||(b=this.properties[w-1]),e.appendLeft(b.end,`, ${g} )`),b=null,g=null):(!E&&i&&(e.prependRight(k.start,"{"),e.appendLeft(k.end,"}")),x=!0);if(E&&("SpreadElement"===k.type||k.computed)){var R=x?this.properties[this.properties.length-1].end:this.end-1;","==e.original[R]&&++R;var j=e.slice(R,$);e.prependLeft(A,j),e.remove(R,$),E=!1}var N=k.end;if(w<S-1&&!x)for(;","!==e.original[N];)N+=1;else w==S-1&&(N=this.end);k.end!=N&&e.overwrite(k.end,N,"",{contentOnly:!0})}!f&&g&&e.appendLeft(b.end,`, ${g} )`)}}}class Property extends Node{initialise(e){"get"!==this.kind&&"set"!==this.kind||!e.getterSetter||CompileError.missingTransform("getters and setters","getterSetter",this),super.initialise(e)}transpile(e,t){if(super.transpile(e,t),t.conciseMethodProperty&&!this.computed&&"ObjectPattern"!==this.parent.type)if(this.shorthand)e.prependRight(this.start,`${this.key.name}: `);else if(this.method){var r="";!1!==this.program.options.namedFunctionExpressions&&(r=" "+(r="Literal"===this.key.type&&"number"==typeof this.key.value?"":"Identifier"===this.key.type?reserved[this.key.name]||!/^[a-z_$][a-z0-9_$]*$/i.test(this.key.name)||this.value.body.scope.references[this.key.name]?this.findScope(!0).createIdentifier(this.key.name):this.key.name:this.findScope(!0).createIdentifier(this.key.value))),this.start<this.key.start&&e.remove(this.start,this.key.start),e.appendLeft(this.key.end,`: ${this.value.async?"async ":""}function${this.value.generator?"*":""}${r}`)}t.reservedProperties&&reserved[this.key.name]&&(e.prependRight(this.key.start,"'"),e.appendLeft(this.key.end,"'"))}}class ReturnStatement extends Node{initialise(e){this.loop=this.findNearest(loopStatement),this.nearestFunction=this.findNearest(/Function/),this.loop&&(!this.nearestFunction||this.loop.depth>this.nearestFunction.depth)&&(this.loop.canReturn=!0,this.shouldWrap=!0),this.argument&&this.argument.initialise(e)}transpile(e,t){var r=this.shouldWrap&&this.loop&&this.loop.shouldRewriteAsFunction;this.argument?(r&&e.prependRight(this.argument.start,"{ v: "),this.argument.transpile(e,t),r&&e.appendLeft(this.argument.end," }")):r&&e.appendLeft(this.start+6," {}")}}class Super extends Node{initialise(e){if(e.classes){if(this.method=this.findNearest("MethodDefinition"),!this.method)throw new CompileError("use of super outside class method",this);var t=this.findNearest("ClassBody").parent;if(this.superClassName=t.superClass&&(t.superClass.name||"superclass"),!this.superClassName)throw new CompileError("super used in base class",this);if(this.isCalled="CallExpression"===this.parent.type&&this===this.parent.callee,"constructor"!==this.method.kind&&this.isCalled)throw new CompileError("super() not allowed outside class constructor",this);if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new CompileError("Unexpected use of `super` (expected `super(...)` or `super.*`)",this)}if(e.arrow){var r=this.findLexicalBoundary(),s=this.findNearest("ArrowFunctionExpression"),i=this.findNearest(loopStatement);s&&s.depth>r.depth&&(this.thisAlias=r.getThisAlias()),i&&i.body.contains(this)&&i.depth>r.depth&&(this.thisAlias=r.getThisAlias())}}transpile(e,t){if(t.classes){var r=this.isCalled||this.method.static?this.superClassName:`${this.superClassName}.prototype`;e.overwrite(this.start,this.end,r,{storeName:!0,contentOnly:!0});var s=this.isCalled?this.parent:this.parent.parent;if(s&&"CallExpression"===s.type){this.noCall||e.appendLeft(s.callee.end,".call");var i=this.thisAlias||"this";s.arguments.length?e.appendLeft(s.arguments[0].start,`${i}, `):e.appendLeft(s.end-1,`${i}`)}}}}class TaggedTemplateExpression extends Node{initialise(e){e.templateString&&!e.dangerousTaggedTemplateString&&CompileError.missingTransform("tagged template strings","templateString",this,"dangerousTaggedTemplateString"),super.initialise(e)}transpile(e,t){if(t.templateString&&t.dangerousTaggedTemplateString){var r=this.quasi.expressions.concat(this.quasi.quasis).sort(((e,t)=>e.start-t.start)),s=this.program.body.scope,i=this.quasi.quasis.map((e=>JSON.stringify(e.value.cooked))).join(", "),n=this.program.templateLiteralQuasis[i];n||(n=s.createIdentifier("templateObject"),e.prependLeft(this.program.prependAt,`var ${n} = Object.freeze([${i}]);\n`),this.program.templateLiteralQuasis[i]=n),e.overwrite(this.tag.end,r[0].start,`(${n}`);var a=r[0].start;r.forEach((t=>{"TemplateElement"===t.type?e.remove(a,t.end):e.overwrite(a,t.start,", "),a=t.end})),e.overwrite(a,this.end,")")}super.transpile(e,t)}}class TemplateElement extends Node{initialise(){this.program.indentExclusionElements.push(this)}}class TemplateLiteral extends Node{transpile(e,t){if(super.transpile(e,t),t.templateString&&"TaggedTemplateExpression"!==this.parent.type){var r=this.expressions.concat(this.quasis).sort(((e,t)=>e.start-t.start||e.end-t.end)).filter(((e,t)=>"TemplateElement"!==e.type||(!!e.value.raw||!t)));if(r.length>=3){var s=r[0],i=r[2];"TemplateElement"===s.type&&""===s.value.raw&&"TemplateElement"===i.type&&r.shift()}var n=!(1===this.quasis.length&&0===this.expressions.length||"TemplateLiteral"===this.parent.type||"AssignmentExpression"===this.parent.type||"AssignmentPattern"===this.parent.type||"VariableDeclarator"===this.parent.type||"BinaryExpression"===this.parent.type&&"+"===this.parent.operator);n&&e.appendRight(this.start,"(");var a=this.start;r.forEach(((t,r)=>{var s=0===r?n?"(":"":" + ";if("TemplateElement"===t.type)e.overwrite(a,t.end,s+JSON.stringify(t.value.cooked));else{var i="Identifier"!==t.type;i&&(s+="("),e.remove(a,t.start),s&&e.prependRight(t.start,s),i&&e.appendLeft(t.end,")")}a=t.end})),n&&e.appendLeft(a,")"),e.overwrite(a,this.end,"",{contentOnly:!0})}}}class ThisExpression extends Node{initialise(e){var t=this.findLexicalBoundary();if(e.letConst)for(var r=this.findNearest(loopStatement);r&&r.depth>t.depth;)r.thisRefs.push(this),r=r.parent.findNearest(loopStatement);if(e.arrow){var s=this.findNearest("ArrowFunctionExpression");s&&s.depth>t.depth&&(this.alias=t.getThisAlias())}}transpile(e){this.alias&&e.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})}}class UpdateExpression extends Node{initialise(e){if("Identifier"===this.argument.type){var t=this.findScope(!1).findDeclaration(this.argument.name),r=t&&t.node.ancestor(3);r&&"ForStatement"===r.type&&r.body.contains(this)&&(r.reassigned[this.argument.name]=!0)}super.initialise(e)}transpile(e,t){"Identifier"===this.argument.type&&checkConst(this.argument,this.findScope(!1)),super.transpile(e,t)}}class VariableDeclaration extends Node{initialise(e){this.scope=this.findScope("var"===this.kind),this.declarations.forEach((t=>t.initialise(e)))}transpile(e,t){var r=this.getIndentation(),s=this.kind;if(t.letConst&&"var"!==s&&(s="var",e.overwrite(this.start,this.start+this.kind.length,s,{contentOnly:!0,storeName:!0})),t.destructuring&&"ForOfStatement"!==this.parent.type&&"ForInStatement"!==this.parent.type){var i,n=this.start;this.declarations.forEach(((s,a)=>{if(s.transpile(e,t),"Identifier"===s.id.type)a>0&&"Identifier"!==this.declarations[a-1].id.type&&e.overwrite(n,s.id.start,"var ");else{var o=loopStatement.test(this.parent.type);0===a?e.remove(n,s.id.start):e.overwrite(n,s.id.start,`;\n${r}`);var p="Identifier"===s.init.type&&!s.init.rewritten,h=p?s.init.alias||s.init.name:s.findScope(!0).createIdentifier("ref");n=s.start;var l=[];p?e.remove(s.id.end,s.end):l.push(((t,r,i)=>{e.prependRight(s.id.end,`var ${h}`),e.appendLeft(s.init.end,`${i}`),e.move(s.id.end,s.end,t)}));var d=s.findScope(!1);destructure(e,(e=>d.createIdentifier(e)),(e=>{var t=e.name;return d.resolveName(t)}),s.id,h,o,l);var c=o?"var ":"",m=o?", ":`;\n${r}`;l.forEach(((e,t)=>{a===this.declarations.length-1&&t===l.length-1&&(m=o?"":";"),e(s.start,0===t?c:"",m)}))}n=s.end,i="Identifier"!==s.id.type})),i&&this.end>n&&e.overwrite(n,this.end,"",{contentOnly:!0})}else this.declarations.forEach((r=>{r.transpile(e,t)}))}}class VariableDeclarator extends Node{initialise(e){var t=this.parent.kind;"let"===t&&"ForStatement"===this.parent.parent.type&&(t="for.let"),this.parent.scope.addDeclaration(this.id,t),super.initialise(e)}transpile(e,t){if(!this.init&&t.letConst&&"var"!==this.parent.kind){var r=this.findNearest(/Function|^For(In|Of)?Statement|^(?:Do)?WhileStatement/);!r||/Function/.test(r.type)||this.isLeftDeclaratorOfLoop()||e.appendLeft(this.id.end," = (void 0)")}this.id&&this.id.transpile(e,t),this.init&&this.init.transpile(e,t)}isLeftDeclaratorOfLoop(){return this.parent&&"VariableDeclaration"===this.parent.type&&this.parent.parent&&("ForInStatement"===this.parent.parent.type||"ForOfStatement"===this.parent.parent.type)&&this.parent.parent.left&&this.parent.parent.left.declarations[0]===this}}var types={ArrayExpression:ArrayExpression,ArrowFunctionExpression:ArrowFunctionExpression,AssignmentExpression:AssignmentExpression,AwaitExpression:AwaitExpression,BinaryExpression:BinaryExpression,BreakStatement:BreakStatement,CallExpression:CallExpression,ClassBody:ClassBody,ClassDeclaration:ClassDeclaration,ClassExpression:ClassExpression,ContinueStatement:ContinueStatement,DoWhileStatement:LoopStatement,ExportNamedDeclaration:ExportNamedDeclaration,ExportDefaultDeclaration:ExportDefaultDeclaration,ForStatement:ForStatement,ForInStatement:ForInStatement,ForOfStatement:ForOfStatement,FunctionDeclaration:FunctionDeclaration,FunctionExpression:FunctionExpression,Identifier:Identifier,IfStatement:IfStatement,Import:Import,ImportDeclaration:ImportDeclaration,ImportDefaultSpecifier:ImportDefaultSpecifier,ImportSpecifier:ImportSpecifier,JSXAttribute:JSXAttribute,JSXClosingElement:JSXClosingElement,JSXClosingFragment:JSXClosingFragment,JSXElement:JSXElement,JSXExpressionContainer:JSXExpressionContainer,JSXFragment:JSXFragment,JSXOpeningElement:JSXOpeningElement,JSXOpeningFragment:JSXOpeningFragment,JSXSpreadAttribute:JSXSpreadAttribute,Literal:Literal,MemberExpression:MemberExpression,NewExpression:NewExpression,ObjectExpression:ObjectExpression,Property:Property,ReturnStatement:ReturnStatement,Super:Super,TaggedTemplateExpression:TaggedTemplateExpression,TemplateElement:TemplateElement,TemplateLiteral:TemplateLiteral,ThisExpression:ThisExpression,UpdateExpression:UpdateExpression,VariableDeclaration:VariableDeclaration,VariableDeclarator:VariableDeclarator,WhileStatement:LoopStatement},keys={Program:["body"],Literal:[]},statementsWithBlocks={IfStatement:"consequent",ForStatement:"body",ForInStatement:"body",ForOfStatement:"body",WhileStatement:"body",DoWhileStatement:"body",ArrowFunctionExpression:"body"};function wrap(e,t){if(e)if("length"in e)for(var r=e.length;r--;)wrap(e[r],t);else if(!e.__wrapped){e.__wrapped=!0,keys[e.type]||(keys[e.type]=Object.keys(e).filter((t=>"object"==typeof e[t])));var s=statementsWithBlocks[e.type];if(s&&"BlockStatement"!==e[s].type){var i=e[s];e[s]={start:i.start,end:i.end,type:"BlockStatement",body:[i],synthetic:!0}}e.parent=t,e.program=t.program||t,e.depth=t.depth+1,e.keys=keys[e.type],e.indentation=void 0;for(var n=0,a=keys[e.type];n<a.length;n+=1){var o=a[n];wrap(e[o],e)}e.program.magicString.addSourcemapLocation(e.start),e.program.magicString.addSourcemapLocation(e.end);var p=("BlockStatement"===e.type?BlockStatement:types[e.type])||Node;e.__proto__=p.prototype}}function Program(e,t,r,s){this.type="Root",this.jsx=s.jsx||"React.createElement",this.jsxFragment=s.jsxFragment||"React.Fragment",this.options=s,this.source=e,this.magicString=new MagicString(e),this.ast=t,this.depth=0,wrap(this.body=t,this),this.body.__proto__=BlockStatement.prototype,this.templateLiteralQuasis=Object.create(null);for(var i=0;i<this.body.body.length;++i)if(!this.body.body[i].directive){this.prependAt=this.body.body[i].start;break}this.objectWithoutPropertiesHelper=null,this.indentExclusionElements=[],this.body.initialise(r),this.indentExclusions=Object.create(null);for(var n=0,a=this.indentExclusionElements;n<a.length;n+=1)for(var o=a[n],p=o.start;p<o.end;p+=1)this.indentExclusions[p]=!0;this.body.transpile(this.magicString,r)}Program.prototype={export(e){return void 0===e&&(e={}),{code:this.magicString.toString(),map:this.magicString.generateMap({file:e.file,source:e.source,includeContent:!1!==e.includeContent})}},findNearest:()=>null,findScope:()=>null,getObjectWithoutPropertiesHelper(e){return this.objectWithoutPropertiesHelper||(this.objectWithoutPropertiesHelper=this.body.scope.createIdentifier("objectWithoutProperties"),e.prependLeft(this.prependAt,`function ${this.objectWithoutPropertiesHelper} (obj, exclude) { var target = {}; for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k]; return target; }\n`)),this.objectWithoutPropertiesHelper}};var matrix={chrome:{48:610719,49:652287,50:783359,51:783359,52:1045503,53:1045503,54:1045503,55:3142655,56:3142655,57:3142655,58:4191231,59:4191231,60:8385535,61:8385535,62:8385535,63:8385535,64:8385535,65:8385535,66:8385535,67:8385535,68:8385535,69:8385535,70:8385535,71:8385535},firefox:{43:643515,44:643515,45:643519,46:774591,47:774655,48:774655,49:774655,50:774655,51:775167,52:4191231,53:4191231,54:4191231,55:8385535,56:8385535,57:8385535,58:8385535,59:8385535,60:8385535,61:8385535,62:8385535,63:8385535,64:8385535},safari:{8:524297,9:594141,10:1831935,10.1:4191231,11:4191231,11.1:8385535,12:8385535},ie:{8:0,9:524289,10:524289,11:524289},edge:{12:610459,13:774559,14:2085887,15:4183039,16:4183039,17:4183039,18:4183039,19:4183039},node:{"0.10":524289,.12:524417,4:594335,5:594335,6:783359,8:4191231,8.3:8385535,8.7:8385535,"8.10":8385535}},features=["getterSetter","arrow","classes","computedProperty","conciseMethodProperty","defaultParameter","destructuring","forOf","generator","letConst","moduleExport","moduleImport","numericLiteral","parameterDestructuring","spreadRest","stickyRegExp","templateString","unicodeRegExp","exponentiation","reservedProperties","trailingFunctionCommas","asyncAwait","objectRestSpread"],version="100.19.7",parser=acorn.Parser.extend(acornDynamicImport,acornJsx()),dangerousTransforms=["dangerousTaggedTemplateString","dangerousForOf"];function target(e){var t=Object.keys(e).length?8388607:524289;Object.keys(e).forEach((r=>{var s=matrix[r];if(!s)throw new Error(`Unknown environment '${r}'. Please raise an issue at https://github.com/bublejs/buble/issues`);var i=e[r];if(!(i in s))throw new Error(`Support data exists for the following versions of ${r}: ${Object.keys(s).join(", ")}. Please raise an issue at https://github.com/bublejs/buble/issues`);var n=s[i];t&=n}));var r=Object.create(null);return features.forEach(((e,s)=>{r[e]=!(t&1<<s)})),dangerousTransforms.forEach((e=>{r[e]=!1})),r}function transform(e,t){var r;void 0===t&&(t={});var s=null;try{r=parser.parse(e,{ecmaVersion:10,preserveParens:!0,sourceType:"module",allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowHashBang:!0,onComment:(e,t)=>{if(!s){var r=/@jsx\s+([^\s]+)/.exec(t);r&&(s=r[1])}}}),t.jsx=s||t.jsx}catch(t){throw t.snippet=getSnippet(e,t.loc),t.toString=()=>`${t.name}: ${t.message}\n${t.snippet}`,t}var i=target(t.target||{});return Object.keys(t.transforms||{}).forEach((e=>{if("modules"===e)return"moduleImport"in t.transforms||(i.moduleImport=t.transforms.modules),void("moduleExport"in t.transforms||(i.moduleExport=t.transforms.modules));if(!(e in i))throw new Error(`Unknown transform '${e}'`);i[e]=t.transforms[e]})),!0===t.objectAssign&&(t.objectAssign="Object.assign"),new Program(e,r,i,t).export(t)}exports.target=target,exports.transform=transform,exports.VERSION=version;
//# sourceMappingURL=/sm/58a02aac81952a72b552bca0adb75b5ac906f97a0ab1f65f5715821b4e7d29a4.map