UNPKG

react-native-component-splitter

Version:
2 lines 16.5 MB
/*! For license information please see extension.js.LICENSE.txt */ (()=>{var __webpack_modules__={84709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=o,t.default=function(e,t,r,n={}){if(!i){i=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";process.emitWarning?process.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return o(e,{start:{column:r=Math.max(r,0),line:t}},n)};var n=r(23014);let i=!1;const a=/\r\n|[\n\r\u2028\u2029]/;function o(e,t,r={}){const i=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),o=(0,n.getChalk)(r),s=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(o),u=(e,t)=>i?e(t):t,c=e.split(a),{start:l,end:p,markerLines:d}=function(e,t,r){const n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:a=2,linesBelow:o=3}=r||{},s=n.line,u=n.column,c=i.line,l=i.column;let p=Math.max(s-(a+1),0),d=Math.min(t.length,c+o);-1===s&&(p=0),-1===c&&(d=t.length);const f=c-s,m={};if(f)for(let e=0;e<=f;e++){const r=e+s;if(u)if(0===e){const e=t[r-1].length;m[r]=[u,e-u+1]}else if(e===f)m[r]=[0,l];else{const n=t[r-e].length;m[r]=[0,n]}else m[r]=!0}else m[s]=u===l?!u||[u,0]:[u,l-u];return{start:p,end:d,markerLines:m}}(t,c,r),f=t.start&&"number"==typeof t.start.column,m=String(p).length;let g=(i?(0,n.default)(e,r):e).split(a).slice(l,p).map(((e,t)=>{const n=l+1+t,i=` ${` ${n}`.slice(-m)} |`,a=d[n],o=!d[n+1];if(a){let t="";if(Array.isArray(a)){const n=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),c=a[1]||1;t=["\n ",u(s.gutter,i.replace(/\d/g," "))," ",n,u(s.marker,"^").repeat(c)].join(""),o&&r.message&&(t+=" "+u(s.message,r.message))}return[u(s.marker,">"),u(s.gutter,i),e.length>0?` ${e}`:"",t].join("")}return` ${u(s.gutter,i)}${e.length>0?` ${e}`:""}`})).join("\n");return r.message&&!f&&(g=`${" ".repeat(m+1)}${r.message}\n${g}`),i?o.reset(g):g}},39797:(e,t,r)=>{e.exports=r(44817)},78142:(e,t,r)=>{e.exports=r(78392)},24832:(e,t,r)=>{e.exports=r(97867)},45008:()=>{},20656:(e,t,r)=>{"use strict";function n(){const e=r(20664);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.makeWeakCache=u,t.makeWeakCacheSync=function(e){return o(u(e))},t.makeStrongCache=c,t.makeStrongCacheSync=function(e){return o(c(e))},t.assertSimpleType=m;var i=r(87241),a=r(31050);const o=e=>n()(e).sync;function*s(){return!0}function u(e){return l(WeakMap,e)}function c(e){return l(Map,e)}function l(e,t){const r=new e,n=new e,o=new e;return function*(e,s){const u=yield*(0,i.isAsync)(),c=u?n:r,l=yield*function*(e,t,r,n,a){const o=yield*p(t,n,a);if(o.valid)return o;if(e){const e=yield*p(r,n,a);if(e.valid)return{valid:!0,value:yield*(0,i.waitFor)(e.value.promise)}}return{valid:!1,value:null}}(u,c,o,e,s);if(l.valid)return l.value;const m=new f(s),h=t(e,m);let _,y;if((0,a.isIterableIterator)(h)){const t=h;y=yield*(0,i.onFirstPause)(t,(()=>{_=function(e,t,r){const n=new g;return d(t,e,r,n),n}(m,o,e)}))}else y=h;return d(c,m,e,y),_&&(o.delete(e),_.release(y)),y}}function*p(e,t,r){const n=e.get(t);if(n)for(const{value:e,valid:t}of n)if(yield*t(r))return{valid:!0,value:e};return{valid:!1,value:null}}function d(e,t,r,n){t.configured()||t.forever();let i=e.get(r);switch(t.deactivate(),t.mode()){case"forever":i=[{value:n,valid:s}],e.set(r,i);break;case"invalidate":i=[{value:n,valid:t.validator()}],e.set(r,i);break;case"valid":i?i.push({value:n,valid:t.validator()}):(i=[{value:n,valid:t.validator()}],e.set(r,i))}}class f{constructor(e){this._active=!0,this._never=!1,this._forever=!1,this._invalidate=!1,this._configured=!1,this._pairs=[],this._data=void 0,this._data=e}simple(){return function(e){function t(t){if("boolean"!=typeof t)return e.using((()=>m(t())));t?e.forever():e.never()}return t.forever=()=>e.forever(),t.never=()=>e.never(),t.using=t=>e.using((()=>m(t()))),t.invalidate=t=>e.invalidate((()=>m(t()))),t}(this)}mode(){return this._never?"never":this._forever?"forever":this._invalidate?"invalidate":"valid"}forever(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never)throw new Error("Caching has already been configured with .never()");this._forever=!0,this._configured=!0}never(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._forever)throw new Error("Caching has already been configured with .forever()");this._never=!0,this._configured=!0}using(e){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never||this._forever)throw new Error("Caching has already been configured with .never or .forever()");this._configured=!0;const t=e(this._data),r=(0,i.maybeAsync)(e,"You appear to be using an async cache handler, but Babel has been called synchronously");return(0,i.isThenable)(t)?t.then((e=>(this._pairs.push([e,r]),e))):(this._pairs.push([t,r]),t)}invalidate(e){return this._invalidate=!0,this.using(e)}validator(){const e=this._pairs;return function*(t){for(const[r,n]of e)if(r!==(yield*n(t)))return!1;return!0}}deactivate(){this._active=!1}configured(){return this._configured}}function m(e){if((0,i.isThenable)(e))throw new Error("You appear to be using an async cache handler, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously handle your caching logic.");if(null!=e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e)throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");return e}class g{constructor(){this.released=!1,this.promise=void 0,this._resolve=void 0,this.promise=new Promise((e=>{this._resolve=e}))}release(e){this.released=!0,this._resolve(e)}}},4025:(e,t,r)=>{"use strict";function n(){const e=r(71017);return n=function(){return e},e}function i(){const e=r(15158);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.buildPresetChain=function*(e,t){const r=yield*d(e,t);return r?{plugins:M(r.plugins),presets:M(r.presets),options:r.options.map((e=>L(e))),files:new Set}:null},t.buildRootChain=function*(e,t){let r,i;const a=new s.ConfigPrinter,c=yield*v({options:e,dirname:t.cwd},t,void 0,a);if(!c)return null;const l=yield*a.output();let p;"string"==typeof e.configFile?p=yield*(0,u.loadConfig)(e.configFile,t.cwd,t.envName,t.caller):!1!==e.configFile&&(p=yield*(0,u.findRootConfig)(t.root,t.envName,t.caller));let{babelrc:d,babelrcRoots:f}=e,m=t.cwd;const g=I(),h=new s.ConfigPrinter;if(p){const e=_(p),n=yield*C(e,t,void 0,h);if(!n)return null;r=yield*h.output(),void 0===d&&(d=e.options.babelrc),void 0===f&&(m=e.dirname,f=e.options.babelrcRoots),N(g,n)}let B,D,b=!1;const E=I();if((!0===d||void 0===d)&&"string"==typeof t.filename){const e=yield*(0,u.findPackageData)(t.filename);if(e&&function(e,t,r,i){if("boolean"==typeof r)return r;const a=e.root;if(void 0===r)return-1!==t.directories.indexOf(a);let s=r;return Array.isArray(s)||(s=[s]),s=s.map((e=>"string"==typeof e?n().resolve(i,e):e)),1===s.length&&s[0]===a?-1!==t.directories.indexOf(a):s.some((r=>("string"==typeof r&&(r=(0,o.default)(r,i)),t.directories.some((t=>J(r,i,t,e))))))}(t,e,f,m)){if(({ignore:B,config:D}=yield*(0,u.findRelativeConfig)(e,t.envName,t.caller)),B&&E.files.add(B.filepath),B&&U(t,B.ignore,null,B.dirname)&&(b=!0),D&&!b){const e=y(D),r=new s.ConfigPrinter,n=yield*C(e,t,void 0,r);n?(i=yield*r.output(),N(E,n)):b=!0}D&&b&&E.files.add(D.filepath)}}t.showConfig&&console.log(`Babel configs on "${t.filename}" (ascending priority):\n`+[r,i,l].filter((e=>!!e)).join("\n\n")+"\n-----End Babel configs-----");const x=N(N(N(I(),g),E),c);return{plugins:b?[]:M(x.plugins),presets:b?[]:M(x.presets),options:b?[]:x.options.map((e=>L(e))),fileHandling:b?"ignored":"transpile",ignore:B||void 0,babelrc:D||void 0,config:p||void 0,files:x.files}},t.buildPresetChainWalker=void 0;var a=r(91139),o=r(98552),s=r(35078),u=r(72557),c=r(20656),l=r(79261);const p=i()("babel:config:config-chain"),d=P({root:e=>f(e),env:(e,t)=>m(e)(t),overrides:(e,t)=>g(e)(t),overridesEnv:(e,t,r)=>h(e)(t)(r),createLogger:()=>()=>{}});t.buildPresetChainWalker=d;const f=(0,c.makeWeakCacheSync)((e=>T(e,e.alias,l.createUncachedDescriptors))),m=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>A(e,e.alias,l.createUncachedDescriptors,t))))),g=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>F(e,e.alias,l.createUncachedDescriptors,t))))),h=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>(0,c.makeStrongCacheSync)((r=>k(e,e.alias,l.createUncachedDescriptors,t,r))))))),_=(0,c.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,a.validate)("configfile",e.options)}))),y=(0,c.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,a.validate)("babelrcfile",e.options)}))),B=(0,c.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,a.validate)("extendsfile",e.options)}))),v=P({root:e=>T(e,"base",l.createCachedDescriptors),env:(e,t)=>A(e,"base",l.createCachedDescriptors,t),overrides:(e,t)=>F(e,"base",l.createCachedDescriptors,t),overridesEnv:(e,t,r)=>k(e,"base",l.createCachedDescriptors,t,r),createLogger:(e,t,r)=>function(e,t,r){var n;return r?r.configure(t.showConfig,s.ChainFormatter.Programmatic,{callerName:null==(n=t.caller)?void 0:n.name}):()=>{}}(0,t,r)}),D=P({root:e=>b(e),env:(e,t)=>E(e)(t),overrides:(e,t)=>x(e)(t),overridesEnv:(e,t,r)=>S(e)(t)(r),createLogger:(e,t,r)=>function(e,t,r){return r?r.configure(t.showConfig,s.ChainFormatter.Config,{filepath:e}):()=>{}}(e.filepath,t,r)});function*C(e,t,r,n){const i=yield*D(e,t,r,n);return i&&i.files.add(e.filepath),i}const b=(0,c.makeWeakCacheSync)((e=>T(e,e.filepath,l.createUncachedDescriptors))),E=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>A(e,e.filepath,l.createUncachedDescriptors,t))))),x=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>F(e,e.filepath,l.createUncachedDescriptors,t))))),S=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>(0,c.makeStrongCacheSync)((r=>k(e,e.filepath,l.createUncachedDescriptors,t,r)))))));function T({dirname:e,options:t},r,n){return n(e,t,r)}function A({dirname:e,options:t},r,n,i){const a=t.env&&t.env[i];return a?n(e,a,`${r}.env["${i}"]`):null}function F({dirname:e,options:t},r,n,i){const a=t.overrides&&t.overrides[i];if(!a)throw new Error("Assertion failure - missing override");return n(e,a,`${r}.overrides[${i}]`)}function k({dirname:e,options:t},r,n,i,a){const o=t.overrides&&t.overrides[i];if(!o)throw new Error("Assertion failure - missing override");const s=o.env&&o.env[a];return s?n(e,s,`${r}.overrides[${i}].env["${a}"]`):null}function P({root:e,env:t,overrides:r,overridesEnv:n,createLogger:i}){return function*(a,o,s=new Set,u){const{dirname:c}=a,l=[],p=e(a);if(R(p,c,o)){l.push({config:p,envName:void 0,index:void 0});const e=t(a,o.envName);e&&R(e,c,o)&&l.push({config:e,envName:o.envName,index:void 0}),(p.options.overrides||[]).forEach(((e,t)=>{const i=r(a,t);if(R(i,c,o)){l.push({config:i,index:t,envName:void 0});const e=n(a,t,o.envName);e&&R(e,c,o)&&l.push({config:e,index:t,envName:o.envName})}}))}if(l.some((({config:{options:{ignore:e,only:t}}})=>U(o,e,t,c))))return null;const d=I(),f=i(a,o,u);for(const{config:e,index:t,envName:r}of l){if(!(yield*w(d,e.options,c,o,s,u)))return null;f(e,t,r),yield*O(d,e)}return d}}function*w(e,t,r,n,i,a){if(void 0===t.extends)return!0;const o=yield*(0,u.loadConfig)(t.extends,r,n.envName,n.caller);if(i.has(o))throw new Error(`Configuration cycle detected loading ${o.filepath}.\nFile already loaded following the config chain:\n`+Array.from(i,(e=>` - ${e.filepath}`)).join("\n"));i.add(o);const s=yield*C(B(o),n,i,a);return i.delete(o),!!s&&(N(e,s),!0)}function N(e,t){e.options.push(...t.options),e.plugins.push(...t.plugins),e.presets.push(...t.presets);for(const r of t.files)e.files.add(r);return e}function*O(e,{options:t,plugins:r,presets:n}){return e.options.push(t),e.plugins.push(...yield*r()),e.presets.push(...yield*n()),e}function I(){return{options:[],presets:[],plugins:[],files:new Set}}function L(e){const t=Object.assign({},e);return delete t.extends,delete t.env,delete t.overrides,delete t.plugins,delete t.presets,delete t.passPerPreset,delete t.ignore,delete t.only,delete t.test,delete t.include,delete t.exclude,Object.prototype.hasOwnProperty.call(t,"sourceMap")&&(t.sourceMaps=t.sourceMap,delete t.sourceMap),t}function M(e){const t=new Map,r=[];for(const n of e)if("function"==typeof n.value){const e=n.value;let i=t.get(e);i||(i=new Map,t.set(e,i));let a=i.get(n.name);a?a.value=n:(a={value:n},r.push(a),n.ownPass||i.set(n.name,a))}else r.push({value:n});return r.reduce(((e,t)=>(e.push(t.value),e)),[])}function R({options:e},t,r){return(void 0===e.test||j(r,e.test,t))&&(void 0===e.include||j(r,e.include,t))&&(void 0===e.exclude||!j(r,e.exclude,t))}function j(e,t,r){return K(e,Array.isArray(t)?t:[t],r)}function U(e,t,r,n){if(t&&K(e,t,n)){var i;const r=`No config is applied to "${null!=(i=e.filename)?i:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(t)}\` from "${n}"`;return p(r),e.showConfig&&console.log(r),!0}if(r&&!K(e,r,n)){var a;const t=`No config is applied to "${null!=(a=e.filename)?a:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(r)}\` from "${n}"`;return p(t),e.showConfig&&console.log(t),!0}return!1}function K(e,t,r){return t.some((t=>J(t,r,e.filename,e)))}function J(e,t,r,n){if("function"==typeof e)return!!e(r,{dirname:t,envName:n.envName,caller:n.caller});if("string"!=typeof r)throw new Error("Configuration contains string/RegExp pattern, but no filename was passed to Babel");return"string"==typeof e&&(e=(0,o.default)(e,t)),e.test(r)}},79261:(e,t,r)=>{"use strict";function n(){const e=r(20664);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.createCachedDescriptors=function(e,t,r){const{plugins:n,presets:i,passPerPreset:a}=t;return{options:c(t,e),plugins:n?()=>f(n,e)(r):()=>u([]),presets:i?()=>p(i,e)(r)(!!a):()=>u([])}},t.createUncachedDescriptors=function(e,t,r){let n,i;return{options:c(t,e),*plugins(){return n||(n=yield*_(t.plugins||[],e,r)),n},*presets(){return i||(i=yield*h(t.presets||[],e,r,!!t.passPerPreset)),i}}},t.createDescriptor=B;var i=r(72557),a=r(46415),o=r(20656),s=r(93122);function*u(e){return e}function c(e,t){return"string"==typeof e.browserslistConfigFile&&(e.browserslistConfigFile=(0,s.resolveBrowserslistConfigFile)(e.browserslistConfigFile,t)),e}const l=new WeakMap,p=(0,o.makeWeakCacheSync)(((e,t)=>{const r=t.using((e=>e));return(0,o.makeStrongCacheSync)((t=>(0,o.makeStrongCache)((function*(n){return(yield*h(e,r,t,n)).map((e=>g(l,e)))}))))})),d=new WeakMap,f=(0,o.makeWeakCacheSync)(((e,t)=>{const r=t.using((e=>e));return(0,o.makeStrongCache)((function*(t){return(yield*_(e,r,t)).map((e=>g(d,e)))}))})),m={};function g(e,t){const{value:r,options:n=m}=t;if(!1===n)return t;let i=e.get(r);i||(i=new WeakMap,e.set(r,i));let a=i.get(n);if(a||(a=[],i.set(n,a)),-1===a.indexOf(t)){const e=a.filter((e=>{return n=t,(r=e).name===n.name&&r.value===n.value&&r.options===n.options&&r.dirname===n.dirname&&r.alias===n.alias&&r.ownPass===n.ownPass&&(r.file&&r.file.request)===(n.file&&n.file.request)&&(r.file&&r.file.resolved)===(n.file&&n.file.resolved);var r,n}));if(e.length>0)return e[0];a.push(t)}return t}function*h(e,t,r,n){return yield*y("preset",e,t,r,n)}function*_(e,t,r){return yield*y("plugin",e,t,r)}function*y(e,t,r,i,a){const o=yield*n().all(t.map(((t,n)=>B(t,r,{type:e,alias:`${i}$${n}`,ownPass:!!a}))));return function(e){const t=new Map;for(const r of e){if("function"!=typeof r.value)continue;let n=t.get(r.value);if(n||(n=new Set,t.set(r.value,n)),n.has(r.name)){const t=e.filter((e=>e.value===r.value));throw new Error(["Duplicate plugin/preset detected.","If you'd like to use two separate instances of a plugin,","they need separate names, e.g.",""," plugins: ["," ['some-plugin', {}],"," ['some-plugin', {}, 'some unique name'],"," ]","","Duplicates detected are:",`${JSON.stringify(t,null,2)}`].join("\n"))}n.add(r.name)}}(o),o}function*B(e,t,{type:r,alias:n,ownPass:o}){const s=(0,a.getItemDescriptor)(e);if(s)return s;let u,c,l,p=e;Array.isArray(p)&&(3===p.length?[p,c,u]=p:[p,c]=p);let d=null;if("string"==typeof p){if("string"!=typeof r)throw new Error("To resolve a string-based item, the type of item must be given");const e="plugin"===r?i.loadPlugin:i.loadPreset,n=p;({filepath:d,value:p}=yield*e(p,t)),l={request:n,resolved:d}}if(!p)throw new Error(`Unexpected falsy value: ${String(p)}`);if("object"==typeof p&&p.__esModule){if(!p.default)throw new Error("Must export a default export when using ES6 modules.");p=p.default}if("object"!=typeof p&&"function"!=typeof p)throw new Error(`Unsupported format: ${typeof p}. Expected an object or a function.`);if(null!==d&&"object"==typeof p&&p)throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${d}`);return{name:u,alias:d||n,value:p,options:c,dirname:t,ownPass:o,file:l}}},74108:(e,t,r)=>{"use strict";function n(){const e=r(15158);return n=function(){return e},e}function i(){const e=r(57147);return i=function(){return e},e}function a(){const e=r(71017);return a=function(){return e},e}function o(){const e=r(56079);return o=function(){return e},e}function s(){const e=r(20664);return s=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.findConfigUpwards=function(e){let t=e;for(;;){for(const e of g)if(i().existsSync(a().join(t,e)))return t;const e=a().dirname(t);if(t===e)break;t=e}return null},t.findRelativeConfig=function*(e,t,r){let n=null,i=null;const o=a().dirname(e.filepath);for(const u of e.directories){var s;if(n||(n=yield*_(h,u,t,r,(null==(s=e.pkg)?void 0:s.dirname)===u?D(e.pkg):null)),!i){const e=a().join(u,".babelignore");i=yield*b(e),i&&m("Found ignore %o from %o.",i.filepath,o)}}return{config:n,ignore:i}},t.findRootConfig=function(e,t,r){return _(g,e,t,r)},t.loadConfig=function*(e,t,n,i){const a=(u="8.9",s=(s=process.versions.node).split("."),u=u.split("."),+s[0]>+u[0]||s[0]==u[0]&&+s[1]>=+u[1]?r(20858).resolve:(e,{paths:[t]},n=r(98188))=>{let i=n._findPath(e,n._nodeModulePaths(t).concat(t));if(i)return i;throw i=new Error(`Cannot resolve module '${e}'`),i.code="MODULE_NOT_FOUND",i})(e,{paths:[t]}),o=yield*y(a,n,i);var s,u;if(!o)throw new Error(`Config file ${a} contains no configuration data`);return m("Loaded config %o from %o.",e,t),o},t.resolveShowConfigPath=function*(e){const t=process.env.BABEL_SHOW_CONFIG_FOR;if(null!=t){const r=a().resolve(e,t);if(!(yield*f.stat(r)).isFile())throw new Error(`${r}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);return r}return null},t.ROOT_CONFIG_FILENAMES=void 0;var u=r(20656),c=r(85839),l=r(82800),p=r(82846),d=r(98552),f=r(82344);const m=n()("babel:config:loading:files:configuration"),g=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json"];t.ROOT_CONFIG_FILENAMES=g;const h=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json"];function*_(e,t,r,n,i=null){const o=(yield*s().all(e.map((e=>y(a().join(t,e),r,n))))).reduce(((e,r)=>{if(r&&e)throw new Error(`Multiple configuration files found. Please remove one:\n - ${a().basename(e.filepath)}\n - ${r.filepath}\nfrom ${t}`);return r||e}),i);return o&&m("Found configuration %o from %o.",o.filepath,t),o}function y(e,t,r){const n=a().extname(e);return".js"===n||".cjs"===n||".mjs"===n?v(e,{envName:t,caller:r}):C(e)}const B=new Set,v=(0,u.makeStrongCache)((function*(e,t){if(!i().existsSync(e))return t.never(),null;if(B.has(e))return t.never(),m("Auto-ignoring usage of config %o.",e),{filepath:e,dirname:a().dirname(e),options:{}};let r;try{B.add(e),r=yield*(0,p.default)(e,"You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously.")}catch(t){throw t.message=`${e}: Error while loading config - ${t.message}`,t}finally{B.delete(e)}let n=!1;if("function"==typeof r&&(yield*[],r=r((0,c.makeConfigAPI)(t)),n=!0),!r||"object"!=typeof r||Array.isArray(r))throw new Error(`${e}: Configuration should be an exported JavaScript object.`);if("function"==typeof r.then)throw new Error("You appear to be using an async configuration, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously return your config.");return n&&!t.configured()&&function(){throw new Error('Caching was left unconfigured. Babel\'s plugins, presets, and .babelrc.js files can be configured\nfor various types of caching, using the first param of their handler functions:\n\nmodule.exports = function(api) {\n // The API exposes the following:\n\n // Cache the returned value forever and don\'t call this function again.\n api.cache(true);\n\n // Don\'t cache at all. Not recommended because it will be very slow.\n api.cache(false);\n\n // Cached based on the value of some function. If this function returns a value different from\n // a previously-encountered value, the plugins will re-evaluate.\n var env = api.cache(() => process.env.NODE_ENV);\n\n // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for\n // any possible NODE_ENV value that might come up during plugin execution.\n var isProd = api.cache(() => process.env.NODE_ENV === "production");\n\n // .cache(fn) will perform a linear search though instances to find the matching plugin based\n // based on previous instantiated plugins. If you want to recreate the plugin and discard the\n // previous instance whenever something changes, you may use:\n var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");\n\n // Note, we also expose the following more-verbose versions of the above examples:\n api.cache.forever(); // api.cache(true)\n api.cache.never(); // api.cache(false)\n api.cache.using(fn); // api.cache(fn)\n\n // Return the value that will be cached.\n return { };\n};')}(),{filepath:e,dirname:a().dirname(e),options:r}})),D=(0,u.makeWeakCacheSync)((e=>{const t=e.options.babel;if(void 0===t)return null;if("object"!=typeof t||Array.isArray(t)||null===t)throw new Error(`${e.filepath}: .babel property must be an object`);return{filepath:e.filepath,dirname:e.dirname,options:t}})),C=(0,l.makeStaticFileCache)(((e,t)=>{let r;try{r=o().parse(t)}catch(t){throw t.message=`${e}: Error while parsing config - ${t.message}`,t}if(!r)throw new Error(`${e}: No config detected`);if("object"!=typeof r)throw new Error(`${e}: Config returned typeof ${typeof r}`);if(Array.isArray(r))throw new Error(`${e}: Expected config object but found array`);return{filepath:e,dirname:a().dirname(e),options:r}})),b=(0,l.makeStaticFileCache)(((e,t)=>{const r=a().dirname(e),n=t.split("\n").map((e=>e.replace(/#(.*?)$/,"").trim())).filter((e=>!!e));for(const e of n)if("!"===e[0])throw new Error("Negation of file paths is not supported.");return{filepath:e,dirname:a().dirname(e),ignore:n.map((e=>(0,d.default)(e,r)))}}))},75023:(e,t,r)=>{"use strict";t.Z=function(e){return r(74884)(e)}},72557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findPackageData",{enumerable:!0,get:function(){return n.findPackageData}}),Object.defineProperty(t,"findConfigUpwards",{enumerable:!0,get:function(){return i.findConfigUpwards}}),Object.defineProperty(t,"findRelativeConfig",{enumerable:!0,get:function(){return i.findRelativeConfig}}),Object.defineProperty(t,"findRootConfig",{enumerable:!0,get:function(){return i.findRootConfig}}),Object.defineProperty(t,"loadConfig",{enumerable:!0,get:function(){return i.loadConfig}}),Object.defineProperty(t,"resolveShowConfigPath",{enumerable:!0,get:function(){return i.resolveShowConfigPath}}),Object.defineProperty(t,"ROOT_CONFIG_FILENAMES",{enumerable:!0,get:function(){return i.ROOT_CONFIG_FILENAMES}}),Object.defineProperty(t,"resolvePlugin",{enumerable:!0,get:function(){return a.resolvePlugin}}),Object.defineProperty(t,"resolvePreset",{enumerable:!0,get:function(){return a.resolvePreset}}),Object.defineProperty(t,"loadPlugin",{enumerable:!0,get:function(){return a.loadPlugin}}),Object.defineProperty(t,"loadPreset",{enumerable:!0,get:function(){return a.loadPreset}});var n=r(55904),i=r(74108),a=r(7372)},82846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function*(e,t,r=!1){switch(function(e){switch(i().extname(e)){case".cjs":return"cjs";case".mjs":return"mjs";default:return"unknown"}}(e)){case"cjs":return c(e,r);case"unknown":try{return c(e,r)}catch(e){if("ERR_REQUIRE_ESM"!==e.code)throw e}case"mjs":if(yield*(0,n.isAsync)())return yield*(0,n.waitFor)(function(e){return l.apply(this,arguments)}(e));throw new Error(t)}};var n=r(87241);function i(){const e=r(71017);return i=function(){return e},e}function a(){const e=r(57310);return a=function(){return e},e}function o(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}}let u;try{u=r(75023).Z}catch(e){}function c(e,t){const n=r(20858)(e);return null!=n&&n.__esModule?n.default||(t?n:void 0):n}function l(){return(l=s((function*(e){if(!u)throw new Error("Internal error: Native ECMAScript modules aren't supported by this platform.\n");return(yield u((0,a().pathToFileURL)(e))).default}))).apply(this,arguments)}},55904:(e,t,r)=>{"use strict";function n(){const e=r(71017);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.findPackageData=function*(e){let t=null;const r=[];let a=!0,o=n().dirname(e);for(;!t&&"node_modules"!==n().basename(o);){r.push(o),t=yield*i(n().join(o,"package.json"));const e=n().dirname(o);if(o===e){a=!1;break}o=e}return{filepath:e,directories:r,pkg:t,isPackage:a}};const i=(0,r(82800).makeStaticFileCache)(((e,t)=>{let r;try{r=JSON.parse(t)}catch(t){throw t.message=`${e}: Error while parsing JSON - ${t.message}`,t}if(!r)throw new Error(`${e}: No config detected`);if("object"!=typeof r)throw new Error(`${e}: Config returned typeof ${typeof r}`);if(Array.isArray(r))throw new Error(`${e}: Expected config object but found array`);return{filepath:e,dirname:n().dirname(e),options:r}}))},7372:(e,t,r)=>{"use strict";function n(){const e=r(15158);return n=function(){return e},e}function i(){const e=r(71017);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.resolvePlugin=g,t.resolvePreset=h,t.loadPlugin=function*(e,t){const r=g(e,t);if(!r)throw new Error(`Plugin ${e} not found relative to ${t}`);const n=yield*v("plugin",r);return o("Loaded plugin %o from %o.",e,t),{filepath:r,value:n}},t.loadPreset=function*(e,t){const r=h(e,t);if(!r)throw new Error(`Preset ${e} not found relative to ${t}`);const n=yield*v("preset",r);return o("Loaded preset %o from %o.",e,t),{filepath:r,value:n}};var a=r(82846);const o=n()("babel:config:loading:files:plugins"),s=/^module:/,u=/^(?!@|module:|[^/]+\/|babel-plugin-)/,c=/^(?!@|module:|[^/]+\/|babel-preset-)/,l=/^(@babel\/)(?!plugin-|[^/]+\/)/,p=/^(@babel\/)(?!preset-|[^/]+\/)/,d=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/,f=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/,m=/^(@(?!babel$)[^/]+)$/;function g(e,t){return y("plugin",e,t)}function h(e,t){return y("preset",e,t)}function _(e,t){if(i().isAbsolute(t))return t;const r="preset"===e;return t.replace(r?c:u,`babel-${e}-`).replace(r?p:l,`$1${e}-`).replace(r?f:d,`$1babel-${e}-`).replace(m,`$1/babel-${e}`).replace(s,"")}function y(e,t,n=process.cwd()){const i=_(e,t);try{return(a=process.versions.node,o="8.9",a=a.split("."),o=o.split("."),+a[0]>+o[0]||a[0]==o[0]&&+a[1]>=+o[1]?r(20858).resolve:(e,{paths:[t]},n=r(98188))=>{let i=n._findPath(e,n._nodeModulePaths(t).concat(t));if(i)return i;throw i=new Error(`Cannot resolve module '${e}'`),i.code="MODULE_NOT_FOUND",i})(i,{paths:[n]})}catch(a){if("MODULE_NOT_FOUND"!==a.code)throw a;if(i!==t){let e=!1;try{(((e,t)=>(e=e.split("."),t=t.split("."),+e[0]>+t[0]||e[0]==t[0]&&+e[1]>=+t[1]))(process.versions.node,"8.9")?r(20858).resolve:(e,{paths:[t]},n=r(98188))=>{let i=n._findPath(e,n._nodeModulePaths(t).concat(t));if(i)return i;throw i=new Error(`Cannot resolve module '${e}'`),i.code="MODULE_NOT_FOUND",i})(t,{paths:[n]}),e=!0}catch(e){}e&&(a.message+=`\n- If you want to resolve "${t}", use "module:${t}"`)}let o=!1;try{(((e,t)=>(e=e.split("."),t=t.split("."),+e[0]>+t[0]||e[0]==t[0]&&+e[1]>=+t[1]))(process.versions.node,"8.9")?r(20858).resolve:(e,{paths:[t]},n=r(98188))=>{let i=n._findPath(e,n._nodeModulePaths(t).concat(t));if(i)return i;throw i=new Error(`Cannot resolve module '${e}'`),i.code="MODULE_NOT_FOUND",i})(_(e,"@babel/"+t),{paths:[n]}),o=!0}catch(e){}o&&(a.message+=`\n- Did you mean "@babel/${t}"?`);let s=!1;const u="preset"===e?"plugin":"preset";try{(((e,t)=>(e=e.split("."),t=t.split("."),+e[0]>+t[0]||e[0]==t[0]&&+e[1]>=+t[1]))(process.versions.node,"8.9")?r(20858).resolve:(e,{paths:[t]},n=r(98188))=>{let i=n._findPath(e,n._nodeModulePaths(t).concat(t));if(i)return i;throw i=new Error(`Cannot resolve module '${e}'`),i.code="MODULE_NOT_FOUND",i})(_(u,t),{paths:[n]}),s=!0}catch(e){}throw s&&(a.message+=`\n- Did you accidentally pass a ${u} as a ${e}?`),a}var a,o}const B=new Set;function*v(e,t){if(B.has(t))throw new Error(`Reentrant ${e} detected trying to load "${t}". This module is not ignored and is trying to load itself while compiling itself, leading to a dependency cycle. We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.`);try{return B.add(t),yield*(0,a.default)(t,`You appear to be using a native ECMAScript module ${e}, which is only supported when running Babel asynchronously.`,!0)}catch(e){throw e.message=`[BABEL]: ${e.message} (While processing: ${t})`,e}finally{B.delete(t)}}},82800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeStaticFileCache=function(e){return(0,n.makeStrongCache)((function*(t,r){return null===r.invalidate((()=>function(e){if(!a().existsSync(e))return null;try{return+a().statSync(e).mtime}catch(e){if("ENOENT"!==e.code&&"ENOTDIR"!==e.code)throw e}return null}(t)))?null:e(t,yield*i.readFile(t,"utf8"))}))};var n=r(20656),i=r(82344);function a(){const e=r(57147);return a=function(){return e},e}},74884:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=74884,e.exports=t},20858:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=20858,e.exports=t},49178:(e,t,r)=>{"use strict";function n(){const e=r(20664);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(87241),a=r(31050),o=r(32420),s=r(80424),u=r(46415),c=r(4025);function l(){const e=r(49838);return l=function(){return e},e}var p=r(20656),d=r(91139),f=r(54931),m=r(85839),g=r(26248),h=(r(45008),n()((function*(e){var t;const r=yield*(0,g.default)(e);if(!r)return null;const{options:n,context:i,fileHandling:o}=r;if("ignored"===o)return null;const s={},{plugins:c,presets:l}=n;if(!c||!l)throw new Error("Assertion failure - plugins and presets exist");const p=Object.assign({},i,{targets:n.targets}),f=e=>{const t=(0,u.getItemDescriptor)(e);if(!t)throw new Error("Assertion failure - must be config item");return t},m=l.map(f),h=c.map(f),y=[[]],B=[];if(yield*_(i,(function*e(t,r){const n=[];for(let e=0;e<t.length;e++){const i=t[e];if(!1!==i.options)try{i.ownPass?n.push({preset:yield*E(i,p),pass:[]}):n.unshift({preset:yield*E(i,p),pass:r})}catch(r){throw"BABEL_UNKNOWN_OPTION"===r.code&&(0,d.checkNoUnwrappedItemOptionPairs)(t,e,"preset",r),r}}if(n.length>0){y.splice(1,0,...n.map((e=>e.pass)).filter((e=>e!==r)));for(const{preset:t,pass:r}of n){if(!t)return!0;if(r.push(...t.plugins),yield*e(t.presets,r))return!0;t.options.forEach((e=>{(0,a.mergeOptions)(s,e)}))}}}))(m,y[0]))return null;const v=s;(0,a.mergeOptions)(v,n);const C=Object.assign({},p,{assumptions:null!=(t=v.assumptions)?t:{}});return yield*_(i,(function*(){y[0].unshift(...h);for(const e of y){const t=[];B.push(t);for(let r=0;r<e.length;r++){const n=e[r];if(!1!==n.options)try{t.push(yield*D(n,C))}catch(t){throw"BABEL_UNKNOWN_PLUGIN_PROPERTY"===t.code&&(0,d.checkNoUnwrappedItemOptionPairs)(e,r,"plugin",t),t}}}}))(),v.plugins=B[0],v.presets=B.slice(1).filter((e=>e.length>0)).map((e=>({plugins:e}))),v.passPerPreset=v.presets.length>0,{options:v,passes:B}})));function _(e,t){return function*(r,n){try{return yield*t(r,n)}catch(t){throw/^\[BABEL\]/.test(t.message)||(t.message=`[BABEL] ${e.filename||"unknown"}: ${t.message}`),t}}}t.default=h;const y=e=>(0,p.makeWeakCache)((function*({value:t,options:r,dirname:n,alias:a},s){if(!1===r)throw new Error("Assertion failure");r=r||{};let u=t;if("function"==typeof t){const c=(0,i.maybeAsync)(t,"You appear to be using an async plugin/preset, but Babel has been called synchronously"),l=Object.assign({},o,e(s));try{u=yield*c(l,r,n)}catch(e){throw a&&(e.message+=` (While processing: ${JSON.stringify(a)})`),e}}if(!u||"object"!=typeof u)throw new Error("Plugin/Preset did not return an object.");if((0,i.isThenable)(u))throw yield*[],new Error(`You appear to be using a promise as a plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version. As an alternative, you can prefix the promise with "await". (While processing: ${JSON.stringify(a)})`);return{value:u,options:r,dirname:n,alias:a}})),B=y(m.makePluginAPI),v=y(m.makePresetAPI);function*D(e,t){if(e.value instanceof s.default){if(e.options)throw new Error("Passed options to an existing Plugin instance will not work.");return e.value}return yield*C(yield*B(e,t),t)}const C=(0,p.makeWeakCache)((function*({value:e,options:t,dirname:r,alias:n},a){const o=(0,f.validatePluginObject)(e),u=Object.assign({},o);if(u.visitor&&(u.visitor=l().default.explode(Object.assign({},u.visitor))),u.inherits){const e={name:void 0,alias:`${n}$inherits`,value:u.inherits,options:t,dirname:r},o=yield*(0,i.forwardAsync)(D,(t=>a.invalidate((r=>t(e,r)))));u.pre=S(o.pre,u.pre),u.post=S(o.post,u.post),u.manipulateOptions=S(o.manipulateOptions,u.manipulateOptions),u.visitor=l().default.visitors.merge([o.visitor||{},u.visitor||{}])}return new s.default(u,t,n)})),b=(e,t)=>{if(e.test||e.include||e.exclude){const e=t.name?`"${t.name}"`:"/* your preset */";throw new Error([`Preset ${e} requires a filename to be set when babel is called directly,`,"```",`babel.transform(code, { filename: 'file.ts', presets: [${e}] });`,"```","See https://babeljs.io/docs/en/options#filename for more information."].join("\n"))}};function*E(e,t){const r=x(yield*v(e,t));return((e,t,r)=>{if(!t.filename){const{options:t}=e;b(t,r),t.overrides&&t.overrides.forEach((e=>b(e,r)))}})(r,t,e),yield*(0,c.buildPresetChain)(r,t)}const x=(0,p.makeWeakCacheSync)((({value:e,dirname:t,alias:r})=>({options:(0,d.validate)("preset",e),alias:r,dirname:t})));function S(e,t){const r=[e,t].filter(Boolean);return r.length<=1?r[0]:function(...e){for(const t of r)t.apply(this,e)}}},85839:(e,t,r)=>{"use strict";function n(){const e=r(98814);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.makeConfigAPI=o,t.makePresetAPI=s,t.makePluginAPI=function(e){return Object.assign({},s(e),{assumption:t=>e.using((e=>e.assumptions[t]))})};var i=r(32420),a=r(20656);function o(e){return{version:i.version,cache:e.simple(),env:t=>e.using((e=>void 0===t?e.envName:"function"==typeof t?(0,a.assertSimpleType)(t(e.envName)):(Array.isArray(t)||(t=[t]),t.some((t=>{if("string"!=typeof t)throw new Error("Unexpected non-string value");return t===e.envName}))))),async:()=>!1,caller:t=>e.using((e=>(0,a.assertSimpleType)(t(e.caller)))),assertVersion:u}}function s(e){return Object.assign({},o(e),{targets:()=>JSON.parse(e.using((e=>JSON.stringify(e.targets))))})}function u(e){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");if(n().satisfies(i.version,e))return;const t=Error.stackTraceLimit;"number"==typeof t&&t<25&&(Error.stackTraceLimit=25);const r=new Error(`Requires Babel "${e}", but was loaded with "${i.version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);throw"number"==typeof t&&(Error.stackTraceLimit=t),Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:i.version,range:e})}r(45008)},2837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnv=function(e="development"){return process.env.BABEL_ENV||"production"}},20695:(e,t,r)=>{"use strict";function n(){const e=r(20664);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.createConfigItem=function(e,t,r){return void 0!==r?u.errback(e,t,r):"function"==typeof t?u.errback(e,void 0,r):u.sync(e,t)},Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}}),t.createConfigItemAsync=t.createConfigItemSync=t.loadOptionsAsync=t.loadOptionsSync=t.loadOptions=t.loadPartialConfigAsync=t.loadPartialConfigSync=t.loadPartialConfig=void 0;var i=r(49178),a=r(26248),o=r(46415);const s=n()((function*(e){var t;const r=yield*(0,i.default)(e);return null!=(t=null==r?void 0:r.options)?t:null})),u=n()(o.createConfigItem),c=e=>(t,r)=>(void 0===r&&"function"==typeof t&&(r=t,t=void 0),r?e.errback(t,r):e.sync(t)),l=c(a.loadPartialConfig);t.loadPartialConfig=l;const p=a.loadPartialConfig.sync;t.loadPartialConfigSync=p;const d=a.loadPartialConfig.async;t.loadPartialConfigAsync=d;const f=c(s);t.loadOptions=f;const m=s.sync;t.loadOptionsSync=m;const g=s.async;t.loadOptionsAsync=g;const h=u.sync;t.createConfigItemSync=h;const _=u.async;t.createConfigItemAsync=_},46415:(e,t,r)=>{"use strict";function n(){const e=r(71017);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.createItemFromDescriptor=a,t.createConfigItem=function*(e,{dirname:t=".",type:r}={}){return a(yield*(0,i.createDescriptor)(e,n().resolve(t),{type:r,alias:"programmatic item"}))},t.getItemDescriptor=function(e){if(null!=e&&e[o])return e._descriptor};var i=r(79261);function a(e){return new s(e)}const o=Symbol.for("@babel/core@7 - ConfigItem");class s{constructor(e){this._descriptor=void 0,this[o]=!0,this.value=void 0,this.options=void 0,this.dirname=void 0,this.name=void 0,this.file=void 0,this._descriptor=e,Object.defineProperty(this,"_descriptor",{enumerable:!1}),Object.defineProperty(this,o,{enumerable:!1}),this.value=this._descriptor.value,this.options=this._descriptor.options,this.dirname=this._descriptor.dirname,this.name=this._descriptor.name,this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:void 0,Object.freeze(this)}}Object.freeze(s.prototype)},26248:(e,t,r)=>{"use strict";function n(){const e=r(71017);return n=function(){return e},e}function i(){const e=r(20664);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=m,t.loadPartialConfig=void 0;var a=r(80424),o=r(31050),s=r(46415),u=r(4025),c=r(2837),l=r(91139),p=r(72557),d=r(93122);const f=["showIgnoredFiles"];function*m(e){if(null!=e&&("object"!=typeof e||Array.isArray(e)))throw new Error("Babel options must be an object, null, or undefined");const t=e?(0,l.validate)("arguments",e):{},{envName:r=(0,c.getEnv)(),cwd:i=".",root:a=".",rootMode:f="root",caller:m,cloneInputAst:g=!0}=t,h=n().resolve(i),_=function(e,t){switch(t){case"root":return e;case"upward-optional":{const t=(0,p.findConfigUpwards)(e);return null===t?e:t}case"upward":{const t=(0,p.findConfigUpwards)(e);if(null!==t)return t;throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not be found when searching upward from "${e}".\nOne of the following config files must be in the directory tree: "${p.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:e})}default:throw new Error("Assertion failure - unknown rootMode value.")}}(n().resolve(h,a),f),y="string"==typeof t.filename?n().resolve(i,t.filename):void 0,B={filename:y,cwd:h,root:_,envName:r,caller:m,showConfig:(yield*(0,p.resolveShowConfigPath)(h))===y},v=yield*(0,u.buildRootChain)(t,B);if(!v)return null;const D={assumptions:{}};return v.options.forEach((e=>{(0,o.mergeOptions)(D,e)})),{options:Object.assign({},D,{targets:(0,d.resolveTargets)(D,_),cloneInputAst:g,babelrc:!1,configFile:!1,browserslistConfigFile:!1,passPerPreset:!1,envName:B.envName,cwd:B.cwd,root:B.root,rootMode:"root",filename:"string"==typeof B.filename?B.filename:void 0,plugins:v.plugins.map((e=>(0,s.createItemFromDescriptor)(e))),presets:v.presets.map((e=>(0,s.createItemFromDescriptor)(e)))}),context:B,fileHandling:v.fileHandling,ignore:v.ignore,babelrc:v.babelrc,config:v.config,files:v.files}}const g=i()((function*(e){let t=!1;if("object"==typeof e&&null!==e&&!Array.isArray(e)){var r=e;({showIgnoredFiles:t}=r),e=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(r,f)}const n=yield*m(e);if(!n)return null;const{options:i,babelrc:o,ignore:s,config:u,fileHandling:c,files:l}=n;return"ignored"!==c||t?((i.plugins||[]).forEach((e=>{if(e.value instanceof a.default)throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()")})),new h(i,o?o.filepath:void 0,s?s.filepath:void 0,u?u.filepath:void 0,c,l)):null}));t.loadPartialConfig=g;class h{constructor(e,t,r,n,i,a){this.options=void 0,this.babelrc=void 0,this.babelignore=void 0,this.config=void 0,this.fileHandling=void 0,this.files=void 0,this.options=e,this.babelignore=r,this.babelrc=t,this.config=n,this.fileHandling=i,this.files=a,Object.freeze(this)}hasFilesystemConfig(){return void 0!==this.babelrc||void 0!==this.config}}Object.freeze(h.prototype)},98552:(e,t,r)=>{"use strict";function n(){const e=r(71017);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=n().resolve(t,e).split(n().sep);return new RegExp(["^",...r.map(((e,t)=>{const n=t===r.length-1;return"**"===e?n?l:c:"*"===e?n?u:s:0===e.indexOf("*.")?o+p(e.slice(1))+(n?a:i):p(e)+(n?a:i)}))].join(""))};const i=`\\${n().sep}`,a=`(?:${i}|$)`,o=`[^${i}]+`,s=`(?:${o}${i})`,u=`(?:${o}${a})`,c=`${s}*?`,l=`${s}*?${u}?`;function p(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}},80424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e,t,r){this.key=void 0,this.manipulateOptions=void 0,this.post=void 0,this.pre=void 0,this.visitor=void 0,this.parserOverride=void 0,this.generatorOverride=void 0,this.options=void 0,this.key=e.name||r,this.manipulateOptions=e.manipulateOptions,this.post=e.post,this.pre=e.pre,this.visitor=e.visitor||{},this.parserOverride=e.parserOverride,this.generatorOverride=e.generatorOverride,this.options=t}}},35078:(e,t,r)=>{"use strict";function n(){const e=r(20664);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigPrinter=t.ChainFormatter=void 0;const i={Programmatic:0,Config:1};t.ChainFormatter=i;const a={title(e,t,r){let n="";return e===i.Programmatic?(n="programmatic options",t&&(n+=" from "+t)):n="config "+r,n},loc(e,t){let r="";return null!=e&&(r+=`.overrides[${e}]`),null!=t&&(r+=`.env["${t}"]`),r},*optionsAndDescriptors(e){const t=Object.assign({},e.options);delete t.overrides,delete t.env;const r=[...yield*e.plugins()];r.length&&(t.plugins=r.map((e=>o(e))));const n=[...yield*e.presets()];return n.length&&(t.presets=[...n].map((e=>o(e)))),JSON.stringify(t,void 0,2)}};function o(e){var t;let r=null==(t=e.file)?void 0:t.request;return null==r&&("object"==typeof e.value?r=e.value:"function"==typeof e.value&&(r=`[Function: ${e.value.toString().substr(0,50)} ... ]`)),null==r&&(r="[Unknown]"),void 0===e.options?r:null==e.name?[r,e.options]:[r,e.options,e.name]}class s{constructor(){this._stack=[]}configure(e,t,{callerName:r,filepath:n}){return e?(e,i,a)=>{this._stack.push({type:t,callerName:r,filepath:n,content:e,index:i,envName:a})}:()=>{}}static*format(e){let t=a.title(e.type,e.callerName,e.filepath);const r=a.loc(e.index,e.envName);return r&&(t+=` ${r}`),`${t}\n${yield*a.optionsAndDescriptors(e.content)}`}*output(){return 0===this._stack.length?"":(yield*n().all(this._stack.map((e=>s.format(e))))).join("\n\n")}}t.ConfigPrinter=s},93122:(e,t,r)=>{"use strict";function n(){const e=r(71017);return n=function(){return e},e}function i(){const e=r(34077);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.resolveBrowserslistConfigFile=function(e,t){return n().resolve(t,e)},t.resolveTargets=function(e,t){let r=e.targets;("string"==typeof r||Array.isArray(r))&&(r={browsers:r}),r&&r.esmodules&&(r=Object.assign({},r,{esmodules:"intersect"}));const{browserslistConfigFile:n}=e;let a,o=!1;return"string"==typeof n?a=n:o=!1===n,(0,i().default)(r,{ignoreBrowserslistConfig:o,configFile:a,configPath:t,browserslistEnv:e.browserslistEnv})}},31050:(e,t)=>{"use strict";function r(e,t){for(const r of Object.keys(t)){const n=t[r];void 0!==n&&(e[r]=n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeOptions=function(e,t){for(const n of Object.keys(t))if("parserOpts"!==n&&"generatorOpts"!==n&&"assumptions"!==n||!t[n]){const r=t[n];void 0!==r&&(e[n]=r)}else{const i=t[n];r(e[n]||(e[n]={}),i)}},t.isIterableIterator=function(e){return!!e&&"function"==typeof e.next&&"function"==typeof e[Symbol.iterator]}},92517:(e,t,r)=>{"use strict";function n(){const e=r(34077);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.msg=a,t.access=o,t.assertRootMode=function(e,t){if(void 0!==t&&"root"!==t&&"upward"!==t&&"upward-optional"!==t)throw new Error(`${a(e)} must be a "root", "upward", "upward-optional" or undefined`);return t},t.assertSourceMaps=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&"inline"!==t&&"both"!==t)throw new Error(`${a(e)} must be a boolean, "inline", "both", or undefined`);return t},t.assertCompact=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&"auto"!==t)throw new Error(`${a(e)} must be a boolean, "auto", or undefined`);return t},t.assertSourceType=function(e,t){if(void 0!==t&&"module"!==t&&"script"!==t&&"unambiguous"!==t)throw new Error(`${a(e)} must be "module", "script", "unambiguous", or undefined`);return t},t.assertCallerMetadata=function(e,t){const r=u(e,t);if(r){if("string"!=typeof r.name)throw new Error(`${a(e)} set but does not contain "name" property string`);for(const t of Object.keys(r)){const n=o(e,t),i=r[t];if(null!=i&&"boolean"!=typeof i&&"string"!=typeof i&&"number"!=typeof i)throw new Error(`${a(n)} must be null, undefined, a boolean, a string, or a number.`)}}return t},t.assertInputSourceMap=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&("object"!=typeof t||!t))throw new Error(`${a(e)} must be a boolean, object, or undefined`);return t},t.assertString=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new Error(`${a(e)} must be a string, or undefined`);return t},t.assertFunction=function(e,t){if(void 0!==t&&"function"!=typeof t)throw new Error(`${a(e)} must be a function, or undefined`);return t},t.assertBoolean=s,t.assertObject=u,t.assertArray=c,t.assertIgnoreList=function(e,t){const r=c(e,t);return r&&r.forEach(((t,r)=>function(e,t){if("string"!=typeof t&&"function"!=typeof t&&!(t instanceof RegExp))throw new Error(`${a(e)} must be an array of string/Function/RegExp values, or undefined`);return t}(o(e,r),t))),r},t.assertConfigApplicableTest=function(e,t){if(void 0===t)return t;if(Array.isArray(t))t.forEach(((t,r)=>{if(!l(t))throw new Error(`${a(o(e,r))} must be a string/Function/RegExp.`)}));else if(!l(t))throw new Error(`${a(e)} must be a string/Function/RegExp, or an array of those`);return t},t.assertConfigFileSearch=function(e,t){if(void 0!==t&&"boolean"!=typeof t&&"string"!=typeof t)throw new Error(`${a(e)} must be a undefined, a boolean, a string, got ${JSON.stringify(t)}`);return t},t.assertBabelrcSearch=function(e,t){if(void 0===t||"boolean"==typeof t)return t;if(Array.isArray(t))t.forEach(((t,r)=>{if(!l(t))throw new Error(`${a(o(e,r))} must be a string/Function/RegExp.`)}));else if(!l(t))throw new Error(`${a(e)} must be a undefined, a boolean, a string/Function/RegExp or an array of those, got ${JSON.stringify(t)}`);return t},t.assertPluginList=function(e,t){const r=c(e,t);return r&&r.forEach(((t,r)=>function(e,t){if(Array.isArray(t)){if(0===t.length)throw new Error(`${a(e)} must include an object`);if(t.length>3)throw new Error(`${a(e)} may only be a two-tuple or three-tuple`);if(p(o(e,0),t[0]),t.length>1){const r=t[1];if(void 0!==r&&!1!==r&&("object"!=typeof r||Array.isArray(r)||null===r))throw new Error(`${a(o(e,1))} must be an object, false, or undefined`)}if(3===t.length){const r=t[2];if(void 0!==r&&"string"!=typeof r)throw new Error(`${a(o(e,2))} must be a string, or undefined`)}}else p(e,t);return t}(o(e,r),t))),r},t.assertTargets=function(e,t){if((0,n().isBrowsersQueryValid)(t))return t;if("object"!=typeof t||!t||Array.isArray(t))throw new Error(`${a(e)} must be a string, an a